]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Add a pass to back-propagate use information
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2
3 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5 * common.opt (fssa-backprop): New option.
6 * fold-const.h (negate_mathfn_p): Declare.
7 * fold-const.c (negate_mathfn_p): Make public.
8 * timevar.def (TV_TREE_BACKPROP): New.
9 * tree-pass.h (make_pass_backprop): Declare.
10 * passes.def (pass_backprop): Add.
11 * gimple-ssa-backprop.c: New file.
12
13 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
14 Sebastian Pop <s.pop@samsung.com>
15
16 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Do not call
17 create_empty_if_region_on_edge when cond_expr is true.
18 (translate_isl_ast_node_for): Check whether a guard has been generated.
19
20 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
21
22 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
23 (operator=): Removed.
24 (dr_info): Make alias_set number the last argument with default value of invalid_alias_set.
25 * graphite-sese-to-poly.c (build_scop_drs): Update constructor of dr_info.
26 (rewrite_reductions_out_of_ssa): Iterate only through the basic blocks which are inside region.
27 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
28 * sese.h (struct sese_l): Removed assignment operator.
29 (split_region_for_bb): Removed dead code.
30
31 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
32
33 * graphite-poly.h (struct dr_info): Removed conversion constructor.
34 (struct scop): Renamed scop::region to scop::scop_info
35 (scop_set_region): Same.
36 (SCOP_REGION): Removed
37 (SCOP_CONTEXT): Removed.
38 (POLY_SCOP_P): Removed.
39 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
40 Rename scop->region to scop->scop_info.
41 (add_parameters_to_ivs_params): Same.
42 (graphite_regenerate_ast_isl): Same.
43 * graphite-poly.c (new_scop): Same.
44 (free_scop): Same.
45 (print_scop_params): Same.
46 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
47 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
48 (dot_all_scops_1): Rename scop->region to scop->scop_info.
49 (scop_detection::nb_pbbs_in_loops): Same.
50 (find_scop_parameters): Same.
51 (try_generate_gimple_bb): Same.
52 (gather_bbs::before_dom_children): Same.
53 (gather_bbs::after_dom_children): Same.
54 (build_scops): Same.
55 * graphite-sese-to-poly.c (build_scop_scattering): Same.
56 (extract_affine_chrec): Same.
57 (extract_affine): Same.
58 (set_scop_parameter_dim): Same.
59 (build_loop_iteration_domains): Same.
60 (create_pw_aff_from_tree): Same.
61 (add_param_constraints): Same.
62 (build_scop_iteration_domain): Same.
63 (build_scop_drs): Same.
64 (analyze_drs_in_stmts): Same.
65 (insert_out_of_ssa_copy_on_edge): Same.
66 (rewrite_close_phi_out_of_ssa):Same.
67 (rewrite_reductions_out_of_ssa):Same.
68 (handle_scalar_deps_crossing_scop_limits):Same.
69 (rewrite_cross_bb_scalar_deps):Same.
70 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
71 (build_poly_scop):Same.
72 (build_alias_set): Use pointer to dr_info.
73 * graphite.c (print_graphite_scop_statistics):
74 (graphite_transform_loops):
75 * sese.h (struct sese_l): Remove conversion constructor.
76
77 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
78
79 PR middle-end/67966
80 * tree.c (verify_type): Verify that TYPE_MODE match
81 between TYPE_CANONICAL and type.
82 * expr.c (store_expr_with_bounds): Revert my previous change.
83 * expmed.c (store_bit_field_1): Revert prevoius change.
84 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
85 to match for all types.
86
87 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
88
89 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
90 nesting.
91
92 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
93
94 * doc/tm.texi: Regenerated.
95 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
96 * stor-layout.c (layout_type): Use mode to get vector mask size.
97 * target.def (get_mask_mode): New.
98 * targhooks.c (default_get_mask_mode): New.
99 * targhooks.h (default_get_mask_mode): New.
100 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
101 for boolean vector.
102 * tree.c (MAX_BOOL_CACHED_PREC): New.
103 (nonstandard_boolean_type_cache): New.
104 (build_nonstandard_boolean_type): New.
105 (make_vector_type): Vector mask has no canonical type.
106 (build_truth_vector_type): New.
107 (build_same_sized_truth_vector_type): New.
108 (truth_type_for): Support vector masks.
109 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
110 (build_truth_vector_type): New.
111 (build_same_sized_truth_vector_type): New.
112 (build_nonstandard_boolean_type): New.
113 * tree-cfg.c (verify_gimple_comparison) Require boolean
114 vector type for vector comparison.
115 (verify_gimple_assign_ternary): Likewise.
116 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
117 condition operand.
118 * tree-vect-stmts.c (vectorizable_condition): Use boolean
119 vector type for vector comparison.
120 * tree-vect-generic.c (elem_op_func): Add new operand to hold
121 vector type.
122 (do_unop): Adjust to modified function type.
123 (do_binop): Likewise.
124 (do_plus_minus): Likewise.
125 (do_negate); Likewise.
126 (expand_vector_piecewise): Likewise.
127 (do_cond): Likewise.
128 (do_compare): Use comparison instead of condition.
129 (expand_vector_divmod): Use boolean vector type for comparison.
130 (expand_vector_operations_1): Skip scalar mask operations.
131
132 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
133
134 * omp-low.c (simd_clone_create): Set in_other_partition
135 for created clones.
136
137 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
138
139 * doc/extend.exp (Local Register Variables): Rewrite.
140
141 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
142
143 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
144 and x*x in cases where the operands are sign ops. Extend these
145 rules to handle copysign as a sign op (including for cos, cosh
146 and pow, which already treated negate and abs as sign ops).
147
148 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
149
150 PR target/68018
151 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
152 for 64-bit MS_ABI targets also when default incoming stack boundary
153 is overriden.
154
155 2015-10-21 Richard Biener <rguenther@suse.de>
156
157 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
158 cond stmts, enhanced and split out from ...
159 (vn_phi_eq): ... here.
160
161 2015-10-21 Richard Biener <rguenther@suse.de>
162
163 PR middle-end/68031
164 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
165 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
166 (tree_single_nonnegative_warnv_p): ... here. For SSA names
167 make sure they are not registered for update.
168
169 2015-10-21 Richard Biener <rguenther@suse.de>
170
171 PR tree-optimization/68026
172 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
173 unsigned VARYING values.
174
175 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
176
177 * asan.c (asan_emit_stack_protection): Don't pass local stack to
178 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
179 NULL and use local stack than.
180 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
181 in addition to __asan_init.
182 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
183 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
184 * asan.h (asan_intercepted_p): Handle new string builtins.
185 * ubsan.c (ubsan_use_new_style_p): New function.
186 (ubsan_instrument_float_cast): If location is unknown, assign
187 input_location to loc. Propagate loc to ubsan_create_data if
188 ubsan_use_new_style_p returned true.
189
190 2015-10-21 Jeff Law <law@redhat.com>
191
192 * Makefile.in (OBJS): Remove sched-vis.c
193 * sched-vis.c: Removed. Code moved into...
194 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
195 * rtl.h: Remove prototypes for functions now living in print-rtl.c
196 * print-rtl.h Add prototypes for new functions in print-rtl.c.
197 * auto-inc-dec.c: Include print-rtl.h
198 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
199 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
200
201 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
202 ATTRIBUTE_UNUSED.
203
204 2015-10-21 Richard Biener <rguenther@suse.de>
205 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
206
207 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
208 to match.pd.
209 Move (a * (1 << b)) is (a << b) to match.pd.
210 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
211 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
212 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
213
214 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
215 New simplifier.
216 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
217 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
218 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
219 : New simplifier.
220 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
221 New simplifier.
222 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
223
224 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
225 Szabolcs Nagy <szabolcs.nagy@arm.com>
226 Alan Modra <amodra@gmail.com>
227
228 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
229 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
230 (LINK_SPEC): Add %(link_secure_plt).
231 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
232 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
233
234 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
235 Szabolcs Nagy <szabolcs.nagy@arm.com>
236
237 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
238 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
239
240 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
241
242 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
243 New function.
244 (fusion_load_store): Use it.
245 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
246 ldp and stp in VD modes.
247 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
248 (store_pair<mode>, VD): Likewise.
249
250 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
251
252 PR rtl-optimization/67609
253 * lra-splill.c (lra_final_code_change): Don't remove all
254 sub-registers.
255
256 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
257
258 * simplify-rtx.c (simplify_binary_operation): If either operand was
259 a constant pool reference use them if all other simplifications failed.
260
261 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
262
263 * config/aarch64/aarch64.md
264 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
265 * config/aarch64/aarch64-simd.md
266 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
267 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
268 (aarch64_fpconst_pow_of_2): New function.
269 (aarch64_vec_fpconst_pow_of_2): Likewise.
270 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
271 prototype.
272 (aarch64_vec_fpconst_pow_of_2): Likewise.
273 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
274 (aarch64_fp_vec_pow2): Likewise.
275
276 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
277
278 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
279 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
280 * config/alpha/alpha.c (alpha_function_arg_advance): Update
281 ALPHA_ARG_SIZE usage.
282 (alpha_arg_partial_bytes): Ditto.
283
284 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR target/66810
287 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
288 error_mark_node decls.
289
290 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
291
292 PR target/67963
293 PR target/67985
294 * common/config/i386/i386-common.c (ix86_handle_option): Remove
295 OPT_miamcu handling.
296 * config/i386/i386.c (PTA_NO_80387): New macro.
297 (processor_alias_table): Add PTA_NO_80387 to lakemont.
298 (ix86_option_override_internal): Update MASK_80387 from
299 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
300 SSE math only if 80387 is supported. Don't change
301 MASK_FLOAT_RETURNS.
302 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
303 80387 is supported.
304 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
305 if TARGET_80387 is true and TARGET_IAMCU is false.
306 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
307 is true and TARGET_IAMCU_P is false.
308
309 2015-10-20 Richard Biener <rguenther@suse.de>
310
311 PR tree-optimization/68017
312 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
313
314 2015-10-20 Martin Liska <mliska@suse.cz>
315
316 * cgraphclones.c (cgraph_node::create_virtual_clone):
317 Verify cgraph_node.local.versionable instead of calling
318 tree_versionable_function_p.
319 * ipa-cp.c (determine_versionability): Save the information
320 to ipa_node_params summary.
321 (ipcp_versionable_function_p): Use it.
322 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
323 (ipcp_generate_summary): Do not compute cgraph_node
324 versionability.
325 * ipa-inline-analysis.c (inline_generate_summary): Compute
326 versionability for all cgraph nodes.
327 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
328 ipa_node_params::versionability.
329 * ipa-prop.h (struct ipa_node_params): Declare it.
330
331 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
332
333 PR other/67868
334 * varasm.c (assemble_variable): Move special vtv handling to..
335 (handle_vtv_comdat_sections): .. here. New function.
336 (output_object_block): Handle vtv sections.
337
338 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
339
340 PR target/66912
341 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
342
343 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
344
345 * doc/extend.texi: Update documentation WRT inline functions.
346
347 2015-10-20 Alan Modra <amodra@gmail.com>
348
349 PR go/66870
350 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
351 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
352 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
353
354 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
355
356 PR rtl-optimization/66790
357 * df.h (DF_MIR): New macro.
358 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
359 (DF_MIR_INFO_BB): New macro.
360 (DF_MIR_IN, DF_MIR_OUT): New macros.
361 (struct df_mir_bb_info): New.
362 (df_mir): New macro.
363 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
364 declarations.
365 (df_mir_get_bb_info): New.
366 * df-problems.c (struct df_mir_problem_data): New.
367 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
368 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
369 df_mir_confluence_0, df_mir_confluence_n,
370 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
371 df_mir_bottom_dump, df_mir_verify_solution_start,
372 df_mir_verify_solution_end): New.
373 (problem_MIR): New.
374 (df_mir_add_problem, df_mir_simulate_one_insn): New.
375 * timevar.def (TV_DF_MIR): New.
376 * ree.c: Include bitmap.h
377 (add_removable_extension): Add an INIT_REGS parameter. Use it
378 to skip zero-extensions that may get an uninitialized register.
379 (find_removable_extensions): Compute must-initialized registers
380 using the MIR dataflow problem. Update the call to
381 add_removable_extension.
382 (find_and_remove_re): Call df_mir_add_problem.
383
384 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
385
386 * common/config/mn10300/mn10300-common.c
387 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
388 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
389
390 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
391
392 * doc/extend.texi (Explicit Register Variables): Simplify and
393 avoid unnecessary and confusion abbreviations. Update cross
394 references.
395 doc/implement-c.tex: Update cross reference.
396
397 2015-10-19 Jeff Law <law@redhat.com>
398
399 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
400 that create irreducible loops unless the path elimiantes a multiway
401 branch.
402
403 2015-10-19 Richard Biener <rguenther@suse.de>
404
405 PR tree-optimization/67975
406 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
407 * tree-cfg.c (extract_true_false_controlled_edges): Split out
408 core worker from ...
409 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
410 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
411 instead of block number for PHIs with two or one args.
412 (vn_phi_eq): Compare edge predicates of PHIs that are in different
413 blocks.
414
415 2015-10-19 Richard Biener <rguenther@suse.de>
416
417 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
418 (gimple_stmt_nonnegative_warnv_p): Use it.
419 * match.pd (CPROJ): New operator list.
420 (cproj (complex ...)): Move simplifications from ...
421 * builtins.c (fold_builtin_cproj): ... here.
422
423 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
424
425 * config/i386/i386.c (ix86_expand_vector_move): Use
426 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
427 alignment.
428
429 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
430
431 * doc/invoke.texi: Replace @optindex with @opindex.
432
433 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
434
435 PR target/67995
436 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
437 arch= is set, clear all bits in x_ix86_isa_flags, except for
438 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
439
440 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
441
442 PR middle-end/68002
443 * common.opt (fkeep-static-functions): New option.
444 * doc/invoke.texi: Document it.
445 * cgraphunit.c (cgraph_node::finalize_function): Use it.
446
447 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
448
449 * sched-int.h (struct autopref_multipass_data_): Remove offset
450 field. Add min_offset, max_offset, multi_mem_insn_p fields.
451 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
452 (autopref_multipass_init): Use it. Handle PARALLEL sets.
453 (autopref_rank_data): New function.
454 (autopref_rank_for_schedule): Use it.
455 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
456
457 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
458
459 PR other/65800
460 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
461
462 2015-10-18 Iain Sandoe <iain@codesourcery.com>
463
464 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
465 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
466 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
467 (STANDARD_STARTFILE_PREFIX_1): New.
468 (STANDARD_STARTFILE_PREFIX_2): New.
469
470 2015-10-18 Iain Sandoe <iain@codesourcery.com>
471
472 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
473 (darwin_driver_init): Note a version-min when provided on the c/l.
474 * config/darwin.h (%darwin_minversion): Remove.
475 * config/i386/darwin.h: Likewise.
476 * config/rs6000/darwin.h: Likewise.
477 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
478 rather than an arbitrary constant.
479
480 2015-10-18 Iain Sandoe <iain@codesourcery.com>
481
482 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
483 PPC, detect conflicts between -arch and multilib settings. Detect
484 and warn about conflicts between multiple -arch definitions.
485
486 2015-10-18 Iain Sandoe <iain@codesourcery.com>
487
488 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
489
490 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
491
492 * lra-constraints.c (add_next_usage_insn): Change argument type
493 from rtx to rtx_insn *.
494
495 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
496
497 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
498 for Lakemont.
499
500 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
501
502 * config/tilepro/gen-mul-tables.cc: Adjust include files.
503 * config/tilegx/mul-tables.c: Regenerate.
504 * config/tilepro/mul-tables.c: Regenerate.
505
506 * config/tilegx/tilegx-c.c: Adjust include files.
507 * config/tilegx/tilegx.c: Likewise.
508 * config/tilepro/tilepro-c.c: Likewise.
509 * config/tilepro/tilepro.c: Likewise.
510 * config/aarch64/aarch64-builtins.c: Likewise.
511 * config/aarch64/aarch64.c: Likewise.
512 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
513 * config/alpha/alpha.c: Likewise.
514 * config/arc/arc.c: Likewise.
515 * config/arm/aarch-common.c: Likewise.
516 * config/arm/arm-builtins.c: Likewise.
517 * config/arm/arm-c.c: Likewise.
518 * config/arm/arm.c: Likewise.
519 * config/avr/avr-c.c: Likewise.
520 * config/avr/avr-devices.c: Likewise.
521 * config/avr/avr-log.c: Likewise.
522 * config/avr/avr.c: Likewise.
523 * config/bfin/bfin.c: Likewise.
524 * config/c6x/c6x.c: Likewise.
525 * config/cr16/cr16.c: Likewise.
526 * config/cris/cris.c: Likewise.
527 * config/darwin-c.c: Likewise.
528 * config/darwin-driver.c: Likewise.
529 * config/darwin.c: Likewise.
530 * config/default-c.c: Likewise.
531 * config/epiphany/epiphany.c: Likewise.
532 * config/epiphany/mode-switch-use.c: Likewise.
533 * config/epiphany/resolve-sw-modes.c: Likewise.
534 * config/fr30/fr30.c: Likewise.
535 * config/frv/frv.c: Likewise.
536 * config/ft32/ft32.c: Likewise.
537 * config/glibc-c.c: Likewise.
538 * config/h8300/h8300.c: Likewise.
539 * config/i386/host-cygwin.c: Likewise.
540 * config/i386/host-mingw32.c: Likewise.
541 * config/i386/i386-c.c: Likewise.
542 * config/i386/i386.c: Likewise.
543 * config/i386/msformat-c.c: Likewise.
544 * config/i386/winnt-cxx.c: Likewise.
545 * config/i386/winnt-stubs.c: Likewise.
546 * config/i386/winnt.c: Likewise.
547 * config/ia64/ia64-c.c: Likewise.
548 * config/ia64/ia64.c: Likewise.
549 * config/iq2000/iq2000.c: Likewise.
550 * config/lm32/lm32.c: Likewise.
551 * config/m32c/m32c-pragma.c: Likewise.
552 * config/m32c/m32c.c: Likewise.
553 * config/m32r/m32r.c: Likewise.
554 * config/mcore/mcore.c: Likewise.
555 * config/mep/mep-pragma.c: Likewise.
556 * config/mep/mep.c: Likewise.
557 * config/microblaze/microblaze-c.c: Likewise.
558 * config/microblaze/microblaze.c: Likewise.
559 * config/mips/mips-tables.opt
560 * config/mips/mips.c: Likewise.
561 * config/mmix/mmix.c: Likewise.
562 * config/mn10300/mn10300.c: Likewise.
563 * config/moxie/moxie.c: Likewise.
564 * config/msp430/msp430-c.c: Likewise.
565 * config/msp430/msp430.c: Likewise.
566 * config/nds32/nds32-cost.c: Likewise.
567 * config/nds32/nds32-fp-as-gp.c: Likewise.
568 * config/nds32/nds32-intrinsic.c: Likewise.
569 * config/nds32/nds32-isr.c: Likewise.
570 * config/nds32/nds32-md-auxiliary.c: Likewise.
571 * config/nds32/nds32-memory-manipulation.c: Likewise.
572 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
573 * config/nds32/nds32-predicates.c: Likewise.
574 * config/nds32/nds32.c: Likewise.
575 * config/nios2/nios2.c: Likewise.
576 * config/nvptx/mkoffload.c: Likewise.
577 * config/nvptx/nvptx.c: Likewise.
578 * config/pa/pa.c: Likewise.
579 * config/pdp11/pdp11.c: Likewise.
580 * config/rl78/rl78-c.c: Likewise.
581 * config/rl78/rl78.c: Likewise.
582 * config/rs6000/host-darwin.c: Likewise.
583 * config/rs6000/rs6000-c.c: Likewise.
584 * config/rs6000/rs6000-linux.c: Likewise.
585 * config/rs6000/rs6000.c: Likewise.
586 * config/rx/rx.c: Likewise.
587 * config/s390/s390-c.c: Likewise.
588 * config/s390/s390.c: Likewise.
589 * config/sh/sh-c.c: Likewise.
590 * config/sh/sh-mem.cc: Likewise.
591 * config/sh/sh.c: Likewise.
592 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
593 * config/sh/sh_treg_combine.cc: Likewise.
594 * config/sol2-c.c: Likewise.
595 * config/sol2-cxx.c: Likewise.
596 * config/sol2-stubs.c: Likewise.
597 * config/sol2.c: Likewise.
598 * config/sparc/sparc-c.c: Likewise.
599 * config/sparc/sparc.c: Likewise.
600 * config/spu/spu-c.c: Likewise.
601 * config/spu/spu.c: Likewise.
602 * config/stormy16/stormy16.c: Likewise.
603 * config/v850/v850-c.c: Likewise.
604 * config/v850/v850.c: Likewise.
605 * config/vax/vax.c: Likewise.
606 * config/visium/visium.c: Likewise.
607 * config/vms/vms-c.c: Likewise.
608 * config/vms/vms.c: Likewise.
609 * config/vxworks.c: Likewise.
610 * config/winnt-c.c: Likewise.
611 * config/xtensa/xtensa.c: Likewise.
612
613 2015-10-16 Christian Bruel <christian.bruel@st.com>
614
615 PR target/67745
616 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
617 (FUNCTION_BOUNDARY_P): New macro:
618 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
619 New hook.
620 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
621 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
622 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
623 * gcc/function.c (allocate_struct_function): Call
624 relayout_function hook.
625 * gcc/passes.c (rest_of_decl_compilation): Likewise.
626
627 2015-10-16 Christian Bruel <christian.bruel@st.com>
628
629 PR target/67745
630 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
631 * config/arm/arm.c (arm_option_override_internal): Call
632 arm_override_options_after_change_1.
633 (arm_override_options_after_change): New function.
634 (arm_override_options_after_change_1): Likewise.
635 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
636
637 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
638
639 Revert:
640 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
641 empty constructors.
642
643 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
644
645 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
646 argument is an ADDR_EXPR.
647
648 2015-10-16 Richard Biener <rguenther@suse.de>
649
650 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
651 and get rid of force_gimple_operand_gsi.
652 (gimple_fold_builtin_memory_chk): Likewise.
653 (gimple_fold_builtin_stxcpy_chk): Likewise.
654 (rewrite_to_defined_overflow): Likewise.
655 (gimple_convert_to_ptrofftype): New function.
656 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
657
658 2015-10-16 Richard Biener <rguenther@suse.de>
659
660 * tree-nested.h (build_addr): Adjust prototype.
661 * tree-nested.c (build_addr): Remove context argument and use
662 mark_addressable.
663 (get_static_chain): Adjust calls to build_addr.
664 (convert_nl_goto_reference): Likewise.
665 (convert_tramp_reference_op): Likewise.
666 (finalize_nesting_tree_1): Likewise.
667 * value-prof.c (gimple_ic): Likewise.
668 * gimple-low.c (lower_builtin_setjmp): Likewise.
669 * tree-parloops.c (take_address_of): Likewise.
670 (create_call_for_reduction_1): Likewise.
671 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
672 (gimple_gen_ic_func_profiler): Likewise.
673
674 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
675
676 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
677 empty constructors.
678
679 2015-10-16 Michael Collison <michael.collison@linaro.org>
680 Andrew Pinski <andrew.pinski@caviumnetworks.com>
681
682 * match.pd ((x < y) && (x < z) -> x < min (y,z),
683 (x > y) and (x > z) -> x > max (y,z))
684
685 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
686 Szabolcs Nagy <szabolcs.nagy@arm.com>
687
688 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
689 (DYNAMIC_LINKER): Renamed to ...
690 (GLIBC_DYNAMIC_LINKER): This.
691 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
692
693 2015-10-15 Marek Polacek <polacek@redhat.com>
694
695 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
696 gimple_call_builtin instead of is_gimple_call.
697
698 2015-10-15 Richard Biener <rguenther@suse.de>
699
700 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
701
702 2015-10-15 Richard Biener <rguenther@suse.de>
703
704 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
705 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
706 * tree-vect-loop.c (get_initial_def_for_induction): Drop
707 use of force_gimple_operand in favor of gimple_build.
708 Use vect_get_new_ssa_name.
709 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
710 (vectorizable_mask_load_store): Likewise.
711 (vectorizable_call): Likewise.
712 (vectorizable_store): Likewise.
713 (vectorizable_load): Likewise.
714 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
715
716 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
717
718 PR tree-optimization/67945
719 * tree-pass.h (PROP_gimple_opt_math): New property flag.
720 * generic-match-head.c (canonicalize_math_p): New function.
721 * gimple-match-head.c: Include tree-pass.h.
722 (canonicalize_math_p): New function.
723 * match.pd: Group math built-in rules into simplifications
724 and canonicalizations. Guard the latter with canonicalize_math_p.
725 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
726 PROP_gimple_opt_math property.
727
728 2015-10-15 Marek Polacek <polacek@redhat.com>
729
730 PR tree-optimization/67953
731 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
732
733 2015-10-15 Jiong Wang <jiong.wang@arm.com>
734
735 * config.gcc: Recognize "." in architecture base name for AArch64.
736
737 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
738
739 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
740 ROUND_UP macro.
741 * config/mips/mips.c (mips_setup_incoming_varargs): Use
742 ROUND_DOWN to calculate off.
743 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
744 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
745 rounded_size.
746
747 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
748
749 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
750
751 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
752 Torvald Riegel <triegel@redhat.com>
753
754 PR target/67281
755 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
756 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
757 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
758 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
759 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
760 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
761 trechkpt, treclaim, tsr, ttest): New define_expands.
762 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
763 __TM_FENCE__ for htm.
764 * doc/extend.texi: Update documentation for htm builtins.
765
766 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
767
768 PR target/67967
769 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
770 REG_CFA_EXPRESSION to aligned SSE stores.
771
772 2015-10-14 Jeff Law <law@redhat.com>
773
774 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
775 num_threaded_edges for successful FSM threads too.
776
777 2015-10-14 Richard Biener <rguenther@suse.de>
778
779 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
780 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
781 (vect_get_vec_def_for_operand): Remove unused parameter.
782 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
783 (vect_create_epilog_for_reduction): Likewise.
784 (vectorizable_reduction): Likewise.
785 (vectorizable_live_operation): Likewise.
786 * tree-vect-patterns.c (type_conversion_p): Likewise.
787 (vect_recog_vector_vector_shift_pattern): Likewise.
788 (check_bool_pattern): Likewise.
789 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
790 (vect_analyze_slp_cost_1): Likewise.
791 * tree-vect-stmts.c (process_use): Likewise.
792 (vect_get_vec_def_for_operand): Do not handle reductions.
793 (vect_get_vec_defs): Adjust.
794 (vectorizable_mask_load_store): Likewise.
795 (vectorizable_call): Likewise.
796 (vectorizable_simd_clone_call): Likewise.
797 (vect_get_loop_based_defs): Likewise.
798 (vectorizable_conversion): Likewise.
799 (vectorizable_assignment): Likewise.
800 (vectorizable_shift): Likewise.
801 (vectorizable_operation): Likewise.
802 (vectorizable_store): Likewise.
803 (vectorizable_load): Likewise.
804 (vect_is_simple_cond): Likewise.
805 (vectorizable_condition): Likewise.
806 (vect_is_simple_use): Remove unused parameters.
807 (vect_is_simple_use_1): Adjust and rename.
808
809 2015-10-14 Richard Biener <rguenther@suse.de>
810
811 PR tree-optimization/67915
812 * match.pd: Handle comparisons of addresses of STRING_CSTs.
813 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
814 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
815 stmt folding in favor of GIMPLE one.
816
817 2015-10-14 Marek Polacek <polacek@redhat.com>
818
819 PR tree-optimization/67815
820 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
821 (reassociate_bb): Call it.
822
823 2015-10-14 Richard Biener <rguenther@suse.de>
824
825 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
826 Reset info at start.
827 (vect_analyze_group_access_1): Add debug print.
828 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
829 (vect_compute_single_scalar_iteration_cost): ... to this.
830 (vect_analyze_loop_2): Adjust.
831 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
832 * tree-vectorizer.h: ... here.
833 (add_stmt_info_to_vec): Remove.
834 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
835
836 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
837
838 * targhooks.c (default_target_option_pragma_parse): Do not warn if
839 called on behalf of "#pragma GCC pop_options".
840
841 2015-10-14 Tom de Vries <tom@codesourcery.com>
842
843 * cfganal.c (verify_no_unreachable_blocks): New function.
844 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
845 verify_no_unreachable_blocks.
846 cfganal.h (verify_no_unreachable_blocks): Declare.
847
848 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
849
850 * common.opt: Add flag_checking.
851 * system.h (CHECKING_P): Define.
852
853 2015-10-13 Jakub Jelinek <jakub@redhat.com>
854 Aldy Hernandez <aldyh@redhat.com>
855 Ilya Verbin <ilya.verbin@intel.com>
856
857 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
858 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
859 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
860 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
861 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
862 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
863 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
864 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
865 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
866 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
867 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
868 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
869 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
870 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
871 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
872 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
873 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
874 (struct cgraph_simd_clone_arg): Adjust comment.
875 * coretypes.h (struct gomp_ordered): New forward decl.
876 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
877 set critical clauses to it.
878 (gimple_build_omp_ordered): Return gomp_ordered * instead of
879 gimple *. Add CLAUSES argument, set ordered clauses to it.
880 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
881 GIMPLE_OMP_ORDERED.
882 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
883 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
884 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
885 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
886 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
887 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
888 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
889 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
890 renumber
891 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
892 (gomp_critical): Add clauses field.
893 (gomp_ordered): New struct.
894 (is_a_helper <gomp_ordered *>::test): New inline.
895 (gimple_build_omp_critical): Add CLAUSES argument.
896 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
897 instead of gimple *.
898 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
899 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
900 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
901 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
902 inline functions.
903 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
904 (dump_gimple_omp_target): Handle enter data and exit data.
905 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
906 (dump_gimple_omp_critical): Print clauses.
907 (dump_gimple_omp_ordered): New function.
908 (dump_gimple_omp_task): Handle taskloop.
909 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
910 GIMPLE_OMP_ORDERED.
911 * gimple-walk.c (walk_gimple_op): Walk clauses on
912 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
913 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
914 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
915 (struct gimplify_omp_ctx): Add loop_iter_var,
916 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
917 and target_firstprivatize_array_bases fields.
918 (delete_omp_context): Release loop_iter_var.
919 (gimplify_bind_expr): Handle ORT_NONE.
920 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
921 ORT_COMBINED_TARGET.
922 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
923 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
924 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
925 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
926 ctx->target_map_scalars_firstprivate.
927 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
928 data sharing clauses. For data sharing clause with VLA decl
929 on omp target/target data don't add firstprivate for the pointer.
930 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
931 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
932 the addition of ORT_COMBINED_TARGET.
933 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
934 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
935 pointers as zero length array sections and
936 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
937 data sharing.
938 (omp_check_private): Handle omp_member_access_dummy_var vars.
939 (find_decl_expr): New function.
940 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
941 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
942 Handle OMP_CLAUSE_GANG separately. Handle
943 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
944 clauses. Diagnose linear clause on combined
945 distribute {, parallel for} simd construct, unless it is the loop
946 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
947 Handle map clauses with COMPONENT_REF. Initialize
948 ctx->target_map_scalars_firstprivate,
949 ctx->target_firstprivatize_array_bases and
950 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
951 linear clause even to target region if combined. Remove
952 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
953 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
954 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
955 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
956 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
957 For linear clause on worksharing loop combined with parallel add
958 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
959 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
960 omp_member_access_dummy_var vars. Add lastprivate clause to outer
961 taskloop if needed.
962 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
963 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
964 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
965 GOMP_MAP_POINTER.
966 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
967 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
968 in target body. Handle removal of struct mapping if struct is not
969 seen in target body. Remove GOMP_MAP_STRUCT map clause on
970 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
971 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
972 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
973 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
974 clause appear together. Handle
975 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
976 clause if it has map-type-modifier always. Handle
977 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
978 clauses.
979 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
980 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
981 callers.
982 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
983 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
984 iterators in doacross loops.
985 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
986 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
987 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
988 for the addition of ORT_COMBINED_TARGET.
989 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
990 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
991 and OMP_TARGET_EXIT_DATA.
992 (gimplify_omp_ordered): New function.
993 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
994 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
995 Gimplify clauses on OMP_CRITICAL.
996 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
997 expand_GOMP_SIMD_ORDERED_END): New functions.
998 * internal-fn.def (GOMP_SIMD_ORDERED_START,
999 GOMP_SIMD_ORDERED_END): New internal functions.
1000 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1001 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1002 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1003 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1004 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1005 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1006 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1007 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1008 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1009 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1010 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1011 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1012 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1013 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1014 adjust type.
1015 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1016 GOMP_target_data_41, adjust type.
1017 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1018 GOMP_target_update_41, adjust type.
1019 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1020 field.
1021 (struct omp_for_data): Add ordered and simd_schedule fields.
1022 (omp_member_access_dummy_var, unshare_and_remap_1,
1023 unshare_and_remap, is_taskloop_ctx): New functions.
1024 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1025 (extract_omp_for_data): Handle taskloops and doacross loops
1026 and simd schedule modifier.
1027 (omp_adjust_chunk_size): New function.
1028 (get_ws_args_for): Use it.
1029 (lookup_sfield): Change first argument to splay_tree_key,
1030 add overload with first argument tree.
1031 (maybe_lookup_field): Likewise.
1032 (use_pointer_for_field): Handle omp_member_access_dummy_var.
1033 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1034 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1035 (build_outer_var_ref): Add LASTPRIVATE argument, handle
1036 taskloops and omp_member_access_dummy_var vars.
1037 (build_sender_ref): Change first argument to splay_tree_key,
1038 add overload with first argument tree.
1039 (install_var_field): For mask & 8 use &DECL_UID as key instead
1040 of the tree itself.
1041 (fixup_child_record_type): Const qualify *.omp_data_i.
1042 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1043 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1044 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1045 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1046 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1047 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1048 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1049 kinds.
1050 (add_taskreg_looptemp_clauses): New function.
1051 (scan_omp_parallel): Use it.
1052 (scan_omp_task): Likewise.
1053 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1054 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1055 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1056 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
1057 sandwiched taskloop constructs. Type check
1058 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
1059 region. Diagnose depend(source) or depend(sink:...) on
1060 target constructs or task/taskloop.
1061 (handle_simd_reference): Use get_name.
1062 (lower_rec_input_clauses): Likewise. Ignore all
1063 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1064 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
1065 before passing it to omp_clause_{default,copy}_ctor. Handle
1066 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
1067 lastprivate_firstprivate flag for linear that needs copyin and
1068 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1069 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1070 on taskloop lookup decl in outer context. Pass true to
1071 build_outer_var_ref lastprivate argument. Handle
1072 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1073 outside of outer taskloop for.
1074 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1075 OMP_CLAUSE_DECL.
1076 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1077 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
1078 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
1079 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
1080 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1081 abstract origin. Handle omp_member_access_dummy_var vars.
1082 (expand_parallel_call): Use expand_omp_build_assign.
1083 (expand_task_call): Handle taskloop construct expansion. Add
1084 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
1085 integers. Add priority argument to GOMP_task* calls. Or in
1086 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1087 GOMP_task call.
1088 (expand_omp_build_assign): Add prototype. Add AFTER
1089 argument, if true emit statements after *GSI_P and continue linking.
1090 (expand_omp_taskreg): Adjust expand_task_call caller.
1091 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1092 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1093 zero_iter2_bb and first_zero_iter2 arguments, handle computation
1094 of counts even for ordered loops.
1095 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1096 (expand_omp_ordered_source, expand_omp_ordered_sink,
1097 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1098 functions.
1099 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
1100 clauses on worksharing loop. Handle DOACROSS loop expansion.
1101 (expand_omp_for_static_nochunk): Handle linear clauses on
1102 worksharing loop. Adjust expand_omp_for_init_counts
1103 callers.
1104 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
1105 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
1106 expand_omp_for_init_counts callers.
1107 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1108 functions.
1109 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1110 Handle doacross loops.
1111 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1112 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
1113 GOMP_target_{41,update_41,enter_exit_data} libcalls.
1114 (expand_omp): Don't expand ordered depend constructs here, record
1115 ord_stmt instead for later expand_omp_for_generic.
1116 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1117 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1118 clause as stand-alone directive.
1119 (lower_omp_ordered_clauses): New function.
1120 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1121 don't lower anything.
1122 (lower_omp_for_lastprivate): Use last _looptemp_ clause
1123 on taskloop for comparison.
1124 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
1125 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1126 expansion for linear adjustments.
1127 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1128 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1129 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
1130 to tree * pointing to the stmt's clauses.
1131 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1132 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1133 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1134 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1135 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1136 clauses. Always use short kind and 8-bit align shift.
1137 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1138 (struct lower_omp_regimplify_operands_data): New type.
1139 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1140 New functions.
1141 (lower_omp_1): Use lower_omp_regimplify_operands instead of
1142 gimple_regimplify_operands.
1143 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1144 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1145 clause as stand-alone directive.
1146 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1147 (simd_clone_mangle): Mangle the various linear kinds
1148 per the new ABI.
1149 (simd_clone_adjust_argument_types): Handle
1150 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1151 (simd_clone_init_simd_arrays): Don't do anything for uval.
1152 (simd_clone_adjust): Handle
1153 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1154 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1155 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1156 * omp-low.h (omp_member_access_dummy_var): New prototype.
1157 * passes.def (pass_simduid_cleanup): Schedule another copy of the
1158 pass after all optimizations.
1159 * tree.c (omp_clause_code_name): Add entries for
1160 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1161 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1162 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
1163 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1164 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1165 OMP_CLAUSE_REDUCTION 5 arguments. Handle
1166 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1167 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1168 clauses.
1169 * tree-core.h (enum omp_clause_linear_kind): New.
1170 (struct tree_omp_clause): Change type of map_kind
1171 from unsigned char to unsigned int. Add subcode.if_modifier
1172 and subcode.linear_kind fields.
1173 (enum omp_clause_code): Add
1174 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1175 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1176 (OMP_CLAUSE_REDUCTION): Document
1177 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1178 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1179 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1180 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
1181 operand.
1182 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
1183 operand.
1184 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1185 codes.
1186 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1187 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1188 char.
1189 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1190 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1191 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1192 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1193 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1194 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1195 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1196 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1197 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1198 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1199 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1200 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1201 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1202 * tree-inline.c (remap_gimple_stmt): Handle clauses on
1203 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
1204 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1205 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1206 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1207 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1208 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1209 (convert_local_omp_clauses): Likewise.
1210 * tree-pretty-print.c (dump_omp_clause): Handle
1211 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1212 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1213 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1214 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1215 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
1216 GOMP_MAP_FORCE_DEALLOC. Handle
1217 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1218 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1219 and clauses on OMP_ORDERED and OMP_CRITICAL.
1220 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1221 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1222 (vectorize_loops): Adjust comments.
1223 (pass_simduid_cleanup::execute): Likewise.
1224 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1225 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1226 * wide-int.h (wi::gcd): New.
1227
1228 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1229
1230 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1231 (ix86_function_arg_advance): Ditto.
1232 (ix86_function_arg): Ditto.
1233 (ix86_gimplify_va_arg): Ditto.
1234 (ix86_class_max_nregs): Ditto.
1235 (inline_memory_move_cost): Ditto.
1236 (ix86_set_reg_reg_cost): Ditto.
1237 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1238
1239 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
1240
1241 PR middle-end/67912
1242 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1243
1244 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1245
1246 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1247 ROUND_UP macro and UNITS_PER_WORD * 2.
1248 * config/sparc/sparc.c (sparc_compute_frame_size):
1249 Use ROUND_UP and ROUND_DOWN macros where applicable.
1250 (function_arg_record_value, function_arg_record_value_1)
1251 (function_arg_record_value_1): Ditto.
1252 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1253 alignment to double-word.
1254 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1255 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1256 rounded_size.
1257
1258 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
1259
1260 * gcc/rtl.h (print_insn): Fix prototype.
1261
1262 2015-10-13 Tom de Vries <tom@codesourcery.com>
1263
1264 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1265 -1. Add assert that returned entry matches phi argument.
1266 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1267 free_stmt_vec_info_vec ...
1268 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
1269 with -1.
1270
1271 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1272
1273 PR tree-optimization/67909, 67947
1274 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1275 really skip the inner loop.
1276
1277 2015-10-13 Jeff Law <law@redhat.com>
1278
1279 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1280 Allow single block jump threading paths.
1281
1282 2015-10-13 Tom de Vries <tom@codesourcery.com>
1283
1284 PR tree-optimization/67476
1285 * doc/invoke.texi (@item parloops-schedule): New item.
1286 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1287 * tree-parloops.c: Include params-enum.h.
1288 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1289
1290 2015-10-13 Tom de Vries <tom@codesourcery.com>
1291
1292 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1293 * params-enum.h: New file.
1294 * opts.c (handle_param): Handle case that param arg is a string.
1295 * params-list.h: Handle DEFPARAMENUM5 in params.def.
1296 * params.c (find_param): New function, factored out of ...
1297 (set_param_value): ... here.
1298 (param_string_value_p): New function.
1299 * params.h (struct param_info): Add value_names field.
1300 (find_param, param_string_value_p): Declare.
1301
1302 2015-10-13 Tom de Vries <tom@codesourcery.com>
1303
1304 PR tree-optimization/67476
1305 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1306
1307 2015-10-13 Richard Biener <rguenther@suse.de>
1308
1309 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1310 the data dependence vector.
1311 (vect_peeling_hash_insert): Get the peeling hash table as argument.
1312 (vect_peeling_hash_get_lowest_cost): Likewise.
1313 (vect_enhance_data_refs_alignment): Adjust.
1314 (struct _vect_peel_info, struct _vect_peel_extended_info,
1315 struct peel_info_hasher): Move from ...
1316 * tree-vectorizer.h: ... here.
1317 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1318 (LOOP_VINFO_PEELING_HTAB): Likewise.
1319 (struct _loop_vec_info): Remove min_profitable_iters and
1320 peeling_htab members.
1321 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1322 here.
1323 (destroy_loop_vec_info): Adjust.
1324 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1325 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1326 to estimate alias versioning cost.
1327 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1328
1329 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
1330
1331 * real.h (real_isinteger): Declare.
1332 * real.c (real_isinteger): New function.
1333 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1334 if y is an even integer.
1335
1336 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1337
1338 revert:
1339 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1340 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1341 counts when these are more informative.
1342
1343 2015-10-12 Jeff Law <law@redhat.com>
1344
1345 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1346 (fsm_find_control_stmt_paths): Change name of first argument to
1347 more accurately relfect what it really is. Handle simplification
1348 of GIMPLE_COND after finding a thread path for NAME.
1349 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1350 nontrivial conditions to be handled by FSM threader.
1351 (thread_through_normal_block): Extract the name to looup via
1352 FSM threader from COND_EXPR.
1353
1354 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1355 restriction that traced SSA_NAME is a user variable.
1356
1357 2015-10-12 Tom de Vries <tom@codesourcery.com>
1358
1359 PR tree-optimization/67476
1360 * omp-low.c (expand_omp_for_generic): Add missing phis.
1361
1362 2015-10-12 Tom de Vries <tom@codesourcery.com>
1363
1364 PR tree-optimization/67476
1365 * omp-low.c (expand_omp_for_generic): Handle simple latch.
1366
1367 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1368
1369 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1370 tables: add tbl3 and tbx4.
1371 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1372 (aarch64_tbx4v8qi): New.
1373 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1374 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1375 Rewrite using builtin functions.
1376 * config/aarch64/iterators.md (UNSPEC_TBX): New.
1377
1378 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1379
1380 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1381 ROUND_UP macro.
1382 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1383 Use ROUND_UP and ROUND_DOWN macros where applicable.
1384 (rs6000_darwin64_record_arg_flush): Ditto.
1385 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1386 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1387 rounded_size.
1388
1389 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1390
1391 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1392 (AARCH64_ROUND_DOWN): Ditto.
1393 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1394
1395 2015-10-12 Richard Biener <rguenther@suse.de>
1396
1397 PR ipa/67783
1398 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1399 code that analyzes IVs on each stmt but in a cheaper way avoiding
1400 quadratic behavior.
1401
1402 2015-10-12 Nick Clifton <nickc@redhat.com>
1403
1404 * config/msp430/msp430.c (msp430_mcu_names): Rename to
1405 msp430_mcu_data, add fields for ISA and hardware multiply
1406 support. Import latest data from the devices.csv file.
1407 (msp430_override_option): Use the data from the new array.
1408 (msp430_use_f5_series_hwmult): Likewise.
1409 (use_32bit_hwmult): Likewise.
1410 (msp430_no_hwmult): Likewise.
1411 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1412 MCU names.
1413 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1414 not recognised then no hardware multiply support is assumed and
1415 that only the MSP430 ISA is allowed.
1416
1417 2015-10-12 Richard Biener <rguenther@suse.de>
1418
1419 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1420 related code ...
1421 (vect_analyze_loop_2): ... here.
1422
1423 2015-10-11 Jason Merrill <jason@redhat.com>
1424
1425 PR c++/67557
1426 * expr.c (store_field): Call store_constructor directly when
1427 storing a CONSTRUCTOR into a target smaller than its type.
1428 Guard against unsafe bitwise copy.
1429
1430 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1431
1432 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1433 counts when these are more informative.
1434
1435 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1436
1437 * tree-profile.c (tree_profiling): Do not clear
1438 pure/const when not instrumenting.
1439 (pass tree_profile): Add dump of symtab.
1440
1441 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1442
1443 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1444 addresses.
1445 (fold_addr_of_array_ref_difference): Likewise.
1446
1447 2015-10-11 Jeff Law <law@redhat.com>
1448
1449 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1450 tree-ssa-threadbackward.c.
1451 (fsm_find_control_statement_thread_paths): Likewise.
1452 (thread_through_normal_block): Break out FSM bits and move them
1453 into a new function in tree-ssa-threadbackward.c. Call new function
1454 instead.
1455 Minimize header file usage.
1456 * tree-ssa-threadbackward.h: New file.
1457 * tree-ssa-threadbackward.c: Likewise.
1458 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1459
1460 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
1461
1462 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1463
1464 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
1465
1466 PR rtl-optimization/67864
1467 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1468 fallthrough edges for conditional jumps. Don't sort candidate
1469 edges if not optimizing for speed.
1470
1471 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1472
1473 * defaults.h (REVERSE_CONDITION): New default definition.
1474 * jump.c (reversed_comparison_code_parts): Adjust.
1475
1476 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1477
1478 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1479 check HARD_FRAME_POINTER_IS_ARG_POINTER.
1480
1481 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1482
1483 * defaults.h (FRAME_ADDR_RTX): New default definition.
1484 * builtins.c (expand_builtin_return_addr): Adjust.
1485
1486 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1487
1488 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1489 * builtins.c (expand_builtin_return_addr): Adjust.
1490
1491 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1492
1493 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1494 * builtins.c (expand_builtin_return_addr): Adjust.
1495 * doc/tm.texi: Likewise.
1496 * doc/tm.texi.in: Likewise.
1497 * except.c (expand_builtin_unwind_init): Likewise.
1498
1499 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1500
1501 * builtins.c (expand_builtin_return_addr): Adjust.
1502 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1503
1504 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1505
1506 * tree.c (type_with_interoperable_signedness): New.
1507 (gimple_canonical_types_compatible_p): Use it.
1508 * tree.h (type_with_interoperable_signedness): Declare
1509
1510 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1511
1512 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1513 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1514 when OEP_ADDRESS_OF is se.
1515
1516 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1517 Sebastian Pop <s.pop@samsung.com>
1518
1519 * graphite-dependences.c (scop_get_dependences): Add dump of the
1520 data dependence graph.
1521 * graphite-poly.c (print_isl_union_map): New.
1522 (debug_isl_union_map): New.
1523 * graphite-poly.h (print_isl_union_map): Declare.
1524 (debug_isl_union_map): Declare.
1525
1526 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1527 Sebastian Pop <s.pop@samsung.com>
1528
1529 * graphite-poly.c (print_iteration_domain): Remove verbosity.
1530 Remove OpenScop formatting.
1531 (print_iteration_domains): Same.
1532 (debug_iteration_domain): Same.
1533 (debug_iteration_domains): Same.
1534 (print_pdr): Same.
1535 (debug_pdr): Same.
1536 (dump_gbb_cases): Same.
1537 (dump_gbb_conditions): Same.
1538 (print_pdrs): Same.
1539 (debug_pdrs): Same.
1540 (print_pbb_body): Same.
1541 (print_pbb): Same.
1542 (print_scop_params): Same.
1543 (print_scop_context): Same.
1544 (print_scop): Same.
1545 (debug_pbb_domain): Same.
1546 (debug_pbb): Same.
1547 (debug_scop_context): Same.
1548 (debug_scop): Same.
1549 (debug_scop_params): Same.
1550 * graphite-poly.h: Same.
1551 * graphite.c (graphite_transform_loops): Same.
1552
1553 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1554
1555 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1556 call that isn't needed.
1557
1558 2015-10-09 Jeff Law <law@redhat.com>
1559
1560 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1561 rather than moving each name to the freelist individually.
1562
1563 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
1564
1565 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1566 * frame-header-opt.c: New file.
1567 * config/mips/mips-proto.h (mips_register_frame_header_opt):
1568 Add prototype.
1569 * config/mips/mips.c (mips_compute_frame_info): Check
1570 optimize_call_stack flag.
1571 (mips_option_override): Register new frame_header_opt pass.
1572 (mips_frame_info, mips_int_mask, mips_shadow_set,
1573 machine_function): Move these types to...
1574 * config/mips/mips.h: here.
1575 (machine_function): Add does_not_use_frame_header and
1576 optimize_call_stack fields.
1577 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1578 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1579 Document new flags.
1580 * config/mips/mips.opt (mframe-header-opt): Add new option.
1581
1582 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
1583
1584 * config/i386/i386.c
1585 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1586 ROUND_DOWN where applicable.
1587
1588 2015-10-09 Jeff Law <law@redhat.com>
1589
1590 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1591 correct statement.
1592
1593 2015-10-09 Renlin Li <renlin.li@arm.com>
1594
1595 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1596 operands[0] and operands[2].
1597 (neon_vtrn<mode>_insn): Likewise.
1598 (neon_vzip<mode>_insn): Likewise.
1599
1600 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1601
1602 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1603 ((X & C2) << C1): Expand to...
1604 (X {&,^,|} C2 << C1): ...This.
1605 ((X & C2) >> C1): Expand to...
1606 (X {&,^,|} C2 >> C1): ...This.
1607
1608 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
1609
1610 PR target/67895
1611 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1612 Adjust embedded rounding/SAE specifier position.
1613 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1614 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1615 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1616 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1617 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1618 Likewise.
1619 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1620
1621 2015-10-09 Martin Jambor <mjambor@suse.cz>
1622
1623 tree-optimization/67794
1624 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1625 between types of state,ents but accept original definitions as a
1626 parameter.
1627 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1628 iterate over definitions.
1629
1630 2015-10-09 James Norris <jnorris@codesourcery.com>
1631
1632 * config/rs6000/rs6000.c (rs6000_offload_options): New.
1633 (TARGET_OFFLOAD_OPTIONS): New.
1634
1635 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
1636
1637 PR middle-end/67891
1638 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1639
1640 PR middle-end/67766
1641 * function.c (expand_function_end): Move return value
1642 promotion past the handling of PARALLELs and CONCATs.
1643
1644 PR rtl-optimization/67828
1645 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1646 (tree_may_unswitch_on): Don't unswitch on expressions
1647 involving undefined values.
1648
1649 2015-10-09 Richard Biener <rguenther@suse.de>
1650
1651 * genmatch.c (print_operand): Fix formatting.
1652 (dt_node::append_simplify): Warn for multiple simplifiers
1653 that match the same pattern.
1654 * match.pd (log (exp @0)): Remove duplicates.
1655
1656 2015-10-09 Richard Biener <rguenth@suse.de>
1657
1658 PR target/67366
1659 * gimple-fold.c (optabs-query.h): Include
1660 (gimple_fold_builtin_memory_op): Allow unaligned stores
1661 when movmisalign_optabs are available.
1662
1663 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1664
1665 PR target/67366
1666 * config/arm/arm.md (movmisalign<mode>): New.
1667 * config/arm/iterators.md (HSI): New.
1668
1669 2015-10-09 Richard Biener <rguenther@suse.de>
1670
1671 PR tree-optimization/67891
1672 * gimple-match.h (gimple_simplified_result_is_gimple_val):
1673 New helper.
1674 (gimple_resimplify1): Declare.
1675 (gimple_resimplify2): Likewise.
1676 (gimple_resimplify3): Likewise.
1677 * gimple-match-head.c (gimple_resimplify1): Export.
1678 (gimple_resimplify2): Likewise.
1679 (gimple_resimplify3): Likewise.
1680 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1681 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1682 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1683 to avoid creating stmts without VN info.
1684
1685 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
1686
1687 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1688 of availability.
1689
1690 2015-10-08 Jeff Law <law@redhat.com>
1691
1692 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1693 and release_ssa_name in two places.
1694 (gimple_stringop_fixed_value): Similarly.
1695
1696 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1697 release_defs.
1698
1699 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1700 unlink_stmt_vdef and release_ssa_name_fn.
1701
1702 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1703 release_defs.
1704
1705 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
1706
1707 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1708 SSE register save area to 16 bytes only if the incoming stack
1709 boundary is no less than 16 bytes.
1710
1711 2015-10-08 Jeff Law <law@redhat.com>
1712
1713 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1714 release_ssa_name. Fix typo in comment.
1715
1716 2015-10-08 Nathan Sidwell <nathan@acm.org>
1717
1718 * config/nvptx/nvptx.h (struct machine_function): Add comment.
1719 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1720 may return pointer as well as in memory.
1721 (nvptx_output_return): Likewise.
1722
1723 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1724
1725 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1726 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1727 * match.pd: Add rules previously handled by fold_builtin_sqrt
1728 and fold_builtin_cbrt.
1729
1730 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1731
1732 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1733 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1734 * fold-const.h (tree_unary_nonnegative_warnv_p)
1735 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1736 (tree_expr_nonnegative_warnv_p): Add depth parameters.
1737 * fold-const.c: Include gimple-fold.h and params.h.
1738 (tree_ssa_name_nonnegative_warnv_p): New function.
1739 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1740 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1741 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1742 Add a depth parameter and increment it for recursive calls to
1743 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
1744 to handle SSA names.
1745 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1746 (gimple_stmt_nonnegative_warnv_p): Declare.
1747 * tree-vrp.c (remove_range_assertions): Remove assert that condition
1748 cannot be proven false.
1749 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1750 (gimple_stmt_nonnegative_warnv_p): Move to...
1751 * gimple-fold.c: ...here. Add depth parameters and pass them
1752 down to the tree routines. Accept statements that aren't
1753 assignments or calls but just return false for them.
1754 (gimple_val_nonnegative_real_p): Delete.
1755 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1756 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1757 Check HONOR_NANs first.
1758
1759 2015-10-08 Martin Jambor <mjambor@suse.cz>
1760
1761 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
1762 unnecessary MIN.
1763
1764 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1765
1766 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1767 in the tail of outer-loop.
1768
1769 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
1770
1771 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1772 return UI_NONE.
1773
1774 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1775
1776 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1777 "cfghooks.h", add prototypes for introduced new functions.
1778 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1779 checks on ability of loop unswitching to tree_unswitch_single_loop;
1780 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1781 on innermost loop check.
1782 (tree_unswitch_single_loop): Add all required checks on ability of
1783 loop unswitching under zero recursive level guard.
1784 (tree_unswitch_outer_loop): New function.
1785 (find_loop_guard): Likewise.
1786 (empty_bb_without_guard_p): Likewise.
1787 (used_outside_loop_p): Likewise.
1788 (get_vop_from_header): Likewise.
1789 (hoist_guard): Likewise.
1790 (check_exit_phi): Likewise.
1791
1792 2015-10-08 Marek Polacek <polacek@redhat.com>
1793
1794 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1795 ops element.
1796
1797 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1798
1799 PR c/65345
1800 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1801 create_tmp_var_raw instead of create_tmp_var.
1802
1803 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
1804
1805 * expr.c (store_expr_with_bounds): Handle aggregate moves from
1806 BLKmode.
1807 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1808 to define gimple type system; compare aggregates only by size.
1809
1810 2015-10-07 Jeff Law <law@redhat.com>
1811
1812 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1813 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1814 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
1815 unnecessarily.
1816
1817 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1818 Sebastian Pop <s.pop@samsung.com>
1819
1820 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1821 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1822 (generate_isl_schedule): Same.
1823 * graphite-optimize-isl.c (scop_get_domains): Same.
1824 (apply_schedule_map_to_scop): Same.
1825 * graphite-poly.c (print_iteration_domains): Same.
1826 (remove_gbbs_in_scop): Same.
1827 (new_scop): Same.
1828 (free_scop): Same.
1829 (print_scop): Same.
1830 * graphite-poly.h (struct scop): Rename bbs to pbbs.
1831 (SCOP_BBS): Remove.
1832 * graphite-scop-detection.c (compare_bb_depths): Remove.
1833 (graphite_sort_dominated_info): Remove.
1834 (try_generate_gimple_bb): Move out of scop_detection.
1835 (all_non_dominated_preds_marked_p): Remove.
1836 (build_scop_bbs_1): Remove.
1837 (build_scop_bbs): Remove.
1838 (nb_pbbs_in_loops): Do not use SCOP_BBS.
1839 (find_scop_parameters): Same.
1840 (sese_dom_walker): Rename gather_bbs.
1841 (before_dom_children): Call try_generate_gimple_bb and collect gbb
1842 and pbb.
1843 (build_scops): Call gather_bbs.
1844 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1845 (add_conditions_to_constraints): Same.
1846 (build_scop_iteration_domain): Same.
1847 (build_scop_drs): Same.
1848 (new_pbb_from_pbb): Same.
1849 * sese.c (new_sese_info): Create bbs.
1850 * sese.h (struct sese_info_t): Add bbs.
1851
1852 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
1853
1854 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1855 encoding in 64-bit mode.
1856
1857 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
1858
1859 PR target/66697
1860 * config/i386/i386.c (ix86_option_override_internal): Always use
1861 8-byte minimum stack boundary in 64-bit mode.
1862 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1863 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1864 Add a REG_CFA_EXPRESSION note if needed.
1865 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1866 (ix86_handle_force_align_arg_pointer_attribute): New.
1867 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1868 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1869 with ix86_handle_force_align_arg_pointer_attribute.
1870 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1871
1872 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1873 Sebastian Pop <s.pop@samsung.com>
1874
1875 * graphite-scop-detection.c (parameter_index_in_region): Remove
1876 use of SESE_ADD_PARAMS.
1877 (find_scop_parameters): Same.
1878 * sese.c (new_sese_info): Same.
1879 * sese.h (struct sese_info_t): Remove add_params.
1880 (SESE_ADD_PARAMS): Remove.
1881
1882 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1883 Sebastian Pop <s.pop@samsung.com>
1884
1885 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1886 an sese_info_p.
1887 (copy_def): Same.
1888 (copy_internal_parameters): Same.
1889 (translate_isl_ast_to_gimple): Use an sese_l.
1890 (build_iv_mapping): Same.
1891 * graphite-poly.c (new_sese): Rename new_sese_info.
1892 (free_sese): Rename free_sese_info.
1893 * graphite-poly.h (struct scop): Use an sese_info_p.
1894 (scop_set_region): Same.
1895 * graphite-scop-detection.c (struct sese_l): Moved...
1896 (get_entry_bb): Moved...
1897 (get_exit_bb): Moved...
1898 (parameter_index_in_region_1): Use an sese_info_p.
1899 (parameter_index_in_region): Same.
1900 (scan_tree_for_params): Same.
1901 (find_params_in_bb): Same.
1902 (sese_dom_walker): Use an sese_l.
1903 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1904 (reduction_phi_p): Same.
1905 (parameter_index_in_region_1): Use an sese_info_p.
1906 (propagate_expr_outside_region): Use an sese_l.
1907 * graphite.c: Replace uses of SCOP_REGION.
1908 * sese.c (sese_record_loop): Use an sese_info_p.
1909 (build_sese_loop_nests): Same.
1910 (sese_build_liveouts_use): Same.
1911 (sese_build_liveouts_bb): Same.
1912 (sese_build_liveouts_bb): Same.
1913 (sese_bad_liveouts_use): Same.
1914 (sese_reset_debug_liveouts_bb): Same.
1915 (sese_build_liveouts): Same.
1916 (new_sese): Renamed new_sese_info.
1917 (free_sese): Renamed free_sese_info.
1918 (set_rename): Use an sese_info_p.
1919 (graphite_copy_stmts_from_block): Same.
1920 (copy_bb_and_scalar_dependences): Same.
1921 (outermost_loop_in_sese_1): Use an sese_l.
1922 (outermost_loop_in_sese): Same.
1923 (if_region_set_false_region): Use an sese_info_p.
1924 (move_sese_in_condition): Same.
1925 (scalar_evolution_in_region): Use an sese_l.
1926 * sese.h (struct sese_l): ... here.
1927 (SESE_ENTRY): Remove.
1928 (SESE_ENTRY_BB): Remove.
1929 (SESE_EXIT): Remove.
1930 (SESE_EXIT_BB): Remove.
1931 (sese_contains_loop): Use an sese_info_p.
1932 (sese_nb_params): Same.
1933 (bb_in_sese_p): Use an sese_l.
1934 (stmt_in_sese_p): Same.
1935 (defined_in_sese_p): Same.
1936 (loop_in_sese_p): Same.
1937 (sese_loop_depth): Same.
1938 (struct ifsese_s): Use an sese_info_p.
1939 (gbb_loop_at_index): Use an sese_l.
1940 (nb_common_loops): Same.
1941 (scev_analyzable_p): Same.
1942
1943 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1944
1945 * config/i386/i386.c (ix86_conditional_register_usage): Use
1946 CALL_USED_REGISTERS_MASK.
1947 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1948
1949 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1950
1951 PR bootstrap/67385
1952 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1953 * configure: Regenerated.
1954
1955 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1956
1957 PR target/67850
1958 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1959 (ix86_set_current_function): This.
1960 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1961
1962 2015-10-07 Richard Biener <rguenther@suse.de>
1963
1964 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1965 (vinfo_for_stmt): Adjust.
1966 (set_vinfo_for_stmt): Likewise.
1967 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1968 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1969 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1970 of inner loop.
1971 (vect_analyze_loop_1): Remove.
1972 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1973 inner loop when vectorizing an outer loop by splitting out from ...
1974 (vect_analyze_loop_form): ... here.
1975
1976 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1977
1978 PR c/65345
1979 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1980 Use create_tmp_var_raw instead of create_tmp_var.
1981
1982 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1985 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1986 * real.c (CACHED_FRACTION): New helper macro.
1987 (dconst_third_ptr): Use it.
1988 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1989 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1990 dconst_sixth.
1991 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1992
1993 2015-10-06 Jeff Law <law@redhat.com>
1994
1995 PR tree-optimization/67816
1996 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1997 from remove_jump_threads_starting_at. Accept an edge rather than
1998 a basic block.
1999 * tree-ssa-threadupdate.c (removed_edges): New hash table.
2000 (remove_jump_threads_including): Note edges that get removed from
2001 the CFG for later pruning of jump threading paths including them.
2002 (thread_through_all_blocks): Remove paths which include edges that
2003 have been removed.
2004 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2005 on each outgoing edges when optimizing away a control statement.
2006
2007 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2008
2009 * reorg.c (emit_delay_sequence): Store list of delay slot insns
2010 in a vector instead of rtx_insn_list.
2011 (add_to_delay_list): Likewise.
2012 (delete_from_delay_slot): Likewise.
2013 (optimize_skip): Likewise.
2014 (redirect_with_delay_list_safe_p): Likewise.
2015 (check_annul_list_true_false): Likewise.
2016 (steal_delay_list_from_target): Likewise.
2017 (steal_delay_list_from_fallthrough): Likewise.
2018 (redundant_insn): Likewise.
2019 (fill_simple_delay_slots): Likewise.
2020 (fill_slots_from_thread): Likewise.
2021 (fill_eager_delay_slots): Likewise.
2022 (relax_delay_slots): Likewise.
2023
2024 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
2025
2026 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2027 For -mgpopt=local, also exclude unintialized common symbols.
2028 * doc/invoke.texi (Nios II Options): Document the change.
2029
2030 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2031
2032 * config/aarch64/iterators.md (vwcore): Add missing cases for
2033 V4HF/V8HF modes.
2034
2035 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2036 Sebastian Pop <s.pop@samsung.com>
2037
2038 * graphite-poly.c (new_scop): Initialize drs.
2039 * graphite-poly.h (struct dr_info): New.
2040 (struct scop): Add drs.
2041 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2042 (pdr_add_memory_accesses): Same.
2043 (build_poly_dr): Same.
2044 (build_alias_set): Same.
2045 (build_scop_drs): Same.
2046 (build_pbb_drs): Remove.
2047 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2048 * tree-data-ref.h (data_reference): Remove alias_set.
2049
2050 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2051 Sebastian Pop <s.pop@samsung.com>
2052
2053 * graphite-poly.c (free_data_refs_aux): Remove.
2054 (free_gimple_poly_bb): Do not call free_data_refs_aux.
2055 * graphite-poly.h (struct base_alias_pair): Remove.
2056 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2057 base_alias_pair and dr->aux.
2058 (build_alias_set): Same.
2059 * tree-data-ref.c (create_data_ref): Initialize alias_set.
2060 * tree-data-ref.h (data_reference): Add alias_set.
2061
2062 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2063 Sebastian Pop <s.pop@samsung.com>
2064
2065 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2066 Do not set PDR_BASE_OBJECT_SET.
2067 * graphite-poly.h (poly_dr): Same.
2068 (PDR_BASE_OBJECT_SET): Remove.
2069 (new_poly_dr): Update decl.
2070 * graphite-sese-to-poly.c (build_poly_dr): Update call to
2071 new_poly_dr.
2072 (write_alias_graph_to_ascii_dimacs): Remove.
2073 (write_alias_graph_to_ascii_dot): Remove.
2074 (write_alias_graph_to_ascii_ecc): Remove.
2075 (dr_same_base_object_p): Remove.
2076 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
2077 code.
2078 (build_base_obj_set_for_drs): Remove.
2079 (dump_alias_graphs): Remove.
2080 (build_scop_drs): Remove dead code.
2081
2082 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2083 Peter Bergner <bergner@vnet.ibm.com>
2084
2085 PR target/67808
2086 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2087 allow registers, but provide insns for the combiner to create for
2088 loads from memory. Separate VSX code from non-VSX code. For
2089 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2090 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2091 so that registers come before memory operations. Drop support from
2092 converting DFmode to TFmode, if the DFmode value is in a GPR
2093 register.
2094 (extenddftf2_fprs): Likewise.
2095 (extenddftf2_internal): Likewise.
2096 (extenddftf2_vsx): Likewise.
2097 (extendsftf2): In the expander, only allow registers, but provide
2098 insns for the combiner to create for stores and loads.
2099
2100 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2101
2102 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2103 from the decl parameter.
2104
2105 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
2106
2107 PR 67861
2108 * gimple-fold.c (gimple_fold_builtin): Add break after
2109 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2110
2111 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
2112
2113 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2114 to scop->isl_context.
2115
2116 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2117
2118 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2119 (output_probe_stack_range): Rotate the loop and simplify.
2120 (thumb1_expand_prologue): Tweak sorry message.
2121 * config/arm/arm.md (probe_stack): Use bare string.
2122
2123 2015-10-06 Nick Clifton <nickc@redhat.com>
2124
2125 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2126
2127 2015-10-06 Nick Clifton <nickc@redhat.com>
2128
2129 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2130 (ATTR_PERSIST): New constant.
2131 (msp430_data_attr): New function - verifies an attribute that only
2132 applies to variables.
2133 (msp430_attributes): Add noinit and persistent attributes.
2134 (noinit_section): New variable.
2135 (presis_section): New variable.
2136 (TARGET_ASM_INIT_SECTIONS): Define.
2137 (msp430_init_sections): New function - initialises the noinit and
2138 persist section variables.
2139 (msp430_select_section): Add support for noinit and persist
2140 attributes.
2141 (msp430_section_type_flags): Likewise.
2142 * doc/extend.texi: Document the reent, critical, wakeup, noinit
2143 and persistent attributes.
2144
2145 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2146 Sebastian Pop <s.pop@samsung.com>
2147
2148 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2149 (no_violations): Remove.
2150 (subtract_commutative_associative_deps): Remove.
2151 (compute_deps): Do not call subtract_commutative_associative_deps.
2152 (transform_is_safe): Remove.
2153 (graphite_legal_transform): Remove.
2154 * graphite-poly.h (graphite_legal_transform): Remove.
2155
2156 2015-10-05 Aditya Kumar <hiraditya@msn.com>
2157
2158 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2159 which are in this region are passed so gcc_assert and remove redundant
2160 computation.
2161 * sese.c (sese_build_liveouts): Pass only those bbs which are not
2162 in region.
2163 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2164 gcc_assert on that and remove unnecessary computation.
2165 (sese_build_liveouts_use): Same.
2166
2167 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2168
2169 * graphite-dependences.c (scop_get_reads): Renamed scop->context
2170 to scop->param_context.
2171 (scop_get_must_writes): Same.
2172 (scop_get_may_writes): Same.
2173 (scop_get_original_schedule): Same.
2174 (scop_get_transformed_schedule): Same.
2175 (subtract_commutative_associative_deps): Same.
2176 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2177 (generate_isl_context): Same.
2178 (generate_isl_schedule): Same.
2179 (scop_to_isl_ast): Same.
2180 (graphite_regenerate_ast_isl): Same.
2181 * graphite-optimize-isl.c (scop_get_domains): Same.
2182 (optimize_isl): Renamed scop->context to scop->param_context.
2183 * graphite-poly.c (new_poly_bb): Change the type of argument to
2184 gimple_poly_bb_p.
2185 (new_scop): Renamed scop->context to scop->param_context.
2186 (free_scop): Same.
2187 (print_scop_context): Same.
2188 * graphite-poly.h (new_poly_dr): Change the type of argument from
2189 void* to data_reference_p.
2190 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2191 (new_poly_bb): Change the type of argument from void* to
2192 gimple_poly_bb_p.
2193 (pbb_set_black_box): Same.
2194 (struct scop): Rename context to param_context, ctx to isl_context.
2195 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2196 Move declarations closer to assignment.
2197 (find_params_in_bb): Same.
2198 (find_scop_parameters): Same.
2199 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2200 Global to be used for statement IDs.
2201 (isl_id_for_pbb): Use ssa_name_version_typesize.
2202 (simple_copy_phi_p): Move declarations closer to assignment.
2203 (build_pbb_scattering_polyhedrons): Same.
2204 (build_scop_scattering): Same.
2205 (isl_id_for_ssa_name): Same.
2206 (extract_affine_name): Same.
2207 (extract_affine_int): Same.
2208 (extract_affine): Same.
2209 (set_scop_parameter_dim): Use renamed member.
2210 (build_loop_iteration_domains): Same.
2211 (add_param_constraints): Same.
2212 (build_scop_iteration_domain): Same.
2213 (pdr_add_data_dimensions): Same.
2214 (build_poly_dr): Same.
2215 (build_scop_drs): Move declarations closer to assignment.
2216 (analyze_drs_in_stmts): Same.
2217 (insert_out_of_ssa_copy): Same.
2218 (insert_out_of_ssa_copy_on_edge): Same.
2219 (propagate_expr_outside_region): Same.
2220 (rewrite_phi_out_of_ssa): Same.
2221 (rewrite_degenerate_phi): Same.
2222 (rewrite_reductions_out_of_ssa): Same.
2223 (rewrite_cross_bb_scalar_dependence): Same.
2224 (handle_scalar_deps_crossing_scop_limits): Same.
2225 (rewrite_cross_bb_scalar_deps): Same.
2226 * graphite.c (graphite_transform_loops): Use renamed member.
2227
2228 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
2229
2230 PR c/65345
2231 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2232 create_tmp_var_raw instead of create_tmp_var.
2233
2234 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2235
2236 PR c/65345
2237 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2238 Use create_tmp_var_raw instead of create_tmp_var.
2239
2240 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
2241
2242 PR target/67849
2243 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2244 split for upper-bank registers when target does not support
2245 AVX512VL.
2246 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2247 split when target does not support AVX512VL.
2248
2249 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
2250
2251 PR c/65345
2252 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2253 Adjust to use create_tmp_var_raw instead of create_tmp_var.
2254
2255 2015-10-06 Nick Clifton <nickc@redhat.com>
2256
2257 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2258 multiplication.
2259
2260 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2261
2262 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2263 (case ${target}): Add znver1.
2264 * config/i386/cpuid.h(bit_CLZERO): Define.
2265 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2266 -march=native recognize znver1 processors.
2267 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2268 znver1, clzero def_and_undef.
2269 * config/i386/i386.c (struct processor_costs znver1_cost): New.
2270 (m_znver1): New definition.
2271 (m_AMD_MULTIPLE): Includes m_znver1.
2272 (processor_target_table): Add znver1 entry.
2273 (ix86_target_string) : Add clzero entry.
2274 (static const char *const cpu_names): Add znver1 entry.
2275 (ix86_option_override_internal): Add znver1 instruction sets.
2276 (PTA_CLZERO) : New definition.
2277 (ix86_option_override_internal): Handle new clzerooption.
2278 (ix86_issue_rate): Add znver1.
2279 (ix86_adjust_cost): Add znver1.
2280 (ia32_multipass_dfa_lookahead): Add znver1.
2281 (has_dispatch): Add znver1.
2282 * config/i386/i386.h (TARGET_znver1): New definition.
2283 (TARGET_CLZERO): Define.
2284 (TARGET_CLZERO_P): Define.
2285 (struct ix86_size_cost): Add TARGET_ZNVER1.
2286 (enum processor_type): Add PROCESSOR_znver1.
2287 * config/i386/i386.md (define_attr "cpu"): Add znver1.
2288 (set_attr znver1_decode): New definitions for znver1.
2289 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2290 (mclzero): New.
2291 * config/i386/mmx.md (set_attr znver1_decode): New definitions
2292 for znver1.
2293 * config/i386/sse.md (set_attr znver1_decode): Likewise.
2294 * config/i386/x86-tune.def: Add znver1 tunings.
2295 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2296 * gcc/doc/invoke.texi: Add details about znver1
2297
2298 2015-10-06 Richard Biener <rguenther@suse.de>
2299
2300 PR tree-optimization/67859
2301 * tree-ssa-pre.c (create_expression_by_pieces): Properly
2302 discard not inserted stmts.
2303
2304 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
2305
2306 * doc/extend.texi (Template Instantiation): Reorder options and
2307 de-emphasize -frepo.
2308 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2309 example instead of -frepo.
2310
2311 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2312
2313 PR c/65345
2314 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2315 use create_tmp_var_raw rather than create_tmp_var.
2316
2317 2015-10-06 Richard Biener <rguenther@suse.de>
2318
2319 * tree-vectorizer.h (vec_info): New base class for...
2320 (_loop_vec_info): ... this and ...
2321 (_bb_vec_info): ... this.
2322 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2323 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2324 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2325 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2326 vect_destroy_datarefs): Adjust interface to take a vec_info *
2327 rather than both a loop_vec_info and a bb_vec_info argument.
2328 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2329 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2330 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2331 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2332 accordingly.
2333 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2334 (destroy_loop_vec_info, vect_analyze_loop_2,
2335 vect_is_simple_reduction_1, get_initial_def_for_induction,
2336 vect_create_epilog_for_reduction, vectorizable_reduction,
2337 vectorizable_live_operation, vect_transform_loop): Adjust.
2338 * tree-vect-patterns.c (type_conversion_p,
2339 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2340 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2341 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2342 check_bool_pattern, vect_recog_bool_pattern,
2343 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2344 * tree-vect-slp.c (vect_get_and_check_slp_defs,
2345 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2346 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2347 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2348 (new_bb_vec_info): Initialize base classs.
2349 * tree-vect-stmts.c (record_stmt_cost, process_use,
2350 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2351 vectorizable_mask_load_store, vectorizable_call,
2352 vectorizable_simd_clone_call, vectorizable_conversion,
2353 vectorizable_assignment, vectorizable_shift,
2354 vectorizable_operation, vectorizable_store,
2355 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2356 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2357 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2358
2359 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
2360
2361 PR c/65345
2362 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2363 create_tmp_var_raw rather than create_tmp_var.
2364
2365 2015-10-05 Marek Polacek <polacek@redhat.com>
2366
2367 * tree-ssa-loop-im.c
2368 (move_computations_dom_walker::before_dom_children): Don't set
2369 SSA_NAME_ANTI_RANGE_P.
2370 * tree-ssa-phiopt.c (value_replacement): Likewise.
2371
2372 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2373 Sebastian Pop <s.pop@samsung.com>
2374
2375 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2376
2377 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2378 Sebastian Pop <s.pop@samsung.com>
2379
2380 * graphite-poly.c (new_gimple_poly_bb): ... here.
2381 (free_data_refs_aux): ... here.
2382 (free_gimple_poly_bb): ... here.
2383 (remove_gbbs_in_scop): ... here.
2384 (new_scop): Call new_sese.
2385 (free_scop): Call remove_gbbs_in_scop and free_sese.
2386 * graphite-poly.h (base_alias_pair): ... here.
2387 (new_gimple_poly_bb): Declare.
2388 (free_gimple_poly_bb): Declare.
2389 * graphite-scop-detection.c (parameter_index_in_region_1):
2390 (parameter_index_in_region): ... here.
2391 (scan_tree_for_params): ... here.
2392 (find_params_in_bb): ... here.
2393 (find_scop_parameters): ... here.
2394 (build_scops): Call find_scop_parameters.
2395 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2396 (free_scops): Move...
2397 (single_pred_cond_non_loop_exit): Move...
2398 (sese_dom_walker::before_dom_children): Move...
2399 (sese_dom_walker::after_dom_children): Move...
2400 (build_poly_scop): Move...
2401 * graphite-sese-to-poly.h (base_alias_pair): Move...
2402 * graphite.c (free_scops): ... here.
2403
2404 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2405 Sebastian Pop <s.pop@samsung.com>
2406
2407 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2408 (trivially_empty_bb_p): Move...
2409 (same_close_phi_node): Move...
2410 (new_gimple_poly_bb): Move...
2411 (compare_bb_depths): Move...
2412 (graphite_sort_dominated_info): Move...
2413 (remove_duplicate_close_phi): Move...
2414 (make_close_phi_nodes_unique): Move...
2415 (canonicalize_loop_closed_ssa): Move...
2416 (canonicalize_loop_closed_ssa_form): Move...
2417 (loop_ivs_can_be_represented): Move...
2418 (single_pred_cond_non_loop_exit): Move...
2419 (graphite_can_represent_init): Move...
2420 (graphite_can_represent_scev): Move...
2421 (stmt_has_simple_data_refs_p): Move...
2422 (stmt_has_side_effects): Move...
2423 (graphite_can_represent_stmt): Move...
2424 (scop_detection): ... here.
2425 (sese_dom_walker): ... and here.
2426 (build_scops): Call all moved functions.
2427 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2428 (all_non_dominated_preds_marked_p): Move...
2429 (build_scop_bbs_1): Move...
2430 (build_scop_bbs): Move...
2431 (set_scop_parameter_dim): Move...
2432 (nb_pbbs_in_loops): Move...
2433 (build_poly_scop): Do not call all the moved functions.
2434
2435 2015-10-05 Martin Jambor <mjambor@suse.cz>
2436 Jan Hubicka <hubicka@ucw.cz>
2437
2438 * ipa-cp.c (ipcp_alignment_lattice): New type.
2439 (ipcp_param_lattices): Use the above to represent alignment.
2440 (ipcp_alignment_lattice::print): New function.
2441 (print_all_lattices): Use it to print alignment information.
2442 (ipcp_alignment_lattice::top_p): New function.
2443 (ipcp_alignment_lattice::bottom_p): Likewise.
2444 (ipcp_alignment_lattice::set_to_bottom): Likewise.
2445 (ipcp_alignment_lattice::meet_with_1): Likewise.
2446 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2447 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2448 (initialize_node_lattices): Likewise.
2449 (propagate_alignment_accross_jump_function): Work with the new class
2450 for alignment lattices.
2451 (propagate_constants_accross_call): Pass only the alignment lattice to
2452 propagate_alignment_accross_jump_function.
2453 (ipcp_store_alignment_results): Work with the new class for alignment
2454 lattices.
2455
2456 2015-10-05 Marek Polacek <polacek@redhat.com>
2457
2458 PR tree-optimization/67821
2459 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2460
2461 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
2462
2463 PR other/65021
2464 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2465 function to...
2466 (mkoffload_cleanup): ... this. Adjust all users.
2467 (maybe_unlink): Look at save_temps and verbose flags instead of
2468 debug flag.
2469 (main): Parse "-save-temps" flag.
2470 (generate_target_descr_file, generate_target_offloadend_file)
2471 (generate_host_descr_file, prepare_target_image): Pass it on.
2472 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2473 (mkoffload_cleanup): New function.
2474 (maybe_unlink): Look at save_temps and verbose flags instead of
2475 debug flag.
2476 (main): Instead of calling utils_cleanup, register atexit handler
2477 for mkoffload_cleanup.
2478 (main): Parse "-save-temps" flag.
2479 (compile_native, main): Pass it on.
2480 * lto-wrapper.c (compile_offload_image): Likewise.
2481
2482 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2483
2484 * gimple.h (gimple_op_ptr): Require a non const gimple *.
2485 (gimple_assign_lhs_ptr): Likewise.
2486 (gimple_assign_rhs1_ptr): Likewise.
2487 (gimple_assign_rhs2_ptr): Likewise.
2488 (gimple_assign_rhs3_ptr): Likewise.
2489 (gimple_call_lhs_ptr): Likewise.
2490 (gimple_call_fn_ptr): Likewise.
2491 (gimple_call_chain_ptr): Likewise.
2492 (gimple_call_arg_ptr): Likewise.
2493 (gimple_cond_lhs_ptr): Likewise.
2494 (gimple_cond_rhs_ptr): Likewise.
2495 (gimple_switch_index_ptr): Likewise.
2496 (gimple_return_retval_ptr): Likewise.
2497
2498 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2499
2500 * gimple.h (gimple_asm_input_op_ptr): Remove.
2501 (gimple_asm_output_op_ptr): Likewise.
2502
2503 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2504
2505 * gimple.h (gimple_location_ptr): Remove.
2506 * tree-vrp.c (check_all_array_refs): Adjust.
2507
2508 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2509
2510 * tree-ssa-operands.c (build_uses): store tree * instead of
2511 tree.
2512 (finalize_ssa_uses): Adjust.
2513 (append_use): Likewise.
2514 (verify_ssa_operands): Likewise.
2515
2516 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2517
2518 * real.h (build_real_truncate): Declare.
2519 * tree.c (build_real_truncate): New function.
2520 (strip_float_extensions): Use it.
2521 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2522 (fold_builtin_hypot, fold_builtin_pow): Likewise.
2523 * match.pd: Likewise.
2524
2525 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2526 Jiong Wang <jiong.wang@arm.com>
2527
2528 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2529
2530 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2531
2532 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2533 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2534 (aarch64_print_operand, aarch64_float_const_representable_p)
2535 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2536 instead of REAL_VALUE_FROM_CONST_DOUBLE.
2537 * config/arc/arc.c (arc_print_operand): Likewise.
2538 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2539 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2540 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2541 Likewise.
2542 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2543 (consttable_16): Likewise.
2544 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2545 * config/avr/avr.c (avr_print_operand): Likewise.
2546 * config/bfin/bfin.md: Likewise (in a define_split).
2547 * config/c6x/c6x.md: Likewise (in a define_split).
2548 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2549 (cr16_print_operand): Likewise.
2550 * config/cris/cris.c (cris_print_operand): Likewise.
2551 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2552 * config/fr30/fr30.c (fr30_print_operand): Likewise.
2553 (fr30_const_double_is_zero): Likewise.
2554 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2555 * config/frv/frv.md: Likewise (in a define_split).
2556 * config/frv/predicates.md (int_2word_operand): Likewise.
2557 * config/h8300/h8300.c (h8300_print_operand): Likewise.
2558 * config/i386/i386.c (standard_80387_constant_p): Likewise.
2559 (ix86_print_operand, ix86_split_to_parts): Likewise.
2560 * config/i386/i386.md: Likewise (in a define_split).
2561 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2562 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2563 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2564 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2565 (print_operand): Likewise.
2566 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2567 * config/mep/mep.md: Likewise (in define_split).
2568 * config/microblaze/microblaze.c (microblaze_const_double_ok)
2569 (print_operand): Likewise.
2570 * config/mips/mips.md (consttable_float): Likewise.
2571 * config/mmix/mmix.c (mmix_intval): Likewise.
2572 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2573 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2574 * config/pa/pa.c (pa_singlemove_string): Likewise.
2575 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2576 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2577 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2578 (output_toc): Likewise.
2579 * config/rs6000/rs6000.md: Likewise (in define_splits).
2580 * config/rx/rx.c (rx_print_operand): Likewise.
2581 * config/s390/s390.c (s390_output_pool_entry): Likewise.
2582 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2583 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2584 (and also in define_splits).
2585 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2586 (fp_high_losum_p): Likewise.
2587 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2588 (*movsf_high): Likewise.
2589 * config/spu/spu.c (const_double_to_hwint): Likewise.
2590 * config/v850/v850.c (const_double_split): Likewise.
2591 * config/vax/vax.c (vax_float_literal): Likewise.
2592 * config/visium/visium.c (visium_expand_copysign): Likewise.
2593 * config/visium/visium.md: Likewise (in define_split).
2594 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2595 * config/xtensa/xtensa.c (print_operand): Likewise.
2596 (xtensa_output_literal): Likewise.
2597 * cprop.c (implicit_set_cond_p): Likewise.
2598 * dwarf2out.c (insert_float): Likewise.
2599 * expmed.c (expand_mult, make_tree): Likewise.
2600 * expr.c (compress_float_constant): Likewise.
2601 * rtlanal.c (split_double): Likewise.
2602 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2603 (simplify_const_unary_operation, simplify_binary_operation_1)
2604 (simplify_const_binary_operation): Likewise.
2605 (simplify_const_relational_operation): Likewise.
2606 * varasm.c (output_constant_pool_2): Likewise.
2607
2608 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2609
2610 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2611 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2612 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2613 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2614 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2615 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2616 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2617 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2618 (ix86_emit_swsqrtsf): Likewise.
2619 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2620 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2621 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2622 * config/pa/pa.c (pa_expand_builtin): Likewise.
2623 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2624 (rs6000_scale_v2df): Likewise.
2625 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2626 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2627 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2628 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2629 (vec_ctul): Likewise.
2630 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2631 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2632 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2633 * cse.c (fold_rtx): Likewise.
2634 * emit-rtl.c (immed_double_const): Likewise (in comments).
2635 (init_emit_once): Likewise.
2636 * expr.c (compress_float_constant, expand_expr_real_1)
2637 (const_vector_from_tree): Likewise.
2638 * optabs.c (expand_float, expand_fix): Likewise.
2639 * reg-stack.c (reg_to_stack): Likewise.
2640 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2641 (simplify_const_unary_operation, simplify_binary_operation_1)
2642 (simplify_const_binary_operation, simplify_relational_operation)
2643 (simplify_immed_subreg): Likewise.
2644
2645 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2646
2647 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2648 * doc/tm.texi: Regenerate.
2649 * real.h (REAL_ARITHMETIC): Delete.
2650 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2651 (ix86_expand_round_sse4): Use real_arithmetic instead of
2652 REAL_ARITHMETIC.
2653 * config/i386/sse.md (round<mode>2): Likewise.
2654 * rtl.h (rtx_to_tree_code): Likewise (in comment).
2655 * explow.c (rtx_to_tree_code): Likewise (in comment).
2656 * match.pd: Likewise.
2657 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2658 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2659 (expand_pow_as_sqrts): Likewise.
2660 * tree-pretty-print.c (dump_generic_node): Remove code that
2661 was conditional on REAL_ARITHMETIC being undefined.
2662
2663 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2666 * doc/tm.texi: Regenerate.
2667 * real.h (real_less): Declare.
2668 (REAL_VALUES_LESS): Delete.
2669 * real.c (real_less): New function.
2670 (real_compare): Use it.
2671 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2672 of REAL_VALUES_LESS.
2673 * config/microblaze/microblaze.c (microblaze_const_double_ok):
2674 Likewise.
2675 * fold-const.c (fold_convert_const_int_from_real): Likewise.
2676 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2677 (simplify_const_relational_operation): Likewise.
2678 * tree-call-cdce.c (check_pow): Likewise.
2679 (gen_conditions_for_pow_cst_base): Likewise.
2680
2681 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2682
2683 * real.h (REAL_VALUES_IDENTICAL): Delete.
2684 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2685 instead of REAL_VALUES_IDENTICAL.
2686 * fold-const.c (operand_equal_p): Likewise.
2687 * ipa-icf.c (sem_variable::equals): Likewise.
2688 * tree-complex.c (some_nonzerop): Likewise.
2689 (expand_complex_multiplication): Likewise.
2690 * tree.c (simple_cst_equal): Likewise.
2691 * varasm.c (compare_constant): Likewise.
2692
2693 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2694
2695 * real.h (real_equal): Declare.
2696 (REAL_VALUES_EQUAL): Delete.
2697 * real.c (real_equal): New function.
2698 (real_compare): Use it.
2699 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2700 * doc/tm.texi: Regenerate.
2701 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2702 real_equal instead of REAL_VALUES_EQUAL.
2703 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2704 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2705 (fp_const_from_val): Likewise.
2706 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2707 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2708 (floating_exact_log2): Likewise.
2709 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2710 * config/vax/vax.c (vax_float_literal): Likewise.
2711 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2712 * cprop.c (implicit_set_cond_p): Likewise.
2713 * expmed.c (expand_mult): Likewise.
2714 * fold-const.c (const_binop): Likewise.
2715 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2716 (simplify_const_binary_operation): Likewise.
2717 (simplify_const_relational_operation): Likewise.
2718 * tree-call-cdce.c (check_pow): Likewise.
2719 (gen_conditions_for_pow_cst_base): Likewise.
2720 * tree-inline.c (estimate_num_insns): Likewise.
2721 * tree-ssa-dom.c (record_equality): Likewise.
2722 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2723 (gimple_expand_builtin_pow): Likewise.
2724 (pass_optimize_widening_mul::execute): Likewise.
2725 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2726 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2727 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2728
2729 2015-10-05 Richard Biener <rguenther@suse.de>
2730
2731 PR ipa/67783
2732 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2733 consider loop header PHI defs as IVs.
2734
2735 2015-10-05 Richard Biener <rguenther@suse.de>
2736
2737 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2738 call handling ...
2739 (create_expression_by_pieces): ... here and build GIMPLE
2740 calls directly. Use gimple_build API and avoid force_gimple_operand.
2741 (insert_into_preds_of_block): Simplify.
2742 (do_regular_insertion): Add comment.
2743
2744 2015-10-04 Jason Merrill <jason@redhat.com>
2745
2746 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2747
2748 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
2749
2750 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2751 check for general register.
2752 (ix86_emit_save_regs): Ditto.
2753 (ix86_emit_save_regs_using_mov): Ditto.
2754 (ix86_emit_restore_regs_using_pop): Ditto.
2755 (ix86_emit_restore_regs_using_mov): Ditto.
2756
2757 2015-10-03 Marek Polacek <polacek@redhat.com>
2758
2759 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2760 (insn-dfatab.o): Likewise.
2761
2762 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
2763
2764 * config.gcc (xtensa*-*-uclinux*): New configuration.
2765 * config/xtensa/uclinux.h: New file.
2766 * config/xtensa/uclinux.opt: New file.
2767
2768 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
2769
2770 * doc/cpp.texi (Standard Predefined Macros): Document value of
2771 __cplusplus for C++14.
2772
2773 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
2774
2775 * gcc.c (process_command): Use spec_machine rather than
2776 spec_host_machine to build tooldir_prefix2.
2777
2778 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2779 Bernd Schmidt <bernds@codesourcery.com>
2780
2781 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2782 (Token, Stmt): Remove structs.
2783 (decls, vars, fns): Remove variables.
2784 (alloc_comment, append_stmt, is_keyword): Remove macros.
2785 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2786 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2787 (parse_init, parse_file): Remove functions.
2788 (read_file): Accept a pointer to a length and store into it.
2789 (process): Don't try to parse the input file, just write it out as
2790 a string, but looking for maps. Also write out the length.
2791 (main): Don't use "-S" to compile PTX code.
2792
2793 2015-10-02 Jeff Law <law@redhat.com>
2794
2795 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2796 fixups.
2797
2798 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2799
2800 PR target/67822
2801 * config/nvptx/mkoffload.c (main): Scan the argument vector for
2802 -fopenmp, and skip generating an offloading image if specified.
2803
2804 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
2805
2806 * system.h (ROUND_UP): New macro definition.
2807 (ROUND_DOWN): Ditto.
2808 * ggc-page.c (ROUND_UP): Remove local macro definition.
2809 (PAGE_ALIGN): Implement using ROUND_UP macro.
2810
2811 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2812 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2813 to align values.
2814 (ix86_compute_frame_layout): Ditto.
2815 (ix86_expand_prologue): Ditto.
2816 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2817 to round down values.
2818 (expand_set_or_movmem_via_rep): Ditto.
2819
2820 2015-10-02 Marek Polacek <polacek@redhat.com>
2821
2822 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2823
2824 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
2825
2826 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2827 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2828 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2829 (free_gimple_bb): Renamed free_gimple_poly_bb.
2830 (try_generate_gimple_bb): Hoist loop invariant code.
2831 (analyze_drs_in_stmts): Same.
2832 (build_scop_drs): Call renamed functions.
2833 (new_pbb_from_pbb): Same.
2834 (scop_ivs_can_be_represented): Delete as functionality now moved to
2835 graphite-scop-detection.c
2836 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2837
2838 2015-10-02 Aditya Kumar <hiraditya@msn.com>
2839
2840 * graphite-scop-detection.c (stmt_has_side_effects): New function
2841 outlined from stmt_simple_for_scop_p.
2842 (graphite_can_represent_stmt): Same.
2843 (stmt_simple_for_scop_p): Moved code out of this function for better
2844 readability.
2845
2846 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2847
2848 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2849 F_AVX512IFMA.
2850 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2851
2852 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2853
2854 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2855
2856 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
2857
2858 PR rtl-optimization/67756
2859 * lra-constraints.c (match_reload): Add a new parameter. Use it
2860 for creating a pseudo with the same value.
2861 (curr_insn_transform): Pass a new argument to match_reload.
2862
2863 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2864
2865 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2866 (expand_vec_perm_even_odd_1): Handle V64QImode.
2867 (ix86_expand_vec_perm_const_1): Try expansion with
2868 expand_vec_perm_even_odd_trunc as well.
2869 * config/i386/sse.md (VI124_AVX512F): Rename to ...
2870 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2871 to V54QI.
2872 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2873 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2874 to V32HI and V16SI.
2875 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2876 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2877 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2878 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2879 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2880 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2881
2882 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2883
2884 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2885 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2886
2887 2015-10-02 Jason Merrill <jason@redhat.com>
2888
2889 PR c/59218
2890 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2891 (diagnose_tm_1_op): Also diagnose volatile accesses in
2892 transaction_safe function.
2893
2894 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
2895
2896 * system.h (malloc.h): Don't include obsolete header.
2897
2898 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2899
2900 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2901 (TLS_SECTION_ASM_FLAG): Delete.
2902
2903 2015-10-02 Marek Polacek <polacek@redhat.com>
2904
2905 PR c/64249
2906 * doc/invoke.texi: Document -Wduplicated-cond.
2907 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2908 (insn-dfatab.o): Likewise.
2909 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2910 warning.
2911
2912 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
2913
2914 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2915 sequences.
2916
2917 2015-10-02 Renlin Li <renlin.li@arm.com>
2918
2919 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2920
2921 2015-10-02 Renlin Li <renlin.li@arm.com>
2922
2923 PR target/66776
2924 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2925
2926 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927
2928 PR rtl-optimization/67786
2929 PR rtl-optimization/67787
2930 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2931 it modifies a reg used in the condition calculation.
2932
2933 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
2934
2935 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2936 alternatives for reads from memory and moves from general-purpose
2937 registers.
2938 (*aarch64_combinez_be<mode>): Likewise.
2939
2940 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
2941
2942 PR target/51726
2943 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2944 selectany within this function without need to keep attribute.
2945 (i386_pe_encode_section_info): Remove selectany-code.
2946
2947 2015-10-02 Richard Biener <rguenther@suse.de>
2948
2949 * tree-ssa-sccvn.c (has_VN_INFO): New function.
2950 (free_scc_vn): Use it.
2951 (visit_use): Remove dead code and refactor to use gassign
2952 and use less indentation.
2953
2954 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2955
2956 PR target/67788
2957 PR target/67789
2958 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2959 (rs6000_cannot_copy_insn_p): New function.
2960 * config/rs6000/rs6000.md (cannot_copy): New attribute.
2961 (load_toc_v4_PIC_1_normal): Set cannot_copy.
2962 (load_toc_v4_PIC_1_476): Ditto.
2963
2964 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2965
2966 * graphite-scop-detection.c (struct sese_l): New conversion constructor
2967 so that this type can be pushed into a vec.
2968 (class scop_builder): use sese_l to collect scops.
2969 (get_scops): New getter function.
2970 (remove_intersecting_scops): Use sese_l instead of scops_p.
2971 (intersects): Same.
2972 (add_scop): Same.
2973 (subsumes): Same.
2974 (remove_subscops): Same.
2975 (build_scops): Add scops to vec<scops_p> once all the scops have been
2976 detected.
2977
2978 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2979
2980 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2981 Renamed type from gimple_bb_p to gimple_poly_bb_p.
2982 (translate_isl_ast_node_user): Same.
2983 * graphite-poly.c (new_poly_bb): Same.
2984 * graphite-poly.h (gbb_from_bb): Same.
2985 * sese.h: Same.
2986 * graphite-sese-to-poly.c (new_gimple_bb):
2987 gimple_bb_p -> gimple_poly_bb_p
2988 (build_scop_scattering): Same.
2989 (find_params_in_bb): Same.
2990 (add_conditions_to_domain): Same.
2991 (sese_dom_walker::before_dom_children): Same.
2992 (analyze_drs_in_stmts): Same.
2993 (new_pbb_from_pbb): Same.
2994 (free_data_refs_aux): New pointer to type base_alias_pair.
2995 * graphite-sese-to-poly.h: Same.
2996 * sese.c (if_region_set_false_region): Fixed Indentation.
2997 (move_sese_in_condition): Same.
2998
2999 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3000 Aditya Kumar <aditya.k7@samsung.com>
3001
3002 PR tree-optimization/66980
3003 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3004 when data reference analysis has failed.
3005
3006 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3007 Aditya Kumar <aditya.k7@samsung.com>
3008
3009 PR tree-optimization/67754
3010 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3011 scev analysis on the same loop nest as analyze_drs_in_stmts.
3012 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3013 renamed...
3014 (try_generate_gimple_bb): Call outermost_loop_in_sese.
3015 (analyze_drs_in_stmts): Same.
3016 * sese.c (outermost_loop_in_sese): ...here.
3017
3018 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3019 Aditya Kumar <aditya.k7@samsung.com>
3020
3021 PR tree-optimization/67754
3022 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3023 recursion on the inner loops.
3024
3025 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3026
3027 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3028 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3029 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3030 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3031 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3032
3033 2015-10-01 Marek Polacek <polacek@redhat.com>
3034
3035 PR c/65345
3036 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3037 create_tmp_var_raw rather than create_tmp_var.
3038
3039 2015-10-01 Marek Polacek <polacek@redhat.com>
3040
3041 PR tree-optimization/67769
3042 * tree-ssa-phiopt.c (conditional_replacement): Call
3043 reset_flow_sensitive_info_in_bb.
3044 (minmax_replacement): Likewise.
3045 (abs_replacement): Likewise.
3046
3047 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
3048
3049 * builtins.c: Don't include gomp-constants.h.
3050 (fold_builtin_1): Don't fold acc_on_device here.
3051 * gimple-fold.c: Include gomp-constants.h.
3052 (gimple_fold_builtin_acc_on_device): New.
3053 (gimple_fold_builtin): Call it.
3054
3055 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
3056
3057 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3058 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3059
3060 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
3061
3062 * config/arm/aarch-common-protos.h
3063 (aarch_accumulator_forwarding): New.
3064 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3065 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3066 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3067 * config/arm/cortex-a53.md: Rewrite.
3068
3069 2015-10-01 Richard Biener <rguenther@suse.de>
3070
3071 * gimple-match.h (mprts_hook): Declare.
3072 * gimple-match.head.c (mprts_hook): Define.
3073 (maybe_push_res_to_seq): Use new hook.
3074 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3075 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3076 (vn_ssa_aux::has_constants): Remove.
3077 * tree-ssa-sccvn.c: Include gimple-match.h.
3078 (VN_INFO_GET): Assert we don't re-use SSA names.
3079 (vn_get_expr_for): Remove.
3080 (expr_has_constants): Likewise.
3081 (stmt_has_constants): Likewise.
3082 (simplify_binary_expression): Likewise.
3083 (simplify_unary_expression): Likewise.
3084 (vn_lookup_simplify_result): New hook.
3085 (visit_copy): Adjust.
3086 (visit_reference_op_call): Likewise.
3087 (visit_phi): Likewise.
3088 (visit_use): Likewise.
3089 (process_scc): Likewise.
3090 (init_scc_vn): Likewise.
3091 (visit_reference_op_load): Likewise. Use match-and-simplify and
3092 a gimple seq for inserted expressions.
3093 (try_to_simplify): Remove GENERIC stmt combining code.
3094 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3095 * tree-ssa-pre.c (eliminate_insert): Adjust.
3096 (eliminate_dom_walker::before_dom_children): Likewise.
3097
3098 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3099
3100 * doc/invoke.texi (Optimization Options): Add
3101 -freorder-blocks-algorithm=.
3102 (Optimize Options) <-O>: Add -freorder-blocks.
3103 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
3104 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3105 <-freorder-blocks>: Also enabled at levels -O and -Os.
3106 <-freorder-blocks-algorithm=>: Document new option.
3107
3108 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3109
3110 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3111 with flag_reorder_blocks_algorithm.
3112 * common.opt (freorder-blocks-algorithm=): New flag.
3113 (reorder_blocks_algorithm): New enum.
3114 * flag-types.h (reorder_blocks_algorithm): New enum.
3115 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3116 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3117
3118 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3119
3120 * bb-reorder.c: Add intro comment.
3121 (reorder_basic_blocks_software_trace_cache): Print a header to
3122 the dump file.
3123 (edge_order): New function.
3124 (reorder_basic_blocks_simple): New function.
3125 (reorder_basic_blocks): Choose between the STC and the simple
3126 algorithms (always choose the former).
3127
3128 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3129
3130 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3131 function, factored out from ...
3132 (reorder_basic_blocks): ... here.
3133
3134 2015-10-01 Tom de Vries <tom@codesourcery.com>
3135
3136 * tree-cfg.c (dump_function_to_file): Dump function attributes using
3137 __attribute__(()) string. Move dumping of function attributes to before
3138 function name.
3139
3140 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
3141
3142 PR target/66870
3143 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3144 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3145 based on gold linker version.
3146 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3147 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3148 * configure, config.in: Regenerate.
3149
3150 2015-10-01 Alan Modra <amodra@gmail.com>
3151
3152 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3153 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3154 (rs6000_output_mi_thunk): Likewise.
3155
3156 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3157
3158 * config/nvptx/mkoffload.c (process): Change offload data format.
3159
3160 2015-09-30 Jeff Law <law@redhat.com>
3161
3162 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3163 with constant conditions.
3164 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3165 (remove_ctrl_stmt_and_useless_edges): No longer static.
3166 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3167 (remove_ctrl_stmt_and_useless_edges): Likewise.
3168
3169 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3170 Cesar Philippidis <cesar@codesourcery.com>
3171
3172 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3173 (TARGET_GOACC_VALIDATE_DIMS): Override.
3174 * target.def (TARGET_GOACC): New target hook prefix.
3175 (validate_dims): New hook.
3176 * targhooks.h (default_goacc_validate_dims): New.
3177 * omp-low.c (oacc_validate_dims): New.
3178 (execute_oacc_device_lower): New.
3179 (default_goacc_validate_dims): New.
3180 (pass_data_oacc_device_lower): New.
3181 (pass_oacc_device_lower): New pass.
3182 (make_pass_oacc_device_lower): New.
3183 * tree-pass.h (make_pass_oacc_device_lower): Declare.
3184 * passes.def (pass_oacc_device_lower): Add it.
3185 * doc/tm.texi: Rebuilt.
3186 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3187 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3188
3189 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3190
3191 PR rtl-optimization/67037
3192 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3193
3194 2015-09-30 Bernd Schmidt <bernds@redhat.com>
3195
3196 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3197 * passes.c: Include tree-ssanames.h.
3198 (execute_function_todo): Flush the pending free SSA_NAMEs after
3199 eliminating unreachable basic blocks.
3200 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3201 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3202 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3203 (flush_ssanames_freelist): New function.
3204 (release_ssaname_fn): Put released names on the queue.
3205 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3206 * tree-ssanames.h (flush_ssanames_freelist): Declare.
3207
3208 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3209
3210 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3211 (generate_target_descr_file, generate_target_offloadend_file)
3212 (generate_host_descr_file, prepare_target_image): Pass it on.
3213 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3214 (compile_native, main): Pass it on.
3215 * lto-wrapper.c (compile_offload_image): Likewise.
3216
3217 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3218 Ilya Verbin <ilya.verbin@intel.com>
3219 Andrey Turetskiy <andrey.turetskiy@intel.com>
3220
3221 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3222 (prepare_target_image, main): Refactor argv building to use
3223 obstacks.
3224
3225 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3226
3227 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3228 * config/spu/spu.c (spu_expand_atomic_op): New function.
3229 * config/spu/spu.md (AINT): New mode iterator.
3230 (ATOMIC): New code iterator.
3231 (atomic_name, atomic_pred): New code predicates.
3232 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3233 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3234 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3235 "atomic_<atomic_name>_fetch<mode>"): Likewise.
3236
3237 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
3238
3239 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3240 debug insns.
3241 (scalar_chain::convert_reg): Likewise.
3242
3243 2015-09-30 Richard Biener <rguenther@suse.de>
3244
3245 * builtins.c: Add comment that no new simplifications should
3246 be added here.
3247
3248 2015-09-30 Marek Polacek <polacek@redhat.com>
3249
3250 PR tree-optimization/67690
3251 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3252 reset_flow_sensitive_info_in_bb.
3253 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3254 * tree-ssanames.c: Include "gimple-iterator.h".
3255 (reset_flow_sensitive_info_in_bb): New function.
3256 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3257
3258 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3259
3260 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3261 variable, replacing it with...
3262 (offload_abi): ... this new variable. Adjust all users.
3263 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3264
3265 2015-09-30 Matthias Klose <doko@ubuntu.com>
3266
3267 * configure.ac: Remove extraneous ;;.
3268 * configure: Regenerate.
3269
3270 2015-09-29 James Bowman <james.bowman@ftdichip.com>
3271
3272 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3273 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3274 predicate, disallow register for operand 2.
3275
3276 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
3277
3278 * graphite-dependences.c (scop_get_dependences): Moved in down
3279 in order to be visible to its caller.
3280 * graphite-poly.h: Removed compute_deps, and extend_schedule.
3281
3282 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3283 Aditya Kumar <aditya.k7@samsung.com>
3284
3285 PR tree-optimization/67754
3286 * graphite-optimize-isl.c (optimize_isl): Call
3287 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3288
3289 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
3290
3291 * builtins.c (expand_builtin_acc_on_device): Delete.
3292 (expand_builtin): Don't call it.
3293 (fold_builtin_1): Fold acc_on_device.
3294
3295 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3298 (ix86_nsaved_sseregs): Likewise.
3299
3300 2015-09-29 Jeff Law <law@redhat.com>
3301
3302 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3303 computation of unused value.
3304
3305 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3306 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3307 inline macro expansion.
3308
3309 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3310
3311 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3312 (gen_shl_sext): Likewise.
3313 * config/sh/sh.md (divsi3): Likewise.
3314 (imm->ext_dest_operand splitter): Likewise.
3315
3316 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3317 Aditya Kumar <aditya.k7@samsung.com>
3318
3319 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3320 (nb_data_writes_in_bb): Remove.
3321 (split_pbb): Remove.
3322 (split_reduction_stmt): Remove.
3323 (is_reduction_operation_p): Remove.
3324 (phi_contains_arg): Remove.
3325 (follow_ssa_with_commutative_ops): Remove.
3326 (detect_commutative_reduction_arg): Remove.
3327 (detect_commutative_reduction_assign): Remove.
3328 (follow_inital_value_to_phi): Remove.
3329 (edge_initial_value_for_loop_phi): Remove.
3330 (initial_value_for_loop_phi): Remove.
3331 (used_outside_reduction): Remove.
3332 (detect_commutative_reduction): Remove.
3333 (translate_scalar_reduction_to_array_for_stmt): Remove.
3334 (remove_phi): Remove.
3335 (dr_indices_valid_in_loop): Remove.
3336 (close_phi_written_to_memory): Remove.
3337 (translate_scalar_reduction_to_array): Remove.
3338 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3339 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3340 (rewrite_commutative_reductions_out_of_ssa): Remove.
3341 (build_poly_scop): Remove call to
3342 rewrite_commutative_reductions_out_of_ssa.
3343
3344 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
3345
3346 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3347 Add new insn types for vector load and store pairs.
3348 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3349 types "neon_ldp{,_q}".
3350 * config/arm/cortex-a57.md (neon_load_c): Add insn types
3351 "neon_ldp{,_q}".
3352 (neon_store_complex): Add insn types "neon_stp{,_q}".
3353 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3354 "neon_{ldp,stp}_q".
3355
3356 2015-09-29 Jeff Law <law@redhat.com>
3357
3358 * config/rx/constraints.md (Int08): Fix undefined left shift
3359 behaviour.
3360 (Sint08, Sint16, Sint24): Likewise.
3361 * config/rx/rx.c (rx_get_stack_layout): Likewise.
3362
3363 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3364 behaviour.
3365
3366 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3367 left shift behaviour.
3368 * config/msp430/constraints.md ('L' constraint): Similarly.
3369 ('Ys' constraint): Similarly.
3370
3371 2015-09-29 Richard Biener <rguenther@suse.de>
3372
3373 PR tree-optimization/67170
3374 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3375 the translate function pointer parameter to get the
3376 bool whether to disambiguate only by reference.
3377 (walk_non_aliased_vuses): Likewise.
3378 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3379 (get_continuation_for_phi_1): Likewise.
3380 (get_continuation_for_phi): Likewise.
3381 (walk_non_aliased_vuses): Likewise.
3382 * tree-ssa-sccvn.c (const_parms): New bitmap.
3383 (vn_reference_lookup_3): Adjust for interface change.
3384 Disambiguate parameters pointing to readonly memory.
3385 (free_scc_vn): Free const_parms.
3386 (run_scc_vn): Initialize const_parms from a fn spec attribute.
3387
3388 2015-09-29 Richard Biener <rguenther@suse.de>
3389
3390 PR tree-optimization/67741
3391 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3392 builtin calls with correct signature.
3393
3394 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
3395
3396 PR target/65105
3397 * config/i386/i386.c: Include dbgcnt.h.
3398 (has_non_address_hard_reg): New.
3399 (convertible_comparison_p): New.
3400 (scalar_to_vector_candidate_p): New.
3401 (remove_non_convertible_regs): New.
3402 (scalar_chain): New.
3403 (scalar_chain::scalar_chain): New.
3404 (scalar_chain::~scalar_chain): New.
3405 (scalar_chain::add_to_queue): New.
3406 (scalar_chain::mark_dual_mode_def): New.
3407 (scalar_chain::analyze_register_chain): New.
3408 (scalar_chain::add_insn): New.
3409 (scalar_chain::build): New.
3410 (scalar_chain::compute_convert_gain): New.
3411 (scalar_chain::replace_with_subreg): New.
3412 (scalar_chain::replace_with_subreg_in_insn): New.
3413 (scalar_chain::emit_conversion_insns): New.
3414 (scalar_chain::make_vector_copies): New.
3415 (scalar_chain::convert_reg): New.
3416 (scalar_chain::convert_op): New.
3417 (scalar_chain::convert_insn): New.
3418 (scalar_chain::convert): New.
3419 (convert_scalars_to_vector): New.
3420 (pass_data_stv): New.
3421 (pass_stv): New.
3422 (make_pass_stv): New.
3423 (ix86_option_override): Created and register stv pass.
3424 (flag_opts): Add -mstv.
3425 (ix86_option_override_internal): Likewise.
3426 * config/i386/i386.md (SWIM1248x): New.
3427 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3428 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3429 (*anddi3_doubleword): New.
3430 (*zext<mode>_doubleword): New.
3431 (*zextsi_doubleword): New.
3432 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3433 (*<code>di3_doubleword): New.
3434 * config/i386/i386.opt (mstv): New.
3435 * dbgcnt.def (stv_conversion): New.
3436
3437 2015-09-29 Tom de Vries <tom@codesourcery.com>
3438
3439 * tree-cfg.c (dump_function_to_file): Dump function attributes.
3440
3441 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3442
3443 PR target/67716
3444 * config/sh/sh.c (sh_override_options_after_change): New.
3445 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3446 (sh_option_override): Move align_loops, align_jumps and
3447 align_functions handling into sh_override_options_after_change.
3448
3449 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3450
3451 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3452 (nvptx_record_offload_symbol): Record function execution geometry.
3453 * config/nvptx/mkoffload.c (process): Include launch geometry in
3454 function data.
3455 * omp-low.c (oacc_launch_pack): New.
3456 (replace_oacc_fn_attrib): New.
3457 (set_oacc_fn_attrib): New.
3458 (get_oacc_fn_attrib): New.
3459 (expand_omp_target): Create keyed varargs for GOACC_parallel call
3460 generation.
3461 * omp-low.h (get_oacc_fn_attrib): Declare.
3462 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3463 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3464 * tree.h (OMP_CLAUSE_EXPR): New.
3465 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3466
3467 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3468 Sebastian Pop <s.pop@samsung.com>
3469
3470 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3471
3472 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3473 Sebastian Pop <s.pop@samsung.com>
3474
3475 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3476 * graphite-scop-detection.c (struct sese_l): New type.
3477 (get_entry_bb): API for getting entry bb of SESE.
3478 (get_exit_bb): API for getting exit bb of SESE.
3479 (class debug_printer): New type. Simple printer in debug mode.
3480 (trivially_empty_bb_p): New. Return true when BB is empty or
3481 contains only debug instructions.
3482 (graphite_can_represent_expr): Call scalar_evoution_in_region
3483 instead of analyze_scalar_evolution. Pass in scop instead of only
3484 the scop entry.
3485 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3486 scop entry.
3487 (stmt_simple_for_scop_p): Same.
3488 (harmful_stmt_in_bb): Same.
3489 (graphite_can_represent_loop): Deleted.
3490 (struct scopdet_info): Deleted.
3491 (scopdet_basic_block_info): Deleted.
3492 (build_scops_1): Deleted.
3493 (bb_in_sd_region): Deleted.
3494 (find_single_entry_edge): Deleted.
3495 (find_single_exit_edge): Deleted.
3496 (create_single_entry_edge): Deleted.
3497 (sd_region_without_exit): Deleted.
3498 (create_single_exit_edge): Deleted.
3499 (unmark_exit_edges): Deleted.
3500 (mark_exit_edges): Deleted.
3501 (create_sese_edges): Deleted.
3502 (build_graphite_scops): Deleted.
3503 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3504 (build_scops): Use the new scop_builder to build scops.
3505 (dot_all_scops_1): Use the new pretty printer. Print loop father
3506 as well.
3507 (loop_body_is_valid_scop): New. Return true if loop body is a
3508 valid scop.
3509 (class scop_builder): New. Builds SCoPs for polyhedral
3510 optimizations.
3511 (scop_builder): New constructor.
3512 (static sese_l invalid_sese): sese_l with invalid edges.
3513 (get_sese): Get an sese (from a loop) if possible, invalid_sese
3514 otherwise.
3515 (get_nearest_dom_with_single_entry): Get nearest dominator of a
3516 basic_block with single entry. Return NULL if we get to the
3517 beginning of a function.
3518 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3519 a basic_block with single exit. Return NULL if we get to the
3520 beginning of a function.
3521 (print_sese): Pretty-print SESE.
3522 (merge_sese): Merge two SESEs if possible and return the new SESE.
3523 (build_scop_depth): Start building the SCoP within a loop nest.
3524 (build_scop_breadth): Start building the SCoP at a single loop
3525 depth. Merge adjacent SESEs if valid.
3526 (can_represent_loop_1): Returns true if Graphite can represent
3527 loop inside SCoP. Helper for can_represent_loop.
3528 (can_represent_loop): Returns true if Graphite can represent LOOP
3529 and all its nested loops in SCoP.
3530 (loop_is_valid_scop): Returns true if LOOP and all its nests
3531 constitute a valid SCoP.
3532 (region_has_one_loop): Returns true of a region has only one loop.
3533 (add_scop): Add SCoP to the list of valid scops. Removes an
3534 already existing scop if it intersects with or subsumed by this one.
3535 (harmful_stmt_in_region): Returns true if SCoP has any statment
3536 which cannot be represented by Graphite.
3537 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3538 (remove_subscops): Remove any SCoP from the list of already found
3539 SCoPs, if subsumed by S1.
3540 (intersects): Return true if region bounded by SCoPs S1 and S2
3541 intersect.
3542 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3543 * graphite.c (print_graphite_scop_statistics):
3544 (print_graphite_statistics): Print SCoP info while debugging.
3545 (graphite_initialize): Early exit in case number of loops in a
3546 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3547 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3548 (graphite_finalize):
3549 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3550 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3551 (recompute_all_dominators): Recalculate POST_DOMINATORS.
3552 * tree-cfg.c (print_loops): Print the function name while printing
3553 loops.
3554
3555 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3556 Sebastian Pop <s.pop@samsung.com>
3557
3558 PR tree-optimization/67700
3559 * graphite-sese-to-poly.c (parameter_index_in_region): Call
3560 invariant_in_sese_p_rec.
3561 (extract_affine): Same.
3562 (rewrite_cross_bb_scalar_deps): Call update_ssa.
3563 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
3564 * sese.h (invariant_in_sese_p_rec): Declare.
3565
3566 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
3567
3568 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3569
3570 2015-09-28 Jiong Wang <jiong.wang@arm.com>
3571
3572 Revert:
3573 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3574 Jiong Wang <jiong.wang@arm.com>
3575
3576 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3577 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3578 (REG_CLASS_NAMES): Likewise.
3579 (REG_CLASS_CONTENTS): Likewise.
3580 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3581 (aarch64_register_move_cost): Likewise.
3582 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3583 possible.
3584 * config/aarch64/constraints.md (Uc0): New constraint.
3585
3586 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
3587
3588 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3589
3590 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
3591
3592 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3593 SECTION_EXCLUDE in XO mapping class.
3594
3595 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3596
3597 PR target/54236
3598 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3599 and handle ne and eq codes.
3600 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3601 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
3602 CONST_INT_P. Use reverse_condition.
3603 (sh_split_treg_set_expr): Likewise.
3604
3605 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
3606
3607 * config/arm/types.md (type): Add rotate_imm.
3608 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3609 ROR immediate case.
3610 (*rorsi3_insn_uxtw): Likewise.
3611 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3612 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3613 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3614
3615 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3616
3617 PR rtl-optimization/67481
3618 * ifcvt.c (contains_ccmode_rtx_p): New function.
3619 (insn_valid_noce_process_p): Use it.
3620
3621 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3622
3623 PR rtl-optimization/67456
3624 PR rtl-optimization/67464
3625 PR rtl-optimization/67465
3626 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3627 move in the mode of x. Handle combination of complex and simple
3628 block pairs as well as the case when one is empty.
3629
3630 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3631
3632 * doc/gimple.texi: Update references to gimple_statement_base.
3633 * gdbhooks.py: Likewise.
3634 * gimple.h: Likewise.
3635
3636 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3637
3638 * config/sparc/driver-sparc.c: map LEON to leon3
3639
3640 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3641
3642 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3643 and make it inverse to change default
3644 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3645 supervisor mode
3646 * doc/invoke.texi: Document change of default
3647
3648 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3649
3650 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3651 true on %f0 for a target without FPU.
3652 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3653 without FPU.
3654 (untyped_return): Do not load %f0 for a target without FPU.
3655
3656 2015-09-28 Andrew Pinski <apinski@cavium.com>
3657
3658 * config/aarch64/aarch64.md (prefetch):
3659 Change the predicate of operand 0 to register_operand.
3660
3661 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
3662
3663 * config/i386/predicates.md (register_sse4nonimm_operand): New
3664 predicate.
3665 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3666 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3667 Use register_sse4nonimm_operand as operand 0 predicate.
3668 (*vec_extractv8hi_sse2): Remove insn pattern.
3669 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3670 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3671
3672 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
3673 Kaz Kojima <kkojima@gcc.gnu.org>
3674
3675 PR target/67391
3676 * config/sh/sh-protos.h (sh_lra_p): Declare.
3677 * config/sh/sh.c (sh_lra_p): Make non-static.
3678 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3679 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
3680 Expand into addsi3_scr if operands[2] if needed.
3681 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
3682 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
3683 (addsi3_scr, *addsi3): New insn_and_split patterns.
3684
3685 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
3686
3687 PR rtl-optimization/64164
3688 PR tree-optimization/67312
3689 PR middle-end/67340
3690 PR middle-end/67490
3691 PR bootstrap/67597
3692 * cfgexpand.c (parm_in_stack_slot_p): Remove.
3693 (ssa_default_def_partition): Remove.
3694 (get_rtl_for_parm_ssa_default_def): Remove.
3695 (set_rtl): Check that RTL assignments match expectations.
3696 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
3697 default def location for params and results. Record SSA names
3698 or types in REG and MEM attrs, respectively.
3699 (set_parm_rtl): New.
3700 (expand_one_ssa_partition): Drop logic that assigned MEMs with
3701 unassigned addresses.
3702 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3703 deferred stack alloc vars.
3704 (expand_used_vars): Skip partitions holding parm default defs.
3705 Move adjust_one_expanded_partition_var loop...
3706 (pass_expand::execute): ... here. Drop redundant assert.
3707 Adjust comments before the final loop over all ssa names.
3708 Require assigned rtl of parms and results to match exactly.
3709 Reset its attributes to match them, not any other variables in
3710 the same partition.
3711 (expand_debug_expr): Use entry value for PARM's default defs
3712 only iff they have zero nondebug uses.
3713 * cfgexpand.h (parm_in_stack_slot_p): Remove.
3714 (get_rtl_for_parm_ssa_default_def): Remove.
3715 (set_parm_rtl): Declare.
3716 * doc/invoke.texi: Improve wording.
3717 * explow.c (promote_decl_mode): Fix promote_function_mode for
3718 result decls not by reference.
3719 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3720 bypass TYPE_MODE to get the actual vector mode.
3721 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
3722 2015-08-19's changes as follows. Drop include of
3723 basic-block.h and df.h.
3724 (rtl_for_parm): Remove.
3725 (maybe_reset_rtl_for_parm): Remove.
3726 (parm_in_unassigned_mem_p): Remove.
3727 (use_register_for_decl): Add logic for RESULT_DECLs matching
3728 assign_parms' behavior.
3729 (split_complex_args): Revert.
3730 (assign_parms_augmented_arg_list): Revert. Add comment
3731 referencing the logic above.
3732 (assign_parm_adjust_stack_rtl): Revert.
3733 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
3734 of SET_DECL_RTL. Set up a REG if the parm demands so.
3735 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
3736 calls into a single set_parm_rtl. Set up a temporary RTL
3737 temporarily for expand_assignment.
3738 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
3739 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
3740 (assign_bounds): Revert.
3741 (assign_parms): Revert. Use set_parm_rtl.
3742 (allocate_struct_function): Relayout result and parms of
3743 non-abstruct functions.
3744 (expand_function_start): Revert. Use set_parm_rtl. If the
3745 result is not a hard reg, create a pseudo from the promoted
3746 mode of the default def. Promote static chain mode.
3747 * tree-outof-ssa.c (remove_ssa_form): Drop unused
3748 partition_has_default_def. Set up
3749 partitions_for_parm_default_defs.
3750 (finish_out_of_ssa): Remove partition_has_default_def.
3751 Release partitions_for_parm_default_defs.
3752 * tree-outof-ssa.h (struct ssaexpand): Remove
3753 partition_has_default_def. Add
3754 partitions_for_parm_default_defs.
3755 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3756 stor-layout.h.
3757 (build_ssa_conflict_graph): Fix conflict-detection of default
3758 defs of even unused default defs of params and results.
3759 (for_all_parms): New.
3760 (create_default_def): New.
3761 (register_default_def): New.
3762 (coalesce_with_default): New.
3763 (create_outofssa_var_map): Create default defs for all parms
3764 and results, and register their partitions. Add GIMPLE_RETURN
3765 operands as coalesce candidates with results. Add default
3766 defs of each parm or result as coalesce candidates with its
3767 other defs. Mark each result def, and each default def of
3768 parms, as used_in_copy.
3769 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
3770 with the ssa names, even anonymous ones. Drop
3771 parm_in_stack_slot_p calls. Require same signedness and
3772 alignment.
3773 (coalesce_ssa_name): Add coalesce candidates for all defs of
3774 each parm and result, even unused ones.
3775 (parm_default_def_partition_arg): New type.
3776 (set_parm_default_def_partition): New.
3777 (get_parm_default_def_partitions): New.
3778 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3779 * tree-ssa-live.c (partition_view_init): Regard unused defs of
3780 parms and results as used.
3781 (verify_live_on_entry): Don't error out just because they're
3782 not live.
3783
3784 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
3785
3786 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3787 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3788 (output_fde): Don't output length for debug_frame on AIX.
3789 (output_call_frame_info): Don't output length for debug_frame on AIX.
3790 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3791 HAVE_XCOFF_DWARF_EXTRAS.
3792 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3793 HAVE_XCOFF_DWARF_EXTRAS.
3794 (output_compilation_unit_header): Don't output length on AIX.
3795 (output_pubnames): Don't output length on AIX.
3796 (output_aranges): Delete argument. Compute length locally. Don't
3797 output length on AIX.
3798 (output_line_info): Don't output length on AIX.
3799 (dwarf2out_finish): Don't compute aranges_length.
3800 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3801 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3802 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3803 symbol decoration for AIX.
3804 (rs6000_xcoff_debug_unwind_info): New.
3805 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3806 for SECTION_DEBUG.
3807 (rs6000_xcoff_declare_function_name): Emit different
3808 .function pseudo-op when DWARF2_DEBUG. Don't call
3809 xcoffout_declare_function for DWARF2_DEBUG.
3810 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3811 Redefine.
3812 * config/rs6000/aix71.h: New.
3813 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3814 locations support.
3815 * configure: Regenerate.
3816 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3817 DWARF support.
3818
3819 2015-09-26 Jeff Law <law@redhat.com>
3820
3821 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3822 behaviour.
3823 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3824 behaviour.
3825
3826 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3827 behaviour
3828
3829 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3830 undefined behaviour.
3831
3832 * config/cris/cris.md (asrandb): Fix left shift undefined
3833 behaviour.
3834 (asrandw): Likewise.
3835
3836 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
3837
3838 PR target/61578
3839 * lra-constarints.c (match_reload): Check presence of the input pseudo
3840 in the output operand.
3841
3842 2015-09-25 Tobias Burnus <burnus@net-b.de>
3843
3844 * doc/invoke.texi (-fsanitize): Minor wording tweak.
3845
3846 2015-09-25 Tobias Burnus <burnus@net-b.de>
3847
3848 * doc/invoke.texi (-fsanitize): Update URLs.
3849
3850 2015-09-25 Teresa Johnson <tejohnson@google.com>
3851
3852 * opts.c (finish_options): Unset -freorder-blocks-and-partition
3853 if not using profile.
3854
3855 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3856
3857 PR pretty-print/67567
3858 * pretty-print.c (pp_string): Add gcc_checking_assert.
3859 * pretty-print.h (output_buffer_append_r): Likewise.
3860
3861 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3862
3863 PR target/67675
3864 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3865 addr2 individually. Don't emit logical or insn if one is known to
3866 be aligned approriately.
3867 (sh_expand_cmpnstr): Likewise.
3868
3869 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
3870
3871 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3872 __builtin_aarch64_fp[sc]r arguments into a register.
3873
3874 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
3875
3876 * config.gcc (x86_archs): Replace lakemount with lakemont.
3877 (with_cpu): Likewise.
3878 (with_arch): Likewise.
3879 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3880 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
3881 __tune_lakemount__ with __tune_lakemont__.
3882 * config/i386/i386.c (lakemount_cost): Renamed to ...
3883 (lakemont_cost): This.
3884 (m_LAKEMOUNT): Renamed to ...
3885 (m_LAKEMONT): This.
3886 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3887 (processor_target_table): Replace "lakemount" with "lakemont".
3888 (processor_alias_table): Likewise.
3889 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3890 PROCESSOR_LAKEMONT.
3891 (ix86_adjust_cost): Likewise.
3892 (ia32_multipass_dfa_lookahead): Likewise.
3893 * config/i386/i386.h (processor_type): Likewise.
3894 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3895 * doc/invoke.texi: Replace lakemount with lakemont. Replace
3896 Lakemount with Lakemont.
3897
3898 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
3899
3900 * config.gcc (x86_archs): Replace iamcu with lakemount.
3901 (with_cpu): Likewise.
3902 (with_arch): Likewise.
3903 * doc/invoke.texi: Likewise.
3904 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3905 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
3906 __tune_iamcu__ with __tune_lakemount__.
3907 * config/i386/i386.c (iamcu_cost): Renamed to ...
3908 (lakemount_cost): This.
3909 (m_IAMCU): Renamed to ...
3910 (m_LAKEMOUNT): This.
3911 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3912 (processor_target_table): Replace "iamcu" with "lakemount".
3913 (processor_alias_table): Likewise.
3914 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3915 PROCESSOR_LAKEMOUNT.
3916 (ix86_adjust_cost): Likewise.
3917 (ia32_multipass_dfa_lookahead): Likewise.
3918 * config/i386/i386.h (processor_type): Likewise.
3919 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3920
3921 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
3922
3923 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3924 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3925 Declare.
3926 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3927 (pa_expand_compare_and_swap_loop): New.
3928 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3929 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3930 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3931 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3932 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3933 Revise.
3934
3935 2015-09-24 Michael Collison <michael.collison@linaro.org>
3936
3937 PR other/57195
3938 * read-md.c (read_name): Allow mode iterators inside angle
3939 brackets in rtl expressions.
3940
3941 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
3942
3943 PR target/61578
3944 * ira-color.c (update_allocno_cost): Add parameter.
3945 (update_costs_from_allocno): Decrease conflict cost. Pass the new
3946 parameter.
3947
3948 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3949
3950 PR driver/67640
3951 * opts-common.c (prune_options): Discard all -fdiagnostics-color
3952 but the last one, which is moved to the front to be processed
3953 first.
3954 * opts.c (enable_warning_as_error): Reject options that do not
3955 control warnings.
3956
3957 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3958
3959 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3960
3961 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3962
3963 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3964 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3965 (aarch64_cannot_force_const_mem): Likewise.
3966 (aarch64_classify_address): Likewise.
3967 (aarch64_classify_symbolic_expression): Likewise.
3968 (aarch64_print_operand): Likewise.
3969 (aarch64_classify_symbol): Likewise.
3970 (aarch64_mov_operand_p): Likewise.
3971 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3972 (aarch64_mov_operand): Likewise.
3973
3974 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
3975
3976 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3977 for info->spe_gp_size.
3978
3979 2015-09-24 Richard Biener <rguenther@suse.de>
3980
3981 PR lto/67699
3982 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3983 abstract origins.
3984
3985 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
3986
3987 * tree-object-size.c (plus_stmt_object_size)
3988 (cond_expr_object_size): Change the formal parameters from gimple
3989 to gimple *.
3990 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3991 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3992 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3993
3994 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3995
3996 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3997 Check for ld -type pie on Solaris 11.x and 12.
3998 * configure: Regenerate.
3999 * config.in: Regenerate.
4000
4001 * gcc.c (LD_PIE_SPEC): Allow redefinition.
4002
4003 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4004 (STARTFILE_SPEC): Use it.
4005 (ENDFILE_CRTEND_SPEC): Define.
4006 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4007 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4008 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4009 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4010 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4011 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4012 (ENDFILE_ARCH_SPEC): Define.
4013 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4014
4015 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4016
4017 * configure.ac (gcc_cv_solaris_crts): New test.
4018 * configure. Regenerate.
4019 * config.in: Regenerate.
4020 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4021 HAVE_SOLARIS_CRTS variant.
4022
4023 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4024
4025 * tree-inline.h (count_insns_seq): Delete prototype.
4026 (estimate_num_insns_seq): Define prototype.
4027 * tree-inline.c (count_insns_seq): Delete.
4028 (estimate_num_insns_seq): Remove static qualifier.
4029 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4030 with estimate_num_insns_seq.
4031
4032 2015-09-24 Richard Biener <rguenther@suse.de>
4033
4034 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4035 members.
4036 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4037 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
4038 offset.
4039 (ao_ref_init_from_vn_reference): Record clique and base in the
4040 built base.
4041 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4042
4043 2015-09-24 Richard Biener <rguenther@suse.de>
4044
4045 PR tree-optimization/48885
4046 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4047 as not including any restrict tags from other pointers.
4048
4049 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4050
4051 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4052 character when appending to offload_targets.
4053
4054 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4055 offload targets by commas, not colons.
4056 * config.in: Regenerate.
4057 * configure: Likewise.
4058 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4059 instead of setting up the default offload targets here...
4060 (process_command): ..., do it here.
4061 libgomp/
4062 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4063 targets are separated by commas.
4064 * config.h.in: Regenerate.
4065
4066 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4067 Nathan Sidwell <nathan@codesourcery.com>
4068
4069 * omp-low.h (omp_reduction_init_op): Declare.
4070 * omp-low.c (omp_reduction_init_op): New, broken out of ...
4071 (omp_reduction_init): ... here. Call it.
4072 * tree-parloops.c (initialize_reductions): Use
4073 omp_reduction_init_op.
4074
4075 2015-09-23 Richard Biener <rguenther@suse.de>
4076
4077 PR middle-end/67662
4078 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4079 undefined overflow unless they will cancel out.
4080
4081 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4082
4083 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4084 insn emit.
4085
4086 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4087
4088 PR c/49655
4089 * opts.h (write_langs): Declare.
4090 * opts-global.c (write_langs): Make it extern.
4091
4092 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
4093
4094 PR target/67391
4095 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4096 overlapping regs when matching the pattern.
4097
4098 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4099
4100 * config/aarch64/aarch64-simd.md
4101 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4102 (aarch64_float_truncate_hi_v4sf_le): New.
4103 (aarch64_float_truncate_hi_v4sf_be): Likewise.
4104
4105 2015-09-23 Richard Biener <rguenther@suse.de>
4106
4107 * tree-ssa-structalias.c (intra_create_variable_infos): Build
4108 representatives for all restrict qualified pointer destinations.
4109
4110 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4111
4112 * config/i386/i386.md (define_code_attr mshift): New.
4113 (define_mode_iterator SWI1248_AVX512BW): Rename ...
4114 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4115 only.
4116 (define_insn "*k<logic><mode>"): Use new iterator name.
4117 (define_insn "*<mshift><mode>3"): New.
4118
4119 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
4120
4121 PR middle-end/67649
4122 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4123 mark the block as accessible.
4124
4125 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
4126
4127 * function.c (thread_prologue_and_epilogue_insns): Delete
4128 orig_entry_edge argument to try_shrink_wrapping.
4129 * shrink-wrap.c (can_get_prologue): New function.
4130 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4131 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
4132 can_get_prologue where needed. Remove code that finds a single
4133 edge for the prologue. Remove code that tests if any reg clobbered
4134 by the prologue is live on the prologue edge. Remove code that finds
4135 the new prologue edge after duplicating blocks. Make a new prologue
4136 block and edge.
4137 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4138
4139 2015-09-22 Jeff Law <law@redhat.com>
4140
4141 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4142 behavior.
4143
4144 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
4145
4146 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
4147 -Wtemplates, -Wnamespaces): Document.
4148
4149 2015-09-22 Tom de Vries <tom@codesourcery.com>
4150
4151 PR tree-optimization/67671
4152 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4153 pointer references as restrict.
4154
4155 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4156
4157 * config/nios2/nios2.c (nios2_legitimize_address): When handling
4158 'reg + reloc' cases, allow first operand to be non-REG, and use
4159 force_reg() to enforce address pattern.
4160
4161 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
4162
4163 PR target/67480
4164 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4165 (define_mode_iterator VI12_AVX_AVX512F): New.
4166 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4167 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4168 (define_insn "*<code><mode>3"): ... Into new pattern using
4169 VI12_AVX_AVX512F iterators without masking.
4170
4171 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4172
4173 * config.gcc: Support "skylake-avx512".
4174 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4175 PROCESSOR_SKYLAKE_AVX512.
4176 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4177 (processor_target_table): Add "skylake-avx512".
4178 (PTA_SKYLAKE_AVX512): Define.
4179 (ix86_option_override_internal): Add "skylake_avx512".
4180 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4181 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4182 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4183 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4184 * doc/invoke.texi (skylake-avx512): New.
4185
4186 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4187
4188 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4189 operand in pattern.
4190 (define_insn "kunpcksi"): Ditto.
4191 (define_insn "kunpckdi"): Ditto.
4192
4193 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4194
4195 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4196 iterator instead of fixed modes.
4197
4198 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4199
4200 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4201 Adjust declaration.
4202 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4203 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
4204 out_result. Update to support update-fetch operations.
4205 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4206 Adjust for change to aarch64_gen_atomic_ldop.
4207 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4208 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4209 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4210 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4211 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4212
4213 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4214
4215 * config/aarch64/aarch64-protos.h
4216 (aarch64_atomic_ldop_supported_p): Declare.
4217 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4218 (enum aarch64_atomic_load_op_code): New.
4219 (aarch64_emit_atomic_load_op): New.
4220 (aarch64_gen_atomic_ldop): Update to support load-operate
4221 patterns.
4222 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4223 to an expander.
4224 (aarch64_atomic_<atomic_optab><mode>): New.
4225 (aarch64_atomic_<atomic_optab><mode>_lse): New.
4226 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4227 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4228 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4229
4230 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4231
4232 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4233 (UNSPECV_ATOMIC_LDOP_OR): New.
4234 (UNSPECV_ATOMIC_LDOP_BIC): New.
4235 (UNSPECV_ATOMIC_LDOP_XOR): New.
4236 (UNSPECV_ATOMIC_LDOP_PLUS): New.
4237 (ATOMIC_LDOP): New.
4238 (atomic_ldop): New.
4239 (aarch64_atomic_load<atomic_ldop><mode>): New.
4240
4241 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4242
4243 * config/aarch64/aarch64.md
4244 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4245 pattern.
4246
4247 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4248
4249 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4250 Declare.
4251 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4252 (aarch64_gen_atomic_ldop): New.
4253 (aarch64_split_atomic_op): Fix whitespace and add a comment.
4254 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4255 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4256 (atomic_exchange<mode>): Replace with an expander.
4257 (aarch64_atomic_exchange<mode>): New.
4258 (aarch64_atomic_exchange<mode>_lse): New.
4259 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4260 (aarch64_atomic_swp<mode>): New.
4261
4262 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4263
4264 * tree-inline.c (expand_call_inline): Use inform for extra note.
4265 Do not give a note with UNKNOWN_LOCATION.
4266 Replace input_location with gimple_location (stmt).
4267 Use true/false instead of TRUE/FALSE.
4268
4269 2015-09-22 Tom de Vries <tom@codesourcery.com>
4270
4271 PR tree-optimization/67666
4272 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4273 with single field non-conservative.
4274
4275 2015-09-21 David S. Miller <davem@davemloft.net>
4276
4277 PR/67622
4278 Revert:
4279 2015-09-11 David S. Miller <davem@davemloft.net>
4280
4281 * config/sparc/constraints.md: Make "U" constraint a real register
4282 constraint.
4283 * config/sparc/sparc.c (TARGET_LRA_P): Define.
4284 (D_MODES, DF_MODES): Add missing cast.
4285 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4286 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4287 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4288 cost to 8.
4289 * config/sparc/sparc.h (PROMOTE_MODE): Define.
4290 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4291 provide these insn when flag_pic.
4292
4293 2015-09-17 David S. Miller <davem@davemloft.net>
4294
4295 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4296 Declare.
4297 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4298 function.
4299 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4300 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4301 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4302 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4303 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4304 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4305 provide when flag_pic.
4306
4307 2015-09-21 Jeff Law <law@redhat.com>
4308
4309 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4310 behavior.
4311
4312 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4313
4314 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4315
4316 2015-09-21 Richard Biener <rguenther@suse.de>
4317
4318 * passes.c (rest_of_decl_compilation): Do not call
4319 dwarf2out_early_global_decl for aliases.
4320
4321 2015-09-21 Richard Biener <rguenther@suse.de>
4322
4323 PR debug/67664
4324 * dwarf2out.c (add_location_or_const_value_attribute): Remove
4325 attribute parameter. Early exit if either DW_AT_const_value
4326 or DW_AT_location are present already.
4327 (gen_variable_die): Adjust caller.
4328 (dwarf2out_late_global_decl): Likewise.
4329
4330 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4331
4332 PR target/67657
4333 * config/sh/sh.c (sh_remove_overlapping_post_inc,
4334 sh_peephole_emit_move_insn): Add new functions.
4335 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4336 sh_peephole_emit_move_insn): Declere them.
4337 * config/sh/sh.md: Use them in various peephole2 patterns.
4338
4339 2015-09-21 Richard Biener <rguenther@suse.de>
4340
4341 PR middle-end/67651
4342 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4343 address with -fno-delete-null-pointer-checks.
4344
4345 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
4346
4347 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4348 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4349 (reduc_uplus_v16qi): Remove.
4350
4351 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4352 (reduc_<VEC_reduc_name>_v2df): Remove.
4353 (reduc_<VEC_reduc_name>_v4sf): Remove.
4354 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4355
4356 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4357 gen_ function by removing * prefix.
4358 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4359
4360 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4361
4362 PR middle-end/60832
4363 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4364 Print i_bound without converting it to a tree.
4365
4366 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
4367
4368 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4369 operands[4] operands[5] swap with std::swap, removed tmp variable.
4370 (arm_evpc_neon_vzip): Replaced in0/in1 and
4371 out0/out1 swaps with std::swap, removed x variable.
4372 (arm_evpc_neon_vtrn): Replaced in0/int1 and
4373 out0/out1 swaos with std::swap, removed x variable.
4374 (arm_expand_vec_perm_const_1): Replaced
4375 d->op0/d->op1 swap with std::swap, removed x variable.
4376 (arm_evpc_neon_vuzp): Replaced in0/in1 and
4377 out0/out1 swaps with std::swap, removed x variable.
4378
4379 2015-09-21 Jonathan Yong <10walls@gmail.com>
4380
4381 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4382 sysroot/usr/lib/32api for additional win32 libraries,
4383 fixes failing Cygwin bootstrapping.
4384
4385 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4386
4387 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4388
4389 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4390
4391 PR target/67126
4392 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4393 (*mov_t_msb_neg): Rewrite negc pattern.
4394
4395 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4396
4397 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4398 immediate generation code.
4399
4400 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4401
4402 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4403 redundant immediate generation code.
4404
4405 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4406
4407 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4408 (AARCH64_NUM_BITMASKS): Remove.
4409 (aarch64_bitmasks_cmp): Remove.
4410 (aarch64_build_bitmask_table): Remove.
4411
4412 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4413
4414 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4415 slow immediate matching loops with a faster algorithm.
4416
4417 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4418
4419 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4420 faster algorithm.
4421
4422 2015-09-20 Jeff Law <law@redhat.com>
4423
4424 PR tree-optimization/47679
4425 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4426 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4427 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4428 (thread_through_normal_block): Use record_temporary_equivalences.
4429
4430 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
4431
4432 * coretypes.h (gimple): Change typedef to be a forward declaration.
4433 * gimple.h (gimple_statement_base): rename to gimple.
4434 * (all functions and types using gimple): Adjust.
4435 * *.[ch]: Likewise.
4436
4437 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
4438 David Edelsohn <dje.gcc@gmail.com>
4439
4440 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4441 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4442 (EH_FRAME_THROUGH_COLLECT2): Define.
4443 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4444 (ASM_OUTPUT_DWARF_PCREL): Define.
4445 (ASM_OUTPUT_DWARF_DATAREL): Define.
4446
4447 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
4448
4449 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4450 of TARGET_ELF32.
4451
4452 2015-09-18 Jeff Law <law@redhat.com>
4453
4454 PR tree-optimization/47679
4455 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
4456 it here ...
4457 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4458 object. Update constructor.
4459 (pass_dominator::execute): Corresponding chagnes to declaration
4460 and initialization of avail_exprs_stack. Update constructor call
4461 for dom_opt_dom_walker object.
4462 (lookup_avail_expr, record_cond): Accept additional argument. Pass
4463 it down to children as needed.
4464 (record_equivalences_from_incoming_edge): Likewise.
4465 (eliminate_redundant_computations): Likewise.
4466 (record_equivalences_from_stmt): Likewise.
4467 (simplify_stmt_for_jump_threading): Likewise.
4468 (record_temporary_equivalences): Likewise.
4469 (optimize_stmt): Likewise.
4470 (dom_opt_dom_walker::thread_across_edge): Update access to
4471 avail_exprs_stack object and pass it to children as needed.
4472 (dom_opt_dom_walker::before_dom_children): Similarly.
4473 (dom_opt_dom_walker::after_dom_children): Similarly.
4474 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4475 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4476 Add avail_expr_stack argument. Pass it to children as needed.
4477 (dummy_simplify): Likewise.
4478 (simplify_control_stmt_condition): Likewise.
4479 (thread_around_empty_blocks): Likewise.
4480 (thread_through_normal_block): Likewise.
4481 (thread_across_edge): Likewise.
4482 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4483 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4484
4485 PR tree-optimization/47679
4486 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
4487 it here ...
4488 (dom_opt_dom_walker): New private member holding the const_and_copies
4489 object. Update constructor.
4490 (pass_dominator::execute): Corresponding changes to declaration
4491 and initialization of const_and_copies. Update constructor call
4492 for the dom_opt_dom_walker object.
4493 (record_temporary_equivalences): Accept const_and_copies argument
4494 pass it down to children as needed.
4495 (record_equality): Likewise.
4496 (record_equivalences_from_incoming_edge): Likewise.
4497 (cprop_into_successor_phis, optimize_stmt): Likewise.
4498 (eliminate_redundant_computations): Likewise.
4499 (dom_opt_dom_walker::thread_across_edge): Update access to
4500 const_and_copies object and pass it to children as needed.
4501 (dom_opt_dom_walker::before_dom_children): Similarly.
4502 (dom_opt_dom_walker::after_dom_children): Similarly.
4503
4504 PR tree-optimization/47679
4505 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
4506 it into the avail_exprs_stack class.
4507 (pass_dominator::execute): Corresponding changes to declaration
4508 and initialization of avail_exprs. Pass avail_exprs to
4509 dump_dominator_optimization_stats.
4510 (record_cond): Extract avail_exprs from avail_exprs_stack.
4511 (lookup_avail_expr): Similarly.
4512 (htab_staticstics): Remove unnecessary prototype. Move to earlier
4513 position in file.
4514 (dump_dominator_optimization_stats): Make static and prototype.
4515 Add argument for the hash table to dump.
4516 (debug_dominator_optimization_stats): Remove.
4517 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4518 prototype.
4519 (debug_dominator_optimization_stats): Similarly.
4520 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4521 "void" in prototype for pop_to_marker method. Add accessor method
4522 for the underlying avail_exprs table.
4523
4524 * tree-ssa-threadedge.c: Remove trailing whitespace.
4525
4526 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
4527
4528 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4529 unsigned.
4530 (pa_ldil_cint_p): Likewise.
4531 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4532 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4533 Update callers.
4534 * config/pa/pa.md: Likewise.
4535
4536 2015-09-18 David Malcolm <dmalcolm@redhat.com>
4537
4538 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4539 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4540 (diagnostic_show_locus): Likewise.
4541 (diagnostic_print_caret_line): Likewise.
4542 * diagnostic-show-locus.c: New file.
4543
4544 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
4545
4546 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4547 "back" parameter. Declare label in #if block.
4548
4549 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
4550
4551 PR middle-end/67619
4552 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4553 the address to a register.
4554
4555 2015-09-18 Jeff Law <law@redhat.com>
4556
4557 PR tree-optimization/47679
4558 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4559 * tree-ssa-dom.c: Remove unnecessary header includes.
4560 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4561 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4562 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4563 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4564 (pass_phi_only_cprop::execute): Likewise.
4565 (make_pass_phi_only_cprop): Likewise.
4566 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
4567 uses of file scoped statics by passing the required objects
4568 as parameters wherever needed.
4569
4570 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
4571 David Edelsohn <dje.gcc@gmail.com>
4572
4573 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4574 EH_FRAME_THROUGH_COLLECT2.
4575 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4576 DW_EH_PE_datarel.
4577 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4578 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
4579 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4580 * except.c (switch_to_exception_section): Use a read-only section
4581 even if EH_FRAME_SECTION_NAME is undefined.
4582 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4583 * collect2.c (write_c_file_stat): Provide dbase on AIX.
4584 (scan_prog_file): Don't export __dso_handle nor
4585 __gcc_unwind_dbase.
4586 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4587 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4588 (ASM_OUTPUT_DWARF_PCREL): Define.
4589 (ASM_OUTPUT_DWARF_DATAREL): Define.
4590 (EH_FRAME_THROUGH_COLLECT2): Define.
4591 (EH_FRAME_IN_DATA_SECTION): Delete.
4592 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4593 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4594 Declare.
4595 (rs6000_asm_output_dwarf_datarel): Declare.
4596 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4597 (rs6000_aix_asm_output_dwarf_datarel): New.
4598 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4599 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4600 (EH_FRAME_THROUGH_COLLECT2): Define.
4601 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4602 (EH_FRAME_THROUGH_COLLECT2): Define.
4603 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4604 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4605 (EH_FRAME_THROUGH_COLLECT2): New.
4606 (ASM_OUTPUT_DWARF_DATAREL): New.
4607 * doc/tm.texi: Regenerate.
4608
4609 2015-09-18 Richard Biener <rguenther@suse.de>
4610
4611 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4612 we're in early phase.
4613 (schedule_generic_params_dies_gen): Likewise.
4614 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4615 work as possible, retaining unhandled cases.
4616 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4617 clear out generic_type_instances at the end.
4618 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4619 (dwarf2out_early_finish): ... here. Do most of
4620 gen_remaining_tmpl_value_param_die_attribute here.
4621
4622 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
4623
4624 PR tree-optimization/67283
4625 * tree-sra.c (type_consists_of_records_p): Rename to...
4626 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4627 (completely_scalarize_record): Rename to...
4628 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4629 (scalarize_elem): New.
4630 (analyze_all_variable_accesses): Follow renamings.
4631
4632 2015-09-18 Richard Biener <rguenther@suse.de>
4633
4634 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4635 in early-dwarf.
4636
4637 2015-09-18 Richard Biener <rguenther@suse.de>
4638
4639 PR tree-optimization/66142
4640 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4641 treat MEM[&x] and x the same.
4642 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4643 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4644 when we simplified sth.
4645 (vn_reference_maybe_forwprop_address): Likewise.
4646 (valueize_refs_1): When we simplified through
4647 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4648 set valueized_anything to true.
4649 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4650 one ref kills the other instead of just a offset-based test.
4651 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4652 for the operand_equal_p test to compare bases and also compare
4653 sizes.
4654
4655 2015-09-17 Christian Bruel <christian.bruel@st.com>
4656
4657 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4658
4659 2015-09-17 Richard Henderson <rth@redhat.com>
4660
4661 PR libstdc++/65913
4662 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4663 pointers that encode the alignment of the object.
4664
4665 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4666
4667 PR rtl-optimization/66790
4668 * df-problems.c (LIVE): Amend documentation.
4669
4670 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
4671
4672 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4673 and optabs-tree.o.
4674 (GTFILES): Replace optabs.c with optabs-libfunc.c.
4675 * genopinit.c (main): Add an include guard to insn-opinit.h.
4676 Protect the rtx_code parts with NUM_RTX_CODE.
4677 * optabs.h: Split parts out to...
4678 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4679 * optabs.c: Split parts out to...
4680 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4681 * cilk-common.c: Include optabs-query.h rather than optabs.h.
4682 * fold-const.c: Likewise.
4683 * target-globals.c: Likewise.
4684 * tree-if-conv.c: Likewise.
4685 * tree-ssa-forwprop.c: Likewise.
4686 * tree-ssa-loop-prefetch.c: Likewise.
4687 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4688 Remove unncessary include files.
4689 * tree-ssa-phiopt.c: Likewise.
4690 * tree-ssa-reassoc.c: Likewise.
4691 * tree-switch-conversion.c: Likewise.
4692 * tree-vect-data-refs.c: Likewise.
4693 * tree-vect-generic.c: Likewise.
4694 * tree-vect-loop.c: Likewise.
4695 * tree-vect-patterns.c: Likewise.
4696 * tree-vect-slp.c: Likewise.
4697 * tree-vect-stmts.c: Likewise.
4698 * tree-vrp.c: Likewise.
4699 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4700 rather than optabs.h.
4701 * expr.c: Include optabs-tree.h.
4702 * function.c: Likewise.
4703
4704 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4705
4706 PR middle-end/65958
4707 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4708 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4709 * config/arm/arm.c: Include common/common-target.h.
4710 (use_return_insn): Return 0 if the static chain register was saved
4711 above a non-APCS frame.
4712 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4713 (struct scratch_reg): New.
4714 (get_scratch_register_on_entry): New function.
4715 (release_scratch_register_on_entry): Likewise.
4716 (arm_emit_probe_stack_range): Likewise.
4717 (output_probe_stack_range): Likewise.
4718 (arm_expand_prologue): Factor out code dealing with the IP register
4719 for nested function and adjust it for stack checking.
4720 Invoke arm_emit_probe_stack_range if static builtin stack checking
4721 is enabled.
4722 (thumb1_expand_prologue): Sorry out if static builtin stack checking
4723 is enabled.
4724 (arm_expand_epilogue): Add the saved static chain register, if any, to
4725 the amount of pre-pushed registers to pop.
4726 (arm_frame_pointer_required): Return true if static stack checking is
4727 enabled and we want to catch the exception with the EABI unwinder.
4728 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4729 (UNSPEC_PROBE_STACK_RANGE): Likewise.
4730 * config/arm/arm.md (probe_stack): New insn.
4731 (probe_stack_range): Likewise.
4732
4733 2015-09-17 Richard Biener <rguenther@suse.de>
4734
4735 * genmatch.c (parser::parse_expr): Improve error message
4736 for mis-placed flags.
4737
4738 2015-09-17 Richard Biener <rguenther@suse.de>
4739
4740 * passes.c (rest_of_decl_compilation): Always call early_global_decl
4741 debug hook when we created a varpool node.
4742 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4743 dwarf2out_early_global_decl, when not just add location or
4744 value attributes to existing DIEs.
4745
4746 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
4747
4748 * config/aarch64/aarch64.md (copysigndf3): New.
4749 (copysignsf3): Likewise.
4750
4751 2015-09-17 David S. Miller <davem@davemloft.net>
4752
4753 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4754 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4755 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4756 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4757 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4758 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4759 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4760 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4761 provide when flag_pic.
4762
4763 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
4764
4765 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4766 object_allocator change.
4767
4768 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4769
4770 PR tree-optimization/66388
4771 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4772 (dump_iv): Dump no_overflow information.
4773 (alloc_iv): Initialize new field for struct iv.
4774 (mark_bivs): Count number of no_overflow bivs.
4775 (find_deriving_biv_for_expr, record_biv_for_address_use): New
4776 functions.
4777 (idx_find_step): Call new functions above.
4778 (add_candidate_1, add_candidate): New paramter.
4779 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4780 (get_computation_aff): Simplify convertion of cand for BIV.
4781 (get_computation_cost_at): Step cand's base if necessary.
4782
4783 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4784
4785 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4786 parameter.
4787 (tree_simplify_using_condition): Ditto.
4788 (simplify_using_initial_conditions): Ditto.
4789 (loop_exits_before_overflow): Pass new argument to function
4790 simplify_using_initial_conditions. Remove case for type conversions
4791 simplification.
4792 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4793 parameter.
4794 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4795 in iv base using loop initial conditions.
4796
4797 2015-09-16 Jeff Law <law@redhat.com>
4798
4799 PR tree-optimization/47679
4800 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4801 (free_all_edge_infos): Use it.
4802 (allocate_edge_info): Free preexisting edge info data.
4803 (pass_dominator::execute): Set up initial edge info structures.
4804 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4805 thread_across_edge.
4806 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4807 If non-null, then push/pop markers appropriately.
4808 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4809 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4810 thread-across_edge.
4811
4812 2015-09-16 James Bowman <james.bowman@ftdichip.com>
4813
4814 * config/ft32/ft32.c: Fix the memory address space predicate.
4815
4816 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
4817
4818 PR target/67573
4819 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4820 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4821
4822 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4823
4824 * toplev.h (check_global_declaration): Remove declaration.
4825 * toplev.c (check_global_declaration): Move to ...
4826 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4827 (analyze_functions): Update call.
4828
4829 2015-09-16 David S. Miller <davem@davemloft.net>
4830
4831 * lra-constraints.c (simplify_operand_subreg): Do not assume that
4832 lowpart of a SUBREG has offset zero.
4833
4834 2015-09-16 Jeff Law <law@redhat.com>
4835
4836 PR tree-optimization/47679
4837 * tree-ssa-dom.c (enum expr_kind): Moved from here to
4838 tree-ssa-scopedtables.h.
4839 (struct hashable_expr, class expr_hash_elt): Likewise.
4840 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4841 Move associated methods into tree-ssa-scopedtables.c.
4842 (avail_expr_hash, initialize_expr_from_cond): Similarly.
4843 (hashable_expr_equal_p, add_expr_commutative): Likewise.
4844 (add_hashable_expr): Likewise.
4845 (record_cond): Delete element directly.
4846 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4847 private copy ctor and assignment operator methods.
4848 (expr_elt_hasher): Inline trivial methods.
4849 (initialize_expr_from_cond): Prototype.
4850 * tree-ssa-scopedtables.c: Add necessary includes, functions and
4851 methods that were previously in tree-ssa-dom.c. Improve various
4852 comments.
4853
4854 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
4855
4856 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4857
4858 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
4859
4860 PR bootstrap/67587
4861 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4862 fixup_partitions.
4863
4864 2015-09-16 Richard Biener <rguenther@suse.de>
4865
4866 PR middle-end/67253
4867 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4868 location of possibly shared trees.
4869
4870 2015-09-16 Richard Biener <rguenther@suse.de>
4871
4872 PR middle-end/67271
4873 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4874
4875 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
4876
4877 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4878 offset and size computations instead of HOST_WIDE_INT.
4879
4880 2015-09-16 Richard Biener <rguenther@suse.de>
4881
4882 PR middle-end/67442
4883 * fold-const.c (extract_muldiv_1): Properly extend multiplication
4884 result before builting a tree via wide_int_to_tree.
4885
4886 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4887
4888 * Makefile.in: Add memory-block.cc
4889 (pool_allocator::initialize): Use fixed block size.
4890 (pool_allocator::release): Use memory_block_pool.
4891 (pool_allocator::allocate): Likewise.
4892 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4893 object pools.
4894 * cfg.c (initialize_original_copy_tables): Likewise.
4895 * cselib.c (elt_list_pool, elt_loc_list_pool,
4896 cselib_val_pool): Likewise.
4897 * df-problems.c (df_chain_alloc): Likewise.
4898 * df-scan.c (df_scan_alloc): Likewise.
4899 * dse.c (cse_store_info_pool, rtx_store_info_pool,
4900 read_info_type_pool, insn_info_type_pool, bb_info_pool,
4901 group_info_pool, deferred_change_pool): Likewise.
4902 * et-forest.c (et_nodes, et_occurrences): Likewise.
4903 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4904 ipcp_agg_lattice_pool): Likewise.
4905 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4906 * ipa-profile.c (histogram_pool): Likewise.
4907 * ipa-prop.c (ipa_refdesc_pool): Likewise.
4908 * ira-build.c (live_range_pool, allocno_pool, object_pool,
4909 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4910 * ira-color.c (update_cost_record_pool): Likewise.
4911 * lra-lives.c (lra_live_range_pool): Likewise.
4912 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4913 * memory-block.cc: New file.
4914 * memory-block.h: New file.
4915 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4916 * sched-deps.c (sched_deps_init): Likewise.
4917 * sel-sched-ir.c (sched_lists_pool): Likewise.
4918 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4919 * tree-sra.c (access_pool): Likewise.
4920 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4921 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4922 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4923 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4924 * tree-ssa-strlen.c (strinfo_pool): Likewise.
4925 * tree-ssa-structalias.c (variable_info_pool): Likewise.
4926 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4927 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4928
4929 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4930
4931 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4932 definition.
4933 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4934 call0 ABI.
4935
4936 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4937
4938 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4939 to pass TLS call argument, according to current ABI.
4940 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4941 callx0 for TLS call, according to current ABI.
4942
4943 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4944
4945 * tree-eh.c (lower_try_finally_dup_block): Clear location information
4946 on stack restore statements.
4947 (decide_copy_try_finally): Do not consider a stack restore statement as
4948 coming from sources.
4949
4950 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
4951
4952 * config/alpha/alpha.c (alpha_expand_block_clear): Use
4953 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4954
4955 2015-09-15 Jeff Law <law@redhat.com>
4956
4957 PR tree-optimization/47679
4958 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4959 methods and private members.
4960 (avail_exprs_stack): Similarly. Change type of global
4961 from a pair of expr_hash_elt_t to the new class.
4962 (expr_elt_hasher::hash): Corresponding changes.
4963 (expr_elt_hasher::equal): Similarly.
4964 (avail_expr_hash): Similarly.
4965 (pass_dominator::execute): Similarly.
4966 (dom_opt_dom_walker::thread_across_edge): Similarly.
4967 (record_cond): Similarly.
4968 (dom_opt_dom_walker::before_dom_children): Similarly.
4969 (dom_opt_dom_walker::after_dom_children): Similarly.
4970 (lookup_avail_expr): Likewise.
4971 (initialize_hash_element): Now a expr_hash_elt constructor.
4972 (initialize_hash_element_from_expr): Similarly.
4973 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4974 (free_expr_hash_elt): Call dtor for the element.
4975 (remove_local_expressions_from_table): Now the "pop_to_marker"
4976 method in the available_exprs_stack class.
4977 (avail_expr_stack::record_expr): Method factored out.
4978 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4979 Fix formatting.
4980 (hashable_expr_equal_p): Fix formatting.
4981
4982 2015-09-15 David Malcolm <dmalcolm@redhat.com>
4983
4984 * input.h (location_get_source_line): Drop "expanded_location"
4985 param in favor of a file and line number.
4986 * input.c (location_get_source_line): Likewise.
4987 (dump_location_info): Update for change in signature of
4988 location_get_source_line.
4989 * diagnostic.c (diagnostic_print_caret_line): Likewise.
4990
4991 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4992
4993 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4994 Bump to 4KB for SJLJ exceptions.
4995 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
4996 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4997 * doc/tm.texi: Regenerate.
4998
4999 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5000
5001 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5002 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
5003 Update prototype.
5004
5005 2015-09-15 Richard Biener <rguenther@suse.de>
5006
5007 PR tree-optimization/67470
5008 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5009 structure for PHI hoisting by inserting a forwarder block
5010 if appropriate.
5011
5012 2015-09-15 Christian Bruel <christian.bruel@st.com>
5013
5014 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5015 (arm_option_print): New function.
5016
5017 2015-09-15 Christian Bruel <christian.bruel@st.com>
5018
5019 PR target/52144
5020 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5021 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5022 Remove flags parameter.
5023 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5024 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5025 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5026 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5027 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5028 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5029 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5030 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5031
5032 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5033
5034 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5035
5036 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5037 AARCH64_VALID_SIMD_DREG_MODE.
5038
5039 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5040
5041 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5042 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5043 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5044 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5045 aarch64_ld4_lane<mode>): Combine together, making...
5046 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5047 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5048 aarch64_st4_lane<mode>): Combine together, making...
5049 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5050 * config/aarch64/iterators.md (nregs): Add comment.
5051
5052 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5053
5054 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5055 Change operand mode from <V_TWO_ELEM> to BLK.
5056 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5057 (aarch64_vec_store_lanesoi_lane<mode): Likewise
5058 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5059 (aarch64_ld2_lane<mode>): Likewise.
5060 (aarch64_st2_lane<VQ:mode>): Likewise.
5061 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5062
5063 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5064
5065 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5066 Change operand mode from <V_FOUR_ELEM> to BLK.
5067 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5068 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5069 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5070 (aarch64_ld4_lane<mode>): Likewise.
5071 (aarch64_st4_lane<mode>): Likewise.
5072 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5073
5074 2015-09-15 Richard Biener <rguenther@suse.de>
5075
5076 PR middle-end/67563
5077 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5078 transfer EH info from old to new stmt.
5079 (replace_call_with_value): Likewise.
5080 (replace_call_with_call_and_fold): Likewise.
5081 (gimple_fold_builtin_memory_op): Likewise.
5082 (gimple_fold_builtin_memset): Likewise.
5083 (gimple_fold_builtin_stpcpy): Likewise.
5084 (gimple_fold_call): Likewise.
5085
5086 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5087
5088 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5089 comment.
5090 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5091 (aarch64_simd_intEI_type_node): Likewise.
5092 (aarch64_simd_builtin_std_type): Remove EImode case.
5093 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5094 * config/aarch64/aarch64-modes.def: Remove EImode.
5095
5096 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5097
5098 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5099 Change operand mode from <V_THREE_ELEM> to BLK.
5100 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5101 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5102 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5103 (aarch64_ld3_lane<mode>): Likewise.
5104 (aarch64_st3_lane<mode>): Likewise.
5105 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5106
5107 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5108
5109 * config/aarch64/aarch64-simd.md
5110 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5111 Change all TImode operands to BLKmode.
5112 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5113 Change all EImode operands to BLKmode.
5114 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5115 Change all OImode operands to BLKmode.
5116
5117 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5118 and call set_mem_size.
5119 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5120
5121 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5122
5123 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5124
5125 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5126 to...
5127 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5128
5129 (vec_store_lanesci_lane<mode>): Rename to...
5130 (aarch64_vec_store_lanesci_lane<mode>): ...this.
5131
5132 (vec_store_lanesxi_lane<mode>): Rename to...
5133 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5134
5135 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5136 aarch64_st4_lane<mode>): Follow renaming.
5137
5138 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5139
5140 * config/s390/s390.c (s390_const_operand_ok): Add missing
5141 brackets.
5142
5143 2015-09-15 Richard Biener <rguenther@suse.de>
5144
5145 PR lto/67568
5146 * lto-streamer.h (lto_location_cache::current_sysp): Properly
5147 initialize.
5148 * lto-streamer-out.c (clear_line_info): Likewise.
5149
5150 2015-09-15 Richard Biener <rguenther@suse.de>
5151
5152 * doc/match-and-simplify.texi: Fix wording.
5153
5154 2015-09-15 Bin Cheng <bin.cheng@arm.com>
5155
5156 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5157 unnecessary type conversion in op1.
5158
5159 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5160
5161 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5162 (dup_block_and_redirect): Delete function.
5163 (can_dup_for_shrink_wrapping): New function.
5164 (fix_fake_fallthrough_edge): New function.
5165 (try_shrink_wrapping): Rewrite function.
5166 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5167
5168 2015-09-14 Rich Felker <dalias@libc.org>
5169
5170 * configure.ac: Change target pattern for sh TLS support
5171 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5172 * configure: Regenerate.
5173
5174 2015-09-14 Jeff Law <law@redhat.com>
5175
5176 PR tree-optimization/47679
5177 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5178 type rather than void *.
5179
5180 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5181
5182 PR fortran/67460
5183 * diagnostic.c (diagnostic_initialize): Do not set
5184 some_warnings_are_errors.
5185 (diagnostic_finish): Use DK_WERROR count instead.
5186 (diagnostic_report_diagnostic): Do not set
5187 some_warnings_are_errors.
5188 * diagnostic.h (struct diagnostic_context): Remove
5189 some_warnings_are_errors.
5190
5191 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
5192
5193 * config/sparc/predicates.md (const_all_ones_operand): Use
5194 CONSTM1_RTX to simplify definition.
5195
5196 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
5197
5198 PR target/67061
5199 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5200 Handle call insns.
5201
5202 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
5203
5204 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5205 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5206 OPT_fshow_column to handled saved option cases.
5207 (append_compiler_options): Do not skip the above added options.
5208
5209 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5210
5211 PR target/63304
5212 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5213 nopcrelative_literal_loads.
5214 (aarch64_classify_address): Likewise.
5215 (aarch64_constant_pool_reload_icode): Define.
5216 (aarch64_secondary_reload): Handle secondary reloads for
5217 literal pools.
5218 (aarch64_override_options): Handle nopcrelative_literal_loads.
5219 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5220 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5221 Define.
5222 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5223 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5224 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5225 predicate.
5226 * doc/invoke.texi (mpc-relative-literal-loads): Document.
5227
5228 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
5229
5230 PR middle-end/67401
5231 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5232 sync_compare_and_swap_optab libcall to target_oval.
5233
5234 2015-09-14 Marek Polacek <polacek@redhat.com>
5235
5236 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5237 value.
5238 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5239
5240 2015-09-11 Mark Wielaard <mjw@redhat.com>
5241
5242 PR c/28901
5243 * toplev.c (check_global_declaration): Check and use
5244 warn_unused_const_variable.
5245 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5246 (-Wunused-variable): Remove non-constant. For C implies
5247 -Wunused-const-variable.
5248 (-Wunused-const-variable): New.
5249
5250 2015-09-14 Richard Biener <rguenther@suse.de>
5251
5252 * doc/match-and-simplify.texi: Update for changed syntax
5253 of inner ifs and the new switch expression.
5254
5255 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
5256
5257 * config/i386/haswell.md: New file describing Haswell pipeline.
5258 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5259 haswell-like processors.
5260 (ix86_reassociation_width): Increase reassociation width for 64-bit
5261 Haswell processor family.
5262 * config/i386/i386.md: Introduce haswell cpu and include new md file.
5263
5264 2015-09-14 Richard Biener <rguenther@suse.de>
5265
5266 * doc/match-and-simplify.texi: Fixup some formatting issues
5267 and document the 's' flag.
5268
5269 2015-09-13 Olivier Hainque <hainque@adacore.com>
5270 Eric Botcazou <ebotcazou@adacore.com>
5271
5272 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5273 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
5274 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5275 (TARGET_CPU_gr5): Likewise.
5276 (TARGET_CPU_gr6): Likewise.
5277 (MULTILIB_DEFAULTS): Likewise.
5278 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5279 for mcpu=gr5 and mcpu=gr6.
5280 (MULTILIB_DIRNAMES): Adjust accordingly.
5281
5282 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5283
5284 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5285 (mem_ref_p): Likewise.
5286 (outermost_indep_loop): Adjust.
5287 (mem_ref_in_stmt): Likewise.
5288 (determine_max_movement): Likewise.
5289 (mem_ref_alloc): Likewise.
5290 (record_mem_ref_loc): Likewise.
5291 (set_ref_stored_in_loop): Likewise.
5292 (mark_ref_stored): Likewise.
5293 (gather_mem_refs_stmt): Likewise.
5294 (mem_refs_may_alias_p): Likewise.
5295 (for_all_locs_in_loop): Likewise.
5296 (struct rewrite_mem_ref_loc): Likewise.
5297 (rewrite_mem_refs): Likewise.
5298 (struct first_mem_ref_loc_1): Likewise.
5299 (first_mem_ref_loc): Likewise.
5300 (struct sm_set_flag_if_changed): Likewise.
5301 (execute_sm_if_changed_flag_set): Likewise.
5302 (execute_sm): Likewise.
5303 (hoist_memory_references):
5304 (struct ref_always_accessed): Likewise.
5305 (ref_always_accessed_p): Likewise.
5306 (refs_independent_p): Likewise.
5307 (record_dep_loop): Likewise.
5308 (ref_indep_loop_p_1): Likewise.
5309 (ref_indep_loop_p_2): Likewise.
5310 (ref_indep_loop_p): Likewise.
5311 (can_sm_ref_p): Likewise.
5312 (find_refs_for_sm): Likewise.
5313 (tree_ssa_lim_finalize): Likewise.
5314
5315 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5316
5317 * dwarf2out.c (dw_attr_ref): Remove typedef.
5318 (dw_line_info_ref): Likewise.
5319 (pubname_ref): Likewise.
5320 (dw_ranges_ref): Likewise.
5321 (dw_ranges_by_label_ref): Likewise.
5322 (comdat_type_node_ref): Likewise.
5323 (get_AT): Adjust.
5324 (get_AT_low_pc): Likewise.
5325 (get_AT_hi_pc): Likewise.
5326 (get_AT_string): Likewise.
5327 (get_AT_flag): Likewise.
5328 (get_AT_unsigned): Likewise.
5329 (get_AT_ref): Likewise.
5330 (get_AT_file): Likewise.
5331 (remove_AT): Likewise.
5332 (print_die): Likewise.
5333 (check_die): Likewise.
5334 (die_checksum): Likewise.
5335 (attr_checksum_ordered): Likewise.
5336 (struct checksum_attributes): Likewise.
5337 (collect_checksum_attributes): Likewise.
5338 (die_checksum_ordered): Likewise.
5339 (same_die_p): Likewise.
5340 (is_declaration_die): Likewise.
5341 (clone_die): Likewise.
5342 (clone_as_declaration): Likewise.
5343 (copy_declaration_context): Likewise.
5344 (break_out_comdat_types): Likewise.
5345 (copy_decls_walk): Likewise.
5346 (output_location_lists): Likewise.
5347 (external_ref_hasher::hash): Likewise.
5348 (optimize_external_refs_1): Likewise.
5349 (build_abbrev_table): Likewise.
5350 (size_of_die): Likewise.
5351 (unmark_all_dies): Likewise.
5352 (size_of_pubnames): Likewise.
5353 (output_die_abbrevs): Likewise.
5354 (output_die): Likewise.
5355 (output_pubnames): Likewise.
5356 (add_ranges_num): Likewise.
5357 (add_ranges_by_labels): Likewise.
5358 (add_high_low_attributes): Likewise.
5359 (gen_producer_string): Likewise.
5360 (dwarf2out_set_name): Likewise.
5361 (new_line_info_table): Likewise.
5362 (prune_unused_types_walk_attribs): Likewise.
5363 (prune_unused_types_update_strings): Likewise.
5364 (prune_unused_types): Likewise.
5365 (resolve_addr): Likewise.
5366 (optimize_location_lists_1): Likewise.
5367 (index_location_lists): Likewise.
5368 (dwarf2out_finish): Likewise.
5369
5370 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5371
5372 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5373
5374 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5375
5376 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5377 (dump_asserts_for): Adjust.
5378 (register_new_assert_for): Likewise.
5379 (process_assert_insertions): Likewise.
5380 (insert_range_assertions): Likewise.
5381
5382 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5383
5384 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5385 and remove typedef.
5386 (new_temp_expr_table): Adjust.
5387 (free_temp_expr_table): Likewise.
5388 (version_to_be_replaced_p): Likewise.
5389 (make_dependent_on_partition): Likewise.
5390 (add_to_partition_kill_list): Likewise.
5391 (remove_from_partition_kill_list): Likewise.
5392 (add_dependence): Likewise.
5393 (finished_with_expr): Likewise.
5394 (process_replaceable): Likewise.
5395 (kill_expr): Likewise.
5396 (kill_virtual_exprs): Likewise.
5397 (mark_replaceable): Likewise.
5398 (find_replaceable_in_bb): Likewise.
5399 (find_replaceable_exprs): Likewise.
5400 (debug_ter): Likewise.
5401
5402 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5403
5404 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5405 (struct btr_user): Rename from btr_user_s.
5406 (struct btr_def): Rename from btr_def_s.
5407 (find_btr_def_group): Adjust.
5408 (add_btr_def): Likewise.
5409 (new_btr_user): Likewise.
5410 (note_other_use_this_block): Likewise.
5411 (compute_defs_uses_and_gen): Likewise.
5412 (link_btr_uses): Likewise.
5413 (build_btr_def_use_webs): Likewise.
5414 (block_at_edge_of_live_range_p): Likewise.
5415 (btr_def_live_range): Likewise.
5416 (combine_btr_defs): Likewise.
5417 (move_btr_def): Likewise.
5418 (migrate_btr_def): Likewise.
5419 (migrate_btr_defs): Likewise.
5420
5421 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5422
5423 * var-tracking.c (shared_hash_def): Rename to shared_hash.
5424 (shared_hash): Remove typedef.
5425 (struct dataflow_set): Adjust.
5426 (shared_hash_unshare): Likewise.
5427 (dataflow_set_merge): Likewise.
5428 (vt_initialize): Likewise.
5429 (vt_finalize): Likewise.
5430
5431 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5432
5433 * var-tracking.c (struct location_chain): Rename from
5434 location_chain_def.
5435 (struct variable_part): Adjust.
5436 (variable_htab_free): Likewise.
5437 (unshare_variable): Likewise.
5438 (get_init_value): Likewise.
5439 (get_addr_from_local_cache): Likewise.
5440 (drop_overlapping_mem_locs): Likewise.
5441 (val_reset): Likewise.
5442 (struct variable_union_info): Likewise.
5443 (variable_union): Likewise.
5444 (find_loc_in_1pdv): Likewise.
5445 (insert_into_intersection): Likewise.
5446 (intersect_loc_chains): Likewise.
5447 (canonicalize_loc_order_check): Likewise.
5448 (canonicalize_values_mark): Likewise.
5449 (canonicalize_values_star): Likewise.
5450 (canonicalize_vars_star): Likewise.
5451 (variable_merge_over_cur): Likewise.
5452 (remove_duplicate_values): Likewise.
5453 (variable_post_merge_new_vals): Likewise.
5454 (variable_post_merge_perm_vals): Likewise.
5455 (find_mem_expr_in_1pdv): Likewise.
5456 (dataflow_set_preserve_mem_locs): Likewise.
5457 (dataflow_set_remove_mem_locs): Likewise.
5458 (variable_part_different_p): Likewise.
5459 (onepart_variable_different_p): Likewise.
5460 (find_src_set_src): Likewise.
5461 (dump_var): Likewise.
5462 (set_slot_part): Likewise.
5463 (clobber_slot_part): Likewise.
5464 (delete_slot_part): Likewise.
5465 (vt_expand_var_loc_chain): Likewise.
5466 (emit_note_insn_var_location): Likewise.
5467 (vt_finalize): Likewise.
5468
5469 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5470
5471 * dse.c (store_info_t): Remove typedef.
5472 (group_info_t): Likewise.
5473 (const_group_info_t): Likewise.
5474 (deferred_change_t): Likewise.
5475 (get_group_info): Adjust.
5476 (free_store_info): Likewise.
5477 (canon_address): Likewise.
5478 (clear_rhs_from_active_local_stores): Likewise.
5479 (record_store): Likewise.
5480 (replace_read): Likewise.
5481 (check_mem_read_rtx): Likewise.
5482 (scan_insn): Likewise.
5483 (remove_useless_values): Likewise.
5484 (dse_step1): Likewise.
5485 (dse_step2_init): Likewise.
5486 (dse_step2_nospill): Likewise.
5487 (scan_stores_nospill): Likewise.
5488 (scan_reads_nospill): Likewise.
5489 (dse_step3_exit_block_scan): Likewise.
5490 (dse_step3): Likewise.
5491 (dse_step5_nospill): Likewise.
5492 (dse_step6): Likewise.
5493
5494 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5495
5496 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5497 (alias_set_entry): Remove typedef.
5498 (alias_set_subset_of): Adjust.
5499 (alias_sets_conflict_p): Likewise.
5500 (init_alias_set_entry): Likewise.
5501 (get_alias_set): Likewise.
5502 (new_alias_set): Likewise.
5503 (record_alias_subset): Likewise.
5504
5505 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
5506
5507 * doc/install.texi (Downloading the source): Mark up
5508 contrib/download_prerequisites properly and drop leading "./".
5509
5510 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5511
5512 * config/arc/arc.h: Remove define of STRUCT_VALUE.
5513 * config/lm32/lm32.h: Likewise.
5514 * config/mep/mep.h: Likewise.
5515 * config/visium/visium.h: Likewise.
5516 * system.h: Poison STRUCT_VALUE macro.
5517
5518 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
5519
5520 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5521 CONSTANT_P operands.
5522
5523 2015-09-11 David S. Miller <davem@davemloft.net>
5524
5525 * config/sparc/constraints.md: Make "U" constraint a real register
5526 constraint.
5527 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5528 (D_MODES, DF_MODES): Add missing cast.
5529 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5530 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5531 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5532 cost to 8.
5533 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5534 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5535 provide these insn when flag_pic.
5536
5537 2015-09-11 Jeff Law <law@redhat.com>
5538
5539 PR tree-optimization/47679
5540 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5541 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5542 member with m_. Update inline member functions as necessary. Add
5543 toplevel comment.
5544 * tree-ssa-scopedtables.c: Update const_and_copies's member
5545 functions to use m_ prefix to access the stack.
5546
5547 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5548
5549 * graphite-optimize-isl.c (disable_tiling): Remove.
5550 (get_schedule_for_band): Do not use disable_tiling.
5551 (get_prevector_map): Delete function.
5552 (enable_polly_vector): Remove.
5553 (get_schedule_for_band_list): Remove dead code.
5554
5555 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5556
5557 * graphite-optimize-isl.c (get_tile_map): Refactor.
5558 (get_schedule_for_band): Same.
5559 (getScheduleForBand): Same.
5560 (get_prevector_map): Same.
5561 (get_schedule_for_band_list): Same.
5562 (get_schedule_map): Same.
5563 (get_single_map): Same.
5564 (apply_schedule_map_to_scop): Same.
5565 (optimize_isl): Same.
5566
5567 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5568
5569 PR target/63304
5570 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5571 (movtf): Delete.
5572 * config/aarch64/iterators.md (GPF_TF_F16): New.
5573 (GPF_F16): Delete.
5574
5575 2015-09-10 Nathan Sidwell <nathan@acm.org>
5576
5577 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5578 (nvptx_reorg): Adjust comments.
5579
5580 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
5581
5582 PR bootstrap/67363
5583 * configure.ac: Check if setenv and unsetenv are declared.
5584 * configure: Rebuild.
5585 * config.in: Rebuild.
5586 * system.h: Declare setenv and unsetenv if not declared.
5587
5588 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5589
5590 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5591 commentary to simplify permute mask adjustment equation.
5592 (special_handling_values): Add SH_VPERM.
5593 (const_load_sequence_p): New function.
5594 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5595 the mask loaded from the constant pool.
5596 (adjust_vperm): New function.
5597 (handle_special_swappables): Call adjust_vperm.
5598 (dump_swap_insn_table): Handle SH_VPERM.
5599
5600 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
5601
5602 * shrink-wrap.c (requires_stack_frame_p): Remove static.
5603 * shrink-wrap.h (requires_stack_frame_p): Put back.
5604
5605 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
5606
5607 * reload1.c (elimination_costs_in_insn): Locally turn
5608 -Wmaybe-uninitialized into a warning.
5609
5610 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
5611
5612 * shrink-wrap.c (requires_stack_frame_p): Make static.
5613 (prepare_shrink_wrap): Likewise.
5614 (dup_block_and_redirect): Likewise.
5615 * shrink-wrap.h: Remove declarations of those functions.
5616
5617 2015-09-10 Mark Wielaard <mjw@redhat.com>
5618
5619 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5620
5621 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
5622
5623 PR target/67506
5624 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5625 missing simplify_gen_subreg.
5626
5627 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5628
5629 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5630 the vector element is bigger than 64 bit.
5631
5632 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5633
5634 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5635 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5636
5637 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5638
5639 * config/s390/s390.c: Add V1TImode to constant pool modes.
5640
5641 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5642
5643 PR target/67439
5644 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5645 predicate. Set predicable_short_it attr to "no".
5646
5647 2015-09-10 Jiong Wang <jiong.wang@arm.com>
5648
5649 PR rtl-optimization/67421
5650 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5651 left wide shift tranformation.
5652
5653 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5654
5655 * common/config/arc/arc-common.c: Remove references to A5.
5656 * config/arc/arc-opts.h: Likewise.
5657 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5658 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5659 * config/arc/t-arc-newlib: Likewise.
5660
5661 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5662
5663 * config/arc/arc.md (length): Fix attribute length for conditional
5664 executed instructions with long immediate.
5665
5666 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5667
5668 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5669 type for second alternative.
5670
5671 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
5672
5673 * doc/invoke.texi (Downloading GCC): Mention
5674 contrib/download_prerequisites script.
5675
5676 2015-09-10 Jakub Jelinek <jakub@redhat.com>
5677
5678 PR c++/67523
5679 * gimplify.c (gimplify_omp_for): If inner stmt is not found
5680 for combined loop, assert seen_error () and return GS_ERROR.
5681
5682 PR middle-end/67521
5683 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5684 if decl is already in outer->variables.
5685
5686 PR middle-end/67517
5687 * gimplify.c (gimplify_scan_omp_clauses): Instead of
5688 asserting that decl is not specified in octx->variables,
5689 break out of the loop if it is.
5690
5691 PR c++/67514
5692 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5693 iterator is not explicitly determined, but is defined inside
5694 of the combined workshare region, handle it like if it has
5695 DECL_EXPR in OMP_FOR_PRE_BODY.
5696
5697 2015-09-09 Nathan Sidwell <nathan@acm.org>
5698
5699 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5700 (*cmp<mode>): Add assembler spacing.
5701 (setcc_int<mode>, set_cc_float<mode>): Likewise.
5702 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5703 level.
5704 (write_func_decl_from_insn): Refactor argument loops & comma emission.
5705 (nvptx_expand_call): Likewise.
5706 (nvptx_output_call_insn): Likewise.
5707 (nvptx_reorg_subreg): Add spacing.
5708
5709 2015-09-09 Marek Polacek <polacek@redhat.com>
5710
5711 PR middle-end/67512
5712 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5713 for comparisons.
5714
5715 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5716
5717 PR c++/53184
5718 * doc/invoke.texi ([Wsubobject-linkage]): Document.
5719
5720 2015-09-09 Tom de Vries <tom@codesourcery.com>
5721
5722 * params-list.h: Add missing copyright notice.
5723
5724 2015-09-09 Nathan Sidwell <nathan@acm.org>
5725
5726 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5727 sel_truesi, not andsi.
5728
5729 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5730
5731 * config/arm/arm.md (*subsi3_compare0): Rename to...
5732 (subsi3_compare0): ... This.
5733 (modsi3): New define_expand.
5734 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5735 when operand is power of 2.
5736
5737 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5738
5739 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5740 (*neg<mode>2_compare0): Rename to...
5741 (neg<mode>2_compare0): ... This.
5742 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5743 Move check for speed inside the if-then-elses. Reflect
5744 CSNEG sequence in MOD by power of 2 case.
5745
5746 2015-09-09 Alan Modra <amodra@gmail.com>
5747
5748 PR target/67378
5749 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5750 reload replacement for PRE_MODIFY address reg.
5751
5752 2015-09-09 Sebastian Pop <s.pop@samsung.com>
5753
5754 PR tree-optimization/53852
5755 * config.in: Regenerate.
5756 * configure: Regenerate.
5757 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5758 * graphite-optimize-isl.c (optimize_isl): Stop computation when
5759 PARAM_MAX_ISL_OPERATIONS is reached.
5760 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5761 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5762 result equal to isl_stat_ok as the status now can be isl_error_quota.
5763 (subtract_commutative_associative_deps): Same.
5764 (compute_deps): Same.
5765
5766 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5767 Sebastian Pop <s.pop@samsung.com>
5768
5769 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5770 Return the parameter if it was saved in corresponding
5771 parameter_rename_map of the region.
5772 (copy_def): Copy def from sese region to the newly created region.
5773 (copy_internal_parameters): Copy all the internal parameters defined
5774 within a region to the newly created region.
5775 (graphite_regenerate_ast_isl): Copy parameters to the new region before
5776 translating isl to gimple.
5777 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5778 the loop-nest does not have any data-references.
5779 (build_graphite_scops): Create a scop only when there is at least one
5780 loop inside it.
5781 (contains_only_close_phi_nodes): Deleted.
5782 (print_graphite_scop_statistics): Deleted
5783 (print_graphite_statistics): Deleted
5784 (limit_scops): Deleted.
5785 (build_scops): Removed call to limit_scops.
5786 * sese.c (new_sese): Construct.
5787 (free_sese): Destruct.
5788 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5789 added.
5790 (set_rename): Pass sese region so that parameters inside the region can
5791 be added to its parameter_rename_map.
5792 (rename_uses): Pass sese region.
5793 (graphite_copy_stmts_from_block): Do not copy parameters that have been
5794 generated in the header of the scop. For each SSA_NAME in the
5795 parameter_rename_map rename its usage.
5796 (invariant_in_sese_p_rec): Return false if tree t is defined outside
5797 sese region.
5798 (scalar_evolution_in_region): If the tree t is invariant just return t.
5799 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5800 struct sese to keep track of all the parameters which need renaming.
5801 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5802 any data-refs.
5803 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5804
5805 2015-09-08 Tom de Vries <tom@codesourcery.com>
5806
5807 * Makefile.in (generated_files): Add params.list.
5808 (params.list, s-params.list): Add rule.
5809 * params.h (enum compiler_param): Include params-list.h. Move define
5810 DEFPARAM, include params.def and undef DEFPARAM ...
5811 * params-list.h: ... here. New file.
5812
5813 2015-09-08 David Malcolm <dmalcolm@redhat.com>
5814
5815 * pretty-print.h (printer_fn): Fix typo in comment.
5816
5817 2015-09-07 Jeff Law <law@redhat.com>
5818
5819 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5820
5821 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5822
5823 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5824 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5825 (arm_neon_fp16_hw): New.
5826
5827 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5828
5829 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5830 UNITS_PER_WORD >= 4.
5831
5832 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5833
5834 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5835 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5836 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5837 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5838 (aarch64_float_extend_lo_v2df): Rename to...
5839 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5840
5841 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5842 (float_extend_lo): Add v4sf.
5843
5844 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5845 * config/aarch64/iterators.md (VQ_HSF): New iterator.
5846 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5847 (Vwide): New mode_attr.
5848
5849 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5850
5851 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5852 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5853 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5854 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5855 V4HF and V8HF variants to iterator.
5856
5857 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5858
5859 * config/aarch64/iterators.md (VDQF_F16): New.
5860 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5861
5862 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5863
5864 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5865 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5866 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5867 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5868 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5869 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5870 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5871 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5872 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5873 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5874 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5875 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5876 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5877 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5878 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5879 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5880 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5881 vld1q_dup_f16): New.
5882
5883 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5884
5885 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5886 Reparameterize to...
5887 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5888 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5889 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5890
5891 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5892 v8hf variant.
5893 (float_truncate_lo_): Use BUILTIN_VDF iterator.
5894
5895 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5896
5897 * config/aarch64/iterators.md (VDF, Vdtype): New.
5898 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5899
5900 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5901
5902 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5903 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5904 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5905 Add __builtin_aarch64_simd_hf.
5906 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5907 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5908 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5909 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5910 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5911 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5912 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5913 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5914 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5915
5916 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5917 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5918 (VDC, Vdbl): Add V4HF.
5919
5920 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5921
5922 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5923 V4HFmode and V8HFmode.
5924 (aarch64_split_simd_move): Add case for V8HFmode.
5925 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5926 (aarch64_simd_builtin_std_type): Handle HFmode.
5927 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5928
5929 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5930 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5931 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5932
5933 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5934 Float16x8_t.
5935
5936 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5937 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5938 New typedefs.
5939 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5940 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5941 vst1q_lane_f16): New.
5942 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5943 (VALLDI_F16, VALL_F16): New.
5944 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5945 Add cases for V4HF and V8HF.
5946 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5947
5948 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5949
5950 * config/arm/arm-builtins.c (VAR11, VAR12): New.
5951 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5952 vld4_dup): Add v4hf variant.
5953 (vget_high, vget_low): Add v8hf variant.
5954 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5955 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5956 v4hf and v8hf variants.
5957
5958 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5959 (VDX): Add V4HF.
5960 (V_DOUBLE): Add case for V4HF.
5961 (VQX): Add V8HF.
5962 (V_HALF): Add case for V8HF.
5963 (VDQX): Add V4HF, V8HF.
5964 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5965 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5966
5967 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5968 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5969 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5970 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5971 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5972 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5973 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5974 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5975 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5976
5977 (neon_vcreate, neon_vreinterpretv8qi<mode>,
5978 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5979 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5980 Change VDX to VD_RE.
5981
5982 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5983 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5984 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5985
5986 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5987 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5988 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5989 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5990 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5991 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5992 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5993 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5994 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5995
5996 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5997
5998 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5999 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6000 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6001 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6002 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6003 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6004 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6005 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6006 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6007 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6008 New.
6009
6010 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6011
6012 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6013
6014 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6015
6016 * config/arm/arm-builtins.c (v8hf_UP): New.
6017 (arm_init_simd_builtin_types): Initialise Float16x8_t.
6018
6019 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6020
6021 * config/arm/arm_neon.h (float16x8_t): New typedef.
6022
6023 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6024
6025 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6026 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6027 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6028 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6029 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6030 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6031 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6032 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6033 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6034 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6035
6036 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
6037
6038 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6039 non-alphanumeric characters in the symbol name.
6040
6041 2015-09-07 Marek Polacek <polacek@redhat.com>
6042
6043 PR inline-asm/67448
6044 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6045 a memory input.
6046
6047 2015-09-07 Marek Polacek <polacek@redhat.com>
6048
6049 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6050
6051 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
6052
6053 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6054 not warn.
6055
6056 2015-09-04 Jakub Jelinek <jakub@redhat.com>
6057
6058 PR middle-end/67452
6059 * tree-ssa-live.c: Include cfgloop.h.
6060 (remove_unused_locals): Clear loop->simduid if simduid is about
6061 to be removed from cfun->local_decls.
6062
6063 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6064
6065 PR target/65210
6066 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6067 attribute as well.
6068
6069 2015-09-04 Tom de Vries <tom@codesourcery.com>
6070
6071 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6072
6073 2015-09-04 Jeff Law <law@redhat.com>
6074
6075 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6076 unnecessary constructor. It's now trivial and implemented inside...
6077 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6078 constructor. Add comments to various methods. Remove unused
6079 private fields.
6080 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6081 * tree-vrp.c (identify_jump_threads): Likewise.
6082 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6083 indentation issues.
6084 (thread_across_edge): Similarly.
6085 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6086 arguments in constructor call.
6087
6088 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6089
6090 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6091 temp path contains a '-'.
6092
6093 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6094 Petr Murzin <petr.murzin@intel.com>
6095 Kirill Yukhin <kirill.yukhin@intel.com>
6096
6097 * config/i386/i386-builtin-types.def
6098 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6099 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6100 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6101 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6102 * config/i386/i386.c
6103 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6104 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6105 IX86_BUILTIN_SCATTERALTDIV16SI.
6106 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6107 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6108 __builtin_ia32_scatteraltdiv8si.
6109 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6110 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6111 IX86_BUILTIN_SCATTERALTDIV16SI.
6112 (ix86_vectorize_builtin_scatter): New.
6113 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6114 ix86_vectorize_builtin_scatter.
6115
6116 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6117 Petr Murzin <petr.murzin@intel.com>
6118 Kirill Yukhin <kirill.yukhin@intel.com>
6119
6120 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6121 * doc/tm.texi: Regenerate.
6122 * target.def: Add scatter builtin.
6123 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6124 for loads/stores in case of gather/scatter accordingly.
6125 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6126 STMT_VINFO_GATHER_P(S).
6127 (vect_check_gather): Rename to ...
6128 (vect_check_gather_scatter): this.
6129 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6130 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6131 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6132 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6133 variable and new checkings for it accordingly.
6134 * tree-vect-stmts.c
6135 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6136 STMT_VINFO_GATHER_P(S).
6137 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6138 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6139
6140 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6141
6142 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6143 define_insn.
6144 (mulv16qi3): New define_expand.
6145
6146 2015-09-03 Martin Sebor <msebor@redhat.com>
6147
6148 PR c/66516
6149 * doc/extend.texi (Other Builtins): Document when the address
6150 of a built-in function can be taken.
6151
6152 2015-09-03 Richard Biener <rguenther@suse.de>
6153
6154 * dwarf2out.c (flush_limbo_die_list): Split out from ...
6155 (dwarf2out_early_finish): ... here.
6156 (dwarf2out_finish): Do not call dwarf2out_early_finish but
6157 flush_limbo_die_list. Assert we have no deferred asm names.
6158
6159 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6160
6161 * optabs.c (expand_binop): Don't create a broadcast vector with a
6162 source element wider than the inner mode.
6163
6164 2015-09-03 Richard Biener <rguenther@suse.de>
6165
6166 * varasm.c (output_constant): Use fold_convert instead of
6167 wide_int_to_tree.
6168
6169 2015-09-03 Tom de Vries <tom@codesourcery.com>
6170
6171 PR tree-optimization/65637
6172 * omp-low.c (expand_omp_for_static_chunk): Handle case that
6173 fin_bb has 2 predecessors.
6174
6175 2015-09-03 Tom de Vries <tom@codesourcery.com>
6176
6177 PR tree-optimization/65637
6178 * omp-low.c (find_phi_with_arg_on_edge): New function.
6179 (expand_omp_for_static_chunk): Fix inner loop phi.
6180
6181 2015-09-03 Tom de Vries <tom@codesourcery.com>
6182
6183 PR tree-optimization/65637
6184 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6185 that head is NULL.
6186
6187 2015-09-03 Tom de Vries <tom@codesourcery.com>
6188
6189 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6190
6191 2015-09-03 Tom de Vries <tom@codesourcery.com>
6192
6193 * doc/invoke.texi (parloops-chunk-size): Add item.
6194 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6195 * tree-parloops.c: Include params.h.
6196 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6197 param parloops-chunk-size is used.
6198
6199 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6200
6201 PR middle-end/67351
6202 * fold-const.c (fold_binary_loc) : Move
6203 Transform (x >> c) << c into x & (-1<<c) or
6204 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6205 types using simplify and match.
6206 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6207 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6208
6209 2015-09-03 Richard Biener <rguenther@suse.de>
6210
6211 PR ipa/66705
6212 * tree-ssa-structalias.c (ctor_for_analysis): New function.
6213 (create_variable_info_for_1): Use ctor_for_analysis instead
6214 of get_constructor.
6215 (create_variable_info_for): Likewise.
6216
6217 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
6218
6219 PR ipa/67280
6220 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6221 in new callgraph edge.
6222
6223 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
6224
6225 PR target/59810
6226 PR target/63652
6227 PR target/63653
6228 * config/aarch64/aarch64-simd.md
6229 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6230 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6231 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6232 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6233
6234 2015-09-02 Alan Modra <amodra@gmail.com>
6235
6236 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6237 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6238 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6239
6240 2015-09-02 Alan Modra <amodra@gmail.com>
6241
6242 PR target/67417
6243 * config/rs6000/predicates.md (current_file_function_operand): Don't
6244 return true for weak symbols.
6245 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6246
6247 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
6248 Andrew Bennett <andrew.bennett@imgtec.com>
6249
6250 * config/mips/mips-opts.h (mips_cb_setting): New enum.
6251 * config/mips/mips-protos.h: Add definitions for
6252 mips_output_jump and mips_output_equal_conditional_branch
6253 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6254 JIC instruction.
6255 (mips_emit_compare): Add support for the MIPS R6 conditional
6256 compact branches.
6257 (mips_process_sync_loop): Likewise.
6258 (mips_output_order_conditional_branch): Likewise.
6259 (mips16_build_call_stub): Change MIPS_CALL to
6260 mips_output_jump.
6261 (mips_print_operand_punctuation): Update 's' case to only
6262 apply to micromips r2.
6263 (mips_adjust_insn_length): Add support for forbidden slot
6264 hazards.
6265 (mips_avoid_hazard): Likewise.
6266 (mips_reorg_process_insns): Likewise.
6267 (mips_output_jump): New function.
6268 (mips_output_equal_conditional_branch): Likewise.
6269 (mips_output_conditional_branch): Use jrc/bc if compact
6270 branch support is enabled. Ensure the forbidden slots
6271 between the two branch instructions is filled with a nop.
6272 (mips_option_override): Add support to process the compact
6273 branch option and set the correct defaults. Prevent
6274 non-explict relocs being using for MIPS R6.
6275 (mips_trampoline_init): Add compact branch support.
6276 (mips_mult_zero_zero_cost): Allow zero initialisation of
6277 accumulators with TARGET_DSP.
6278 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6279 (TARGET_CB_MAYBE): New define.
6280 (TARGET_CB_ALWAYS): New define.
6281 (ISA_HAS_DELAY_SLOTS): New define.
6282 (ISA_HAS_COMPACT_BRANCHES): New define.
6283 (ISA_HAS_JRC): New define.
6284 (MIPS_BRANCH_C): New define.
6285 (MIPS_CALL): Removed.
6286 (MICROMIPS_J): Removed.
6287 * config/mips/mips.md (compact_form): New attr.
6288 (hazard): Add support for forbidden slots.
6289 (define_delay): Add support for compact branches.
6290 (*branch_order<mode>): Likewise.
6291 (*branch_order<mode>_inverted): Likewise.
6292 (*branch_equality<mode>): Likewise.
6293 (*branch_equality<mode>_inverted): Likewise.
6294 (*jump_absolute): Likewise.
6295 (*jump_pic): Likewise.
6296 (indirect_jump): Use mips_output_jump to produce assembly output.
6297 (tablejump_<mode>"): Likewise.
6298 (*<optab>"): Likewise.
6299 (<optab>_internal): Likewise.
6300 (sibcall_internal): Likewise.
6301 (sibcall_value_internal): Likewise.
6302 (sibcall_value_multiple_internal): Likewise.
6303 (call_internal): Likewise.
6304 (call_split): Likewise.
6305 (call_internal_direct): Likewise.
6306 (call_direct_split): Likewise.
6307 (call_value_internal): Likewise.
6308 (call_value_split): Likewise.
6309 (call_value_internal_direct): Likewise.
6310 (call_value_direct_split): Likewise.
6311 (call_value_multiple_internal): Likewise.
6312 (call_value_multiple_split): Likewise.
6313 (mips_get_fcsr_mips16_<mode>): Likewise.
6314 (mips_set_fcsr_mips16_<mode>): Likewise.
6315 (tls_get_tp_mips16_<mode>): Likewise.
6316 * config/mips/mips.opt: Add -mcompact-branches option.
6317 * config/mips/predicates.md (order_operator): Ensure the
6318 conditional compact branches are only used if the ISA them.
6319 * doc/invoke.texi: Document -mcompact-branches option.
6320
6321 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
6322
6323 PR target/61578
6324 * lra-lives.c (process_bb_lives): Process move pseudos with the
6325 same value for copies and preferences
6326 * lra-constraints.c (match_reload): Create match reload pseudo
6327 with the same value from single dying input pseudo.
6328
6329 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6330
6331 PR target/67405
6332 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6333
6334 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
6335
6336 * trans-mem.c: Add contributed-by.
6337 * trans-mem.h: Same.
6338
6339 2015-09-01 Richard Biener <rguenther@suse.de>
6340
6341 * expr.c (expand_expr_real_1): For expanding TERed defs
6342 set the current location to that of the def if not UNKNOWN.
6343
6344 2015-09-01 David Sherwood <david.sherwood@arm.com>
6345
6346 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6347
6348 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6349
6350 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6351 then_cost, else_cost fields. Change branch_cost field to unsigned int.
6352 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6353 Include rtl-iter.h.
6354 (noce_simple_bbs): New function.
6355 (noce_try_move): Bail if basic blocks are not simple.
6356 (noce_try_store_flag): Likewise.
6357 (noce_try_store_flag_constants): Likewise.
6358 (noce_try_addcc): Likewise.
6359 (noce_try_store_flag_mask): Likewise.
6360 (noce_try_cmove): Likewise.
6361 (noce_try_minmax): Likewise.
6362 (noce_try_abs): Likewise.
6363 (noce_try_sign_mask): Likewise.
6364 (noce_try_bitop): Likewise.
6365 (bbs_ok_for_cmove_arith): New function.
6366 (noce_emit_all_but_last): Likewise.
6367 (noce_emit_insn): Likewise.
6368 (noce_emit_bb): Likewise.
6369 (noce_try_cmove_arith): Handle non-simple basic blocks.
6370 (insn_valid_noce_process_p): New function.
6371 (contains_mem_rtx_p): Likewise.
6372 (bb_valid_for_noce_process_p): Likewise.
6373 (noce_process_if_block): Allow non-simple basic blocks
6374 where appropriate.
6375
6376 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
6377
6378 * tree-ssa-dom.c (record_equivalences_from_phis,
6379 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6380 (lookup_avail_expr): Likewise, and remove comment and unused temp.
6381
6382 2015-09-01 Nick Clifton <nickc@redhat.com>
6383
6384 * config/msp430/msp430.opt (mcpu): Fix typo.
6385
6386 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6387
6388 * config/aarch64/aarch64.c (aarch64_set_current_function):
6389 Re-layout any vector parameters have non-simd layout.
6390 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6391 Delete.
6392 (aarch64_simd_expand_args): Delete call to the above.
6393
6394 2015-08-31 Mike Frysinger <vapier@gentoo.org>
6395
6396 * doc/invoke.texi (asan-stack): Add space before option.
6397
6398 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6399
6400 * tree.h (zerop): New function.
6401 * tree.c (zerop): Likewise.
6402 (element_precision): Handle expressions.
6403 * match.pd (define_predicates): Add zerop.
6404 (x <= +Inf): Fix comment.
6405 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6406 * fold-const.c (fold_binary_loc): ... here. Remove.
6407
6408 2015-08-31 Richard Biener <rguenther@suse.de>
6409
6410 PR middle-end/67381
6411 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6412
6413 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6414
6415 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6416 (CEXPI): New operator list.
6417 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6418 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6419 Converted from ...
6420 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6421
6422 2015-08-31 Tom de Vries <tom@codesourcery.com>
6423
6424 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6425 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6426 parameter.
6427 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6428 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6429 (rewrite_into_loop_closed_ssa): ... here.
6430 (replace_uses_in_dominated_bbs): Remove function.
6431 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6432 rewrite_into_loop_closed_ssa_1.
6433
6434 2015-08-31 Michael Matz <matz@suse.de>
6435
6436 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6437 enter entry and exit blocks for reverse post order.
6438
6439 2015-08-31 Richard Biener <rguenther@suse.de>
6440
6441 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6442 (lto_location_cache::current_sysp): Likewise.
6443 (output_block::current_sysp): Likewise.
6444 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6445 (lto_location_cache::apply_location_cache): Properly record
6446 system header locations.
6447 (lto_location_cache::input_location): Input whether a file
6448 is a system header.
6449 * lto-streamer-out.c (lto_output_location): Stream whether a file
6450 is a system header.
6451
6452 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6453
6454 PR bootstrap/67363
6455 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6456
6457 2015-08-31 Tom de Vries <tom@codesourcery.com>
6458
6459 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6460 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6461 Improve function header comments.
6462
6463 2015-08-30 Michael Collison <michael.collison@linaro.org>
6464
6465 PR other/67320
6466 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6467 standard names
6468
6469 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6470
6471 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6472 special_handling bitfield.
6473 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6474 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6475 that represents a general xxpermdi.
6476 (insn_is_swappable_p): Add handling for vec_concat of two
6477 doublewords, which maps to a specific xxpermdi.
6478 (adjust_xxpermdi): New function.
6479 (adjust_concat): Likewise.
6480 (handle_special_swappables): Call adjust_xxpermdi and
6481 adjust_concat.
6482 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6483
6484 2015-08-30 Rich Felker <dalias@libc.org>
6485
6486 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6487 case instead of sh[123456ble]-*-*.
6488
6489 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6490
6491 * ira.c (print_unform_and_important_classes,
6492 print_translated_classes): Remove reg_class_names static array.
6493 (print_unform_and_important_classes): Rename to ...
6494 (print_uniform_and_important_classes): ... this.
6495 (ira_debug_allocno_classes): Update accordingly.
6496
6497 2015-08-29 Tom de Vries <tom@codesourcery.com>
6498
6499 PR tree-optimization/46193
6500 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6501 clause.
6502
6503 2015-08-28 Jeff Law <law@redhat.com>
6504
6505 PR lto/66752
6506 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6507 unable to find X NE 0 in the tables, return X as the simplified
6508 condition.
6509 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6510 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6511 to VISISTED_BBS.
6512 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6513 after removing the control flow statement and unnecessary edges.
6514
6515 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
6516
6517 Revert:
6518 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6519
6520 PR tree-optimization/67283
6521 * tree-sra.c (type_consists_of_records_p): Rename to...
6522 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6523
6524 (completely_scalarize_record): Rename to...
6525 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6526 code to:
6527 (scalarize_elem): New.
6528
6529 2015-08-28 Jiong Wang <jiong.wang@arm.com>
6530
6531 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6532 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6533 (aarch64_symbol_type): Likewise.
6534 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6535 Likewise.
6536 (aarch64_expand_mov_immediate): Likewise.
6537 (aarch64_print_operand): Likewise.
6538 (aarch64_classify_tls_symbol): Likewise.
6539
6540 2015-08-28 Richard Biener <rguenther@suse.de>
6541
6542 * cgraphunit.c (symbol_table::compile): Move early debug generation
6543 and finish...
6544 (symbol_table::finalize_compilation_unit): ... back here and
6545 add a !seen_error () guard.
6546
6547 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6548
6549 * toplev.c (process_options): Do not use flag_loop_block,
6550 flag_loop_interchange, and flag_loop_strip_mine. Add check for
6551 flag_loop_optimize_isl.
6552
6553 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6554
6555 * Makefile.in (OBJS): Remove graphite-blocking.o and
6556 graphite-interchange.o.
6557 * common.opt (floop-strip-mine, floop-interchange, floop-block):
6558 Alias of floop-nest-optimize.
6559 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6560 Document as alias of -floop-nest-optimize.
6561 * graphite-blocking.c: Remove.
6562 * graphite-interchange.c: Remove.
6563 * graphite-optimize-isl.c: Include dumpfile.h.
6564 (getScheduleForBand): Add dump for tiled loops. Use
6565 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6566 * graphite-poly.c (scop_max_loop_depth): Remove.
6567 (print_scattering_function_1): Remove.
6568 (print_scattering_function): Remove.
6569 (print_scattering_functions): Remove.
6570 (debug_scattering_function): Remove.
6571 (debug_scattering_functions): Remove.
6572 (apply_poly_transforms): Remove use of flag_loop_block,
6573 flag_loop_strip_mine, and flag_loop_interchange.
6574 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6575 PBB_ORIGINAL.
6576 (print_pdr_access_layout): Remove.
6577 (print_pdr): Print ISL representation.
6578 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6579 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6580 (free_scop): Same.
6581 (openscop_print_pbb_domain): Remove.
6582 (print_pbb): Remove call to print_scattering_function.
6583 (openscop_print_scop_context): Remove.
6584 (print_scop_context): Do not print matrices anymore.
6585 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6586 SCOP_TRANSFORMED_SCHEDULE.
6587 (print_isl_set): Add printing of a new line.
6588 (print_isl_map): Same.
6589 (print_isl_aff): Same.
6590 (print_isl_constraint): Same.
6591 (loop_to_lst): Remove.
6592 (scop_to_lst): Remove.
6593 (lst_indent_to): Remove.
6594 (print_lst): Remove.
6595 (debug_lst): Remove.
6596 (dot_lst_1): Remove.
6597 (dot_lst): Remove.
6598 (reverse_loop_at_level): Remove.
6599 (reverse_loop_for_pbbs): Remove.
6600 * graphite-poly.h (pdr_dim_iter_domain): Remove.
6601 (pdr_nb_params): Remove.
6602 (pdr_alias_set_dim): Remove.
6603 (pdr_subscript_dim): Remove.
6604 (pdr_iterator_dim): Remove.
6605 (pdr_parameter_dim): Remove.
6606 (same_pdr_p): Remove.
6607 (struct poly_scattering): Remove.
6608 (struct poly_bb): Remove _original, _transformed, _saved.
6609 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6610 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6611 (PBB_NB_LOCAL_VARIABLES): Remove.
6612 (PBB_NB_SCATTERING_TRANSFORM): Remove.
6613 (schedule_to_scattering): Remove.
6614 (number_of_write_pdrs): Remove.
6615 (pbb_dim_iter_domain): Remove.
6616 (pbb_nb_params): Remove.
6617 (pbb_nb_scattering_orig): Remove.
6618 (pbb_nb_scattering_transform): Remove.
6619 (pbb_nb_dynamic_scattering_transform): Remove.
6620 (pbb_nb_local_vars): Remove.
6621 (pbb_iterator_dim): Remove.
6622 (pbb_parameter_dim): Remove.
6623 (psco_scattering_dim): Remove.
6624 (psct_scattering_dim): Remove.
6625 (psct_local_var_dim): Remove.
6626 (psco_iterator_dim): Remove.
6627 (psct_iterator_dim): Remove.
6628 (psco_parameter_dim): Remove.
6629 (psct_parameter_dim): Remove.
6630 (psct_dynamic_dim): Remove.
6631 (psct_static_dim): Remove.
6632 (psct_add_local_variable): Remove.
6633 (new_lst_loop): Remove.
6634 (new_lst_stmt): Remove.
6635 (free_lst): Remove.
6636 (copy_lst): Remove.
6637 (lst_add_loop_under_loop): Remove.
6638 (lst_depth): Remove.
6639 (lst_dewey_number): Remove.
6640 (lst_dewey_number_at_depth): Remove.
6641 (lst_pred): Remove.
6642 (lst_succ): Remove.
6643 (lst_find_pbb): Remove.
6644 (find_lst_loop): Remove.
6645 (lst_find_first_pbb): Remove.
6646 (lst_empty_p): Remove.
6647 (lst_find_last_pbb): Remove.
6648 (lst_contains_p): Remove.
6649 (lst_contains_pbb): Remove.
6650 (lst_create_nest): Remove.
6651 (lst_remove_from_sequence): Remove.
6652 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6653 (lst_niter_for_loop): Remove.
6654 (pbb_update_scattering): Remove.
6655 (lst_update_scattering_under): Remove.
6656 (lst_update_scattering): Remove.
6657 (lst_insert_in_sequence): Remove.
6658 (lst_replace): Remove.
6659 (lst_substitute_3): Remove.
6660 (lst_distribute_lst): Remove.
6661 (lst_remove_all_before_including_pbb): Remove.
6662 (lst_remove_all_before_excluding_pbb): Remove.
6663 (struct scop): Remove original_schedule, transformed_schedule, and
6664 saved_schedule.
6665 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6666 (SCOP_SAVED_SCHEDULE): Remove.
6667 (poly_scattering_new): Remove.
6668 (poly_scattering_free): Remove.
6669 (poly_scattering_copy): Remove.
6670 (store_scattering_pbb): Remove.
6671 (store_lst_schedule): Remove.
6672 (restore_lst_schedule): Remove.
6673 (store_scattering): Remove.
6674 (restore_scattering_pbb): Remove.
6675 (restore_scattering): Remove.
6676 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6677 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
6678 compute the scattering polyhedron dimension from the dimension of
6679 pbb->domain.
6680 (build_scop_scattering): Update call to
6681 build_pbb_scattering_polyhedrons.
6682 (build_poly_scop): Remove call to scop_to_lst.
6683 * graphite.c (graphite_transform_loops): Add call to print_scop.
6684 (gate_graphite_transforms): Remove use of flag_loop_block,
6685 flag_loop_interchange, and flag_loop_strip_mine.
6686
6687 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6688
6689 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6690 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6691 -floop-nest-optimize.
6692 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6693 (generate_luj_sepclass): Remove.
6694 (generate_luj_options): Remove.
6695 (set_options): Remove opt_luj.
6696 (scop_to_isl_ast): Remove opt_luj.
6697 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6698 flag_loop_unroll_jam.
6699 (getPrevectorMap_full): Remove.
6700 (getScheduleForBandList): Remove map_sepcl.
6701 (getScheduleMap): Same.
6702 (apply_schedule_map_to_scop): Remove sepcl.
6703 (optimize_isl): Same.
6704 * graphite-poly.c (apply_poly_transforms): Remove check for
6705 flag_loop_unroll_jam.
6706 (new_poly_bb): Remove map_sepclass.
6707 * graphite-poly.h (struct poly_bb): Same.
6708 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6709 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6710 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6711 * toplev.c (process_options): Remove flag_loop_unroll_jam.
6712
6713 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
6714
6715 PR target/67317
6716 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6717 (addqi3_cc): Ditto.
6718 (UNSPEC_ADD_CARRY): Remove.
6719 (addqi3_cconly_overflow): New expander.
6720 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6721 Adjust for changed add<mode>3_carry.
6722 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6723 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6724 (<plusminus_insn><mode>3_carry): Remove expander.
6725 (*<plusminus_insn><mode>3_carry): Split insn pattern to
6726 add<mode>3_carry and sub<mode>3_carry.
6727 (plusminus_carry_mnemonic): Remove code attribute.
6728 (add<mode>3_carry): Canonicalize insn pattern.
6729 (*addsi3_carry_zext): Ditto.
6730 (sub<mode>3_carry): Ditto.
6731 (*subsi3_carry_zext): Ditto.
6732 (adcx<mode>3): Remove insn pattern.
6733 (addcarry<mode>): New insn pattern.
6734 (subborrow<mode>): Ditto.
6735 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6736 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6737 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6738 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6739 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6740 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6741 Rewrite expander to not clobber carry flag chains.
6742
6743 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
6744
6745 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6746 instead of a rotate.
6747
6748 2015-08-27 Marek Polacek <polacek@redhat.com>
6749
6750 PR middle-end/67005
6751 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6752 an entry into an irreducible region.
6753
6754 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6755
6756 * configure: Regenerate.
6757
6758 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6759
6760 PR tree-optimization/67283
6761 * tree-sra.c (type_consists_of_records_p): Rename to...
6762 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6763
6764 (completely_scalarize_record): Rename to...
6765 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6766 (scalarize_elem): New.
6767
6768 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6769
6770 * tree-sra.c (completely_scalarize_var): Rename to...
6771 (create_total_scalarization_access): ... Here. Drop call to
6772 completely_scalarize_record.
6773
6774 (analyze_all_variable_accesses): Replace completely_scalarize_var
6775 with create_total_scalarization_access and completely_scalarize_record.
6776
6777 2015-08-27 Alan Modra <amodra@gmail.com>
6778
6779 PR target/67356
6780 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6781 for operand 1.
6782
6783 2015-08-27 Richard Biener <rguenther@suse.de>
6784
6785 * passes.c (rest_of_decl_compilation): Guard early_global_decl
6786 call with !seen_error ().
6787 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6788 early debug generation and finish...
6789 (symbol_table::compile): ... here to put it after a !seen_error ()
6790 guard.
6791
6792 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6793
6794 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6795 Solaris 12+.
6796
6797 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6798 Andre Vieira <andre.simoesdiasvieira@arm.com>
6799
6800 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6801 (*cb<optab><mode>1): Likewise.
6802 (*tb<optab><mode>1): Likewise.
6803 (*cb<optab><mode>1): Likewise.
6804 * config/aarch64/iterators.md (inv_cb): New code attribute.
6805 (inv_tb): Likewise.
6806 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6807 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6808
6809 2015-08-27 Richard Biener <rguenther@suse.de>
6810
6811 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6812
6813 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6814
6815 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6816 trap to fix ICE.
6817
6818 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6819
6820 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6821 Add declaration.
6822
6823 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6824 comment.
6825 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6826 floating point in VSX registers.
6827 (rs6000_output_move_128bit): Always print out the set insn if we
6828 can't generate an appropriate 128-bit move.
6829 (rs6000_generate_compare): Add support for IEEE 128-bit floating
6830 point in VSX registers comparisons.
6831 (rs6000_expand_float128_convert): Likewise.
6832
6833 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6834 predicate for only GPR hard registers.
6835
6836 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6837 modes to iterators. Add new iterators for moving 128-bit values in
6838 scalar FPR registers and VSX registers.
6839 (FMOVE128): Likewise.
6840 (FMOVE128_FPR): Likewise.
6841 (FMOVE128_GPR): Likewise.
6842 (FMOVE128_VSX): Likewise.
6843 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6844 in VSX registers.
6845 (IFKF): Likewise.
6846 (IBM128): Likewise.
6847 (TFIFKF): Likewise.
6848 (RELOAD): Add IEEE 128-bit floating point modes.
6849 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6850 floating point in VSX registers modes.
6851 (signbit<mode>2, IBM128 iterator): Likewise.
6852 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6853 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6854 (negtf2): Likewise.
6855 (neg<mode>2, TFIFKF iterator): Likewise.
6856 (negtf2_internal): Likewise.
6857 (abstf2): Likewise.
6858 (abs<mode>2, TFIFKF iterator): Likewise.
6859 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6860 VSX insn support for negate, absolute value, and negative absolute
6861 value.
6862 (ieee_128bit_vsx_neg<mode>2): Likewise.
6863 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6864 (ieee_128bit_vsx_abs<mode>2): Likewise.
6865 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6866 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6867 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6868 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6869 floating point in VSX registers.
6870 (unpack<mode>_dm): Likewise.
6871 (unpack<mode>_nodm): Likewise.
6872 (pack<mode>): Likewise.
6873 (unpackv1ti): Likewise.
6874 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6875 (packv1ti): Likewise.
6876 (pack<mode>, FMOVE128_VSX iterator): Likewise.
6877 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6878 registers.
6879 (extenddftf2_internal): Likewise.
6880 (trunctfdf2): Likewise.
6881 (trunctfdf2_internal2): Likewise.
6882 (fix_trunc_helper): Likewise.
6883 (fix_trunctfdi2"): Likewise.
6884 (floatditf2): Likewise.
6885 (floatuns<mode>tf2): Likewise.
6886 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6887 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6888 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6889 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6890 (float<SDI:mode><IFKF:mode>2): Likewise.
6891 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6892
6893 2015-08-26 Renlin Li <renlin.li@arm.com>
6894
6895 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6896
6897 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6898 Jiong Wang <jiong.wang@arm.com>
6899
6900 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6901 (tlsie_tiny_<mode>): New define_insn.
6902 (tlsie_tiny_sidi): Likewise.
6903 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6904 SYMBOL_TINY_TLSIE.
6905 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6906 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6907 SYMBOL_TINY_TLSIE.
6908 (aarch64_expand_mov_immediate): Likewise.
6909 (aarch64_print_operand): Likewise.
6910 (arch64_classify_tls_symbol): Likewise.
6911
6912 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6913
6914 * config/arm/arm-arches.def: Replace single value flags with
6915 an initializer built from ARM_FSET_MAKE_CPU1.
6916 * config/arm/arm-cores.def: Likewise.
6917 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6918 derivation from the ARM_CORE macro definition, use the given value
6919 instead.
6920 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6921 ARM_ARCH macro definition, use the given value instead.
6922
6923 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6924
6925 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6926 feature set.
6927 (struct builtin_description): Replace field mask with field
6928 features.
6929 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6930 (IWMMXT2_BUILTIN): Likewise.
6931 (IWMMXT2_BUILTIN2): Likewise.
6932 (FP_BUILTIN): Likewise.
6933 (CRC32_BUILTIN): Likewise.
6934 (CRYPTO_BUILTIN): Likewise.
6935 (iwmmx_mbuiltin): Likewise.
6936 (iwmmx2_mbuiltin): Likewise.
6937 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6938 struct builtin_description.
6939
6940 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6941
6942 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6943 (struct builtin_description): Change type of mask to unsigned
6944 long.
6945 * config/arm/arm-protos.h (insn_flags): Declare as type
6946 arm_feature_set.
6947 (tune_flags): Likewise.
6948 * config/arm/arm.c (feature_count): New.
6949 (insn_flags): Define as type arm_feature_set.
6950 (tune_flags): Likewise.
6951 (struct processors): Define field flags as type arm_feature_set.
6952 (all_cores): Update for change to struct processors.
6953 (all_architectures): Likewise.
6954 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6955 macros.
6956 (arm_option_override_internal): Likewise.
6957 (arm_option_override): Likewise.
6958
6959 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6960 Jiong Wang <jiong.wang@arm.com>
6961
6962 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6963 tls size for tiny, small, large memory model.
6964 (aarch64_load_symref_appropriately): Support new symbol types.
6965 (aarch64_expand_mov_immediate): Likewise.
6966 (aarch64_print_operand): Likewise.
6967 (aarch64_classify_tls_symbol): Likewise.
6968 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6969 (aarch64_symbol_type): Likewise.
6970 * config/aarch64/aarch64.md (tlsle): Deleted.
6971 (tlsle12_<mode>): New define_insn.
6972 (tlsle24_<mode>): Likewise.
6973 (tlsle32_<mode>): Likewise.
6974 (tlsle48_<mode>): Likewise.
6975 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6976 "aarch64_tlsle32".
6977
6978 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6979
6980 * config/arm/arm-protos.h (FL_NONE): New.
6981 (FL_ANY): New.
6982 (arm_feature_set): New.
6983 (ARM_FSET_MAKE): New.
6984 (ARM_FSET_MAKE_CPU1): New.
6985 (ARM_FSET_MAKE_CPU2): New.
6986 (ARM_FSET_CPU1): New.
6987 (ARM_FSET_CPU2): New.
6988 (ARM_FSET_EMPTY): New.
6989 (ARM_FSET_ANY): New.
6990 (ARM_FSET_HAS_CPU1): New.
6991 (ARM_FSET_HAS_CPU2): New.
6992 (ARM_FSET_HAS_CPU): New.
6993 (ARM_FSET_ADD_CPU1): New.
6994 (ARM_FSET_ADD_CPU2): New.
6995 (ARM_FSET_DEL_CPU1): New.
6996 (ARM_FSET_DEL_CPU2): New.
6997 (ARM_FSET_UNION): New.
6998 (ARM_FSET_INTER): New.
6999 (ARM_FSET_XOR): New.
7000 (ARM_FSET_EXCLUDE): New.
7001 (AFM_FSET_IS_EMPTY): New.
7002 (ARM_FSET_CPU_SUBSET): New.
7003
7004 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7005
7006 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7007 SYMBOL_TLSLE to SYMBOL_TLSLE24.
7008 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7009 Likewise.
7010 (aarch64_expand_mov_immediate): Likewise.
7011 (aarch64_print_operand): Likewise.
7012 (aarch64_classify_symbol): Likewise.
7013
7014 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7015
7016 * config/aarch64/aarch64.opt (mtls-size): New entry.
7017 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7018 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7019 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7020
7021 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7022
7023 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7024 ARM_CORE entry. Fix some white-space.
7025 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7026 ARM_CORE definition.
7027
7028 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7029
7030 * fold-const.c (fold_binary_loc) : Move Optimize
7031 root(x)*root(y) as root(x*y) to match.pd.
7032 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7033 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7034 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7035 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7036 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7037 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7038 (mult (exps:s @0) (exps:s @1)) : New simplifier.
7039 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7040 (rdiv @0 (exps:s @1)) : New simplifier.
7041
7042 2015-08-25 Joseph Myers <joseph@codesourcery.com>
7043
7044 * gcc.c (driver::finalize): Only assign to extra_specs if
7045 [EXTRA_SPECS].
7046
7047 2015-08-25 Marek Polacek <polacek@redhat.com>
7048
7049 PR middle-end/67330
7050 * varasm.c (declare_weak): Return after giving an error.
7051
7052 2015-08-25 David Malcolm <dmalcolm@redhat.com>
7053
7054 * gcc-main.c (main): Add params to driver ctor.
7055 * gcc.c (class env_manager): New.
7056 (env): New global.
7057 (env_manager::init): New.
7058 (env_manager::get): New.
7059 (env_manager::xput): New.
7060 (env_manager::restore): New.
7061 Poison getenv and putenv.
7062 (DEFAULT_TARGET_SYSTEM_ROOT): New.
7063 (target_system_root): Update initialization to use
7064 DEFAULT_TARGET_SYSTEM_ROOT.
7065 (struct spec_list): Add field "default_ptr".
7066 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7067 (init_spec): Likewise.
7068 (set_spec): Clear field "default_ptr".
7069 (read_specs): Free "spec" and "buffer".
7070 (xputenv): Reimplement in terms of env_manager.
7071 (process_command): Replace ::getenv calls with calls to the
7072 env_manager singleton.
7073 (process_brace_body): Free string in three places.
7074 (driver::driver): New.
7075 (driver::~driver): New.
7076 (used_arg): Convert from a function to...
7077 (class used_arg_t): ...this class, and...
7078 (used_arg): ...this new global instance.
7079 (used_arg_t::finalize): New function.
7080 (getenv_spec_function): Add "const" to local "value". Replace
7081 ::getenv call with call to the env_manager singleton.
7082 (path_prefix_reset): New function.
7083 (driver::finalize): New function.
7084 * gcc.h (driver::driver): New.
7085 (driver::~driver): New.
7086 (driver::finalize): New.
7087
7088 2015-08-25 Nathan Sidwell <nathan@acm.org>
7089
7090 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7091 target doesn't have one.
7092
7093 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7094
7095 PR target/67346
7096 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7097
7098 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7099
7100 PR target/67344
7101 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7102 a define_insn, remove second alternative.
7103
7104 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
7105 Joseph Myers <joseph@codesourcery.com>
7106
7107 * gcc.c (struct switchstr): Expand comment.
7108
7109 2015-08-25 Nathan Sidwell <nathan@acm.org>
7110
7111 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7112 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7113
7114 2015-08-25 Richard Biener <rguenther@suse.de>
7115
7116 PR middle-end/67306
7117 * genmatch.c (expr::gen_transform): Verify the result of
7118 builtin_decl_implicit.
7119 (dt_simplify::gen_1): Likewise.
7120
7121 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7122
7123 * config/arm/constraints.md: Also list Cs and US ARM-specific
7124 constraints as used.
7125
7126 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
7127
7128 PR target/66609
7129 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7130 UNSPEC_PCREL.
7131 (nonpic_symbol_mentioned_p): Likewise.
7132 (sh_delegitimize_address): Likewise.
7133 (sh_function_ok_for_sibcall): Take into account weak symbols.
7134 (sh_expand_sym_label2reg): New.
7135 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7136 * config/sh/sh.md (UNSPEC_PCREL): New enum.
7137 (call_pcrel): Use sh_expand_sym_label2reg.
7138 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7139 (symPCREL_label2reg) New expand.
7140
7141 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7142
7143 * graphite-poly.c: Change type of region from void* to sese.
7144 * graphite-poly.h (struct scop): Changing the type of scop::region
7145 from void* to sese. Change accessor macro accordingly.
7146 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7147
7148 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7149
7150 * graphite-scop-detection.c (stmt_simple_for_scop_p):
7151 Constrain only on INTEGER_TYPE.
7152
7153 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7154
7155 PR target/67211
7156 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7157 -mefficient-unaligned-vsx on ISA 2.7.
7158
7159 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7160 option to a masked option.
7161
7162 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7163 logic for -mefficient-unaligned-vsx so that it is set via an arch
7164 ISA option, instead of being set if -mtune=power8 is set. Move
7165 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7166 near other default option handling.
7167
7168 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7169
7170 * genflags.c (gen_macro): Delete.
7171 (gen_proto): Don't create GEN.*CALL.* macros.
7172 * gensupport.h (get_file_location): Declare.
7173 * gensupport.c (rtx_locs): New variable.
7174 (read_md_rtx): Record rtx locations.
7175 (get_file_location): New function.
7176 * target-insns.def (call, call_pop, call_value, call_value_pop)
7177 (sibcall, sibcall_value): New patterns.
7178 * gentarget-def.c (parse_argument): New function.
7179 (def_target_insn): Use it. Handle optional operands. Raise an
7180 error if an .md pattern has the wrong number of operands for the
7181 pattern name. Remove the names of unused operands from the prototype.
7182 * builtins.c (expand_builtin_apply): Use targetm functions
7183 instead of HAVE_call_value and GEN_CALL_VALUE.
7184 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
7185 and sibcall_value_pop.
7186 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7187 of GEN_CALL.
7188 * config/alpha/alpha.md (untyped_call): Likewise.
7189 * config/iq2000/iq2000.md (untyped_call): Likewise.
7190 * config/m68k/m68k.md (untyped_call): Likewise.
7191 * config/mips/mips.md (untyped_call): Likewise.
7192 * config/pa/pa.md (untyped_call): Likewise.
7193 * config/rs6000/rs6000.md (untyped_call): Likewise.
7194 * config/sparc/sparc.md (untyped_call): Likewise.
7195 * config/tilegx/tilegx.md (untyped_call): Likewise.
7196 * config/tilepro/tilepro.md (untyped_call): Likewise.
7197 * config/visium/visium.md (untyped_call): Likewise.
7198 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7199 gen_call_value instead of GEN_CALL_VALUE.
7200 * config/arm/arm.md (untyped_call): Likewise.
7201 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7202 GEN_CALL.
7203
7204 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7205
7206 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7207 (have_cbranchcc4): New variable.
7208 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7209 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7210 (if_convert): Initialize have_cbranchcc4.
7211
7212 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7213
7214 * builtins.c (expand_cmpstrn): Rename to...
7215 (expand_cmpstrn_or_cmpmem): ...this.
7216 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7217 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7218 Remove mode argument.
7219 (expand_builtin): Update accordingly.
7220
7221 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7222
7223 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7224 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
7225 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7226 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7227 Add predicates for operands 0 and 3.
7228 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7229 operand.
7230 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7231 immediate_operand to nonmemory_operand.
7232
7233 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7234
7235 * df-scan.c (df_insn_info_init_fields): New function, split out
7236 from...
7237 (df_insn_create_insn_record): ...here.
7238 (df_insn_info_free_fields): New function, split out from...
7239 (df_insn_info_delete): ...here.
7240 (df_insn_rescan): Use the new functions instead of freeing and
7241 reallocating the df_insn_info.
7242
7243 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7244
7245 * doc/install.texi (Binaries): Remove links no longer valid.
7246
7247 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7248
7249 * config/nvptx/mkoffload.c (process): Replace
7250 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7251
7252 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
7253
7254 PR target/67329
7255 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7256
7257 2015-08-24 Renlin Li <renlin.li@arm.com>
7258
7259 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7260 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7261 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7262 * config/arm/constraints.md ("j"): Add check for high code.
7263
7264 2015-08-24 Tom de Vries <tom@codesourcery.com>
7265
7266 PR tree-optimization/65468
7267 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7268 chunk_size is one.
7269
7270 2015-08-24 Nathan Sidwell <nathan@acm.org>
7271
7272 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7273 change to nvptx_type_from_mode call. Use arg_promotion for both
7274 split and non-split args.
7275
7276 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7277
7278 * target-insns.def (movstr): New pattern.
7279 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7280 (expand_movstr): Use targetm rather than HAVE_movstr/
7281 CODE_FOR_movstr.
7282
7283 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7284
7285 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7286 cast syntax.
7287
7288 2015-08-24 Andrew Pinski <apinski@cavium.com>
7289
7290 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7291 AARCH64_EXTRA_TUNING_OPTION.
7292 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7293 New enum.
7294 (aarch64_extra_tuning_flags): Base the shifted value on the index
7295 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7296 * config/aarch64/aarch64.c: Remove the last argument to
7297 AARCH64_EXTRA_TUNING_OPTION.
7298
7299 2015-08-23 Nathan Sidwell <nathan@acm.org>
7300
7301 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7302 decls.
7303 (nvptx_declare_function_name): Insert formatting tabs for
7304 consistency.
7305
7306 2015-08-23 Tom de Vries <tom@codesourcery.com>
7307
7308 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7309 parm_decl, rather than generating a dummy default def in cfun.
7310 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
7311 ssa_name from cfun and child_fn do not share a stmt as def stmt.
7312 (move_stmt_op): Handle PARM_DECl.
7313 (gather_ssa_name_hash_map_from): New function.
7314 (move_sese_region_to_fn): Add default defs for function params, and add
7315 them to vars_map. Release copied ssa names.
7316 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7317
7318 2015-08-23 Tom de Vries <tom@codesourcery.com>
7319
7320 * doc/sourcebuild.texi: Rename vect_no_int_max with
7321 vect_no_int_min_max. Update description.
7322
7323 2015-08-22 Andrew Pinski <apinski@cavium.com>
7324
7325 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7326 * config/aarch64/aarch64-protos.h
7327 (aarch64_fusion_pairs_index): New enum.
7328 (aarch64_fusion_pairs): Base the shifted value on the index instead
7329 Rewrite AARCH64_FUSE_ALL to be based on the end index.
7330 of the argument to AARCH64_FUSION_PAIR.
7331 * config/aarch64/aarch64.c: Remove the last argument to
7332 AARCH64_FUSION_PAIR.
7333
7334 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
7335
7336 * dominance.c (new_zero_array): Define.
7337 (dom_info): Redefine as class with proper encapsulation.
7338 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7339 Add new members.
7340 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
7341 allocations/deallocations. Pass function as parameter (instead of
7342 using cfun).
7343 (dom_info::get_idom): Define accessor method.
7344 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7345 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
7346 (calculate_dominance_info): Adjust to use dom_info class.
7347 (verify_dominators): Likewise.
7348
7349 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
7350
7351 * print-rtl.c (print_rtx): Check the correct range for
7352 flag_dump_unnumbered_links to behave as documented.
7353
7354 PR rtl-optimization/67227
7355 PR rtl-optimization/64164
7356 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7357 (nonoverlapping_memrefs_p): Test offsets and sizes when given
7358 identical gimple_reg exprs.
7359
7360 2015-08-21 Nathan Sidwell <nathan@acm.org>
7361
7362 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7363 expansion.
7364 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7365 crtl->stack_alignment_needed to determine alignment.
7366 (nvptx_get_drap_rtx): New.
7367 (TARGET_GET_DRAP_RTX): Override.
7368 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7369
7370 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7371
7372 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7373
7374 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7375
7376 * configure.ac: Remove uwin* cases.
7377 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7378 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7379 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7380 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7381 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7382 i[34567]86-*-uwin*, powerpc-*-beos*.
7383
7384 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
7385
7386 * gencodes.c (gencodes): Print the comma for the preceding
7387 enum value rather than the current one. Use aliased enum values
7388 rather than #defines for compiled-out patterns.
7389 (main): Update accordingly. Replace LAST_INSN_CODE with
7390 NUM_INSN_CODES.
7391 * lra.c (insn_code_data): Update accordingly.
7392 (finish_insn_code_data_once, get_static_insn_data): Likewise.
7393 * recog.h (target_recog): Likewise.
7394 (preprocess_insn_constraints): Change parameter to unsigned int.
7395 * recog.c (preprocess_insn_constraints): Likewise.
7396 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7397 * tree-vect-stmts.c (vectorizable_operation): Simplify.
7398
7399 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
7400
7401 PR rtl-optimization/61657
7402 * loop-iv.c (iv_number_of_iterations): Declare up and down as
7403 unsigned. Remove superflous uint64_t cast.
7404
7405 2014-08-21 Felix Yang <felix.yang@huawei.com>
7406 Jiji Jiang <jiangjiji@huawei.com>
7407
7408 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7409 argument and get builtin function code directly from CALL.
7410 (gimple_stringop_fixed_value): Modified accordingly.
7411 (gimple_stringops_transform, gimple_stringops_values_to_profile):
7412 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7413
7414 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
7415
7416 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7417
7418 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7419
7420 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7421 to match.pd.
7422 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7423 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7424 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7425 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7426 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7427 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7428 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7429 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7430 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7431 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7432
7433 * match.pd (SIN ) : New Operator.
7434 (TAN) : New Operator.
7435 (mult (SQRT@1 @0) @1) : New simplifier.
7436 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7437 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7438 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7439 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7440 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7441 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7442 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7443 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7444 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7445 (rdiv @0 (POW:s @1 @2)) : New simplifier.
7446
7447 2015-08-21 Bin Cheng <bin.cheng@arm.com>
7448
7449 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7450 loop if EXPR is simplified to const value.
7451
7452 2015-08-21 Yury Gribov <y.gribov@samsung.com>
7453
7454 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7455 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7456
7457 2015-08-21 Richard Biener <rguenther@suse.de>
7458
7459 PR middle-end/67285
7460 * gimple-fold.c (replace_stmt_with_simplification): Assert
7461 seq is empty when replacing a call with itself but different
7462 arguments.
7463 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7464 a call require that it is const.
7465
7466 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7467
7468 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7469 * builtins.c (get_object_alignment_2): Adjust.
7470 * varasm.c (align_variable): Likewise.
7471 (get_variable_align): Likewise.
7472 (build_constant_desc): Likewise.
7473 (force_const_mem): Likewise.
7474 * doc/tm.texi.in: Likewise.
7475 * doc/tm.texi: Regenerate.
7476
7477 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7478
7479 * genconfig.c (main): Always define HAVE_cc0.
7480 * recog.c (rest_of_handle_peephole2): Adjust.
7481
7482 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7483
7484 * reorg.c (relax_delay_slots): Don't use #if to check value of
7485 HAVE_cc0.
7486
7487 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7488
7489 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7490 * targhooks.c (default_have_conditional_execution): Adjust.
7491
7492 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * rtl.h (rtvec_all_equal_p): Declare.
7495 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7496 * rtl.c (rtvec_all_equal_p): New function.
7497 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7498 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7499 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7500 * config/arm/arm.c (neon_vdup_constant): Likewise.
7501 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7502 * config/tilegx/constraints.md (W, Y): Likewise.
7503 * config/tilepro/constraints.md (W, Y): Likewise.
7504 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7505 (classify_immediate): Use unwrap_const_vec_duplicate.
7506 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7507 (reg_or_v2s8bit_operand): Likewise.
7508 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7509 (reg_or_v4s8bit_operand): Likewise.
7510
7511 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7512
7513 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7514 (vec_shasigma_be): New #define.
7515 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7516 (VPMSUMH): Likewise.
7517 (VPMSUMW): Likewise.
7518 (VPMSUMD): Likewise.
7519 (VPMSUM): New BU_P8V_OVERLOAD_2.
7520 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7521 entries for VEC_MADD and VEC_VPMSUM.
7522
7523 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
7524
7525 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7526 Multiply argument avr_n_flash by 64 to match unit of "KiB".
7527 (avr_pgm_check_var_decl): Same.
7528
7529 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
7530
7531 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7532 initialization of HFmode scalar type (float16_t) to...
7533 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7534 code.
7535
7536 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7537
7538 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7539 having an -mfp16-format.
7540
7541 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7542
7543 * config/i386/predicates.md (vector_all_ones_operand): Use
7544 CONSTM1_RTX to simplify definition.
7545
7546 2015-08-20 Richard Biener <rguenther@suse.de>
7547
7548 * toplev.c (compile_file): Remove loop calling late_global_decl
7549 on all symbols.
7550 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7551 on decls we assembled.
7552
7553 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
7554
7555 * common/config/aarch64/aarch64-common.c
7556 (AARCH64_CPU_NAME_LENGTH): Delete.
7557 (aarch64_option_extension): New.
7558 (all_extensions): Likewise.
7559 (processor_name_to_arch): Likewise.
7560 (arch_to_arch_name): Likewise.
7561 (all_cores): New.
7562 (all_architectures): Likewise.
7563 (aarch64_get_extension_string_for_isa_flags): Likewise.
7564 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7565 architecture names.
7566 * config/aarch64/aarch64-protos.h
7567 (aarch64_get_extension_string_for_isa_flags): New.
7568 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7569 (aarch64_option_print): Get the string to print from
7570 aarch64_get_extension_string_for_isa_flags.
7571 (aarch64_declare_function_name): Likewise.
7572 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7573 (MCPU_TO_MARCH_SPEC): This.
7574 (ASM_CPU_SPEC): Use it.
7575 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7576 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7577 (EXTRA_SPEC_FUNCTIONS): Use it.
7578
7579 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
7580
7581 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7582 expansion when !ISA_HAS_LWL_LWR.
7583 (mips_block_move_straight): Update the size of elements copied to
7584 account for alignment when !ISA_HAS_LWL_LWR.
7585 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7586
7587 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7588
7589 * expr.c (expand_expr_real_2): Check gimple statement during
7590 LSHIFT_EXPR expand.
7591
7592 2015-08-19 Magnus Granberg <zorry@gentoo.org>
7593
7594 * common.opt (fstack-protector): Initialize to -1.
7595 (fstack-protector-all): Likewise.
7596 (fstack-protector-strong): Likewise.
7597 (fstack-protector-explicit): Likewise.
7598 * configure.ac: Add --enable-default-ssp.
7599 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
7600 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7601 -1.
7602 * doc/install.texi: Document --enable-default-ssp.
7603 * config.in: Regenerated.
7604 * configure: Likewise.
7605
7606 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
7607
7608 PR rtl-optimization/64164
7609 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7610 (parm_in_stack_slot_p): ... this. Disregard mode, what
7611 matters is whether the parm will live in a pseudo or a stack
7612 slot.
7613 (expand_one_ssa_partition): Deal with params without a default
7614 def. Disregard mode.
7615 * cfgexpand.h: Renamed function declaration.
7616 * tree-ssa-coalesce.c: Adjust.
7617 * function.c (split_complex_args): Allocate stack slot for
7618 unassigned parms before splitting.
7619 (parm_in_unassigned_mem_p): New. Use it instead of
7620 parm_maybe_byref_p throughout this file.
7621 (assign_parm_setup_block): Use it. Accept pseudos in the
7622 expand-assigned rtl.
7623 (assign_parm_setup_reg): Drop BLKmode requirement.
7624 (assign_parm_setup_stack): Allocate and fill in the address of
7625 unassigned MEM parms.
7626
7627 2015-08-19 David Sherwood <david.sherwood@arm.com>
7628
7629 * genmodes.c (emit_mode_unit_size_inline): New function.
7630 (emit_mode_unit_precision_inline): New function.
7631 (emit_insn_modes_h): Emit new #define. Emit new functions.
7632 (emit_mode_unit_size): New function.
7633 (emit_mode_unit_precision): New function.
7634 (emit_mode_adjustments): Add mode_unit_size adjustments.
7635 (emit_insn_modes_c): Emit new arrays.
7636 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7637 use new inline methods.
7638
7639 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7640
7641 * config/aarch64/aarch64.c (bit_count): Delete prototype
7642 and definition.
7643 (aarch64_print_operand): Use popcount_hwi instead of the above.
7644
7645 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7646
7647 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7648 comment.
7649
7650 2015-08-19 Marek Polacek <polacek@redhat.com>
7651
7652 PR middle-end/67133
7653 * gimple-ssa-isolate-paths.c
7654 (insert_trap_and_remove_trailing_statements): Rename to ...
7655 (insert_trap): ... this. Don't remove trailing statements; split
7656 block instead.
7657 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7658
7659 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
7660
7661 PR other/67042
7662 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7663 conditionalize the whole on __GNUC__. Add fallback code
7664 depending neither on undefined nor implementation-defined behaviour.
7665
7666 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7667
7668 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7669 whitespaces with tab.
7670
7671 2015-08-19 Florian Weimer <fweimer@redhat.com>
7672
7673 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7674 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7675 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7676 Move Name_Ids instantiation to the Prj.Proc package, to avoid
7677 trampolines.
7678
7679 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7680
7681 * config/arm/arm.c (bounds_check): Use %wd print format
7682 for HOST_WIDE_INT arguments.
7683
7684 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7685
7686 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7687 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7688 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7689 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7690 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7691 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7692 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7693 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7694 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7695 typedefs.
7696
7697 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
7698
7699 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7700 function.c, graphite-scop-detection.c, haifa-sched.c,
7701 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7702 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7703 varasm.c: Remove typedefs of structs.
7704
7705 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7706
7707 * config/rs6000/altivec.h (vec_adde): New define.
7708 (vec_addec): Likewise.
7709 (vec_double): Likewise.
7710 (vec_bperm): Likewise.
7711 (vec_gb): Likewise.
7712 * config/rs6000/rs6000-builtin.def (ADDE): New
7713 BU_ALTIVEC_OVERLOAD_3.
7714 (ADDEC): Likewise.
7715 (DOUBLE): New BU_VSX_OVERLOAD_1.
7716 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7717 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7718 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7719 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7720 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7721 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7722 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7723 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7724 and P8V_BUILTIN_VEC_VBPERMQ.
7725
7726 2015-08-18 Jason Merrill <jason@redhat.com>
7727
7728 * print-tree.c (print_node): Handle TREE_BINFO.
7729
7730 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7731
7732 PR middle-end/36757
7733 * builtins.c (expand_builtin_signbit): Add asserts to make sure
7734 we can expand BUILT_IN_SIGNBIT inline.
7735 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7736 * doc/extend.texi: Document the type-generic __builtin_signbit.
7737
7738 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
7739
7740 PR rtl-optimization/67218
7741 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7742 (simplify_unary_operation_1): Use it.
7743
7744 2015-08-18 Marek Polacek <polacek@redhat.com>
7745
7746 PR middle-end/67222
7747 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7748 if the call isn't valid.
7749 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7750 gimple_call_builtin_p.
7751 (call_may_clobber_ref_p_1): Likewise.
7752 (stmt_kills_ref_p): Likewise.
7753
7754 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
7755
7756 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7757 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7758 (mips_hard_regno_scratch_ok): Likewise.
7759 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7760 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7761
7762 2015-08-18 Bin Cheng <bin.cheng@arm.com>
7763
7764 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7765 (determine_value_range): Call refine_value_range_using_guard for
7766 each loop initial condition to improve value range.
7767
7768 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
7769
7770 * config/i386/i386.c: Remove include of fibheap.h.
7771
7772 2015-08-17 Richard Biener <rguenther@suse.de>
7773
7774 PR tree-optimization/67221
7775 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7776 (sccvn_dom_walker::before_dom_children): Mark backedges of
7777 non-executable blocks as not executable.
7778
7779 2015-08-17 David Sherwood <david.sherwood@arm.com>
7780
7781 * config/arm/arm.c (neon_element_bits): Replace call to
7782 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7783 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7784 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7785 (neon_vdup_lane<mode>): Likewise.
7786 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7787 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7788 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7789 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7790 * config/spu/spu.c (arith_immediate_p): Likewise.
7791 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7792 * expr.c (expand_expr_real_2): Likewise.
7793 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7794 * simplify-rtx.c (simplify_immed_subreg): Likewise.
7795 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7796 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7797 New variable.
7798 * fold-const.c (fold_binary_loc): Replace call to
7799 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7800 GET_MODE_UNIT_PRECISION (m).
7801
7802 2015-08-17 Mike Stump <mikestump@comcast.net>
7803
7804 * config/arm/arm.c (arm_block_move_unaligned_straight):
7805 Emit normal move instead of unaligned load when source or destination
7806 are appropriately aligned.
7807
7808 2015-08-17 Richard Biener <rguenther@suse.de>
7809 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7810
7811 PR middle-end/16107
7812 * match.pd (div (coss (op @0) : New simplifier.
7813
7814 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
7815
7816 PR rtl-optimization/64164
7817 PR bootstrap/66978
7818 PR middle-end/66983
7819 PR rtl-optimization/67000
7820 PR middle-end/67034
7821 PR middle-end/67035
7822 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7823 * tree-ssa-copyrename.c: Removed.
7824 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7825 -ftree-coalesce-vars.
7826 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7827 * common.opt (ftree-copyrename): Ignore.
7828 (ftree-coalesce-inlined-vars): Likewise.
7829 * doc/invoke.texi: Remove the ignored options above.
7830 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7831 * tree-ssa-coalesce.h: ... here.
7832 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7833 headers required by it.
7834 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7835 across variables when flag_tree_coalesce_vars. Check register
7836 use and promoted modes to allow coalescing. Do not coalesce
7837 maybe-byref parms with SSA_NAMEs of other variables, or
7838 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
7839 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7840 with its member functions to tree-ssa-coalesce.c.
7841 (var_map_base_init): Likewise. Renamed to
7842 compute_samebase_partition_bases.
7843 (partition_view_normal): Drop want_bases parameter.
7844 (partition_view_bitmap): Likewise.
7845 * tree-ssa-live.h: Adjust declarations.
7846 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7847 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7848 default defs at the entry point.
7849 (dump_part_var_map): New.
7850 (compute_optimized_partition_bases): New, called by...
7851 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7852 of compute_samebase_partition_bases. Adjust.
7853 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7854 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7855 (ssa_default_def_partition): New.
7856 (get_rtl_for_parm_ssa_default_def): New.
7857 (align_local_variable, add_stack_var): Support anonymous SSA
7858 names.
7859 (defer_stack_allocation): Likewise. Declare earlier.
7860 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7861 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7862 Do no record deferred-allocation marker in
7863 SA.partition_to_pseudo.
7864 (expand_stack_vars): Adjust check for the marker in it.
7865 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7866 redundant MEM attr setting.
7867 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7868 from...
7869 (expand_one_stack_var): ... this. New wrapper to check and
7870 skip already expanded SSA partitions.
7871 (record_alignment_for_reg_var): New, factored out of...
7872 (expand_one_var): ... this.
7873 (expand_one_ssa_partition): New.
7874 (adjust_one_expanded_partition_var): New.
7875 (expand_one_register_var): Check and skip already expanded SSA
7876 partitions.
7877 (expand_used_vars): Don't create DECLs for anonymous SSA
7878 names. Expand all SSA partitions, then adjust all SSA names.
7879 (pass::execute): Replace the loops that set
7880 SA.partition_to_pseudo from partition leaders and cleared
7881 DECL_RTL for multi-location variables, and that which used to
7882 rename vars and set attrs, with one that clears DECL_RTL and
7883 checks that PARMs and RESULTs default_defs match DECL_RTL.
7884 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7885 * emit-rtl.c: Include stor-layout.h.
7886 (set_reg_attrs_for_parm): Handle NULL decl.
7887 (set_reg_attrs_for_decl_rtl): Take mode from expression if
7888 it's not a DECL.
7889 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7890 rather than its possibly-NULL DECL.
7891 * explow.c (promote_ssa_mode): New.
7892 * explow.h (promote_ssa_mode): Declare.
7893 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7894 (read_complex_part): Export.
7895 * expr.h (read_complex_part): Declare.
7896 * cfgexpand.h (parm_maybe_byref_p): Declare.
7897 * function.c: Include cfgexpand.h.
7898 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7899 (use_register_for_parm_decl): Wrapper for the above to
7900 special-case the result_ptr.
7901 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7902 (split_complex_args): Take assign_parm_data_all argument.
7903 Pass it to rtl_for_parm. Set up rtl and context for split
7904 args. Reset complex parm before fetching its default decl
7905 rtl.
7906 (assign_parms_unsplit_complex): Use the default-def complex
7907 parm rtl if it matches the components.
7908 (assign_parms_augmented_arg_list): Adjust.
7909 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7910 multiple locations. Recognize split complex args.
7911 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7912 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7913 (assign_parm_setup_block): Prefer SSA-assigned location, and
7914 fill in its address if the memory location of a maybe-byref
7915 parm was not assigned by cfgexpand.
7916 (assign_parm_setup_reg): Likewise. Adjust its mode as
7917 needed. Use entry_parm for equiv if stack_parm is NULL. Make
7918 sure passed_pointer parms don't need conversion. Copy address
7919 or value as needed.
7920 (assign_parm_setup_stack): Prefer SSA-assigned location.
7921 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7922 rtl before testing for pointer bounds. Special-case result_ptr.
7923 (expand_function_start): Maybe reset DECL_RTL of result.
7924 Prefer SSA-assigned location for result and static chain.
7925 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
7926 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
7927 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7928 anonymous SSA names. Use promote_ssa_mode.
7929 (get_temp_reg): Likewise.
7930 (remove_ssa_form): Adjust.
7931 * stor-layout.c (layout_decl): Don't set mem attributes of
7932 non-MEMs.
7933 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7934 and get its reg_usage for reg invalidation.
7935 (compute_bb_dataflow): Pass it insn.
7936 (emit_notes_in_bb): Likewise.
7937
7938 2015-08-14 Marek Polacek <polacek@redhat.com>
7939
7940 * tree-core.h (tree_base): Fix typo.
7941
7942 2015-08-14 Marek Polacek <polacek@redhat.com>
7943
7944 PR middle-end/67133
7945 * gimple.c (infer_nonnull_range_by_attribute): Check that the
7946 nonnull argument position is not outside function arguments.
7947
7948 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
7949
7950 PR target/67143
7951 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7952 'lconst_atomic' with 'const_atomic'.
7953 (atomic_fetch_<optab><mode>): Likewise.
7954 (atomic_<optab>_fetch<mode>): Likewise.
7955 * config/aarch64/iterators.md (lconst-atomic): Move below
7956 'const_atomic'.
7957 (const_atomic): New.
7958
7959 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
7960 Bernd Schmidt <bernds@codesourcery.com>
7961
7962 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7963 debug options.
7964 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7965 (DWARF2_DEBUGGING_INFO): Don't define.
7966 * debug.h (dwarf2_lineno_debug_hooks): Declare.
7967 * toplev.c (process_options): Add a case for it.
7968 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7969 (dwarf2out_init): Skip most initializations if
7970 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7971 case.
7972 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7973 DWARF2_LINENO_DEBUGGING_INFO.
7974 * opts.c (set_debug_level): Likewise.
7975
7976 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
7977
7978 * config/arm/types.md (is_neon_type): Add missing types.
7979
7980 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7981
7982 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7983 for skylake.
7984 * config/i386/i386.c (PTA_SKYLAKE): New macros.
7985 (processor_alias_table): Add skylake description.
7986 (enum processor_model): Add skylake processor.
7987 (arch_names_table): Add skylake record.
7988 * doc/invoke.texi: Add skylake item.
7989
7990 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
7991
7992 * ira-int.h: Include recog.h.
7993 * ira-build.c: Don't include recog.h.
7994 * ira-color.c: Likewise.
7995 * ira-conflicts.c: Likewise.
7996 * ira-costs.c: Likewise.
7997 * ira-emit.c: Likewise.
7998 * ira-lives.c: Likewise.
7999 * ira.c: Likewise.
8000 * sched-deps.c: Likewise.
8001 * sel-sched.c: Likewise.
8002 * target-globals.c: Likewise.
8003
8004 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
8005
8006 PR bootstrap/55035
8007 * reload1.c (elimination_costs_in_insn): Make it obvious to the
8008 compiler that the n_dups and n_operands loop bounds are invariant.
8009
8010 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8011
8012 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8013 expressions in A and B.
8014
8015 2015-08-13 Richard Biener <rguenther@suse.de>
8016
8017 * tree.c (nonnull_arg_p): Move from ...
8018 * tree-vrp.c (nonnull_arg_p): ... here.
8019 * tree.h (nonnull_arg_p): Declare.
8020 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8021 here, register ptr != 0 for nonnull_arg_p pointer arguments.
8022 Properly initialize static chain and by-reference result pointer.
8023 (run_scc_vn): Adjust.
8024
8025 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8026
8027 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8028 TUNE_I6400.
8029
8030 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8031
8032 * config/aarch64/aarch64-protos.h
8033 (aarch64_gen_atomic_cas): Declare.
8034 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8035 Choose appropriate instruction pattern for the target.
8036 (aarch64_gen_atomic_cas): New.
8037 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8038 (atomic_compare_and_swap<mode>_1): Rename to
8039 aarch64_compare_and_swap<mode>. Fix some indentation.
8040 (aarch64_compare_and_swap<mode>_lse): New.
8041 (aarch64_atomic_cas<mode>): New.
8042
8043 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8044
8045 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8046 (TARGET_LSE): New.
8047
8048 2015-08-13 Richard Biener <rguenther@suse.de>
8049
8050 PR tree-optimization/67191
8051 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8052 assert we value-numbered last stmts operand because it can validly
8053 trigger for unreachable code.
8054
8055 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8056
8057 PR rtl-optimization/67103
8058 * ifcvt.c (noce_try_store_flag_constants): Move
8059 x = (-(test != 0) & (b - a)) + a transformation to...
8060 (noce_try_cmove): ... Here. Try it if normal conditional
8061 move fails.
8062
8063 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8064
8065 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8066 pseudo-processors.
8067 * config/mips/mips.md (processor): Remove w32 and w64.
8068
8069 2015-08-13 Richard Biener <rguenther@suse.de>
8070
8071 PR tree-optimization/66502
8072 PR tree-optimization/67167
8073 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8074 backedge arguments.
8075 (vn_phi_lookup): Adjust.
8076 (vn_phi_insert): Likewise.
8077 (visit_phi): Prefer to value-number to another PHI node
8078 over value-numbering to a PHI argument.
8079 (init_scc_vn): Mark DFS back edges.
8080
8081 2015-08-13 Richard Biener <rguenther@suse.de>
8082
8083 * gimple.h (gcall::code_): New constant static member.
8084 (gcond::code_): Likewise.
8085 * gimple.c (gcall::code_): Define.
8086 (gcond::code_): Likewise.
8087 (is_a_helper <const gcond *>): Add.
8088 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8089 and forward to a new gcall overload with less checking and a
8090 cheaper way to access the operand.
8091 (gimple_call_lhs_ptr): Likewise.
8092 (gimple_call_set_lhs): Likewise.
8093 (gimple_call_internal_p): Likewise.
8094 (gimple_call_with_bounds_p): Likewise.
8095 (gimple_call_set_with_bounds): Likewise.
8096 (gimple_call_internal_fn): Likewise.
8097 (gimple_call_set_ctrl_altering): Likewise.
8098 (gimple_call_ctrl_altering_p): Likewise.
8099 (gimple_call_fntype): Likewise.
8100 (gimple_call_fn): Likewise.
8101 (gimple_call_fn_ptr): Likewise.
8102 (gimple_call_set_fndecl): Likewise.
8103 (gimple_call_fndecl): Likewise.
8104 (gimple_call_chain): Likewise.
8105 (gimple_call_num_args): Likewise.
8106 (gimple_call_arg): Likewise.
8107 (gimple_call_arg_ptr): Likewise.
8108 (gimple_call_set_arg): Likewise.
8109 (gimple_call_noreturn_p): Likewise.
8110 (gimple_cond_code): Likewise.
8111 (gimple_cond_lhs): Likewise.
8112 (gimple_cond_rhs): Likewise.
8113 (gimple_has_lhs): Reduce checking.
8114
8115 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8116
8117 PR middle-end/25529
8118 * match.pd (div (mult @0 @1) @1) : New simplifier.
8119
8120 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8121
8122 PR target/67071
8123 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8124 predicate to allow construction of vector constants using the
8125 VSLDOI vector shift instruction.
8126
8127 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8128 declaration.
8129
8130 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8131 the number of bytes to be shifted left and filled in with either
8132 all zero or all one bits.
8133 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8134 methods exist.
8135 (output_vec_const_move): On power8, generate XXLORC to generate
8136 a vector constant with all 1's. Do a split if we need to use a
8137 VSLDOI instruction.
8138
8139 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8140 properly test for the MSB.
8141
8142 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8143 vector constants that can be created with VSLDOI.
8144
8145 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8146
8147 revert:
8148 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8149 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8150 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8151 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8152 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8153 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8154 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8155 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8156 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8157
8158 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
8159
8160 * config/xtensa/constraints.md (define_constraint "Y"): New
8161 constraint.
8162 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8163 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8164 * config/xtensa/predicates.md (move_operand): Match constants
8165 and symbols in the presence of TARGET_AUTO_LITPOOLS.
8166 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8167 immediate references to TLS data.
8168 (xtensa_emit_move_sequence): Don't force constants to memory in
8169 the presence of TARGET_AUTO_LITPOOLS.
8170 (print_operand): Add 'y' format, same as default, but capable of
8171 printing SF mode constants as well.
8172 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8173 (movsf_internal): Add movi pattern that loads literal.
8174 (movsf, movdf): Don't force constants to memory in the presence
8175 of TARGET_AUTO_LITPOOLS.
8176 (movdf_internal): Add 'Y' constraint.
8177 * config/xtensa/xtensa.opt (mauto-litpools): New option.
8178 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8179
8180 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8181
8182 * config/arm/arm-fpus.def: Replace booleans with feature flags.
8183 Update comment.
8184 * config/arm/arm.c (ARM_FPU): Update macro.
8185 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8186 (TARGET_FP16): Likewise.
8187 (TARGET_CRYPTO): Likewise.
8188 (TARGET_NEON): Likewise.
8189 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
8190 field features.
8191
8192 2015-08-12 Tom de Vries <tom@codesourcery.com>
8193
8194 PR other/67092
8195 PR other/67098
8196 * doc/install.texi: Remove --with_host_libstdcxx item. Update
8197 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8198 accordingly. Mention default for --with-stage1-ldflags.
8199
8200 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8201
8202 * config/arm/arm.h (arm_fpu_feature_set): New.
8203 (ARM_FPU_FSET_HAS): New.
8204 (FPU_FL_NONE): New.
8205 (FPU_FL_NEON): New.
8206 (FPU_FL_FP16): New.
8207 (FPU_FL_CRYPTO): New.
8208
8209 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8210
8211 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8212 after -mcmodel=large -fPIC sorry.
8213
8214 2015-08-12 Richard Biener <rguenther@suse.de>
8215
8216 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8217 comparison operand order and commutative ternary op operand order.
8218 (sccvn_dom_walker::cond_stack): New state to track temporary
8219 expressions.
8220 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8221 no longer valid.
8222 (sccvn_dom_walker::record_cond): Add a single temporary conditional
8223 expression.
8224 (sccvn_dom_walker::record_conds): Add a temporary conditional
8225 expressions and all related expressions also true/false.
8226 (sccvn_dom_walker::before_dom_children): Record temporary
8227 expressions based on the controlling condition of a single
8228 predecessor. When trying to simplify a conditional statement
8229 lookup expressions we might have inserted earlier.
8230
8231 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
8232
8233 PR target/67127
8234 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8235 to ARM core registers.
8236
8237 2015-08-12 Nathan Sidwell <nathan@acm.org>
8238
8239 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8240 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8241
8242 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
8243
8244 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8245 line with comments.
8246 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8247
8248 2015-08-12 Richard Biener <rguenther@suse.de>
8249
8250 * gimple.h (remove_pointer): New trait.
8251 (GIMPLE_CHECK2): New inline template function.
8252 (gassign::code_): New constant static member.
8253 (is_a_helper<const gassign *>): Add.
8254 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8255 and forward to a new gassign overload with less checking and a
8256 cheaper way to access the operand.
8257 (gimple_assign_lhs_ptr): Likewise.
8258 (gimple_assign_set_lhs): Likewise.
8259 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8260 Likewise.
8261 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8262 Likewise.
8263 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8264 Likewise.
8265 (gimple_assign_rhs_code): Likewise.
8266 * gimple.c (gassign::code_): Define.
8267
8268 2015-08-12 Richard Biener <rguenther@suse.de>
8269
8270 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8271 Eliminate edges marked as not executable by SCCVN.
8272 * tree-ssa-sccvn.c: Include gimple-iterator.h.
8273 (cond_dom_walker): Rename to sccvn_dom_walker.
8274 (sccvn_dom_walker::before_dom_children): Value-number defs
8275 of all stmts.
8276 (run_scc_vn): Remove loop value-numbering all SSA names.
8277 Drop not visited SSA names to varying.
8278
8279 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8280
8281 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8282 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8283 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8284 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8285 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8286 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8287 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8288 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8289 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8290
8291 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
8292
8293 PR target/66954
8294 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8295 to enum feature_priority and feature_list.
8296 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8297 and isa_names_table.
8298
8299 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8300
8301 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8302 vect_induction_def.
8303
8304 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8305
8306 PR c/66098
8307 PR c/66711
8308 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8309 account when deciding what was the command-line status.
8310
8311 2015-08-11 Nathan Sidwell <nathan@acm.org>
8312
8313 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8314
8315 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8316 we're not the only contributor to target phi.
8317
8318 2015-08-11 Jiong Wang <jiong.wang@arm.com>
8319
8320 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8321 FIXED_REG0.
8322
8323 2015-08-11 Tom de Vries <tom@codesourcery.com>
8324
8325 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8326
8327 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
8328
8329 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8330 with CPU_SLM.
8331 * config/i386/i386.md (cpu): Remove knl.
8332
8333 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8334
8335 PR libgomp/65742
8336 PR middle-end/66332
8337 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8338 open-coded sequence.
8339 * omp-low.c (oacc_process_reduction_data): Remove handline of
8340 GOMP_DEVICE_HOST_NONSHM.
8341
8342 * lto-streamer-in.c (lto_input_mode_table): Adjust to
8343 GET_MODE_INNER changes.
8344
8345 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8346 Ilya Verbin <ilya.verbin@intel.com>
8347
8348 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8349
8350 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8351
8352 * doc/options.texi (EnabledBy): Document that the argument must be
8353 a Common option.
8354 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8355 Not enabled by -Wall.
8356 * optc-gen.awk: Give nicer error messages. Detect if the argument
8357 of EnabledBy is not a Common option.
8358 * common.opt (Wnull-dereference): Not enabled by -Wall.
8359 * opt-functions.awk (lang_enabled_by): Nicer error messages.
8360
8361 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
8362
8363 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8364 model == 0x4f as Broadwell.
8365
8366 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8367
8368 PR rtl-optimization/67028
8369 * combine.c (simplify_comparison): Fix comment. Rearrange code.
8370 Add test to see if a const_int fits in the new mode.
8371
8372 2015-08-07 DJ Delorie <dj@redhat.com>
8373
8374 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8375
8376 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
8377
8378 PR rtl-optimization/67029
8379 * ira-color.c: Include "recog.h" before including "ira-int.h".
8380 * target-globals.c: Likewise.
8381 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8382 adds an alternative_mask argument and use it instead of
8383 preferred_alternatives.
8384 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8385 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8386 * sched-deps.c: Include "ira-int.h" after including "ira.h".
8387 (sched_analyze_insn): Update call to
8388 ira_implicitly_set_insn_hard_regs.
8389 * sel-sched.c: Include "ira-int.h" after including "ira.h".
8390 (implicit_clobber_conflict_p): Update call to
8391 ira_implicitly_set_insn_hard_regs.
8392
8393 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8394
8395 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8396
8397 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
8398
8399 PR target/67002
8400 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8401 currently_expanding_to_rtl is set.
8402
8403 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
8404
8405 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8406 * configure: Regenerate.
8407
8408 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8409 Jiong Wang <jiong.wang@arm.com>
8410
8411 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8412 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8413 (REG_CLASS_NAMES): Likewise.
8414 (REG_CLASS_CONTENTS): Likewise.
8415 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8416 (aarch64_register_move_cost): Likewise.
8417 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8418 possible.
8419 * config/aarch64/constraints.md (Uc0): New constraint.
8420
8421 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8422
8423 * config/aarch64/constraints.md (Usf): Add the test of
8424 aarch64_is_noplt_call_p.
8425
8426 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8427
8428 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8429 declaration.
8430 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8431 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8432 (call_symbol): Likewise.
8433
8434 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8435
8436 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8437 for vectorizing multiplication patterns.
8438 * tree-vectorizer.h: Adjust the number of patterns.
8439
8440 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8441
8442 * config/i386/sse.md (*vec_concatv2df): Declare added
8443 alternatives as sselog type.
8444
8445 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8446
8447 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8448 all GPRs.
8449
8450 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8451
8452 * config/s390/s390.c (s390_expand_tbegin): Expand either
8453 tbegin_1_z13 or tbegin_1 depending on VX flag.
8454 * config/s390/s390.md ("tbegin_1_z13"): New expander.
8455
8456 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8457
8458 * config/s390/s390.opt: Clarify description for -mzvector
8459 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8460 -mzvector.
8461
8462 2015-08-06 Richard Biener <rguenther@suse.de>
8463
8464 * gimple.h (gimple_call_set_fn): Access op member directly.
8465 (gimple_call_chain_ptr): Likewise.
8466 (gimple_call_set_chain): Likewise.
8467 (gimple_cond_lhs_ptr): Likewise.
8468 (gimple_cond_set_lhs): Likewise.
8469 (gimple_cond_rhs_ptr): Likewise.
8470 (gimple_cond_set_rhs): Likewise.
8471 (gimple_cond_true_label): Likewise.
8472 (gimple_cond_set_true_label): Likewise.
8473 (gimple_cond_set_false_label): Likewise.
8474 (gimple_cond_false_label): Likewise.
8475 (gimple_label_label): Likewise.
8476 (gimple_label_set_label): Likewise.
8477 (gimple_goto_set_dest): Likewise.
8478 (gimple_asm_input_op): Likewise.
8479 (gimple_asm_input_op_ptr): Likewise.
8480 (gimple_asm_set_input_op): Likewise.
8481 (gimple_asm_output_op): Likewise.
8482 (gimple_asm_output_op_ptr): Likewise.
8483 (gimple_asm_set_output_op): Likewise.
8484 (gimple_asm_clobber_op): Likewise.
8485 (gimple_asm_set_clobber_op): Likewise.
8486 (gimple_asm_label_op): Likewise.
8487 (gimple_asm_set_label_op): Likewise.
8488 (gimple_switch_index): Likewise.
8489 (gimple_switch_index_ptr): Likewise.
8490 (gimple_return_retval_ptr): Likewise.
8491 (gimple_return_retval): Likewise.
8492 (gimple_return_set_retval): Likewise.
8493 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
8494 (gimple_switch_label): Likewise.
8495 (gimple_switch_set_label): Likewise.
8496
8497 2015-08-06 Richard Biener <rguenther@suse.de>
8498
8499 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8500 bool comparison canonicalization and restrict to integers.
8501
8502 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
8503
8504 * coretypes.h (enum symbol_visibility): Relocate here.
8505 * flag-types.h (enum symbol_visibility): Remove.
8506 * tree-core.h (enum symbol_visibility): Remove.
8507
8508 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
8509
8510 PR target/66870
8511 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8512 for no_split_stack function attribute along with
8513 flag_split_stack.
8514 (rs6000_expand_split_stack_prologue): Likewise.
8515
8516 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8517 Jeff Law <law@redhat.com>
8518
8519 PR c/16351
8520 * doc/invoke.texi (Wnull-dereference): New.
8521 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8522 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8523 Warn for potential NULL dereferences.
8524 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8525 * ubsan.c (instrument_nonnull_arg): Call
8526 infer_nonnull_range_by_attribute.
8527 (instrument_nonnull_return): Likewise.
8528 * common.opt (Wnull-dereference); New.
8529 * gimple.c (infer_nonnull_range): Remove bool arguments.
8530 (infer_nonnull_range_by_dereference): New.
8531 (infer_nonnull_range_by_attribute): New.
8532 * gimple.h: Update declarations.
8533
8534 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8535
8536 * gensupport.c (sequence_num): Replace with...
8537 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8538 ...these new variables.
8539 (init_rtx_reader_args_cb): Update accordingly.
8540 (get_num_code_insns): Likewise.
8541 (read_md_rtx): Rework to use a while loop and get_c_test.
8542 Use the new counters. Remove redundant DEFINE_SUBST case.
8543 * genoutput.c (gen_split): Delete.
8544 (main): Don't call it.
8545
8546 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8547
8548 * gensupport.h (get_c_test): Declare.
8549 * gensupport.c (get_c_test): New function.
8550 * genconditions.c (main): Use it.
8551 * genrecog.c (validate_pattern): Likewise.
8552 (match_pattern_1): Likewise. Remove c_test argument.
8553 (match_pattern): Update accordingly and remove c_test argument.
8554 (main): Update accordingly.
8555
8556 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8557
8558 * gensupport.h (get_num_insn_codes): Declare.
8559 * gensupport.c (get_num_insn_codes): New function.
8560 * genattrtab.c (optimize_attrs): Rename max_insn_code to
8561 num_insn_codes.
8562 (main): Likewise. Use get_num_insn_codes.
8563 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8564
8565 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8566
8567 PR middle-end/66311
8568 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8569 is zero- rather than sign-extended.
8570
8571 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8572
8573 * target-insns.def (can_extend): Delete.
8574
8575 2015-08-05 Richard Biener <rguenther@suse.de>
8576
8577 PR tree-optimization/67121
8578 * tree-if-conv.c (combine_blocks): Clear range-info produced
8579 by stmts no longer executed conditionally.
8580
8581 2015-08-05 Nick Clifton <nickc@redhat.com>
8582
8583 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8584 to allow identical far pointers to remain.
8585
8586 2015-08-05 Richard Biener <rguenther@suse.de>
8587
8588 PR middle-end/67120
8589 * match.pd: Compare address bases with == if they are decls
8590 or SSA names, not operand_equal_p. Otherwise fail.
8591
8592 2015-08-05 Richard Biener <rguenther@suse.de>
8593
8594 PR tree-optimization/67055
8595 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8596 NULL gimple_block.
8597
8598 * g++.dg/torture/pr67055.C: New testcase.
8599
8600 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8601
8602 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8603 noavx512vl.
8604 (define_attr "enabled"): Handle avx521vl and noavx512vl.
8605 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8606 AVX-512 alternative out of SSE.
8607 (define_insn "*vec_concatv2df"): Ditto.
8608
8609 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8610
8611 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8612 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8613 CODE_FOR_avx_ptestv4di.
8614 * config/i386/sse.md (define_mode_iterator V_AVX): New.
8615 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8616 (define_insn "avx_ptest256"): Merge this ...
8617 (define_insn "sse4_1_ptest"): And this ...
8618 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8619
8620 2015-08-05 Richard Biener <rguenther@suse.de>
8621
8622 PR tree-optimization/67109
8623 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8624 against too big groups. Print whether this is a load or store
8625 group. Rename from ...
8626 (vect_analyze_group_access): ... this which is now a wrapper
8627 dissolving an invalid group.
8628 (vect_analyze_data_ref_accesses): Print whether this is a load
8629 or store group.
8630
8631 2015-08-05 Richard Biener <rguenther@suse.de>
8632
8633 PR middle-end/67107
8634 * match.pd: Guard const_binop result checking against NULL_TREE
8635 result.
8636
8637 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
8638
8639 * cse.c (cse_insn): Restoring old behaviour for src_eqv
8640 when dest and value in the REG_EQUAL are same and dest
8641 is STRICT_LOW_PART.
8642
8643 2015-08-04 Anatoly Sokolov <aesok@post.ru>
8644
8645 * config/moxie/moxie.h (PRINT_OPERAND,
8646 PRINT_OPERAND_ADDRESS): Remove macros.
8647 * config/moxie/moxie-protos.h (moxie_print_operand,
8648 moxie_print_operand_address): Remove declaration.
8649 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8650 TARGET_PRINT_OPERAND_ADDRESS): Define.
8651 (moxie_print_operand, moxie_print_operand_address): Make static.
8652
8653 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8654
8655 PR target/66731
8656 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8657 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8658
8659 2015-08-04 Richard Biener <rguenther@suse.de>
8660
8661 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8662 generated code.
8663 (dt_operand::gen_gimple_expr): Adjust.
8664
8665 2015-08-04 Richard Biener <rguenther@suse.de>
8666
8667 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8668 bool compares on RHS.
8669 * match.pd: Add X ==/!= !X is false/true pattern.
8670
8671 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
8672
8673 * config/aarch64/aarch64.c: Change inner loop statement cost
8674 to be consistent with other targets.
8675
8676 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
8677
8678 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8679 targets.
8680
8681 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
8682
8683 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8684 (machine_function): Remove pseudos field.
8685
8686 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8687
8688 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8689 Exit early and use target_option_current_node if processing current
8690 pragma.
8691
8692 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8693
8694 * doc/extend.texi (AArch64 Function Attributes): New node.
8695 (AArch64 Pragmas): Likewise.
8696
8697 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8698
8699 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8700 Initialize simd builtins if TARGET_SIMD.
8701 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8702 Make sure that the builtins are initialized only once no matter how
8703 many times the function is called.
8704 (aarch64_init_builtins): Unconditionally initialize crc builtins.
8705 (aarch64_relayout_simd_param): New function.
8706 (aarch64_simd_expand_args): Use above during argument expansion.
8707 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8708 simd builtins if TARGET_SIMD.
8709 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8710 prototype.
8711 (aarch64_relayout_simd_types): Likewise.
8712
8713 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8714
8715 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8716 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8717 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8718 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8719 static keyword.
8720 (aarch64_reset_previous_fndecl): New function.
8721 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8722 the string.
8723 * config/aarch64/aarch64-c.c: New file.
8724 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8725 Push and pop options at beginning and end. Remove ifdef
8726 __ARM_FEATURE_CRC32.
8727 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8728 Add pragma +nothing+simd and +nothing+crypto where appropriate.
8729 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8730 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8731 Define prototype.
8732 (aarch64_register_pragmas): Likewise.
8733 (aarch64_reset_previous_fndecl): Likewise.
8734 (aarch64_process_target_attr): Likewise.
8735 (aarch64_override_options_internal): Likewise.
8736
8737 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8738
8739 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8740 New function.
8741 (aarch64_can_inline_p): Likewise.
8742 (TARGET_CAN_INLINE_P): Define.
8743
8744 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8745
8746 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8747 Remove static. Handle OPT_mgeneral_regs_only,
8748 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8749 OPT_momit_leaf_frame_pointer.
8750 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8751 (aarch64_attr_opt_type): New enum.
8752 (aarch64_attribute_info): New struct.
8753 (aarch64_handle_attr_arch): New function.
8754 (aarch64_handle_attr_cpu): Likewise.
8755 (aarch64_handle_attr_tune): Likewise.
8756 (aarch64_handle_attr_isa_flags): Likewise.
8757 (aarch64_attributes): New table.
8758 (aarch64_process_one_target_attr): New function.
8759 (num_occurences_in_str): Likewise.
8760 (aarch64_process_target_attr): Likewise.
8761 (aarch64_option_valid_attribute_p): Likewise.
8762 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8763 * config/aarch64/aarch64-protos.h: Include input.h
8764 (aarch64_handle_option): Declare prototype.
8765
8766 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8767
8768 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8769 * config/aarch64/aarch64.c: Include target-globals.h
8770 (aarch64_previous_fndecl): New variable.
8771 (aarch64_set_current_function): New function.
8772 (TARGET_SET_CURRENT_FUNCTION): Define.
8773
8774 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8775
8776 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8777 (explicit_arch): Likewise.
8778 (x_aarch64_isa_flags): Likewise.
8779 (mgeneral-regs-only): Mark as Save.
8780 (mfix-cortex-a53-835769): Likewise.
8781 (mcmodel=): Likewise.
8782 (mstrict-align): Likewise.
8783 (momit-leaf-frame-pointer): Likewise.
8784 (mtls-dialect): Likewise.
8785 (master=): Likewise.
8786 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8787 (aarch64_isa_flags): Remove extern declaration.
8788 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8789 to indicate success or failure.
8790 (aarch64_validate_march): Likewise.
8791 (aarch64_validate_mtune): Likewise.
8792 (aarch64_isa_flags): Delete.
8793 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8794 instead of aarch64_isa_flags.
8795 (aarch64_get_tune_cpu): New function.
8796 (aarch64_get_arch): Likewise.
8797 (aarch64_override_options): Use above and set up explicit_tune_core
8798 and explicit_arch.
8799 (aarch64_print_extension): Move earlier in file. Add isa_flags
8800 argument and use that instead of the global aarch64_isa_flags.
8801 (aarch64_option_save): New function.
8802 (aarch64_option_restore): Likewise.
8803 (aarch64_option_print): Likewise.
8804 (aarch64_declare_function_name): Likewise.
8805 (aarch64_start_file): Delete.
8806 (TARGET_ASM_FILE_START): Do not define.
8807 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8808 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8809 Declare prototype.
8810
8811 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8812
8813 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8814 flag_omit_leaf_frame_pointer to 2.
8815
8816 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8817
8818 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8819 define to 0 or 1.
8820 (TARGET_FIX_ERR_A53_835769): New macro.
8821 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8822 handling of opts->x_aarch64_fix_a53_err835769.
8823 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8824 than aarch64_fix_a53_err835769.
8825 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8826 * config/aarch64/aarch64-linux.h: Likewise.
8827
8828 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
8829
8830 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8831 ix86_expand_int_movcc as boolean.
8832
8833 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8834
8835 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8836 (aarch64_cpu_string): Likewise.
8837 (aarch64_tune_string): Likewise.
8838 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8839 (aarch64_parse_extension): Return aarch64_parse_opt_result.
8840 Add extra argument to put result into.
8841 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
8842 (aarch64_parse_cpu): Add arguments to put results into. Return
8843 aarch64_parse_opt_result.
8844 (aarch64_parse_tune): Likewise.
8845 (aarch64_override_options_after_change_1): New function.
8846 (aarch64_override_options_internal): New function.
8847 (aarch64_validate_mcpu): Likewise.
8848 (aarch64_validate_march): Likewise.
8849 (aarch64_validate_mtune): Likewise.
8850 (aarch64_override_options): Update to reflect above changes.
8851 Move some logic into aarch64_override_options_internal.
8852 Initialize target_option_default_node and target_option_current_node.
8853 (aarch64_override_options_after_change): Move logic into
8854 aarch64_override_options_after_change_1 and call it with global_options.
8855 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8856 flag values from that.
8857
8858 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8859
8860 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8861 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8862 * config/aarch64/aarch64.c (struct processor): Add arch field.
8863 (all_architectures): Handle above, move above all_cores.
8864 (all_cores): Handle above.
8865 (aarch64_parse_arch): Handle above changes.
8866 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8867 above. Update comments.
8868 (armv8.1-a): Likewise.
8869 * config/aarch64/aarch64-cores.def: Update according to above.
8870 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8871 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8872 aarch64_arch_driver_info.
8873
8874 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8875
8876 * config/aarch64/aarch64.c (struct processor): Add ident field.
8877 Rename core sched_core.
8878 (all_cores): Handle above changes.
8879 (all_architectures): Likewise.
8880 (aarch64_parse_arch): Likewise.
8881 (aarch64_override_options): Likewise.
8882
8883 2015-08-04 Richard Biener <rguenther@suse.de>
8884
8885 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8886 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8887 comparisons embedded in [VEC_]COND_EXPRs.
8888
8889 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
8890
8891 * tree-if-conv.c: Fix various typos in comments.
8892 * tree-vect-stmts.c: Likewise.
8893
8894 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8895
8896 PR tree-optimization/67043
8897 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8898 preheader after hoisting invariant in it.
8899 (find_defs): Force recomputation of all luids.
8900
8901 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
8902
8903 * config/rs6000/htm.md (tabort.): Restrict the source operand to
8904 using a base register.
8905
8906 2015-08-03 David Malcolm <dmalcolm@redhat.com>
8907
8908 * main.c (main): Pass in NULL for toplev's external_timer.
8909 * timevar.c: Include coretypes.h.
8910 (class timer::named_items): New.
8911 (timer::named_items::named_items): New.
8912 (timer::named_items::~named_items): New.
8913 (timer::named_items::push): New.
8914 (timer::named_items::pop): New.
8915 (timer::named_items::print): New.
8916 (timer::timer): Initialize field "m_jit_client_items".
8917 (timer::~timer): New.
8918 (timer::push): Move bulk of implementation to...
8919 (timer::push_internal): ...here. New function.
8920 (timer::pop): Move bulk of implementation to...
8921 (timer::pop_internal): ...here. New function.
8922 (timer::push_client_item): New.
8923 (timer::pop_client_item): New.
8924 (timer::print_row): New function, taken from timer::print.
8925 (timer::print): Print "GCC items" header if we also have client
8926 items. Move row-printing to timer::print_row. Print any client
8927 items.
8928 (timer::get_topmost_item_name): New method.
8929 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8930 (TV_JIT_CLIENT_CODE): New.
8931 * timevar.h (timer::push_client_item): New declaration.
8932 (timer::pop_client_item): New declaration.
8933 (timer::get_topmost_item_name): New method.
8934 (timer::push_internal): New declaration.
8935 (timer::pop_internal): New declaration.
8936 (timer::print_row): New declaration.
8937 (timer::named_items): New declaration.
8938 (timer::m_jit_client_items): New field.
8939 (timer): Add friend class named_items.
8940 (auto_timevar::auto_timevar): Add timer param.
8941 (auto_timevar::~auto_timevar): Use field "m_timer".
8942 (auto_timevar::m_timer): New field.
8943 * toplev.c (initialize_rtl): Add g_timer as param when
8944 constructing auto_timevar instance.
8945 (toplev::toplev): Add "external_timer" param, and use it to
8946 initialize the "g_timer" global if non-NULL.
8947 (toplev::~toplev): If this created "g_timer", delete it.
8948 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8949 with "external_timer" timer *.
8950
8951 2015-08-03 Alexander Basov <coohpt@gmail.com>
8952
8953 PR middle-end/64744
8954 PR middle-end/48470
8955 PR middle-end/43404
8956 * cfgexpand.c (expand_one_var): Add check if stack is going to
8957 be used in naked function.
8958 * expr.c (expand_expr_addr_expr_1): Remove excess checking
8959 whether expression should not reside in MEM.
8960 * function.c (use_register_for_decl): Do not use registers for
8961 non-register things (volatile, float, BLKMode) in naked functions.
8962
8963 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
8964
8965 PR target/67060
8966 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8967 Adjust splits to match new pattern.
8968
8969 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8970
8971 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8972 (VEC_M): Likewise.
8973 (VEC_N): Likewise.
8974 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8975 point in VSX registers.
8976
8977 * config/rs6000/constraints.md (wb constraint): Document unused
8978 w<x> constraint.
8979 (we constraint): Likewise.
8980 (wo constraint): Likewise.
8981 (wp constraint): New constraint for IEEE 128-bit floating point in
8982 VSX registers.
8983 (wq constraint): Likewise.
8984
8985 * config/rs6000/predicates.md (easy_fp_constant): Add support for
8986 IEEE 128-bit floating point in VSX registers.
8987 (easy_scalar_constant): Likewise.
8988
8989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8990 constraints (wp, wq) for IEEE 128-bit floating point in VSX
8991 registers.
8992 (rs6000_init_hard_regno_mode_ok): Likewise.
8993
8994 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8995 floating point in VSX registers.
8996 (VSX_L): Likewise.
8997 (VSX_M): Likewise.
8998 (VSX_M2): Likewise.
8999 (VSm): Likewise.
9000 (VSs): Likewise.
9001 (VSr): Likewise.
9002 (VSa): Likewise.
9003 (VSv): Likewise.
9004 (vsx_le_permute_<mode>): Add support to properly swap bytes for
9005 IEEE 128-bit floating point in VSX registers on little endian.
9006 (vsx_le_undo_permute_<mode>): Likewise.
9007 (vsx_le_perm_load_<mode>): Likewise.
9008 (vsx_le_perm_store_<mode>): Likewise.
9009 (splitters for IEEE 128-bit fp moves): Likewise.
9010
9011 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9012 wq constraints.
9013
9014 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9015 floating point in VSX registers.
9016 (VM2): Likewise.
9017
9018 * doc/md.text (Machine Constraints): Document wp and wq
9019 constraints on PowerPC.
9020
9021 2015-08-03 Jeff Law <law@redhat.com>
9022
9023 PR middle-end/66314
9024 PR gcov-profile/66899
9025 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9026 iterate over the jump threading paths when an element in the
9027 jump threading paths array is eliminated.
9028
9029 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9030
9031 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9032
9033 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
9034
9035 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9036 is_use_properly_guarded the variable def_preds. Free its
9037 contents before returning.
9038 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9039 (is_use_properly_guarded): Replace local variable def_preds with
9040 a parameter. Adjust accordingly. Only update *def_preds if it's
9041 the empty vector.
9042
9043 2015-08-03 Richard Biener <rguenther@suse.de>
9044
9045 * genmatch.c (simplify::for_subst_vec): New member.
9046 (binary_ok): New helper for for lowering.
9047 (lower_for): Delay substituting operators into result expressions
9048 if we can merge the results eventually again.
9049 (capture_info::walk_result): Adjust for user_id appearing as
9050 result expression operator.
9051 (expr::gen_transform): Likewise.
9052 (dt_simplify::gen_1): Likewise.
9053 (dt_simplify::gen): Pass not substituted operators to tail
9054 functions or initialize local variable with it.
9055 (decision_tree::gen): Adjust function signature.
9056 * match.pd: Fix tests against global code and add default
9057 cases to switch stmts.
9058
9059 2015-08-03 Richard Biener <rguenther@suse.de>
9060
9061 * genmatch.c (dt_simplify::gen): Create captures array
9062 with an initializer.
9063
9064 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9065
9066 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9067 the host compiler is affected by placement new aliasing bug.
9068 * configure: Regenerate.
9069 * Makefile.in (ALIASING_FLAGS): New variable.
9070 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9071
9072 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9073
9074 PR target/66731
9075 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9076 (negmulsf3_vfp): Likewise.
9077 (muldf3negdf_vfp): Disable for -frounding-math.
9078 (mulsf3negsf_vfp): Likewise.
9079 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9080 fix MULT cost with -frounding-math.
9081
9082 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9083
9084 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9085 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9086 explicit. Prefer to add the flag whenever possible.
9087 (noce_process_if_block): Try noce_try_store_flag_constants before
9088 noce_try_cmove.
9089
9090 2015-08-03 Richard Biener <rguenther@suse.de>
9091
9092 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9093 New hash-map to record equivalent transforms.
9094 (dt_node::analyze): Populate the equivalent transforms hash-map.
9095 (dt_simplify::info): Add reference to hash-map entry.
9096 (dt_simplify::gen): If we have split out a function for the
9097 transform, generate a call to it.
9098 (sinfo_hashmap_traits::hash): New function.
9099 (compare_op): New helper function for ...
9100 (sinfo_hashmap_traits::equal_keys): ... this new function.
9101 (decision_tree::gen): Split out common equivalent transforms
9102 into functions.
9103
9104 2015-08-03 Richard Biener <rguenther@suse.de>
9105
9106 * gimple-fold.c (fold_gimple_assign): Remove folding of
9107 the comparison in COND_EXPRs.
9108
9109 2015-08-03 Richard Biener <rguenther@suse.de>
9110
9111 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9112 on the rhs of assignments first simplify the embedded
9113 GENERIC condition.
9114
9115 2015-08-03 Richard Biener <rguenther@suse.de>
9116
9117 PR tree-optimization/66917
9118 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9119 field.
9120 (DR_VECT_AUX): New macro.
9121 (set_dr_misalignment): Adjust.
9122 (dr_misalignment): Likewise.
9123 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9124 Compute whether the base is at least element aligned.
9125 * tree-vect-stmts.c (ensure_base_align): Adjust.
9126 (vectorizable_store): If the base is not element aligned
9127 preserve alignment of the original access if misalignment is unknown.
9128 (vectorizable_load): Likewise.
9129
9130 2015-08-02 Martin Sebor <msebor@redhat.com>
9131
9132 * c-family/c.opt (-Wframe-address): New warning option.
9133 * doc/invoke.texi (Wframe-address): Document it.
9134 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9135 Clarify possible effects of calling the functions with non-zero
9136 arguments and mention -Wframe-address.
9137 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9138
9139 2015-08-01 Michael Collison <michael.collison@linaro.org
9140 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9141
9142 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9143 (*arm_umin_cmp): Likewise.
9144
9145 2015-08-01 Caroline Tice <cmtice@google.com>
9146
9147 PR 66521
9148 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9149 global variables.
9150 (vtbl_find_mangled_name): New function.
9151 (vtbl_register_mangled_name): New function.
9152 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
9153 mangled name in mangled name vectors.
9154 (find_or_create_vtbl_map_node): Ditto.
9155 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
9156 update recursion_depth on function entry; pass it to every recursive
9157 call; automatically exit if depth > 25 (give up looking at that point).
9158 (verify_bb_vtables): Initialize recursion_depth and pass it to
9159 var_is_used_for_virtual_call_p.
9160 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9161 global variable decls.
9162 (vtbl_register_mangled_name): New extern function decl.
9163
9164 2015-08-01 Tom de Vries <tom@codesourcery.com>
9165
9166 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9167 function.
9168 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9169 Declare.
9170 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9171 operation_no_trapping_overflow. Allow non-overflow operations.
9172 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9173 operations.
9174
9175 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
9176
9177 PR target/67049
9178 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9179
9180 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9181
9182 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9183 Enable for TARGET_32BIT.
9184 (*if_move_neg): Likewise.
9185
9186 2015-07-31 Nick Clifton <nickc@redhat.com>
9187
9188 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9189 Returns true for __model__.
9190 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9191
9192 2015-07-31 Alan Modra <amodra@gmail.com>
9193
9194 PR target/66870
9195 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9196 (rs6000_emit_prologue): Set it.
9197 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9198
9199 2015-07-31 Richard Biener <rguenther@suse.de>
9200
9201 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9202 -> X == (C1 ^ C2) which is already implemented in match.pd.
9203 Remove redundant dispatching to fold_relational_const.
9204 Move unordered self and NaN compares ...
9205 * match.pd: ... as patterns here. Remove some stray captures
9206 and add a comment.
9207
9208 2015-07-31 Petr Murzin <petr.murzin@intel.com>
9209
9210 * config/i386/i386.c
9211 (bdesc_special_args): Convert mask type from signed to unsigned for
9212 masked builtins.
9213 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9214 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9215 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9216 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9217 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9218 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9219 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9220 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9221 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9222 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9223 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9224 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9225 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9226 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9227 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9228 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9229 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9230 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9231 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9232 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9233 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9234 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9235 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9236 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9237 * config/i386/i386-builtin-types.def
9238 (V16QI_FTYPE_V16SI): Remove.
9239 (V8DF_FTYPE_V8SI): Ditto.
9240 (V8HI_FTYPE_V8DI): Ditto.
9241 (V8SI_FTYPE_V8DI): Ditto.
9242 (V8SF_FTYPE_V8DF): Ditto.
9243 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9244 (V16HI_FTYPE_V16SI): Ditto.
9245 (V16SF_FTYPE_V16HI): Ditto.
9246 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9247 (V16SF_FTYPE_V16SI): Ditto.
9248 (V4DI_FTYPE_V4DI): Ditto.
9249 (V16SI_FTYPE_V16SF): Ditto.
9250 (V16SF_FTYPE_FLOAT): Ditto.
9251 (V8DF_FTYPE_DOUBLE): Ditto.
9252 (V8DI_FTYPE_INT64): Ditto.
9253 (V8DI_FTYPE_V4DI): Ditto.
9254 (V16QI_FTYPE_V8DI): Ditto.
9255 (UINT_FTYPE_V4SF): Ditto.
9256 (UINT64_FTYPE_V4SF): Ditto.
9257 (UINT_FTYPE_V2DF): Ditto.
9258 (UINT64_FTYPE_V2DF): Ditto.
9259 (V16SI_FTYPE_V16SI): Ditto.
9260 (V8DI_FTYPE_V8DI): Ditto.
9261 (V16SI_FTYPE_PV4SI): Ditto.
9262 (V16SF_FTYPE_PV4SF): Ditto.
9263 (V8DI_FTYPE_PV2DI): Ditto.
9264 (V8DF_FTYPE_PV2DF): Ditto.
9265 (V4DI_FTYPE_PV2DI): Ditto.
9266 (V4DF_FTYPE_PV2DF): Ditto.
9267 (V16SI_FTYPE_PV2SI): Ditto.
9268 (V16SF_FTYPE_PV2SF): Ditto.
9269 (V8DI_FTYPE_PV4DI): Ditto.
9270 (V8DF_FTYPE_PV4DF): Ditto.
9271 (V8SF_FTYPE_FLOAT): Ditto.
9272 (V4SF_FTYPE_FLOAT): Ditto.
9273 (V4DF_FTYPE_DOUBLE): Ditto.
9274 (V8SF_FTYPE_PV4SF): Ditto.
9275 (V8SI_FTYPE_PV4SI): Ditto.
9276 (V4SI_FTYPE_PV2SI): Ditto.
9277 (V8SF_FTYPE_PV2SF): Ditto.
9278 (V8SI_FTYPE_PV2SI): Ditto.
9279 (V16SF_FTYPE_PV8SF): Ditto.
9280 (V16SI_FTYPE_PV8SI): Ditto.
9281 (V8DI_FTYPE_V8SF): Ditto.
9282 (V4DI_FTYPE_V4SF): Ditto.
9283 (V2DI_FTYPE_V4SF): Ditto.
9284 (V64QI_FTYPE_QI): Ditto.
9285 (V32HI_FTYPE_HI): Ditto.
9286 (V8UHI_FTYPE_V8UHI): Ditto.
9287 (V16UHI_FTYPE_V16UHI): Ditto.
9288 (V32UHI_FTYPE_V32UHI): Ditto.
9289 (V2UDI_FTYPE_V2UDI): Ditto.
9290 (V4UDI_FTYPE_V4UDI): Ditto.
9291 (V8UDI_FTYPE_V8UDI): Ditto.
9292 (V4USI_FTYPE_V4USI): Ditto.
9293 (V8USI_FTYPE_V8USI): Ditto.
9294 (V16USI_FTYPE_V16USI): Ditto.
9295 (V2DF_FTYPE_V2DF_UINT64): Ditto.
9296 (V2DI_FTYPE_V2DF_V2DF): Ditto.
9297 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9298 (V8DF_FTYPE_V8DF_V8DI): Ditto.
9299 (V4SF_FTYPE_V4SF_UINT64): Ditto.
9300 (V4SI_FTYPE_V4SF_V4SF): Ditto.
9301 (V16SF_FTYPE_V16SF_V16SI): Ditto.
9302 (V64QI_FTYPE_V32HI_V32HI): Ditto.
9303 (V32HI_FTYPE_V16SI_V16SI): Ditto.
9304 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9305 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9306 (V32HI_FTYPE_V64QI_V64QI): Ditto.
9307 (V32HI_FTYPE_V32HI_V32HI): Ditto.
9308 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9309 (V16SI_FTYPE_V16SI_V4SI): Ditto.
9310 (V16SI_FTYPE_V16SI_V16SI): Ditto.
9311 (V16SI_FTYPE_V32HI_V32HI): Ditto.
9312 (V16SI_FTYPE_V16SI_SI): Ditto.
9313 (V8DI_FTYPE_V8DI_V8DI): Ditto.
9314 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9315 (V8DI_FTYPE_V16SI_V16SI): Ditto.
9316 (V8DI_FTYPE_V8DI_V2DI): Ditto.
9317 (QI_FTYPE_QI): Ditto.
9318 (SI_FTYPE_SI): Ditto.
9319 (DI_FTYPE_DI): Ditto.
9320 (QI_FTYPE_QI_QI): Ditto.
9321 (QI_FTYPE_QI_INT): Ditto.
9322 (HI_FTYPE_HI_INT): Ditto.
9323 (SI_FTYPE_SI_INT): Ditto.
9324 (DI_FTYPE_DI_INT): Ditto.
9325 (HI_FTYPE_V16QI_V16QI): Ditto.
9326 (SI_FTYPE_V32QI_V32QI): Ditto.
9327 (DI_FTYPE_V64QI_V64QI): Ditto.
9328 (QI_FTYPE_V8HI_V8HI): Ditto.
9329 (HI_FTYPE_V16HI_V16HI): Ditto.
9330 (SI_FTYPE_V32HI_V32HI): Ditto.
9331 (QI_FTYPE_V4SI_V4SI): Ditto.
9332 (QI_FTYPE_V8SI_V8SI): Ditto.
9333 (QI_FTYPE_V2DI_V2DI): Ditto.
9334 (QI_FTYPE_V4DI_V4DI): Ditto.
9335 (QI_FTYPE_V8DI_V8DI): Ditto.
9336 (HI_FTYPE_V16SI_V16SI): Ditto.
9337 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9338 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9339 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9340 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9341 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9342 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9343 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9344 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9345 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9346 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9347 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9348 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9349 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9350 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9351 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9352 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9353 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9354 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9355 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9356 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9357 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9358 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9359 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9360 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9361 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9362 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9363 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9364 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9365 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9366 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9367 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9368 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9369 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9370 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9371 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9372 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9373 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9374 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9375 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9376 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9377 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9378 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9379 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9380 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9381 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9382 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9383 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9384 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9385 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9386 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9387 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9388 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9389 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9390 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9391 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9392 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9393 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9394 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9395 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9396 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9397 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9398 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9399 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9400 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9401 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9402 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9403 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9404 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9405 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9406 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9407 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9408 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9409 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9410 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9411 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9412 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9413 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9414 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9415 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9416 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9417 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9418 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9419 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9420 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9421 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9422 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9423 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9424 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9425 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9426 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9427 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9428 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9429 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9430 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9431 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9432 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9433 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9434 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9435 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9436 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9437 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9438 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9439 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9440 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9441 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9442 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9443 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9444 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9445 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9446 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9447 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9448 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9449 (HI_FTYPE_HI): Ditto.
9450 (HI_FTYPE_V16QI): Ditto.
9451 (SI_FTYPE_V32QI): Ditto.
9452 (DI_FTYPE_V64QI): Ditto.
9453 (QI_FTYPE_V8HI): Ditto.
9454 (HI_FTYPE_V16HI): Ditto.
9455 (SI_FTYPE_V32HI): Ditto.
9456 (QI_FTYPE_V4SI): Ditto.
9457 (QI_FTYPE_V8SI): Ditto.
9458 (HI_FTYPE_V16SI): Ditto.
9459 (QI_FTYPE_V2DI): Ditto.
9460 (QI_FTYPE_V4DI): Ditto.
9461 (QI_FTYPE_V8DI): Ditto.
9462 (V16QI_FTYPE_HI): Ditto.
9463 (V32QI_FTYPE_SI): Ditto.
9464 (V64QI_FTYPE_DI): Ditto.
9465 (V8HI_FTYPE_QI): Ditto.
9466 (V16HI_FTYPE_HI): Ditto.
9467 (V32HI_FTYPE_SI): Ditto.
9468 (V4SI_FTYPE_QI): Ditto.
9469 (V4SI_FTYPE_HI): Ditto.
9470 (V8SI_FTYPE_QI): Ditto.
9471 (V8SI_FTYPE_HI): Ditto.
9472 (V2DI_FTYPE_QI): Ditto.
9473 (V4DI_FTYPE_QI): Ditto.
9474 (HI_FTYPE_HI_HI): Ditto.
9475 (SI_FTYPE_SI_SI): Ditto.
9476 (DI_FTYPE_DI_DI): Ditto.
9477 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9478 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9479 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9480 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9481 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9482 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9483 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9484 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9485 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9486 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9487 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9488 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9489 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9490 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9491 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9492 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9493 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9494 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9495 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9496 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9497 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9498 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9499 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9500 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9501 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9502 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9503 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9504 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9505 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9506 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9507 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9508 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9509 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9510 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9511 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9512 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9513 (V16SI_FTYPE_HI): Ditto.
9514 (V8DI_FTYPE_QI): Ditto.
9515 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9516 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9517 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9518 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9519 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9520 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9521 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9522 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9523 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9524 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9525 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9526 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9527 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9528 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9529 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9530 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9531 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9532 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9533 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9534 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9535 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9536 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9537 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9538 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9539 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9540 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9541 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9542 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9543 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9544 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9545 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9546 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9547 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9548 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9549 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9550 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9551 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9552 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9553 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9554 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9555 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9556 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9557 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9558 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9559 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9560 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9561 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9562 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9563 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9564 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9565 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9566 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9567 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9568 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9569 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9570 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9571 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9572 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9573 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9574 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9575 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9576 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9577 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9578 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9579 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9580 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9581 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9582 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9583 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9584 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9585 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9586 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9587 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9588 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9589 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9590 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9591 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9592 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9593 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9594 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9595 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9596 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9597 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9598 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9599 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9600 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9601 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9602 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9603 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9604 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9605 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9606 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9607 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9608 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9609 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9610 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9611 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9612 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9613 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9614 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9615 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9616 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9617 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9618 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9619 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9620 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9621 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9622 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9623 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9624 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9625 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9626 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9627 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9628 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9629 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9630 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9631 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9632 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9633 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9634 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9635 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9636 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9637 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9638 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9639 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9640 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9641 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9642 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9643 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9644 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9645 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9646 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9647 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9648 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9649 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9650 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9651 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9652 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9653 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9654 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9655 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9656 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9657 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9658 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9659 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9660 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9661 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9662 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9663 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9664 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9665 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9666 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9667 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9668 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9669 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9670 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9671 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9672 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9673 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9674 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9675 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9676 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9677 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9678 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9679 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9680 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9681 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9682 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9683 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9684 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9685 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9686 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9687 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9688 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9689 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9690 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9691 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9692 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9693 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9694 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9695 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9696 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9697 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9698 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9699 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9700 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9701 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9702 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9703 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9704 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9705 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9706 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9707 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9708 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9709 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9710 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9711 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9712 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9713 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9714 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9715 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9716 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9717 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9718 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9719 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9720 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9721 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9722 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9723 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9724 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9725 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9726 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9727 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9728 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9729 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9730 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9731 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9732 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9733 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9734 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9735 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9736 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9737 (QI_FTYPE_V8DF_INT_QI): Ditto.
9738 (QI_FTYPE_V4DF_INT_QI): Ditto.
9739 (QI_FTYPE_V2DF_INT_QI): Ditto.
9740 (HI_FTYPE_V16SF_INT_HI): Ditto.
9741 (QI_FTYPE_V8SF_INT_QI): Ditto.
9742 (QI_FTYPE_V4SF_INT_QI): Ditto.
9743 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9744
9745 2015-07-31 Richard Biener <rguenther@suse.de>
9746
9747 * gimple-fold.c (fold_gimple_assign): Remove folding of
9748 GIMPLE_BINARY_RHS.
9749
9750 2015-07-31 Tom de Vries <tom@codesourcery.com>
9751
9752 PR tree-optimization/66846
9753 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9754 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9755 (expand_omp_target) [ENABLE_CHECKING]: Same.
9756 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9757 cfun if !LOOPS_NEED_FIXUP.
9758 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
9759 that omp_for already has its own loop struct.
9760 * tree-parloops.c (create_phi_for_local_result)
9761 (create_call_for_reduction): Handle simple latch bb.
9762 (create_parallel_loop): Add simple latch bb to preserve
9763 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
9764 (gen_parallel_loop): Remove call to cancel_loop_tree.
9765 (parallelize_loops): Skip loops that are inner loops of parallelized
9766 loops.
9767 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9768 verify_loop_structure.
9769
9770 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9771
9772 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9773 * config/v850/v850.md (RV_REGNUM): New constants.
9774 * config/v850/v850.c (v850_libcall_value): New functions.
9775 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9776 (TARGET_LIBCALL_VALUE): Define.
9777
9778 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9779
9780 * rtl.h (lowpart_subreg): Move in file.
9781 * loop-iv.c (lowpart_subreg): Move to...
9782 * simplify-rtx.c (lowpart_subreg): ...here.
9783 (simplify_binary_operation_1): Use lowpart_subreg instead of
9784 simplify_gen_subreg.
9785 * expr.c (expand_expr_real_2): Ditto.
9786 * emit-rtl.c (gen_lowpart_common): Ditto.
9787 * combine.c (gen_lowpart_for_combine): Ditto.
9788 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9789 expand_debug_source_expr): Ditto.
9790
9791 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
9792
9793 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9794 (expand_builtin_atomic_clear): Remove support for atomic_clear
9795 pattern.
9796
9797 2015-07-30 Richard Biener <rguenther@suse.de>
9798
9799 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9800 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9801 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
9802 redundant operand canonicalization.
9803
9804 2015-07-30 David Sherwood <david.sherwood@arm.com>
9805
9806 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9807 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9808 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9809 * config/arm/arm.c (neon_valid_immediate): Likewise.
9810 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9811 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9812 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9813 (expand_vec_perm_vpshufb2_vpermq): Likewise.
9814 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9815 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9816 * config/i386/sse.md
9817 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9818 (*ssse3_palignr<mode>_perm): Likewise.
9819 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9820 * config/spu/spu.c (arith_immediate_p): Likewise.
9821 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9822 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9823
9824 2015-07-30 Richard Biener <rguenther@suse.de>
9825
9826 * genmatch.c (decision_tree::gen_gimple): Merge with ...
9827 (decision_tree::gen_generic): ... this into ...
9828 (decision_tree::gen): ... this.
9829 (main): Adjust callers.
9830
9831 2015-07-30 Richard Biener <rguenther@suse.de>
9832
9833 * genmatch.c (verbose): New global.
9834 (warning_at): Add overload with source_location.
9835 (capture_info::capture_info): Add bool whether generating gimple
9836 or generic. Add gimple member.
9837 (capture_info::cinfo): Add capture member.
9838 (capture_info::walk_match): Record capture. Warn on
9839 non-captured leafs.
9840 (capture_info::walk_c_expr): Add more fragments captures cannot
9841 escape through. Warn on escaped captures.
9842 (dt_simplify::gen_1): Warn on operands we force to have no
9843 side-effects.
9844 (main): Initialize verbose.
9845 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9846
9847 2015-07-30 Richard Biener <rguenther@suse.de>
9848
9849 PR middle-end/67053
9850 * match.pd: Allow both operands to independently have conversion
9851 when simplifying compares of addresses.
9852
9853 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9854
9855 PR target/66217
9856 PR target/67045
9857 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9858 around those cases that need one.
9859
9860 2015-07-29 Aditya Kumar <hiraditya@msn.com>
9861
9862 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9863
9864 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
9865
9866 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9867 New. Copied from config/i386/gnu-user.h.
9868 (ASM_COMMENT_START): Likewise.
9869 (DBX_REGISTER_NUMBER): Likewise.
9870
9871 2015-07-29 Richard Biener <rguenther@suse.de>
9872
9873 * gimple-fold.c (fold_gimple_cond): Remove.
9874 (fold_stmt_1): Do not call it.
9875
9876 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
9877
9878 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9879 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9880
9881 * config/aarch64/aarch64-modes.def: Add HFmode.
9882
9883 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9884 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9885
9886 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9887 aarch64_promoted_type): New.
9888
9889 (aarch64_float_const_representable_p): Disable HFmode.
9890 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9891 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9892 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9893
9894 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9895 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9896
9897 * config/aarch64/iterators.md (GPF_F16): New.
9898
9899 2015-07-29 Richard Biener <rguenther@suse.de>
9900
9901 * match.pd: Merge address comparison patterns and make them
9902 handle some more cases.
9903
9904 2015-07-29 Richard Biener <rguenther@suse.de>
9905
9906 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9907 (parser::parse_capture): Add bool argument on whether to reject
9908 unknown captures.
9909 (parser::parse_expr): Adjust.
9910 (parser::parse_op): Likewise.
9911 (parser::parse_pattern): Likewise.
9912
9913 2015-07-29 Richard Biener <rguenther@suse.de>
9914
9915 * gimple-fold.c (has_use_on_stmt): New function.
9916 (replace_stmt_with_simplification): Use it to allow
9917 abnormals originally referenced in the stmt.
9918 (fold_stmt_1): Canonicalize operand order.
9919
9920 2015-07-28 David Sherwood <david.sherwood@arm.com>
9921
9922 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9923 GET_MODE_INNER unconditionally.
9924 * config/spu/spu.c (arith_immediate_p): Likewise.
9925 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9926 * expmed.c (synth_mult): Remove check for VOIDmode result from
9927 GET_MODE_INNER.
9928 (expand_mult_const): Likewise.
9929 * fold-const.c (fold_binary_loc): Replace call to element_precision
9930 with call to GET_MODE_PRECISION.
9931 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9932 m->name.
9933 (emit_mode_inner): Likewise.
9934 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9935 result check.
9936 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9937 (GET_MODE_UNIT_PRECISION): Likewise.
9938 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9939 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9940 * stor-layout.c (bitwise_type_for_mode): Update assert.
9941 (element_precision): Remove.
9942
9943 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9944
9945 * target-insns.def (reload_load_address): New targetm instruction
9946 pattern.
9947 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9948
9949 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9950
9951 * target-insns.def (atomic_test_and_set): New targetm instruction
9952 pattern.
9953 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9954 HAVE_*/gen_* interface.
9955
9956 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9957
9958 * target-insns.def (can_extend, ptr_extend): New targetm instruction
9959 patterns.
9960 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9961 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9962 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9963 * rtlanal.c (nonzero_bits1): Likewise.
9964 (num_sign_bit_copies1): Likewise.
9965
9966 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9967
9968 * target-insns.def (eh_return): New targetm instruction pattern.
9969 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9970 interface.
9971 * function.c (thread_prologue_and_epilogue_insns): Remove
9972 preprocessor condition.
9973
9974 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9975
9976 * target-insns.def (indirect_jump): New targetm instruction pattern.
9977 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9978 interface.
9979
9980 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9981
9982 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9983 instead of nonimmediate_operand. Remove C condiition.
9984
9985 2015-07-28 Richard Biener <rguenther@suse.de>
9986
9987 * match.pd: Add more simplification of address comparisons.
9988
9989 2015-07-28 Richard Biener <rguenther@suse.de>
9990
9991 * match.pd: Re-order two cases in comparison with max/min
9992 value simplification to make it apply for bools.
9993
9994 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9995
9996 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9997 Handle simple SIGN_EXTEND or ZERO_EXTEND.
9998 (aarch64_rtx_costs): Properly strip extend or extract before
9999 passing down to rtx costs again.
10000
10001 2015-07-28 Nick Clifton <nickc@redhat.com>
10002
10003 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10004 Optimizes the case where -mes0 is active and a constant symbolic
10005 address is used.
10006 * config/rl78/rl78-protos.h: Prototype the new function.
10007 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10008
10009 2015-07-28 Tom de Vries <tom@codesourcery.com>
10010
10011 * tree-parloops.c (reduc_stmt_res): New function.
10012 (initialize_reductions, add_field_for_reduction)
10013 (create_phi_for_local_result, create_loads_for_reductions)
10014 (create_stores_for_reduction, build_new_reduction): Handle case that
10015 reduc_stmt is a phi.
10016 (gather_scalar_reductions): Allow double_reduc reductions.
10017
10018 2015-07-28 Richard Biener <rguenther@suse.de>
10019
10020 * fold-const.c (fold_comparison): Remove equality folding
10021 of decl addresses ...
10022 * match.pd: ... here and merge with existing pattern.
10023
10024 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10025
10026 PR tree-optimization/66828
10027 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10028 from int64_t to uint64_t.
10029
10030 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10031
10032 * opts-common.c (read_cmdline_option): List DriverOnly enum values
10033 as valid only in the error message of the driver, not in the
10034 messages of the language compilers.
10035
10036 2015-07-27 Tom de Vries <tom@codesourcery.com>
10037
10038 * tree-parloops.c (gather_scalar_reductions): Simplify function
10039 structure.
10040
10041 2015-07-27 Marek Polacek <polacek@redhat.com>
10042
10043 * ipa-devirt.c (types_same_for_odr): Fix typo.
10044
10045 2015-07-27 Jason Merrill <jason@redhat.com>
10046
10047 PR debug/66468
10048 * dwarf2out.c (gen_inlined_subroutine_die): Check
10049 cgraph_function_possibly_inlined_p.
10050
10051 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10052
10053 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10054 Place integer variant first.
10055 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10056
10057 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10058
10059 PR/63870
10060 * config/arm/arm-builtins.c (enum arm_builtins):
10061 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10062 (ARM_BUILTIN_NEON_BASE): Rename macro to....
10063 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10064 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10065 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10066
10067 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10068
10069 PR/63870
10070 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10071 Add qualifier_lane_index.
10072 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10073 (arm_getlane_qualifiers): Use qualifier_lane_index.
10074 (arm_lanemac_qualifiers): Rename to...
10075 (arm_mac_n_qualifiers): ...this.
10076 (LANEMAC_QUALIFIERS): Rename to...
10077 (MAC_N_QUALIFIERS): ...this.
10078 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10079 (arm_setlane_qualifiers): Use qualifier_lane_index.
10080 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10081 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10082 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10083 (arm_expand_neon_builtin): Handle qualifier_lane_index.
10084
10085 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10086 * config/arm/arm.c (bounds_check): Likewise, improve error message.
10087 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10088 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10089 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10090 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10091 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10092 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10093 qualifiers to TERNOP_IMM.
10094 (vdup_lane): Change qualifiers to GETLANE.
10095 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10096 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10097 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10098 vqdmlsl_n): Change qualifiers to MAC_N.
10099
10100 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10101 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10102 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10103 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10104 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10105 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10106 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10107 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10108 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10109 Remove call to neon_lane_bounds.
10110
10111 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10112
10113 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10114 Place integer variant first.
10115
10116 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
10117
10118 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10119 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10120 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10121 for armv6kz targets.
10122 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10123 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10124 (FL_FOR_ARCH6ZK): Remove.
10125 (FL_FOR_ARCH6KZ): New.
10126 (arm_arch6zk): New declaration.
10127 * config/arm/arm-tables.opt: Regenerate.
10128 * config/arm/arm.c (arm_arch6kz): New.
10129 (arm_option_override): Set arm_arch6kz.
10130 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10131 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10132 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10133
10134 2015-07-27 Marek Polacek <polacek@redhat.com>
10135
10136 PR c++/66555
10137 PR c/54979
10138 * doc/invoke.texi: Document -Wtautological-compare.
10139
10140 2015-07-27 Richard Biener <rguenther@suse.de>
10141
10142 * genmatch.c (decision_tree::gen_gimple): Split out large
10143 subtrees into separate functions.
10144 (decision_tree::gen_generic): Likewise.
10145
10146 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
10147
10148 * config/alpha/alpha.c: Use SUBREG_P predicate.
10149 * config/alpha/predicates.md: Ditto.
10150
10151 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10152
10153 * config.host (s390*-*-*): Include driver-native.c only when
10154 building with s390* as host *and* target.
10155
10156 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
10157
10158 PR target/66930
10159 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10160 T bit register modified_between_p check.
10161
10162 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10163
10164 * config/i386/i386.c: Use SUBREG_P predicate.
10165 * config/i386/i386.md: Ditto.
10166 * config/i386/sse.md: Ditto.
10167 * config/i386/predicates.md: Ditto.
10168
10169 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10170
10171 PR target/67004
10172 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10173 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10174
10175 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10176
10177 * Makefile.in: Remove use of TREEBROWSER.
10178 * config.in: Regenerated.
10179 * configure: Regenerated.
10180 * configure.ac: Remove definition of TREEBROWSER.
10181 * tree-browser.c: Removed.
10182 * tree-browser.def: Removed.
10183
10184 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10185
10186 * graphite-scop-detection.c: Include gimple-pretty-print.h.
10187 (stmt_simple_for_scop_p): Print when a stmt is not handled in
10188 Graphite.
10189 (scopdet_basic_block_info): Print when a loop or bb cannot be
10190 represented in Graphite.
10191
10192 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10193
10194 PR target/66648
10195 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10196 execution guard when min_size is less than size_needed.
10197
10198 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10199
10200 * doc/install.texi: Document supported versions of ISL.
10201
10202 2015-07-25 Jeff Law <law@redhat.com>
10203
10204 Revert:
10205 PR lto/66752
10206 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10207 unable to find X NE 0 in the tables, return X as the simplified
10208 condition.
10209 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10210 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10211 to VISISTED_BBS. */
10212 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10213 after removing the control flow statement and unnecessary edges.
10214
10215 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
10216
10217 Revert:
10218 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10219
10220 PR rtl-optimization/64164
10221 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10222 * tree-ssa-copyrename.c: Removed.
10223 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10224 -ftree-coalesce-vars.
10225 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10226 * common.opt (ftree-copyrename): Ignore.
10227 (ftree-coalesce-inlined-vars): Likewise.
10228 * doc/invoke.texi: Remove the ignored options above.
10229 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10230 * tree-ssa-coalesce.h: ... here.
10231 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10232 headers required by it.
10233 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10234 across variables when flag_tree_coalesce_vars. Check register
10235 use and promoted modes to allow coalescing. Moved to
10236 tree-ssa-coalesce.c.
10237 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10238 with its member functions to tree-ssa-coalesce.c.
10239 (var_map_base_init): Likewise. Renamed to
10240 compute_samebase_partition_bases.
10241 (partition_view_normal): Drop want_bases parameter.
10242 (partition_view_bitmap): Likewise.
10243 * tree-ssa-live.h: Adjust declarations.
10244 * tree-ssa-coalesce.c: Include explow.h.
10245 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10246 default defs at the entry point.
10247 (dump_part_var_map): New.
10248 (compute_optimized_partition_bases): New, called by...
10249 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10250 of compute_samebase_partition_bases. Adjust.
10251 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10252 * cfgexpand.c (leader_merge): New.
10253 (get_rtl_for_parm_ssa_default_def): New.
10254 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10255 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10256 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10257 redundant MEM attr setting.
10258 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10259 from...
10260 (expand_one_stack_var): ... this. New wrapper to check and
10261 skip already expanded SSA partitions.
10262 (record_alignment_for_reg_var): New, factored out of...
10263 (expand_one_var): ... this.
10264 (expand_one_ssa_partition): New.
10265 (adjust_one_expanded_partition_var): New.
10266 (expand_one_register_var): Check and skip already expanded SSA
10267 partitions.
10268 (expand_used_vars): Don't create DECLs for anonymous SSA
10269 names. Expand all SSA partitions, then adjust all SSA names.
10270 (pass::execute): Replace the loops that set
10271 SA.partition_to_pseudo from partition leaders and cleared
10272 DECL_RTL for multi-location variables, and that which used to
10273 rename vars and set attrs, with one that clears DECL_RTL and
10274 checks that PARMs and RESULTs default_defs match DECL_RTL.
10275 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10276 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10277 * explow.c (promote_ssa_mode): New.
10278 * explow.h (promote_ssa_mode): Declare.
10279 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10280 * function.c: Include cfgexpand.h.
10281 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10282 (use_register_for_parm_decl): Wrapper for the above to
10283 special-case the result_ptr.
10284 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10285 (split_complex_args): Take assign_parm_data_all argument.
10286 Pass it to rtl_for_parm. Set up rtl and context for split
10287 args.
10288 (assign_parms_augmented_arg_list): Adjust.
10289 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10290 multiple locations. Recognize split complex args.
10291 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10292 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10293 (assign_parm_setup_block): Prefer SSA-assigned location.
10294 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10295 if stack_parm is NULL.
10296 (assign_parm_setup_stack): Prefer SSA-assigned location.
10297 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10298 rtl before testing for pointer bounds. Special-case result_ptr.
10299 (expand_function_start): Maybe reset DECL_RTL of result.
10300 Prefer SSA-assigned location for result and static chain.
10301 Factor out DECL_RESULT and SET_DECL_RTL.
10302 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10303 anonymous SSA names. Use promote_ssa_mode.
10304 (get_temp_reg): Likewise.
10305 (remove_ssa_form): Adjust.
10306 * stor-layout.c (layout_decl): Don't set mem attributes of
10307 non-MEMs.
10308 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10309 and get its reg_usage for reg invalidation.
10310 (compute_bb_dataflow): Pass it insn.
10311 (emit_notes_in_bb): Likewise.
10312
10313 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10314
10315 * config/i386/i386.c (ix86_va_start): Remove
10316 unneeded !TARGET_64BIT check.
10317 (ix86_gimplify_va_arg): Ditto.
10318
10319 2015-07-24 Tom de Vries <tom@codesourcery.com>
10320
10321 * graphite-sese-to-poly.c (build_poly_scop): Always call
10322 rewrite_commutative_reductions_out_of_ssa.
10323
10324 2015-07-24 Tom de Vries <tom@codesourcery.com>
10325
10326 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10327 flag_associative_math to FLOAT_TYPE_P. Honour
10328 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10329
10330 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10331
10332 PR c++/64079
10333 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10334 and "%qD" in warning_at instead of "%q+D" in warning.
10335
10336 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10337
10338 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10339 (ix86_function_abi): Cleanup.
10340
10341 2015-07-24 Michael Darling <darlingm@gmail.com>
10342
10343 PR other/66259
10344 * acinclude.m4: Reflects renaming of configure.in to configure.ac
10345 * configure: Likewise
10346 * configure.ac: Likewise
10347 * doc/install.texi: Likewise
10348 * doc/tm.texi: Likewise
10349 * doc/tm.texi.in: Likewise
10350
10351 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10352
10353 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10354 manually swapping values.
10355 * cse.c (fold_rtx): Likewise.
10356 * lra-eliminations.c (form_sum): Likewise.
10357
10358 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10359
10360 PR target/64003
10361 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10362 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10363 (*jcc_1, *jcc_2, jump, simple_return_internal)
10364 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10365 Set length_nobnd attribute instead of length attribute.
10366 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10367 (length_nobnd): Remove attribute.
10368 (length): Remove length_nobnd processing.
10369
10370 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
10371
10372 * gimplify.c (omp_default_clause): New function. Reorganize flow
10373 for clarity. Broken out of ...
10374 (omp_notice_variable): ... here.
10375
10376 2015-07-24 Gary Funck <gary@intrepid.com>
10377
10378 PR middle-end/66984
10379 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10380 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10381
10382 2015-07-24 Tom de Vries <tom@codesourcery.com>
10383
10384 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10385 exit-first loop transform.
10386
10387 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10388
10389 PR 66714
10390 * tree-cfg.c (struct replace_decls_d): New struct.
10391 (replace_block_vars_by_duplicates_1): New function.
10392 (replace_block_vars_by_duplicates): Use it to replace the decls
10393 in the value exprs by duplicates.
10394
10395 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10396
10397 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10398 -shared, -symbolic, -rdynamic.
10399
10400 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10401
10402 PR target/65711
10403 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10404 -dynamic-linker within %{!static %{!shared, and -rdynamic within
10405 %{!static.
10406
10407 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10408
10409 PR ipa/66566
10410 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10411 edge summary is available.
10412
10413 2015-07-24 Richard Biener <rguenther@suse.de>
10414
10415 * genmatch.c (struct dt_node): Add statistic fields.
10416 (dt_node::analyze): New method.
10417 (decision_tree::gen_gimple): Call analyze on the root node
10418 and print statistics to stderr.
10419 (decision_tree::gen_generic): Likewise.
10420
10421 2015-07-24 Richard Biener <rguenther@suse.de>
10422
10423 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10424 against the highest or lowest possible integer ...
10425 * match.pd: ... as patterns here.
10426
10427 2015-07-24 Richard Biener <rguenther@suse.de>
10428
10429 * genmatch.c (struct capture_info): Add same_as field.
10430 (capture_info::capture_info): Initialize same_as.
10431 (capture_info::walk_match): Compute same_as.
10432 (capture_info::walk_result): Compute stuff for the leader.
10433 (capture_info::walk_c_expr): Likewise.
10434 (dt_simplify::gen_1): Only look at leaders when deciding
10435 to force no side-effects or emit side-effects of omitted operands.
10436
10437 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10438
10439 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10440 reg note to the GPR -> FPR save instructions.
10441
10442 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10443
10444 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10445 cheaper.
10446 (s390_expand_insv): Don't generate risbg pattern for constant zero
10447 sources.
10448 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10449 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
10450 splitters.
10451
10452 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10453
10454 * config/s390/s390.c (s390_reorg): Clean up handling of processors
10455 with
10456 -mtune=
10457 (s390_issue_rate): Likewise.
10458 (s390_sched_reorder): Likewise.
10459 (s390_sched_variable_issue): Likewise.
10460 (s390_loop_unroll_adjust): Likewise.
10461 (s390_option_override): Likewise.
10462
10463 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10464
10465 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10466 processor capabilities with -march=native.
10467 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10468 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
10469 (S390_TARGET_BITS_STRING): Macro to simplify specs.
10470
10471 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10472
10473 * config/s390/s390.c (s390_issue_rate): Handle
10474 PROCESSOR_2094_Z9_EC.
10475 (s390_option_override): Likewise.
10476 (s390_adjust_priority): Likewise.
10477
10478 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10479
10480 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10481 when cross compiling.
10482
10483 2015-07-24 Richard Biener <rguenther@suse.de>
10484
10485 * fold-const.c (maybe_canonicalize_comparison_1): Move
10486 A code CST canonicalization ...
10487 * match.pd: ... to a pattern here.
10488
10489 2015-07-24 Jiong Wang <jiong.wang@arm.com>
10490
10491 Revert:
10492 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10493 PR target/63521
10494 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10495 (HONOR_REG_ALLOC_ORDER): Define.
10496
10497 2015-07-24 Richard Biener <rguenther@suse.de>
10498
10499 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10500 * fold-const.c (fold_comparison): Move parameter does not
10501 alias &local simplification ...
10502 * match.pd: ... as a pattern here.
10503
10504 2015-07-24 Richard Biener <rguenther@suse.de>
10505
10506 * gimple-fold.c (replace_stmt_with_simplification): Special-case
10507 valueizing call operands.
10508 * gimple-match-head.c (maybe_push_res_to_seq): Take
10509 number of call arguments from ops array.
10510 (do_valueize): New function.
10511 (gimple_simplify): Return true if valueization changed
10512 any operand even if the result didn't simplify further.
10513
10514 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10515
10516 PR middle-end/25530
10517 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10518
10519 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10520
10521 PR middle-end/25529
10522 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10523
10524 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10525
10526 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10527 instruction.
10528
10529 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10530
10531 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10532 clean up.
10533
10534 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
10535
10536 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10537 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
10538 targets here.
10539 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10540 ms_va_list_type_node initialization.
10541
10542 2015-07-23 Jeff Law <law@redhat.com>
10543
10544 PR lto/66752
10545 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10546 unable to find X NE 0 in the tables, return X as the simplified
10547 condition.
10548 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10549 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10550 to VISISTED_BBS. */
10551 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10552 after removing the control flow statement and unnecessary edges.
10553
10554 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10555
10556 * tree-pass.h (get_current_pass_name): Removed.
10557
10558 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10559
10560 PR rtl-optimization/64164
10561 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10562 * tree-ssa-copyrename.c: Removed.
10563 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10564 -ftree-coalesce-vars.
10565 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10566 * common.opt (ftree-copyrename): Ignore.
10567 (ftree-coalesce-inlined-vars): Likewise.
10568 * doc/invoke.texi: Remove the ignored options above.
10569 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10570 * tree-ssa-coalesce.h: ... here.
10571 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10572 headers required by it.
10573 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10574 across variables when flag_tree_coalesce_vars. Check register
10575 use and promoted modes to allow coalescing. Moved to
10576 tree-ssa-coalesce.c.
10577 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10578 with its member functions to tree-ssa-coalesce.c.
10579 (var_map_base_init): Likewise. Renamed to
10580 compute_samebase_partition_bases.
10581 (partition_view_normal): Drop want_bases parameter.
10582 (partition_view_bitmap): Likewise.
10583 * tree-ssa-live.h: Adjust declarations.
10584 * tree-ssa-coalesce.c: Include explow.h.
10585 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10586 default defs at the entry point.
10587 (dump_part_var_map): New.
10588 (compute_optimized_partition_bases): New, called by...
10589 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10590 of compute_samebase_partition_bases. Adjust.
10591 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10592 * cfgexpand.c (leader_merge): New.
10593 (get_rtl_for_parm_ssa_default_def): New.
10594 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10595 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10596 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10597 redundant MEM attr setting.
10598 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10599 from...
10600 (expand_one_stack_var): ... this. New wrapper to check and
10601 skip already expanded SSA partitions.
10602 (record_alignment_for_reg_var): New, factored out of...
10603 (expand_one_var): ... this.
10604 (expand_one_ssa_partition): New.
10605 (adjust_one_expanded_partition_var): New.
10606 (expand_one_register_var): Check and skip already expanded SSA
10607 partitions.
10608 (expand_used_vars): Don't create DECLs for anonymous SSA
10609 names. Expand all SSA partitions, then adjust all SSA names.
10610 (pass::execute): Replace the loops that set
10611 SA.partition_to_pseudo from partition leaders and cleared
10612 DECL_RTL for multi-location variables, and that which used to
10613 rename vars and set attrs, with one that clears DECL_RTL and
10614 checks that PARMs and RESULTs default_defs match DECL_RTL.
10615 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10616 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10617 * explow.c (promote_ssa_mode): New.
10618 * explow.h (promote_ssa_mode): Declare.
10619 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10620 * function.c: Include cfgexpand.h.
10621 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10622 (use_register_for_parm_decl): Wrapper for the above to
10623 special-case the result_ptr.
10624 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10625 (split_complex_args): Take assign_parm_data_all argument.
10626 Pass it to rtl_for_parm. Set up rtl and context for split
10627 args.
10628 (assign_parms_augmented_arg_list): Adjust.
10629 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10630 multiple locations. Recognize split complex args.
10631 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10632 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10633 (assign_parm_setup_block): Prefer SSA-assigned location.
10634 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10635 if stack_parm is NULL.
10636 (assign_parm_setup_stack): Prefer SSA-assigned location.
10637 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10638 rtl before testing for pointer bounds. Special-case result_ptr.
10639 (expand_function_start): Maybe reset DECL_RTL of result.
10640 Prefer SSA-assigned location for result and static chain.
10641 Factor out DECL_RESULT and SET_DECL_RTL.
10642 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10643 anonymous SSA names. Use promote_ssa_mode.
10644 (get_temp_reg): Likewise.
10645 (remove_ssa_form): Adjust.
10646 * stor-layout.c (layout_decl): Don't set mem attributes of
10647 non-MEMs.
10648 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10649 and get its reg_usage for reg invalidation.
10650 (compute_bb_dataflow): Pass it insn.
10651 (emit_notes_in_bb): Likewise.
10652
10653 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10654
10655 PR target/66217
10656 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10657 prototype.
10658 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10659 (rs6000_emit_2insn_and): Handle dot forms.
10660 * config/rs6000/rs6000.md (and<mode>3): Adjust.
10661 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
10662 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10663
10664 2015-07-23 Richard Biener <rguenther@suse.de>
10665
10666 * generic-match-head.c: Include cgraph.h.
10667 * gimple-match-head.c: Likewise.
10668 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10669 SSA names.
10670 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10671 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
10672 pattern.
10673
10674 2015-07-23 Richard Biener <rguenther@suse.de>
10675
10676 * gimple-fold.c (fold_gimple_cond): Do not require folding
10677 results to pass valid_gimple_rhs_p.
10678 * tree-cfg.h (fold_cond_expr_cond): Remove.
10679 * tree-cfg.c (fold_cond_expr_cond): Likewise.
10680 (make_edges): Do not call it.
10681 * tree-inline.c (tree_function_versioning): Likewise.
10682
10683 2015-07-23 Tom de Vries <tom@codesourcery.com>
10684
10685 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10686 vect_force_simple_reduction.
10687 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10688 (vect_is_simple_reduction_1): Add and handle
10689 need_wrapping_integral_overflow parameter.
10690 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10691 need_wrapping_integral_overflow parameter.
10692 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10693 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10694 decl.
10695
10696 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
10697
10698 PR tree-optimization/66926,66951
10699 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10700 INNER_LOOP and fix up condition for renaming virtual operands.
10701
10702 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10703
10704 * combine.c (try_combine): Use std::swap instead of manually
10705 swapping.
10706
10707 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
10708
10709 * config/mips/i6400.md: New file.
10710 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10711 (mips64r6): Likewise.
10712 (i6400): Define.
10713 * config/mips/mips-tables.opt: Regenerate.
10714 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10715 (mips_issue_rate): Add support for i6400.
10716 (mips_multipass_dfa_lookahead): Likewise.
10717 * config/mips/mips.h (TUNE_I6400): Define.
10718 * config/mips/mips.md: Include i6400.md.
10719 (processor): Add i6400.
10720 * doc/invoke.texi (-march=@var{arch}): Add i6400.
10721
10722 2015-07-23 Richard Biener <rguenther@suse.de>
10723
10724 PR middle-end/66916
10725 * match.pd: Guard widen and sign-change comparison simplification
10726 with single_use.
10727
10728 2015-07-23 Richard Biener <rguenther@suse.de>
10729
10730 PR tree-optimization/66945
10731 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10732 ::before_dom_children): Force the propagators idea of
10733 non-executable edges to materialize, not what the folder
10734 chooses.
10735
10736 2015-07-23 Richard Biener <rguenther@suse.de>
10737
10738 * gimple.h (gimple_cond_make_false): Use 0 != 0.
10739 (gimple_cond_make_true): Use 1 != 0.
10740
10741 2015-07-22 DJ Delorie <dj@redhat.com>
10742
10743 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10744 slashes.
10745
10746 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10747 (ashrhi3): Likewise.
10748 (lshrhi3): Likewise.
10749 (movhi): Take advantage of zero-extend to load small constants.
10750 (movpsi): Likewise.
10751 (and<mode>3): Likewise.
10752 (zero_extendqihi2): Likewise.
10753 (zero_extendqisi2): New.
10754 * config/msp430/constraints.md (N,O): New.
10755 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10756
10757 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
10758
10759 PR target/66954
10760 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10761 to enum feature_priority and feature_list.
10762 (fold_builtin_cpu): Add F_AES to enum processor_features
10763 and isa_names_table.
10764
10765 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
10766
10767 PR driver/66737
10768 * config/i386/linux-common.h (MPX_SPEC): Use linker option
10769 for 64bit target only.
10770
10771 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
10772
10773 * config/nvptx/nvptx.c: Expand some comments.
10774
10775 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
10776
10777 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10778 (cortex_a53_advsimd): ...This.
10779
10780 2015-07-22 Richard Biener <rguenther@suse.de>
10781
10782 * genmatch.c (expr::gen_transform): Clarify error message
10783 and display location.
10784
10785 2015-07-22 Richard Biener <rguenther@suse.de>
10786
10787 * genmatch.c (struct operand): Add location member.
10788 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10789 constructors.
10790 (struct simplify): Remove match_location and result_location
10791 members.
10792 (elsehwere): Adjust.
10793
10794 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
10795
10796 * config/mips/m5100.md: New file.
10797 * config/mips/mips-cpus.def (m5100, m5101): Define.
10798 * config/mips/mips-tables.opt: Regenerate.
10799 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10800 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10801 -march=m5101 to -mips32r5.
10802 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10803 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10804 !-msoft-float.
10805 * config/mips/mips.md: Include m5100.md.
10806 (processor): Add m5100.
10807 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10808
10809 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
10810
10811 * config/mips/mips-cpus.def (interaptiv): Define.
10812 * config/mips/mips-tables.opt: Regenerate.
10813 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10814 -mips32r2.
10815 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10816 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10817
10818 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10819
10820 PR target/63521
10821 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10822 (HONOR_REG_ALLOC_ORDER): Define.
10823
10824 2015-07-22 Richard Biener <rguenther@suse.de>
10825
10826 PR tree-optimization/66952
10827 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10828 blocks we end up executing unconditionally reset all SSA
10829 info such as range and alignment.
10830 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10831 * tree-ssanames.c (reset_flow_sensitive_info): New function.
10832
10833 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10834
10835 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10836 typo in attribute.
10837
10838 2015-07-22 Richard Biener <rguenther@suse.de>
10839
10840 * genmatch.c (parser::parse_result): Properly handle
10841 match with result operands and conditions.
10842
10843 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10844
10845 PR target/63870
10846 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10847 Add qualifier_struct_load_store_lane_index.
10848 (aarch64_types_loadstruct_lane_qualifiers): Use
10849 qualifier_struct_load_store_lane_index for lane index argument for
10850 last argument.
10851 (aarch64_types_storestruct_lane_qualifiers): Ditto.
10852 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10853 (aarch64_simd_expand_args): Add new argument describing mode of
10854 builtin. Check lane bounds for arguments with
10855 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10856 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10857 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10858 (aarch64_simd_expand_builtin): Handle arguments with
10859 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10860 aarch64_simd_expand_args.
10861 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10862 vst[234]_lane with BUILTIN_VALLDIF.
10863 * config/aarch64/aarch64-simd.md:
10864 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10865 endianness reversal on lane index.
10866 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10867 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10868 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10869 (vec_store_lanesci_lane<mode>): Ditto.
10870 (vec_store_lanesxi_lane<mode>): Ditto.
10871 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10872 reversal of lane index.
10873 (aarch64_ld3_lane<mode>): Ditto.
10874 (aarch64_ld4_lane<mode>): Ditto.
10875 (aarch64_st2_lane<mode>): Ditto.
10876 (aarch64_st3_lane<mode>): Ditto.
10877 (aarch64_st4_lane<mode>): Ditto.
10878 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10879 to qmode. Add new mode parameter. Update uses.
10880 (__LD3_LANE_FUNC): Ditto.
10881 (__LD4_LANE_FUNC): Ditto.
10882 (__ST2_LANE_FUNC): Ditto.
10883 (__ST3_LANE_FUNC): Ditto.
10884 (__ST4_LANE_FUNC): Ditto.
10885
10886 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
10887
10888 * doc/invoke.texi (Language Independent Options): Rename node to
10889 Diagnostic Message Formatting Options.
10890
10891 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
10892
10893 PR ipa/66424.
10894 * lra-remat.c (operand_to_remat): Prevent using insns with input
10895 subregs processed separately by IRA.
10896
10897 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
10898
10899 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10900 straight loops.
10901 (single_imm_use): Check for iterator node.
10902 (num_imm_uses): Likewise.
10903 * tree-ssa-operands.c (has_zero_uses_1): Delete.
10904 (single_imm_use_1): Check for iterator node.
10905
10906 2015-07-21 Mike Frysinger <vapier@gentoo.org>
10907 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10908
10909 * configure.ac: Add check for new options in isl-0.15.
10910 * config.in, configure: Rebuilt.
10911 * graphite-blocking.c: Include <isl/constraint.h>
10912 * graphite-interchange.c, graphite-poly.c: Likewise.
10913 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10914 * graphite.c: Likewise.
10915 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10916 <isl/union_set.h>.
10917 * graphite-dependences.c: Include <isl/constraint.h>.
10918 (max_number_of_out_dimensions): Returns isl_stat.
10919 (extend_schedule_1): Likewise
10920 (extend_schedule): Corresponding changes.
10921 * graphite-optimize-isl.c: Include <isl/constraint.h> and
10922 <isl/union_set.h>.
10923 (getSingleMap): Change return type of isl_stat.
10924 (optimize_isl): Conditionally use
10925 isl_options_set_schedule_serialize_sccs.
10926 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10927 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10928
10929 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
10930
10931 PR target/66956
10932 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10933 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10934
10935 2015-07-21 Richard Biener <rguenther@suse.de>
10936
10937 PR tree-optimization/66948
10938 * genmatch.c (capture_info::walk_match): Also recurse to
10939 captures. Properly compute expr state from captures of
10940 captures.
10941 * match.pd: Add single-use guards to
10942 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10943
10944 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10945
10946 * config/nvptx/mkoffload.c (process): Add static destructor call.
10947
10948 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10949
10950 PR middle-end/66915
10951 * match.pd (A - B -> A + (-B)): Don't allow folding
10952 when type if a fixed-point type.
10953
10954 2015-07-20 DJ Delorie <dj@redhat.com>
10955
10956 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10957 (iorqi3_real): Likewise for set1.
10958
10959 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
10960
10961 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10962 for !TARGET_64BIT.
10963
10964 2015-07-20 Aditya Kumar <hiraditya@msn.com>
10965
10966 * graphite-isl-ast-to-gimple.c:
10967 Refactor so that each function can access 'region'. This will help
10968 maintain a parameter rename_map within a region.
10969
10970 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10971
10972 * config/rs6000/rs6000.md (*lt0_disi): New.
10973
10974 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10975
10976 PR target/66217
10977 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
10978 "available letters" comment.
10979 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10980 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10981 and_2rld_operand): Delete.
10982 (and_operand): Adjust.
10983 (rotate_mask_operator): New.
10984 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10985 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10986 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10987 extract_ME): Delete.
10988 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10989 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10990 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10991 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10992 rs6000_emit_2insn_and): New.
10993 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10994 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10995 includes_rldic_lshift_p, includes_rldicr_lshift_p,
10996 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10997 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10998 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10999 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11000 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11001 rs6000_emit_2insn_and): New.
11002 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11003 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11004 handling.
11005 <NOT>: Don't fall through to next case.
11006 <AND>: Handle the various rotate-and-mask cases directly.
11007 <IOR>: Always cost as one insn.
11008 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11009 (and<mode>3): Adjust expander for the new patterns.
11010 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11011 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11012 (*and<mode>3_imm_dot_shifted): New.
11013 (*and<mode>3_mask): Delete, rewrite as ...
11014 (and<mode>3_mask): ... New.
11015 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11016 (andsi3_internal0_nomc): Delete.
11017 (*andsi3_internal6): Delete.
11018 (*and<mode>3_2insn): New.
11019 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11020 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11021 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11022 *insvdi_internal3): Delete.
11023 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11024 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11025 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11026 *ior<mode>_mask): New.
11027 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11028 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11029 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11030 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11031 Delete.
11032 (ashr<mode>3): Delete expander.
11033 (*ashr<mode>3): Rename to ...
11034 (ashr<mode>3): ... This.
11035 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11036 (*rotldi3_internal4, *rotldi3_internal5 and split,
11037 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11038 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11039 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11040 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11041 (splitter for loading a mask): Adjust.
11042 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11043
11044 2015-07-20 Marek Polacek <polacek@redhat.com>
11045
11046 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11047 output_add_clobbers, output_added_clobbers_hard_reg_p,
11048 gen_rtx_scratch): Remove declarations.
11049
11050 2015-07-20 Marek Polacek <polacek@redhat.com>
11051
11052 PR c++/55095
11053 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11054
11055 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11056
11057 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11058 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11059
11060 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11061
11062 * combine.c (combine_simplify_rtx): Move simplification step
11063 before various transformations/substitutions.
11064
11065 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
11066
11067 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11068 (struct int_traits): Likewise.
11069
11070 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11071
11072 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11073 function to vmsdbgout_function_decl.
11074
11075 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11076
11077 PR target/66922
11078 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11079 from misaligned positions.
11080 (ix86_expand_pinsr): Reject insertions to misaligned positions.
11081
11082 2015-07-18 Sebastian Pop <s.pop@samsung.com>
11083
11084 PR middle-end/46851
11085 PR middle-end/60340
11086 * Makefile.in: Removed omega.o.
11087 * common.opt: Document flag fcheck-data-deps as deprecated.
11088 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11089 its associated params: omega-max-vars, omega-max-geqs,
11090 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11091 omega-max-keys, omega-eliminate-redundant-constraints.
11092 * doc/loop.texi: Remove all the section on Omega.
11093 * graphite-blocking.c: Include missing params.h: it used to be
11094 included through tree-data-ref.h and omega.h.
11095 * graphite-isl-ast-to-gimple.c: Same.
11096 * graphite-optimize-isl.c: Same.
11097 * graphite-sese-to-poly.c: Same.
11098 * graphite.c: Same.
11099 * omega.c: Remove.
11100 * omega.h: Remove.
11101 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11102 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11103 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11104 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11105 * passes.def: Remove pass_check_data_deps.
11106 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11107 (dump_conflict_function): Same.
11108 (dump_subscript): Same.
11109 (print_direction_vector): Same.
11110 (print_dir_vectors): Same.
11111 (print_lambda_vector): Same.
11112 (print_dist_vectors): Same.
11113 (dump_data_dependence_relation): Same.
11114 (dump_data_dependence_relations): Same.
11115 (dump_dist_dir_vectors): Same.
11116 (dump_ddrs): Same.
11117 (init_omega_eq_with_af): Removed.
11118 (omega_extract_distance_vectors): Removed.
11119 (omega_setup_subscript): Removed.
11120 (init_omega_for_ddr_1): Removed.
11121 (init_omega_for_ddr): Removed.
11122 (ddr_consistent_p): Removed.
11123 (compute_affine_dependence): Do not use omega to check data
11124 dependences.
11125 (compute_data_dependences_for_bb): Removed.
11126 (analyze_all_data_dependences): Removed.
11127 (tree_check_data_deps): Removed.
11128 * tree-data-ref.h: Do not include omega.h.
11129 (compute_data_dependences_for_bb): Removed.
11130 (tree_check_data_deps): Removed.
11131 * tree-ssa-loop.c (pass_check_data_deps): Removed.
11132 (make_pass_check_data_deps): Removed.
11133 * tree-ssa-phiopt.c: Include params.h.
11134 * tree-vect-data-refs.c: Same.
11135 * tree-vect-slp.c: Same.
11136
11137 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11138
11139 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11140 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
11141 (mem->fpreg splitters): Ditto.
11142 (general_operand->nonimmediate_operand splitter): Use explicit modes.
11143 Disable DFmode for TARGET_64BIT.
11144
11145 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
11146
11147 PR target/66906
11148 * config/i386/i386.c (ix86_expand_prologue): Replicate static
11149 chain on the stack.
11150
11151 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11152
11153 * config/nvptx/mkoffload.c (process): Constify host data.
11154 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11155 Constify host data.
11156 (generate_host_descr_file): Likewise.
11157
11158 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
11159 Sebastian Pop <s.pop@samsung.com>
11160
11161 PR middle-end/61929
11162 * graphite-dependences.c (add_pdr_constraints): Renamed
11163 pdr->extent to pdr->subscript_sizes.
11164 * graphite-interchange.c (build_linearized_memory_access): Add
11165 back all gcc_assert's that the "isl_int to isl_val conversion"
11166 patch has removed. Refactored.
11167 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11168 * graphite-poly.c (new_poly_dr): Same.
11169 (free_poly_dr): Same.
11170 * graphite-poly.h (struct poly_dr): Same.
11171 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11172 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11173 * graphite-scop-detection.h: Fix space.
11174 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11175 back all gcc_assert's removed by a previous patch.
11176 (wrap): Remove the_isl_ctx global variable that the same patch has
11177 added.
11178 (build_loop_iteration_domains): Same.
11179 (add_param_constraints): Same.
11180 (pdr_add_data_dimensions): Same. Refactored.
11181 (build_poly_dr): Renamed extent to subscript_sizes.
11182
11183 2015-07-17 Marek Polacek <polacek@redhat.com>
11184
11185 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11186 * match.pd: ... here.
11187
11188 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11189
11190 * config/nvptx/mkoffload.c (process): Constify target data.
11191 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11192 Constify target data.
11193 (generate_target_offloadend_file): Likewise.
11194
11195 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11196
11197 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11198 to allow renaming of PHI arguments on edges incoming from outer
11199 loop header, add corresponding check before start PHI iterator.
11200 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11201 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11202 with true force_vectorize. Set-up dominator for outer loop too.
11203 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11204 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11205 was marked with force_vectorize and has restricted cfg.
11206 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11207 inner loop.
11208 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11209 do peeling for outer loops.
11210
11211 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
11212 Matthias Klose <doko@ubuntu.com>
11213
11214 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11215 build-sysroot, sysroot from the `Miscenalleous configure options' to
11216 the `Directories' section and strip trailing `/' from with_sysroot.
11217 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11218 * configure: Regenerated.
11219
11220 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11221
11222 PR target/66824
11223 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11224 (TARGET_HARD_DF_REGS): Ditto.
11225 (TARGET_HARD_XF_REGS): Ditto.
11226 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11227 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11228 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11229 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11230 (*movsf_internal): Add alternatives 16 and 17. Enable
11231 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11232
11233 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11234
11235 PR rtl-optimization/66891
11236 * calls.c (expand_call): Wrap precompute_register_parameters with
11237 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11238
11239 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
11240
11241 * config/nvptx/mkoffload.c (process): Constify mapping variables.
11242 Define target data struct and initialize it.
11243
11244 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
11245
11246 PR rtl-optimization/66626
11247 * ira.h (emit-rtl.h): Include.
11248 (non_spilled_static_chain_regno_p): New.
11249 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11250 unless it is non spilled static chain pseudo.
11251 (assign_hard_rego): Spill memory profitable allocno unless it is
11252 non spilled static chain pseudo.
11253 (allocno_spill_priority_compare): Put non spilled static chain
11254 pseudo at the end of sorted array.
11255 (improve_allocation): Do nothing if we have static chain and
11256 non-local goto.
11257 (allocno__priority_compare_func): Put non spilled static chain
11258 pseudo at the beginning of sorted array.
11259 (move_spill_restore): Ignore non spilled static chain pseudo.
11260 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11261 to non spilled static chain pseudo.
11262 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11263 pseudo at the beginning of sorted array.
11264 (spill_for): Spill non spilled static chain pseudo last.
11265 * lra-constraints.c (lra_constraints): Remove static chain pseudo
11266 check for equivalence.
11267
11268 2015-07-16 Martin Liska <mliska@suse.cz>
11269
11270 PR ipa/66896.
11271 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11272 dst_ctx if it does not exist.
11273
11274 2015-07-16 Martin Liska <mliska@suse.cz>
11275
11276 * hash-set.h (remove): New function.
11277 (iterator): New iteration class for hash_set.
11278
11279 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11280
11281 * genattrtab.c (make_canonical): Add a file_location parameter.
11282 Use fatal_at rather than fatal.
11283 (get_attr_value): Likewise. Update call to make_canonical.
11284 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11285 (make_internal_attr): Update calls accordingly.
11286
11287 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11288
11289 * read-md.h (message_with_line, error_with_line): Delete.
11290 * read-md.c (message_with_line, error_with_line): Delete.
11291 * gensupport.h: Include read-md.h.
11292 (md_rtx_info): New structure.
11293 (read_md_rtx): Use it. Return a bool success value.
11294 * gensupport.c (read_md_rtx): Likewise.
11295 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11296 (main): Update after interface changes.
11297 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11298 (main): Update after interface changes.
11299 * genattrtab.c (insn_code_number): Delete.
11300 (optimize_attrs): Add a max_insn_code parameter and use it instead
11301 of insn_code_number.
11302 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11303 Use *_at rather than *_with_line functions.
11304 (gen_insn): Likewise.
11305 (gen_delay): Likewise.
11306 (gen_insn_reserv): Likewise.
11307 (gen_bypass): Take an md_rtx_info rather than an rtx.
11308 (main): Update after interface changes. Use a local max_insn_code
11309 variable instead of insn_code_number.
11310 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11311 an rtx. Use fatal_at rather than fatal.
11312 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11313 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11314 (gen_absence_set, gen_final_absence_set, gen_automaton)
11315 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11316 (main): Update after interface changes.
11317 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11318 and code number.
11319 (main): Update after interface changes.
11320 * genconditions.c (main): Use new read_md_rtx interface.
11321 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11322 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11323 (main): Update after interface changes.
11324 * genemit.c (insn_code_number, insn_index_number): Delete.
11325 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11326 Use fatal_at rather than fatal.
11327 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
11328 rather than fatal.
11329 (gen_split): Likewise.
11330 (main): Update after interface changes.
11331 * genextract.c (line_no): Delete.
11332 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11333 Update call to walk_rtx.
11334 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
11335 rather than message_with_line.
11336 (walk_rtx): Add an md_rtx_info argument. Update call to
11337 VEC_safe_set_locstr.
11338 (main): Update after interface changes.
11339 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11340 and lineno. Use error_at rather than separate message_with_line
11341 calls and have_error assignments.
11342 (main): Update after interface changes.
11343 * genmddump.c (main): Use new read_md_rtx interface.
11344 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11345 (main): Update after interface changes.
11346 * genoutput.c (next_code_number): Delete.
11347 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11348 (gen_peephole, gen_expand, gen_split): Likewise.
11349 (note_constraint): Likewise. Use *_at rather than *_with_line
11350 functions.
11351 (main): Update after interface changes.
11352 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11353 rtx and lineno.
11354 (main): Update after interface changes.
11355 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11356 than an rtx and lineno.
11357 (process_define_constraint): Likewise.
11358 (process_define_register_constraint): Likewise.
11359 (main): Update after interface changes.
11360 * genrecog.c (next_insn_code, pattern_lineno): Delete.
11361 (validate_pattern): Replace top-level rtx with an md_rtx_info.
11362 Use *_at rather than *_with_line functions.
11363 (match_pattern_2): Likewise.
11364 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11365 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11366 Use *_at rather than *_with_line functions.
11367 * gentarget-def.c (add_insn): New function.
11368 (main): Use it. Use new read_md_rtx interface.
11369
11370 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11371
11372 * gensupport.h (compute_test_codes): Take a file_location rather
11373 than a line number.
11374 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
11375 rather than *_with_line functions.
11376 (process_define_predicate): Update call to compute_test_codes.
11377 * genpreds.c (validate_exp): Take a file_location rather than a
11378 line number. Use *_at functions rather than *_with_line functions.
11379 (process_define_predicate): Update call to validate_exp.
11380 (constraint_data): Replace lineno field with a file_location.
11381 (add_constraint): Take a file_location rather than a line number.
11382 Use *_at functions rather than *_with_line functions. Fix error
11383 message for address constraints. Update after changes to
11384 validate_exp, constraint_data and compute_test_codes.
11385 (process_define_constraint): Update accordingly.
11386 (process_define_register_constraint): Likewise.
11387
11388 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11389
11390 * genoutput.c (data): Use a file_location to record the source
11391 position.
11392 (nothing): Delete.
11393 (idata, idata_end): Remove initialization.
11394 (constraint_data): Replace lineno with a file_location.
11395 (output_insn_data): Update after changes to data.
11396 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11397 (scan_operands): Likewise, using *_at rather than *_with_line
11398 functions.
11399 (process_template): Likewise.
11400 (validate_insn_alternatives): Likewise.
11401 (validate_insn_operands): Likewise.
11402 (validate_optab_operands): Likewise.
11403 (init_insn_for_nothing): Initialize idata and idata_end.
11404 (note_constraint): Update after changes to constraint_data,
11405 using at rather than with_line functions.
11406 (mdep_constraint_len): Take a file_location rather than a
11407 line number. Use at rather than with_line functions.
11408
11409 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11410
11411 * read-md.h (fatal_at): Declare.
11412 * read-md.c (fatal_at): New function.
11413 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11414 to record the source position.
11415 (check_attr_test): Take a file_location instead of a line number.
11416 Use fatal_at instead of fatal.
11417 (check_attr_value): Update after above changes, using "at"
11418 rather than "with_line" reporting functions.
11419 (convert_set_attr_alternative): Likewise.
11420 (gen_attr): Likewise.
11421 (check_defs): Likewise. Don't assign to read_md_filename.
11422 (gen_insn): Update initialization after above changes.
11423 (gen_delay): Likewise.
11424 (write_insn_cases): Print the filename for a define_peephole.
11425 (gen_insn_reserv): Take a line number as argument and update
11426 the call to check_attr_test.
11427 (main): Pass a line number to gen_insn_reserv.
11428
11429 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11430
11431 * read-md.h (file_location): New structure.
11432 (directive_handler_t): Take a file_location rather than a line number.
11433 (message_at, error_at): Declare.
11434 (read_skip_construct): Delete.
11435 * read-md.c (message_with_line_1): Replace with...
11436 (message_at_1): ...this new function.
11437 (message_at, error_at): New functions.
11438 (message_with_line, error_with_line): Update to use message_at_1.
11439 (handle_enum): Take a file_location rather than a line number
11440 and use error_at for error reporting.
11441 (handle_include): Likewise.
11442 (read_skip_construct): Likewise. Make static.
11443 (handle_file): Update after above changes. Pass a file_location
11444 rather than a line number to handle_directive.
11445 * gensupport.c (queue_elem): Replace separate filename and lineno
11446 with a file_location.
11447 (queue_pattern): Replace filename and lineno arguments with a
11448 file_location. Update after change to queue_elem.
11449 (process_define_predicate): Replace lineno argument with a
11450 file_location and use error_at for error reporting. Update
11451 after above changes.
11452 (process_rtx): Likewise.
11453 (subst_pattern_match): Likewise.
11454 (get_alternatives_number): Likewise.
11455 (alter_predicate_for_insn): Likewise.
11456 (rtx_handle_directive): Likewise.
11457 (is_predicable): Update after above changes, using error_at rather
11458 than error_with_line.
11459 (has_subst_attribute): Likewise.
11460 (identify_predicable_attribute): Likewise.
11461 (alter_attrs_for_subst_insn): Likewise.
11462 (process_one_cond_exec): Likewise.
11463 (process_substs_on_one_elem): Likewise.
11464 (process_define_subst): Likewise.
11465 (check_define_attr_duplicates): Likewise.
11466 (read_md_rtx): Update after change to queue_elem.
11467
11468 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11469
11470 * genoutput.c (next_index_number): Delete.
11471 (data): Remove index_number.
11472 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11473 (main): Remove manipulation of next_index_number.
11474
11475 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11476
11477 * genattrtab.c (check_attr_value): Remove handling of null attrs.
11478 (make_canonical): Likewise.
11479
11480 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
11481
11482 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11483 instead of adjust_address_nv.
11484 (restore_stack_nonlocal): Likewise.
11485 (nonlocal_goto): Likewise.
11486
11487 2015-07-16 Tom de Vries <tom@codesourcery.com>
11488
11489 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11490 not have a corresponding loop header phi.
11491
11492 2015-07-16 Tom de Vries <tom@codesourcery.com>
11493
11494 * tree-parloops.c (create_loads_for_reductions): Handle case that
11495 reduction is unused.
11496
11497 2015-07-16 Richard Biener <rguenther@suse.de>
11498
11499 PR tree-optimization/66894
11500 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11501 about deriving NE_EXPR from truncated values.
11502
11503 2015-07-16 Martin Liska <mliska@suse.cz>
11504
11505 * alloc-pool.h
11506 (object_allocator): Add new class.
11507 (pool_allocator::initialize): Use the underlying class.
11508 (pool_allocator::allocate): Likewise.
11509 (pool_allocator::remove): Likewise.
11510 (operator new): A new generic allocator.
11511 * asan.c (struct asan_mem_ref): Remove unused members.
11512 (asan_mem_ref_new): Replace new operator with
11513 object_allocator::allocate.
11514 (free_mem_ref_resources): Change deallocation.
11515 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11516 with object_allocator.
11517 * config/sh/sh.c (add_constant): Replace new operator with
11518 object_allocator::allocate.
11519 (sh_reorg): Change call to a release method.
11520 * cselib.c (struct elt_list): Remove unused members.
11521 (new_elt_list): Replace new operator with
11522 object_allocator::allocate.
11523 (new_elt_loc_list): Likewise.
11524 (new_cselib_val): Likewise.
11525 (unchain_one_elt_list): Change delete operator with remove method.
11526 (unchain_one_elt_loc_list): Likewise.
11527 (unchain_one_value): Likewise.
11528 (cselib_finish): Release newly added static allocators.
11529 * cselib.h (struct cselib_val): Remove unused members.
11530 (struct elt_loc_list): Likewise.
11531 * df-problems.c (df_chain_alloc): Replace pool_allocator with
11532 object_allocator.
11533 * df-scan.c (struct df_scan_problem_data): Likewise.
11534 (df_scan_alloc): Likewise.
11535 * df.h (struct dataflow): Likewise.
11536 * dse.c (struct read_info_type): Likewise.
11537 (struct insn_info_type): Likewise.
11538 (struct dse_bb_info_type): Likewise.
11539 (struct group_info): Likewise.
11540 (struct deferred_change): Likewise.
11541 (get_group_info): Likewise.
11542 (delete_dead_store_insn): Likewise.
11543 (free_read_records): Likewise.
11544 (replace_read): Likewise.
11545 (check_mem_read_rtx): Likewise.
11546 (scan_insn): Likewise.
11547 (dse_step1): Likewise.
11548 (dse_step7): Likewise.
11549 * et-forest.c (struct et_occ): Remove unused members.
11550 (et_new_occ): Use allocate instead of new operator.
11551 (et_new_tree): Likewise.
11552 (et_free_tree): Call release method explicitly.
11553 (et_free_tree_force): Likewise.
11554 (et_free_pools): Likewise.
11555 (et_split): Use remove instead of delete operator.
11556 * et-forest.h (struct et_node): Remove unused members.
11557 * ipa-cp.c: Change pool_allocator to object_allocator.
11558 * ipa-inline-analysis.c: Likewise.
11559 * ipa-profile.c: Likewise.
11560 * ipa-prop.c: Likewise.
11561 * ipa-prop.h: Likewise.
11562 * ira-build.c (initiate_cost_vectors): Cast return value.
11563 (ira_allocate_cost_vector): Likewise.
11564 * ira-color.c (struct update_cost_record): Remove unused members.
11565 * lra-int.h (struct lra_live_range): Likewise.
11566 (struct lra_copy): Likewise.
11567 (struct lra_insn_reg): Likewise.
11568 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11569 * lra.c (new_insn_reg): Replace new operator with allocate method.
11570 (free_insn_regs): Same for operator delete.
11571 (finish_insn_regs): Release new static allocator.
11572 (finish_insn_recog_data): Likewise.
11573 (lra_free_copies): Replace delete operator with remove method.
11574 (lra_create_copy): Replace operator new with allocate method.
11575 (invalidate_insn_data_regno_info): Same for remove method.
11576 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11577 (free_debug_insn_changes): Replace delete operator with remove method.
11578 (replace_oldest_value_reg): Replace operator new with allocate method.
11579 (pass_cprop_hardreg::execute): Release new static variable.
11580 * sched-deps.c (sched_deps_init): Change pool_allocator to
11581 object_allocator.
11582 * sel-sched-ir.c: Likewise.
11583 * sel-sched-ir.h: Likewise.
11584 * stmt.c (expand_case): Likewise.
11585 (expand_sjlj_dispatch_table): Likewise.
11586 * tree-sra.c (struct access): Remove unused members.
11587 (struct assign_link): Likewise.
11588 (sra_deinitialize): Release newly added static pools.
11589 (create_access_1):Replace operator new with allocate method.
11590 (build_accesses_from_assign): Likewise.
11591 (create_artificial_child_access): Likewise.
11592 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11593 pool_allocator to object_allocator.
11594 * tree-ssa-pre.c: Likewise.
11595 * tree-ssa-reassoc.c: Likewise.
11596 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11597 * tree-ssa-strlen.c: Likewise.
11598 * tree-ssa-structalias.c: Likewise.
11599 * var-tracking.c (onepart_pool_allocate): New function.
11600 (unshare_variable): Use the newly added function.
11601 (variable_merge_over_cur): Likewise.
11602 (variable_from_dropped): Likewise.
11603 (variable_was_changed): Likewise.
11604 (set_slot_part): Likewise.
11605 (emit_notes_for_differences_1): Likewise.
11606 (vt_finalize): Release newly added static pools.
11607
11608 2015-07-16 Martin Jambor <mjambor@suse.cz>
11609
11610 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
11611 all uses. Fix two typos in its general comment.
11612 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
11613
11614 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
11615
11616 * config/i386/linux-common.h (LINK_MPX): New.
11617 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11618 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11619 indicating '-z bndplt' support by linker.
11620 * configure: Regenerate.
11621 * config.in: Regenerate.
11622
11623 2015-07-16 Richard Biener <rguenther@suse.de>
11624
11625 * fold-const.c (fold_widened_comparison): Remove.
11626 (fold_sign_changed_comparison): Likewise.
11627 (fold_comparison): Move widened and sign-changed comparison
11628 simplification ...
11629 * match.pd: ... to patterns here.
11630 * generic-match-head.c: Include target.h.
11631 * gimple-match-head.c: Likewise.
11632
11633 2015-07-16 Richard Biener <rguenther@suse.de>
11634
11635 * tree-ssa-dom.c (dom_valueize): New function.
11636 (record_temporary_equivalences): Also record equivalences
11637 for dominating stmts that have uses of equivalences we are
11638 about to record.
11639
11640 2015-07-16 Bin Cheng <bin.cheng@arm.com>
11641
11642 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11643 add_autoinc_candidates.
11644 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11645 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11646 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11647 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11648 Call new function.
11649 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11650 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11651 Remove parameter struct iv*. Call add_autoinc_candidates here.
11652 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11653 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11654 Call new function.
11655 (find_iv_candidates): Call new functions.
11656
11657 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
11658
11659 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11660 uninitialized-variable warning.
11661
11662 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
11663
11664 PR target/65249
11665 * config/sh/sh.md (movdi): Split simple reg move to two movsi
11666 when the destination is R0.
11667
11668 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
11669
11670 PR target/66866
11671 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11672 * config/i386/i386.c (ix86_expand_pextr): New function.
11673 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
11674 for non-lowpart subregs.
11675 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11676 (insv<mode>): Use SWI248 mode iterator.
11677 (insv<mode>_1): Ditto.
11678
11679 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11680 Sebastian Pop <s.pop@samsung.com>
11681
11682 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11683 iterator to use_stmt.
11684
11685 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11686 Sebastian Pop <s.pop@samsung.com>
11687
11688 * graphite-scop-detection.c (build_scops_1): Discard scops for
11689 which entry==exit.
11690
11691 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11692 Sebastian Pop <s.pop@samsung.com>
11693
11694 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11695 case of a return statement in scop.
11696
11697 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11698 Sebastian Pop <s.pop@samsung.com>
11699
11700 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11701 INTEGER_TYPE parameters.
11702 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11703 VECTOR_CST in scan_tree_for_params.
11704 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11705
11706 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11707
11708 * gimple-pretty-print.h: Don't include pretty-print.h.
11709 * tree-streamer.h: Don't include lto-streamer.h.
11710 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11711 * gimple-streamer-in.c: Remove redundant includes.
11712 * gimple-streamer-out.c: Likewise.
11713 * ipa-devirt.c: Likewise.
11714 * ipa-icf.c: Likewise.
11715 * ipa-inline-analysis.c: Likewise.
11716 * ipa-polymorphic-call.c: Likewise.
11717 * ipa-profile.c: Likewise.
11718 * ipa-prop.c: Likewise.
11719 * ipa-pure-const.c: Likewise.
11720 * lto-cgraph.c: Likewise.
11721 * lto-streamer-in.c: Likewise.
11722 * lto-streamer-out.c: Likewise.
11723 * lto-streamer.c: Likewise.
11724 * tree-streamer-in.c: Likewise.
11725 * tree-streamer-out.c: Likewise.
11726 * tree-streamer.c: Likewise.
11727
11728 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11729
11730 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11731 include input.h.
11732 * opts.c: Remove multiline #include comment.
11733
11734 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
11735
11736 * config/nvptx/mkoffload.c (process): Add C++ protection to
11737 emitted code.
11738
11739 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11740
11741 PR target/66854
11742 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11743 null before IEEE 128-bit floating point support patch.
11744
11745 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11746
11747 * simplify-rtx.c (simplify_ternary_operation): Add simplification
11748 for (!c) != {0,...,0} ? a : b for vector modes.
11749
11750 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
11751 Martin Jambor <mjambor@suse.cz>
11752
11753 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11754 struct func_body_info* instead of struct ipa_node_params*, expecting
11755 fbi->info to be filled in. Replace throughout. Adjust call to
11756 ipa_load_from_parm_agg.
11757 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11758 instead of struct ipa_node_params*. Adjust calls to other functions
11759 so that they pass either fbi or fbi->info.
11760 (set_switch_stmt_execution_predicate): Likewise.
11761 (will_be_nonconstant_predicate): Likewise.
11762 (compute_bb_predicates): Likewise.
11763 (estimate_function_body_sizes): Move asserts earlier. Fill in
11764 struct func_body_info, replace parms_info with fbi.info. Adjust
11765 calls to functions that now accept struct func_body_info.
11766 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11767 (struct func_body_info): Likewise.
11768 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11769 remove static. Adjust callers.
11770 (ipa_load_from_parm_agg): Remove.
11771 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11772 (func_body_info): Likewise.
11773 (ipa_load_from_parm_agg): Adjust prototype.
11774
11775 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11776
11777 * gensupport.c (rtx_handle_directive): Adjust.
11778 * read-rtl.c (apply_iterators): Take vector to add rtxs to
11779 instead of expr list rtx.
11780 (add_define_attr_for_define_subst): Likewise.
11781 (add_define_subst_attr): Likewise.
11782 (read_subst_mapping): Likewise.
11783 (read_rtx): Likewise.
11784 * rtl.h (read_rtx): Adjust.
11785
11786 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11787
11788 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11789
11790 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11791
11792 PR target/58066
11793 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11794 (*tls_local_dynamic_base_64_<mode>): Ditto.
11795 (*tls_local_dynamic_base_64_largepic): Ditto.
11796 (tls_global_dynamic_64_<mode>): Update expander pattern.
11797 (tls_local_dynamic_base_64_<mode>): Ditto.
11798
11799 2015-07-15 Richard Biener <rguenther@suse.de>
11800
11801 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11802 and bool_var == 1 -> bool_var simplifications ...
11803 * match.pd: ... to patterns here. Factor out negate_expr_p
11804 cases from the A - B -> A + (-B) patterns as negate_expr_p
11805 predicate and add a -(A + B) -> (-B) - A pattern.
11806
11807 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11808
11809 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11810
11811 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
11812 Robert Suchanek <robert.suchanek@imgtec.com>
11813
11814 * config/mips/mips.c (mips_int_mask): New enum.
11815 (mips_shadow_set): Likewise.
11816 (int_mask): New variable.
11817 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11818 (machine_function): Add int_mask and use_shadow_register_set.
11819 (mips_attribute_table): Add attribute handlers for interrupt and
11820 use_shadow_register_set.
11821 (mips_interrupt_mask): New static function.
11822 (mips_handle_interrupt_attr): Likewise.
11823 (mips_handle_use_shadow_register_set_attr): Likewise.
11824 (mips_use_shadow_register_set): Change return type to enum
11825 mips_shadow_set. Add argument handling for use_shadow_register_set
11826 attribute.
11827 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11828 compare with mips_shadow_set enum.
11829 (mips_compute_frame_info): Add interrupt mask and
11830 use_shadow_register_set to per-function information structure.
11831 Add a stack slot for EPC unconditionally.
11832 (mips_expand_prologue): Compare use_shadow_register_set value
11833 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
11834 masked interrupt register but in EIC mode use K0 and save Cause in K0.
11835 EPC saved and restored unconditionally. Use PMODE_INSN macro when
11836 copying the stack pointer from the shadow register set.
11837 * config/mips/mips.h (SR_IM0): New define.
11838 * config/mips/mips.md (mips_rdpgpr): Rename to...
11839 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
11840 * doc/extend.texi (Declaring Attributes of Functions): Document
11841 optional arguments for interrupt and use_shadow_register_set
11842 attributes.
11843
11844 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11845
11846 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11847 interrupt attribute.
11848 (mips_expand_prologue): Disable the floating point unit in an ISR.
11849 * config/mips/mips.h (SR_COP1): New define.
11850
11851 2015-07-15 Richard Biener <rguenther@suse.de>
11852
11853 * genmatch.c (parser::peek, parser::peek_ident): Add argument
11854 to tell how many tokens to peek ahead (default 1).
11855 (parser::eat_token, parser::eat_ident): Return token consumed.
11856 (parser::parse_result): Parse new switch statement.
11857 * match.pd: Use case statements where appropriate.
11858
11859 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11860
11861 PR rtl-optimization/58066
11862 * calls.c (expand_call): Precompute register parameters before stack
11863 alignment is performed.
11864
11865 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11866
11867 PR rtl-optimization/66838
11868 * postreload.c (reload_cse_move2add): Also process
11869 CALL_INSN_FUNCTION_USAGE when resetting information of
11870 call-clobbered registers.
11871
11872 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11873 Cesar Philippidis <cesar@codesourcery.com>
11874 Chung-Lin Tang <cltang@codesourcery.com>
11875
11876 * config/nios2/constraints.md (U, v): New constraints.
11877 * config/nios2/predicates.md (rdprs_dcache_operand): New.
11878 (ldstex_memory_operand): New.
11879 * config/nios2/sync.md: New file.
11880 * config/nios2/nios2.md (unspecv): Add new builtin function
11881 UNSPECV codes.
11882 (rdprs, flushd, flushda, wrpie, eni): New patterns.
11883 (top-level): Include sync.md.
11884 * config/nios2/nios2.c (N2_FTYPES): Add function types for
11885 new builtins.
11886 (N2_BUILTINS): Add arch field setting, add new builtins.
11887 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11888 for arch field.
11889 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11890 Also handle ldex/stex/ldsex/stsex builtins.
11891 (nios2_expand_rdprs_builtin): New function.
11892 (nios2_expand_cache_builtin): New function.
11893 (nios2_expand_wrpie_builtin): New function.
11894 (nios2_expand_eni_builtin): New function.
11895 (nios2_expand_builtin): Add arch field handling and new builtin
11896 cases.
11897 * doc/extend.texi (Altera Nios II Built-in Functions): Document
11898 new builtins.
11899 * doc/md.texi (Machine Constraints): Document U and v constraints.
11900
11901 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11902 Cesar Philippidis <cesar@codesourcery.com>
11903 Chung-Lin Tang <cltang@codesourcery.com>
11904
11905 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11906 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11907 callee_save_reg_size and uses_anonymous_args fields.
11908 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11909 (nios2_create_cfa_notes): New function.
11910 (nios2_adjust_stack): New function for adjusting stack.
11911 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11912 Use nios2_adjust_stack.
11913 (nios2_expand_epilogue): Likewise.
11914 (nios2_expand_return): New function.
11915 (nios2_can_use_return_insn): Update for CDX pop.n usage.
11916 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11917 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11918 * config/nios2/nios2.md (return): Use nios2_expand_return.
11919
11920 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11921 Cesar Philippidis <cesar@codesourcery.com>
11922 Chung-Lin Tang <cltang@codesourcery.com>
11923
11924 * config/nios2/predicates.md (pop_operation): New.
11925 (ldwm_operation, stwm_operation): New.
11926 (nios2_hard_register_operand): New.
11927 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11928 (ldstwm_operation_p): Declare.
11929 (gen_ldstwm_peep): Declare.
11930 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11931 (base_reg_adjustment_p): New.
11932 (pop_operation_p): New.
11933 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11934 (nios2_ldstwm_regset_p): New.
11935 (ldstwm_operation_p): New.
11936 (gen_ldst): New.
11937 (nios2_ldst_parallel): New.
11938 (struct ldswm_operand): Declare.
11939 (compare_ldstwm_operands): New.
11940 (can_use_cdx_ldstw): New.
11941 (gen_ldstwm_peep): New.
11942 * config/nios2/nios2-ldstwm.sml: New.
11943 * config/nios2/nios2.md: Include ldstwm.md.
11944 * config/nios2/ldstwm.md: Generated.
11945
11946 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11947 Cesar Philippidis <cesar@codesourcery.com>
11948 Chung-Lin Tang <cltang@codesourcery.com>
11949
11950 * config/nios2/nios2.h (LABEL_ALIGN): Define.
11951 (REG_ALLOC_ORDER): Define.
11952 (ADJUST_REG_ALLOC_ORDER): Define.
11953 (HONOR_REG_ALLOC_ORDER): Define.
11954 (CDX_REG_P): Define.
11955 (ANDCLEAR_INT): Define.
11956 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11957 (nios2_label_align): Declare.
11958 (nios2_cdx_narrow_form_p): Declare.
11959 (nios2_adjust_reg_alloc_order): Declare.
11960 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11961 operation.
11962 (nios2_large_unspec_reloc_p): New function, split from...
11963 (nios2_legitimate_pic_operand_p): ...here.
11964 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11965 (nios2_print_operand_punct_valid_p): New.
11966 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
11967 (split_mem_address): New.
11968 (split_alu_insn): New.
11969 (cdxreg): New.
11970 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11971 (enum nios2_add_insn_kind): New.
11972 (nios2_add_insn_names, nios2_add_insn_narrow): New.
11973 (nios2_add_insn_classify): New.
11974 (nios2_add_insn_asm): New.
11975 (nios2_cdx_narrow_form_p): New.
11976 (label_align, min_labelno, max_labelno): New.
11977 (nios2_reorg): New.
11978 (nios2_label_align): New.
11979 (nios2_adjust_reg_alloc_order): New.
11980 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11981 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11982 * config/nios2/constraints.md (P): New constraint.
11983 * config/nios2/predicates.md (const_and_operand): New.
11984 (and_operand): New.
11985 (stack_memory_operand): New.
11986 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11987 (length): Update to use nios2_cdx_narrow_form_p().
11988 (type): Add new insn type values.
11989 (control, alu, st, ld, shift): Update insn reservations with
11990 new insn type values.
11991 (*high, *lo_sum): Define new insn patterns for constant generation.
11992 (movqi_internal, movhi_internal, movsi_internal): Reduce
11993 alternatives, update asm template to handle CDX variants, update
11994 type attributes.
11995 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11996 template, update type attributes.
11997 (extendhisi2, extendqi<mode>2): Likewise.
11998 (addsi3): Change to use function for asm string.
11999 (subsi3): Add CDX notation to asm template, update type attributes.
12000 (negsi3, one_cmplsi3): Likewise.
12001 (andsi3): New pattern, specialized from logical patterns.
12002 (<code>si3): Remove and case, combine alternatives, update asm
12003 template.
12004 (<shift_op>si3): Add CDX notation, update type attributes.
12005 (rotrsi3): Update type attribute.
12006 (*merge, extzv, insv): New insn patterns.
12007 (return): Change to define_expand.
12008 (simple_return): Add CDX notation, update type attributes.
12009 (indirect_jump): Add CDX notation.
12010 (jump): Update asm cases, update length attribute expression.
12011 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12012 (nios2_cbranch): Update asm cases and length attribute expression
12013 to handle CDX variants.
12014 (nios2_cmp<code>): Update asm template.
12015 (nop): Add CDX notation, update type attributes.
12016 (trap): Add CDX notation.
12017 (ctrapsi4): Update asm cases and length attribute expression to
12018 handle CDX variant.
12019 * doc/md.texi (Machine Constraints): Document P constraint.
12020
12021 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12022 Cesar Philippidis <cesar@codesourcery.com>
12023 Chung-Lin Tang <cltang@codesourcery.com>
12024
12025 * config/nios2/nios2.h (SMALL_INT12): New macro.
12026 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12027 (nios2_valid_addr_expr_p): Use it.
12028 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12029 with implicit "io" instructions on R2.
12030 * config/nios2/constraints.md (w): New constraint.
12031 * config/nios2/predicates.md (ldstio_memory_operand): New.
12032 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12033 operand predicate and constraint.
12034 (ld<bh>io_signed, st<bhw>io>): Likewise.
12035 * doc/md.texi (Machine Constraints): Document w constraint.
12036
12037 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12038 Cesar Philippidis <cesar@codesourcery.com>
12039 Chung-Lin Tang <cltang@codesourcery.com>
12040
12041 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12042 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12043 Nios II architecture level.
12044 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12045 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12046 (OPTION_DEFAULT_SPECS): Define.
12047 (ASM_SPEC): Add -march= spec strings.
12048 * config/nios2/nios2.c (nios2_option_override): Check for
12049 conflicts involving new options.
12050 * config.gcc (nios2*-*-*): Support --with-arch=.
12051 * doc/invoke.texi (Option Summary, Nios II Options): Document
12052 -march=, -mbmx, and -mcdx.
12053
12054 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
12055
12056 PR rtl-optimization/66626
12057 * lra-constraints.c (lra_constraints): Prevent equivalence
12058 substitution for static chain pseudo in functions with nonlocal
12059 goto.
12060
12061 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12062
12063 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12064 (nios2_emit_stack_limit_check): Add size parameter. Handle
12065 -fstack-limit-symbol as well as -fstack-limit-register.
12066 (nios2_expand_prologue): Emit only a single stack limit check,
12067 even if multiple stack adjustments are required.
12068 (nios2_option_override): Diagnose unsupported combination of -fpic
12069 and -stack-limit-symbol.
12070
12071 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
12072
12073 * Makefile.in (top_srcdir): New.
12074 * configure.ac: Use AM_ZLIB.
12075 * configure: Regeneated.
12076
12077 2015-07-14 Matthias Klose <doko@ubuntu.com>
12078
12079 PR target/66840
12080 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12081
12082 2015-07-14 Richard Biener <rguenther@suse.de>
12083
12084 PR tree-optimization/66863
12085 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12086 what we record for conversion use stmt lhs inequalities.
12087
12088 2015-07-14 Richard Biener <rguenther@suse.de>
12089
12090 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12091 (decision_tree::gen_gimple): Likewise.
12092
12093 2015-07-14 Tom de Vries <tom@codesourcery.com>
12094
12095 * gcc.c (greater_than_spec_func): Declare forward.
12096 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12097 -ftree-parallelize-loops={0,1}.
12098 (static_spec_functions): Add greater_than_spec_func function with name
12099 "gt".
12100 (greater_than_spec_func): New function.
12101
12102 2015-07-14 Richard Biener <rguenther@suse.de>
12103
12104 * tree-ssa-dom.c (record_temporary_equivalences): Merge
12105 wideing type conversion case from record_equivalences_from_incoming_edge
12106 and use record_equality to record equivalences.
12107 (record_equivalences_from_incoming_edge): Call
12108 record_temporary_equivalences.
12109
12110 2015-07-14 Richard Biener <rguenther@suse.de>
12111
12112 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12113 (struct if_expr): New.
12114 (struct with_expr): Likewise.
12115 (is_a_helper): Add helpers for if_expr and with_expr.
12116 (struct simplify): Add simplify_kind enum and member. Remove
12117 ifexpr_vec member.
12118 (simplify::simplify): Adjust.
12119 (lower_commutative): Adjust.
12120 (lower_opt_convert): Likewise.
12121 (lower_cond): Likewise.
12122 (replace_id): Handle with_expr and if_expr.
12123 (lower_for): Adjust.
12124 (dt_simplify::gen_1): New recursive worker, split out from ...
12125 (dt_simplify::gen): ... here. Deal with if and with expansion
12126 recursively.
12127 (capture_info::capture_info): Take context argument
12128 (capture_info::walk_result): Only analyze specific result.
12129 (parser::parse_result): New function.
12130 (parser::parse_simplify): Adjust to parse ifs with then end
12131 else case.
12132 (parser::parse_if): Simplify.
12133 (parser::parse_pattern): Pass down simplify kind.
12134 * match.pd: Convert if structure to new syntax.
12135
12136 2015-07-13 Marek Polacek <polacek@redhat.com>
12137
12138 * rtl.c (rtx_equal_p_cb): Fix typo.
12139
12140 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
12141
12142 * omega.h: Don't include config.h, don't include params.h again if
12143 omega.h has already been included.
12144 * graphite-poly.h: Include sese.h.
12145 * graphite.c: Don't include sese.h, remove needless includes and
12146 minimize includes outside #ifdef HAVE_isl block.
12147 * graphite-blocking.c: Don't include sese.h, remove needless includes,
12148 and wrap entire file in #ifdef HAVE_isl
12149 * graphite-dependences.c: Likewise.
12150 * graphite-interchange.c: Likewise.
12151 * graphite-isl-ast-to-gimple.c: Likewise.
12152 * graphite-optimize-isl.c: Likewise.
12153 * graphite-poly.c: Likewise.
12154 * graphite-scop-detection.c: Likewise.
12155 * graphite-sese-to-poly.c: Likewise.
12156
12157 2015-07-13 Tom de Vries <tom@codesourcery.com>
12158
12159 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12160
12161 2015-07-13 Renlin Li <renlin.li@arm.com>
12162
12163 PR rtl/66556
12164 * simplify-rtx.c (simplify_const_relational_operation): Add
12165 side_effects_p checks.
12166
12167 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
12168
12169 * bitmap.h: Fix double word typos.
12170 * builtins.c: Same.
12171 * calls.c: Same.
12172 * cfgloopmanip.c: Same.
12173 * cgraph.c: Same.
12174 * cgraph.h: Same.
12175 * cgraphclones.c: Same.
12176 * combine.c: Same.
12177 * config/aarch64/aarch64-protos.h: Same.
12178 * config/aarch64/aarch64.c: Same.
12179 * config/aarch64/aarch64.md: Same.
12180 * config/arm/arm.md: Same.
12181 * config/arm/arm1020e.md: Same.
12182 * config/arm/arm1026ejs.md: Same.
12183 * config/arm/arm926ejs.md: Same.
12184 * config/arm/fa526.md: Same.
12185 * config/arm/fa606te.md: Same.
12186 * config/arm/fa626te.md: Same.
12187 * config/arm/fa726te.md: Same.
12188 * config/arm/fmp626.md: Same.
12189 * config/darwin.c: Same.
12190 * config/epiphany/epiphany.c: Same.
12191 * config/frv/frv.c: Same.
12192 * config/ft32/ft32.c: Same.
12193 * config/gnu-user.h: Same.
12194 * config/h8300/constraints.md: Same.
12195 * config/i386/i386.c: Same.
12196 * config/i386/i386.md: Same.
12197 * config/iq2000/iq2000.md: Same.
12198 * config/mips/mips.c: Same.
12199 * config/mmix/mmix.md: Same.
12200 * config/moxie/moxie.c: Same.
12201 * config/nds32/nds32.md: Same.
12202 * config/pa/pa.h: Same.
12203 * config/rs6000/aix.h: Same.
12204 * config/rs6000/rs6000.h: Same.
12205 * config/sh/sh.c: Same.
12206 * config/tilegx/tilegx.md: Same.
12207 * config/tilepro/gen-mul-tables.cc: Same.
12208 * cse.c: Same.
12209 * dbxout.c: Same.
12210 * doc/invoke.texi: Same.
12211 * dse.c: Same.
12212 * dwarf2out.c: Same.
12213 * final.c: Same.
12214 * gcc.c: Same.
12215 * genmatch.c: Same.
12216 * gimplify.c: Same.
12217 * hash-table.h: Same.
12218 * internal-fn.c: Same.
12219 * ipa-cp.c: Same.
12220 * ipa-devirt.c: Same.
12221 * ipa-icf.c: Same.
12222 * ipa-icf.h: Same.
12223 * ipa-profile.c: Same.
12224 * ipa-prop.c: Same.
12225 * ipa-prop.h: Same.
12226 * ira.c: Same.
12227 * omp-low.c: Same.
12228 * reg-stack.c: Same.
12229 * regcprop.c: Same.
12230 * reorg.c: Same.
12231 * rtl.h: Same.
12232 * sbitmap.h: Same.
12233 * tree-eh.c: Same.
12234 * tree-inline.c: Same.
12235 * tree-sra.c: Same.
12236 * tree-ssa-dom.c: Same.
12237 * tree-ssa-loop-ivopts.c: Same.
12238 * tree-ssa-structalias.c: Same.
12239 * tree-ssa-tail-merge.c: Same.
12240 * tree-ssa-ter.c: Same.
12241 * tree-ssa-threadupdate.c: Same.
12242 * tree-ssa-uninit.c: Same.
12243 * tree-ssanames.c: Same.
12244 * tree-vect-loop-manip.c: Same.
12245 * tree-vrp.c: Same.
12246 * tree.c: Same.
12247 * valtrack.c: Same.
12248 * vec.h: Same.
12249
12250 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12251
12252 PR middle-end/66726
12253 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12254 tree_ssa_phiopt_worker): Call it.
12255
12256 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12257
12258 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12259 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12260 REG_EQUAL note.
12261
12262 2015-07-11 Marek Polacek <polacek@redhat.com>
12263
12264 PR middle-end/66353
12265 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12266 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12267 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12268 rather than bb_has_abnormal_call_pred.
12269 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12270 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12271 rather than bb_has_abnormal_call_pred.
12272
12273 2015-07-10 Anatoly Sokolov <aesok@post.ru>
12274
12275 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12276 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12277 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12278 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12279 v850_legitimate_address_p): New functions.
12280 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12281
12282 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
12283
12284 PR target/66819
12285 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12286 indirect sibcall with register arguments if register available
12287 for argument passing.
12288 (init_cumulative_args): Set cfun->machine->arg_reg_available
12289 to (cum->nregs > 0) or to true if function has a variable
12290 argument list.
12291 (function_arg_advance_32): Set cfun->machine->arg_reg_available
12292 to false if cum->nregs <= 0.
12293 * config/i386/i386.h (machine_function): Add arg_reg_available.
12294
12295 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12296
12297 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12298 and gen_higpart instead of gen_rtx_SUBREG.
12299 * config/i386/i386.md
12300 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12301 (read-modify peephole2): Use gen_lowpart instead of
12302 gen_rtx_SUBREG for operand 5.
12303
12304 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12305
12306 * config/tilepro/gen-mul-tables.cc (main): Change include list for
12307 generated files.
12308 * config/tilepro/mul-tables.c: Regenerate.
12309 * config/tilegx/mul-tables.c: Regenerate.
12310
12311 2015-07-10 Richard Biener <rguenther@suse.de>
12312
12313 * fold-const.c (distribute_bit_expr): Remove.
12314 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12315 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12316 to A & (B | C) and simplifying A << C1 << C2 to ...
12317 * match.pd: ... patterns here.
12318
12319 2015-07-10 Jiong Wang <jiong.wang@arm.com>
12320
12321 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12322 Mark mem as READONLY and NOTRAP for PIC symbol.
12323
12324 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12325
12326 * gimple-predict.h: New file.
12327 (gimple_predict_predictor, gimple_predict_set_predictor,
12328 gimple_predict_outcome, gimple_predict_set_outcome,
12329 gimple_build_predict): Relocate here.
12330 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12331 gimple_predict_outcome, gimple_predict_set_outcome): Move to
12332 gimple-predict.h.
12333 * gimple.c (gimple_build_predict): Move to gimple-predict.h
12334 * basic-block.h: Don't include cfghooks.h.
12335 * backend.h: Don't include predict.h.
12336 * cfghooks.h: Include predict.h.
12337 * gimple-pretty-print.c: Include gimple-predict.h.
12338 * gimplify.c: Likwise.
12339 * predict.c: Adjust includes.
12340 * tree-inline.c: Likewise.
12341 * asan.c: Likewise.
12342 * auto-inc-dec.c: Likewise.
12343 * auto-profile.c: Likewise.
12344 * bb-reorder.c: Likewise.
12345 * builtins.c: Likewise.
12346 * caller-save.c: Likewise.
12347 * calls.c: Likewise.
12348 * cfganal.c: Likewise.
12349 * cfgbuild.c: Likewise.
12350 * cfg.c: Likewise.
12351 * cfgcleanup.c: Likewise.
12352 * cfgexpand.c: Likewise.
12353 * cfghooks.c: Likewise.
12354 * cfgloopanal.c: Likewise.
12355 * cfgloop.c: Likewise.
12356 * cfgloopmanip.c: Likewise.
12357 * cfgrtl.c: Likewise.
12358 * cgraph.c: Likewise.
12359 * cgraphunit.c: Likewise.
12360 * combine.c: Likewise.
12361 * cprop.c: Likewise.
12362 * cse.c: Likewise.
12363 * dce.c: Likewise.
12364 * dojump.c: Likewise.
12365 * dse.c: Likewise.
12366 * except.c: Likewise.
12367 * expmed.c: Likewise.
12368 * expr.c: Likewise.
12369 * final.c: Likewise.
12370 * fold-const.c: Likewise.
12371 * function.c: Likewise.
12372 * fwprop.c: Likewise.
12373 * gcc-plugin.h: Likewise.
12374 * gcse.c: Likewise.
12375 * genattrtab.c: Likewise.
12376 * genemit.c: Likewise.
12377 * gengtype.c: Likewise.
12378 * genopinit.c: Likewise.
12379 * genoutput.c: Likewise.
12380 * genpreds.c: Likewise.
12381 * genrecog.c: Likewise.
12382 * gimple-fold.c: Likewise.
12383 * gimple-iterator.c: Likewise.
12384 * gimple-ssa-isolate-paths.c: Likewise.
12385 * gimple-ssa-strength-reduction.c: Likewise.
12386 * graph.c: Likewise.
12387 * graphite-blocking.c: Likewise.
12388 * graphite.c: Likewise.
12389 * graphite-dependences.c: Likewise.
12390 * graphite-interchange.c: Likewise.
12391 * graphite-isl-ast-to-gimple.c: Likewise.
12392 * graphite-optimize-isl.c: Likewise.
12393 * graphite-poly.c: Likewise.
12394 * graphite-scop-detection.c: Likewise.
12395 * graphite-sese-to-poly.c: Likewise.
12396 * haifa-sched.c: Likewise.
12397 * ifcvt.c: Likewise.
12398 * internal-fn.c: Likewise.
12399 * ipa-cp.c: Likewise.
12400 * ipa-profile.c: Likewise.
12401 * ipa-split.c: Likewise.
12402 * ipa-utils.c: Likewise.
12403 * ira-build.c: Likewise.
12404 * ira-color.c: Likewise.
12405 * ira-conflicts.c: Likewise.
12406 * ira-costs.c: Likewise.
12407 * ira-emit.c: Likewise.
12408 * ira-lives.c: Likewise.
12409 * jump.c: Likewise.
12410 * loop-doloop.c: Likewise.
12411 * loop-init.c: Likewise.
12412 * loop-invariant.c: Likewise.
12413 * loop-unroll.c: Likewise.
12414 * lower-subreg.c: Likewise.
12415 * lra-assigns.c: Likewise.
12416 * lra.c: Likewise.
12417 * lra-coalesce.c: Likewise.
12418 * lra-constraints.c: Likewise.
12419 * lra-lives.c: Likewise.
12420 * lto-cgraph.c: Likewise.
12421 * lto-streamer-in.c: Likewise.
12422 * mode-switching.c: Likewise.
12423 * modulo-sched.c: Likewise.
12424 * omp-low.c: Likewise.
12425 * optabs.c: Likewise.
12426 * passes.c: Likewise.
12427 * postreload.c: Likewise.
12428 * postreload-gcse.c: Likewise.
12429 * profile.c: Likewise.
12430 * recog.c: Likewise.
12431 * regstat.c: Likewise.
12432 * reload1.c: Likewise.
12433 * reorg.c: Likewise.
12434 * rtlanal.c: Likewise.
12435 * sched-ebb.c: Likewise.
12436 * sel-sched-ir.c: Likewise.
12437 * sese.c: Likewise.
12438 * shrink-wrap.c: Likewise.
12439 * simplify-rtx.c: Likewise.
12440 * stmt.c: Likewise.
12441 * store-motion.c: Likewise.
12442 * tracer.c: Likewise.
12443 * trans-mem.c: Likewise.
12444 * tree-call-cdce.c: Likewise.
12445 * tree-cfg.c: Likewise.
12446 * tree-cfgcleanup.c: Likewise.
12447 * tree-chkp.c: Likewise.
12448 * tree-complex.c: Likewise.
12449 * tree-eh.c: Likewise.
12450 * tree-if-conv.c: Likewise.
12451 * tree-loop-distribution.c: Likewise.
12452 * tree-outof-ssa.c: Likewise.
12453 * tree-parloops.c: Likewise.
12454 * tree-predcom.c: Likewise.
12455 * tree-pretty-print.c: Likewise.
12456 * tree-profile.c: Likewise.
12457 * tree-sra.c: Likewise.
12458 * tree-ssa.c: Likewise.
12459 * tree-ssa-coalesce.c: Likewise.
12460 * tree-ssa-dce.c: Likewise.
12461 * tree-ssa-dom.c: Likewise.
12462 * tree-ssa-forwprop.c: Likewise.
12463 * tree-ssa-ifcombine.c: Likewise.
12464 * tree-ssa-loop-ch.c: Likewise.
12465 * tree-ssa-loop-im.c: Likewise.
12466 * tree-ssa-loop-ivcanon.c: Likewise.
12467 * tree-ssa-loop-ivopts.c: Likewise.
12468 * tree-ssa-loop-manip.c: Likewise.
12469 * tree-ssa-loop-prefetch.c: Likewise.
12470 * tree-ssa-loop-unswitch.c: Likewise.
12471 * tree-ssa-math-opts.c: Likewise.
12472 * tree-ssa-phiopt.c: Likewise.
12473 * tree-ssa-pre.c: Likewise.
12474 * tree-ssa-reassoc.c: Likewise.
12475 * tree-ssa-sink.c: Likewise.
12476 * tree-ssa-tail-merge.c: Likewise.
12477 * tree-ssa-threadedge.c: Likewise.
12478 * tree-ssa-threadupdate.c: Likewise.
12479 * tree-switch-conversion.c: Likewise.
12480 * tree-tailcall.c: Likewise.
12481 * tree-vect-data-refs.c: Likewise.
12482 * tree-vect-loop.c: Likewise.
12483 * tree-vect-loop-manip.c: Likewise.
12484 * tree-vectorizer.c: Likewise.
12485 * tree-vrp.c: Likewise.
12486 * ubsan.c: Likewise.
12487 * value-prof.c: Likewise.
12488 * varasm.c: Likewise.
12489 * var-tracking.c: Likewise.
12490 * config/aarch64/aarch64-builtins.c: Likewise.
12491 * config/aarch64/aarch64.c: Likewise.
12492 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12493 * config/alpha/alpha.c: Likewise.
12494 * config/arc/arc.c: Likewise.
12495 * config/arm/arm.c: Likewise.
12496 * config/avr/avr.c: Likewise.
12497 * config/bfin/bfin.c: Likewise.
12498 * config/c6x/c6x.c: Likewise.
12499 * config/cr16/cr16.c: Likewise.
12500 * config/cris/cris.c: Likewise.
12501 * config/darwin.c: Likewise.
12502 * config/darwin-c.c: Likewise.
12503 * config/epiphany/epiphany.c: Likewise.
12504 * config/epiphany/mode-switch-use.c: Likewise.
12505 * config/epiphany/resolve-sw-modes.c: Likewise.
12506 * config/fr30/fr30.c: Likewise.
12507 * config/frv/frv.c: Likewise.
12508 * config/ft32/ft32.c: Likewise.
12509 * config/h8300/h8300.c: Likewise.
12510 * config/i386/i386.c: Likewise.
12511 * config/i386/winnt.c: Likewise.
12512 * config/ia64/ia64.c: Likewise.
12513 * config/iq2000/iq2000.c: Likewise.
12514 * config/lm32/lm32.c: Likewise.
12515 * config/m32c/m32c.c: Likewise.
12516 * config/m32r/m32r.c: Likewise.
12517 * config/m68k/m68k.c: Likewise.
12518 * config/mcore/mcore.c: Likewise.
12519 * config/mep/mep.c: Likewise.
12520 * config/microblaze/microblaze.c: Likewise.
12521 * config/mips/mips.c: Likewise.
12522 * config/mmix/mmix.c: Likewise.
12523 * config/mn10300/mn10300.c: Likewise.
12524 * config/moxie/moxie.c: Likewise.
12525 * config/msp430/msp430.c: Likewise.
12526 * config/nds32/nds32.c: Likewise.
12527 * config/nds32/nds32-cost.c: Likewise.
12528 * config/nds32/nds32-fp-as-gp.c: Likewise.
12529 * config/nds32/nds32-intrinsic.c: Likewise.
12530 * config/nds32/nds32-isr.c: Likewise.
12531 * config/nds32/nds32-md-auxiliary.c: Likewise.
12532 * config/nds32/nds32-memory-manipulation.c: Likewise.
12533 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12534 * config/nds32/nds32-predicates.c: Likewise.
12535 * config/nios2/nios2.c: Likewise.
12536 * config/nvptx/nvptx.c: Likewise.
12537 * config/pa/pa.c: Likewise.
12538 * config/pdp11/pdp11.c: Likewise.
12539 * config/rl78/rl78.c: Likewise.
12540 * config/rs6000/rs6000.c: Likewise.
12541 * config/rx/rx.c: Likewise.
12542 * config/s390/s390.c: Likewise.
12543 * config/sh/sh.c: Likewise.
12544 * config/sh/sh-mem.cc: Likewise.
12545 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12546 * config/sh/sh_treg_combine.cc: Likewise.
12547 * config/sparc/sparc.c: Likewise.
12548 * config/spu/spu.c: Likewise.
12549 * config/stormy16/stormy16.c: Likewise.
12550 * config/tilegx/tilegx.c: Likewise.
12551 * config/tilepro/tilepro.c: Likewise.
12552 * config/v850/v850.c: Likewise.
12553 * config/vax/vax.c: Likewise.
12554 * config/visium/visium.c: Likewise.
12555 * config/xtensa/xtensa.c: Likewise.
12556
12557 2015-07-10 Richard Biener <rguenther@suse.de>
12558
12559 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12560 (decision_tree::gen_gimple): Likewise.
12561 (decision_tree::gen_generic): Likewise.
12562
12563 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12564
12565 PR target/66813
12566 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12567 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12568
12569 2015-07-10 Jakub Jelinek <jakub@redhat.com>
12570
12571 PR middle-end/66820
12572 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12573 or ORT_TASK contexts.
12574 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12575 is non-zero.
12576
12577 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12578
12579 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12580 above function.
12581
12582 2015-07-10 Tom de Vries <tom@codesourcery.com>
12583
12584 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12585 insert nit + 1 bound.
12586
12587 2015-07-10 Richard Biener <rguenther@suse.de>
12588
12589 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12590 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12591 (if_convertible_loop_p_1): For this always compute bb predicates.
12592 (if_convertible_loop_p): And free them.
12593
12594 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12595
12596 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12597 in dump message.
12598
12599 2015-07-10 Richard Biener <rguenther@suse.de>
12600
12601 PR tree-optimization/66823
12602 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12603 inverted predicate.
12604
12605 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
12606
12607 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12608 to handle mips[32|64]r3 and mips[32|64]r5.
12609
12610 2015-07-09 Jakub Jelinek <jakub@redhat.com>
12611
12612 PR middle-end/66633
12613 * tree-nested.c (get_static_chain): Or in a flag into
12614 info->static_chain_added.
12615 (get_frame_field, get_nonlocal_debug_decl): Likewise.
12616 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12617 2015-07-01 changes.
12618 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12619 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12620 add it to clauses.
12621
12622 PR tree-optimization/66718
12623 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12624 field.
12625 (vect_simd_lane_linear): New function.
12626 (vectorizable_simd_clone_call): Support using linear arguments for
12627 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12628
12629 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12630
12631 PR target/66821
12632 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12633
12634 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12635
12636 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12637 Use machine mode, not enum machine_mode in the prototype.
12638
12639 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12640 classify 128-bit floating point support.
12641 (FLOAT128_IBM_P): Likewise.
12642 (FLOAT128_VECTOR_P): Likewise.
12643 (FLOAT128_2REG_P): Likewise.
12644 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12645 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12646 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12647 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12648
12649 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12650 tests against TFmode/TDmode, since those modes do not use VSX
12651 addresses.
12652 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12653 support.
12654 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12655 tests against TFmode, etc.
12656 (invalid_e500_subreg): Add tests against IFmode/KFmode.
12657 (reg_offset_addressing_ok_p): Likewise.
12658 (rs6000_legitimate_offset_address_p): Likewise.
12659 (rs6000_legitimize_address): Likewise.
12660 (rs6000_legitimize_reload_address): Likewise.
12661 (rs6000_legitimate_address_p): Clean up tests against TFmode and
12662 TDmode to use the new helper macros, which will include IFmode and
12663 KFmode.
12664 (rs6000_emit_move): Likewise.
12665 (rs6000_darwin64_record_arg_recurse): Likewise.
12666 (print_operand): Likewise.
12667 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12668 that uses a single vector register as a vector and not as a
12669 floating point register in terms of the calling sequence.
12670 (rs6000_discover_homogeneous_aggregate): Likewise.
12671 (rs6000_return_in_memory): Likewise.
12672 (init_cumulative_args): Likewise.
12673 (rs6000_function_arg_boundary): Likewise.
12674 (rs6000_function_arg_advance_1): Likewise.
12675 (rs6000_function_arg): Likewise.
12676 (rs6000_pass_by_reference): Likewise.
12677 (rs6000_gimplify_va_arg): Likewise.
12678 (rs6000_secondary_reload_memory): Use machine_mode not enum
12679 machine mode.
12680 (rs6000_split_multireg_move): Use new helper macros.
12681 (spe_func_has_64bit_regs_p): Likewise.
12682 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12683 (output_toc): Use new helper macros.
12684 (rs6000_register_move_cost): Likewise.
12685 (rs6000_function_value): Add IEEE 128-bit floating point calling
12686 sequence support.
12687 (rs6000_libcall_value): Likewise.
12688 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12689 floating point support.
12690 (rs6000_vector_mode_supported_p): Likewise.
12691
12692 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
12693
12694 PR rtl-optimization/66782
12695 * lra-int.h (struct lra_insn_recog_data): Add comment about
12696 clobbered hard regs for arg_hard_regs.
12697 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12698 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12699 Add condition for processing used hard regs.
12700 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12701 Process clobbered hard regs.
12702
12703 2015-07-09 Michael Matz <matz@suse.de>
12704
12705 * genmatch.c (fprintf_indent): New function.
12706 (operand::gen_transform): Add indent parameter.
12707 (expr::gen_transform, c_expr::gen_transform,
12708 capture::gen_transform): Ditto and use fprintf_indent.
12709 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12710 (dt_operand::gen, dt_operand::gen_predicate,
12711 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12712 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12713 (decision_tree::gen_gimple): Adjust calls and indent generated
12714 code.
12715 (decision_tree::gen_generic): Ditto.
12716 (write_predicate): Ditto.
12717
12718 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12719
12720 PR target/66814
12721 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12722 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12723 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12724 {GENERAL,SSE,MMX}_REG_P where appropriate.
12725
12726 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12727
12728 * lto-streamer.h: Don't include target.h and alloc-pool.h.
12729 * builtins.c: Adjust includes.
12730 * gimple.c: Likewise.
12731 * ipa-icf.c: Likewise.
12732 * lto-opts.c: Likewise.
12733 * ipa-reference.c: Likewise.
12734 * lto-section-out.c: Likewise.
12735 * lto-streamer-in.c: Likewise.
12736 * lto-streamer-out.c: Likewise.
12737 * opts-global.c: Likewise.
12738 * symtab.c: Likewise.
12739 * tree-chkp.c: Likewise.
12740 * tree-ssa-live.c: Likewise.
12741 * tree-streamer-in.c: Likewise.
12742 * tree-streamer-out.c: Likewise.
12743 * config/darwin.c: Likewise.
12744 * config/i386/winnt.c: Likewise.
12745
12746 2015-07-09 Richard Biener <rguenther@suse.de>
12747
12748 * genmatch.c (struct expr): Add force_single_use flag.
12749 (expr::expr): Add copy constructor.
12750 (capture_info::walk_match): Gather force_single_use captures.
12751 (expr::gen_transform): Use possibly NULLified sequence.
12752 (dt_simplify::gen): Apply single-use restrictions by NULLifying
12753 seq if any constrained expr is not single-use.
12754 (parser::parse_expr): Refactor to allow multiple flags. Handle
12755 's' flag to force an expression have a single-use if the pattern
12756 simplifies to more than one statement.
12757 * match.pd: Convert most single_use conditionals to :s flags.
12758
12759 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12760
12761 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12762 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12763 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12764
12765 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12766
12767 * flags.h: Don't include flag-types.h or options.h.
12768 * opts-common.c: Adjust includes.
12769 * opts-global.c: Likewise.
12770 * common/config/epiphany/epiphany-common.c: Likewise.
12771
12772 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12773
12774 PR target/66818
12775 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12776 for IA MCU.
12777
12778 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12779
12780 PR target/66817
12781 * config/i386/i386.c (ix86_return_in_memory): Return true
12782 if int_size_in_bytes returns negative for IA MCU.
12783
12784 2015-07-09 Marek Polacek <polacek@redhat.com>
12785
12786 PR tree-optimization/66718
12787 * Makefile.in (OBJS): Add gimple-laddress.o.
12788 * passes.def: Schedule pass_laddress.
12789 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12790 * tree-pass.h (make_pass_laddress): Declare.
12791 * gimple-laddress.c: New file.
12792
12793 2015-07-09 Richard Biener <rguenther@suse.de>
12794
12795 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12796
12797 2015-07-09 Richard Biener <rguenther@suse.de>
12798
12799 PR tree-optimization/66807
12800 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12801
12802 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
12803
12804 * function.c (stack_protect_epilogue): Use if rather than switch for
12805 check targetm.have_stack_protect_test.
12806
12807 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12808
12809 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12810 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12811 * config/arc/arc.h: Likewise.
12812 * config/arm/arm.h: Likewise.
12813 * config/bfin/bfin.h: Likewise.
12814 * config/epiphany/epiphany.h: Likewise.
12815 * config/frv/frv.h: Likewise.
12816 * config/ia64/ia64.h: Likewise.
12817 * config/iq2000/iq2000.h: Likewise.
12818 * config/lm32/lm32.h: Likewise.
12819 * config/m32r/m32r.h: Likewise.
12820 * config/mcore/mcore.h: Likewise.
12821 * config/mep/mep.h: Likewise.
12822 * config/microblaze/microblaze.h: Likewise.
12823 * config/mips/mips.h: Likewise.
12824 * config/mmix/mmix.h: Likewise.
12825 * config/mn10300/mn10300.h: Likewise.
12826 * config/nds32/nds32.h: Likewise.
12827 * config/nios2/nios2.h: Likewise.
12828 * config/pa/pa.h: Likewise.
12829 * config/rl78/rl78.h: Likewise.
12830 * config/sh/sh.h: Likewise.
12831 * config/sparc/sparc.h: Likewise.
12832 * config/stormy16/stormy16.h: Likewise.
12833 * config/tilegx/tilegx.h: Likewise.
12834 * config/tilepro/tilepro.h: Likewise.
12835 * config/v850/v850.h: Likewise.
12836 * config/xtensa/xtensa.h: Likewise.
12837 * doc/tm.texi: Regenerate.
12838 * doc/tm.texi.in: Adjust.
12839 * combine.c (simplify_set): Likewise.
12840 (simplify_comparison): Likewise.
12841 * expr.c (store_constructor): Likewise.
12842 * internal-fn.c (expand_arith_overflow): Likewise.
12843 * reload.c (push_reload): Likewise.
12844 (find_reloads): Likewise.
12845 (find_reloads_subreg_address): Likewise.
12846 * reload1.c (eliminate_regs_1): Likewise.
12847 * rtlanal.c (nonzero_bits1): Likewise.
12848 (num_sign_bit_copies1): Likewise.
12849 * simplify-rtx.c (simplify_truncation): Likewise.
12850
12851 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12852
12853 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12854 of AUTO_INC_DEC with the preprocessor.
12855 * combine.c (combine_instructions): Likewise.
12856 (can_combine_p): Likewise.
12857 (try_combine): Likewise.
12858 * emit-rtl.c (try_split): Likewise.
12859 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12860 * lower-subreg.c (resolve_simple_move): Likewise.
12861 * lra.c (update_inc_notes): Likewise.
12862 * recog.c (asm_operand_ok): Likewise.
12863 (constrain_operands): Likewise.
12864 * regrename.c (scan_rtx_address): Likewise.
12865 * reload.c (update_auto_inc_notes): Likewise.
12866 (reg_inc_found_and_valid_p): Likewise.
12867 * reload1.c (reload): Likewise.
12868 (emit_input_reload_insns): Likewise.
12869 (delete_output_reload): Likewise.
12870 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12871 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12872
12873 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12874
12875 * rtl.h: Always define AUTO_INC_DEC.
12876 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12877 * combine.c (combine_instructions): Likewise.
12878 (can_combine_p): Likewise.
12879 (try_combine): Likewise.
12880 * emit-rtl.c (try_split): Likewise.
12881 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12882 * lower-subreg.c (resolve_simple_move): Likewise.
12883 * lra.c (update_inc_notes): Likewise.
12884 * recog.c (asm_operand_ok): Likewise.
12885 (constrain_operands): Likewise.
12886 * regrename.c (scan_rtx_address): Likewise.
12887 * reload.c (update_auto_inc_notes): Likewise.
12888 (find_equiv_reg): Likewise.
12889 * reload1.c (reload): Likewise.
12890 (reload_as_needed): Likewise.
12891 (choose_reload_regs): Likewise.
12892 (emit_input_reload_insns): Likewise.
12893 (delete_output_reload): Likewise.
12894 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12895 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12896
12897 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12898
12899 * combine.c (can_combine_def_p): Don't check the value of
12900 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12901 (combinable_i3pat): Likewise.
12902 (mark_used_regs_combine): Likewise.
12903 * regrename.c (rename_chains): Likewise.
12904 * reload.c (find_reloads_address): Likewise.
12905 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12906
12907 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12908
12909 * combine.c (update_rsp_from_reg_equal): Don't check if
12910 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12911 (reg_nonzero_bits_for_combine): Likewise.
12912 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12913 1.
12914 * config/frv/frv.h: Likewise.
12915 * config/lm32/lm32.h: Likewise.
12916 * config/mep/mep.h: Likewise.
12917 * config/mips/mips.h: Likewise.
12918 * config/rs6000/rs6000.h: Likewise.
12919 * config/sh/sh.h: Likewise.
12920 * config/tilegx/tilegx.h (enum reg_class): Likewise.
12921 * config/tilepro/tilepro.h: Likewise.
12922 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12923 * doc/tm.texi: Regenerate.
12924 * doc/tm.texi.in: Adjust.
12925 * rtlanal.c (nonzero_bits1): Likewise.
12926
12927 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12928
12929 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12930 with the preprocessor.
12931 (combine_instructions): Likewise.
12932 (try_combine): Likewise.
12933 (subst): Likewise.
12934 (distribute_notes): Likewise.
12935
12936 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12937
12938 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12939 defined.
12940 (simplify_set): Likewise.
12941 * cse.c (cse_insn): Likewise.
12942 * fold-const.c (fold_single_bit_test): Likewise.
12943 (fold_unary_loc): Likewise.
12944 * postreload.c (reload_cse_simplify_set): Likewise.
12945 (reload_cse_simplify_operands): Likewise.
12946
12947 2015-07-08 Jiong Wang <jiong.wang@arm.com>
12948
12949 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12950 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12951
12952 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12953
12954 PR target/66746
12955 * config/i386/x86intrin.h: Include <adxintrin.h> even if
12956 __iamcu__ is defined.
12957
12958 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12959
12960 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12961
12962 2015-07-08 Iain Sandoe <iain@codesourcery.com>
12963
12964 PR target/66523
12965 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12966 names from preservation.
12967
12968 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12969
12970 PR target/66806
12971 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12972 change for IAMCU.
12973 (function_arg_advance_32): Don't pass vectors in registers for
12974 IAMCU.
12975 (function_arg_32): Likewise.
12976 (ix86_return_in_memory): Don't return vectors in registers for
12977 IAMCU.
12978
12979 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
12980
12981 PR middle-end/66334
12982 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12983 hard regno live at the start of BB with incoming abnormal edges.
12984 * lra-lives.c (process_bb_lives): Ditto.
12985
12986 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12987
12988 PR libgomp/65099
12989 * config/nvptx/mkoffload.c (main): Create an offload image only in
12990 64-bit configurations.
12991
12992 2015-07-08 Martin Liska <mliska@suse.cz>
12993
12994 PR bootstrap/66744
12995 * tree-sra.c (create_access_1): Call ctor without brackets.
12996 (create_artificial_child_access): Likewise.
12997
12998 2015-07-08 Richard Biener <rguenther@suse.de>
12999
13000 PR tree-optimization/66793
13001 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13002 Properly split the block after stmts ending it.
13003
13004 2015-07-08 Richard Biener <rguenther@suse.de>
13005
13006 PR tree-optimization/66794
13007 * passes.c (execute_function_todo): Assert that post-dominators
13008 are not computed.
13009 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13010 Free post-dominators.
13011
13012 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13013
13014 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13015 with early exit.
13016
13017 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13018
13019 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13020 more than or equal 8 and less than 32 when optimizing for size.
13021
13022 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13023
13024 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13025 COSTS_N_INSNS (1) and increment it appropriately throughout the
13026 function.
13027
13028 2015-07-08 Richard Biener <rguenther@suse.de>
13029
13030 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13031
13032 2015-07-08 Alan Modra <amodra@gmail.com>
13033
13034 * target.def (rtx_costs): Remove "code" param, add "mode".
13035 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13036 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
13037 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13038 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
13039 call. Track mode when given in rtx.
13040 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
13041 (default_address_cost): Pass Pmode to rtx_cost.
13042 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13043 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13044 with NULL set.
13045 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
13046 (notreg_cost): Add mode param. Use it.
13047 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
13048 mode param and pass to set_src_cost. Update all calls.
13049 (hash_scan_set): Formatting.
13050 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13051 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13052 * hooks.h: Ditto.
13053 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13054 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13055 emit_store_flag): Update set_src_cost and rtx_cost calls.
13056 * auto-inc-dec.c (attempt_change): Likewise.
13057 * calls.c (precompute_register_parameters): Likewise.
13058 * combine.c (expand_compound_operation, make_extraction,
13059 force_to_mode, distribute_and_simplify_rtx): Likewise.
13060 * dojump.c (prefer_and_bit_test): Likewise.
13061 * dse.c (find_shift_sequence): Likewise.
13062 * expr.c (compress_float_constant): Likewise.
13063 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13064 * ifcvt.c (noce_try_sign_mask): Likewise.
13065 * loop-doloop.c (doloop_optimize): Likewise.
13066 * loop-invariant.c (create_new_invariant): Likewise.
13067 * lower-subreg.c (shift_cost, compute_costs): Likewise.
13068 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13069 lshift_cheap_p): Likewise.
13070 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13071 try_replace_in_use, reload_cse_move2add): Likewise.
13072 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13073 Likewise.
13074 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13075 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13076 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13077 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13079 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
13080 to rtx_cost calls.
13081 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13082 * config/arc/arc.c (arc_rtx_costs): Likewise.
13083 * config/arm/arm.c (arm_rtx_costs): Likewise.
13084 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13085 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13086 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13087 * config/cris/cris.c (cris_rtx_costs): Likewise.
13088 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13089 * config/frv/frv.c (frv_rtx_costs): Likewise.
13090 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13091 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13092 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13093 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13094 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13095 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13096 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13097 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13098 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13099 * config/mep/mep.c (mep_rtx_cost): Likewise.
13100 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13101 * config/mips/mips.c (mips_rtx_costs): Likewise.
13102 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13103 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13104 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13105 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13106 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13107 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13108 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13109 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13110 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13111 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13112 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13113 * config/s390/s390.c (s390_rtx_costs): Likewise.
13114 * config/sh/sh.c (sh_rtx_costs): Likewise.
13115 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13116 * config/spu/spu.c (spu_rtx_costs): Likewise.
13117 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13118 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13119 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13120 * config/v850/v850.c (v850_rtx_costs): Likewise.
13121 * config/vax/vax.c (vax_rtx_costs): Likewise.
13122 * config/visium/visium.c (visium_rtx_costs): Likewise.
13123 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13124 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13125 "code" param, and pass as outer_code to first rtx_cost call. Pass
13126 mode to rtx_cost calls.
13127 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13128 calls.
13129 (aarch64_rtx_costs_wrapper): Update.
13130 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13131 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13132 rtx_cost calls.
13133 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13134 and rtx_cost calls.
13135 (avr_operand_rtx_cost): Similarly.
13136 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13137 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13138 * config/mips/mips.c (mips_stack_address_p): Comment typo.
13139 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13140 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13141 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13142 rtx_cost.
13143 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13144 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13145 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13146 * doc/tm.texi: Regenerate.
13147
13148 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
13149
13150 * tree-core.h: Include symtab.h.
13151 * rtl.h: Include hard-reg-set.h but not flags.h.
13152 (HARD_CONST): Remove condition compilation involving HARD_CONST since
13153 hard-reg-set.h is always included.
13154 * regs.h: Don't include hard-reg-set.h or rtl.h.
13155 * cfg.h: Include dominance.h.
13156 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13157 * backend.h: New. Aggregate commonly used backend header files.
13158 * gimple-ssa.h: Don't include tree-hasher.h.
13159 * ssa.h: New. Aggregate commonly used SSA header files.
13160 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13161 * sel-sched-ir.h: Flatten includes.
13162 * lra-int.h: Flatten completely.
13163 * sel-sched-dump.h: Flatten includes.
13164 * ira-int.h: Flatten includes.
13165 * gimple-streamer.h: Remove all includes.
13166 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13167 * resource.h: Flatten hard-reg-set.h and df.h.
13168 * sched-int.h: Flatten insn-arrt.h and df.h.
13169 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13170 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13171 * genattrtab.c (write_header): Adjust generated includes.
13172 * genautomata.c (main): Likewise.
13173 * genconditions.c (write-header): Likewise.
13174 * genemit.c (main): Likewise.
13175 * gengtype.c (open_base_files): Likewise.
13176 * genopinit.c (main): Likewise.
13177 * genoutput.c (output_prologue): Likewise.
13178 * genpeep.c (main): Likewise.
13179 * genpreds.c (write_insn_preds_c): Likewise.
13180 * genrecog.c (write_header): Likewise.
13181 * alias.c: Adjust includes.
13182 * asan.c: Likewise.
13183 * attribs.c: Likewise.
13184 * auto-inc-dec.c: Likewise.
13185 * auto-profile.c: Likewise.
13186 * bb-reorder.c: Likewise.
13187 * bt-load.c: Likewise.
13188 * builtins.c: Likewise.
13189 * caller-save.c: Likewise.
13190 * calls.c: Likewise.
13191 * ccmp.c: Likewise.
13192 * cfg.c: Likewise.
13193 * cfganal.c: Likewise.
13194 * cfgbuild.c: Likewise.
13195 * cfgcleanup.c: Likewise.
13196 * cfgexpand.c: Likewise.
13197 * cfghooks.c: Likewise.
13198 * cfgloop.c: Likewise.
13199 * cfgloopanal.c: Likewise.
13200 * cfgloopmanip.c: Likewise.
13201 * cfgrtl.c: Likewise.
13202 * cgraph.c: Likewise.
13203 * cgraphbuild.c: Likewise.
13204 * cgraphclones.c: Likewise.
13205 * cgraphunit.c: Likewise.
13206 * cilk-common.c: Likewise.
13207 * combine-stack-adj.c: Likewise.
13208 * combine.c: Likewise.
13209 * compare-elim.c: Likewise.
13210 * convert.c: Likewise.
13211 * coverage.c: Likewise.
13212 * cppbuiltin.c: Likewise.
13213 * cprop.c: Likewise.
13214 * cse.c: Likewise.
13215 * cselib.c: Likewise.
13216 * data-streamer-in.c: Likewise.
13217 * data-streamer-out.c: Likewise.
13218 * data-streamer.c: Likewise.
13219 * dbxout.c: Likewise.
13220 * dce.c: Likewise.
13221 * ddg.c: Likewise.
13222 * debug.c: Likewise.
13223 * df-core.c: Likewise.
13224 * df-problems.c: Likewise.
13225 * df-scan.c: Likewise.
13226 * dfp.c: Likewise.
13227 * dojump.c: Likewise.
13228 * dominance.c: Likewise.
13229 * domwalk.c: Likewise.
13230 * double-int.c: Likewise.
13231 * dse.c: Likewise.
13232 * dumpfile.c: Likewise.
13233 * dwarf2asm.c: Likewise.
13234 * dwarf2cfi.c: Likewise.
13235 * dwarf2out.c: Likewise.
13236 * emit-rtl.c: Likewise.
13237 * et-forest.c: Likewise.
13238 * except.c: Likewise.
13239 * explow.c: Likewise.
13240 * expmed.c: Likewise.
13241 * expr.c: Likewise.
13242 * final.c: Likewise.
13243 * fixed-value.c: Likewise.
13244 * fold-const.c: Likewise.
13245 * function.c: Likewise.
13246 * fwprop.c: Likewise.
13247 * gcc-plugin.h: Likewise.
13248 * gcse-common.c: Likewise.
13249 * gcse.c: Likewise.
13250 * generic-match-head.c: Likewise.
13251 * ggc-page.c: Likewise.
13252 * gimple-builder.c: Likewise.
13253 * gimple-expr.c: Likewise.
13254 * gimple-fold.c: Likewise.
13255 * gimple-iterator.c: Likewise.
13256 * gimple-low.c: Likewise.
13257 * gimple-match-head.c: Likewise.
13258 * gimple-pretty-print.c: Likewise.
13259 * gimple-ssa-isolate-paths.c: Likewise.
13260 * gimple-ssa-strength-reduction.c: Likewise.
13261 * gimple-streamer-in.c: Likewise.
13262 * gimple-streamer-out.c: Likewise.
13263 * gimple-walk.c: Likewise.
13264 * gimple.c: Likewise.
13265 * gimplify-me.c: Likewise.
13266 * gimplify.c: Likewise.
13267 * godump.c: Likewise.
13268 * graph.c: Likewise.
13269 * graphite-blocking.c: Likewise.
13270 * graphite-dependences.c: Likewise.
13271 * graphite-interchange.c: Likewise.
13272 * graphite-isl-ast-to-gimple.c: Likewise.
13273 * graphite-optimize-isl.c: Likewise.
13274 * graphite-poly.c: Likewise.
13275 * graphite-scop-detection.c: Likewise.
13276 * graphite-sese-to-poly.c: Likewise.
13277 * graphite.c: Likewise.
13278 * haifa-sched.c: Likewise.
13279 * hw-doloop.c: Likewise.
13280 * ifcvt.c: Likewise.
13281 * init-regs.c: Likewise.
13282 * internal-fn.c: Likewise.
13283 * ipa-chkp.c: Likewise.
13284 * ipa-comdats.c: Likewise.
13285 * ipa-cp.c: Likewise.
13286 * ipa-devirt.c: Likewise.
13287 * ipa-icf-gimple.c: Likewise.
13288 * ipa-icf.c: Likewise.
13289 * ipa-inline-analysis.c: Likewise.
13290 * ipa-inline-transform.c: Likewise.
13291 * ipa-inline.c: Likewise.
13292 * ipa-polymorphic-call.c: Likewise.
13293 * ipa-profile.c: Likewise.
13294 * ipa-prop.c: Likewise.
13295 * ipa-pure-const.c: Likewise.
13296 * ipa-ref.c: Likewise.
13297 * ipa-reference.c: Likewise.
13298 * ipa-split.c: Likewise.
13299 * ipa-utils.c: Likewise.
13300 * ipa-visibility.c: Likewise.
13301 * ipa.c: Likewise.
13302 * ira-build.c: Likewise.
13303 * ira-color.c: Likewise.
13304 * ira-conflicts.c: Likewise.
13305 * ira-costs.c: Likewise.
13306 * ira-emit.c: Likewise.
13307 * ira-lives.c: Likewise.
13308 * ira.c: Likewise.
13309 * jump.c: Likewise.
13310 * langhooks.c: Likewise.
13311 * lcm.c: Likewise.
13312 * loop-doloop.c: Likewise.
13313 * loop-init.c: Likewise.
13314 * loop-invariant.c: Likewise.
13315 * loop-iv.c: Likewise.
13316 * loop-unroll.c: Likewise.
13317 * lower-subreg.c: Likewise.
13318 * lra-assigns.c: Likewise.
13319 * lra-coalesce.c: Likewise.
13320 * lra-constraints.c: Likewise.
13321 * lra-eliminations.c: Likewise.
13322 * lra-lives.c: Likewise.
13323 * lra-remat.c: Likewise.
13324 * lra-spills.c: Likewise.
13325 * lra.c: Likewise.
13326 * lto-cgraph.c: Likewise.
13327 * lto-compress.c: Likewise.
13328 * lto-opts.c: Likewise.
13329 * lto-section-in.c: Likewise.
13330 * lto-section-out.c: Likewise.
13331 * lto-streamer-in.c: Likewise.
13332 * lto-streamer-out.c: Likewise.
13333 * lto-streamer.c: Likewise.
13334 * mcf.c: Likewise.
13335 * mode-switching.c: Likewise.
13336 * modulo-sched.c: Likewise.
13337 * omega.c: Likewise.
13338 * omp-low.c: Likewise.
13339 * optabs.c: Likewise.
13340 * opts-global.c: Likewise.
13341 * passes.c: Likewise.
13342 * plugin.c: Likewise.
13343 * postreload-gcse.c: Likewise.
13344 * postreload.c: Likewise.
13345 * predict.c: Likewise.
13346 * print-rtl.c: Likewise.
13347 * print-tree.c: Likewise.
13348 * profile.c: Likewise.
13349 * real.c: Likewise.
13350 * realmpfr.c: Likewise.
13351 * recog.c: Likewise.
13352 * ree.c: Likewise.
13353 * reg-stack.c: Likewise.
13354 * regcprop.c: Likewise.
13355 * reginfo.c: Likewise.
13356 * regrename.c: Likewise.
13357 * regstat.c: Likewise.
13358 * reload.c: Likewise.
13359 * reload1.c: Likewise.
13360 * reorg.c: Likewise.
13361 * resource.c: Likewise.
13362 * rtl-chkp.c: Likewise.
13363 * rtlanal.c: Likewise.
13364 * rtlhooks.c: Likewise.
13365 * sanopt.c: Likewise.
13366 * sched-deps.c: Likewise.
13367 * sched-ebb.c: Likewise.
13368 * sched-rgn.c: Likewise.
13369 * sched-vis.c: Likewise.
13370 * sdbout.c: Likewise.
13371 * sel-sched-dump.c: Likewise.
13372 * sel-sched-ir.c: Likewise.
13373 * sel-sched.c: Likewise.
13374 * sese.c: Likewise.
13375 * shrink-wrap.c: Likewise.
13376 * simplify-rtx.c: Likewise.
13377 * stack-ptr-mod.c: Likewise.
13378 * stmt.c: Likewise.
13379 * stor-layout.c: Likewise.
13380 * store-motion.c: Likewise.
13381 * stringpool.c: Likewise.
13382 * symtab.c: Likewise.
13383 * target-globals.c: Likewise.
13384 * targhooks.c: Likewise.
13385 * toplev.c: Likewise.
13386 * tracer.c: Likewise.
13387 * trans-mem.c: Likewise.
13388 * tree-affine.c: Likewise.
13389 * tree-browser.c: Likewise.
13390 * tree-call-cdce.c: Likewise.
13391 * tree-cfg.c: Likewise.
13392 * tree-cfgcleanup.c: Likewise.
13393 * tree-chkp-opt.c: Likewise.
13394 * tree-chkp.c: Likewise.
13395 * tree-chrec.c: Likewise.
13396 * tree-complex.c: Likewise.
13397 * tree-data-ref.c: Likewise.
13398 * tree-dfa.c: Likewise.
13399 * tree-diagnostic.c: Likewise.
13400 * tree-dump.c: Likewise.
13401 * tree-eh.c: Likewise.
13402 * tree-emutls.c: Likewise.
13403 * tree-if-conv.c: Likewise.
13404 * tree-inline.c: Likewise.
13405 * tree-into-ssa.c: Likewise.
13406 * tree-iterator.c: Likewise.
13407 * tree-loop-distribution.c: Likewise.
13408 * tree-nested.c: Likewise.
13409 * tree-nrv.c: Likewise.
13410 * tree-object-size.c: Likewise.
13411 * tree-outof-ssa.c: Likewise.
13412 * tree-parloops.c: Likewise.
13413 * tree-phinodes.c: Likewise.
13414 * tree-predcom.c: Likewise.
13415 * tree-pretty-print.c: Likewise.
13416 * tree-profile.c: Likewise.
13417 * tree-scalar-evolution.c: Likewise.
13418 * tree-sra.c: Likewise.
13419 * tree-ssa-address.c: Likewise.
13420 * tree-ssa-alias.c: Likewise.
13421 * tree-ssa-ccp.c: Likewise.
13422 * tree-ssa-coalesce.c: Likewise.
13423 * tree-ssa-copy.c: Likewise.
13424 * tree-ssa-copyrename.c: Likewise.
13425 * tree-ssa-dce.c: Likewise.
13426 * tree-ssa-dom.c: Likewise.
13427 * tree-ssa-dse.c: Likewise.
13428 * tree-ssa-forwprop.c: Likewise.
13429 * tree-ssa-ifcombine.c: Likewise.
13430 * tree-ssa-live.c: Likewise.
13431 * tree-ssa-loop-ch.c: Likewise.
13432 * tree-ssa-loop-im.c: Likewise.
13433 * tree-ssa-loop-ivcanon.c: Likewise.
13434 * tree-ssa-loop-ivopts.c: Likewise.
13435 * tree-ssa-loop-manip.c: Likewise.
13436 * tree-ssa-loop-niter.c: Likewise.
13437 * tree-ssa-loop-prefetch.c: Likewise.
13438 * tree-ssa-loop-unswitch.c: Likewise.
13439 * tree-ssa-loop.c: Likewise.
13440 * tree-ssa-math-opts.c: Likewise.
13441 * tree-ssa-operands.c: Likewise.
13442 * tree-ssa-phiopt.c: Likewise.
13443 * tree-ssa-phiprop.c: Likewise.
13444 * tree-ssa-pre.c: Likewise.
13445 * tree-ssa-propagate.c: Likewise.
13446 * tree-ssa-reassoc.c: Likewise.
13447 * tree-ssa-sccvn.c: Likewise.
13448 * tree-ssa-scopedtables.c: Likewise.
13449 * tree-ssa-sink.c: Likewise.
13450 * tree-ssa-strlen.c: Likewise.
13451 * tree-ssa-structalias.c: Likewise.
13452 * tree-ssa-tail-merge.c: Likewise.
13453 * tree-ssa-ter.c: Likewise.
13454 * tree-ssa-threadedge.c: Likewise.
13455 * tree-ssa-threadupdate.c: Likewise.
13456 * tree-ssa-uncprop.c: Likewise.
13457 * tree-ssa-uninit.c: Likewise.
13458 * tree-ssa.c: Likewise.
13459 * tree-ssanames.c: Likewise.
13460 * tree-stdarg.c: Likewise.
13461 * tree-streamer-in.c: Likewise.
13462 * tree-streamer-out.c: Likewise.
13463 * tree-streamer.c: Likewise.
13464 * tree-switch-conversion.c: Likewise.
13465 * tree-tailcall.c: Likewise.
13466 * tree-vect-data-refs.c: Likewise.
13467 * tree-vect-generic.c: Likewise.
13468 * tree-vect-loop-manip.c: Likewise.
13469 * tree-vect-loop.c: Likewise.
13470 * tree-vect-patterns.c: Likewise.
13471 * tree-vect-slp.c: Likewise.
13472 * tree-vect-stmts.c: Likewise.
13473 * tree-vectorizer.c: Likewise.
13474 * tree-vrp.c: Likewise.
13475 * tree.c: Likewise.
13476 * tsan.c: Likewise.
13477 * ubsan.c: Likewise.
13478 * valtrack.c: Likewise.
13479 * value-prof.c: Likewise.
13480 * var-tracking.c: Likewise.
13481 * varasm.c: Likewise.
13482 * varpool.c: Likewise.
13483 * vmsdbgout.c: Likewise.
13484 * vtable-verify.c: Likewise.
13485 * web.c: Likewise.
13486 * wide-int.cc: Likewise.
13487 * xcoffout.c: Likewise.
13488 * config/aarch64/aarch64-builtins.c: Likewise.
13489 * config/aarch64/aarch64.c: Likewise.
13490 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13491 * config/alpha/alpha.c: Likewise.
13492 * config/arc/arc.c: Likewise.
13493 * config/arm/aarch-common.c: Likewise.
13494 * config/arm/arm-builtins.c: Likewise.
13495 * config/arm/arm-c.c: Likewise.
13496 * config/arm/arm.c: Likewise.
13497 * config/avr/avr-c.c: Likewise.
13498 * config/avr/avr-log.c: Likewise.
13499 * config/avr/avr.c: Likewise.
13500 * config/bfin/bfin.c: Likewise.
13501 * config/c6x/c6x.c: Likewise.
13502 * config/cr16/cr16.c: Likewise.
13503 * config/cris/cris.c: Likewise.
13504 * config/darwin-c.c: Likewise.
13505 * config/darwin.c: Likewise.
13506 * config/epiphany/epiphany.c: Likewise.
13507 * config/epiphany/mode-switch-use.c: Likewise.
13508 * config/epiphany/resolve-sw-modes.c: Likewise.
13509 * config/fr30/fr30.c: Likewise.
13510 * config/frv/frv.c: Likewise.
13511 * config/ft32/ft32.c: Likewise.
13512 * config/h8300/h8300.c: Likewise.
13513 * config/i386/i386-c.c: Likewise.
13514 * config/i386/i386.c: Likewise.
13515 * config/i386/msformat-c.c: Likewise.
13516 * config/i386/winnt-cxx.c: Likewise.
13517 * config/i386/winnt-stubs.c: Likewise.
13518 * config/i386/winnt.c: Likewise.
13519 * config/ia64/ia64-c.c: Likewise.
13520 * config/ia64/ia64.c: Likewise.
13521 * config/iq2000/iq2000.c: Likewise.
13522 * config/lm32/lm32.c: Likewise.
13523 * config/m32c/m32c-pragma.c: Likewise.
13524 * config/m32c/m32c.c: Likewise.
13525 * config/m32r/m32r.c: Likewise.
13526 * config/m68k/m68k.c: Likewise.
13527 * config/mcore/mcore.c: Likewise.
13528 * config/mep/mep-pragma.c: Likewise.
13529 * config/mep/mep.c: Likewise.
13530 * config/microblaze/microblaze-c.c: Likewise.
13531 * config/microblaze/microblaze.c: Likewise.
13532 * config/mips/mips.c: Likewise.
13533 * config/mmix/mmix.c: Likewise.
13534 * config/mn10300/mn10300.c: Likewise.
13535 * config/moxie/moxie.c: Likewise.
13536 * config/msp430/msp430-c.c: Likewise.
13537 * config/msp430/msp430.c: Likewise.
13538 * config/nds32/nds32-cost.c: Likewise.
13539 * config/nds32/nds32-fp-as-gp.c: Likewise.
13540 * config/nds32/nds32-intrinsic.c: Likewise.
13541 * config/nds32/nds32-isr.c: Likewise.
13542 * config/nds32/nds32-md-auxiliary.c: Likewise.
13543 * config/nds32/nds32-memory-manipulation.c: Likewise.
13544 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13545 * config/nds32/nds32-predicates.c: Likewise.
13546 * config/nds32/nds32.c: Likewise.
13547 * config/nios2/nios2.c: Likewise.
13548 * config/nvptx/nvptx.c: Likewise.
13549 * config/pa/pa.c: Likewise.
13550 * config/pdp11/pdp11.c: Likewise.
13551 * config/rl78/rl78-c.c: Likewise.
13552 * config/rl78/rl78.c: Likewise.
13553 * config/rs6000/rs6000-c.c: Likewise.
13554 * config/rs6000/rs6000.c: Likewise.
13555 * config/rx/rx.c: Likewise.
13556 * config/s390/s390-c.c: Likewise.
13557 * config/s390/s390.c: Likewise.
13558 * config/sh/sh-c.c: Likewise.
13559 * config/sh/sh-mem.cc: Likewise.
13560 * config/sh/sh.c: Likewise.
13561 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13562 * config/sh/sh_treg_combine.cc: Likewise.
13563 * config/sol2-c.c: Likewise.
13564 * config/sol2-cxx.c: Likewise.
13565 * config/sol2-stubs.c: Likewise.
13566 * config/sol2.c: Likewise.
13567 * config/sparc/sparc-c.c: Likewise.
13568 * config/sparc/sparc.c: Likewise.
13569 * config/spu/spu-c.c: Likewise.
13570 * config/spu/spu.c: Likewise.
13571 * config/stormy16/stormy16.c: Likewise.
13572 * config/tilegx/mul-tables.c: Likewise.
13573 * config/tilegx/tilegx-c.c: Likewise.
13574 * config/tilegx/tilegx.c: Likewise.
13575 * config/tilepro/mul-tables.c: Likewise.
13576 * config/tilepro/tilepro-c.c: Likewise.
13577 * config/tilepro/tilepro.c: Likewise.
13578 * config/v850/v850-c.c: Likewise.
13579 * config/v850/v850.c: Likewise.
13580 * config/vax/vax.c: Likewise.
13581 * config/visium/visium.c: Likewise.
13582 * config/vms/vms-c.c: Likewise.
13583 * config/vms/vms.c: Likewise.
13584 * config/vxworks.c: Likewise.
13585 * config/xtensa/xtensa.c: Likewise.
13586
13587 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
13588
13589 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13590 Remove operand constraints. Change operand 2 predicate to
13591 nonmemory operand. Limit const_int values to mode bitsize. Only
13592 allow const_int values less than 32 when optimizing for size.
13593 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13594 Remove operand constraints.
13595 (*bt<mode>): Use SImode for const_int values less than 32.
13596 (regmode): Remove mode attribute.
13597
13598 2015-07-07 Anatoly Sokolov <aesok@post.ru>
13599
13600 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13601 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13602 moxie_legitimate_address_p): New functions.
13603 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13604
13605 2015-07-07 Tom de Vries <tom@codesourcery.com>
13606
13607 PR tree-optimization/66642
13608 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13609 header comment. Rename split_edge variable to edge_at_split. Split
13610 exit edge to create new loop exit bb. Insert loop exit phis in new
13611 loop exit bb.
13612
13613 2015-07-07 Tom de Vries <tom@codesourcery.com>
13614
13615 * tree-cfg.c (get_virtual_phi): New function.
13616 * tree-cfg.h (get_virtual_phi): Declare.
13617 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13618 (rewrite_virtuals_into_loop_closed_ssa): New function.
13619 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13620 Declare.
13621 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13622 (transform_to_exit_first_loop_alt): Use
13623 rewrite_virtuals_into_loop_closed_ssa.
13624
13625 2015-07-07 Richard Biener <rguenther@suse.de>
13626
13627 * fold-const.c (fold_binary_loc): Move
13628 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13629 * match.pd: ... here.
13630 Add (X * C1) % C2 -> 0 simplification pattern derived from
13631 extract_muldiv_1.
13632
13633 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
13634
13635 PR target/66780
13636 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13637 change for target/65249.
13638
13639 2015-07-07 Paulo Matos <pmatos@broadcom.com>
13640
13641 * symtab.c (address_matters_1): Fix typo in comment above.
13642 (can_increase_alignment_p): Likewise.
13643
13644 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13645
13646 * function.c (free_after_compilation): Clear PROP_cfg in
13647 f->curr_properties.
13648
13649 2015-07-07 Richard Biener <rguenther@suse.de>
13650
13651 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13652 add which use to.
13653 (add_control_edge): Remove excessive vertical space in dumping.
13654 (process_ssa_edge_worklist): Simulate at most one statement and
13655 return whether we did. Do not simulate PHIs if they are in a
13656 BB not yet simulated.
13657 (ssa_propagate): Adjust to always drain the BB worklist whenever
13658 a BB is available there, likewise the VARYING edges list before
13659 the interesting edge list.
13660
13661 2015-07-07 Christian Bruel <christian.bruel@st.com>
13662
13663 PR target/52144
13664 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13665
13666 2015-07-07 Richard Biener <rguenther@suse.de>
13667
13668 PR middle-end/66739
13669 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13670 A - B.
13671
13672 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13673
13674 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
13675 modes for operands 0 and 3. Use SImode for operands 2 and 3.
13676 Copy operand 0 to a temporary if !ext_register_operand. Remove
13677 ancient extract_bit_field workaround.
13678 (insv<mode>_1): Rename from mov<mode>_insv_1.
13679 (*insvqi): Rename from *movqi_insv_2.
13680 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13681 for renamed insvsi_1.
13682 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13683
13684 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
13685
13686 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
13687 call to nvptx_reorg_subreg.
13688
13689 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
13690
13691 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13692 * graphite-dependencies.c, graphite-interchange.c,
13693 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13694 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13695 Likewise.
13696
13697 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
13698
13699 * match.pd: Remove element_mode inside HONOR_*.
13700 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13701 (~X | X -> -1, ~X ^ X -> -1): Merge.
13702 * tree.c (build_each_one_cst): New function.
13703 * tree.h (build_each_one_cst): Likewise.
13704
13705 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13706
13707 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13708 PROCESSOR_IAMCU.
13709
13710 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
13711
13712 * config.gcc <mips*-*-*>: Add fused-madd.opt.
13713 * config/mips/mips.opt (mfused-madd): Remove.
13714 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13715 * config/mips/mips.h (TARGET_MIPS8000): New.
13716 (ISA_HAS_FP_MADD4_MSUB4): Remove.
13717 (ISA_HAS_FP_MADDF_MSUBF): Remove.
13718 (ISA_HAS_FP_MADD3_MSUB3): Remove.
13719 (ISA_HAS_NMADD4_NMSUB4): Remove.
13720 (ISA_HAS_NMADD3_NMSUB3): Remove.
13721 (ISA_HAS_FUSED_MADD4): New.
13722 (ISA_HAS_UNFUSED_MADD4): New.
13723 (ISA_HAS_FUSED_MADDF): New.
13724 (ISA_HAS_FUSED_MADD3): New.
13725 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13726 (*fma<mode>4_madd3) New.
13727 (*fma<mode>4_madd4) New.
13728 (*fma<mode>4_maddf) New.
13729 (fms<mode>4) New.
13730 (*fms<mode>4_msub3) New.
13731 (*fms<mode>4_msub4) New.
13732 (fnma<mode>4) New.
13733 (*fnma<mode>4_nmadd3) New.
13734 (*fnma<mode>4_nmadd4) New.
13735 (fnms<mode>4) New.
13736 (*fnms<mode>4_nmsub3) New.
13737 (*fnms<mode>4_nmsub4) New.
13738 (*madd4<mode>) Modify to be unfused only.
13739 (*msub4<mode>) Modify to be unfused only.
13740 (*nmadd4<mode>) Modify to be unfused only.
13741 (*nmsub4<mode>) Modify to be unfused only.
13742 (*madd3<mode>) Remove.
13743 (*msub3<mode>) Remove.
13744 (*nmadd3<mode>) Remove.
13745 (*nmsub3<mode>) Remove.
13746 (*nmadd3<mode>_fastmath) Remove.
13747 (*nmsub3<mode>_fastmath) Remove.
13748 (*nmadd4<mode>_fastmath) Update condition.
13749 (*nmsub4<mode>_fastmath) Update condition.
13750
13751 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13752
13753 PR target/65956
13754 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13755 alignment attribute, exploring one level down for records and arrays.
13756
13757 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13758
13759 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
13760 modes for operands 0 and 1. Use SImode for operands 2 and 3.
13761 Copy operand 1 to a temporary if !ext_register_operand. Remove
13762 ancient extract_bit_field workaround.
13763 (*extv<mode>): Rename from *mov<mode>_extv_1.
13764 (*extvqi): Rename from *movqi_extv_1.
13765 (extzv<mode>): Rename from extzv. Use SWI248 modes for
13766 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
13767 to a temporary if !ext_register_operand. Remove ancient
13768 extract_bit_field workaround.
13769 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13770 (*extzvqi): Rename from *movqi_extzv_2.
13771 (*testqi_ext_3): Remove modes from const_int_operand predicated
13772 operands. Add "n" constraint.
13773 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13774 operand. Add "J" constraint.
13775 (*btsq, *btrq, *btcq peephole2s): Remove mode from
13776 const_0_to_63 predicated operand.
13777 (regmode): New insn attribute.
13778 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
13779 to nonmemory_operand. Use regmode insn attribute.
13780 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13781 (*jcc_bt<mode>_mask): Remove mode from operand 3.
13782 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13783 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13784 operands. Use "N" constraint instead of "n".
13785
13786 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13787
13788 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13789
13790 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13791
13792 PR target/66749
13793 * config/i386/i386.c (iamcu_cost): New.
13794 (m_IAMCU): Likewise.
13795 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13796 (processor_target_table): Add an entry for "iamcu".
13797 (processor_alias_table): Likewise.
13798 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13799 (ix86_adjust_cost): Likewise.
13800 (ia32_multipass_dfa_lookahead): Likewise.
13801 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13802 * config/i386/x86-tune.def: Updated for m_IAMCU.
13803
13804 2015-07-06 Richard Biener <rguenther@suse.de>
13805
13806 PR tree-optimization/66772
13807 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13808 values are available in the PHI node BB when there are
13809 still unexecutable edges.
13810
13811 2015-07-06 Richard Biener <rguenther@suse.de>
13812
13813 PR tree-optimization/66767
13814 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13815 Make sure to build the alignment test on a SSA name without
13816 final alignment info valid only if the alignment test
13817 evaluates to true.
13818
13819 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
13820
13821 PR target/66620
13822 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13823 loop start when inserting LSETUP.
13824
13825 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13826
13827 PR target/53383
13828 * config/i386/i386.c (ix86_option_override_internal): Allow
13829 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13830
13831 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13832
13833 * read-md.c (decimal_string): Rename to ...
13834 (md_decimal_string): ... this.
13835 (handle_enum): Reflect this.
13836
13837 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
13838
13839 PR target/66731
13840 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13841
13842 2015-07-06 Richard Biener <rguenther@suse.de>
13843
13844 PR middle-end/66759
13845 * match.pd: Add missing constraint of y to REAL_CST in
13846 REAL_CST - x CMP y to y - CST CMP x simplification.
13847
13848 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
13849
13850 PR tree-optimization/66757
13851 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13852
13853 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
13854 Sandra Loosemore <sandra@codesourcery.com>
13855
13856 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13857 Delete extern declaration.
13858 (gprel_constant_p): Add extern declaration.
13859 * config/nios2/constraints.md ("S"): Use gprel_constant_p
13860 instead of nios2_symbol_ref_in_small_data_p.
13861 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13862 (nios2_symbol_ref_in_small_data_p): Make static.
13863 (gprel_constant_p): Make non-static.
13864
13865 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13866
13867 * doc/fragments.texi (Target Fragment): Convert debian.org
13868 link to use https.
13869 * doc/install.texi (Configuration): Ditto.
13870
13871 2015-07-05 Jakub Jelinek <jakub@redhat.com>
13872
13873 PR tree-optimization/66718
13874 * tree-vect-stmts.c (vectorizable_call): Replace uses of
13875 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13876
13877 PR tree-optimization/66718
13878 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13879 vectorizable_load, vectorizable_condition): Move vectype,
13880 nunits, ncopies computation after checking what kind of statement
13881 stmt is.
13882
13883 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13884
13885 * target-insns.def (extv, extzv, insv): New targetm instruction
13886 patterns.
13887 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13888 interface.
13889 * recog.c (simplify_while_replacing): Likewise.
13890
13891 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13892
13893 * target-insns.def (doloop_begin, doloop_end): New targetm
13894 instruction patterns.
13895 * loop-init.c: Include target.h.
13896 (pass_loop2::gate): Use the new targetm patterns instead of
13897 HAVE_*/gen_* interface.
13898 (pass_rtl_doloop::gate): Likewise.
13899 (pass_rtl_doloop::execute): Remove preprocessor condition.
13900 * hw-doloop.c: Build unconditionally.
13901 * loop-doloop.c: Likewise.
13902 (doloop_optimize): Use the new targetm patterns instead of
13903 HAVE_*/gen_* interface.
13904 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13905 * modulo-sched.c (doloop_register_get): Likewise.
13906
13907 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13908
13909 * target-insns.def (clear_cache): New targetm instruction pattern.
13910 * builtins.c (expand_builtin___clear_cache): Use it instead of
13911 HAVE_*/gen_* interface.
13912
13913 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13914
13915 * target-insns.def (allocate_stack, check_stack, probe_stack)
13916 (probe_stack_address, split_stack_prologue, split_stack_space_check):
13917 New targetm instruction patterns.
13918 * explow.c (allocate_dynamic_stack_space): Use them instead of
13919 HAVE_*/gen_* interface.
13920 (emit_stack_probe): Likewise.
13921 (probe_stack_range): Likewise.
13922 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13923
13924 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * target-insns.def (stack_protect_set, stack_protect_test): New
13927 targetm instruction patterns.
13928 * cfgexpand.c (stack_protect_prologue): Use them instead of
13929 HAVE_*/gen_* interface.
13930 * function.c (stack_protect_epilogue): Likewise.
13931
13932 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13933
13934 * expr.h (gen_move_insn_uncast): Delete.
13935 * expr.c (gen_move_insn_uncast): Delete.
13936
13937 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13938
13939 * target-insns.def (restore_stack_block, restore_stack_function)
13940 (restore_stack_nonlocal, save_stack_block, save_stack_function)
13941 (save_stack_nonlocal): New targetm instruction patterns.
13942 * builtins.c (expand_builtin_apply): Use them instead of
13943 HAVE_*/gen_* interface.
13944 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13945
13946 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13947
13948 * target-insns.def (trap): New targetm instruction pattern.
13949 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13950 interface.
13951 * explow.c (allocate_dynamic_stack_space): Likewise.
13952 * ifcvt.c (find_if_header): Likewise.
13953
13954 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13955
13956 * target-insns.def (prefetch): New targetm instruction pattern.
13957 * tree-ssa-loop-prefetch.c: Include targeth.
13958 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13959 of HAVE_*/gen_* interface.
13960 * builtins.c (expand_builtin_prefetch): Likewise.
13961 * toplev.c (process_options): Likewise.
13962
13963 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13964
13965 * target-insns.def (untyped_call, untyped_return): New targetm
13966 instruction patterns.
13967 * builtins.c (expand_builtin_apply): Use them instead of
13968 HAVE_*/gen_* interface.
13969 (result_vector): Define unconditionally.
13970
13971 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13972
13973 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13974 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13975 (nonlocal_goto_receiver): New targetm instruction patterns.
13976 * builtins.c (expand_builtin_setjmp_setup): Use them instead
13977 of HAVE_*/gen_* interface.
13978 (expand_builtin_setjmp_receiver): Likewise.
13979 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13980 * except.c (expand_dw2_landing_pad_for_region): Likewise.
13981
13982 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13983
13984 * target.def: Add code_for_* hooks.
13985 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13986 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13987 * target-insns.def (casesi, tablejump): New targetm instruction
13988 patterns.
13989 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13990 (do_tablejump): Likewise.
13991 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13992 (expand_sjlj_dispatch_table): Likewise.
13993 * targhooks.c (default_case_values_threshold): Likewise.
13994
13995 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
13996
13997 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13998 Use rtx_insn * instead of rtx.
13999 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14000 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14001 (nios2_call_tls_get_addr): Likewise.
14002 (nios2_emit_expensive_div): Likewise.
14003 (nios2_emit_move_sequence): Change return type to bool.
14004 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14005 Change return type to bool.
14006
14007 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14008
14009 PR target/66747
14010 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14011
14012 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
14013
14014 PR target/66114
14015 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14016 of register_operand. Remove constraint.
14017
14018 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
14019
14020 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14021 the first argument.
14022
14023 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
14024
14025 * attribs.c (decl_attributes): Guard inform with the return value
14026 of the preceding warning.
14027
14028 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14029
14030 * doc/invoke.texi (moverride): Move to correct section.
14031
14032 2015-07-03 Richard Biener <rguenther@suse.de>
14033
14034 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14035 Copy from tree.c
14036 (dt_operand::gen_gimple_expr): After valueizing operands
14037 re-canonicalize operand order for commutative tree codes.
14038
14039 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
14040
14041 PR target/66746.
14042 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14043 is defined.
14044 (__crc32w): Likewise.
14045 (__crc32d): Likewise.
14046 (__rdpmc): Likewise.
14047 (__rdtscp): Likewise.
14048 (_rdpmc): Likewise.
14049 (_rdtscp): Likewise.
14050 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14051 is defined.
14052
14053 2015-07-03 Richard Biener <rguenther@suse.de>
14054
14055 * fold-const.c (fold_mathfn_compare): Remove.
14056 (fold_inf_compare): Likewise.
14057 (fold_comparison): Move floating point comparison simplifications...
14058 * match.pd: ... to patterns here. Introduce simple_comparisons
14059 operator list and use it for patterns formerly in fold_comparison.
14060
14061 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14062
14063 PR tree-optimization/66119
14064 * toplev.c (process_options): Don't set up default values for
14065 the sra_max_scalarization_size_{speed,size} parameters.
14066 * tree-sra (analyze_all_variable_accesses): If no values
14067 have been set for the sra_max_scalarization_size_{speed,size}
14068 parameters, call get_move_ratio to get target defaults.
14069
14070 2015-07-03 Richard Biener <rguenther@suse.de>
14071
14072 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14073 * match.pd: ... here.
14074
14075 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
14076
14077 PR target/37072
14078 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14079 is not actually the default on FreeBSD.
14080
14081 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14082
14083 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14084 definition.
14085 (CMPGE_8HI): Likewise.
14086 (CMPGE_4SI): Likewise.
14087 (CMPGE_2DI): Likewise.
14088 (CMPGE_U16QI): Likewise.
14089 (CMPGE_U8HI): Likewise.
14090 (CMPGE_U4SI): Likewise.
14091 (CMPGE_U2DI): Likewise.
14092 (CMPLE_16QI): Likewise.
14093 (CMPLE_8HI): Likewise.
14094 (CMPLE_4SI): Likewise.
14095 (CMPLE_2DI): Likewise.
14096 (CMPLE_U16QI): Likewise.
14097 (CMPLE_U8HI): Likewise.
14098 (CMPLE_U4SI): Likewise.
14099 (CMPLE_U2DI): Likewise.
14100 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14101 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14102 ALTIVEC_BUILTIN_VEC_CMPLE.
14103 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14104 floating-point vector modes.
14105 (vector_nlt<mode>): New define_expand.
14106 (vector_nltu<mode>): Likewise.
14107 (vector_ngt<mode>): Likewise.
14108 (vector_ngtu<mode>): Likewise.
14109
14110 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14111
14112 PR rtl-optimization/66706
14113 * combine.c (make_compound_operation): If an AND of SUBREG of
14114 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14115
14116 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
14117
14118 * tree-pass.h (make_pass_ch_vect): New.
14119 * passes.def: Add pass_ch_vect just before pass_if_conversion.
14120
14121 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14122 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14123 make_pass_ch_vect): New.
14124 (pass_ch): Extend ch_base.
14125
14126 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14127 (ch_base::copy_headers): ...here.
14128
14129 2015-07-02 Richard Biener <rguenther@suse.de>
14130
14131 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14132 * fold-const.c (get_pointer_modulus_and_residue): Remove.
14133 (fold_binary_loc): Implement (T)ptr & CST in terms of
14134 get_pointer_alignment_1.
14135 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14136 Make sure to build the alignment test on a SSA name without
14137 final alignment info valid only after the prologue.
14138
14139 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
14140
14141 * config/cris/cris.md ("epilogue"): Remove condition.
14142 ("prologue"): Ditto.
14143
14144 2015-07-02 Richard Biener <rguenther@suse.de>
14145
14146 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14147 parameter to record a condition that is false.
14148 (record_conditions): When recording an extra NE_EXPR that is
14149 true also record a EQ_EXPR that is false.
14150
14151 2015-07-02 Bin Cheng <bin.cheng@arm.com>
14152
14153 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14154 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14155 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
14156 (set_iv, find_interesting_uses_address, add_candidate_1): New
14157 argument to alloc_iv.
14158 (find_interesting_uses_op, find_interesting_uses_cond): Don't
14159 duplicate struct iv.
14160 (free_loop_data): Don't free struct iv explicitly.
14161 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14162
14163 2015-07-01 DJ Delorie <dj@redhat.com>
14164
14165 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14166 (LIB_SPEC): Add.
14167 (SUPPORTS_DISCRIMINATOR): Define.
14168
14169 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14170
14171 PR bootstrap/66685
14172 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14173 there are no CALLs in the same pattern.
14174
14175 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14176
14177 PR rtl-optimization/61047
14178 * rtlanal.c (get_initial_register_offset): New function.
14179 (rtx_addr_can_trap_p_1): Check offsets of stack references.
14180
14181 2015-07-01 Richard Biener <rguenther@suse.de>
14182
14183 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14184 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14185 ~X CMP C -> X CMP' ~C to ...
14186 * match.pd: ... patterns here.
14187
14188 2015-07-01 Nick Clifton <nickc@redhat.com>
14189
14190 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14191 a 16-bit value into a 20-bit memory slot.
14192
14193 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14194
14195 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14196 "aarch64_tiny", "aarch64_small", "aarch64_large",
14197 "aarch64_little_endian", "aarch64_big_endian".
14198
14199 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14200
14201 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14202 Document "aarch64_small_fpic".
14203
14204 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14205
14206 * configure.ac: Add check for aarch64 assembler -fpic relocation
14207 modifier support.
14208 * configure: Regenerate.
14209 * config.in: Regenerate.
14210 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14211 to -fPIC if not support of -fpic relocation modifier in assembler.
14212
14213 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14214
14215 PR bootstrap/66685
14216 * rtl.c (classify_insn): Handle returns in PARALLELs.
14217
14218 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
14219
14220 PR middle-end/66633
14221 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14222 to true if the function is nested and if not optimizing.
14223 (convert_local_omp_clauses): Initialize need_frame to true if the
14224 function contains nested functions and if not optimizing.
14225
14226 2015-07-01 Richard Biener <rguenther@suse.de>
14227
14228 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14229 (X & Y) ^ Y -> ~X & Y transforms to ...
14230 * match.pd: ... here.
14231
14232 2015-07-01 Richard Biener <rguenther@suse.de>
14233
14234 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14235 of converts to avoid uninteresting noise from the conversion
14236 simplifying patterns.
14237
14238 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
14239
14240 * config/c6x/c6x.c (try_rename_operands): Do not depend on
14241 gcc_assert evaluating its argument for side-effect.
14242
14243 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
14244
14245 PR target/64833
14246 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14247 flag_pic is set.
14248
14249 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14250
14251 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14252 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14253 (hash_scc): Add this_ref_p and ref_p parameters and pass them
14254 to the inner DFS walk.
14255
14256 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14257
14258 * target-insns.def (jump): New targetm instruction pattern.
14259 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14260 instead of gen_jump.
14261 (fix_up_crossing_landing_pad): Likewise.
14262 (add_labels_and_missing_jumps): Likewise.
14263 (fix_crossing_conditional_branches): Likewise.
14264 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14265 (force_nonfallthru_and_redirect): Likewise.
14266 * cse.c (cse_insn): Likewise.
14267 * expmed.c (expand_divmod): Likewise.
14268 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14269 * haifa-sched.c (init_before_recovery): Likewise.
14270 (sched_create_recovery_edges): Likewise.
14271 * ifcvt.c (find_cond_trap): Likewise.
14272 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14273 (expand_float, expand_fix): Likewise.
14274 * stmt.c (emit_jump): Likewise.
14275
14276 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14277
14278 * defaults.h (HAVE_load_multiple, gen_load_multiple)
14279 (HAVE_store_multiple, gen_store_multiple): Delete.
14280 * target-insns.def (load_multiple, store_multiple): New targetm
14281 instruction patterns.
14282 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14283 of HAVE_*/gen_* interface.
14284
14285 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14286
14287 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14288 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14289 (gen_mem_signal_fence): Delete.
14290 * target-insns.def (mem_signal_fence, mem_thread_fence)
14291 (memory_barrier): New targetm instruction patterns.
14292 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14293 interface.
14294 (expand_mem_signal_fence): Likewise.
14295
14296 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14297
14298 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14299 * target-insns.def (epilogue, prologue, sibcall_prologue): New
14300 targetm instruction patterns.
14301 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14302 interface.
14303 * calls.c (expand_call): Likewise.
14304 * cfgrtl.c (cfg_layout_finalize): Likewise.
14305 * df-scan.c (df_get_entry_block_def_set): Likewise.
14306 (df_get_exit_block_use_set): Likewise.
14307 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14308 * final.c (final_start_function): Likewise.
14309 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14310 (reposition_prologue_and_epilogue_notes): Likewise.
14311 * reorg.c (find_end_label): Likewise.
14312 * toplev.c (process_options): Likewise.
14313
14314 2015-06-30 David Malcolm <dmalcolm@redhat.com>
14315
14316 * typed-splay-tree.h: New file.
14317
14318 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
14319
14320 PR debug/66691
14321 * lra-int.h (lra_substitute_pseudo): Add a parameter.
14322 (lra_substitute_pseudo_within_insn): Ditto.
14323 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
14324 of constant.
14325 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
14326 to lra_substitute_pseudo.
14327 * lra-lives.c (process_bb_lives): Add an argument to
14328 lra_substitute_pseudo_within_insn call.
14329 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14330 argument to lra_substitute_pseudo and
14331 lra_substitute_pseudo_within_insn calls.
14332 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14333
14334 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14335
14336 * configure: Regenerated.
14337
14338 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14339
14340 * config.gcc: Support i[34567]86-*-elfiamcu target.
14341 * config/i386/iamcu.h: New.
14342 * config/i386/i386.opt: Add -miamcu.
14343 * doc/invoke.texi: Document -miamcu.
14344 * common/config/i386/i386-common.c (ix86_handle_option): Turn
14345 off x87/MMX/SSE/AVX codegen for -miamcu.
14346 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14347 __iamcu/__iamcu__ for -miamcu.
14348 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14349 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14350 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14351 * config/i386/i386.c (ix86_option_override_internal): Ignore and
14352 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
14353 MCU by default. Default long double to 64-bit for Intel MCU.
14354 Turn on -freg-struct-return for Intel MCU. Issue an error when
14355 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14356 AVX is turned on.
14357 (function_arg_advance_32): Pass value whose size is no larger
14358 than 8 bytes in registers for Intel MCU.
14359 (function_arg_32): Likewise.
14360 (ix86_return_in_memory): Return value whose size is no larger
14361 than 8 bytes in registers for Intel MCU.
14362 (iamcu_alignment): New function.
14363 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14364 true.
14365 (ix86_local_alignment): Don't increase alignment for Intel MCU.
14366 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14367 true.
14368
14369 2015-06-30 Marek Polacek <polacek@redhat.com>
14370
14371 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
14372 both operands of the resulting expression.
14373
14374 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
14375 the final expression with the operand's type and then convert
14376 it to the type of the expression.
14377
14378 2015-06-30 Richard Biener <rguenther@suse.de>
14379
14380 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14381 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14382 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14383 * match.pd: ... to patterns here.
14384
14385 2015-06-30 Richard Biener <rguenther@suse.de>
14386
14387 PR tree-optimization/66704
14388 * tree-vect-data-refs.c (vect_setup_realignment): Use
14389 make_ssa_name for non-SSA name source.
14390
14391 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14392
14393 PR middle-end/66702
14394 * omp-low.c (simd_clone_adjust): Handle addressable linear
14395 or uniform parameters or non-gimple type uniform parameters.
14396
14397 2015-06-30 Richard Biener <rguenther@suse.de>
14398
14399 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14400 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14401 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14402 * match.pd: ... here.
14403 Add a few cases of A - B -> A + (-B) when B "easily" negates.
14404 Move (x & y) | x -> x and friends before
14405 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14406
14407 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14408
14409 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14410 -mfix-ut699 is not specified.
14411 (leon3_load): Rename into...
14412 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
14413 is specified.
14414
14415 2015-06-30 Marek Polacek <polacek@redhat.com>
14416
14417 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14418 * match.pd: ... here.
14419
14420 2015-06-30 Richard Biener <rguenther@suse.de>
14421
14422 * target-insns.def (canonicalize_funcptr_for_compare): Add.
14423 * fold-const.c (build_range_check): Replace uses of
14424 HAVE_canonicalize_funcptr_for_compare.
14425 (fold_widened_comparison): Likewise.
14426 (fold_sign_changed_comparison): Likewise.
14427 * dojump.c: Include "target.h".
14428 (do_compare_and_jump): Replace uses of
14429 HAVE_canonicalize_funcptr_for_compare and
14430 gen_canonicalize_funcptr_for_compare.
14431 * expr.c (do_store_flag): Likewise.
14432
14433 2015-06-30 Tom de Vries <tom@codesourcery.com>
14434
14435 PR tree-optimization/66652
14436 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14437 max_loop_iterations to determine if nit + 1 overflows.
14438
14439 2015-06-30 Richard Biener <rguenther@suse.de>
14440
14441 * tree-vrp.c (register_edge_assert_for_2): Also register
14442 asserts for dominating conversion results.
14443
14444 2015-06-30 Bin Cheng <bin.cheng@arm.com>
14445
14446 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14447 field in struct iv.
14448
14449 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
14450
14451 PR target/66509
14452 * configure.ac: Fix filds and fildq test for 64-bit.
14453 * configure: Regenerated.
14454
14455 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
14456
14457 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14458 (nvptx_reorg): Here. Keep the non-subreg pieces.
14459
14460 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
14461
14462 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14463 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14464
14465 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
14466
14467 * config/i386/i386.md (*jcc_1): Use %! in asm template.
14468 Set attribute "length_nobnd" instead of "length".
14469 (*jcc_2): Ditto.
14470 (jump): Ditto.
14471 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14472
14473 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
14474
14475 * config/nios2/nios2.c (nios2_delegitimize_address): Make
14476 assert less restrictive.
14477
14478 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
14479
14480 PR fortran/66605
14481 * cgraphunit.c (cgraph_node::finalize_function): Do not call
14482 do_warn_unused_parameter.
14483 * function.c (do_warn_unused_parameter): Move from here.
14484 * function.h (do_warn_unused_parameter): Do not declare.
14485
14486 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14487
14488 PR target/65697
14489 * gcc.target/arm/armv-sync-comp-swap.c: New.
14490 * gcc.target/arm/armv-sync-op-acquire.c: New.
14491 * gcc.target/arm/armv-sync-op-full.c: New.
14492 * gcc.target/arm/armv-sync-op-release.c: New.
14493
14494 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14495
14496 PR target/65697
14497 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14498 initial acquire barrier with final barrier.
14499
14500 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14501
14502 PR target/65697
14503 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14504 initial acquire barrier with final barrier.
14505
14506 2015-06-29 Richard Henderson <rth@redhat.com>
14507
14508 * config/i386/constraints.md (Bf): New constraint.
14509 * config/i386/i386-c.c (ix86_target_macros): Define
14510 __GCC_ASM_FLAG_OUTPUTS__.
14511 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14512 as flags outputs.
14513 * doc/extend.texi (FlagOutputOperands): Document them.
14514
14515 2015-06-29 Jiong Wang <jiong.wang@arm.com>
14516
14517 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14518 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14519 unspec name.
14520 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14521 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14522 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14523 (aarch64_symbol_context): Ditto.
14524 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14525 and use new pattern name.
14526 (aarch64_expand_mov_immediate): Ditto.
14527 (aarch64_print_operand): Ditto.
14528 (aarch64_classify_tls_symbol): Ditto.
14529
14530 2015-06-29 Marek Polacek <polacek@redhat.com>
14531 Marc Glisse <marc.glisse@inria.fr>
14532
14533 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14534 * match.pd: ... pattern here.
14535
14536 2015-06-29 Tom de Vries <tom@codesourcery.com>
14537
14538 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14539 function structure.
14540
14541 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14542
14543 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14544 feature description, split out the native option, add a link to
14545 the feature documentation, rearrange and slightly rewrite text.
14546 (Aarch64 options, -mcpu): Likewise.
14547 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
14548 +rdma implies Adv. SIMD.
14549
14550 2015-06-29 Marek Polacek <polacek@redhat.com>
14551
14552 PR c/66322
14553 * function.c (stack_protect_epilogue): Remove a cast to int.
14554 * doc/invoke.texi: Update -Wswitch-bool description.
14555
14556 2015-06-29 Richard Biener <rguenther@suse.de>
14557
14558 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14559 * fold-const.c (fold_binary_loc): Move &A - &B simplification
14560 via ptr_difference_const ...
14561 * match.pd: ... here.
14562 When matching (X ^ Y) == Y also match with swapped operands.
14563
14564 2015-06-29 Richard Biener <rguenther@suse.de>
14565
14566 * lto-streamer.h (LTO_major_version): Bump to 5.
14567
14568 2015-06-29 Richard Biener <rguenther@suse.de>
14569
14570 PR tree-optimization/66677
14571 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14572 STMT_VINFO_VEC_STMT clobbering less strict.
14573
14574 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14575
14576 PR middle-end/64130
14577 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14578 division, compute max and min when value ranges for dividend and
14579 divisor are available.
14580
14581 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
14582 Sandra Loosemore <sandra@codesourcery.com>
14583
14584 * regrename.h (regrename_do_replace): Change to return bool.
14585 * regrename.c (rename_chains): Check return value of
14586 regname_do_replace.
14587 (regrename_do_replace): Re-validate the modified insns and
14588 return bool status.
14589 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14590 Update to match rename_chains changes.
14591 * config/c6x/c6x.c (try_rename_operands): Assert that
14592 regrename_do_replace returns true.
14593
14594 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
14595
14596 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14597 operand 2 here. Use copy_addr_to_reg to copy non-index
14598 register operand 2 to a temporary.
14599 (<mode>_stx): Ditto for operand 1.
14600 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14601 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14602 (ix86_store_bounds): Ditto.
14603
14604 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
14605
14606 * print-tree.c (print_node) [TREE_VEC]: Print its length.
14607
14608 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
14609
14610 * gimple.c (gimple_call_set_fndecl): Remove.
14611 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14612 build1_loc directly instead of build_fold_addr_expr_loc.
14613
14614 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14615
14616 * hash-map.h (hash_map::traverse): Use the definition of the
14617 Key typedef rather than the typedef itself.
14618
14619 2015-06-26 Martin Jambor <mjambor@suse.cz>
14620
14621 PR debug/66301
14622 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14623 NULL instead of calling dump_enabled_p.
14624
14625 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14626
14627 * config/aarch64/aarch64.opt: (override): New.
14628 * doc/invoke.texi (override): Document.
14629 * config/aarch64/aarch64.c (aarch64_flag_desc): New
14630 (aarch64_fusible_pairs): Likewise.
14631 (aarch64_tuning_flags): Likewise.
14632 (aarch64_tuning_override_function): Likewise.
14633 (aarch64_tuning_override_functions): Likewise.
14634 (aarch64_parse_one_option_token): Likewise.
14635 (aarch64_parse_boolean_options): Likewise.
14636 (aarch64_parse_fuse_string): Likewise.
14637 (aarch64_parse_tune_string): Likewise.
14638 (aarch64_parse_one_override_token): Likewise.
14639 (aarch64_parse_override_string): Likewise.
14640 (aarch64_override_options): Parse the -override string if it
14641 is present.
14642
14643 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14644
14645 * config/aarch64/aarch64-protos.h (tune_params): Remove
14646 const from members.
14647 (aarch64_tune_params): Remove const, change to no longer be
14648 a pointer.
14649 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14650 change to no longer be a pointer, initialize to generic_tunings.
14651 (aarch64_min_divisions_for_recip_mul): Change dereference of
14652 aarch64_tune_params to member access.
14653 (aarch64_reassociation_width): Likewise.
14654 (aarch64_rtx_mult_cost): Likewise.
14655 (aarch64_address_cost): Likewise.
14656 (aarch64_branch_cost): Likewise.
14657 (aarch64_rtx_costs): Likewise.
14658 (aarch64_register_move_cost): Likewise.
14659 (aarch64_memory_move_cost): Likewise.
14660 (aarch64_sched_issue_rate): Likewise.
14661 (aarch64_builtin_vectorization_cost): Likewise.
14662 (aarch64_override_options): Take a copy of the selected tuning
14663 struct in to aarch64_tune_params, rather than just setting
14664 a pointer, change dereferences of aarch64_tune_params to member
14665 accesses.
14666 (aarch64_override_options_after_change): Change dereferences of
14667 aarch64_tune_params to member access.
14668 (aarch64_macro_fusion_p): Likewise.
14669 (aarch_macro_fusion_pair_p): Likewise.
14670 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14671
14672 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14673
14674 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14675 (aarch64_tune_flags): Likewise.
14676 (AARCH64_TUNE_FMA_STEERING): Likewise.
14677 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14678 to AARCH64_FL_USE_FMA_STEERING_PASS.
14679 (cortex-a57.cortex-a53): Likewise.
14680 (cortex-a72): Use cortexa72_tunings.
14681 (cortex-a72.cortex-a53): Likewise.
14682 (exynos-m1): Likewise.
14683 * config/aarch64/aarch64-protos.h (tune_params): Add
14684 a field: extra_tuning_flags.
14685 * config/aarch64/aarch64-tuning-flags.def: New.
14686 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14687 (aarch64_extra_tuning_flags): Likewise.
14688 (aarch64_tune_params): Declare here.
14689 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14690 (cortexa53_tunings): Likewise.
14691 (cortexa57_tunings): Likewise.
14692 (thunderx_tunings): Likewise.
14693 (xgene1_tunings): Likewise.
14694 (cortexa72_tunings): New.
14695 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14696 (gate): Check against aarch64_tune_params.
14697 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14698 aarch64-protos.h.
14699
14700 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14701
14702 * config/aarch64/aarch64-fusion-pairs.def: New.
14703 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14704 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14705 aarch64_fusion_pairs.
14706 (AARCH64_FUSE_MOV_MOVK): Likewise.
14707 (AARCH64_FUSE_ADRP_ADD): Likewise.
14708 (AARCH64_FUSE_MOVK_MOVK): Likewise.
14709 (AARCH64_FUSE_ADRP_LDR): Likewise.
14710 (AARCH64_FUSE_CMP_BRANCH): Likewise.
14711
14712 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14713
14714 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14715 SYMBOL_SMALL_GOT_28K.
14716 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14717 relocation modifiers.
14718 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14719 (ldr_got_small_28k_<mode>): New.
14720 (ldr_got_small_28k_sidi): New.
14721 * config/aarch64/iterators.md (got_modifier): New mode iterator.
14722 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14723 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14724 SYMBOL_SMALL_GOT_28K.
14725 (aarch64_rtx_costs): Add costs for new instruction sequences.
14726 (initialize_aarch64_code_model): Initialize new model.
14727 (aarch64_classify_symbol): Recognize new model and new symbol classification.
14728 (aarch64_asm_preferred_eh_data_format): Support new model.
14729 (aarch64_load_symref_appropriately): Generate new instruction
14730 sequences for -fpic.
14731 (TARGET_USE_PSEUDO_PIC_REG): New definition.
14732 (aarch64_use_pseudo_pic_reg): New function.
14733
14734 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14735
14736 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14737 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14738 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14739 (aarch64_expand_mov_immediate): Ditto.
14740 (aarch64_print_operand): Ditto.
14741 (aarch64_classify_symbol): Ditto.
14742
14743 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
14744
14745 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14746
14747 2015-06-26 Bin Cheng <bin.cheng@arm.com>
14748
14749 PR bootstrap/66638
14750 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14751 assertion failed. Remove assertion itself.
14752
14753 2015-06-26 Richard Biener <rguenther@suse.de>
14754
14755 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14756 and -A CMP CST -> A CMP -CST which is redundant with a pattern
14757 in match.pd.
14758 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14759 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14760 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14761 * match.pd: ... patterns here.
14762
14763 2015-06-26 Marek Polacek <polacek@redhat.com>
14764
14765 * match.pd ((x | y) & ~(x & y) -> x ^ y,
14766 (x | y) & (~x ^ y) -> x & y): New patterns.
14767
14768 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14769
14770 * rtl.h (emit): Add an optional boolean parameter to control
14771 whether barriers are emitted.
14772 * emit-rtl.c (emit): Likewise.
14773 * gensupport.c (get_emit_function): Return null rather than "emit".
14774 * genemit.c (gen_emit_seq): Handle the null return value.
14775 Don't emit barriers after the final instruction in the sequence.
14776 * gentarget-def.c (main): Don't emit barriers after the instruction.
14777
14778 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14779
14780 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14781 TARGET_UNIFIED_ASM.
14782
14783 2015-06-26 Richard Biener <rguenther@suse.de>
14784
14785 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14786
14787 2015-06-26 Richard Biener <rguenther@suse.de>
14788
14789 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14790 irrespective on whether the inner operation has a single use
14791 of both off are constant.
14792
14793 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
14794 Segher Boessenkool <segher@kernel.crashing.org>
14795
14796 PR target/66412
14797 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14798 before doing PUT_MODE or PUT_CODE on operands to avoid
14799 in-place RTX modification.
14800
14801 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14802
14803 * gentarget-def.c (def_target_insn): Cast return of strtol to
14804 unsigned int.
14805
14806 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14807
14808 * gimple.h (gimple_call_set_fn): Move inline function.
14809 * gimple.c (gimple_call_set_fn): Relocate here.
14810
14811 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
14812
14813 PR target/65979
14814 PR target/66611
14815 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14816 the replacement insn will work.
14817
14818 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14819
14820 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14821 by default.
14822
14823 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14824
14825 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14826 * cgraph.h: Include ipa-ref.h and plugin-api.h.
14827 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14828 (symtab_node::address_can_be_compared_p): Move function.
14829 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14830 definition here.
14831 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14832 * auto-profile.c: Likewise.
14833 * bb-reorder.c: Likewise.
14834 * builtins.c: Likewise.
14835 * calls.c: Likewise.
14836 * cfgexpand.c: Likewise.
14837 * cgraphbuild.c: Likewise.
14838 * cgraphclones.c: Likewise.
14839 * cgraphunit.c: Likewise.
14840 * combine.c: Likewise.
14841 * coverage.c: Likewise.
14842 * data-streamer-in.c: Likewise.
14843 * data-streamer-out.c: Likewise.
14844 * data-streamer.c: Likewise.
14845 * dbxout.c: Likewise.
14846 * dwarf2out.c: Likewise.
14847 * except.c: Likewise.
14848 * expr.c: Likewise.
14849 * final.c: Likewise.
14850 * fold-const.c: Likewise.
14851 * ggc-page.c: Likewise.
14852 * gimple-fold.c: Likewise.
14853 * gimple-iterator.c: Likewise.
14854 * gimple-pretty-print.c: Likewise.
14855 * gimple-streamer-in.c: Likewise.
14856 * gimple-streamer-out.c: Likewise.
14857 * gimple.c: Likewise.
14858 * gimplify.c: Likewise.
14859 * ipa-chkp.c: Likewise.
14860 * ipa-comdats.c: Likewise.
14861 * ipa-cp.c: Likewise.
14862 * ipa-devirt.c: Likewise.
14863 * ipa-icf-gimple.c: Likewise.
14864 * ipa-icf.c: Likewise.
14865 * ipa-inline-analysis.c: Likewise.
14866 * ipa-inline-transform.c: Likewise.
14867 * ipa-inline.c: Likewise.
14868 * ipa-polymorphic-call.c: Likewise.
14869 * ipa-profile.c: Likewise.
14870 * ipa-prop.c: Likewise.
14871 * ipa-pure-const.c: Likewise.
14872 * ipa-ref.c: Likewise.
14873 * ipa-reference.c: Likewise.
14874 * ipa-split.c: Likewise.
14875 * ipa-utils.c: Likewise.
14876 * ipa-visibility.c: Likewise.
14877 * ipa.c: Likewise.
14878 * langhooks.c: Likewise.
14879 * lto-cgraph.c: Likewise.
14880 * lto-compress.c: Likewise.
14881 * lto-opts.c: Likewise.
14882 * lto-section-in.c: Likewise.
14883 * lto-section-out.c: Likewise.
14884 * lto-streamer-in.c: Likewise.
14885 * lto-streamer-out.c: Likewise.
14886 * lto-streamer.c: Likewise.
14887 * omp-low.c: Likewise.
14888 * opts-global.c: Likewise.
14889 * passes.c: Likewise.
14890 * predict.c: Likewise.
14891 * print-tree.c: Likewise.
14892 * profile.c: Likewise.
14893 * ree.c: Likewise.
14894 * sanopt.c: Likewise.
14895 * stor-layout.c: Likewise.
14896 * symtab.c: Likewise.
14897 * toplev.c: Likewise.
14898 * trans-mem.c: Likewise.
14899 * tree-cfg.c: Likewise.
14900 * tree-chkp.c: Likewise.
14901 * tree-eh.c: Likewise.
14902 * tree-emutls.c: Likewise.
14903 * tree-inline.c: Likewise.
14904 * tree-nested.c: Likewise.
14905 * tree-parloops.c: Likewise.
14906 * tree-pretty-print.c: Likewise.
14907 * tree-profile.c: Likewise.
14908 * tree-sra.c: Likewise.
14909 * tree-ssa-alias.c: Likewise.
14910 * tree-ssa-live.c: Likewise.
14911 * tree-ssa-loop-ivcanon.c: Likewise.
14912 * tree-ssa-loop-ivopts.c: Likewise.
14913 * tree-ssa-pre.c: Likewise.
14914 * tree-ssa-sccvn.c: Likewise.
14915 * tree-ssa-strlen.c: Likewise.
14916 * tree-ssa-structalias.c: Likewise.
14917 * tree-streamer-in.c: Likewise.
14918 * tree-streamer-out.c: Likewise.
14919 * tree-streamer.c: Likewise.
14920 * tree-switch-conversion.c: Likewise.
14921 * tree-tailcall.c: Likewise.
14922 * tree-vect-data-refs.c: Likewise.
14923 * tree-vect-stmts.c: Likewise.
14924 * tree-vectorizer.c: Likewise.
14925 * tree.c: Likewise.
14926 * tsan.c: Likewise.
14927 * ubsan.c: Likewise.
14928 * value-prof.c: Likewise.
14929 * varasm.c: Likewise.
14930 * varpool.c: Likewise.
14931 * config/arm/arm.c: Likewise.
14932 * config/bfin/bfin.c: Likewise.
14933 * config/c6x/c6x.c: Likewise.
14934 * config/cris/cris.c: Likewise.
14935 * config/darwin-c.c: Likewise.
14936 * config/darwin.c: Likewise.
14937 * config/i386/i386.c: Likewise.
14938 * config/i386/winnt.c: Likewise.
14939 * config/microblaze/microblaze.c: Likewise.
14940 * config/mips/mips.c: Likewise.
14941 * config/rs6000/rs6000.c: Likewise.
14942 * config/rx/rx.c: Likewise.
14943 * config/s390/s390.c: Likewise.
14944 * config/tilegx/mul-tables.c: Likewise.
14945
14946 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14947
14948 * config/aarch64/aarch64.c, config/alpha/alpha.c,
14949 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14950 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14951 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14952 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14953 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14954 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14955 config/microblaze/microblaze.c, config/mips/mips.c,
14956 config/mmix/mmix.c, config/mn10300/mn10300.c,
14957 config/moxie/moxie.c, config/msp430/msp430.c,
14958 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14959 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14960 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14961 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14962 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14963 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14964 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14965 target-def.h include.
14966 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
14967
14968 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14969
14970 * Makefile.in (TARGET_DEF): Add target-insns.def.
14971 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14972 (build/gentarget-def.o): New rule.
14973 (genprogrtl): Add target-def.
14974 * target-insns.def, gentarget-def.c: New files.
14975 * target.def: Add targetm.have_* and targetm.gen_* hooks,
14976 based on the contents of target-insns.def.
14977 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14978 (HAVE_return, gen_return): Delete.
14979 * target-def.h: Include insn-target-def.h.
14980 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14981 instead of direct calls. Rely on them to do the appropriate assertions.
14982 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
14983 (convert_jumps_to_returns): Use targetm interface instead of
14984 direct calls.
14985 (thread_prologue_and_epilogue_insns): Likewise.
14986 * reorg.c (find_end_label, dbr_schedule): Likewise.
14987 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14988 * shrink-wrap.c (convert_to_simple_return): Likewise.
14989 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14990
14991 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14992
14993 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14994 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14995 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14996 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14997 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14998 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14999 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15000 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15001 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15002 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15003 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15004 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15005 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15006 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15007 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15008 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15009 includes to end.
15010
15011 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15012
15013 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15014 (unbounded_int_hashmap_traits::key_type): Likewise.
15015 * hash-map.h (hash_map): Get the key type from the traits.
15016 * hash-traits.h (default_hash_traits): By default, inherit from the
15017 template parameter.
15018 * alias.c (alias_set_traits): Delete.
15019 (alias_set_entry_d::children): Use alias_set_hash as the first
15020 template parameter.
15021 (record_alias_subset): Update accordingly.
15022 * except.c (tree_hash_traits): Delete.
15023 (type_to_runtime_map): Use tree_hash as the first template parameter.
15024 (init_eh): Update accordingly.
15025 * genmatch.c (capture_id_map_hasher): Delete.
15026 (cid_map_t): Use nofree_string_hash as first template parameter.
15027 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15028 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15029 Use symbol_compare_hash as the first template parameter in
15030 subdivide_hash_map.
15031 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15032 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15033 template parameter.
15034 * passes.c (pass_registry_hasher): Delete.
15035 (name_to_pass_map): Use nofree_string_hash as the first template
15036 parameter.
15037 (register_pass_name): Update accordingly.
15038 * sanopt.c (sanopt_tree_map_traits): Delete.
15039 (sanopt_tree_triplet_map_traits): Delete.
15040 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15041 template parameter.
15042 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15043 the first template parameter.
15044 * sese.c (rename_map_hasher): Delete.
15045 (rename_map_type): Use tree_ssa_name_hash as the first template
15046 parameter.
15047 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15048 (function_summary::m_map): Use map_hash as the first template
15049 parameter.
15050 (function_summary::release): Update accordingly.
15051 * tree-if-conv.c (phi_args_hash_traits): Delete.
15052 (predicate_scalar_phi): Use tree_operand_hash as the first template
15053 parameter to phi_arg_map.
15054 * tree-inline.h (dependence_hasher): Delete.
15055 (copy_body_data::dependence_map): Use dependence_hash as the first
15056 template parameter.
15057 * tree-inline.c (remap_dependence_clique): Update accordingly.
15058 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15059 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15060 parameter.
15061 (addr_stridxptr): Update accordingly.
15062 * value-prof.c (profile_id_traits): Delete.
15063 (cgraph_node_map): Use profile_id_hash as the first template
15064 parameter.
15065 (init_node_map): Update accordingly.
15066 * config/alpha/alpha.c (string_traits): Delete.
15067 (machine_function::links): Use nofree_string_hash as the first
15068 template parameter.
15069 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15070 * config/m32c/m32c.c (pragma_traits): Delete.
15071 (pragma_htab): Use nofree_string_hash as the first template parameter.
15072 (m32c_note_pragma_address): Update accordingly.
15073 * config/mep/mep.c (pragma_traits): Delete.
15074 (pragma_htab): Use nofree_string_hash as the first template parameter.
15075 (mep_note_pragma_flag): Update accordingly.
15076 * config/mips/mips.c (mips16_flip_traits): Delete.
15077 (mflip_mips16_htab): Use nofree_string_hash as the first template
15078 parameter.
15079 (mflip_mips16_use_mips16_p): Update accordingly.
15080 (local_alias_traits): Delete.
15081 (mips16_local_aliases): Use nofree_string_hash as the first template
15082 parameter.
15083 (mips16_local_alias): Update accordingly.
15084
15085 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15086
15087 * hash-map-traits.h (default_hashmap_traits): Delete.
15088
15089 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15090
15091 * hash-map-traits.h (unbounded_hashmap_traits): New class.
15092 (unbounded_int_hashmap_traits): Likewise.
15093 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15094
15095 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15096
15097 * ipa-icf.h (symbol_compare_hash): New class.
15098 (symbol_compare_hashmap_traits): Use it.
15099 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15100 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15101 (mem_alloc_description::reverse_mem_map_t): Remove redundant
15102 default_hashmap_traits.
15103 * sanopt.c (sanopt_tree_triplet_hash): New class.
15104 (sanopt_tree_triplet_map_traits): Use it.
15105
15106 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15107
15108 * gengtype-parse.c (require_template_declaration): Allow '+' in
15109 template parameters. Consolidate cases.
15110 * hash-traits.h (int_hash): New class.
15111 * alias.c (alias_set_hash): New structure.
15112 (alias_set_traits): Use it.
15113 * symbol-summary.h (function_summary::map_hash): New class.
15114 (function_summary::summary_hashmap_traits): Use it.
15115 * tree-inline.h (dependence_hash): New class.
15116 (dependence_hasher): Use it.
15117 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15118 * value-prof.c (profile_id_hash): New class.
15119 (profile_id_traits): Use it.
15120
15121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15122
15123 * config/mips/mips.c (mips16_flip_traits): Use it.
15124 (local_alias_traits, mips16_local_aliases): Convert from a map of
15125 rtxes to a map of symbol names.
15126 (mips16_local_alias): Update accordingly.
15127
15128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15129
15130 * hash-traits.h (string_hash, nofree_string_hash): New classes.
15131 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15132 * passes.c (pass_registry_hasher): Likewise.
15133 * config/alpha/alpha.c (string_traits): Likewise.
15134 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15135 * config/m32c/m32c.c (pragma_traits): Likewise.
15136 * config/mep/mep.c (pragma_traits): Likewise.
15137
15138 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15139
15140 * tree-hash-traits.h (tree_hash): New class.
15141 * except.c: Include tree-hash-traits.h.
15142 (tree_hash_traits): Use tree_hash.
15143
15144 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15145
15146 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15147 * sese.c: Include tree-hash-traits.h.
15148 (rename_map_hasher): Use tree_ssa_name_hasher.
15149
15150 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15151
15152 * tree-hash-traits.h (tree_decl_hash): New class.
15153 * tree-ssa-strlen.c: Include tree-hash-traits.h.
15154 (stridxlist_hash_traits): Use tree_decl_hash.
15155
15156 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15157
15158 * tree-hash-traits.h: New file.
15159 (tree_operand_hash): New class.
15160 * sanopt.c: Include tree-hash-traits.h.
15161 (sanopt_tree_map_traits): Use tree_operand_hash.
15162 * tree-if-conv.c: Include tree-hash-traits.h.
15163 (phi_args_hash_traits): Use tree_operand_hash.
15164 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15165 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15166
15167 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15168
15169 * hash-map-traits.h: Include hash-traits.h.
15170 (simple_hashmap_traits): New class.
15171 * mem-stats.h (hash_map): Change the default traits to
15172 simple_hashmap_traits<default_hash_traits<Key> >.
15173
15174 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15175
15176 * hash-table.h: Update comments.
15177
15178 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15179
15180 * hash-traits.h (default_hash_traits): New structure.
15181 * hash-set.h (default_hashset_traits): Delete.
15182 (hash_set): Use default_hash_traits<Key> instead of
15183 default_hashset_traits. Delete hash_entry type and use Key directly.
15184 * ipa-devirt.c (pair_traits): Delete.
15185 (default_hash_traits <type_pair>): Override.
15186 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15187 (odr_types_equivalent_p, add_type_duplicate): Likewise.
15188
15189 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15190
15191 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15192
15193 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15194
15195 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15196 (has_is_empty, is_empty_helper): Delete.
15197 (has_mark_deleted, mark_deleted_helper): Delete.
15198 (has_mark_empty, mark_empty_helper): Delete.
15199 (hash_table::is_deleted): Call the Descriptor unconditionally.
15200 (hash_table::is_empty): Likewise.
15201 (hash_table::mark_deleted): Likewise.
15202 (hash_table::mark_empty): Likewise.
15203
15204 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15205
15206 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
15207 redundant typedefs and members.
15208 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
15209 redundant typedefs.
15210 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15211 * ipa-devirt.c (odr_name_hasher): Likewise.
15212 (polymorphic_call_target_hasher): Likewise.
15213 * ira-costs.c (cost_classes_hasher): Likewise.
15214 * statistics.c (stats_counter_hasher): Likewise.
15215 * trans-mem.c (log_entry_hasher): Likewise.
15216 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15217 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15218 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15219 * var-tracking.c (variable_hasher): Likewise.
15220 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15221 Remove redundant typedefs and members.
15222
15223 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15224
15225 * hash-traits.h (ggc_cache_hasher): Rename to...
15226 (ggc_cache_remove): ...this and remove typedefs.
15227 (ggc_cache_ptr_hash): New class.
15228 * hash-table.h: Update commentary.
15229 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15230 rather than ggc_cache_hasher.
15231 (const_wide_int_hasher, reg_attr_hasher): Likewise.
15232 (const_double_hasher, const_fixed_hasher): Likewise.
15233 * function.c (insn_cache_hasher): Likewise.
15234 * trans-mem.c (tm_wrapper_hasher): Likewise.
15235 * tree.h (tree_decl_map_cache_hasher): Likewise.
15236 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15237 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15238 * ubsan.c (tree_type_map_cache_hasher): Likewise.
15239 * varasm.c (tm_clone_hasher): Likewise.
15240 * config/i386/i386.c (dllimport_hasher): Likewise.
15241 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15242 (tree_hasher): Likewise.
15243
15244 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15245
15246 * hash-traits.h (ggc_hasher): Rename to...
15247 (ggc_remover): ...this and remove typedefs.
15248 (ggc_cache_hasher): Update accordingly. Add typedefs.
15249 (ggc_ptr_hash): New class.
15250 * hash-table.h: Update comment.
15251 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15252 ggc_hasher.
15253 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15254 (tree_descriptor_hasher): Likewise.
15255 * cgraph.c (function_version_hasher): Likewise.
15256 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15257 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15258 (dw_loc_list_hasher, addr_hasher): Likewise.
15259 * function.h (used_type_hasher): Likewise.
15260 * function.c (temp_address_hasher): Likewise.
15261 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15262 * libfuncs.h (libfunc_hasher): Likewise.
15263 * lto-streamer.h (decl_state_hasher): Likewise.
15264 * optabs.c (libfunc_decl_hasher): Likewise.
15265 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15266 * varasm.c (section_hasher, object_block_hasher): Likewise.
15267 (const_rtx_desc_hasher): Likewise.
15268 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15269 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15270
15271 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15272
15273 * hash-traits.h (free_ptr_hash): New class.
15274 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15275 rather than typed_free_remove. Remove redudant typedefs.
15276 (external_ref_hasher): Likewise.
15277 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15278 (ehspec_hasher): Likewise.
15279 * ggc-common.c (saving_hasher): Likewise.
15280 * gimplify.c (gimplify_hasher): Likewise.
15281 * haifa-sched.c (delay_i2_hasher): Likewise.
15282 * loop-invariant.c (invariant_expr_hasher): Likewise.
15283 * loop-iv.c (biv_entry_hasher): Likewise.
15284 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15285 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15286 * tree-cfg.c (locus_discrim_hasher): Likewise.
15287 * tree-eh.c (finally_tree_hasher): Likewise.
15288 * tree-into-ssa.c (var_info_hasher): Likewise.
15289 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15290 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15291 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15292 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15293 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15294 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15295 (shared_bitmap_hasher): Likewise.
15296 * tree-ssa-threadupdate.c (redirection_data): Likewise.
15297 * tree-vectorizer.h (peel_info_hasher): Likewise.
15298 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15299 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15300
15301 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15302
15303 * hash-table.h: Update comments.
15304 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15305 (nofree_ptr_hash): New class.
15306 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15307 than typed_noop_remove. Remove redudant typedefs.
15308 * attribs.c (attribute_hasher): Likewise.
15309 * cfg.c (bb_copy_hasher): Likewise.
15310 * cselib.c (cselib_hasher): Likewise.
15311 * dse.c (invariant_group_base_hasher): Likewise.
15312 * dwarf2cfi.c (trace_info_hasher): Likewise.
15313 * dwarf2out.c (macinfo_entry_hasher): Likewise.
15314 (comdat_type_hasher, loc_list_hasher): Likewise.
15315 * gcse.c (pre_ldst_expr_hasher): Likewise.
15316 * genmatch.c (id_base): Likewise.
15317 * genrecog.c (test_pattern_hasher): Likewise.
15318 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15319 * haifa-sched.c (delay_i1_hasher): Likewise.
15320 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15321 * ipa-icf.h (congruence_class_group_hash): Likewise.
15322 * ipa-profile.c (histogram_hash): Likewise.
15323 * ira-color.c (allocno_hard_regs_hasher): Likewise.
15324 * lto-streamer.h (string_slot_hasher): Likewise.
15325 * lto-streamer.c (tree_entry_hasher): Likewise.
15326 * plugin.c (event_hasher): Likewise.
15327 * postreload-gcse.c (expr_hasher): Likewise.
15328 * store-motion.c (st_expr_hasher): Likewise.
15329 * tree-sra.c (uid_decl_hasher): Likewise.
15330 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15331 (ssa_name_var_hash): Likewise.
15332 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15333 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15334 * tree-ssa-pre.c (pre_expr_d): Likewise.
15335 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15336 * vtable-verify.h (registration_hasher): Likewise.
15337 * vtable-verify.c (vtbl_map_hasher): Likewise.
15338 * config/arm/arm.c (libcall_hasher): Likewise.
15339 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15340 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15341 * config/sol2.c (comdat_entry_hasher): Likewise.
15342 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15343 (print_fold_checksum, fold_checksum_tree): Likewise.
15344 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15345 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15346 (fold_build_call_array_loc): Likewise.
15347 * tree-ssa-ccp.c (gimple_htab): Likewise.
15348 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15349 rather than pointer_type.
15350
15351 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15352
15353 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15354 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15355
15356 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15357
15358 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15359 (ggc_hasher::ggc_mx): Likewise.
15360 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
15361 that duplicate ggc_hasher ones.
15362
15363 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15364
15365 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15366 (gt_cleare_cache): Check here for deleted and empty entries.
15367 Replace handle_cache_entry with a call to keep_cache_entry.
15368 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15369 (ggc_cache_hasher::keep_cache_entry): New function.
15370 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15371 (tm_wrapper_hasher::keep_cache_entry): New function.
15372 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15373 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15374 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15375 (type_cache_hasher::keep_cache_entry): New function.
15376 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15377 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15378 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15379 (tree_type_map_cache_hasher::keep_cache_entry): New function.
15380 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15381 (tm_clone_hasher::keep_cache_entry): New function.
15382 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15383 (dllimport_hasher::keep_cache_entry): New function.
15384
15385 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15386
15387 * hash-table.h: Include hash-traits.h.
15388 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15389 (ggc_cache_hasher): Move to...
15390 * hash-traits.h: ...this new file.
15391
15392 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15393
15394 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15395 struct cl_optimization.
15396 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15397 * tree.c (make_node_stat): Allocate cl_optimization struct.
15398 (copy_node_stat): Allocate and copy cl_optimization struct.
15399
15400 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15401
15402 * function.h (struct incoming_args): Move struct.
15403 (pass_by_reference, reference_callee_copied): Remove prototypes.
15404 * emit-rtl.h (struct incoming_args): Relocate struct here.
15405 * calls.h (pass_by_reference, reference_callee_copied): Relocate
15406 prototypes here.
15407 * function.c (pass_by_reference, reference_callee_copied): Move.
15408 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15409 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15410 * ipa-chkp.c: Include calls.h.
15411
15412 2015-06-25 Andrew Macleod <amacleod@redhat.com>
15413
15414 * alias.h (alias_set_type): Move typedef.
15415 * coretypes.h (alias_set_type): Relocate typedef here.
15416 * rtl.h: Don't include alias.h.
15417
15418 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15419
15420 * cgraph.h (cgraph_rtl_info): Move to rtl.h
15421 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15422 and instance.
15423 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15424 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15425 doesn't exist.
15426 * calls.c: Include hard-reg-set.h before rtl.h.
15427 * ira.c: Likewise.
15428
15429 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15430 Vladimir Makarov <vmakarov@redhat.com>
15431
15432 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15433 Add assert.
15434
15435 2015-06-25 Richard Biener <rguenther@suse.de>
15436
15437 * fold-const.c (fold_binary_loc): Move simplification of
15438 (X <<>> C1) & C2 ...
15439 * match.pd: ... here.
15440
15441 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
15442
15443 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15444
15445 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15446
15447 * match.pd: Add patterns for vec_conds between 1 and 0.
15448
15449 2015-06-25 Richard Biener <rguenther@suse.de>
15450
15451 * tree-vect-stmts.c (vectorizable_conversion): Do not set
15452 STMT_VINFO_VEC_STMT for SLP.
15453 (vectorizable_store): Likewise.
15454 (vectorizable_load): Likewise.
15455 (vect_transform_stmt): Catch SLP vectorization clobbering
15456 STMT_VINFO_VEC_STMT.
15457
15458 2015-06-25 Richard Biener <rguenther@suse.de>
15459
15460 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15461 dumping.
15462 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15463 cleanup resulting dead code and parameters.
15464 (vect_transform_slp_perm_load): Adjust.
15465
15466 2015-06-25 Nick Clifton <nickc@redhat.com>
15467
15468 * config/bfin/bfin.c (bfin_expand_prologue): Set
15469 current_function_static_stack_size if flag_stack_usage_info is set.
15470 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15471 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15472 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15473 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15474
15475 2015-06-25 Tom de Vries <tom@codesourcery.com>
15476
15477 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15478 comment that the generated IV is unsigned.
15479
15480 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15481
15482 PR target/29693
15483 * config/arm/arm.c (arm_dbx_register_number): Return
15484 DWARF_FRAME_REGISTERS by default.
15485
15486 2015-06-25 Tom de Vries <tom@codesourcery.com>
15487
15488 * dominance.c (calculate_dominance_info): Fix verify_dominators call
15489 argument. Call verify_dominator when reusing dominator info.
15490
15491 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
15492
15493 PR target/66563
15494 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15495 an additional element of the unspec vector. Modify indices
15496 of operands.
15497 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15498 * config/sh/sh.c (prepare_move_operands): Pass incremented
15499 const_int to gen_GOTaddr2picreg.
15500 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15501
15502 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15503
15504 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15505 Condition on TARGET_FLOAT.
15506
15507 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15508
15509 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15510 and (no)crypto.
15511
15512 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15513
15514 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15515
15516 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15517 aarch64_err_no_fpadvsimd.
15518
15519 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15520 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15521 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15522 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15523 Turn error into assert, test TARGET_FLOAT.
15524 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15525 TARGET_FLOAT.
15526
15527 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
15528
15529 PR debug/66482
15530 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15531
15532 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15533
15534 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15535
15536 2015-06-24 Renlin Li <renlin.li@arm.com>
15537
15538 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15539 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15540
15541 2015-06-24 Richard Biener <rguenther@suse.de>
15542
15543 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15544 (main): Likewise.
15545 (lower_opt_convert): Support lowering of conditional view_convert.
15546 (parser::parse_operation): Likewise.
15547 (parser::parse_for): Likewise.
15548
15549 2015-06-24 Renlin Li <renlin.li@arm.com>
15550
15551 * varasm.c (emit_local): Use unsigned int for align variable.
15552
15553 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15554
15555 PR target/63408
15556 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15557 for negative numbers.
15558
15559 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15560
15561 PR rtl-optimization/66306
15562 * reload.c (find_reloads): Swap the match_dup info for
15563 commutative operands.
15564
15565 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15566
15567 * config/s390/vx-builtins.md
15568 ("vec_scatter_element<mode>_<non_vec_int>")
15569 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15570 attribute with bhfgq.
15571
15572 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15573
15574 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15575
15576 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15577
15578 * config/s390/s390-builtin-types.def: Add flag to indicate the
15579 options under which the function type is needed.
15580 * config/s390/s390-builtins.def: Add flag to indicate the options
15581 under which the builtin is enabled.
15582 * config/s390/s390-builtins.h: Add flags parameter to macro
15583 definitions.
15584 (bflags_for_builtin): New function.
15585 (flags_for_builtin): Renamed to ...
15586 (opflags_for_builtin): ... this.
15587 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15588 flags_for_builtin to bflags_for_builtin and
15589 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15590 * config/s390/s390.c: Add initialization of bflags_builtin and
15591 opflags_builtin arrays.
15592 Remove code for flags_builtin.
15593 (s390_init_builtins): Only create builtin function types if one of
15594 their flags is active.
15595 Only create builtins if all of their flags are active.
15596 (s390_expand_builtin): Rename flags_for_builtin to
15597 opflags_for_builtin.
15598
15599 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15600
15601 * config/s390/vecintrin.h: Remove internal builtins.
15602
15603 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15604
15605 * config/s390/s390.c (s390_secondary_reload): Fix check for
15606 GENERAL_REGS register class.
15607
15608 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15609
15610 * config/s390/s390.c (s390_support_vector_misalignment): Call
15611 default implementation for !TARGET_VX.
15612
15613 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15614
15615 * config/s390/s390.c (s390_legitimate_constant_p): Add
15616 TARGET_VX check.
15617
15618 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15619
15620 * config/s390/s390.c (s390_vector_abi): New variable definition.
15621 (s390_check_type_for_vector_abi): New function.
15622 (TARGET_ASM_FILE_END): New macro definition.
15623 (s390_asm_file_end): New function.
15624 (s390_function_arg): Call s390_check_type_for_vector_abi.
15625 (s390_gimplify_va_arg): Likewise.
15626 * configure: Regenerate.
15627 * configure.ac: Check for .gnu_attribute Binutils feature.
15628
15629 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
15630
15631 PR target/65803
15632 * config/bfin/bfin.c (hwloop_optimize): Initialize
15633 JUMP_LABEL for newly created jump.
15634
15635 2015-06-23 Tristan Gingold <gingold@adacore.com>
15636
15637 * collect-utils.c (collect_wait): Unlink the response file here
15638 instead of...
15639 (do_wait): ...here.
15640 (utils_cleanup): ...and here.
15641
15642 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
15643
15644 * df-scan.c: Don't include target-def.h.
15645 * targhooks.c: Likewise.
15646 * config/arm/arm-c.c: Likewise.
15647 * config/i386/i386-c.c: Likewise.
15648 * config/nds32/nds32-cost.c: Likewise.
15649 * config/nds32/nds32-fp-as-gp.c: Likewise.
15650 * config/nds32/nds32-intrinsic.c: Likewise.
15651 * config/nds32/nds32-isr.c: Likewise.
15652 * config/nds32/nds32-md-auxiliary.c: Likewise.
15653 * config/nds32/nds32-memory-manipulation.c: Likewise.
15654 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15655 * config/nds32/nds32-predicates.c: Likewise.
15656
15657 2015-06-23 Richard Biener <rguenther@suse.de>
15658
15659 PR tree-optimization/66636
15660 * tree-vect-stmts.c (vectorizable_store): Properly compute the
15661 def type for further defs for strided stores.
15662
15663 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
15664
15665 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15666 conditional selects.
15667 (setcc_int<mode>, setcc_float<mode>): Reformat.
15668
15669 2015-06-23 Marek Polacek <polacek@redhat.com>
15670
15671 * match.pd ((x + y) - (x | y) -> x & y,
15672 (x + y) - (x & y) -> x | y): New patterns.
15673
15674 2015-06-23 Ludovic Courtès <ludo@gnu.org>
15675
15676 PR 65711
15677 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15678 '-dynamic-linker' within %{!shared: ...}.
15679
15680 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
15681
15682 PR target/66560
15683 * config/i386/predicates.md (addsub_vm_operator): New predicate.
15684 (addsub_vs_operator): Ditto.
15685 (addsub_vs_parallel): Ditto.
15686 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15687 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15688 Put minus RTX before plus and adjust vec_merge selector.
15689 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15690 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15691 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15692 (addsub vec_merge splitters): New combiner splitters.
15693 (addsub vec_select/vec_concat splitters): Ditto.
15694
15695 2015-06-23 Bin Cheng <bin.cheng@arm.com>
15696
15697 PR tree-optimization/66449
15698 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15699 POINTER_PLUS_EXPR for pointers.
15700
15701 2015-06-23 Alan Modra <amodra@gmail.com>
15702
15703 * rtlanal.c (commutative_operand_precedence): Correct comments.
15704 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15705 declaration. Return an int. Distinguish REG,REG return from
15706 others.
15707 (struct simplify_plus_minus_op_data): Make local to function.
15708 (simplify_plus_minus): Don't set canonicalized if merely sorting
15709 registers. Avoid packing ops if nothing changes. White space fixes.
15710
15711 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
15712
15713 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15714 -fdump-ada-spec is passed but not if -fsyntax-only is.
15715
15716 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
15717
15718 PR bootstrap/63740
15719 * lra-lives.c (process_bb_lives): Check insn copying the same
15720 reload pseudo and don't create a copy for it.
15721
15722 2015-06-22 Tom de Vries <tom@codesourcery.com>
15723
15724 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15725 for cond_stmt.
15726
15727 2015-06-22 Tom de Vries <tom@codesourcery.com>
15728
15729 * builtins.def (DEF_GOMP_BUILTIN): Test
15730 'flag_tree_parallelize_loops > 1' instead of
15731 'flag_tree_parallelize_loops'. Test flag_cilkplus.
15732
15733 2015-06-22 Tom de Vries <tom@codesourcery.com>
15734
15735 * dominance.c (calculate_dominance_info): Verify dominators if
15736 early-out.
15737
15738 2015-06-22 Marek Polacek <polacek@redhat.com>
15739
15740 * match.pd ((x ^ y) ^ (x | y) -> x & y,
15741 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15742 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15743 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15744
15745 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
15746
15747 PR target/65871
15748 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15749 cost of embedded comparison.
15750
15751 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15752
15753 PR target/65914
15754 * config/rs6000/predicates.md (altivec_register_operand): Permit
15755 virtual stack registers.
15756 (vsx_register_operand): Likewise.
15757 (vfloat_operand): Likewise.
15758 (vint_operand): Likewise.
15759 (vlogical_operand): Likewise.
15760
15761 2015-06-22 Richard Biener <rguenther@suse.de>
15762
15763 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15764 and single_scalar_iteration_cost members.
15765 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15766 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15767 (vect_get_single_scalar_iteration_cost): Remove.
15768 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15769 Use LOOP_VINFO_SCALAR_ITERATION_COST.
15770 * tree-vect-loop.c (destroy_loop_vec_info): Free
15771 scalar_cost_vec.
15772 (vect_get_single_scalar_iteration_cost): Compute result into
15773 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15774 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
15775 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15776 (vect_estimate_min_profitable_iters): Use them.
15777
15778 2015-06-22 Christian Bruel <christian.bruel@st.com>
15779
15780 PR target/52144
15781 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15782 (TARGET_INSERT_ATTRIBUTES): Define.
15783 (thumb_flipper): New var.
15784 * config/arm/arm.opt (-mflip-thumb): New switch.
15785
15786 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15787 Martin Liska <mliska@suse.cz>
15788
15789 PR ipa/65908
15790 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15791 construction of arg_types.
15792 (sem_function::sem_function): Likewise.
15793 (sem_function::~sem_function): Remove destruction of arg_types.
15794 (sem_function::compatible_parm_types_p): New function.
15795 (sem_function::equals_wpa): Reorg matching of return values
15796 and parameter types.
15797 (sem_function::equals_private): Reorg mathcing of argument types.
15798 (sem_function::parse_tree_args): Remove.
15799 * ipa-icf.h (init_wpa): Do not call it.
15800 (parse_tree_args): Remove.
15801 (compatible_parm_types_p): Declare.
15802 (result_type): Remove.
15803 (arg_types): Remove.
15804
15805 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15806
15807 PR ipa/66351
15808 * ipa-polymorphic-call.c
15809 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15810 initializing alias oracle; fix formating; set base_alias_set if it
15811 is known.
15812
15813 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
15814
15815 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15816 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15817 (find_inc): Likewise.
15818 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15819 swapping.
15820 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15821 * df-scan.c (df_swap_refs): Remove.
15822 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15823 * dominance.c (link_roots): Use std::swap instead of manually swapping.
15824 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15825 * fold-const.c (fold_relational_const): Likewise.
15826 * genattrtab.c (simplify_test_exp): Likewise.
15827 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15828 gimple_simplify): Likewise.
15829 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15830 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15831 * ipa-devirt.c (add_type_duplicate): Likewise.
15832 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15833 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15834 * lra.c (lra_create_copy): Likewise.
15835 * lto-streamer-out.c (DFS::DFS): Likewise.
15836 * modulo-sched.c (get_sched_window): Likewise.
15837 * omega.c (omega_pretty_print_problem): Likewise.
15838 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15839 * reload1.c (reloads_unique_chain_p): Likewise.
15840 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15841 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15842 use std::swap.
15843 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15844 manually swapping.
15845 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15846 predicate_mem_writes): Likewise.
15847 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15848 * tree-predcom.c (combine_chains): Likewise.
15849 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15850 refs_may_alias_p_1): Likewise.
15851 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15852 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15853 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15854 number_of_iterations_cond): Likewise.
15855 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15856 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15857 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15858 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15859 * tree-vrp.c (extract_range_from_binary_expr_1,
15860 extract_range_from_unary_expr_1): Likewise.
15861
15862 2015-06-20 Marek Polacek <polacek@redhat.com>
15863
15864 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15865
15866 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
15867
15868 PR target/66591
15869 * config/sh/sh.c (prepare_move_operands): Replace subreg
15870 index term with R0 for base and index addressing.
15871
15872 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
15873
15874 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15875 op1 is an fp zero.
15876 (movsf_aarch64): Change condition from register_operand to
15877 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
15878 load1. Change type for alternative 7 to store1.
15879 (movdf_aarch64): Likewise.
15880
15881 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
15882
15883 * config/vax/vax.md: Adjust sign/zero extend patterns to
15884 handle SUBREGs in operands[1].
15885
15886 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15887
15888 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15889 of manually swapping.
15890 (expand_vec_perm_interleave2): Likewise.
15891
15892 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
15893
15894 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15895 reuse bounds created for abnormal ssa names.
15896
15897 2015-06-19 Jakub Jelinek <jakub@redhat.com>
15898
15899 * config/nvptx/nvptx.md (allocate_stack): Rename to...
15900 (allocate_stack_<mode>): ... this, and add :P on both
15901 match_operand and unspec.
15902 (allocate_stack): New expander.
15903
15904 2015-06-19 Christian Bruel <christian.bruel@st.com>
15905
15906 PR target/66541
15907 PR target/52144
15908 * config/arm/arm.c (arm_set_current_function): Handle
15909 explicit default options.
15910
15911 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15912
15913 * config/i386/i386.md (*movsicc_noc_zext): New insn.
15914 (zero-extended cmove with mem peephole2): New pattern.
15915 (cmove with mem peephole2): Merge patterns.
15916
15917 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15918
15919 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15920
15921 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
15922
15923 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15924 * config/mips/mips.md (*madd4<mode>): Ditto.
15925 (*nmadd3<mode>) Ditto.
15926 (*nmadd4<mode>_fastmath): Ditto.
15927 (*nmadd3<mode>_fastmath): Ditto.
15928 (*nmsub4<mode>): Ditto.
15929 (*nmsub3<mode>): Ditto.
15930 (*nmsub4<mode>_fastmath): Ditto.
15931 (*nmsub3<mode>_fastmath): Ditto.
15932
15933 2015-06-18 Michael Matz <matz@suse.de>
15934
15935 PR middle-end/66253
15936 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15937 grouped strided stores.
15938 (vectorizable_load): Don't use the DR from first_stmt in
15939 the non-SLP grouped strided case.
15940
15941 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15942
15943 PR target/66569
15944 * function.c (assign_bounds): Add arguments assign_regs,
15945 assign_special, assign_bt.
15946 (assign_parms): For vararg functions handle bounds in BT
15947 and special slots after incoming vararg bounds.
15948
15949 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15950
15951 PR middle-end/66568
15952 * cfgexpand.c (expand_return): Handle missing bounds.
15953 (expand_gimple_stmt_1): Likewise.
15954 * tree-chkp.c (chkp_expand_zero_bounds): New.
15955 * tree-chkp.h (chkp_expand_zero_bounds): New.
15956
15957 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15958
15959 PR middle-end/66567
15960 * ipa-chkp.c (chkp_maybe_create_clone): Require
15961 functions to be instrumentable.
15962 * tree-chkp.c (chkp_replace_function_pointer): Use
15963 chkp_instrumentable_p instead of attribute check.
15964
15965 2015-06-18 Richard Biener <rguenther@suse.de>
15966
15967 PR tree-optimization/66510
15968 * tree-vect-stmts.c (vectorizable_load): Properly compute the
15969 number of vector loads for SLP permuted loads.
15970 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15971 check the stride for loop vectorization.
15972 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15973 vectorization factor.
15974 (vect_analyze_group_access): If the group size is not a power
15975 of two require a epilogue loop.
15976 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15977 compute and optimizing and alias test pruning after final
15978 vectorization factor computation.
15979 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15980 vector alignment.
15981 (vect_transform_slp_perm_load): Properly compute the original
15982 number of vector load stmts.
15983
15984 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15985
15986 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15987 "unlikely character , in @var" warning.
15988
15989 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
15990
15991 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15992 (ix86_function_arg_advance): Ditto.
15993 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
15994
15995 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15996
15997 * function.h (struct rtl_data): Remove struct and accessor macros.
15998 * emit-rtl.h (struct rtl_data): Relocate to here.
15999 * Makefile.in (GTFILES): Add emit-rtl.h.
16000 * df-core.c: Include emit-rtl.h.
16001 * genattrtab.c: Likewise.
16002 * genconditions.c: Likewise.
16003 * genpreds.c: Likewise.
16004 * genrecog.c: Likewise.
16005 * regcprop.c: Likewise.
16006 * resource.c: Likewise.
16007 * sched-rgn.c: Likewise.
16008 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16009 * config/i386/winnt.c: Likewise.
16010
16011 2015-06-17 Jakub Jelinek <jakub@redhat.com>
16012
16013 PR middle-end/66429
16014 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16015 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
16016 and has_force_vectorize_loops flags from cfun into
16017 child_cfun.
16018 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16019 if simduid is non-NULL.
16020 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16021 * passes.def (pass_simduid_cleanup): Add new pass after loop
16022 passes.
16023 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16024 indirection from htab argument's type.
16025 (shrink_simd_arrays): New function.
16026 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
16027 Don't call adjust_simduid_builtins if there are no loops.
16028 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16029 (pass_simduid_cleanup::execute): New method.
16030 (make_pass_simduid_cleanup): New function.
16031
16032 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
16033
16034 * tree-core.h (tree_target_option): Make opts field a pointer to a
16035 cl_target_option instead of an instance of the struct.
16036 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16037 the structure.
16038 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16039 TARGET_OPTION_NODE.
16040 (copy_node_stat): Allocate and copy struct cl_target_option.
16041
16042 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16043
16044 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16045 Remove conditional exposure of prototypes.
16046 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16047 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
16048 definitions in tree.h with functions.
16049 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16050 anon_aggrname_p.
16051 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16052
16053 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
16054
16055 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16056 (*cmp<mode>_signed): ... this.
16057 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16058 (*cmp<mode>_unsigned): ... this. Remove %b.
16059
16060 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16061
16062 * coretypes.h: Include input.h and as-a.h.
16063 * rtl.h: Include input.h and as-a.h for generator files.
16064 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16065 * vec.c: Don't include diagnostic-core.h.
16066 * alias.c: Do not include input.h, line-map.h or is-a.h.
16067 * asan.c: Likewise.
16068 * attribs.c: Likewise.
16069 * auto-inc-dec.c: Likewise.
16070 * auto-profile.c: Likewise.
16071 * bb-reorder.c: Likewise.
16072 * bt-load.c: Likewise.
16073 * builtins.c: Likewise.
16074 * caller-save.c: Likewise.
16075 * calls.c: Likewise.
16076 * ccmp.c: Likewise.
16077 * cfg.c: Likewise.
16078 * cfganal.c: Likewise.
16079 * cfgbuild.c: Likewise.
16080 * cfgcleanup.c: Likewise.
16081 * cfgexpand.c: Likewise.
16082 * cfghooks.c: Likewise.
16083 * cfgloop.c: Likewise.
16084 * cfgloop.h: Likewise.
16085 * cfgloopanal.c: Likewise.
16086 * cfgloopmanip.c: Likewise.
16087 * cfgrtl.c: Likewise.
16088 * cgraph.c: Likewise.
16089 * cgraphbuild.c: Likewise.
16090 * cgraphclones.c: Likewise.
16091 * cgraphunit.c: Likewise.
16092 * cilk-common.c: Likewise.
16093 * combine-stack-adj.c: Likewise.
16094 * combine.c: Likewise.
16095 * compare-elim.c: Likewise.
16096 * convert.c: Likewise.
16097 * coverage.c: Likewise.
16098 * cppbuiltin.c: Likewise.
16099 * cprop.c: Likewise.
16100 * cse.c: Likewise.
16101 * cselib.c: Likewise.
16102 * data-streamer-in.c: Likewise.
16103 * data-streamer-out.c: Likewise.
16104 * data-streamer.c: Likewise.
16105 * dbxout.c: Likewise.
16106 * dce.c: Likewise.
16107 * ddg.c: Likewise.
16108 * debug.c: Likewise.
16109 * df-core.c: Likewise.
16110 * df-problems.c: Likewise.
16111 * df-scan.c: Likewise.
16112 * df.h: Likewise.
16113 * dfp.c: Likewise.
16114 * diagnostic-core.h: Likewise.
16115 * diagnostic.c: Likewise.
16116 * dojump.c: Likewise.
16117 * dominance.c: Likewise.
16118 * domwalk.c: Likewise.
16119 * double-int.c: Likewise.
16120 * dse.c: Likewise.
16121 * dumpfile.c: Likewise.
16122 * dumpfile.h: Likewise.
16123 * dwarf2asm.c: Likewise.
16124 * dwarf2cfi.c: Likewise.
16125 * dwarf2out.c: Likewise.
16126 * emit-rtl.c: Likewise.
16127 * et-forest.c: Likewise.
16128 * except.c: Likewise.
16129 * explow.c: Likewise.
16130 * expmed.c: Likewise.
16131 * expr.c: Likewise.
16132 * final.c: Likewise.
16133 * fixed-value.c: Likewise.
16134 * fold-const.c: Likewise.
16135 * function.c: Likewise.
16136 * fwprop.c: Likewise.
16137 * gcc-plugin.h: Likewise.
16138 * gcse.c: Likewise.
16139 * generic-match-head.c: Likewise.
16140 * ggc-page.c: Likewise.
16141 * gimple-builder.c: Likewise.
16142 * gimple-expr.c: Likewise.
16143 * gimple-fold.c: Likewise.
16144 * gimple-iterator.c: Likewise.
16145 * gimple-low.c: Likewise.
16146 * gimple-match-head.c: Likewise.
16147 * gimple-pretty-print.c: Likewise.
16148 * gimple-ssa-isolate-paths.c: Likewise.
16149 * gimple-ssa-strength-reduction.c: Likewise.
16150 * gimple-streamer-in.c: Likewise.
16151 * gimple-streamer-out.c: Likewise.
16152 * gimple-streamer.h: Likewise.
16153 * gimple-walk.c: Likewise.
16154 * gimple.c: Likewise.
16155 * gimplify-me.c: Likewise.
16156 * gimplify.c: Likewise.
16157 * godump.c: Likewise.
16158 * graph.c: Likewise.
16159 * graphite-blocking.c: Likewise.
16160 * graphite-dependences.c: Likewise.
16161 * graphite-interchange.c: Likewise.
16162 * graphite-isl-ast-to-gimple.c: Likewise.
16163 * graphite-optimize-isl.c: Likewise.
16164 * graphite-poly.c: Likewise.
16165 * graphite-scop-detection.c: Likewise.
16166 * graphite-sese-to-poly.c: Likewise.
16167 * graphite.c: Likewise.
16168 * haifa-sched.c: Likewise.
16169 * hw-doloop.c: Likewise.
16170 * ifcvt.c: Likewise.
16171 * init-regs.c: Likewise.
16172 * input.c: Likewise.
16173 * internal-fn.c: Likewise.
16174 * ipa-chkp.c: Likewise.
16175 * ipa-comdats.c: Likewise.
16176 * ipa-cp.c: Likewise.
16177 * ipa-devirt.c: Likewise.
16178 * ipa-icf-gimple.c: Likewise.
16179 * ipa-icf.c: Likewise.
16180 * ipa-inline-analysis.c: Likewise.
16181 * ipa-inline-transform.c: Likewise.
16182 * ipa-inline.c: Likewise.
16183 * ipa-polymorphic-call.c: Likewise.
16184 * ipa-profile.c: Likewise.
16185 * ipa-prop.c: Likewise.
16186 * ipa-pure-const.c: Likewise.
16187 * ipa-ref.c: Likewise.
16188 * ipa-reference.c: Likewise.
16189 * ipa-split.c: Likewise.
16190 * ipa-utils.c: Likewise.
16191 * ipa-visibility.c: Likewise.
16192 * ipa.c: Likewise.
16193 * ira-build.c: Likewise.
16194 * ira-color.c: Likewise.
16195 * ira-conflicts.c: Likewise.
16196 * ira-costs.c: Likewise.
16197 * ira-emit.c: Likewise.
16198 * ira-lives.c: Likewise.
16199 * ira.c: Likewise.
16200 * jump.c: Likewise.
16201 * langhooks.c: Likewise.
16202 * lcm.c: Likewise.
16203 * loop-doloop.c: Likewise.
16204 * loop-init.c: Likewise.
16205 * loop-invariant.c: Likewise.
16206 * loop-iv.c: Likewise.
16207 * loop-unroll.c: Likewise.
16208 * lower-subreg.c: Likewise.
16209 * lra-assigns.c: Likewise.
16210 * lra-coalesce.c: Likewise.
16211 * lra-constraints.c: Likewise.
16212 * lra-eliminations.c: Likewise.
16213 * lra-lives.c: Likewise.
16214 * lra-remat.c: Likewise.
16215 * lra-spills.c: Likewise.
16216 * lra.c: Likewise.
16217 * lto-cgraph.c: Likewise.
16218 * lto-compress.c: Likewise.
16219 * lto-opts.c: Likewise.
16220 * lto-section-in.c: Likewise.
16221 * lto-section-out.c: Likewise.
16222 * lto-streamer-in.c: Likewise.
16223 * lto-streamer-out.c: Likewise.
16224 * lto-streamer.c: Likewise.
16225 * mcf.c: Likewise.
16226 * mode-switching.c: Likewise.
16227 * modulo-sched.c: Likewise.
16228 * omega.c: Likewise.
16229 * omp-low.c: Likewise.
16230 * optabs.c: Likewise.
16231 * opts-global.c: Likewise.
16232 * opts.h: Likewise.
16233 * passes.c: Likewise.
16234 * plugin.c: Likewise.
16235 * postreload-gcse.c: Likewise.
16236 * postreload.c: Likewise.
16237 * predict.c: Likewise.
16238 * pretty-print.h: Likewise.
16239 * print-rtl.c: Likewise.
16240 * print-tree.c: Likewise.
16241 * profile.c: Likewise.
16242 * real.c: Likewise.
16243 * realmpfr.c: Likewise.
16244 * recog.c: Likewise.
16245 * ree.c: Likewise.
16246 * reg-stack.c: Likewise.
16247 * regcprop.c: Likewise.
16248 * reginfo.c: Likewise.
16249 * regrename.c: Likewise.
16250 * regstat.c: Likewise.
16251 * reload.c: Likewise.
16252 * reload1.c: Likewise.
16253 * reorg.c: Likewise.
16254 * resource.c: Likewise.
16255 * rtl-chkp.c: Likewise.
16256 * rtl-error.c: Likewise.
16257 * rtlanal.c: Likewise.
16258 * rtlhooks.c: Likewise.
16259 * sanopt.c: Likewise.
16260 * sched-deps.c: Likewise.
16261 * sched-ebb.c: Likewise.
16262 * sched-rgn.c: Likewise.
16263 * sched-vis.c: Likewise.
16264 * sdbout.c: Likewise.
16265 * sel-sched-dump.c: Likewise.
16266 * sel-sched-ir.c: Likewise.
16267 * sel-sched.c: Likewise.
16268 * sese.c: Likewise.
16269 * shrink-wrap.c: Likewise.
16270 * simplify-rtx.c: Likewise.
16271 * stack-ptr-mod.c: Likewise.
16272 * statistics.c: Likewise.
16273 * stmt.c: Likewise.
16274 * stor-layout.c: Likewise.
16275 * store-motion.c: Likewise.
16276 * streamer-hooks.c: Likewise.
16277 * stringpool.c: Likewise.
16278 * symtab.c: Likewise.
16279 * target-globals.c: Likewise.
16280 * targhooks.c: Likewise.
16281 * toplev.c: Likewise.
16282 * tracer.c: Likewise.
16283 * trans-mem.c: Likewise.
16284 * tree-affine.c: Likewise.
16285 * tree-browser.c: Likewise.
16286 * tree-call-cdce.c: Likewise.
16287 * tree-cfg.c: Likewise.
16288 * tree-cfgcleanup.c: Likewise.
16289 * tree-chkp-opt.c: Likewise.
16290 * tree-chkp.c: Likewise.
16291 * tree-chrec.c: Likewise.
16292 * tree-complex.c: Likewise.
16293 * tree-data-ref.c: Likewise.
16294 * tree-dfa.c: Likewise.
16295 * tree-diagnostic.c: Likewise.
16296 * tree-dump.c: Likewise.
16297 * tree-eh.c: Likewise.
16298 * tree-emutls.c: Likewise.
16299 * tree-if-conv.c: Likewise.
16300 * tree-inline.c: Likewise.
16301 * tree-into-ssa.c: Likewise.
16302 * tree-iterator.c: Likewise.
16303 * tree-loop-distribution.c: Likewise.
16304 * tree-nested.c: Likewise.
16305 * tree-nrv.c: Likewise.
16306 * tree-object-size.c: Likewise.
16307 * tree-outof-ssa.c: Likewise.
16308 * tree-parloops.c: Likewise.
16309 * tree-phinodes.c: Likewise.
16310 * tree-predcom.c: Likewise.
16311 * tree-pretty-print.c: Likewise.
16312 * tree-profile.c: Likewise.
16313 * tree-scalar-evolution.c: Likewise.
16314 * tree-sra.c: Likewise.
16315 * tree-ssa-address.c: Likewise.
16316 * tree-ssa-alias.c: Likewise.
16317 * tree-ssa-ccp.c: Likewise.
16318 * tree-ssa-coalesce.c: Likewise.
16319 * tree-ssa-copy.c: Likewise.
16320 * tree-ssa-copyrename.c: Likewise.
16321 * tree-ssa-dce.c: Likewise.
16322 * tree-ssa-dom.c: Likewise.
16323 * tree-ssa-dse.c: Likewise.
16324 * tree-ssa-forwprop.c: Likewise.
16325 * tree-ssa-ifcombine.c: Likewise.
16326 * tree-ssa-live.c: Likewise.
16327 * tree-ssa-loop-ch.c: Likewise.
16328 * tree-ssa-loop-im.c: Likewise.
16329 * tree-ssa-loop-ivcanon.c: Likewise.
16330 * tree-ssa-loop-ivopts.c: Likewise.
16331 * tree-ssa-loop-manip.c: Likewise.
16332 * tree-ssa-loop-niter.c: Likewise.
16333 * tree-ssa-loop-prefetch.c: Likewise.
16334 * tree-ssa-loop-unswitch.c: Likewise.
16335 * tree-ssa-loop.c: Likewise.
16336 * tree-ssa-math-opts.c: Likewise.
16337 * tree-ssa-operands.c: Likewise.
16338 * tree-ssa-phiopt.c: Likewise.
16339 * tree-ssa-phiprop.c: Likewise.
16340 * tree-ssa-pre.c: Likewise.
16341 * tree-ssa-propagate.c: Likewise.
16342 * tree-ssa-reassoc.c: Likewise.
16343 * tree-ssa-sccvn.c: Likewise.
16344 * tree-ssa-scopedtables.c: Likewise.
16345 * tree-ssa-sink.c: Likewise.
16346 * tree-ssa-strlen.c: Likewise.
16347 * tree-ssa-structalias.c: Likewise.
16348 * tree-ssa-tail-merge.c: Likewise.
16349 * tree-ssa-ter.c: Likewise.
16350 * tree-ssa-threadedge.c: Likewise.
16351 * tree-ssa-threadupdate.c: Likewise.
16352 * tree-ssa-uncprop.c: Likewise.
16353 * tree-ssa-uninit.c: Likewise.
16354 * tree-ssa.c: Likewise.
16355 * tree-ssanames.c: Likewise.
16356 * tree-stdarg.c: Likewise.
16357 * tree-streamer-in.c: Likewise.
16358 * tree-streamer-out.c: Likewise.
16359 * tree-streamer.c: Likewise.
16360 * tree-switch-conversion.c: Likewise.
16361 * tree-tailcall.c: Likewise.
16362 * tree-vect-data-refs.c: Likewise.
16363 * tree-vect-generic.c: Likewise.
16364 * tree-vect-loop-manip.c: Likewise.
16365 * tree-vect-loop.c: Likewise.
16366 * tree-vect-patterns.c: Likewise.
16367 * tree-vect-slp.c: Likewise.
16368 * tree-vect-stmts.c: Likewise.
16369 * tree-vectorizer.c: Likewise.
16370 * tree-vrp.c: Likewise.
16371 * tree.c: Likewise.
16372 * tsan.c: Likewise.
16373 * ubsan.c: Likewise.
16374 * valtrack.c: Likewise.
16375 * value-prof.c: Likewise.
16376 * var-tracking.c: Likewise.
16377 * varasm.c: Likewise.
16378 * varpool.c: Likewise.
16379 * vmsdbgout.c: Likewise.
16380 * vtable-verify.c: Likewise.
16381 * web.c: Likewise.
16382 * wide-int.cc: Likewise.
16383 * xcoffout.c: Likewise.
16384 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16385 * common/common-targhooks.c: Likewise.
16386 * config/aarch64/aarch64-builtins.c: Likewise.
16387 * config/aarch64/aarch64.c: Likewise.
16388 * config/alpha/alpha.c: Likewise.
16389 * config/arc/arc.c: Likewise.
16390 * config/arm/aarch-common.c: Likewise.
16391 * config/arm/arm-builtins.c: Likewise.
16392 * config/arm/arm-c.c: Likewise.
16393 * config/arm/arm.c: Likewise.
16394 * config/avr/avr-c.c: Likewise.
16395 * config/avr/avr-log.c: Likewise.
16396 * config/avr/avr.c: Likewise.
16397 * config/bfin/bfin.c: Likewise.
16398 * config/c6x/c6x.c: Likewise.
16399 * config/cr16/cr16.c: Likewise.
16400 * config/cris/cris.c: Likewise.
16401 * config/darwin-c.c: Likewise.
16402 * config/darwin.c: Likewise.
16403 * config/default-c.c: Likewise.
16404 * config/epiphany/epiphany.c: Likewise.
16405 * config/epiphany/mode-switch-use.c: Likewise.
16406 * config/epiphany/resolve-sw-modes.c: Likewise.
16407 * config/fr30/fr30.c: Likewise.
16408 * config/frv/frv.c: Likewise.
16409 * config/ft32/ft32.c: Likewise.
16410 * config/glibc-c.c: Likewise.
16411 * config/h8300/h8300.c: Likewise.
16412 * config/i386/i386-c.c: Likewise.
16413 * config/i386/i386.c: Likewise.
16414 * config/i386/msformat-c.c: Likewise.
16415 * config/i386/winnt-cxx.c: Likewise.
16416 * config/i386/winnt-stubs.c: Likewise.
16417 * config/i386/winnt.c: Likewise.
16418 * config/ia64/ia64-c.c: Likewise.
16419 * config/ia64/ia64.c: Likewise.
16420 * config/iq2000/iq2000.c: Likewise.
16421 * config/lm32/lm32.c: Likewise.
16422 * config/m32c/m32c-pragma.c: Likewise.
16423 * config/m32c/m32c.c: Likewise.
16424 * config/m32r/m32r.c: Likewise.
16425 * config/m68k/m68k.c: Likewise.
16426 * config/mcore/mcore.c: Likewise.
16427 * config/mep/mep-pragma.c: Likewise.
16428 * config/mep/mep.c: Likewise.
16429 * config/microblaze/microblaze-c.c: Likewise.
16430 * config/microblaze/microblaze.c: Likewise.
16431 * config/mips/mips.c: Likewise.
16432 * config/mmix/mmix.c: Likewise.
16433 * config/mn10300/mn10300.c: Likewise.
16434 * config/moxie/moxie.c: Likewise.
16435 * config/msp430/msp430-c.c: Likewise.
16436 * config/msp430/msp430.c: Likewise.
16437 * config/nds32/nds32-cost.c: Likewise.
16438 * config/nds32/nds32-fp-as-gp.c: Likewise.
16439 * config/nds32/nds32-intrinsic.c: Likewise.
16440 * config/nds32/nds32-isr.c: Likewise.
16441 * config/nds32/nds32-md-auxiliary.c: Likewise.
16442 * config/nds32/nds32-memory-manipulation.c: Likewise.
16443 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16444 * config/nds32/nds32-predicates.c: Likewise.
16445 * config/nds32/nds32.c: Likewise.
16446 * config/nios2/nios2.c: Likewise.
16447 * config/nvptx/nvptx.c: Likewise.
16448 * config/pa/pa.c: Likewise.
16449 * config/pdp11/pdp11.c: Likewise.
16450 * config/rl78/rl78-c.c: Likewise.
16451 * config/rl78/rl78.c: Likewise.
16452 * config/rs6000/rs6000-c.c: Likewise.
16453 * config/rs6000/rs6000.c: Likewise.
16454 * config/rx/rx.c: Likewise.
16455 * config/s390/s390-c.c: Likewise.
16456 * config/s390/s390.c: Likewise.
16457 * config/sh/sh-c.c: Likewise.
16458 * config/sh/sh-mem.cc: Likewise.
16459 * config/sh/sh.c: Likewise.
16460 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16461 * config/sh/sh_treg_combine.cc: Likewise.
16462 * config/sol2-c.c: Likewise.
16463 * config/sol2-cxx.c: Likewise.
16464 * config/sol2-stubs.c: Likewise.
16465 * config/sol2.c: Likewise.
16466 * config/sparc/sparc-c.c: Likewise.
16467 * config/sparc/sparc.c: Likewise.
16468 * config/spu/spu-c.c: Likewise.
16469 * config/spu/spu.c: Likewise.
16470 * config/stormy16/stormy16.c: Likewise.
16471 * config/tilegx/mul-tables.c: Likewise.
16472 * config/tilegx/tilegx-c.c: Likewise.
16473 * config/tilegx/tilegx.c: Likewise.
16474 * config/tilepro/mul-tables.c: Likewise.
16475 * config/tilepro/tilepro-c.c: Likewise.
16476 * config/tilepro/tilepro.c: Likewise.
16477 * config/v850/v850-c.c: Likewise.
16478 * config/v850/v850.c: Likewise.
16479 * config/vax/vax.c: Likewise.
16480 * config/visium/visium.c: Likewise.
16481 * config/vms/vms-c.c: Likewise.
16482 * config/vms/vms.c: Likewise.
16483 * config/vxworks.c: Likewise.
16484 * config/winnt-c.c: Likewise.
16485 * config/xtensa/xtensa.c: Likewise.
16486
16487 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
16488
16489 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16490 function.
16491 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16492
16493 2015-06-17 Richard Biener <rguenther@suse.de>
16494
16495 PR tree-optimization/66251
16496 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16497 stmts for SLP strided stores.
16498
16499 Revert
16500 2015-05-22 Richard Biener <rguenther@suse.de>
16501
16502 PR tree-optimization/66251
16503 * tree-vect-stmts.c (vectorizable_conversion): Properly
16504 set STMT_VINFO_VEC_STMT even for the SLP case.
16505
16506 2015-05-26 Michael Matz <matz@suse.de>
16507
16508 PR middle-end/66251
16509 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16510 STMT_VINFO_VEC_STMT, also with SLP.
16511
16512 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
16513
16514 PR target/56766
16515 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16516 (*avx_addsubv4df3_1s): Ditto.
16517 (*sse3_addsubv2df3_1): Ditto.
16518 (*sse3_addsubv2df3_1s): Ditto.
16519 (*avx_addsubv8sf3_1): Ditto.
16520 (*avx_addsubv8sf3_1s): Ditto.
16521 (*sse3_addsubv4sf3_1): Ditto.
16522 (*sse3_addsubv4sf3_1s): Ditto.
16523
16524 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
16525
16526 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16527 (SYSROOT_SUFFIX_SPEC): Update.
16528 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16529 (STARTFILE_PREFIX_SPEC): Update.
16530 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16531 (MULTILIB_REQUIRED): New.
16532 (MULTILIB_OSDIRNAMES): New.
16533 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16534 (MULTILIB_REQUIRED): New.
16535 (MULTILIB_OSDIRNAMES): New.
16536
16537 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
16538
16539 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16540 * config/aarch64/aarch64-options-extensions.def: Update "fP",
16541 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
16542 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16543 (AARCH64_FL_PAN): New.
16544 (AARCH64_FL_LOR): New.
16545 (AARCH64_FL_RDMA): New.
16546 (AARCH64_FL_FOR_ARCH8_1): New.
16547 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16548 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16549
16550 2015-06-16 Martin Liska <mliska@suse.cz>
16551
16552 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16553 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16554 guard.
16555
16556 2015-06-16 Richard Biener <rguenther@suse.de>
16557
16558 * tree-vect-stmts.c (vectorizable_store): Adjust.
16559 (vectorizable_load): Likewise.
16560 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16561 Simplify.
16562 (vect_create_data_ref_ptr): Likewise.
16563 (bump_vector_ptr): Adjust.
16564
16565 2015-06-16 Richard Biener <rguenther@suse.de>
16566
16567 * tree-vect-stmts.c (vectorizable_load): Properly start loads
16568 with the first element if this is grouped loads.
16569
16570 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
16571
16572 * config/arm/arm-protos.h (struct tune_params): Rename
16573 log_op_non_sc to log_op_non_short_circuit, and rename enum
16574 values to expand SC to SHORT_CIRCUIT.
16575 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16576 to LOG_OP_NON_SHORT_CIRCUIT.
16577 (arm_fastmul_tune):Likewise
16578 (arm_strongarm_tune): Likewise.
16579 (arm_xscale_tune): Likewise.
16580 (arm_9e_tune): Likewise.
16581 (arm_marvell_pj4_tune): Likewise.
16582 (arm_v6t2_tune): Likewise.
16583 (arm_cortex_tune): Likewise.
16584 (arm_cortex_a8_tune): Likewise.
16585 (arm_cortex_a7_tune): Likewise.
16586 (arm_cortex_a15_tune): Likewise.
16587 (arm_cortex_a53_tune): Likewise.
16588 (arm_cortex_a57_tune): Likewise.
16589 (arm_xgene1_tune): Likewise.
16590 (arm_cortex_a5_tune): Likewise.
16591 (arm_cortex_a9_tune): Likewise.
16592 (arm_cortex_a12_tune): Likewise.
16593 (arm_v7m_tune): Likewise.
16594 (arm_cortex_m7_tune): Likewise.
16595 (arm_v6m_tune): Likewise.
16596 (arm_fa726te_tune): Likewise.
16597
16598 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
16599
16600 * altivec.md: Delete UNSPEC_VMLADDUHM.
16601 (mulv4si3_p8): New pattern.
16602 (mulv4si3): Use it for POWER8.
16603 (mulv8hi3): Use vmladduhm with zero addend.
16604 (altivec_vmladduhm): Descriptive RTL.
16605
16606 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
16607
16608 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16609 to use neon_move instead of mov_imm.
16610 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16611 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16612
16613 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16614 aarch64_float_const_zero_rtx_p check before TFmode check.
16615 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16616 an fp zero.
16617 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
16618 code and attributes to match. Change condition from register_operand
16619 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
16620 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
16621 to store2.
16622
16623 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
16624
16625 PR debug/66535
16626 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16627 there is no parent.
16628
16629 2015-06-14 Shiva Chen <shiva0217@gmail.com>
16630
16631 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16632 HOST_WIDE_INT parameter.
16633
16634 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
16635
16636 PR ipa/66181
16637 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16638 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16639 TYPE_NO_FORCE_BLK.
16640 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16641
16642 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
16643
16644 * rtl.h (classify_insn): Declare.
16645 * emit-rtl.c (classify_insn): Move to...
16646 * rtl.c: ...here and add generator support.
16647 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16648 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16649 * genemit.c (gen_emit_seq): New function.
16650 (gen_expand, gen_split): Use it.
16651
16652 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
16653
16654 * tree.c (make_vector_stat): Fix comment to state that the
16655 function returns a VECTOR_CST.
16656
16657 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
16658
16659 * gensupport.h (add_implicit_parallel): Declare.
16660 * genrecog.c (add_implicit_parallel): Move to...
16661 * gensupport.c (add_implicit_parallel): ...here.
16662 (process_one_cond_exec): Use it.
16663 * genemit.c (gen_insn): Likewise.
16664
16665 2015-06-13 Iain Sandoe <iain@codesourcery.com>
16666
16667 PR bootstrap/66448
16668 * passes.c (rest_of_decl_compilation): Do not register globals for
16669 early debug if they are declared in built-ins.
16670
16671 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
16672
16673 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16674
16675 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16676
16677 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16678 manually swapping.
16679 (noce_try_cmove_arith): Likewise.
16680 (noce_get_alt_condition): Likewise.
16681
16682 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16683
16684 * common/config/i386/i386-common.c
16685 (OPTION_MASK_ISA_MWAITX_SET): New.
16686 (ix86_handle_option): Handle mwaitx.
16687 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16688 (x86_64-*-*): Likewise.
16689 * config/i386/mwaitxintrin.h: New header.
16690 * config/i386/cpuid.h (bit_MWAITX): Define.
16691 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16692 MWAITX support.
16693 * config/i386/i386.opt (mwaitx): New.
16694 * config/i386/i386-builtin-types.def
16695 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16696 * config/i386/i386-c.c: Define __MWAITX__ if needed.
16697 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16698 (PTA_MWAITX): New.
16699 (ix86_option_override_internal): Handle new option.
16700 (processor_alias_table): Added PTA_MWAITX.
16701 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16702 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16703 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16704 IX86_BUILTIN_MONITORX built-ins.
16705 * config/i386/i386.h (TARGET_MWAITX): New.
16706 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16707 UNSPEC_MONITORX.
16708 (mwaitx): New pattern.
16709 (monitorx_<mode>): New pattern.
16710 * config/i386/x86intrin.h: Include mwaitxintrin.h.
16711 * doc/extend.texi: Document monitorx and mwaitx builtins.
16712 * doc/invoke.texi: Document -mmwaitx option.
16713
16714 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
16715
16716 * emit-rtl.c (need_atomic_barrier_p): Mask model with
16717 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
16718
16719 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16720
16721 * dbxout.c (xcoff_debug_hooks): Provide a function for
16722 register_main_translation_unit hook.
16723
16724 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16725
16726 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16727 variants cases from switch.
16728 (rs6000_post_atomic_barrier): Same.
16729 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16730 (rs6000_expand_atomic_exchange): Same.
16731 (rs6000_expand_atomic_op): Same.
16732 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16733 SYNC variants cases from switch.
16734 (atomic_load): Same.
16735 (atomic_store): Same.
16736
16737 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
16738
16739 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16740 CONST_INT for goto.
16741
16742 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
16743
16744 PR bootstrap/66448
16745 * dwarf2out.c (check_die): Check for common duplicate attributes.
16746 (add_location_or_const_value_attribute): Do not add duplicate
16747 attributes.
16748 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16749 time around.
16750 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16751 (gen_type_die_with_usage): Call check_die.
16752 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16753
16754 2015-06-11 Jason Merrill <jason@redhat.com>
16755
16756 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16757 dies.
16758
16759 2015-06-11 Marek Polacek <polacek@redhat.com>
16760
16761 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16762
16763 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
16764
16765 PR bootstrap/66252
16766 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16767 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16768 (*addx_extend_sp32): Fix pasto.
16769 (*subx_extend): Rename into...
16770 (*subx_extend_sp32): ...this.
16771 (*adddi3_extend_sp32): Add earlyclobber.
16772 (*subdi3_insn_sp32): Likewise.
16773 (*subdi3_extend_sp32): Likewise.
16774 (*and_not_di_sp32): Likewise.
16775 (*or_not_di_sp32): Likewise.
16776 (*xor_not_di_sp32): Likewise.
16777 (*negdi2_sp32): Likewise.
16778 (*one_cmpldi2_sp32): Likewise.
16779
16780 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
16781
16782 * debug.h (struct gcc_debug_hooks): Add a
16783 register_main_translation_unit hook.
16784 * debug.c (do_nothing_debug_hooks): Provide a function for this
16785 new hook.
16786 * dbxout.c (dbx_debug_hooks): Likewise.
16787 * sdbout.c (sdb_debug_hooks): Likewise.
16788 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16789 * dwarf2out.c (main_translation_unit): New global variable.
16790 (dwarf2out_register_main_translation_unit): New function
16791 implementing the new hook.
16792 (dwarf2_debug_hooks): Assign
16793 dwarf2out_register_main_translation_unit to this new hook.
16794 (dwarf2out_init): Associate any main translation unit to
16795 comp_unit_die ().
16796
16797 2015-06-11 Marek Polacek <polacek@redhat.com>
16798
16799 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16800
16801 2015-06-11 Marek Polacek <polacek@redhat.com>
16802
16803 * match.pd: Use single_use throughout.
16804
16805 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16806
16807 * config/arm/arm.c (arm_option_params_internal): When optimising
16808 for speed set max_insns_skipped when arm_restrict_it.
16809
16810 2015-06-11 Christian Bruel <christian.bruel@st.com>
16811
16812 PR target/52144
16813 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16814 macros in ...
16815 (arm_cpu_builtins): New function.
16816 (arm_pragma_target_parse): Call arm_cpu_builtins.
16817 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16818 (arm_register_target_pragmas): Likewise.
16819 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16820 Call arm_register_target_pragmas.
16821 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16822 (arm_pragma_target_parse): Likewise.
16823
16824 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
16825
16826 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16827 of the second operand.
16828
16829 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
16830
16831 PR target/66473
16832 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16833 to prepare mask operand for AVX512 modes.
16834
16835 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16836
16837 PR target/66474
16838 * doc/md.texi (Machine Constraints): Document that on the PowerPC
16839 if you use a constraint that targets a VSX register, you must use
16840 %x<n> in the template.
16841
16842 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
16843
16844 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16845 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16846 (define_insn "trap"): New definition.
16847
16848 2015-06-10 Richard Biener <rguenther@suse.de>
16849
16850 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16851 out from ...
16852 (vect_supported_load_permutation_p): ... here. Handle
16853 supportable permutations in reductions.
16854 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16855 for vectorizing strided group loads.
16856
16857 2015-06-10 Jakub Jelinek <jakub@redhat.com>
16858
16859 PR target/66470
16860 * config/i386/i386.c (ix86_split_long_move): For collisions
16861 involving direct tls segment refs, move the UNSPEC_TP possibly
16862 wrapped in ZERO_EXTEND out of the address for lea, to each of
16863 the memory loads.
16864
16865 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16866
16867 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16868 dmb sy. Adjust tabs.
16869
16870 2015-06-10 Tom de Vries <tom@codesourcery.com>
16871
16872 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16873
16874 2015-06-10 Martin Liska <mliska@suse.cz>
16875
16876 PR bootstrap/66471
16877 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16878 all enum values in mem_alloc_origin.
16879 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16880 name.
16881 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16882 * bitmap.c (bitmap_register): Likewise.
16883 (dump_bitmap_statistics): Likewise.
16884 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16885 (ggc_record_overhead): Likewise.
16886 * hash-map.h: Likewise.
16887 * hash-set.h: Likewise.
16888 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16889 * hash-table.h: Likewise.
16890 * vec.c (vec_prefix::register_overhead): Likewise.
16891 (vec_prefix::release_overhead): Likewise.
16892 (dump_vec_loc_statistics): Likewise.
16893
16894 2015-06-09 Christian Bruel <christian.bruel@st.com>
16895
16896 PR target/52144
16897 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16898 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16899 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16900 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16901 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16902 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16903 (arm_valid_target_attribute_p): Likewise.
16904 (arm_set_current_function, arm_can_inline_p): Likewise.
16905 (arm_valid_target_attribute_rec): Likewise.
16906 (arm_previous_fndecl): New variable.
16907 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16908 (TARGET_CAN_INLINE_P): Define.
16909 (arm_asm_trampoline_template): Emit mode.
16910 (arm_file_start): Don't set unified syntax.
16911 (arm_declare_function_name): Set unified syntax and mode.
16912 (arm_option_override): Init target_option_default_node.
16913 and target_option_current_node.
16914 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16915 (*call_symbol): Likewise.
16916 * doc/extend.texi: Document ARM/Thumb target attribute.
16917 * doc/invoke.texi: Likewise.
16918
16919 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16920
16921 Revert:
16922 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16923 PR rtl-optimization/64164
16924 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16925 * tree-ssa-copyrename.c: Removed.
16926 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16927 -ftree-coalesce-vars.
16928 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16929 * common.opt (ftree-copyrename): Ignore.
16930 (ftree-coalesce-inlined-vars): Likewise.
16931 * doc/invoke.texi: Remove the ignored options above.
16932 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16933 * tree-ssa-coalesce.h: ... here.
16934 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16935 headers required by it.
16936 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16937 across variables when flag_tree_coalesce_vars. Check register
16938 use and promoted modes to allow coalescing. Moved to
16939 tree-ssa-coalesce.c.
16940 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16941 with its member functions to tree-ssa-coalesce.c.
16942 (var_map_base_init): Likewise. Renamed to
16943 compute_samebase_partition_bases.
16944 (partition_view_normal): Drop want_bases parameter.
16945 (partition_view_bitmap): Likewise.
16946 * tree-ssa-live.h: Adjust declarations.
16947 * tree-ssa-coalesce.c: Include explow.h.
16948 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16949 default defs at the entry point.
16950 (dump_part_var_map): New.
16951 (compute_optimized_partition_bases): New, called by...
16952 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16953 of compute_samebase_partition_bases. Adjust.
16954 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16955 * cfgexpand.c (leader_merge): New.
16956 (get_rtl_for_parm_ssa_default_def): New.
16957 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16958 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16959 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16960 redundant MEM attr setting.
16961 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16962 from...
16963 (expand_one_stack_var): ... this. New wrapper to check and
16964 skip already expanded SSA partitions.
16965 (record_alignment_for_reg_var): New, factored out of...
16966 (expand_one_var): ... this.
16967 (expand_one_ssa_partition): New.
16968 (adjust_one_expanded_partition_var): New.
16969 (expand_one_register_var): Check and skip already expanded SSA
16970 partitions.
16971 (expand_used_vars): Don't create DECLs for anonymous SSA
16972 names. Expand all SSA partitions, then adjust all SSA names.
16973 (pass::execute): Replace the loops that set
16974 SA.partition_to_pseudo from partition leaders and cleared
16975 DECL_RTL for multi-location variables, and that which used to
16976 rename vars and set attrs, with one that clears DECL_RTL and
16977 checks that PARMs and RESULTs default_defs match DECL_RTL.
16978 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16979 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16980 * explow.c (promote_ssa_mode): New.
16981 * explow.h (promote_ssa_mode): Declare.
16982 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16983 * function.c: Include cfgexpand.h.
16984 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16985 (use_register_for_parm_decl): Wrapper for the above to
16986 special-case the result_ptr.
16987 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16988 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16989 multiple locations.
16990 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16991 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16992 (assign_parm_setup_block): Prefer SSA-assigned location.
16993 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16994 if stack_parm is NULL.
16995 (assign_parm_setup_stack): Prefer SSA-assigned location.
16996 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16997 rtl before testing for pointer bounds. Special-case result_ptr.
16998 (expand_function_start): Maybe reset DECL_RTL of result.
16999 Prefer SSA-assigned location for result and static chain.
17000 Factor out DECL_RESULT and SET_DECL_RTL.
17001 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17002 anonymous SSA names. Use promote_ssa_mode.
17003 (get_temp_reg): Likewise.
17004 (remove_ssa_form): Adjust.
17005 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17006 and get its reg_usage for reg invalidation.
17007 (compute_bb_dataflow): Pass it insn.
17008 (emit_notes_in_bb): Likewise.
17009 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17010 fail assert on conversion between unsigned types.
17011
17012 2015-06-09 Tom de Vries <tom@codesourcery.com>
17013
17014 PR tree-optimization/65460
17015 * omp-low.c (expand_omp_target): Set parallelized_function on
17016 cgraph_node for child_fn.
17017
17018 2015-06-09 Tom de Vries <tom@codesourcery.com>
17019
17020 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17021 parallelized_function before add_new_function.
17022
17023 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
17024
17025 * gcc-plugin.h: Move decls to plugin.h and include it.
17026 * plugin.h: Relocate decls from gcc-plugin.h
17027 * ggc-page.c: Include required header files.
17028 * passes.c: Likewise.
17029 * cgraphunit.c: Likewise.
17030
17031 2015-06-09 Tom de Vries <tom@codesourcery.com>
17032
17033 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17034
17035 2015-06-09 Jason Merrill <jason@redhat.com>
17036
17037 PR bootstrap/66448
17038 * toplev.c (check_global_declaration): Don't warn about a clone.
17039
17040 2015-06-09 Marek Polacek <polacek@redhat.com>
17041
17042 PR tree-optimization/66299
17043 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17044 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17045 patterns.
17046
17047 2015-06-09 Richard Biener <rguenther@suse.de>
17048
17049 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17050 (vect_analyze_slp_instance): Instead do not falsely drop
17051 load permutations.
17052
17053 2015-06-09 Richard Biener <rguenther@suse.de>
17054
17055 PR middle-end/66423
17056 * match.pd: Handle A % (unsigned)(1 << B).
17057
17058 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
17059
17060 * varasm.c (output_object_block_htab): Remove.
17061 (output_object_block_compare): New.
17062 (output_object_blocks): Sort named object_blocks before outputting
17063 them.
17064
17065 2015-06-09 Richard Biener <rguenther@suse.de>
17066
17067 PR tree-optimization/66419
17068 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17069 consider GROUP_GAP when detecting a perfect subchain.
17070
17071 2015-06-09 Nick Clifton <nickc@redhat.com>
17072
17073 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17074 place read only data in the .frodata section.
17075
17076 2015-06-09 Shiva Chen <shiva0217@gmail.com>
17077
17078 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17079 (atomic_store<mode>): Likewise.
17080
17081 2015-06-09 Richard Biener <rguenther@suse.de>
17082
17083 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17084
17085 2015-06-09 Richard Biener <rguenther@suse.de>
17086
17087 PR middle-end/66413
17088 * tree-inline.c (insert_init_debug_bind): Unshare value.
17089
17090 2015-06-09 Richard Biener <rguenther@suse.de>
17091
17092 PR tree-optimization/66396
17093 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17094 Rename virtual operands.
17095
17096 2015-06-09 Tom de Vries <tom@codesourcery.com>
17097
17098 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17099 always return false.
17100
17101 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17102
17103 PR rtl-optimization/64164
17104 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17105 * tree-ssa-copyrename.c: Removed.
17106 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17107 -ftree-coalesce-vars.
17108 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17109 * common.opt (ftree-copyrename): Ignore.
17110 (ftree-coalesce-inlined-vars): Likewise.
17111 * doc/invoke.texi: Remove the ignored options above.
17112 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17113 * tree-ssa-coalesce.h: ... here.
17114 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17115 headers required by it.
17116 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17117 across variables when flag_tree_coalesce_vars. Check register
17118 use and promoted modes to allow coalescing. Moved to
17119 tree-ssa-coalesce.c.
17120 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17121 with its member functions to tree-ssa-coalesce.c.
17122 (var_map_base_init): Likewise. Renamed to
17123 compute_samebase_partition_bases.
17124 (partition_view_normal): Drop want_bases parameter.
17125 (partition_view_bitmap): Likewise.
17126 * tree-ssa-live.h: Adjust declarations.
17127 * tree-ssa-coalesce.c: Include explow.h.
17128 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17129 default defs at the entry point.
17130 (dump_part_var_map): New.
17131 (compute_optimized_partition_bases): New, called by...
17132 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17133 of compute_samebase_partition_bases. Adjust.
17134 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17135 * cfgexpand.c (leader_merge): New.
17136 (get_rtl_for_parm_ssa_default_def): New.
17137 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17138 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17139 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17140 redundant MEM attr setting.
17141 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17142 from...
17143 (expand_one_stack_var): ... this. New wrapper to check and
17144 skip already expanded SSA partitions.
17145 (record_alignment_for_reg_var): New, factored out of...
17146 (expand_one_var): ... this.
17147 (expand_one_ssa_partition): New.
17148 (adjust_one_expanded_partition_var): New.
17149 (expand_one_register_var): Check and skip already expanded SSA
17150 partitions.
17151 (expand_used_vars): Don't create DECLs for anonymous SSA
17152 names. Expand all SSA partitions, then adjust all SSA names.
17153 (pass::execute): Replace the loops that set
17154 SA.partition_to_pseudo from partition leaders and cleared
17155 DECL_RTL for multi-location variables, and that which used to
17156 rename vars and set attrs, with one that clears DECL_RTL and
17157 checks that PARMs and RESULTs default_defs match DECL_RTL.
17158 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17159 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17160 * explow.c (promote_ssa_mode): New.
17161 * explow.h (promote_ssa_mode): Declare.
17162 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17163 * function.c: Include cfgexpand.h.
17164 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17165 (use_register_for_parm_decl): Wrapper for the above to
17166 special-case the result_ptr.
17167 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17168 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17169 multiple locations.
17170 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17171 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17172 (assign_parm_setup_block): Prefer SSA-assigned location.
17173 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17174 if stack_parm is NULL.
17175 (assign_parm_setup_stack): Prefer SSA-assigned location.
17176 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17177 rtl before testing for pointer bounds. Special-case result_ptr.
17178 (expand_function_start): Maybe reset DECL_RTL of result.
17179 Prefer SSA-assigned location for result and static chain.
17180 Factor out DECL_RESULT and SET_DECL_RTL.
17181 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17182 anonymous SSA names. Use promote_ssa_mode.
17183 (get_temp_reg): Likewise.
17184 (remove_ssa_form): Adjust.
17185 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17186 and get its reg_usage for reg invalidation.
17187 (compute_bb_dataflow): Pass it insn.
17188 (emit_notes_in_bb): Likewise.
17189 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17190 fail assert on conversion between unsigned types.
17191
17192 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17193
17194 PR debug/58315
17195 * tree-inline.c (reset_debug_binding): New.
17196 (reset_debug_bindings): Likewise.
17197 (expand_call_inline): Call it.
17198
17199 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17200
17201 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17202 TYPE_STRING_FLAG.
17203
17204 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17205
17206 * lto-streamer-out.c (lto_output_location): Stream
17207 reserved locations correctly.
17208 * lto-streamer-in.c (lto_output_location): Likewise.
17209
17210 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
17211
17212 * coretypes.h: Include hash-table.h and hash-set.h for host files.
17213 * ggc.h: Don't include statistics.h>
17214 * hash-map.h: Remove all includes.
17215 * hash-set.h: Likewise.
17216 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17217 the include list. Remove <new>.
17218 * inchash.h: Remove all includes.
17219 * mem-stats.h: Likewise.
17220 * vec.h: No special processing for generators or ggc.
17221 * alias.c : Adjust include files.
17222 * alloc-pool.c : Likewise.
17223 * alloc-pool.h : Likewise.
17224 * asan.c : Likewise.
17225 * attribs.c : Likewise.
17226 * auto-inc-dec.c : Likewise.
17227 * auto-profile.c : Likewise.
17228 * bb-reorder.c : Likewise.
17229 * bitmap.c : Likewise.
17230 * bitmap.h : Likewise.
17231 * bt-load.c : Likewise.
17232 * builtins.c : Likewise.
17233 * caller-save.c : Likewise.
17234 * calls.c : Likewise.
17235 * ccmp.c : Likewise.
17236 * cfg.c : Likewise.
17237 * cfganal.c : Likewise.
17238 * cfgbuild.c : Likewise.
17239 * cfgcleanup.c : Likewise.
17240 * cfgexpand.c : Likewise.
17241 * cfghooks.c : Likewise.
17242 * cfgloop.c : Likewise.
17243 * cfgloop.h : Likewise.
17244 * cfgloopanal.c : Likewise.
17245 * cfgloopmanip.c : Likewise.
17246 * cfgrtl.c : Likewise.
17247 * cgraph.c : Likewise.
17248 * cgraphbuild.c : Likewise.
17249 * cgraphclones.c : Likewise.
17250 * cgraphunit.c : Likewise.
17251 * cilk-common.c : Likewise.
17252 * combine-stack-adj.c : Likewise.
17253 * combine.c : Likewise.
17254 * compare-elim.c : Likewise.
17255 * context.c : Likewise.
17256 * convert.c : Likewise.
17257 * coverage.c : Likewise.
17258 * cppbuiltin.c : Likewise.
17259 * cprop.c : Likewise.
17260 * cse.c : Likewise.
17261 * cselib.c : Likewise.
17262 * data-streamer-in.c : Likewise.
17263 * data-streamer-out.c : Likewise.
17264 * data-streamer.c : Likewise.
17265 * data-streamer.h : Likewise.
17266 * dbxout.c : Likewise.
17267 * dce.c : Likewise.
17268 * ddg.c : Likewise.
17269 * debug.c : Likewise.
17270 * df-core.c : Likewise.
17271 * df-problems.c : Likewise.
17272 * df-scan.c : Likewise.
17273 * df.h : Likewise.
17274 * dfp.c : Likewise.
17275 * dojump.c : Likewise.
17276 * dominance.c : Likewise.
17277 * domwalk.c : Likewise.
17278 * double-int.c : Likewise.
17279 * dse.c : Likewise.
17280 * dumpfile.c : Likewise.
17281 * dwarf2asm.c : Likewise.
17282 * dwarf2cfi.c : Likewise.
17283 * dwarf2out.c : Likewise.
17284 * emit-rtl.c : Likewise.
17285 * et-forest.c : Likewise.
17286 * except.c : Likewise.
17287 * except.h : Likewise.
17288 * explow.c : Likewise.
17289 * expmed.c : Likewise.
17290 * expr.c : Likewise.
17291 * final.c : Likewise.
17292 * fixed-value.c : Likewise.
17293 * fold-const.c : Likewise.
17294 * function.c : Likewise.
17295 * fwprop.c : Likewise.
17296 * gcc-plugin.h : Likewise.
17297 * gcc.c : Likewise.
17298 * gcse-common.c : Likewise.
17299 * gcse.c : Likewise.
17300 * genattrtab.c : Likewise.
17301 * genautomata.c : Likewise.
17302 * genconditions.c : Likewise.
17303 * genemit.c : Likewise.
17304 * generic-match-head.c : Likewise.
17305 * genextract.c : Likewise.
17306 * gengtype-state.c : Likewise.
17307 * gengtype.c : Likewise.
17308 * genhooks.c : Likewise.
17309 * genmatch.c : Likewise.
17310 * genmodes.c : Likewise.
17311 * genrecog.c : Likewise.
17312 * gensupport.c : Likewise.
17313 * ggc-common.c : Likewise.
17314 * ggc-internal.h : Likewise.
17315 * ggc-none.c : Likewise.
17316 * ggc-page.c : Likewise.
17317 * gimple-builder.c : Likewise.
17318 * gimple-expr.c : Likewise.
17319 * gimple-fold.c : Likewise.
17320 * gimple-iterator.c : Likewise.
17321 * gimple-low.c : Likewise.
17322 * gimple-match-head.c : Likewise.
17323 * gimple-pretty-print.c : Likewise.
17324 * gimple-ssa-isolate-paths.c : Likewise.
17325 * gimple-ssa-strength-reduction.c : Likewise.
17326 * gimple-ssa.h : Likewise.
17327 * gimple-streamer-in.c : Likewise.
17328 * gimple-streamer-out.c : Likewise.
17329 * gimple-streamer.h : Likewise.
17330 * gimple-walk.c : Likewise.
17331 * gimple.c : Likewise.
17332 * gimplify-me.c : Likewise.
17333 * gimplify.c : Likewise.
17334 * godump.c : Likewise.
17335 * graph.c : Likewise.
17336 * graphds.c : Likewise.
17337 * graphite-blocking.c : Likewise.
17338 * graphite-dependences.c : Likewise.
17339 * graphite-interchange.c : Likewise.
17340 * graphite-isl-ast-to-gimple.c : Likewise.
17341 * graphite-optimize-isl.c : Likewise.
17342 * graphite-poly.c : Likewise.
17343 * graphite-scop-detection.c : Likewise.
17344 * graphite-sese-to-poly.c : Likewise.
17345 * graphite.c : Likewise.
17346 * haifa-sched.c : Likewise.
17347 * hard-reg-set.h : Likewise.
17348 * hw-doloop.c : Likewise.
17349 * ifcvt.c : Likewise.
17350 * inchash.c : Likewise.
17351 * incpath.c : Likewise.
17352 * init-regs.c : Likewise.
17353 * input.c : Likewise.
17354 * internal-fn.c : Likewise.
17355 * ipa-chkp.c : Likewise.
17356 * ipa-comdats.c : Likewise.
17357 * ipa-cp.c : Likewise.
17358 * ipa-devirt.c : Likewise.
17359 * ipa-icf-gimple.c : Likewise.
17360 * ipa-icf.c : Likewise.
17361 * ipa-inline-analysis.c : Likewise.
17362 * ipa-inline-transform.c : Likewise.
17363 * ipa-inline.c : Likewise.
17364 * ipa-polymorphic-call.c : Likewise.
17365 * ipa-profile.c : Likewise.
17366 * ipa-prop.c : Likewise.
17367 * ipa-pure-const.c : Likewise.
17368 * ipa-ref.c : Likewise.
17369 * ipa-reference.c : Likewise.
17370 * ipa-split.c : Likewise.
17371 * ipa-utils.c : Likewise.
17372 * ipa-visibility.c : Likewise.
17373 * ipa.c : Likewise.
17374 * ira-build.c : Likewise.
17375 * ira-color.c : Likewise.
17376 * ira-conflicts.c : Likewise.
17377 * ira-costs.c : Likewise.
17378 * ira-emit.c : Likewise.
17379 * ira-lives.c : Likewise.
17380 * ira.c : Likewise.
17381 * jump.c : Likewise.
17382 * langhooks.c : Likewise.
17383 * lcm.c : Likewise.
17384 * libfuncs.h : Likewise.
17385 * lists.c : Likewise.
17386 * loop-doloop.c : Likewise.
17387 * loop-init.c : Likewise.
17388 * loop-invariant.c : Likewise.
17389 * loop-iv.c : Likewise.
17390 * loop-unroll.c : Likewise.
17391 * lower-subreg.c : Likewise.
17392 * lra-assigns.c : Likewise.
17393 * lra-coalesce.c : Likewise.
17394 * lra-constraints.c : Likewise.
17395 * lra-eliminations.c : Likewise.
17396 * lra-lives.c : Likewise.
17397 * lra-remat.c : Likewise.
17398 * lra-spills.c : Likewise.
17399 * lra.c : Likewise.
17400 * lto-cgraph.c : Likewise.
17401 * lto-compress.c : Likewise.
17402 * lto-opts.c : Likewise.
17403 * lto-section-in.c : Likewise.
17404 * lto-section-out.c : Likewise.
17405 * lto-streamer-in.c : Likewise.
17406 * lto-streamer-out.c : Likewise.
17407 * lto-streamer.c : Likewise.
17408 * lto-streamer.h : Likewise.
17409 * mcf.c : Likewise.
17410 * mode-switching.c : Likewise.
17411 * modulo-sched.c : Likewise.
17412 * omega.c : Likewise.
17413 * omp-low.c : Likewise.
17414 * optabs.c : Likewise.
17415 * opts-global.c : Likewise.
17416 * opts.h : Likewise.
17417 * passes.c : Likewise.
17418 * plugin.c : Likewise.
17419 * postreload-gcse.c : Likewise.
17420 * postreload.c : Likewise.
17421 * predict.c : Likewise.
17422 * print-rtl.c : Likewise.
17423 * print-tree.c : Likewise.
17424 * profile.c : Likewise.
17425 * read-md.c : Likewise.
17426 * read-md.h : Likewise.
17427 * read-rtl.c : Likewise.
17428 * real.c : Likewise.
17429 * realmpfr.c : Likewise.
17430 * recog.c : Likewise.
17431 * ree.c : Likewise.
17432 * reg-stack.c : Likewise.
17433 * regcprop.c : Likewise.
17434 * reginfo.c : Likewise.
17435 * regrename.c : Likewise.
17436 * regstat.c : Likewise.
17437 * reload.c : Likewise.
17438 * reload1.c : Likewise.
17439 * reorg.c : Likewise.
17440 * resource.c : Likewise.
17441 * rtl-chkp.c : Likewise.
17442 * rtl.c : Likewise.
17443 * rtl.h : Likewise.
17444 * rtlanal.c : Likewise.
17445 * rtlhash.c : Likewise.
17446 * rtlhash.h : Likewise.
17447 * rtlhooks.c : Likewise.
17448 * sanopt.c : Likewise.
17449 * sched-deps.c : Likewise.
17450 * sched-ebb.c : Likewise.
17451 * sched-rgn.c : Likewise.
17452 * sched-vis.c : Likewise.
17453 * sdbout.c : Likewise.
17454 * sel-sched-dump.c : Likewise.
17455 * sel-sched-ir.c : Likewise.
17456 * sel-sched-ir.h : Likewise.
17457 * sel-sched.c : Likewise.
17458 * sese.c : Likewise.
17459 * shrink-wrap.c : Likewise.
17460 * shrink-wrap.h : Likewise.
17461 * simplify-rtx.c : Likewise.
17462 * stack-ptr-mod.c : Likewise.
17463 * statistics.c : Likewise.
17464 * stmt.c : Likewise.
17465 * stor-layout.c : Likewise.
17466 * store-motion.c : Likewise.
17467 * stringpool.c : Likewise.
17468 * symtab.c : Likewise.
17469 * target-globals.c : Likewise.
17470 * targhooks.c : Likewise.
17471 * tlink.c : Likewise.
17472 * toplev.c : Likewise.
17473 * tracer.c : Likewise.
17474 * trans-mem.c : Likewise.
17475 * tree-affine.c : Likewise.
17476 * tree-affine.h : Likewise.
17477 * tree-browser.c : Likewise.
17478 * tree-call-cdce.c : Likewise.
17479 * tree-cfg.c : Likewise.
17480 * tree-cfgcleanup.c : Likewise.
17481 * tree-chkp-opt.c : Likewise.
17482 * tree-chkp.c : Likewise.
17483 * tree-chrec.c : Likewise.
17484 * tree-complex.c : Likewise.
17485 * tree-data-ref.c : Likewise.
17486 * tree-dfa.c : Likewise.
17487 * tree-diagnostic.c : Likewise.
17488 * tree-dump.c : Likewise.
17489 * tree-eh.c : Likewise.
17490 * tree-eh.h : Likewise.
17491 * tree-emutls.c : Likewise.
17492 * tree-hasher.h : Likewise.
17493 * tree-if-conv.c : Likewise.
17494 * tree-inline.c : Likewise.
17495 * tree-inline.h : Likewise.
17496 * tree-into-ssa.c : Likewise.
17497 * tree-iterator.c : Likewise.
17498 * tree-loop-distribution.c : Likewise.
17499 * tree-nested.c : Likewise.
17500 * tree-nrv.c : Likewise.
17501 * tree-object-size.c : Likewise.
17502 * tree-outof-ssa.c : Likewise.
17503 * tree-parloops.c : Likewise.
17504 * tree-phinodes.c : Likewise.
17505 * tree-predcom.c : Likewise.
17506 * tree-pretty-print.c : Likewise.
17507 * tree-profile.c : Likewise.
17508 * tree-scalar-evolution.c : Likewise.
17509 * tree-sra.c : Likewise.
17510 * tree-ssa-address.c : Likewise.
17511 * tree-ssa-alias.c : Likewise.
17512 * tree-ssa-ccp.c : Likewise.
17513 * tree-ssa-coalesce.c : Likewise.
17514 * tree-ssa-copy.c : Likewise.
17515 * tree-ssa-copyrename.c : Likewise.
17516 * tree-ssa-dce.c : Likewise.
17517 * tree-ssa-dom.c : Likewise.
17518 * tree-ssa-dse.c : Likewise.
17519 * tree-ssa-forwprop.c : Likewise.
17520 * tree-ssa-ifcombine.c : Likewise.
17521 * tree-ssa-live.c : Likewise.
17522 * tree-ssa-loop-ch.c : Likewise.
17523 * tree-ssa-loop-im.c : Likewise.
17524 * tree-ssa-loop-ivcanon.c : Likewise.
17525 * tree-ssa-loop-ivopts.c : Likewise.
17526 * tree-ssa-loop-manip.c : Likewise.
17527 * tree-ssa-loop-niter.c : Likewise.
17528 * tree-ssa-loop-prefetch.c : Likewise.
17529 * tree-ssa-loop-unswitch.c : Likewise.
17530 * tree-ssa-loop.c : Likewise.
17531 * tree-ssa-math-opts.c : Likewise.
17532 * tree-ssa-operands.c : Likewise.
17533 * tree-ssa-phiopt.c : Likewise.
17534 * tree-ssa-phiprop.c : Likewise.
17535 * tree-ssa-pre.c : Likewise.
17536 * tree-ssa-propagate.c : Likewise.
17537 * tree-ssa-reassoc.c : Likewise.
17538 * tree-ssa-sccvn.c : Likewise.
17539 * tree-ssa-scopedtables.c : Likewise.
17540 * tree-ssa-sink.c : Likewise.
17541 * tree-ssa-strlen.c : Likewise.
17542 * tree-ssa-structalias.c : Likewise.
17543 * tree-ssa-tail-merge.c : Likewise.
17544 * tree-ssa-ter.c : Likewise.
17545 * tree-ssa-threadedge.c : Likewise.
17546 * tree-ssa-threadupdate.c : Likewise.
17547 * tree-ssa-uncprop.c : Likewise.
17548 * tree-ssa-uninit.c : Likewise.
17549 * tree-ssa.c : Likewise.
17550 * tree-ssanames.c : Likewise.
17551 * tree-stdarg.c : Likewise.
17552 * tree-streamer-in.c : Likewise.
17553 * tree-streamer-out.c : Likewise.
17554 * tree-streamer.c : Likewise.
17555 * tree-streamer.h : Likewise.
17556 * tree-switch-conversion.c : Likewise.
17557 * tree-tailcall.c : Likewise.
17558 * tree-vect-data-refs.c : Likewise.
17559 * tree-vect-generic.c : Likewise.
17560 * tree-vect-loop-manip.c : Likewise.
17561 * tree-vect-loop.c : Likewise.
17562 * tree-vect-patterns.c : Likewise.
17563 * tree-vect-slp.c : Likewise.
17564 * tree-vect-stmts.c : Likewise.
17565 * tree-vectorizer.c : Likewise.
17566 * tree-vectorizer.h : Likewise.
17567 * tree-vrp.c : Likewise.
17568 * tree.c : Likewise.
17569 * tsan.c : Likewise.
17570 * ubsan.c : Likewise.
17571 * valtrack.c : Likewise.
17572 * valtrack.h : Likewise.
17573 * value-prof.c : Likewise.
17574 * var-tracking.c : Likewise.
17575 * varasm.c : Likewise.
17576 * varpool.c : Likewise.
17577 * vec.c: Likewise.
17578 * vmsdbgout.c : Likewise.
17579 * vtable-verify.c : Likewise.
17580 * vtable-verify.h : Likewise.
17581 * web.c : Likewise.
17582 * wide-int.cc : Likewise.
17583 * xcoffout.c : Likewise.
17584 * config/aarch64/aarch64-builtins.c : Likewise.
17585 * config/aarch64/aarch64.c : Likewise.
17586 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17587 * config/alpha/alpha.c : Likewise.
17588 * config/arc/arc.c : Likewise.
17589 * config/arm/aarch-common.c : Likewise.
17590 * config/arm/arm-builtins.c : Likewise.
17591 * config/arm/arm-c.c : Likewise.
17592 * config/arm/arm.c : Likewise.
17593 * config/avr/avr-c.c : Likewise.
17594 * config/avr/avr-log.c : Likewise.
17595 * config/avr/avr.c : Likewise.
17596 * config/bfin/bfin.c : Likewise.
17597 * config/c6x/c6x.c : Likewise.
17598 * config/cr16/cr16.c : Likewise.
17599 * config/cris/cris.c : Likewise.
17600 * config/darwin-c.c : Likewise.
17601 * config/darwin.c : Likewise.
17602 * config/default-c.c : Likewise.
17603 * config/epiphany/epiphany.c : Likewise.
17604 * config/epiphany/mode-switch-use.c : Likewise.
17605 * config/epiphany/resolve-sw-modes.c : Likewise.
17606 * config/fr30/fr30.c : Likewise.
17607 * config/frv/frv.c : Likewise.
17608 * config/ft32/ft32.c : Likewise.
17609 * config/glibc-c.c : Likewise.
17610 * config/h8300/h8300.c : Likewise.
17611 * config/i386/i386-c.c : Likewise.
17612 * config/i386/i386.c : Likewise.
17613 * config/i386/msformat-c.c : Likewise.
17614 * config/i386/winnt-cxx.c : Likewise.
17615 * config/i386/winnt-stubs.c : Likewise.
17616 * config/i386/winnt.c : Likewise.
17617 * config/ia64/ia64-c.c : Likewise.
17618 * config/ia64/ia64.c : Likewise.
17619 * config/iq2000/iq2000.c : Likewise.
17620 * config/lm32/lm32.c : Likewise.
17621 * config/m32c/m32c-pragma.c : Likewise.
17622 * config/m32c/m32c.c : Likewise.
17623 * config/m32r/m32r.c : Likewise.
17624 * config/m68k/m68k.c : Likewise.
17625 * config/mcore/mcore.c : Likewise.
17626 * config/mep/mep-pragma.c : Likewise.
17627 * config/mep/mep.c : Likewise.
17628 * config/microblaze/microblaze-c.c : Likewise.
17629 * config/microblaze/microblaze.c : Likewise.
17630 * config/mips/mips.c : Likewise.
17631 * config/mmix/mmix.c : Likewise.
17632 * config/mn10300/mn10300.c : Likewise.
17633 * config/moxie/moxie.c : Likewise.
17634 * config/msp430/msp430-c.c : Likewise.
17635 * config/msp430/msp430.c : Likewise.
17636 * config/nds32/nds32-cost.c : Likewise.
17637 * config/nds32/nds32-fp-as-gp.c : Likewise.
17638 * config/nds32/nds32-intrinsic.c : Likewise.
17639 * config/nds32/nds32-isr.c : Likewise.
17640 * config/nds32/nds32-md-auxiliary.c : Likewise.
17641 * config/nds32/nds32-memory-manipulation.c : Likewise.
17642 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17643 * config/nds32/nds32-predicates.c : Likewise.
17644 * config/nds32/nds32.c : Likewise.
17645 * config/nios2/nios2.c : Likewise.
17646 * config/nvptx/nvptx.c : Likewise.
17647 * config/pa/pa.c : Likewise.
17648 * config/pdp11/pdp11.c : Likewise.
17649 * config/rl78/rl78-c.c : Likewise.
17650 * config/rl78/rl78.c : Likewise.
17651 * config/rs6000/rs6000-c.c : Likewise.
17652 * config/rs6000/rs6000.c : Likewise.
17653 * config/rx/rx.c : Likewise.
17654 * config/s390/s390-c.c : Likewise.
17655 * config/s390/s390.c : Likewise.
17656 * config/sh/sh-c.c : Likewise.
17657 * config/sh/sh-mem.cc : Likewise.
17658 * config/sh/sh.c : Likewise.
17659 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17660 * config/sh/sh_treg_combine.cc : Likewise.
17661 * config/sol2-c.c : Likewise.
17662 * config/sol2-cxx.c : Likewise.
17663 * config/sol2-stubs.c : Likewise.
17664 * config/sol2.c : Likewise.
17665 * config/sparc/sparc-c.c : Likewise.
17666 * config/sparc/sparc.c : Likewise.
17667 * config/spu/spu-c.c : Likewise.
17668 * config/spu/spu.c : Likewise.
17669 * config/stormy16/stormy16.c : Likewise.
17670 * config/tilegx/mul-tables.c : Likewise.
17671 * config/tilegx/tilegx-c.c : Likewise.
17672 * config/tilegx/tilegx.c : Likewise.
17673 * config/tilepro/mul-tables.c : Likewise.
17674 * config/tilepro/tilepro-c.c : Likewise.
17675 * config/tilepro/tilepro.c : Likewise.
17676 * config/v850/v850-c.c : Likewise.
17677 * config/v850/v850.c : Likewise.
17678 * config/vax/vax.c : Likewise.
17679 * config/visium/visium.c : Likewise.
17680 * config/vms/vms-c.c : Likewise.
17681 * config/vms/vms.c : Likewise.
17682 * config/vxworks.c : Likewise.
17683 * config/winnt-c.c : Likewise.
17684 * config/xtensa/xtensa.c : Likewise.
17685
17686 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17687
17688 PR lto/65378
17689 * ipa-utils.h (warn_types_mismatch): Update prototype.
17690 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17691 parameters.
17692 (type_mismatch_p): New function.
17693 (warn_types_mismatch): Reorg to work better on non-C++ types.
17694 (odr_types_equivalent_p): Add loc1/loc2 parameters.
17695 (add_type_duplicate): Update.
17696
17697 2015-06-08 Tom de Vries <tom@codesourcery.com>
17698
17699 PR rtl-optimization/66444
17700 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17701 call_used_regs.
17702
17703 2015-06-08 Richard Biener <rguenther@suse.de>
17704
17705 PR tree-optimization/66422
17706 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17707 block after inserted gcc_unreachable.
17708
17709 2015-06-08 Nick Clifton <nickc@redhat.com>
17710
17711 * config/rx/rx.c (rx_function_value): Do not promote vector types.
17712 (rx_promote_function_mode): Likewise.
17713 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17714
17715 2015-06-08 Jakub Jelinek <jakub@redhat.com>
17716
17717 * genattrtab.c (insn_alternatives): Change type from int *
17718 to uint64_t *.
17719 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17720 (get_attr_value): Change type of num_alt to uint64_t.
17721 (compute_alternative_mask): Change return type from
17722 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17723 (make_alternative_compare, mk_attr_alt): Change argument type
17724 from int to uint64_t.
17725 (simplify_test_exp): Change type of i from int to uint64_t.
17726 Shift ((uint64_t) 1) instead of 1 up.
17727 (main): Adjust oballocvec first argument from int to uint64_t.
17728 Shift ((uint64_t) 1) instead of 1 up.
17729
17730 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
17731
17732 PR other/65366
17733 * gdbhooks.py: Import sys.
17734 (intptr): New function. Replace int(...) by intptr(...).
17735
17736 2015-06-08 Richard Biener <rguenther@suse.de>
17737
17738 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17739 adjustment for gaps at the end of a SLP load group properly.
17740 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17741 all permutations we can generate.
17742 (vect_transform_slp_perm_load): Use the correct group-size.
17743
17744 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
17745
17746 * genmatch.c (expr::gen_transform): For conditions, guess the type
17747 from the second operand.
17748
17749 2015-06-08 Tom de Vries <tom@codesourcery.com>
17750
17751 PR tree-optimization/66442
17752 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17753 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17754 if the loop latch is not a singleton. Use
17755 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17756
17757 2015-06-08 Marek Polacek <polacek@redhat.com>
17758
17759 PR sanitizer/66452
17760 * toplev.c (check_global_declaration): Don't warn about artificial
17761 decls.
17762
17763 2015-06-08 Tom de Vries <tom@codesourcery.com>
17764
17765 PR tree-optimization/66436
17766 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17767 dump file.
17768 * gimplify.c: Add tree-dump.h include.
17769 (gimplify_function_tree): Dump function to gimple dump file.
17770 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17771 dump file.
17772
17773 2015-06-08 Tom de Vries <tom@codesourcery.com>
17774
17775 PR tree-optimization/66435
17776 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17777 function.
17778
17779 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
17780
17781 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17782 of ptr_type_node to not be ptr_to_node.
17783 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17784 TREE_TYPE of pointers.
17785 * gimple-expr.c (useless_type_conversion): Reorder the check for
17786 function pointers and TYPE_CANONICAL.
17787
17788 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
17789
17790 PR bootstrap/66319
17791 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17792 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17793 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17794 later.
17795 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17796 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17797 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17798 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17799 and non iso if unix2003.
17800
17801 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
17802
17803 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17804
17805 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
17806
17807 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17808 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17809 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17810 except.c, final.c, function.c, gcse-common.c, genemit.c,
17811 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17812 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17813 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17814 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17815 more derived ones.
17816
17817 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
17818
17819 * combine.c (combine_split_insns): Remove cast.
17820 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17821 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17822 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17823 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17824 * genemit.c (gen_split): Change return type of generated functions to
17825 rtx_insn.
17826 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17827 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17828 gen_peephole2_* functions.
17829 (print_subroutine, main): Likewise.
17830 * recog.c (peephole2_optimize): Remove cast.
17831 (peep2_next_insn): Promote return type to rtx_insn.
17832 * recog.h (peep2_next_insn): Fix prototype.
17833 * rtl.h (try_split, split_insns): Likewise.
17834
17835 2015-06-06 DJ Delorie <dj@redhat.com>
17836
17837 * config/msp430/msp430.c (msp430_asm_integer): Support addition
17838 and subtraction too.
17839
17840 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
17841
17842 PR target/66410
17843 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17844 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17845 instead of Snd. Disparage Sid/z alternative with '^'.
17846
17847 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
17848
17849 * dwarf2out.c: Remove deferred_locations*.
17850 (dwarf2_debug_hooks): Add early_finish hook.
17851 Remove global_decl hook.
17852 Add early_global_decl and late_global_decl hook.
17853 New global early_dwarf.
17854 New structure set_early_dwarf.
17855 (output_die): Indicate whether a DIE was generated early
17856 when generating assembly with -dA.
17857 (struct limbo_die_struct): Document created_for field.
17858 Remove file_table_last_lookup.
17859 (remove_AT): Return TRUE if successful.
17860 (remove_child_TAG): Clear die_parent.
17861 (reparent_child): New function abstracted from...
17862 (splice_child_die): ...here.
17863 (new_die): ICE if a DIE ends up in limbo too late.
17864 (check_die): New.
17865 (defer_location): Remove.
17866 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17867 (fill_variable_array_bounds): New.
17868 (decl_start_label): Call fill_variable_array_bounds.
17869 (gen_formal_parameter_die): Rewrite to reuse previously generated
17870 DIEs.
17871 (gen_subprogram_die): Same.
17872 (gen_variable_die): Same.
17873 (gen_const_die): Same.
17874 (gen_label_die): Same.
17875 (gen_lexical_block_die): Same.
17876 (decl_will_get_specification_p): New.
17877 (local_function_static): New.
17878 (gen_struct_or_union_type_die): Fill in variable-length fields.
17879 (gen_typedef_die): Fill in variable-length typedefs.
17880 (gen_tagged_type_die): Gracefully return on error_mark_node.
17881 Handle re-entrancy.
17882 (gen_type_die_with_usage): Handle variable-length types.
17883 Remove duplicate code for ARRAY_TYPE case.
17884 (process_scope_var): Only process imported modules during early
17885 dwarf.
17886 (dwarf2out_early_global_decl): New.
17887 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17888 (dwarf2out_type_decl): Set early_dwarf while calling
17889 dwarf2out_decl.
17890 (dwarf2out_decl): Verify that we did not recreate a previously
17891 generated DIE.
17892 Do not return on DECL_EXTERNALs in VAR_DECLs.
17893 Abstract some code to local_function_static.
17894 (lookup_filename): Remove use of file_table_last_lookup.
17895 Gracefully exit on missing file_name.
17896 (dwarf2out_finish): Verify limbo list.
17897 Remove deferred_locations_list use.
17898 Move deferred_asm_name and limbo flushing to...
17899 (dwarf2out_early_finish): ...here. New.
17900 (dwarf2out_c_finalize): Remove set of deferred_location_list,
17901 deferred_asm_name, and file_table_last_lookup.
17902 * cgraph.h (referred_to_p): Add default argument.
17903 * cgraphunit.c (referred_to_p): Add and handle include_self
17904 argument.
17905 (analyze_functions): Add first_time argument.
17906 Call check_global_declaration for all symbols.
17907 Call late_global_decl for nodes for moribund nodes.
17908 (finalize_compilation_unit): Add new argument to
17909 analyze_functions.
17910 Call early_global_decl for functions.
17911 Call early_finish debug hook.
17912 * dbxout.c (dbxout_early_global_decl): New.
17913 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
17914 (dbx_debug_hooks): Add new hooks.
17915 (xcoff_debug_hooks): Same.
17916 * debug.c (do_nothing_debug_hooks): Add early_finish field.
17917 Add early and late debug hooks.
17918 Remove global_decl hook.
17919 * debug.h (struct gcc_debug_hooks): Add early_finish,
17920 early_global_decl, and late_global_decl fields.
17921 Remove global_decl field.
17922 Document gcc_debug_hooks.
17923 * gengtype.c (output_typename): Remove.
17924 * godump.c (go_early_global_decl): New.
17925 (go_late_global_decl): New.
17926 (go_global_decl): Remove.
17927 (dump_go_spec_init): Remove global_decl. Add
17928 {early,late}_global_decl.
17929 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17930 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17931 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17932 (write_global_declarations): Remove.
17933 (global_decl_processing): New.
17934 * langhooks.h (struct lang_hooks_for_decls): Remove
17935 final_write_globals field.
17936 Add post_compilation_parsing_cleanups field.
17937 * passes.c (rest_of_decl_compilation): Call early_global_decl.
17938 * sdbout.c: Add early and late_global_decl hooks. Remove
17939 sdbout_global_decl hook.
17940 Add early_finish field for sdb_debug_hooks.
17941 (sdbout_global_decl): Remove.
17942 (sdbout_early_global_decl): New.
17943 (sdbout_late_global_decl): New.
17944 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17945 * toplev.c (check_global_declaration): Rename from
17946 check_global_declaration_1.
17947 Adapt to use symtab infrastructure.
17948 (check_global_declarations): Remove.
17949 (emit_debug_global_declarations): Remove.
17950 (compile_file): Remove call to final_write_globals langhook.
17951 Run the actual compilation process.
17952 Perform any post compilation parser cleanups.
17953 Generate late debug info.
17954 * toplev.h (check_global_declaration): New.
17955 (check_global_declaration_1): Remove.
17956 (check_global_declarations): Remove.
17957 (write_global_declarations): Remove.
17958 (emit_debug_global_declarations): Remove.
17959 (global_decl_processing): New.
17960 * tree-core.h (struct tree_block): Add DIE field.
17961 * tree.h (BLOCK_DIE): New.
17962 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17963 throughout.
17964 (vmsdbgout_early_global_decl): New.
17965 (vmsdbgout_late_global_decl): New.
17966 Add early_finish debug hook field to vmsdbg_debug_hooks.
17967 Remove vmsdbgout_decl to vmsdbgout_function_decl.
17968 Add early and late_global_decl debug hooks.
17969
17970 2015-06-05 Julian Brown <julian@codesourcery.com>
17971 Sandra Loosemore <sandra@codesourcery.com>
17972
17973 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17974 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17975 to print-sysroot-suffix.sh script.
17976
17977 2015-06-05 Tom de Vries <tom@codesourcery.com>
17978
17979 merge from gomp4 branch:
17980 2015-05-28 Tom de Vries <tom@codesourcery.com>
17981
17982 PR tree-optimization/65443
17983 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17984 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17985 (try_transform_to_exit_first_loop_alt): New function.
17986 (transform_to_exit_first_loop): Use
17987 try_transform_to_exit_first_loop_alt.
17988
17989 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
17990
17991 * builtins.c (expand_builtin_atomic_compare_exchange): Call
17992 emit_cmp_and_jump_insns with the mode of target.
17993
17994 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17995
17996 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17997
17998 2015-06-04 DJ Delorie <dj@redhat.com>
17999
18000 * config/msp430/msp430.md (movsi_s): New. Special case for
18001 storing a 20-bit symbol into a 32-bit register.
18002 * config/msp430/msp430.c (msp430_subreg): Add support for it.
18003 * config/msp430/predicates.md (msp430_symbol_operand): New.
18004
18005 2015-06-04 Sriraman Tallam <tmsriram@google.com>
18006
18007 * c-family/c-common.c (noplt): New attribute.
18008 (handle_noplt_attribute): New handler.
18009 * calls.c (prepare_call_address): Check for noplt
18010 attribute.
18011 * config/i386/i386.c (ix86_expand_call): Check
18012 for noplt attribute.
18013 (ix86_nopic_noplt_attribute_p): New function.
18014 (ix86_output_call_insn): Output indirect call for non-pic
18015 no plt calls.
18016 * doc/extend.texi (noplt): Document new attribute.
18017 * doc/invoke.texi: Document new attribute.
18018
18019 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
18020
18021 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18022 real.h, and fixed-value.h when included in host source files.
18023 * double-int.h: Remove redundant #includes listed above.
18024 * fixed-value.h: Likewise.
18025 * real.h: Likewise.
18026 * wide-int.h: Likewise.
18027 * inchash.h: Likewise.
18028 * rtl.h: Add some include files When included from a generator file.
18029 * target.h: Remove wide-int.h and insn-modes.h from the include list.
18030 * internal-fn.h: Don't include coretypes.h.
18031 * alias.c: Adjust includes for restructured coretypes.h.
18032 * asan.c: Likewise.
18033 * attribs.c: Likewise.
18034 * auto-inc-dec.c: Likewise.
18035 * auto-profile.c: Likewise.
18036 * bb-reorder.c: Likewise.
18037 * bt-load.c: Likewise.
18038 * builtins.c: Likewise.
18039 * caller-save.c: Likewise.
18040 * calls.c: Likewise.
18041 * ccmp.c: Likewise.
18042 * cfg.c: Likewise.
18043 * cfganal.c: Likewise.
18044 * cfgbuild.c: Likewise.
18045 * cfgcleanup.c: Likewise.
18046 * cfgexpand.c: Likewise.
18047 * cfghooks.c: Likewise.
18048 * cfgloop.c: Likewise.
18049 * cfgloop.h: Likewise.
18050 * cfgloopanal.c: Likewise.
18051 * cfgloopmanip.c: Likewise.
18052 * cfgrtl.c: Likewise.
18053 * cgraph.c: Likewise.
18054 * cgraphbuild.c: Likewise.
18055 * cgraphclones.c: Likewise.
18056 * cgraphunit.c: Likewise.
18057 * cilk-common.c: Likewise.
18058 * combine-stack-adj.c: Likewise.
18059 * combine.c: Likewise.
18060 * compare-elim.c: Likewise.
18061 * convert.c: Likewise.
18062 * coverage.c: Likewise.
18063 * cppbuiltin.c: Likewise.
18064 * cprop.c: Likewise.
18065 * cse.c: Likewise.
18066 * cselib.c: Likewise.
18067 * data-streamer-in.c: Likewise.
18068 * data-streamer-out.c: Likewise.
18069 * data-streamer.c: Likewise.
18070 * dbxout.c: Likewise.
18071 * dce.c: Likewise.
18072 * ddg.c: Likewise.
18073 * debug.c: Likewise.
18074 * df-core.c: Likewise.
18075 * df-problems.c: Likewise.
18076 * df-scan.c: Likewise.
18077 * df.h: Likewise.
18078 * dfp.c: Likewise.
18079 * dojump.c: Likewise.
18080 * dominance.c: Likewise.
18081 * domwalk.c: Likewise.
18082 * double-int.c: Likewise.
18083 * dse.c: Likewise.
18084 * dumpfile.c: Likewise.
18085 * dwarf2asm.c: Likewise.
18086 * dwarf2cfi.c: Likewise.
18087 * dwarf2out.c: Likewise.
18088 * dwarf2out.h: Likewise.
18089 * emit-rtl.c: Likewise.
18090 * et-forest.c: Likewise.
18091 * except.c: Likewise.
18092 * explow.c: Likewise.
18093 * expmed.c: Likewise.
18094 * expr.c: Likewise.
18095 * final.c: Likewise.
18096 * fixed-value.c: Likewise.
18097 * fold-const.c: Likewise.
18098 * function.c: Likewise.
18099 * fwprop.c: Likewise.
18100 * gcc-plugin.h: Likewise.
18101 * gcse.c: Likewise.
18102 * generic-match-head.c: Likewise.
18103 * ggc-page.c: Likewise.
18104 * gimple-builder.c: Likewise.
18105 * gimple-expr.c: Likewise.
18106 * gimple-fold.c: Likewise.
18107 * gimple-iterator.c: Likewise.
18108 * gimple-low.c: Likewise.
18109 * gimple-match-head.c: Likewise.
18110 * gimple-pretty-print.c: Likewise.
18111 * gimple-ssa-isolate-paths.c: Likewise.
18112 * gimple-ssa-strength-reduction.c: Likewise.
18113 * gimple-streamer-in.c: Likewise.
18114 * gimple-streamer-out.c: Likewise.
18115 * gimple-streamer.h: Likewise.
18116 * gimple-walk.c: Likewise.
18117 * gimple.c: Likewise.
18118 * gimplify-me.c: Likewise.
18119 * gimplify.c: Likewise.
18120 * godump.c: Likewise.
18121 * graph.c: Likewise.
18122 * graphite-blocking.c: Likewise.
18123 * graphite-dependences.c: Likewise.
18124 * graphite-interchange.c: Likewise.
18125 * graphite-isl-ast-to-gimple.c: Likewise.
18126 * graphite-optimize-isl.c: Likewise.
18127 * graphite-poly.c: Likewise.
18128 * graphite-scop-detection.c: Likewise.
18129 * graphite-sese-to-poly.c: Likewise.
18130 * graphite.c: Likewise.
18131 * haifa-sched.c: Likewise.
18132 * hooks.h: Likewise.
18133 * hw-doloop.c: Likewise.
18134 * ifcvt.c: Likewise.
18135 * incpath.c: Likewise.
18136 * init-regs.c: Likewise.
18137 * internal-fn.c: Likewise.
18138 * ipa-chkp.c: Likewise.
18139 * ipa-comdats.c: Likewise.
18140 * ipa-cp.c: Likewise.
18141 * ipa-devirt.c: Likewise.
18142 * ipa-icf-gimple.c: Likewise.
18143 * ipa-icf.c: Likewise.
18144 * ipa-inline-analysis.c: Likewise.
18145 * ipa-inline-transform.c: Likewise.
18146 * ipa-inline.c: Likewise.
18147 * ipa-polymorphic-call.c: Likewise.
18148 * ipa-profile.c: Likewise.
18149 * ipa-prop.c: Likewise.
18150 * ipa-pure-const.c: Likewise.
18151 * ipa-ref.c: Likewise.
18152 * ipa-reference.c: Likewise.
18153 * ipa-split.c: Likewise.
18154 * ipa-utils.c: Likewise.
18155 * ipa-visibility.c: Likewise.
18156 * ipa.c: Likewise.
18157 * ira-build.c: Likewise.
18158 * ira-color.c: Likewise.
18159 * ira-conflicts.c: Likewise.
18160 * ira-costs.c: Likewise.
18161 * ira-emit.c: Likewise.
18162 * ira-lives.c: Likewise.
18163 * ira.c: Likewise.
18164 * jump.c: Likewise.
18165 * langhooks.c: Likewise.
18166 * lcm.c: Likewise.
18167 * loop-doloop.c: Likewise.
18168 * loop-init.c: Likewise.
18169 * loop-invariant.c: Likewise.
18170 * loop-iv.c: Likewise.
18171 * loop-unroll.c: Likewise.
18172 * lower-subreg.c: Likewise.
18173 * lra-assigns.c: Likewise.
18174 * lra-coalesce.c: Likewise.
18175 * lra-constraints.c: Likewise.
18176 * lra-eliminations.c: Likewise.
18177 * lra-lives.c: Likewise.
18178 * lra-remat.c: Likewise.
18179 * lra-spills.c: Likewise.
18180 * lra.c: Likewise.
18181 * lto-cgraph.c: Likewise.
18182 * lto-compress.c: Likewise.
18183 * lto-opts.c: Likewise.
18184 * lto-section-in.c: Likewise.
18185 * lto-section-out.c: Likewise.
18186 * lto-streamer-in.c: Likewise.
18187 * lto-streamer-out.c: Likewise.
18188 * lto-streamer.c: Likewise.
18189 * mcf.c: Likewise.
18190 * mode-switching.c: Likewise.
18191 * modulo-sched.c: Likewise.
18192 * omega.c: Likewise.
18193 * omp-low.c: Likewise.
18194 * optabs.c: Likewise.
18195 * opts-global.c: Likewise.
18196 * passes.c: Likewise.
18197 * plugin.c: Likewise.
18198 * postreload-gcse.c: Likewise.
18199 * postreload.c: Likewise.
18200 * predict.c: Likewise.
18201 * print-rtl.c: Likewise.
18202 * print-tree.c: Likewise.
18203 * profile.c: Likewise.
18204 * real.c: Likewise.
18205 * realmpfr.c: Likewise.
18206 * realmpfr.h: Likewise.
18207 * recog.c: Likewise.
18208 * ree.c: Likewise.
18209 * reg-stack.c: Likewise.
18210 * regcprop.c: Likewise.
18211 * reginfo.c: Likewise.
18212 * regrename.c: Likewise.
18213 * regs.h: Likewise.
18214 * regstat.c: Likewise.
18215 * reload.c: Likewise.
18216 * reload1.c: Likewise.
18217 * reorg.c: Likewise.
18218 * resource.c: Likewise.
18219 * rtl-chkp.c: Likewise.
18220 * rtlanal.c: Likewise.
18221 * rtlhooks.c: Likewise.
18222 * sanopt.c: Likewise.
18223 * sched-deps.c: Likewise.
18224 * sched-ebb.c: Likewise.
18225 * sched-rgn.c: Likewise.
18226 * sched-vis.c: Likewise.
18227 * sdbout.c: Likewise.
18228 * sel-sched-dump.c: Likewise.
18229 * sel-sched-ir.c: Likewise.
18230 * sel-sched.c: Likewise.
18231 * sese.c: Likewise.
18232 * shrink-wrap.c: Likewise.
18233 * shrink-wrap.h: Likewise.
18234 * simplify-rtx.c: Likewise.
18235 * stack-ptr-mod.c: Likewise.
18236 * statistics.c: Likewise.
18237 * stmt.c: Likewise.
18238 * stor-layout.c: Likewise.
18239 * store-motion.c: Likewise.
18240 * stringpool.c: Likewise.
18241 * symtab.c: Likewise.
18242 * target-globals.c: Likewise.
18243 * targhooks.c: Likewise.
18244 * toplev.c: Likewise.
18245 * tracer.c: Likewise.
18246 * trans-mem.c: Likewise.
18247 * tree-affine.c: Likewise.
18248 * tree-affine.h: Likewise.
18249 * tree-browser.c: Likewise.
18250 * tree-call-cdce.c: Likewise.
18251 * tree-cfg.c: Likewise.
18252 * tree-cfgcleanup.c: Likewise.
18253 * tree-chkp-opt.c: Likewise.
18254 * tree-chkp.c: Likewise.
18255 * tree-chrec.c: Likewise.
18256 * tree-complex.c: Likewise.
18257 * tree-data-ref.c: Likewise.
18258 * tree-dfa.c: Likewise.
18259 * tree-diagnostic.c: Likewise.
18260 * tree-dump.c: Likewise.
18261 * tree-eh.c: Likewise.
18262 * tree-emutls.c: Likewise.
18263 * tree-if-conv.c: Likewise.
18264 * tree-inline.c: Likewise.
18265 * tree-into-ssa.c: Likewise.
18266 * tree-iterator.c: Likewise.
18267 * tree-loop-distribution.c: Likewise.
18268 * tree-nested.c: Likewise.
18269 * tree-nrv.c: Likewise.
18270 * tree-object-size.c: Likewise.
18271 * tree-outof-ssa.c: Likewise.
18272 * tree-parloops.c: Likewise.
18273 * tree-phinodes.c: Likewise.
18274 * tree-predcom.c: Likewise.
18275 * tree-pretty-print.c: Likewise.
18276 * tree-pretty-print.h: Likewise.
18277 * tree-profile.c: Likewise.
18278 * tree-scalar-evolution.c: Likewise.
18279 * tree-sra.c: Likewise.
18280 * tree-ssa-address.c: Likewise.
18281 * tree-ssa-alias.c: Likewise.
18282 * tree-ssa-ccp.c: Likewise.
18283 * tree-ssa-coalesce.c: Likewise.
18284 * tree-ssa-copy.c: Likewise.
18285 * tree-ssa-copyrename.c: Likewise.
18286 * tree-ssa-dce.c: Likewise.
18287 * tree-ssa-dom.c: Likewise.
18288 * tree-ssa-dse.c: Likewise.
18289 * tree-ssa-forwprop.c: Likewise.
18290 * tree-ssa-ifcombine.c: Likewise.
18291 * tree-ssa-live.c: Likewise.
18292 * tree-ssa-loop-ch.c: Likewise.
18293 * tree-ssa-loop-im.c: Likewise.
18294 * tree-ssa-loop-ivcanon.c: Likewise.
18295 * tree-ssa-loop-ivopts.c: Likewise.
18296 * tree-ssa-loop-manip.c: Likewise.
18297 * tree-ssa-loop-niter.c: Likewise.
18298 * tree-ssa-loop-prefetch.c: Likewise.
18299 * tree-ssa-loop-unswitch.c: Likewise.
18300 * tree-ssa-loop.c: Likewise.
18301 * tree-ssa-loop.h: Likewise.
18302 * tree-ssa-math-opts.c: Likewise.
18303 * tree-ssa-operands.c: Likewise.
18304 * tree-ssa-phiopt.c: Likewise.
18305 * tree-ssa-phiprop.c: Likewise.
18306 * tree-ssa-pre.c: Likewise.
18307 * tree-ssa-propagate.c: Likewise.
18308 * tree-ssa-reassoc.c: Likewise.
18309 * tree-ssa-sccvn.c: Likewise.
18310 * tree-ssa-scopedtables.c: Likewise.
18311 * tree-ssa-sink.c: Likewise.
18312 * tree-ssa-strlen.c: Likewise.
18313 * tree-ssa-structalias.c: Likewise.
18314 * tree-ssa-tail-merge.c: Likewise.
18315 * tree-ssa-ter.c: Likewise.
18316 * tree-ssa-threadedge.c: Likewise.
18317 * tree-ssa-threadupdate.c: Likewise.
18318 * tree-ssa-uncprop.c: Likewise.
18319 * tree-ssa-uninit.c: Likewise.
18320 * tree-ssa.c: Likewise.
18321 * tree-ssanames.c: Likewise.
18322 * tree-stdarg.c: Likewise.
18323 * tree-streamer-in.c: Likewise.
18324 * tree-streamer-out.c: Likewise.
18325 * tree-streamer.c: Likewise.
18326 * tree-switch-conversion.c: Likewise.
18327 * tree-tailcall.c: Likewise.
18328 * tree-vect-data-refs.c: Likewise.
18329 * tree-vect-generic.c: Likewise.
18330 * tree-vect-loop-manip.c: Likewise.
18331 * tree-vect-loop.c: Likewise.
18332 * tree-vect-patterns.c: Likewise.
18333 * tree-vect-slp.c: Likewise.
18334 * tree-vect-stmts.c: Likewise.
18335 * tree-vectorizer.c: Likewise.
18336 * tree-vrp.c: Likewise.
18337 * tree.c: Likewise.
18338 * tsan.c: Likewise.
18339 * ubsan.c: Likewise.
18340 * valtrack.c: Likewise.
18341 * value-prof.c: Likewise.
18342 * var-tracking.c: Likewise.
18343 * varasm.c: Likewise.
18344 * varpool.c: Likewise.
18345 * vmsdbgout.c: Likewise.
18346 * vtable-verify.c: Likewise.
18347 * web.c: Likewise.
18348 * wide-int-print.cc: Likewise.
18349 * wide-int-print.h: Likewise.
18350 * wide-int.cc: Likewise.
18351 * xcoffout.c: Likewise.
18352 * config/aarch64/aarch64-builtins.c: Likewise.
18353 * config/aarch64/aarch64.c: Likewise.
18354 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18355 * config/alpha/alpha.c: Likewise.
18356 * config/arc/arc.c: Likewise.
18357 * config/arm/aarch-common.c: Likewise.
18358 * config/arm/arm-builtins.c: Likewise.
18359 * config/arm/arm-c.c: Likewise.
18360 * config/arm/arm.c: Likewise.
18361 * config/avr/avr-c.c: Likewise.
18362 * config/avr/avr-log.c: Likewise.
18363 * config/avr/avr.c: Likewise.
18364 * config/bfin/bfin.c: Likewise.
18365 * config/c6x/c6x.c: Likewise.
18366 * config/cr16/cr16.c: Likewise.
18367 * config/cris/cris.c: Likewise.
18368 * config/darwin-c.c: Likewise.
18369 * config/darwin.c: Likewise.
18370 * config/default-c.c: Likewise.
18371 * config/epiphany/epiphany.c: Likewise.
18372 * config/epiphany/mode-switch-use.c: Likewise.
18373 * config/epiphany/resolve-sw-modes.c: Likewise.
18374 * config/fr30/fr30.c: Likewise.
18375 * config/frv/frv.c: Likewise.
18376 * config/ft32/ft32.c: Likewise.
18377 * config/glibc-c.c: Likewise.
18378 * config/h8300/h8300.c: Likewise.
18379 * config/i386/i386-c.c: Likewise.
18380 * config/i386/i386.c: Likewise.
18381 * config/i386/msformat-c.c: Likewise.
18382 * config/i386/winnt-cxx.c: Likewise.
18383 * config/i386/winnt-stubs.c: Likewise.
18384 * config/i386/winnt.c: Likewise.
18385 * config/ia64/ia64-c.c: Likewise.
18386 * config/ia64/ia64.c: Likewise.
18387 * config/iq2000/iq2000.c: Likewise.
18388 * config/lm32/lm32.c: Likewise.
18389 * config/m32c/m32c-pragma.c: Likewise.
18390 * config/m32c/m32c.c: Likewise.
18391 * config/m32r/m32r.c: Likewise.
18392 * config/m68k/m68k.c: Likewise.
18393 * config/mcore/mcore.c: Likewise.
18394 * config/mep/mep-pragma.c: Likewise.
18395 * config/mep/mep.c: Likewise.
18396 * config/microblaze/microblaze-c.c: Likewise.
18397 * config/microblaze/microblaze.c: Likewise.
18398 * config/mips/mips.c: Likewise.
18399 * config/mmix/mmix.c: Likewise.
18400 * config/mn10300/mn10300.c: Likewise.
18401 * config/moxie/moxie.c: Likewise.
18402 * config/msp430/msp430-c.c: Likewise.
18403 * config/msp430/msp430.c: Likewise.
18404 * config/nds32/nds32-cost.c: Likewise.
18405 * config/nds32/nds32-fp-as-gp.c: Likewise.
18406 * config/nds32/nds32-intrinsic.c: Likewise.
18407 * config/nds32/nds32-isr.c: Likewise.
18408 * config/nds32/nds32-md-auxiliary.c: Likewise.
18409 * config/nds32/nds32-memory-manipulation.c: Likewise.
18410 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18411 * config/nds32/nds32-predicates.c: Likewise.
18412 * config/nds32/nds32.c: Likewise.
18413 * config/nios2/nios2.c: Likewise.
18414 * config/nvptx/nvptx.c: Likewise.
18415 * config/pa/pa.c: Likewise.
18416 * config/pdp11/pdp11.c: Likewise.
18417 * config/rl78/rl78-c.c: Likewise.
18418 * config/rl78/rl78.c: Likewise.
18419 * config/rs6000/rs6000-c.c: Likewise.
18420 * config/rs6000/rs6000.c: Likewise.
18421 * config/rx/rx.c: Likewise.
18422 * config/s390/s390-c.c: Likewise.
18423 * config/s390/s390.c: Likewise.
18424 * config/sh/sh-c.c: Likewise.
18425 * config/sh/sh-mem.cc: Likewise.
18426 * config/sh/sh.c: Likewise.
18427 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18428 * config/sh/sh_treg_combine.cc: Likewise.
18429 * config/sol2-c.c: Likewise.
18430 * config/sol2-cxx.c: Likewise.
18431 * config/sol2-stubs.c: Likewise.
18432 * config/sol2.c: Likewise.
18433 * config/sparc/sparc-c.c: Likewise.
18434 * config/sparc/sparc.c: Likewise.
18435 * config/spu/spu-c.c: Likewise.
18436 * config/spu/spu.c: Likewise.
18437 * config/stormy16/stormy16.c: Likewise.
18438 * config/tilegx/mul-tables.c: Likewise.
18439 * config/tilegx/tilegx-c.c: Likewise.
18440 * config/tilegx/tilegx.c: Likewise.
18441 * config/tilepro/mul-tables.c: Likewise.
18442 * config/tilepro/tilepro-c.c: Likewise.
18443 * config/tilepro/tilepro.c: Likewise.
18444 * config/v850/v850-c.c: Likewise.
18445 * config/v850/v850.c: Likewise.
18446 * config/vax/vax.c: Likewise.
18447 * config/visium/visium.c: Likewise.
18448 * config/vms/vms-c.c: Likewise.
18449 * config/vms/vms.c: Likewise.
18450 * config/vxworks.c: Likewise.
18451 * config/winnt-c.c: Likewise.
18452 * config/xtensa/xtensa.c: Likewise.
18453 * common/config/bfin/bfin-common.c: Likewise.
18454
18455 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
18456
18457 * tree.h (tree_code_for_canonical_type_merging): New function.
18458 * tree.c (gimple_canonical_types_compatible_p): Use
18459 tree_code_for_canonical_type_merging..
18460
18461 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18462
18463 PR c++/66192
18464 PR target/66200
18465 * doc/tm.texi: Regenerate.
18466 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18467 * target.def (TARGET_RELAXED_ORDERING): Likewise.
18468 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18469 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18470 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18471 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18472 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18473 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18474 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18475
18476 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18477
18478 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18479 register fma steering pass.
18480 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18481 AARCH64_TUNE_FMA_STEERING.
18482
18483 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
18484
18485 * tree.c (verify_type_variant): Verify that type and variant is
18486 compatible.
18487 (gimple_canonical_types_compatible_p): Look for main variants.
18488
18489 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18490
18491 * config.gcc (powerpc*-*-*): Add support for a new configure
18492 option --with-advance-toolchain=<xxx> which overrides using the
18493 default header files, libraries and dynamic linker.
18494
18495 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18496 specs to support the configure --with-advance-toolchain=<xxx>
18497 option.
18498 (INCLUDE_EXTRA_SPEC): Likewise.
18499 (LINK_OS_EXTRA_SPEC32): Likewise.
18500 (LINK_OK_EXTRA_SPEC64): Likewise.
18501 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18502 (DYNAMIC_LINKER_PREFIX): Likewise.
18503 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18504 toolchain support.
18505 (GLIBC_DYNAMIC_LINKER32): Likewise.
18506 (GLIBC_DYNAMIC_LINKER64): Likewise.
18507 (LINK_OS_LINUX_SPEC32): Likewise.
18508 (LINK_OS_LINUX_SPEC64): Likewise.
18509
18510 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18511 configuration option.
18512
18513 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
18514
18515 PR target/66275
18516 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18517 to determine current function ABI.
18518 (ix86_function_value_regno_p): Ditto.
18519
18520 2015-06-03 Martin Liska <mliska@suse.cz>
18521
18522 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18523 * bitmap.h (struct bitmap_usage): Likewise.
18524 * ggc-common.c (struct ggc_usage): Likewise.
18525 * mem-stats.h (struct mem_location): Likewise.
18526 (struct mem_usage): Likewise.
18527 * vec.c (struct vec_usage): Likewise.
18528
18529 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
18530
18531 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18532 -Bsymbolic.
18533
18534 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
18535
18536 * doc/plugins.texi (enum plugin_event): New event.
18537 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18538 and PLUGIN_FINISH_FUNCTION.
18539 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18540 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18541
18542 2015-06-03 Richard Biener <rguenther@suse.de>
18543
18544 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18545 compute GROUP_GAP for the first element.
18546 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18547 on in-group gaps.
18548
18549 2015-06-03 Nick Clifton <nickc@redhat.com>
18550
18551 * config/rl78/rl78-real.md: Add peepholes to avoid a register
18552 copy when calling a function.
18553 * config/rl78/rl78.c (need_to_save): Do not push the frame
18554 pointer in an interrupt handler prologue if it is never used.
18555
18556 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18557
18558 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18559
18560 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18561
18562 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18563 reference when cloning alias node.
18564
18565 2015-06-03 Martin Liska <mliska@suse.cz>
18566
18567 * alloc-pool.h (struct pool_usage): Correct space padding.
18568 * ggc-page.c (ggc_print_statistics): Align columns in a report.
18569 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18570 * tree.c (dump_tree_statistics): Align columns in a report.
18571
18572 2015-06-03 Martin Liska <mliska@suse.cz>
18573
18574 * alloc-pool.c (allocate_pool_descriptor): Remove.
18575 (struct pool_output_info): Likewise.
18576 (print_alloc_pool_statistics): Likewise.
18577 (dump_alloc_pool_statistics): Likewise.
18578 * alloc-pool.h (struct pool_usage): New struct.
18579 (pool_allocator::initialize): Change usage of memory statistics
18580 to a new interface.
18581 (pool_allocator::release): Likewise.
18582 (pool_allocator::allocate): Likewise.
18583 (pool_allocator::remove): Likewise.
18584 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18585 for a pool allocator.
18586 * mem-stats.h (struct mem_location): Add new ctor.
18587 (struct mem_usage): Add counter for number of
18588 instances.
18589 (mem_alloc_description::register_descriptor): New overload of
18590 * mem-stats.h (mem_location::to_string): New function.
18591 * bitmap.h (struct bitmap_usage): Use this new function.
18592 * ggc-common.c (struct ggc_usage): Likewise.
18593 the function.
18594
18595 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18596
18597 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18598 of GCC_INSN_FLAGS_H block.
18599
18600 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18601
18602 * explow.c (plus_constant): Update check after force_const_mem call
18603 to see if the value returned is not a NULL_RTX.
18604
18605 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18606
18607 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18608 remove instumentation thunks calling reachable functions.
18609 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18610 * lto/lto-partition.c (privatize_symbol_name_1): New.
18611 (privatize_symbol_name): Privatize both decl and orig_decl
18612 names for instrumented functions.
18613 * cgraph.c (cgraph_node::verify_node): Add transparent
18614 alias chain check for instrumented node.
18615
18616 2015-06-03 Marek Polacek <polacek@redhat.com>
18617
18618 PR c/64223
18619 PR c/29358
18620 * tree.c (attribute_value_equal): Handle attribute format.
18621 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18622
18623 2015-06-03 Richard Biener <rguenther@suse.de>
18624
18625 PR tree-optimization/63916
18626 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18627 Forward-propagate non-invariant addresses by splicing their
18628 reference ops if the result isn't going to be used by PRE.
18629 (vn_reference_lookup_3): Remove pointless assert.
18630
18631 2015-06-03 Richard Biener <rguenther@suse.de>
18632
18633 PR tree-optimization/66375
18634 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18635 add to the evolution before following SSA edges.
18636
18637 2015-06-03 Bin Cheng <bin.cheng@arm.com>
18638
18639 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18640 (dump_use, dump_cand, find_induction_variables): Pass new argument
18641 to dump_iv.
18642 (record_use): Preserve the ssa name information in IV.
18643
18644 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18645
18646 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18647 NO_MODE_TEST.
18648 (add_mode_tests): Don't add mode tests if the predicate only
18649 accepts scalar constant integers. Otherwise, allow the mode
18650 of "op" to be VOIDmode if the predicate does accept such integers.
18651
18652 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
18653
18654 PR target/66258
18655 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18656 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18657 (aarch64_secondary_reload): Likewise
18658 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18659 to !TARGET_FLOAT.
18660 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18661 Likewise.
18662
18663 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
18664 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18665
18666 PR target/65768
18667 * cprop.c (try_replace_reg): Check cost of constants before propagating.
18668
18669 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18670
18671 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18672 provide access to the IBM extended double floating point mode if
18673 long double is IEEE 128-bit floating point.
18674 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18675 point if long double is the IBM extended double type.
18676
18677 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18678 enable adding IEEE 128-bit floating point support.
18679 (-mfloat128-software): Likewise.
18680 (-mfloat128-sw): Likewise.
18681
18682 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18683 128-bit floating point types to occupy any register if
18684 -mlong-double-64. Do not allow use of IFmode/KFmode unless
18685 -mfloat128-software is enabled.
18686 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18687 support.
18688 (rs6000_option_override_internal): Add -mfloat128-* support.
18689 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18690
18691 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18692 and float128 type nodes.
18693 (ieee128_float_type_node): Likewise.
18694 (ibm128_float_type_node): Likewise.
18695
18696 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18697
18698 PR target/66136
18699 * config/aarch64/geniterators.sh: Rewrite in awk.
18700
18701 2015-06-02 Martin Liska <mliska@suse.cz>
18702
18703 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18704 values to avoid -Wmaybe-uninitialized errors.
18705
18706 2015-06-02 Richard Biener <rguenther@suse.de>
18707
18708 PR debug/65549
18709 * dwarf2out.c (lookup_context_die): New function.
18710 (resolve_addr): Avoid forcing a full DIE for the
18711 target of a DW_TAG_GNU_call_site during late compilation.
18712 Instead create a stub DIE without a type if we have a
18713 context DIE present.
18714
18715 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
18716
18717 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18718
18719 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18720
18721 PR tree-optimization/48052
18722 * cfgloop.h (struct control_iv): New.
18723 (struct loop): New field control_ivs.
18724 * tree-ssa-loop-niter.c : Include "stor-layout.h".
18725 (number_of_iterations_lt): Set no_overflow information.
18726 (number_of_iterations_exit): Init control iv in niter struct.
18727 (record_control_iv): New.
18728 (estimate_numbers_of_iterations_loop): Call record_control_iv.
18729 (loop_exits_before_overflow): New. Interface factored out of
18730 scev_probably_wraps_p.
18731 (scev_probably_wraps_p): Factor loop niter related code into
18732 loop_exits_before_overflow.
18733 (free_numbers_of_iterations_estimates_loop): Free control ivs.
18734 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18735
18736 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
18737
18738 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18739 the target doesn't belong to the current function.
18740
18741 2015-06-02 Marek Polacek <polacek@redhat.com>
18742
18743 PR middle-end/66345
18744 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18745 get_maxval_strlen does not produce an INTEGER_CST.
18746
18747 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
18748
18749 * config/arc/constraints.md: Use lower-case names in match_code.
18750 * config/mmix/constraints.md: Likewise.
18751
18752 2015-06-02 Richard Biener <rguenther@suse.de>
18753
18754 PR tree-optimization/65961
18755 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18756 check and clarify dump message.
18757 (vect_build_slp_tree): If all children are built up from scalars
18758 build up the parent from scalars instead.
18759 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18760
18761 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
18762
18763 PR other/65366
18764 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
18765 instead of print ... .
18766
18767 2015-06-02 Alan Modra <amodra@gmail.com>
18768
18769 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18770 2014-08-11 change.
18771
18772 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18773
18774 PR tree-optimization/52563
18775 PR tree-optimization/62173
18776 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
18777 (alloc_iv, set_iv): New parameter.
18778 (determine_biv_step): Delete.
18779 (find_bivs): Inline original determine_biv_step. Pass new
18780 argument to set_iv.
18781 (idx_find_step): Use no_overflow information for conversion.
18782 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18783 resolve_mixers handle folded_casts.
18784 (instantiate_scev_name): Change bool parameter to bool pointer.
18785 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18786 (instantiate_array_ref, instantiate_scev_not): Ditto.
18787 (instantiate_scev_3, instantiate_scev_2): Ditto.
18788 (instantiate_scev_1, instantiate_scev_r): Ditto.
18789 (instantiate_scev_convert, ): Change parameter. Pass argument
18790 to chrec_convert_aggressive.
18791 (instantiate_scev): Change argument.
18792 (resolve_mixers): New parameter and set it.
18793 (scev_const_prop): New argument.
18794 * tree-scalar-evolution.h (resolve_mixers): New parameter.
18795 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18796 of chrec_conert_1.
18797 (chrec_convert): New parameter. Move definition below.
18798 (chrec_convert_aggressive): New parameter and set it. Call
18799 convert_affine_scev.
18800 * tree-chrec.h (chrec_convert): New parameter.
18801 (chrec_convert_aggressive): Ditto.
18802
18803 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18804
18805 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18806 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18807 the LHS of a no-return call if its type has variable size.
18808 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18809 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18810
18811 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
18812
18813 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18814 * config.in: Regenerate.
18815
18816 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18817
18818 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18819 consecutive accesses within outer-loop with force_vectorize
18820 for references with zero step in inner-loop.
18821
18822 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18823
18824 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18825 rather than from gcc/build directory.
18826
18827 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18828
18829 PR target/65697
18830 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18831 for __sync memory models, emit initial loads and final barriers as
18832 appropriate.
18833
18834 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18835
18836 PR target/65697
18837 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18838 (aarch64_split_atomic_op): Check for __sync memory models, emit
18839 appropriate initial loads and final barriers.
18840
18841 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18842
18843 * Makefile.in: Fix gcov dependencies that should
18844 not point to a build folder.
18845
18846 2015-06-01 Richard Biener <rguenther@suse.de>
18847
18848 Revert
18849 2015-05-29 Richard Biener <rguenther@suse.de>
18850
18851 PR tree-optimization/66314
18852 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18853 parameter that says which loop the new block belongs to.
18854 (ssa_create_duplicates): Blocks duplicated for the threaded
18855 path belong to the loop of the thread destination.
18856
18857 2015-06-01 Martin Liska <mliska@suse.cz>
18858
18859 * sched-deps.c: Include pool-alloc.h before
18860 cselib.h header file is included.
18861
18862 2015-06-01 Richard Biener <rguenther@suse.de>
18863
18864 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18865 functions.
18866
18867 2015-06-01 Martin Liska <mliska@suse.cz>
18868
18869 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18870 a function local variable.
18871
18872 2015-06-01 Martin Liska <mliska@suse.cz>
18873
18874 * alloc-pool.c (create_alloc_pool): Remove.
18875 (empty_alloc_pool): Likewise.
18876 (free_alloc_pool): Likewise.
18877 (free_alloc_pool_if_empty): Likewise.
18878 (pool_alloc): Likewise.
18879 (pool_free): Likewise.
18880 * alloc-pool.h: Remove old declarations.
18881
18882 2015-06-01 Martin Liska <mliska@suse.cz>
18883
18884 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18885 (ira_create_object): Likewise.
18886 (ira_create_allocno): Likewise.
18887 (ira_create_live_range): Likewise.
18888 (copy_live_range): Likewise.
18889 (ira_finish_live_range): Likewise.
18890 (ira_free_allocno_costs): Likewise.
18891 (finish_allocno): Likewise.
18892 (finish_allocnos): Likewise.
18893 (initiate_prefs): Likewise.
18894 (ira_create_pref): Likewise.
18895 (finish_pref): Likewise.
18896 (finish_prefs): Likewise.
18897 (initiate_copies): Likewise.
18898 (ira_create_copy): Likewise.
18899 (finish_copy): Likewise.
18900 (finish_copies): Likewise.
18901 (finish_prefs): Likewise.
18902
18903 2015-06-01 Martin Liska <mliska@suse.cz>
18904
18905 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18906 (allocate_and_init_ipcp_value): Likewise.
18907 (ipcp_lattice::add_value): Likewise.
18908 (merge_agg_lats_step): Likewise.
18909 (ipcp_driver): Likewise.
18910 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18911 (ipa_free_all_structures_after_iinln): Likewise.
18912 * ipa-prop.h: Likewise.
18913
18914 2015-06-01 Martin Liska <mliska@suse.cz>
18915
18916 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18917 pool allocator.
18918 (set_hint_predicate): Likewise.
18919 (inline_summary_alloc): Likewise.
18920 (reset_inline_edge_summary): Likewise.
18921 (reset_inline_summary): Likewise.
18922 (set_cond_stmt_execution_predicate): Likewise.
18923 (set_switch_stmt_execution_predicate): Likewise.
18924 (compute_bb_predicates): Likewise.
18925 (estimate_function_body_sizes): Likewise.
18926 (inline_free_summary): Likewise.
18927
18928 2015-06-01 Martin Liska <mliska@suse.cz>
18929
18930 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18931 (ipa_edge_duplication_hook): Likewise.
18932 (ipa_free_all_structures_after_ipa_cp): Likewise.
18933 (ipa_free_all_structures_after_iinln): Likewise.
18934
18935 2015-06-01 Martin Liska <mliska@suse.cz>
18936
18937 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18938 (ipa_profile_generate_summary): Likewise.
18939 (ipa_profile_read_summary): Likewise.
18940 (ipa_profile): Likewise.
18941
18942 2015-06-01 Martin Liska <mliska@suse.cz>
18943
18944 * tree-ssa-structalias.c (new_var_info): Use new type-based
18945 pool allocator.
18946 (new_constraint): Likewise.
18947 (init_alias_vars): Likewise.
18948 (delete_points_to_sets): Likewise.
18949
18950 2015-06-01 Martin Liska <mliska@suse.cz>
18951
18952 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18953 (free_strinfo): Likewise.
18954 (pass_strlen::execute): Likewise.
18955
18956 2015-06-01 Martin Liska <mliska@suse.cz>
18957
18958 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18959 pool allocator.
18960 (vn_reference_insert_pieces): Likewise.
18961 (vn_phi_insert): Likewise.
18962 (visit_reference_op_call): Likewise.
18963 (copy_phi): Likewise.
18964 (copy_reference): Likewise.
18965 (process_scc): Likewise.
18966 (allocate_vn_table): Likewise.
18967 (free_vn_table): Likewise.
18968
18969 2015-06-01 Martin Liska <mliska@suse.cz>
18970
18971 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18972 pool allocator.
18973 (add_repeat_to_ops_vec): Likewise.
18974 (get_ops): Likewise.
18975 (maybe_optimize_range_tests): Likewise.
18976 (init_reassoc): Likewise.
18977 (fini_reassoc): Likewise.
18978
18979 2015-06-01 Martin Liska <mliska@suse.cz>
18980
18981 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18982 pool allocator.
18983 (bitmap_set_new): Likewise.
18984 (get_or_alloc_expr_for_constant): Likewise.
18985 (get_or_alloc_expr_for): Likewise.
18986 (phi_translate_1): Likewise.
18987 (compute_avail): Likewise.
18988 (init_pre): Likewise.
18989 (fini_pre): Likewise.
18990
18991 2015-06-01 Martin Liska <mliska@suse.cz>
18992
18993 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18994 (delete_dep_node): Likewise.
18995 (create_deps_list): Likewise.
18996 (free_deps_list): Likewise.
18997 (sched_deps_init): Likewise.
18998 (sched_deps_finish): Likewise.
18999
19000 2015-06-01 Martin Liska <mliska@suse.cz>
19001
19002 * regcprop.c (free_debug_insn_changes): Use new type-based
19003 pool allocator.
19004 (replace_oldest_value_reg): Likewise.
19005 (pass_cprop_hardreg::execute): Likewise.
19006
19007 2015-06-01 Martin Liska <mliska@suse.cz>
19008
19009 * ira-build.c (initiate_cost_vectors): Use new type-based
19010 pool allocator.
19011 (ira_allocate_cost_vector): Likewise.
19012 (ira_free_cost_vector): Likewise.
19013 (finish_cost_vectors): Likewise.
19014
19015 2015-06-01 Martin Liska <mliska@suse.cz>
19016
19017 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19018 pool allocator.
19019 (free_sched_pools): Likewise.
19020 * sel-sched-ir.h (_list_alloc): Likewise.
19021 (_list_remove): Likewise.
19022
19023 2015-06-01 Martin Liska <mliska@suse.cz>
19024
19025 * stmt.c (add_case_node): Use new type-based pool allocator.
19026 (expand_case): Likewise.
19027 (expand_sjlj_dispatch_table): Likewise.
19028
19029 2015-06-01 Martin Liska <mliska@suse.cz>
19030
19031 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19032 (free_bb): Likewise.
19033 (pass_cse_reciprocals::execute): Likewise.
19034
19035 2015-06-01 Martin Liska <mliska@suse.cz>
19036
19037 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19038 (sra_deinitialize) Likewise.
19039 (create_access_1) Likewise.
19040 (build_accesses_from_assign) Likewise.
19041 (create_artificial_child_access) Likewise.
19042
19043 2015-06-01 Martin Liska <mliska@suse.cz>
19044
19045 * dse.c (get_group_info):Use new type-based pool allocator.
19046 (dse_step0) Likewise.
19047 (free_store_info) Likewise.
19048 (delete_dead_store_insn) Likewise.
19049 (free_read_records) Likewise.
19050 (record_store) Likewise.
19051 (replace_read) Likewise.
19052 (check_mem_read_rtx) Likewise.
19053 (scan_insn) Likewise.
19054 (dse_step1) Likewise.
19055 (dse_step7) Likewise.
19056
19057 2015-06-01 Martin Liska <mliska@suse.cz>
19058
19059 * df-scan.c (struct df_scan_problem_data):Use new type-based
19060 pool allocator.
19061 (df_scan_free_internal) Likewise.
19062 (df_scan_alloc) Likewise.
19063 (df_grow_reg_info) Likewise.
19064 (df_free_ref) Likewise.
19065 (df_insn_create_insn_record) Likewise.
19066 (df_mw_hardreg_chain_delete) Likewise.
19067 (df_insn_info_delete) Likewise.
19068 (df_free_collection_rec) Likewise.
19069 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19070 (df_sort_and_compress_mws) Likewise.
19071 (df_ref_create_structure) Likewise.
19072 (df_ref_record) Likewise.
19073
19074 2015-06-01 Martin Liska <mliska@suse.cz>
19075
19076 * df-problems.c (df_chain_create):Use new type-based pool allocator.
19077 (df_chain_unlink_1) Likewise.
19078 (df_chain_unlink) Likewise.
19079 (df_chain_remove_problem) Likewise.
19080 (df_chain_alloc) Likewise.
19081 (df_chain_free) Likewise.
19082 * df.h (struct dataflow) Likewise.
19083
19084 2015-06-01 Martin Liska <mliska@suse.cz>
19085
19086 * cselib.c (new_elt_list):Use new type-based pool allocator.
19087 (new_elt_loc_list) Likewise.
19088 (unchain_one_elt_list) Likewise.
19089 (unchain_one_elt_loc_list) Likewise.
19090 (unchain_one_value) Likewise.
19091 (new_cselib_val) Likewise.
19092 (cselib_init) Likewise.
19093 (cselib_finish) Likewise.
19094
19095 2015-06-01 Martin Liska <mliska@suse.cz>
19096
19097 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19098 (sh_reorg) Likewise.
19099
19100 2015-06-01 Martin Liska <mliska@suse.cz>
19101
19102 * cfg.c (initialize_original_copy_tables):Use new type-based
19103 pool allocator.
19104 (free_original_copy_tables) Likewise.
19105 (copy_original_table_clear) Likewise.
19106 (copy_original_table_set) Likewise.
19107
19108 2015-06-01 Martin Liska <mliska@suse.cz>
19109
19110 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19111 pool allocator.
19112 (asan_mem_ref_new) Likewise.
19113 (free_mem_ref_resources) Likewise.
19114
19115 2015-06-01 Martin Liska <mliska@suse.cz>
19116
19117 * var-tracking.c (variable_htab_free):Use new type-based
19118 pool allocator.
19119 (attrs_list_clear) Likewise.
19120 (attrs_list_insert) Likewise.
19121 (attrs_list_copy) Likewise.
19122 (shared_hash_unshare) Likewise.
19123 (shared_hash_destroy) Likewise.
19124 (unshare_variable) Likewise.
19125 (var_reg_delete_and_set) Likewise.
19126 (var_reg_delete) Likewise.
19127 (var_regno_delete) Likewise.
19128 (drop_overlapping_mem_locs) Likewise.
19129 (variable_union) Likewise.
19130 (insert_into_intersection) Likewise.
19131 (canonicalize_values_star) Likewise.
19132 (variable_merge_over_cur) Likewise.
19133 (dataflow_set_merge) Likewise.
19134 (remove_duplicate_values) Likewise.
19135 (variable_post_merge_new_vals) Likewise.
19136 (dataflow_set_preserve_mem_locs) Likewise.
19137 (dataflow_set_remove_mem_locs) Likewise.
19138 (variable_from_dropped) Likewise.
19139 (variable_was_changed) Likewise.
19140 (set_slot_part) Likewise.
19141 (clobber_slot_part) Likewise.
19142 (delete_slot_part) Likewise.
19143 (loc_exp_insert_dep) Likewise.
19144 (notify_dependents_of_changed_value) Likewise.
19145 (emit_notes_for_differences_1) Likewise.
19146 (vt_emit_notes) Likewise.
19147 (vt_initialize) Likewise.
19148 (vt_finalize) Likewise.
19149
19150 2015-06-01 Martin Liska <mliska@suse.cz>
19151
19152 * ira-color.c (init_update_cost_records):Use new type-based
19153 pool allocator.
19154 (get_update_cost_record) Likewise.
19155 (free_update_cost_record_list) Likewise.
19156 (finish_update_cost_records) Likewise.
19157 (initiate_cost_update) Likewise.
19158
19159 2015-06-01 Martin Liska <mliska@suse.cz>
19160
19161 * lra.c (init_insn_regs): Use new type-based pool allocator.
19162 (new_insn_reg) Likewise.
19163 (free_insn_reg) Likewise.
19164 (free_insn_regs) Likewise.
19165 (finish_insn_regs) Likewise.
19166 (init_insn_recog_data) Likewise.
19167 (init_reg_info) Likewise.
19168 (finish_reg_info) Likewise.
19169 (lra_free_copies) Likewise.
19170 (lra_create_copy) Likewise.
19171 (invalidate_insn_data_regno_info) Likewise.
19172
19173 2015-06-01 Martin Liska <mliska@suse.cz>
19174
19175 * lra-lives.c (free_live_range): Use new type-based pool allocator.
19176 (free_live_range_list) Likewise.
19177 (create_live_range) Likewise.
19178 (copy_live_range) Likewise.
19179 (lra_merge_live_ranges) Likewise.
19180 (remove_some_program_points_and_update_live_ranges) Likewise.
19181 (lra_live_ranges_init) Likewise.
19182 (lra_live_ranges_finish) Likewise.
19183
19184 2015-06-01 Martin Liska <mliska@suse.cz>
19185
19186 * et-forest.c (et_new_occ): Use new type-based pool allocator.
19187 (et_new_tree): Likewise.
19188 (et_free_tree): Likewise.
19189 (et_free_tree_force): Likewise.
19190 (et_free_pools): Likewise.
19191 (et_split): Likewise.
19192
19193 2015-06-01 Martin Liska <mliska@suse.cz>
19194
19195 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19196 to header file.
19197 * alloc-pool.h (pool_allocator::pool_allocator): New function.
19198 (pool_allocator::release): Likewise.
19199 (inline pool_allocator::release_if_empty): Likewise.
19200 (inline pool_allocator::~pool_allocator): Likewise.
19201 (pool_allocator::allocate): Likewise.
19202 (pool_allocator::remove): Likewise.
19203
19204 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19205
19206 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19207 in comment.
19208
19209 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19210
19211 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19212 to fusible_ops.
19213 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19214 (arm_macro_fusion_p): Likewise.
19215 (arm_macro_fusion_pair_p): Likewise.
19216
19217 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19218
19219 * config/aarch64/aarch64-protos.h (tune_params): Rename
19220 fuseable_ops to fusible_ops.
19221 * config/aarch64/aarch64.c (generic_tunings): Rename
19222 fuseable_ops to fusible_ops.
19223 (cortexa53_tunings): Likewise.
19224 (cortexa57_tunings): Likewise.
19225 (thunderx_tunings): Likewise.
19226 (xgene1_tunings): Likewise.
19227 (aarch64_macro_fusion_p): Likewise.
19228 (aarch64_macro_fusion_pair_p): Likewise.
19229
19230 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
19231
19232 * config/s390/driver-native.c: New file.
19233 * config/s390/x-native: New file.
19234 * config.host: Add new files for s390.
19235 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19236 and -march=native
19237 * config.gcc: Likewise.
19238 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19239 * config/s390/s390-opts.h (enum processor_type): Ditto.
19240 * config/s390/s390.c (s390_option_override): Catch unhandled
19241 PROCESSOR_NATIVE
19242
19243 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
19244
19245 PR target/65527
19246 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19247 redirection for instrumented calls.
19248 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19249 (append_compiler_options): Append -fcheck-pointer-bounds.
19250 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19251 (chkp_redirect_edge): New.
19252 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19253 (chkp_redirect_edge): New.
19254
19255 2015-06-01 Richard Biener <rguenther@suse.de>
19256
19257 PR tree-optimization/66280
19258 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19259 def-use walking.
19260
19261 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19262
19263 * config/aarch64/aarch64.md
19264 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19265 logic_shift_imm.
19266
19267 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19268
19269 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19270 Remove obsolete kludge.
19271
19272 2015-06-01 Richard Biener <rguenther@suse.de>
19273
19274 * tree-ssa-reassoc.c (get_rank): Simplify.
19275
19276 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
19277
19278 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19279 * configure: Regenerated.
19280
19281 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
19282
19283 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19284 issue (add space between string literal and macro).
19285 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19286
19287 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
19288
19289 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19290 implict or explicit -fPIE or -fpie.
19291
19292 2015-05-30 Mike Frysinger <vapier@gentoo.org>
19293
19294 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19295
19296 2015-05-28 DJ Delorie <dj@redhat.com>
19297
19298 * expmed.c (extract_bit_field_1): Avoid clobbering a
19299 yet-to-be-used base/index register.
19300
19301 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
19302
19303 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19304 (alias_stats): Add num_universal.
19305 (alias_set_subset_of): Special case pointers; be ready for NULL
19306 children.
19307 (alias_sets_conflict_p): Special case pointers; be ready for NULL
19308 children.
19309 (init_alias_set_entry): Break out from ...
19310 (record_alias_subset): ... here; propagate new fields;
19311 allocate children only when really needed.
19312 (get_alias_set): Do less generous pointer globbing.
19313 (dump_alias_stats_in_alias_c): Update statistics.
19314
19315 2015-05-30 Alan Modra <amodra@gmail.com>
19316
19317 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19318 correct block for use of r12.
19319 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19320
19321 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19322
19323 PR target/66215
19324 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19325 with -mhotpatch=.
19326
19327 2015-05-29 Jakub Jelinek <jakub@redhat.com>
19328
19329 PR tree-optimization/66142
19330 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19331 virtual phis that feed themselves.
19332
19333 2015-05-29 Richard Biener <rguenther@suse.de>
19334
19335 PR tree-optimization/66314
19336 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19337 parameter that says which loop the new block belongs to.
19338 (ssa_create_duplicates): Blocks duplicated for the threaded
19339 path belong to the loop of the thread destination.
19340
19341 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19342
19343 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19344 to cleanup-saved-temps.
19345 * doc/sourcebuild.texi (Clean up generated test files): Expand
19346 introduction.
19347 (dg-keep-saved-temps): Document new proc.
19348 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19349 cleanup-saved-temps): Remove.
19350
19351 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
19352
19353 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19354 gcc_AC_CHECK_DECLS.
19355 * configure: Regenerate.
19356
19357 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19358
19359 * config/nios2/linux.h (CPP_SPEC): Define.
19360
19361 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19362
19363 * config/microblaze/linux.h (CPP_SPEC): Define.
19364
19365 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19366
19367 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19368 -pthread is specified.
19369
19370 2015-05-28 Richard Biener <rguenther@suse.de>
19371
19372 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19373 (vect_fixup_scalar_cycles_with_patterns): Likewise.
19374 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19375 after pattern recog.
19376 (vect_create_epilog_for_reduction): Properly handle reductions
19377 with patterns.
19378 (vectorizable_reduction): Likewise.
19379 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19380 reduction chains.
19381 (vect_get_constant_vectors): Create the correct number of
19382 initial values for reductions.
19383 (vect_schedule_slp_instance): Handle reduction chains that are
19384 type changing properly.
19385 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19386
19387 2015-05-28 Richard Biener <rguenther@suse.de>
19388
19389 PR tree-optimization/66142
19390 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19391 values better in memcpy destination handling. Handle non-aliasing
19392 we discover here.
19393
19394 2015-05-28 Lawrence Velázquez <vq@larryv.me>
19395
19396 PR target/63810
19397 * config/darwin-c.c (version_components): New global enum.
19398 (parse_version, version_as_legacy_macro)
19399 (version_as_modern_macro, macosx_version_as_macro): New functions.
19400 (version_as_macro): Remove.
19401 (darwin_cpp_builtins): Use new function.
19402
19403 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
19404
19405 * builtins.c (expand_builtin_acc_on_device): Mark parameters
19406 with ATTRIBUTE_UNUSED.
19407
19408 2015-05-28 Julian Brown <julian@codesourcery.com>
19409
19410 PR libgomp/65742
19411
19412 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19413 sequence for !ACCEL_COMPILER.
19414
19415 2015-05-28 Nick Clifton <nickc@redhat.com>
19416
19417 * config/rx/rx.c (push_regs): New function. Extracts code from...
19418 (rx_expand_prologue): ... here. Use push_regs to push even small
19419 spans of registers.
19420 (pop_regs): New function.
19421 (rx_expand_epilogue): Use pop_regs to pop even small spans of
19422 registers.
19423
19424 2015-05-28 Richard Biener <rguenther@suse.de>
19425
19426 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19427 member.
19428 (SLP_INSTANCE_BODY_COST_VEC): Remove.
19429 (vect_update_slp_costs_according_to_vf): Likewise.
19430 (vect_slp_analyze_operations): Update prototype.
19431 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19432 vect_update_slp_costs_according_to_vf, adjust.
19433 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19434 (vect_analyze_slp_cost_1): Likewise.
19435 (vect_analyze_slp_cost): Likewise. Properly deal with
19436 widening reduction ops. Commit body costs.
19437 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
19438 cost for loops from here.
19439 (vect_slp_analyze_operations): But do it from here when
19440 the vectorization factor is known and stmts are analyzed.
19441 (vect_bb_vectorization_profitable_p): Simplify.
19442 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19443 (vect_update_slp_costs_according_to_vf): Remove.
19444
19445 2015-05-27 Magnus Granberg <zorry@gentoo.org>
19446 H.J. Lu <hongjiu.lu@intel.com>
19447
19448 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19449 (BUILD_CFLAGS): Likewise.
19450 (BUILD_CXXFLAGS): Likewise.
19451 (LINKER): Add @NO_PIE_FLAG@.
19452 (BUILD_LDFLAGS): Likewise.
19453 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19454 --enable-default-pie.
19455 * common.opt (fPIE): Initialize to -1.
19456 (fpie): Likewise.
19457 (no-pie): New option.
19458 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19459 * configure.ac: Add --enable-default-pie.
19460 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
19461 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
19462 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
19463 * gcc.c (NO_PIE_SPEC): New.
19464 (PIE_SPEC): Likewise.
19465 (NO_FPIE1_SPEC): Likewise.
19466 (FPIE1_SPEC): Likewise.
19467 (NO_FPIE2_SPEC): Likewise.
19468 (FPIE2_SPEC): Likewise.
19469 (NO_FPIE2_SPEC): Likewise.
19470 (FPIE_SPEC): Likewise.
19471 (NO_FPIE_SPEC): Likewise.
19472 (NO_FPIC1_SPEC): Likewise.
19473 (FPIC1_SPEC): Likewise.
19474 (NO_FPIC2_SPEC): Likewise.
19475 (FPIC2_SPEC): Likewise.
19476 (NO_FPIC2_SPEC): Likewise.
19477 (FPIC_SPEC): Likewise.
19478 (NO_FPIC_SPEC): Likewise.
19479 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19480 (FPIE1_OR_FPIC1_SPEC): Likewise.
19481 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19482 (FPIE2_OR_FPIC2_SPEC): Likewise.
19483 (NO_FPIE_AND_FPIC_SPEC): Likewise.
19484 (FPIE_OR_FPIC_SPEC): Likewise.
19485 (LD_PIE_SPEC): Likewise.
19486 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
19487 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19488 * config/darwin.h (PIE_SPEC): Renamed to ...
19489 (DARWIN_PIE_SPEC): This.
19490 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19491 * config/darwin9.h (PIE_SPEC): Renamed to ...
19492 (DARWIN_PIE_SPEC): This.
19493 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19494 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19495 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19496 FPIE2_OR_FPIC2_SPEC.
19497 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19498 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19499 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19500 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19501 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19502 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19503 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19504 * config/m32r/m32r.h (ASM_SPEC): Likewise.
19505 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19506 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19507 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19508 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19509 * config/sparc/linux.h (ASM_SPEC): Likewise.
19510 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19511 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19512 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19513 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19514 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19515 * config/sparc/sparc.h (ASM_SPEC): Likewise.
19516 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19517 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19518 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19519 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19520 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19521 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19522 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19523 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19524 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19525 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19526 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19527 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19528 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19529 * config/vax/linux.h (ASM_SPEC): Likewise.
19530 * doc/install.texi: Document --enable-default-pie.
19531 * doc/invoke.texi: Document -no-pie.
19532 * config.in: Regenerated.
19533 * configure: Likewise.
19534
19535 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19536
19537 PR rtl-optimization/66168
19538 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19539 can_move_invariant_reg.
19540
19541 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
19542
19543 PR target/66148
19544 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19545 REG_EQUAL note when doing insert.
19546
19547 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19548 instead of "%d" for 'o' operand.
19549
19550 2015-05-27 Nathan Sidwell <nathan@acm.org>
19551
19552 PR c++/66270
19553 * tree.c (build_pointer_type_for_mode): Canonical type does not
19554 inherit can_alias_all.
19555 (build_reference_type_for_mode): Likewise.
19556
19557 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
19558
19559 * expr.h (array_at_struct_end_p): Move to...
19560 (array_ref_element_size): Likewise.
19561 (component_ref_field_offset): Likewise.
19562 * tree.h (array_ref_element_size): ...here.
19563 (array_at_struct_end_p): Likewise.
19564 (component_ref_field_offset): Likewise.
19565 * expr.c (array_ref_element_size): Move to...
19566 (array_ref_low_bound): Likewise.
19567 (array_at_struct_end_p): Likewise.
19568 (array_ref_up_bound): Likewise.
19569 (component_ref_field_offset): Likewise.
19570 * tree.c (array_ref_element_size): ...here.
19571 (array_ref_low_bound): Likewise.
19572 (array_ref_up_bound): Likewise.
19573 (array_at_struct_end_p): Likewise.
19574 (component_ref_field_offset): Likewise.
19575
19576 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19577 Szabolcs Nagy <szabolcs.nagy@arm.com>
19578
19579 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19580
19581 2015-05-27 Jason Merrill <jason@redhat.com>
19582
19583 PR bootstrap/66304
19584 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19585 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19586 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19587
19588 2015-05-22 Aditya Kumar <hiraditya@msn.com>
19589
19590 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19591 is true.
19592
19593 * statistics.c (statistics_fini_pass): Print pass name.
19594
19595 2015-05-27 Richard Biener <rguenther@suse.de>
19596
19597 PR tree-optimization/66272
19598 Revert parts of
19599 2014-08-15 Richard Biener <rguenther@suse.de>
19600
19601 PR tree-optimization/62031
19602 * tree-data-ref.c (dr_analyze_indices): Do not set
19603 DR_UNCONSTRAINED_BASE.
19604 (dr_may_alias_p): All indirect accesses have to go the
19605 formerly DR_UNCONSTRAINED_BASE path.
19606 * tree-data-ref.h (struct indices): Remove
19607 unconstrained_base member.
19608 (DR_UNCONSTRAINED_BASE): Remove.
19609
19610 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
19611
19612 * dwarf2out.c: Remove block_map.
19613 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19614 (gen_lexical_block_die): Same.
19615 (dwarf2out_function_decl): Remove block_map use.
19616 (dwarf2out_c_finalize): Same.
19617 * tree-core.h (struct tree_block): Add die field.
19618 * tree.h (BLOCK_DIE): New.
19619
19620 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19621
19622 PR target/65358
19623 * expr.c (memory_load_overlap): New function.
19624 (emit_push_insn): When pushing partial args to the stack would
19625 clobber the register part load the overlapping part into a pseudo
19626 and put it into the hard reg after pushing. Change return type
19627 to bool. Add bool argument.
19628 * expr.h (emit_push_insn): Change return type to bool.
19629 Add bool argument.
19630 * calls.c (expand_call): Cancel sibcall optimization when encountering
19631 partial argument on targets with ARGS_GROW_DOWNWARD and
19632 !STACK_GROWS_DOWNWARD.
19633 (emit_library_call_value_1): Update callsite of emit_push_insn.
19634 (store_one_arg): Likewise.
19635
19636 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19637
19638 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19639
19640 2015-05-27 Martin Liska <mliska@suse.cz>
19641
19642 * Makefile.in: Add additional dependencies related to memory report
19643 enhancement.
19644 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19645 * bitmap.c (struct bitmap_descriptor_d): Remove.
19646 (struct loc): Likewise.
19647 (struct bitmap_desc_hasher): Likewise.
19648 (bitmap_desc_hasher::hash): Likewise.
19649 (bitmap_desc_hasher::equal): Likewise.
19650 (get_bitmap_descriptor): Likewise.
19651 (bitmap_register): User new memory descriptor API.
19652 (register_overhead): Likewise.
19653 (bitmap_find_bit): Register nsearches and search_iter statistics.
19654 (struct bitmap_output_info): Remove.
19655 (print_statistics): Likewise.
19656 (dump_bitmap_statistics): Use new memory descriptor.
19657 * bitmap.h (struct bitmap_usage): New class.
19658 * genmatch.c: Extend header file inclusion.
19659 * genpreds.c: Likewise.
19660 * ggc-common.c (struct ggc_usage): New class.
19661 (struct ggc_loc_desc_hasher): Remove.
19662 (ggc_loc_desc_hasher::hash): Likewise.
19663 (ggc_loc_desc_hasher::equal): Likewise.
19664 (struct ggc_ptr_hash_entry): Likewise.
19665 (struct ptr_hash_hasher): Likewise.
19666 (ptr_hash_hasher::hash): Likewise.
19667 (ptr_hash_hasher::equal): Likewise.
19668 (make_loc_descriptor): Likewise.
19669 (ggc_prune_ptr): Likewise.
19670 (dump_ggc_loc_statistics): Use new memory descriptor.
19671 (ggc_record_overhead): Likewise.
19672 (ggc_free_overhead): Likewise.
19673 (final_cmp_statistic): Remove.
19674 (cmp_statistic): Likewise.
19675 (ggc_add_statistics): Liekwise.
19676 (ggc_prune_overhead_list): Likewise.
19677 * hash-map-traits.h: New file.
19678 * hash-map.h (struct default_hashmap_traits): Move the traits to a
19679 separate header file.
19680 * hash-set.h: Pass memory statistics info to ctor.
19681 * hash-table.c (void dump_hash_table_loc_statistics): New function.
19682 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19683 (hash_table::~hash_table): Register memory release operation.
19684 (hash_table::alloc_entries): Handle memory allocation operation.
19685 (hash_table::expand): Likewise.
19686 * inchash.c (iterative_hash_hashval_t): Move implementation to header
19687 file.
19688 (iterative_hash_host_wide_int): Likewise.
19689 * inchash.h (class hash): Likewise.
19690 * mem-stats-traits.h: New file.
19691 * mem-stats.h: New file.
19692 (mem_location): Add new class.
19693 (mem_usage): Likewise.
19694 (mem_alloc_description): Likewise.
19695 * sese.c: Add new header file inclusision.
19696 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19697 and hash_set.
19698 * tree-sra.c: Add new header file inclusision.
19699 * vec.c (struct vec_descriptor): Remove.
19700 (hash_descriptor): Likewise.
19701 (struct vec_usage): Likewise.
19702 (struct ptr_hash_entry): Likewise.
19703 (hash_ptr): Likewise.
19704 (eq_ptr): Likewise.
19705 (vec_prefix::register_overhead): Use new memory descriptor API.
19706 (vec_prefix::release_overhead): Likewise.
19707 (add_statistics): Remove.
19708 (dump_vec_loc_statistics): Use new memory descriptor API.
19709 * vec.h (struct vec_prefix): Likewise.
19710 (va_heap::reserve): Likewise.
19711 (va_heap::release): Likewise.
19712 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19713
19714 2015-05-27 Richard Biener <rguenther@suse.de>
19715
19716 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19717 earlier and remove ??? comment.
19718 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19719 and got called from loop analysis bail out. Always pass the SLP
19720 node to the vectorizable_* functions.
19721 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19722 the premature SLP check here.
19723 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19724 detected SLP stmts.
19725 (vect_detect_hybrid_slp_1): Likewise.
19726
19727 2015-05-26 Jeff Law <law@redhat.com>
19728
19729 * combine.c (find_split_point): Verify that the shift count is a
19730 constant when choosing (plus (ashift ...)) as a split point.
19731
19732 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19733 No functional changes.
19734
19735 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
19736
19737 * ipa-polymorphic-call.c
19738 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19739 case when call target is already known.
19740
19741 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
19742
19743 PR target/65979
19744 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19745 take into account the case that operands[1] and operands[2]
19746 are the same register.
19747
19748 2015-05-26 Michael Matz <matz@suse.de>
19749
19750 PR middle-end/66251
19751
19752 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19753 stores.
19754 (vect_create_vectorized_demotion_stmts): Always set
19755 STMT_VINFO_VEC_STMT, also with SLP.
19756 (vectorizable_store): Handle strided group stores.
19757
19758 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19759
19760 PR target/66049
19761 * config/aarch64/aarch64.md
19762 (*adds_shift_imm_<mode>): New pattern.
19763 (*subs_shift_imm_<mode>): Likewise.
19764 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19765 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19766 (*add_uxt<mode>_shift2): Likewise.
19767 (*add_uxtsi_shift2_uxtw): Likewise.
19768 (*sub_uxt<mode>_shift2): Likewise.
19769 (*sub_uxtsi_shift2_uxtw): Likewise.
19770
19771 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
19772
19773 * config/rs6000/constraints.md (Y, U): Use match_test.
19774
19775 2015-05-26 Christian Bruel <christian.bruel@st.com>
19776
19777 PR target/52144
19778 * config/arm/arm.c (arm_option_check_internal)
19779 (arm_option_params_internal): Check opts->target_flags to set macros.
19780 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19781 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19782 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19783 (builtin_define): Replaced with def_or_undef_macro.
19784 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19785 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19786 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19787 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19788 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19789 (TARGET_ARM_FEATURE_LDREX_P)
19790 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19791 * config/arm/arm-c.c (def_or_undef_macro): New function.
19792 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19793
19794 2015-05-26 Christian Bruel <christian.bruel@st.com>
19795
19796 * c-common.h (builtin_define_with_int_value)
19797 (builtin_define_type_sizeof): Declare.
19798 * c-cppbuiltin.c (builtin_define_with_int_value)
19799 (builtin_define_type_sizeof): Externalize.
19800 (builtin_define_std): Cleanup declaration.
19801 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19802 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19803 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19804 (builtin_define, builtin_assert): New macros.
19805
19806 2015-05-26 Richard Biener <rguenther@suse.de>
19807
19808 PR tree-optimization/66142
19809 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19810 MEM_REFs for the same base address.
19811
19812 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19813
19814 PR ipa/66181
19815 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19816
19817 2015-05-26 Jason Merrill <jason@redhat.com>
19818
19819 * configure.ac: Set CXXFLAGS for ISL test.
19820 * configure: Regenerate.
19821
19822 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
19823 strstr and basename.
19824 * configure: Regenerate.
19825
19826 2015-05-26 Richard Biener <rguenther@suse.de>
19827
19828 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19829 X % C -> X & (C - 1) for C being a power-of two to ...
19830 * match.pd: ... patterns.
19831
19832 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
19833
19834 * match.pd (swapped_tcc_comparison): New operator list.
19835 (-A CMP -B): New simplification.
19836 * fold-const.c (fold_comparison): Remove corresponding code.
19837
19838 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19839
19840 * caller-save.c (init_caller_save): Base temporary register numbers
19841 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19842 * cfgloopanal.c (init_set_costs): Likewise.
19843 * dojump.c (prefer_and_bit_test): Likewise.
19844 * expr.c (init_expr_target): Likewise.
19845 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19846 * lower-subreg.c (init_lower_subreg): Likewise.
19847 * postreload.c (reload_cse_regs_1): Likewise.
19848
19849 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19850
19851 * gensupport.h (compute_test_codes): Declare.
19852 * gensupport.c (compute_predicate_codes): Rename to...
19853 (compute_test_codes): ...this. Generalize error message.
19854 (process_define_predicate): Update accordingly.
19855 * genpreds.c (compute_maybe_allows): Delete.
19856 (add_constraint): Use compute_test_codes to determine whether
19857 something can accept a SUBREG, REG or MEM.
19858
19859 2015-05-26 Torvald Riegel <triegel@redhat.com>
19860
19861 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19862 'memory model' to align with C++11; fix description of memory orders;
19863 fix a few typos.
19864
19865 2015-05-26 Richard Biener <rguenther@suse.de>
19866
19867 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19868 (vect_analyze_loop_operations): ... here. Remove slp parameter,
19869 detect whether we apply SLP. Remove call to
19870 vect_update_slp_costs_according_to_vf.
19871 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19872 vect_update_slp_costs_according_to_vf from here. Dispatch
19873 to vect_slp_analyze_operations to analyze SLP stmts.
19874 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19875 unused bb_vec_info parameter, adjust assert.
19876 (vect_slp_analyze_operations): Pass in the slp instance tree
19877 instead of bb_vec_info.
19878 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19879 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19880
19881 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19882
19883 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19884 Q_REGS. Expand comment.
19885 (REG_CLASS_NAMES): Ditto.
19886 (REG_CLASS_CONTENTS): Ditto.
19887
19888 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
19889
19890 PR target/66274
19891 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19892 when LEGACY_INT_REGNO_P is processed.
19893
19894 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19895
19896 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19897
19898 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19899
19900 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19901 register if not marked dead/unused, before return.
19902
19903 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19904
19905 PR lto/66180
19906 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19907 is set; check for assembler name at LTO time.
19908 (type_in_anonymous_namespace): Remove hacks, check that all
19909 anonymous types are called "<anon>"
19910 (odr_type_p): Simplify; add check for "<anon>"
19911 (odr_subtypes_equivalent): Add odr_type_p check.
19912 * tree.c (need_assembler_name_p): Even anonymous namespace needs
19913 assembler name.
19914
19915 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19916
19917 * ipa-utils.h (method_class_type): Remove.
19918 * cgraphunit.c (walk_polymorphic_call_targets): Use
19919 TYPE_METHOD_BASETYPE.
19920 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19921 on main variants only.
19922 (method_class_type): Remove.
19923 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19924 (build_type_inheritance_graph): Likewise.
19925 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19926 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19927 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19928
19929 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19930
19931 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19932 is_typedef_decl, typedef_variant_p): Constify.
19933 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19934 is_typedef_decl, typedef_variant_p): Constify.
19935
19936 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19937
19938 * defaults.h (gen_tablejump): New function.
19939 (HAVE_tablejump): Add default value.
19940 * expr.c: Adjust.
19941 * stmt.c: Likewise.
19942
19943 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19944
19945 * defaults.h (gen_store_multiple): New function.
19946 (HAVE_store_multiple): Add default value.
19947 * expr.c (move_block_from_reg): Adjust.
19948
19949 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19950
19951 * defaults.h (gen_load_multiple): New function.
19952 (HAVE_load_multiple): Add default value.
19953 * expr.c (move_block_to_reg): Adjust.
19954
19955 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19956
19957 * defaults.h (gen_mem_signal_fence): New function.
19958 (HAVE_mem_signal_fence): Add default value.
19959 * optabs.c: Adjust.
19960
19961 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19962
19963 * defaults.h (gen_memory_barrier): New function.
19964 (HAVE_memory_barrier): Add default value.
19965 * optabs.c: Adjust.
19966
19967 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19968
19969 * defaults.h (gen_mem_thread_fence): New function.
19970 (HAVE_mem_thread_fence): Add default definition.
19971 * optabs.c: Adjust.
19972
19973 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19974
19975 * combine.c (find_split_point): Check the value of HAVE_lo_sum
19976 instead of if it is defined.
19977 (combine_simplify_rtx): Likewise.
19978 * lra-constraints.c (process_address_1): Likewise.
19979 * config/darwin.c: Adjust.
19980 * genconfig.c (main): Always define HAVE_lo_sum.
19981
19982 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19983
19984 * genmatch.c (parser::parse_operation): Reject expanding
19985 operator-list inside 'for'.
19986
19987 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19988
19989 * genmatch.c (parser::parse_for): Reject iterator if used as
19990 operator-list.
19991
19992 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19993
19994 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19995 after end of id-list.
19996
19997 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19998
19999 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20000 we do not try to compute canonical type for type that does not need
20001 alias set.
20002 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20003 FUNCITON_TYPE.
20004 * tree.h (type_with_alias_set_p): New.
20005
20006 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20007
20008 * tree.c (gimple_canonical_types_compatible_p): Do not compare
20009 function attributes.
20010 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20011
20012 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
20013
20014 * Makefile.in (check_gcc_parallelize): Delete.
20015 (lang_checks_parallelized): Update comment.
20016
20017 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
20018
20019 PR rtl-optimization/66237
20020 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20021 location of an "as_a" cast.
20022
20023 2015-05-22 Jeff Law <law@redhat.com>
20024
20025 * config/pa/pa.md (non-canonical shift-add insns): Remove.
20026 (peepholes with non-canonical RTL sources): Remove.
20027 (peepholes for indexed stores of FP regs in integer modes): Match and
20028 generate canonical RTL.
20029
20030 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20031
20032 PR tree-optimization/63387
20033 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20034 ((x ord x) & (y ord y) -> (x ord y),
20035 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20036 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20037 vectors like scalars.
20038
20039 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20040
20041 * convert.c (convert_to_integer, convert_to_vector): Include the
20042 types in the error message.
20043
20044 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20045
20046 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20047 simplifications.
20048
20049 2015-05-22 Jeff Law <law@redhat.com>
20050
20051 * config/pa/pa.md (integer_indexed_store splitters): Use
20052 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
20053 insns -- adjusting the constant 2nd operand accordingly.
20054
20055 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20056 (plus (ashift X log2) Y) if it is a split point.
20057
20058 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20059 out of hppa_legitimize_address to handle both forms of a multiply
20060 by 2, 4 or 8.
20061 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20062 Always generate the ASHIFT variant as the result is not directly
20063 used in a MEM. Update comments and refactor slightly to improve
20064 readability.
20065
20066 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20067
20068 PR target/65491
20069 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20070 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
20071 (aarch64_composite_type_p): Return false if given type and mode are
20072 for a short vector.
20073
20074 2015-05-22 Richard Biener <rguenther@suse.de>
20075
20076 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20077 member.
20078 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20079 patterns when determining whether SLP is pure.
20080 (vect_is_slp_reduction): Remove check for pattern stmts.
20081 (vect_is_simple_reduction_1): Remove dead code.
20082 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20083 (vect_get_and_check_slp_defs): Pass in the stmt number.
20084 Allow the first def in a reduction to be not a pattern stmt when
20085 the rest of the stmts def are patterns.
20086 (vect_build_slp_tree_1): Allow tcc_expression codes like
20087 SAD_EXPR and DOT_PROD_EXPR.
20088 (vect_build_slp_tree): Adjust.
20089 (vect_analyze_slp): Refactor and move BB vect error message ...
20090 (vect_slp_analyze_bb_1): ... here.
20091
20092 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
20093
20094 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20095 for CSWTCH temporary.
20096
20097 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20098
20099 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20100 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
20101 unknown unspecs.
20102
20103 2015-05-22 Richard Biener <rguenther@suse.de>
20104
20105 PR tree-optimization/66251
20106 * tree-vect-stmts.c (vectorizable_conversion): Properly
20107 set STMT_VINFO_VEC_STMT even for the SLP case.
20108
20109 2015-05-22 Marek Polacek <polacek@redhat.com>
20110
20111 * doc/extend.texi: Use @pxref instead of @xref.
20112
20113 2015-05-22 hiraditya <hiraditya@msn.com>
20114
20115 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20116 redundant if.
20117
20118 2015-05-22 Richard Biener <rguenther@suse.de>
20119
20120 PR tree-optimization/65701
20121 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20122 Move peeling cost models into one place. Peel for alignment
20123 for single loads only if an aligned load is cheaper than
20124 an unaligned load.
20125
20126 2015-05-22 Marek Polacek <polacek@redhat.com>
20127
20128 PR c/47043
20129 * doc/extend.texi (Enumerator Attributes): New section.
20130 Document syntax of enumerator attributes.
20131
20132 2015-05-22 Richard Biener <rguenther@suse.de>
20133
20134 * tree-vect-loop.c (get_reduction_op): New function.
20135 (vect_model_reduction_cost): Use it, add reduc_index parameter.
20136 Make ready for BB reductions.
20137 (vect_create_epilog_for_reduction): Use get_reduction_op.
20138 (vectorizable_reduction): Init reduc_index to a valid value.
20139 Adjust vect_model_reduction_cost call.
20140 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20141 operand for reduction defaults. Add SAD_EXPR support.
20142 Assert we have a neutral op for SLP reductions.
20143 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20144 walking pattern stmt ops only recurse to SSA names.
20145
20146 2015-05-22 Richard Biener <rguenther@suse.de>
20147
20148 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20149 assert with guard, remove check on detected reduction.
20150 (vect_recog_sad_pattern): Likewise.
20151 (vect_recog_widen_sum_pattern): Likewise.
20152
20153 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20154
20155 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20156 __always_inline__ attribute.
20157 (vaesdq_u8): Likewise.
20158 (vaesmcq_u8): Likewise.
20159 (vaesimcq_u8): Likewise.
20160 (vsha1cq_u32): Likewise.
20161 (vsha1mq_u32): Likewise.
20162 (vsha1pq_u32): Likewise.
20163 (vsha1h_u32): Likewise.
20164 (vsha1su0q_u32): Likewise.
20165 (vsha1su1q_u32): Likewise.
20166 (vsha256hq_u32): Likewise.
20167 (vsha256h2q_u32): Likewise.
20168 (vsha256su0q_u32): Likewise.
20169 (vsha256su1q_u32): Likewise.
20170 (vmull_p64): Likewise.
20171 (vmull_high_p64): Likewise.
20172
20173 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20174
20175 * final.c (final_scan_insn): Don't check HAVE_peephole with the
20176 preprocessor.
20177 * output.h: Likewise.
20178 * genconfig.c (main): Alwways define HAVE_peephole.
20179 * genpeep.c: Don't emit checks of HAVE_peephole.
20180
20181 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20182
20183 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20184 check HAVE_conditional_move with the preprocessor.
20185
20186 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20187
20188 * genconfig.c (main): Always define HAVE_conditional_move.
20189 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20190 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20191 is defined.
20192
20193 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20194
20195 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20196 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20197 and FRAME_POINTER_REGNUM with the preprocessor.
20198
20199 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20200
20201 * defaults.h: Add default for STACK_PUSH_CODE.
20202 * expr.c: Don't redefine STACK_PUSH_CODE.
20203 * recog.c: Likewise.
20204
20205 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20206
20207 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20208 sched-deps.c: Use if instead of preprocessor checks with
20209 STACK_GROWS_DOWNWARD.
20210
20211 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20212
20213 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20214 is defined.
20215 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20216 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20217 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20218 * doc/tm.texi: Regenerate.
20219
20220 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
20221
20222 PR target/66232
20223 * config/i386/constraints.md (Bg): New constraint for GOT memory
20224 operand.
20225 * config/i386/i386.md (*call_got_x32): New pattern.
20226 (*call_value_got_x32): Likewise.
20227 * config/i386/predicates.md (GOT_memory_operand): New predicate.
20228
20229 2015-05-21 Jakub Jelinek <jakub@redhat.com>
20230
20231 PR tree-optimization/66233
20232 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20233 Simplify.
20234
20235 2015-05-21 Jeff Law <law@redhat.com>
20236
20237 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20238 than MULT for shadd sequences.
20239
20240 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
20241
20242 * alias.c (alias_stats): New static var.
20243 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20244 (dump_alias_stats_in_alias_c): New function.
20245 * alias.h (dump_alias_stats_in_alias_c): Declare.
20246 * tree-ssa-alias.c (dump_alias_stats): Call it.
20247
20248 2015-05-08 Michael Matz <matz@suse.de>
20249
20250 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20251 to strided_p.
20252 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20253 (STMT_VINFO_STRIDED_P): ... this.
20254 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20255 (vect_verify_datarefs_alignment): Likewise.
20256 (vect_enhance_data_refs_alignment): Likewise.
20257 (vect_analyze_data_ref_access): Likewise.
20258 (vect_analyze_data_refs): Accept strided stores.
20259 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20260 (vect_model_load_cost): Adjust for macro rename.
20261 (vectorizable_mask_load_store): Likewise.
20262 (vectorizable_load): Likewise.
20263 (vectorizable_store): Open code strided stores.
20264
20265 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20266
20267 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20268 Document sqrt_insn.
20269
20270 2015-05-21 Richard Biener <rguenther@suse.de>
20271
20272 PR c++/66211
20273 * match.pd: Guard pattern optimzing (int)(float)int
20274 conversions to apply only on GIMPLE.
20275
20276 2015-05-21 Jeff Law <law@redhat.com>
20277
20278 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20279 multiply-accumulate/shift-add insn generation.
20280
20281 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
20282
20283 PR target/54236
20284 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20285 operands[1] are the same.
20286
20287 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
20288
20289 PR middle-end/66221
20290 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20291 build_distinct_type_copy to copy bounds.
20292
20293 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
20294
20295 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20296 Change to unsigned int.
20297
20298 2015-05-20 Jeff Law <law@redhat.com>
20299
20300 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20301 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20302 (pa_shadd_constant_p): Allow constants for shadd insns rather
20303 than valid scaling constants for memory addresses.
20304 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20305 * config/pa/predicates.md (mem_shadd_operand): New predicate.
20306 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20307 (shift-add insns using ASHIFT): New patterns.
20308
20309 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
20310
20311 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20312 feasible.
20313 (fix_up_fall_thru_edges): Likewise.
20314 (fix_crossing_conditional_branches): Likewise. Promote jump targets
20315 from to rtx_insn to rtx_code_label where feasible.
20316 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20317 gen_move_insn (returned type changed to rtx_insn).
20318 * builtins.c (expand_errno_check): Fix arguments of
20319 do_compare_rtx_and_jump (now expects rtx_code_label).
20320 (expand_builtin_acc_on_device): Likewise.
20321 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20322 invert_jump (now exprects rtx_jump_insn).
20323 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20324 (construct_init_block): Use rtx_code_label.
20325 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20326 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20327 calling redirect_jump.
20328 (patch_jump_insn): Likewise.
20329 (redirect_branch_edge): Likewise.
20330 (force_nonfallthru_and_redirect): Likewise.
20331 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20332 when suitable.
20333 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20334 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20335 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20336 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20337 to store the value retured by gen_label_rtx.
20338 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20339 rtx_jump_insn.
20340 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20341 (split_branches): Fix calls of redirect_jump.
20342 * dojump.c (jumpifnot): Promote argument type from rtx to
20343 rtx_code_label.
20344 (jumpifnot_1): Likewise.
20345 (jumpif): Likewise.
20346 (jumpif_1): Likewise.
20347 (do_jump_1): Likewise.
20348 (do_jump): Likewise. Use rtx_code_label when feasible.
20349 (do_jump_by_parts_greater_rtx): Likewise.
20350 (do_jump_by_parts_zero_rtx): Likewise.
20351 (do_jump_by_parts_equality_rtx): Likewise.
20352 (do_compare_rtx_and_jump): Likewise.
20353 * dojump.h: Update function prototypes.
20354 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20355 returns rtx_insn).
20356 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20357 rtx_jump_insn.
20358 (emit_label_before): Likewise.
20359 (emit_jump_insn_after_noloc): Likewise.
20360 (emit_jump_insn_after_setloc): Likewise.
20361 (emit_jump_insn_after): Likewise
20362 (emit_jump_insn_before_setloc): Likewise.
20363 (emit_jump_insn_before): Likewise.
20364 (emit_label_before): Promote return type to rtx_code_label.
20365 (emit_label): Likewise.
20366 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20367 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20368 gen_move_insn.
20369 (emit_stack_restore): Likewise.
20370 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20371 (do_cmp_and_jump): Likewise.
20372 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20373 from rtx to rtx_code_label.
20374 (gen_move_insn_uncast): New function.
20375 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20376 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20377 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20378 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20379 invert_jump_1 and redirect_jump_1.
20380 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20381 do_compare_rtx_and_jump.
20382 (expand_addsub_overflow): Likewise.
20383 (expand_neg_overflow): Likewise.
20384 (expand_mul_overflow): Likewise.
20385 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20386 return value of gen_move_insn.
20387 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20388 * loop-doloop.c (add_test): Use rtx_code_label.
20389 (doloop_modify): Likewise.
20390 (doloop_optimize): Likewise.
20391 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20392 * lra-constraints.c (emit_spill_move): Remove cast of value returned
20393 by gen_move_insn.
20394 (inherit_reload_reg): Add cast when calling dump_insn_slim.
20395 (split_reg): Likewise.
20396 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20397 gen_move_insn.
20398 * optabs.c (expand_binop_directly): Remove casts of values returned by
20399 maybe_gen_insn.
20400 (expand_unop_direct): Likewise.
20401 (expand_abs): Likewise.
20402 (maybe_emit_unop_insn): Likewise.
20403 (maybe_gen_insn): Promote return type to rtx_insn.
20404 * optabs.h: Update prototype of maybe_gen_insn.
20405 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20406 redundant cast.
20407 * recog.c (struct peep2_insn_data): Promote type of insn field to
20408 rtx_insn.
20409 (peep2_reinit_state): Use NULL instead of NULL_RTX.
20410 (peep2_attempt): Remove casts of insn in peep2_insn_data.
20411 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20412 * recog.h (struct insn_gen_fn): Promote return types of function
20413 pointers and operator ().from rtx to rtx_insn.
20414 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20415 (fill_eager_delay_slots): Likewise.
20416 (relax_delay_slots): Likewise.
20417 (make_return_insns): Likewise.
20418 (dbr_schedule): Likewise.
20419 (optimize_skips): Likewise.
20420 (reorg_redirect_jump): Likewise.
20421 (fill_slots_from_thread): Likewise.
20422 * reorg.h: Update prototypes.
20423 * resource.c (find_dead_or_set_registers): Use dyn_cast to
20424 rtx_jump_insn instead of check. Use it's jump_target method.
20425 * rtl.h (rtx_jump_insn::jump_label): Define new method.
20426 (rtx_jump_insn::jump_target): Define new method.
20427 (rtx_jump_insn::set_jump_target): Define new method.
20428 * rtlanal.c (tablejump_p): Promote type of one local variable.
20429 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20430 (sched_analyze_insn): Likewise.
20431 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20432 (print_insn): Likewise.
20433 * stmt.c (label_rtx): Promote return type to rtx_insn.
20434 (force_label_rtx): Likewise.
20435 (jump_target_rtx): Define new function.
20436 (expand_label): Use it, get rid of one cast.
20437 (expand_naked_return): Promote rtx to rtx_code_label.
20438 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20439 (expand_case): Use rtx_code_label instread of rtx where feasible.
20440 (expand_sjlj_dispatch_table): Likewise.
20441 (emit_case_nodes): Likewise.
20442 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
20443 * store-motion.c (insert_store): Make use of new return type of
20444 gen_move_insn and remove a cast.
20445 (replace_store_insn): Likewise.
20446
20447 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
20448
20449 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20450 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20451
20452 2015-05-20 Jeff Law <law@redhat.com>
20453
20454 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20455 dispose of the jump thread path when the jump threading
20456 opportunity is cancelled.
20457
20458 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20459
20460 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20461 when printing the caret character.
20462
20463 2015-05-20 Marek Polacek <polacek@redhat.com>
20464
20465 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20466
20467 2015-05-20 Marek Polacek <polacek@redhat.com>
20468
20469 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20470 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20471 * gimple-fold.c (canonicalize_bool): Likewise.
20472 (same_bool_result_p): Likewise.
20473 * tree-if-conv.c (parse_predicate): Likewise.
20474
20475 2015-05-20 Marek Polacek <polacek@redhat.com>
20476
20477 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20478 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20479
20480 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20481
20482 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20483 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20484 values.
20485
20486 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
20487
20488 * config/mips/mips.h (micromips_globals): Declare.
20489
20490 2015-05-20 David Malcolm <dmalcolm@redhat.com>
20491
20492 * timevar.def (TV_INITIALIZE_RTL): New.
20493 * toplev.c (initialize_rtl): Use an auto_timevar to account this
20494 function's time to TV_INITIALIZE_RTL.
20495
20496 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
20497
20498 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20499 gimple_build_nop calls.
20500 (chkp_find_bounds_for_elem): Likewise.
20501 (chkp_get_zero_bounds): Likewise.
20502 (chkp_get_none_bounds): Likewise.
20503 (chkp_get_bounds_by_definition): Likewise.
20504 (chkp_generate_extern_var_bounds): Likewise.
20505 (chkp_get_bounds_for_decl_addr): Likewise.
20506 (chkp_get_bounds_for_string_cst): Likewise.
20507
20508 2015-05-20 Bin Cheng <bin.cheng@arm.com>
20509
20510 PR tree-optimization/65447
20511 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20512 (dump_use, dump_uses): Support to dump sub use.
20513 (record_use): New parameters to support sub use. Remove call to
20514 dump_use.
20515 (record_sub_use, record_group_use): New functions.
20516 (compute_max_addr_offset, split_all_small_groups): New functions.
20517 (group_address_uses, rewrite_use_address): New functions.
20518 (strip_offset): New declaration.
20519 (find_interesting_uses_address): Call record_group_use.
20520 (add_candidate): New assertion.
20521 (infinite_cost_p): Move definition forward.
20522 (add_costs): Check INFTY cost and return immediately.
20523 (get_computation_cost_at): Clear setup cost and dependent bitmap
20524 for sub uses.
20525 (determine_use_iv_cost_address): Compute cost for sub uses.
20526 (rewrite_use_address_1): Rename from old rewrite_use_address.
20527 (free_loop_data): Free sub uses.
20528 (tree_ssa_iv_optimize_loop): Call group_address_uses.
20529
20530 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20531 Jim Wilson <jim.wilson@linaro.org>
20532
20533 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20534 new fields loadv and storev.
20535 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20536 Initialize loadv and storev.
20537 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20538 (cortexa53_extra_costs): Likewise.
20539 (cortexa57_extra_costs): Likewise.
20540 (xgene1_extra_costs): Likewise.
20541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20542 rtx_costs.
20543
20544 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20545
20546 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20547 storev.
20548 (cortexa8_extra_costs): Likewise.
20549 (cortexa5_extra_costs): Likewise.
20550 (cortexa7_extra_costs): Likewise.
20551 (cortexa12_extra_costs): Likewise.
20552 (cortexa15_extra_costs): Likewise.
20553 (v7m_extra_costs): Likewise.
20554
20555 2015-05-20 Jeff Law <law@redhat.com>
20556
20557 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20558 instead of open-coded version. Also delete the jump thread created
20559 within this function.
20560
20561 2015-05-20 Alan Modra <amodra@gmail.com>
20562
20563 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20564 stack adjusting insn. Formatting.
20565 (rs6000_emit_prologue): Track stack adjusting insn, and use of
20566 r12. If possible, emit first -fsplit-stack arg pointer insn
20567 before stack adjust. Don't use r12 to save cr if split-stack.
20568
20569 2015-05-20 Alan Modra <amodra@gmail.com>
20570
20571 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20572 Define.
20573 (rs6000_supports_split_stack): New function.
20574 * gcc/config/rs6000/rs6000.c (machine_function): Add
20575 split_stack_arg_pointer.
20576 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20577 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20578 rather than virtual_incoming_args_rtx.
20579 (rs6000_va_start): Likewise.
20580 (split_stack_arg_pointer_used_p): New function.
20581 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20582 (morestack_ref): New var.
20583 (gen_add3_const, rs6000_expand_split_stack_prologue,
20584 rs6000_internal_arg_pointer, rs6000_live_on_entry,
20585 rs6000_split_stack_space_check): New functions.
20586 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20587 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20588 (UNSPECV_SPLIT_STACK_RETURN): Define.
20589 (split_stack_prologue, load_split_stack_limit,
20590 load_split_stack_limit_di, load_split_stack_limit_si,
20591 split_stack_return, split_stack_space_check): New expands and insns.
20592 * gcc/config/rs6000/rs6000-protos.h
20593 (rs6000_expand_split_stack_prologue): Declare.
20594 (rs6000_split_stack_space_check): Declare.
20595
20596 2015-05-20 Alan Modra <amodra@gmail.com>
20597
20598 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20599 (direct_return): Test vrsave_size rather than vrsave_mask.
20600 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
20601 (rs6000_emit_epilogue): Likewise.
20602
20603 2015-05-20 Alan Modra <amodra@gmail.com>
20604
20605 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20606 when not saving registers.
20607 (debug_stack_info): Adjust to omit printing unused offsets,
20608 as before.
20609 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20610 expression.
20611
20612 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20613
20614 PR c++/65835
20615 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20616 value_type to const char *.
20617
20618 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
20619
20620 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20621 to build a biarch toolchain again.
20622
20623 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20624
20625 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20626 or implicit declarations.
20627 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20628 into it.
20629 (get_odr_type): Check type has linkage before adding bases.
20630 (register_odr_type): Check that type has linkage before adding it.
20631 (type_known_to_have_no_deriavations_p): Rename to ..
20632 (type_known_to_have_no_derivations_p): This one.
20633 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20634 (type_known_to_have_no_derivations_p): This one.
20635 * ipa-polymorphic-call.c
20636 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20637 type has linkage.
20638
20639 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20640
20641 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20642 (layout_type): Use RECORD_OR_UNION_TYPE_P.
20643
20644 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20645
20646 * config/s390/s390.c (s390_vector_bool_type_p): New function.
20647 (s390_invalid_binary_op): New function.
20648 (TARGET_INVALID_BINARY_OP): Define macro.
20649
20650 2015-05-19 David Sherwood <david.sherwood@arm.com>
20651
20652 * loop-invariant.c (create_new_invariant): Don't calculate address cost
20653 if mode is not a scalar integer.
20654 (get_inv_cost): Increase computational cost for unused invariants.
20655
20656 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20657
20658 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
20659 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
20660 * config/s390/s390-builtin-types.def: New file.
20661 * config/s390/s390-builtins.def: New file.
20662 * config/s390/s390-builtins.h: New file.
20663 * config/s390/s390-c.c: New file.
20664 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20665 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20666 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20667 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20668 prototypes.
20669 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20670 Include.
20671 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20672 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20673 variable definitions.
20674 (s390_const_operand_ok): New function.
20675 (s390_expand_builtin): Rewrite.
20676 (s390_init_builtins): New function.
20677 (s390_handle_vectorbool_attribute): New function.
20678 (s390_attribute_table): Add s390_vector_bool attribute.
20679 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20680 (s390_branch_condition_mask): Generate masks for new modes.
20681 (s390_expand_vec_compare_cc): New function.
20682 (s390_mangle_type): Add mangling for vector bool types.
20683 (enum s390_builtin): Remove.
20684 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20685 efpc builtins.
20686 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20687 s390_cpu_cpp_builtins.
20688 (REGISTER_TARGET_PRAGMAS): New macro.
20689 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20690 (insn_cmp mode attribute): Add new CC modes.
20691 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20692 (lcbb): New pattern definition.
20693 * config/s390/s390intrin.h: Include vecintrin.h.
20694 * config/s390/t-s390: New file.
20695 * config/s390/vecintrin.h: New file.
20696 * config/s390/vector.md: Include vx-builtins.md.
20697 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20698 support.
20699
20700 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20701
20702 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20703 CCVFHE.
20704 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20705 (s390_select_ccmode): Likewise.
20706 (s390_canonicalize_comparison): Swap operands if necessary.
20707 (s390_expand_vec_compare_scalar): Expand DFmode compare using
20708 single element vector instructions.
20709 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20710 (s390_branch_condition_mask): Generate CC masks for the new modes.
20711 * config/s390/s390.md (v0, vf, vd): New mode attributes.
20712 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20713 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20714 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20715 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20716 (*extend<DSF:mode><BFP:mode>2): New insn definition.
20717 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20718 (extend<DSF:mode><BFP:mode>2): Turn into expander.
20719 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20720 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20721 (sqrt<mode>2): Add vector instruction.
20722
20723 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20724
20725 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20726 constraints.
20727 * config/s390/predicates.md (const0_operand, constm1_operand)
20728 (constable_operand): Accept vector operands.
20729 * config/s390/s390-modes.def: Add supported vector modes.
20730 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20731 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20732 (s390_bytemask_vector_p, s390_expand_vec_strlen)
20733 (s390_expand_vec_compare, s390_expand_vcond)
20734 (s390_expand_vec_init): Add prototypes.
20735 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20736 (s390_vector_mode_supported_p): New function.
20737 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20738 (s390_contiguous_bitmask_vector_p): New function.
20739 (s390_bytemask_vector_p): New function.
20740 (s390_split_ok_p): Vector regs don't work either.
20741 (regclass_map): Add VEC_REGS.
20742 (s390_legitimate_constant_p): Handle vector constants.
20743 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20744 (legitimate_reload_vector_constant_p): New function.
20745 (s390_preferred_reload_class): Handle CONST_VECTOR.
20746 (s390_reload_symref_address): Likewise.
20747 (s390_secondary_reload): Vector memory instructions only support
20748 short displacements. Rename reload*_nonoffmem* to reload*_la*.
20749 (s390_emit_ccraw_jump): New function.
20750 (s390_expand_vec_strlen): New function.
20751 (s390_expand_vec_compare): New function.
20752 (s390_expand_vcond): New function.
20753 (s390_expand_vec_init): New function.
20754 (s390_dwarf_frame_reg_mode): New function.
20755 (print_operand): Handle addresses with 'O' and 'R' constraints.
20756 (NR_C_MODES, constant_modes): Add vector modes.
20757 (s390_output_pool_entry): Handle vector constants.
20758 (s390_hard_regno_mode_ok): Handle vector registers.
20759 (s390_class_max_nregs): Likewise.
20760 (s390_cannot_change_mode_class): New function.
20761 (s390_invalid_arg_for_unprototyped_fn): New function.
20762 (s390_function_arg_vector): New function.
20763 (s390_function_arg_float): Remove size variable.
20764 (s390_pass_by_reference): Handle vector arguments.
20765 (s390_function_arg_advance): Likewise.
20766 (s390_function_arg): Likewise.
20767 (s390_return_in_memory): Vector values are returned in a VR if
20768 possible.
20769 (s390_function_and_libcall_value): Handle vector arguments.
20770 (s390_gimplify_va_arg): Likewise.
20771 (s390_call_saved_register_used): Consider the arguments named.
20772 (s390_conditional_register_usage): Disable v16-v31 for non-vec
20773 targets.
20774 (s390_preferred_simd_mode): New function.
20775 (s390_support_vector_misalignment): New function.
20776 (s390_vector_alignment): New function.
20777 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20778 (TARGET_VECTOR_MODE_SUPPORTED_P)
20779 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20780 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20781 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20782 (TARGET_VECTOR_ALIGNMENT): Define target macro.
20783 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20784 (FIRST_PSEUDO_REGISTER): Increase value.
20785 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20786 (VECTOR_REG_P): Define macros.
20787 (FIXED_REGISTERS, CALL_USED_REGISTERS)
20788 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20789 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20790 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20791 Add vector registers.
20792 (CANNOT_CHANGE_MODE_CLASS): Call C function.
20793 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20794 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20795 memory.
20796 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20797 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20798 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20799 (VR*_REGNUM): New constants.
20800 (ALL): New mode iterator.
20801 (INTALL): Remove mode iterator.
20802 Include vector.md.
20803 (movti): Implement TImode moves for VRs.
20804 Disable TImode splitter for VR targets.
20805 Implement splitting TImode GPR<->VR moves.
20806 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20807 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20808 reload<mode>_la_in, reload<mode>_la_out.
20809 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20810 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20811 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20812 (mov<mode> SF SD): Prefer lder, lde for loading.
20813 Add lrl and strl instructions.
20814 Add vector instructions.
20815 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20816 Call s390_expand_vec_strlen on z13.
20817 (*cc_to_int): Change predicate to nonimmediate_operand.
20818 (addti3): Rename to *addti3. New expander.
20819 (subti3): Rename to *subti3. New expander.
20820 * config/s390/vector.md: New file.
20821
20822 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20823
20824 * common/config/s390/s390-common.c (processor_flags_table): Add
20825 z13.
20826 * config.gcc: Add z13.
20827 * config/s390/s390-opts.h (enum processor_type): Add
20828 PROCESSOR_2964_Z13.
20829 * config/s390/s390.c (s390_adjust_priority): Check for
20830 PROCESSOR_2964_Z13.
20831 (s390_reorg): Likewise.
20832 (s390_sched_reorder): Likewise.
20833 (s390_sched_variable_issue): Likewise.
20834 (s390_loop_unroll_adjust): Likewise.
20835 (s390_option_override): Likewise. Default to -mvx when available.
20836 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20837 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20838 (TARGET_VX_ABI): Define macros.
20839 macros.
20840 (TARGET_DEFAULT): Add MASK_OPT_VX.
20841 * config/s390/s390.md ("cpu" attribute): Add z13.
20842 ("cpu_facility" attribute): Add vec.
20843 * config/s390/s390.opt (processor_type): Add z13.
20844 (mvx): New options.
20845 * doc/invoke.texi: Add z13 option for -march.
20846
20847 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20848
20849 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20850 mode check to make sure that only scalar integer values are
20851 accepted.
20852
20853 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20854
20855 * tree.c (verify_type_variant): Fix #undef.
20856 (gimple_canonical_types_compatible_p): Move here from lto.c
20857 (verify_type): Verify TYPE_CANONICAL compatibility.
20858 * tree.h (gimple_canonical_types_compatible_p): Declare.
20859
20860 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20861
20862 PR middle-end/66199
20863 * tree.h (OMP_TEAMS_COMBINED): Define.
20864 * gimplify.c (enum gimplify_omp_var_data): Add
20865 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20866 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20867 (omp_notice_variable): Accept both ORT_TEAMS
20868 and ORT_COMBINED_TEAMS. Don't recurse if
20869 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20870 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20871 GOVD_FIRSTPRIVATE.
20872 (omp_no_lastprivate): New function.
20873 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20874 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20875 notice_outer and set appropriate bits, otherwise make
20876 sure default(none) combined constructs won't complain.
20877 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20878 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20879 omp_no_lastprivate either remove the clause or turn it
20880 into OMP_CLAUSE_PRIVATE.
20881 (gimplify_omp_for): Fix up handling of implicit
20882 lastprivate or linear iterators.
20883 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20884 ORT_COMBINED_TEAMS.
20885 * omp-low.c (lower_omp_for_lastprivate): For combined
20886 for simd use fd.loop.n2 from the for rather than simd.
20887
20888 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20889
20890 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20891 instead of gen_rtx_raw_REG.
20892 (cris_expand_epilogue): Likewise.
20893 * config/microblaze/microblaze.c (microblaze_classify_address):
20894 Likewise.
20895 * config/sparc/sparc.md: Likewise.
20896
20897 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
20898
20899 * config/alpha/alpha.c (alpha_legitimize_reload_address)
20900 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20901 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20902 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20903 Use CASE_CONST_SCALAR_INT.
20904 (print_operand) <case 'M'>: Use mode_width_operand to check the
20905 value of the constant.
20906 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20907 * config/alpha/predicates.md (input_operand): Use general_operand
20908 instead of match_code as operand check.
20909 (symbolic_operand): Use match_code with subexpression digits.
20910 * config/alpha/constraints.md (Q): Ditto.
20911
20912 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20913
20914 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20915
20916 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20917
20918 * config/s390/s390.c (s390_secondary_reload): Fix check for
20919 load/store relative.
20920
20921 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20922
20923 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
20924 alternative_mask to uint64_t.
20925
20926 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20927
20928 PR tree-optimization/66187
20929 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20930 Pass TYPE_SIGN to tree_int_cst_min_precision. If
20931 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20932
20933 2015-05-19 David Malcolm <dmalcolm@redhat.com>
20934
20935 * diagnostic.c (diagnostic_report_current_module): Strengthen
20936 local "new_map" from const line_map * to
20937 const line_map_ordinary *.
20938 * genmatch.c (error_cb): Likewise for local "map".
20939 (output_line_directive): Likewise for local "map".
20940 * input.c (expand_location_1): Likewise for local "map".
20941 Pass NULL rather than &map to
20942 linemap_unwind_to_first_non_reserved_loc, since the value is never
20943 read from there, and the value written back not read from here.
20944 (is_location_from_builtin_token): Strengthen local "map" from
20945 const line_map * to const line_map_ordinary *.
20946 (dump_location_info): Strengthen locals "map" from
20947 line_map *, one to const line_map_ordinary *, the other
20948 to const line_map_macro *.
20949 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20950 const line_map * to const line_map_macro *.
20951 (maybe_unwind_expanded_macro_loc): Add a call to
20952 linemap_check_macro when writing to the "map" field of the
20953 loc_map_pair.
20954 Introduce local const line_map_ordinary * "ord_map", using it in
20955 place of "map" in the part of the function where we know we have
20956 an ordinary map. Strengthen local "m" from const line_map * to
20957 const line_map_ordinary *.
20958
20959 2015-05-19 Nick Clifton <nickc@redhat.com>
20960
20961 PR target/66156
20962 * config/msp430/msp430.md (zero_extendhisi2): Add support for
20963 separate source and destination registers.
20964
20965 2015-05-19 Richard Biener <rguenther@suse.de>
20966
20967 PR tree-optimization/66165
20968 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20969 for no load permutation.
20970
20971 PR tree-optimization/66185
20972 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20973 when building the SLP node from scalars.
20974
20975 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20976 Tristan Gingold <gingold@adacore.com>
20977
20978 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20979 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20980 (expand_stack_restore): Call record_new_stack_level.
20981 (expand_stack_save): Do not call do_pending_stack_adjust.
20982 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20983 * calls.c (expand_call): Call record_new_stack_level for alloca.
20984 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20985 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20986 (update_sjlj_context): New global function.
20987 * except.h (update_sjlj_context): Declare.
20988 * explow.c (record_new_stack_level): New global function.
20989 (allocate_dynamic_stack_space): Call record_new_stack_level.
20990 * explow.h (record_new_stack_level): Declare.
20991 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20992 * cfgrtl.c (duplicate_insn_chain): Likewise.
20993
20994 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20995
20996 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20997 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20998 STACK_GROWS_DOWNWARD as normal if.
20999 (expand_call): Likewise.
21000
21001 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
21002
21003 PR target/54236
21004 * config/sh/sh.md (*round_int_even): New insn_and_split and
21005 accompanying new unnamed split.
21006
21007 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21008
21009 * bitmap.c (bitmap_set_range): Handle count==1 specially.
21010 (bitmap_clear_range): Likewise.
21011 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21012 bitmap_set_range unconditionally.
21013 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21014 * df-scan.c (df_mark_reg): Likewise.
21015 * haifa-sched.c (setup_ref_regs): Likewise.
21016 * sched-rgn.c (update_live_1): Likewise.
21017
21018 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21019
21020 * regs.h (END_HARD_REGNO): Delete.
21021 (END_REGNO): Move to...
21022 * rtl.h: ...here.
21023 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21024 * caller-save.c (mark_set_regs): Likewise.
21025 * combine.c (move_deaths, distribute_notes): Likewise.
21026 * cse.c (invalidate, invalidate_for_call): Likewise.
21027 * df-scan.c (df_ref_record): Likewise.
21028 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21029 (record_last_reg_set_info): Likewise.
21030 * reg-stack.c (convert_regs_exit): Likewise.
21031 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21032 * resource.c (update_live_status): Likewise.
21033 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21034
21035 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21036
21037 * rtl.h (reg_info): Add an nregs field.
21038 (REG_NREGS): Use it.
21039 (SET_REGNO_RAW): Delete.
21040 (set_regno_raw): New function.
21041 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21042 (END_REGNO): Redefine in terms of REG_NREGS.
21043 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21044 SET_REGNO_RAW.
21045 * emit-rtl.c (set_mode_and_regno): Likewise.
21046 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21047 instead of SET_REGNO_RAW.
21048
21049 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21050
21051 * rtl.h (PUT_MODE_RAW): New macro.
21052 (PUT_REG_NOTE_KIND): Use it.
21053 (set_mode_and_regno): Declare.
21054 (gen_raw_REG): Change regno to "unsigned int".
21055 (gen_rtx_REG): Change "unsigned" to "unsigned int".
21056 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21057 use set_mode_and_regno to change the mode of registers.
21058 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21059 * emit-rtl.c (set_mode_and_regno): New function.
21060 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
21061 * caller-save.c (reg_save_code): Use set_mode_and_regno.
21062 * expr.c (init_expr_target): Likewise.
21063 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21064 * postreload.c (reload_cse_simplify_operands): Likewise.
21065
21066 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21067
21068 * caller-save.c (init_caller_save): Use word_mode and
21069 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21070 * expr.c (init_expr_target): Likewise.
21071 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21072 * postreload.c (reload_cse_regs_1): Likewise.
21073
21074 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21075
21076 * rtl.def (REG): Change format to "r".
21077 * rtl.h (rtunion): Remove rt_reg.
21078 (reg_info): New structure.
21079 (rtx_def): Add reg field to main union.
21080 (X0REGATTR): Delete.
21081 (REG_CHECK): New macro.
21082 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21083 * rtl.c (rtx_format): Document "r".
21084 (rtx_code_size): Handle REG specially.
21085 * gengenrtl.c (special_format): Return true for formats
21086 that include 'r'.
21087 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21088 Deal with REG_ATTRS after the field loop.
21089 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21090 * expmed.c (init_expmed): Call gen_raw_REG instead of
21091 gen_rtx_raw_REG.
21092 * expr.c (init_expr_target): Likewise.
21093 * regcprop.c (maybe_mode_change): Likewise.
21094 * varasm.c (make_decl_rtl): Likewise.
21095 * final.c (leaf_renumber_regs_insn): Return early after
21096 handling REGs.
21097 * genemit.c (gen_exp): Handle 'r' fields.
21098 * genpeep.c (match_rtx): Likewise.
21099 * gensupport.c (subst_pattern_match): Likewise.
21100 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21101 (alter_constraints, subst_dup): Likewise.
21102 * read-rtl.c (read_rtx_code): Likewise.
21103 * print-rtl.c (print_rtx): Likewise.
21104 * genrecog.c (find_operand, find_matching_operand): Likewise.
21105 (validate_pattern, match_pattern_2): Likewise.
21106 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21107 (rtx_test::regno_field): New function.
21108 (operator ==, safe_to_hoist_p, transition_parameter_type)
21109 (parameter_type_string, print_parameter_value)
21110 (print_nonbool_test, print_test): Handle new enum values.
21111 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21112 * lra-constraints.c (operands_match_p): Likewise.
21113
21114 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21115
21116 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21117 Change type of new_regno to unsigned int.
21118 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21119 new_regno to unsigned int.
21120 (df_ref_change_reg_with_loc): Remove old_regno parameter.
21121 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
21122 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21123 (SET_REGNO_RAW): Add space after ",".
21124
21125 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21126
21127 * rtl.h (REG_NREGS): New macro
21128 * alias.c (record_set): Use it.
21129 * cfgcleanup.c (mark_effect): Likewise.
21130 * combine.c (likely_spilled_retval_1): Likewise.
21131 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21132 (move_deaths, distribute_notes): Likewise.
21133 * cselib.c (cselib_record_set): Likewise.
21134 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21135 * df-scan.c (df_mark_reg): Likewise.
21136 * dse.c (look_for_hardregs): Likewise.
21137 * dwarf2out.c (reg_loc_descriptor): Likewise.
21138 (multiple_reg_loc_descriptor): Likewise.
21139 * expr.c (write_complex_part, read_complex_part): Likewise.
21140 (emit_move_complex): Likewise.
21141 * haifa-sched.c (setup_ref_regs): Likewise.
21142 * ira-lives.c (mark_hard_reg_live): Likewise.
21143 * lra.c (lra_set_insn_recog_data): Likewise.
21144 * mode-switching.c (create_pre_exit): Likewise.
21145 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21146 (reload_combine_recognize_pattern): Likewise.
21147 (reload_combine_note_use, move2add_record_mode): Likewise.
21148 (reload_cse_move2add): Likewise.
21149 * reg-stack.c (subst_stack_regs_pat): Likewise.
21150 * regcprop.c (kill_value, copy_value): Likewise.
21151 (copyprop_hardreg_forward_1): Likewise.
21152 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21153 (build_def_use): Likewise.
21154 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21155 (deps_analyze_insn): Likewise.
21156 * sched-rgn.c (check_live_1, update_live_1): Likewise.
21157 * sel-sched.c (count_occurrences_equiv): Likewise.
21158 * valtrack.c (dead_debug_insert_temp): Likewise.
21159
21160 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21161
21162 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21163 * dse.c (note_add_store): Likewise.
21164 * ira-lives.c (mark_hard_reg_dead): Likewise.
21165 * loop-invariant.c (mark_reg_store): Likewise.
21166 (mark_reg_death): Likewise.
21167 * postreload.c (reload_combine): Likewise.
21168 (reload_combine_note_store): Likewise.
21169 (reload_combine_note_use): Likewise.
21170 * recog.c (peep2_reg_dead_p): Likewise.
21171
21172 2015-05-19 Alan Modra <amodra@gmail.com>
21173
21174 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21175 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21176 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21177 unused predicates.
21178 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21179 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
21180 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21181 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21182
21183 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
21184
21185 * config/mips/mips.md (JOIN_MODE): New mode iterator.
21186 (join2_load_Store<JOIN_MODE:mode>): New pattern.
21187 (join2_loadhi): Likewise.
21188 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21189 load-load and store-stores.
21190 * config/mips/mips.opt (mload-store-pairs): New option.
21191 (TARGET_LOAD_STORE_PAIRS): New macro.
21192 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21193 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21194 * config/mips/mips.c (mips_load_store_bonding_p): New function.
21195
21196 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
21197
21198 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21199 explicit swaps.
21200 * dojump.c (do_compare_rtx_and_jump): Likewise.
21201 * expmed.c (emit_store_flag_1): Likewise.
21202 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21203 * final.c (sprint_ul): Use std::reverse for reversing a string.
21204 * fold-const.c (extract_muldiv_1): Use std::swap.
21205 * genmodes.c (emit_mode_int_n): Likewise.
21206 * ifcvt.c (dead_or_predicable): Likewise.
21207 * ira-build.c (ira_merge_live_ranges): Likewise.
21208 (swap_allocno_copy_ends_if_necessary): Likewise.
21209 * ira.c (ira_setup_alts): Likewise.
21210 * loop-iv.c (iv_analyze_expr): Likewise.
21211 (implies_p): Likewise.
21212 (canon_condition): Likewise.
21213 * lra-constraints.c (swap_operands): Likewise.
21214 * lra-lives.c (lra_merge_live_ranges): Likewise.
21215 * omega.c (swap): Remove.
21216 (bswap): Remove.
21217 (omega_unprotect_1): Use std::swap.
21218 (omega_solve_geq): Likewise.
21219 * optabs.c (expand_binop_directly): Likewise.
21220 (expand_binop): Likewise.
21221 (emit_conditional_move): Likewise.
21222 (emit_conditional_add): Likewise.
21223 * postreload.c (reload_cse_simplify_operands): Likewise.
21224 * reg-stack.c (emit_swap_insn): Likewise.
21225 (swap_to_top): Likewise.
21226 (compare_for_stack_reg): Likewise.
21227 (subst_asm_stack_regs): Likewise.
21228 * reload.c (find_reloads): Likewise.
21229 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21230 * sel-sched.c (invoke_reorder_hooks): Likewise.
21231 (create_block_for_bookkeeping): Likewise.
21232 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21233 (lambda_matrix_right_hermite): Use std::swap.
21234 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21235 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21236 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21237 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21238 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21239 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21240 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21241 * tree-vrp.c (compare_ranges): Likewise.
21242 * var-tracking.c (add_with_sets): Likewise.
21243 (vt_find_locations): Likewise.
21244
21245 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
21246
21247 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21248 pie executables.
21249 (FBSD_ENDFILE_SPEC): Likewise.
21250 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21251 config/freebsd-spec.h.
21252 (ENDFILE_SPEC): Likewise.
21253
21254 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
21255 Richard Henderson <rth@redhat.com>
21256
21257 PR target/57032
21258 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21259 Check for a memory location that is not a reference (using an AND)
21260 to an unaligned location here.
21261 * config/alpha/predicates.md (normal_memory_operand): Remove.
21262
21263 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
21264
21265 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21266 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21267
21268 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
21269
21270 * config/mips/mips.c (micromips_globals): New variable.
21271 (mips_set_compression_mode): Save and reinitialize target-dependent
21272 state for microMIPS.
21273
21274 2015-05-18 Martin Liska <mliska@suse.cz>
21275
21276 * dbgcnt.def: Add new counter.
21277 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21278
21279 2015-05-18 Martin Liska <mliska@suse.cz>
21280
21281 * dbgcnt.def: Sort counters.
21282 * opts.c (common_handle_option): Do not compile if
21283 -fdbg-cnt-list is enabled.
21284
21285 2015-05-18 Tom de Vries <tom@codesourcery.com>
21286
21287 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21288 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
21289 address operator to va_list operand.
21290 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21291 unconditionally.
21292 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21293 operand.
21294 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21295 * config/s390/s390.c (s390_gimplify_va_arg): Same.
21296 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21297
21298 2015-05-18 Tom de Vries <tom@codesourcery.com>
21299
21300 * tree-ssa-tail-merge.c: Fix whitespace.
21301
21302 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
21303
21304 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21305 cortex-a17, and cortex-a17.cortex-a7.
21306
21307 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
21308
21309 PR target/54236
21310 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21311
21312 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
21313
21314 PR target/66174
21315 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21316 QImode inner modes for TARGET_AVX512BW. Force mask operand
21317 to a register for AVX512F modes.
21318
21319 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21320
21321 * toplev.c (emit_debug_global_declarations): Do not output debug info
21322 when doing slim LTO objects.
21323
21324 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21325
21326 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21327 odr_types_equivalent_p): Declare.
21328 (odr_type_p): Use gcc_checking_assert.
21329 (type_in_anonymous_namespace_p) Declare.
21330 (type_with_linkage_p): Declare.
21331 * common.opt (Wlto-type-mismatch): New warning.
21332 * ipa-devirt.c (compound_type_base): New function.
21333 (odr_or_derived_type_p): New function.
21334 (odr_types_equivalent_p): New function.
21335 (add_type_duplicate): Simplify.
21336 (type_with_linkage_p): Add hack to prevent false positives on C types
21337 (type_in_anonymous_namespace_p): Likewise.
21338 * tree.c (need_assembler_name_p): Use type_with_linkage.
21339 * tree.h (type_in_anonymous_namespace_p): Remove.
21340 * doc/invoke.texi (-Wlto-type-mismatch): Document
21341
21342 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21343
21344 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21345 (verify_type): Verify STRING_FLAG.
21346
21347 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
21348
21349 PR fortran/44054
21350 * tree-pretty-print.c (percent_K_format): Replace locus pointer
21351 with accessor function.
21352 * tree-diagnostic.c (diagnostic_report_current_function): Use
21353 diagnostic_location function.
21354 (maybe_unwind_expanded_macro_loc): Likewise.
21355 (virt_loc_aware_diagnostic_finalizer): Likewise.
21356 (default_tree_printer): Replace locus pointer with accessor function.
21357 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21358 (diagnostic_set_info_translated): Initialize second location.
21359 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21360 (diagnostic_show_locus): Handle two locations. Call
21361 diagnostic_print_caret_line.
21362 (diagnostic_print_caret_line): New.
21363 (default_diagnostic_starter): Use diagnostic_location function.
21364 (diagnostic_report_diagnostic): Use diagnostic_location function.
21365 (verbatim): Do not set text.locus.
21366 * diagnostic.h (struct diagnostic_info): Remove location field.
21367 (struct diagnostic_context): Make caret_chars an array of two.
21368 (diagnostic_location): New inline.
21369 (diagnostic_expand_location): Handle two locations.
21370 (diagnostic_same_line): New inline.
21371 (diagnostic_print_caret_line): Declare.
21372 (CARET_LINE_MARGIN): New constant.
21373 * pretty-print.c (pp_printf): Do not set text.locus.
21374 (pp_verbatim): Do not set text.locus.
21375 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21376 (struct text_info): Replace locus pointer with locations
21377 array. Add accessor functions.
21378
21379 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
21380 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21381
21382 PR target/65768
21383 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21384 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21385 large constants in register instead of splitting them.
21386
21387 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
21388
21389 PR target/66140
21390 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21391 replacements in memory addresses.
21392 (get_unaligned_address): Ditto.
21393
21394 2015-05-16 James Bowman <james.bowman@ftdichip.com>
21395
21396 * config/ft32/*: New files for FT32 port.
21397 * doc/install.texi: Add FT32 information.
21398 * doc/invoke.texi: Add FT32 information.
21399 * doc/md.texi: Add FT32 information.
21400 * doc/contrib.texi: Self added.
21401
21402 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
21403
21404 PR tree-optimization/64454
21405 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21406 (-1 - A -> ~A): Remove unnecessary condition.
21407
21408 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
21409
21410 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21411 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21412 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21413
21414 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
21415
21416 * ipa-chkp.h (chkp_wrap_function): New.
21417 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21418 (chkp_wrap_function_name): New.
21419 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21420 to get wrapper name.
21421 * lto-cgraph.c: Include ipa-chkp.h.
21422 (input_cgraph_1): Avoid alias chain for wrappers.
21423
21424 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
21425
21426 PR middle-end/66134
21427 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21428 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21429
21430 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21431
21432 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21433 (AARCH64_FL_SLOWMUL): Delete.
21434 (AARCH64_FL_CRC): Redefine to 1<<3.
21435 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21436
21437 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21438
21439 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21440 casting.
21441
21442 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21443
21444 * config/alpha/alpha.md (extendqidi2): Use general_operand
21445 instead of some_operand for operand[1] predicate.
21446 (extendhidi2): Ditto.
21447 (cbranchdi4): Use general_operand instead of some_operand
21448 for operand[1] and operands[2] predicates.
21449 (cstoredi4): Ditto.
21450 * config/alpha/predicates.md (some_operand): Remove unused predicate.
21451 (some_ni_operand): Ditto.
21452
21453 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21454
21455 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21456 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
21457 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21458 low part of the constant using alpha_emit_set_const_1.
21459 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21460
21461 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
21462
21463 * varasm.c (output_constant_pool_1): Pass down alignment from
21464 constant pool entry's descriptor to output_constant_pool_2.
21465 (output_object_block): Add comment prior to call to
21466 output_constant_pool_1.
21467
21468 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
21469
21470 PR rtl-optimization/65862
21471 * target.def (ira_change_pseudo_allocno_class): New hook.
21472 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21473 value of the hook.
21474 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21475 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21476 hook.
21477 * ira-costs.c (find_costs_and_classes): Call the hook and change
21478 classes when it is necessary.
21479 * doc/tm.texi: Update.
21480
21481 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
21482
21483 * config/i386/i386.md (sibcall_memory): Check that register with
21484 callee address is not also used as one of the arguments, instead
21485 of checking that it is not live after the sibcall.
21486 (sibcall_pop_memory): Ditto.
21487 (sibcall_value_memory): Ditto.
21488 (sibcall_value_pop_memory): Ditto.
21489
21490 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
21491
21492 * generic-match-head.c (types_match): Handle non-types.
21493 * gimple-match-head.c (types_match): Likewise.
21494 * match.pd: Remove unnecessary TREE_TYPE for types_match.
21495
21496 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
21497
21498 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21499 (csneg3<mode>_insn): Enable expansion of pattern.
21500
21501 2015-05-14 Nick Clifton <nickc@redhat.com>
21502
21503 * config/rl78/rl78.c (rl78_select_section): Select the correct
21504 default section based upon the category of the decl.
21505
21506 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21507
21508 PR rtl-optimization/30967
21509 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21510 destination mode for the cost of scc patterns.
21511
21512 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21513
21514 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21515 using SWIM248 mode iterator.
21516 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21517 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
21518 for operand[2] constraint.
21519 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21520
21521 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21522
21523 PR middle-end/66133
21524 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21525 make sure it is never noreturn, even when the task body does not
21526 return.
21527 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21528 right before GIMPLE_OMP_RETURN.
21529 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21530 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
21531 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21532
21533 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21534
21535 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21536 * tree-ssa-math-opts.c: Include params.h
21537 (pow_synth_sqrt_info): New struct.
21538 (representable_as_half_series_p): New function.
21539 (get_fn_chain): Likewise.
21540 (print_nested_fn): Likewise.
21541 (dump_fractional_sqrt_sequence): Likewise.
21542 (dump_integer_part): Likewise.
21543 (expand_pow_as_sqrts): Likewise.
21544 (gimple_expand_builtin_pow): Use above to attempt to expand
21545 pow as series of square roots. Removed now unused variables.
21546
21547 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21548
21549 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21550 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21551 Remove *p0 and *p1 arguments. Rewrite function.
21552 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21553 (alpha_split_const_mov): Update calls to alpha_extract_integer and
21554 alpha_emit_set_long_const.
21555 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21556 (alpha_output_mi_thunk_osf): Ditto.
21557 * config/alpha/alpha.md (movti): Do not check operands[1]
21558 for CONST_DOUBLE.
21559
21560 2015-05-13 Richard Biener <rguenther@suse.de>
21561
21562 PR tree-optimization/66129
21563 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21564 commutative.
21565 (vect_schedule_slp_instance): Fix typo.
21566
21567 2015-05-13 David Malcolm <dmalcolm@redhat.com>
21568
21569 * common.opt (fdump-internal-locations): New option.
21570 * input.c: Include diagnostic-core.h.
21571 (get_end_location): New function.
21572 (write_digit): New function.
21573 (write_digit_row): New function.
21574 (dump_location_range): New function.
21575 (dump_labelled_location_range): New function.
21576 (dump_location_info): New function.
21577 * input.h (dump_location_info): New prototype.
21578 * toplev.c (compile_file): Handle flag_dump_locations.
21579
21580 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
21581
21582 * gimple-expr.h (is_gimple_constant): Reorder.
21583 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21584
21585 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21586
21587 * combine.c (simplify_set): When generating a CC set, if the
21588 source already is in the correct mode, do not wrap it in a
21589 compare. Simplify the rest of that code.
21590
21591 2015-05-13 Richard Biener <rguenther@suse.de>
21592
21593 PR tree-optimization/66123
21594 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21595 a taken edge.
21596
21597 2015-05-13 Richard Biener <rguenther@suse.de>
21598
21599 PR middle-end/66110
21600 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21601 specially.
21602 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21603
21604 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21605
21606 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21607 * aclocal.m4: Regenerated with automake-1.11.6.
21608
21609 2015-05-13 Tom de Vries <tom@codesourcery.com>
21610
21611 PR tree-optimization/66010
21612 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21613 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21614 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
21615 and rval based on do_deref.
21616
21617 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21618
21619 PR target/65103
21620 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21621 link time constants into adress expressions and therefore set
21622 their cost to 0.
21623
21624 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21625
21626 PR target/66112
21627 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21628 Use SWI248 iterator instead of SWI.
21629 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
21630 Use eq_attr "alternative" "0" instead of match_test in
21631 length_immediate attribute computation.
21632 (*mulvhi4, *mulvhi4_1): New define_insns.
21633
21634 PR target/66112
21635 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21636 SIGNED to get precision of non-negative value.
21637
21638 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21639
21640 PR target/66048
21641 * function.c (diddle_return_value_1): Process bounds first.
21642 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21643 register.
21644
21645 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21646
21647 PR rtl-optimization/64616
21648 * loop-invariant.c (can_move_invariant_reg): New.
21649 (move_invariant_reg): Call above new function to decide whether
21650 instruction can just be moved, skipping creation of temporary
21651 register.
21652
21653 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21654
21655 PR target/pr66047.c
21656 * i386.c (ix86_function_sseregparm): Only return -1 if local function
21657 with implied regparm is called from -mno-sse function.
21658 (init_cumulative_args): Output error if ix86_function_sseregparm
21659 return -1 and SSE register would be needed.
21660 (function_arg_advance_32): Likewise.
21661 (function_arg_32): Likewise.
21662 * i386.h (ix86_args): Add decl field.
21663
21664 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21665
21666 PR ipa/65873
21667 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21668 inlines across optimization boundary.
21669
21670 2015-05-12 Jason Merrill <jason@redhat.com>
21671
21672 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21673 string literal and macro name.
21674
21675 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
21676
21677 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21678 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21679 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21680
21681 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21682
21683 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21684 (-Wmisleading-indentation): New option.
21685 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21686
21687 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
21688
21689 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21690 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21691 (alpha_extract_integer): Ditto.
21692 (alpha_legitimate_constant_p): Ditto.
21693 (alpha_split_tmode_pair): Ditto.
21694 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21695 (alpha_expand_mov): Ditto.
21696 (print_operand): Remove handling of 'H' modifier.
21697 <case 'm'>: Remove CONST_DOUBLE handling.
21698 (summarize_insn): Handle CONST_WIDE_INT.
21699 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21700 (anddi3): Ditto.
21701 (movti): Handle CONST_WIDE_INT.
21702 * config/alpha/constraints.md ('H'): Remove constraint definition.
21703 ('G'): Do not match MODE_FLOAT class.
21704 * config/alpha/predicates.md (const0_operand): Also match
21705 const_wide_int.
21706 (non_add_const_operand): Ditto.
21707 (non_zero_const_operand): Ditto.
21708 (some_operand): Ditto.
21709 (input_operand): Ditto. Handle CONST_WIDE_INT.
21710 (and_operand): Do not match const_double.
21711 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21712
21713 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
21714
21715 PR target/65697
21716 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21717 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21718 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21719 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21720 is_mm_seq_cst, is_mm_sync): New accessor functions.
21721 * builtins.c (expand_builtin_sync_operation,
21722 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21723 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21724 (get_memmodel, expand_builtin_atomic_compare_exchange,
21725 expand_builtin_atomic_load, expand_builtin_atomic_store,
21726 expand_builtin_atomic_clear): Use new accessor routines.
21727 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21728 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21729 (maybe_emit_sync_lock_test_and_set): Use new accessors and
21730 MEMMODEL_SYNC_ACQUIRE.
21731 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21732 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21733 expand_atomic_store): Use new accessors.
21734 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21735 * tsan.c (instrument_builtin_call): Update check for memory model beyond
21736 final enum to use MEMMODEL_LAST.
21737 * c-family/c-common.c: Use new accessor for memmodel_base.
21738 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21739 accessors.
21740 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21741 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21742 mem_thread_fence, *dmb): Likewise.
21743 * config/alpha/alpha.c (alpha_split_compare_and_swap,
21744 alpha_split_compare_and_swap_12): Likewise.
21745 * config/arm/arm.c (arm_expand_compare_and_swap,
21746 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21747 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21748 atomic_loaddi): Likewise.
21749 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21750 Likewise.
21751 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21752 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21753 use new accessors.
21754 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21755 atomic_store<mode>, atomic_compare_and_swap<mode>,
21756 atomic_exchange<mode>): Use new accessors.
21757 * config/mips/mips.c (mips_process_sync_loop): Likewise.
21758 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21759 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21760 rs6000_post_atomic_barrier): Add new cases.
21761 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21762 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21763 (atomic_load<mode>): Add new cases and use new accessors.
21764 (store_quadpti): Add new cases.
21765 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21766 accessors.
21767 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21768 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21769 model, not 8.
21770
21771 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21772
21773 * ipa-devirt.c (type_with_linkage_p): New function.
21774 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21775 type has linkage.
21776 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21777 (can_be_name_hashed_p): Simplify.
21778 (hash_odr_name): Check that type has linkage before checking if it is
21779 anonymous.
21780 (types_same_for_odr): Likewise.
21781 (odr_name_hasher::equal): Likewise.
21782 (odr_subtypes_equivalent_p): Likewise.
21783 (warn_types_mismatch): Likewise.
21784 (get_odr_type): Likewise.
21785 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21786 * ipa-utils.h (odr_type_p): Move offline.
21787 * tree.c (need_assembler_name_p): Fix handling of types
21788 without linkages.
21789 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21790
21791 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21792
21793 * timevar.c (timevar_enable): Delete in favor of...
21794 (g_timer): New global.
21795 (struct timevar_def): Move to timevar.h inside class timer.
21796 (struct timevar_stack_def): Likewise.
21797 (timevars): Delete global in favor of field "m_timevars" within
21798 class timer in timevar.h
21799 (stack): Likewise, in favor of field "m_stack".
21800 (unused_stack_instances): Likewise, in favor of field
21801 "m_unused_stack_instances".
21802 (start_time): Likewise, in favor of field "m_start_time".
21803 (get_time): Eliminate check for timevar_enable.
21804 (timer::timer): New function, built from part of timevar_init.
21805 (timevar_init): Rewrite idempotency test from using
21806 "timevar_enable" bool to using dynamic allocation of "g_timer".
21807 Move rest of implementation into timer's constructor.
21808 (timevar_push_1): Rename to...
21809 (timer::push): ...this, adding "m_" prefixes to variables that
21810 are now fields of timer.
21811 (timevar_pop_1): Likewise, rename to...
21812 (timer::pop): ...this, and add "m_" prefixes.
21813 (timevar_start): Replace test for "timevar_enable" with one for
21814 "g_timer", and move bulk of implementation to...
21815 (timer::start): ...here, adding "m_" prefixes.
21816 (timevar_stop): Likewise, from here...
21817 (timer::stop): ...to here.
21818 (timevar_cond_start): Likewise, from here...
21819 (timer::cond_start): ...to here.
21820 (timevar_cond_stop): Likewise, from here...
21821 (timer::cond_stop): ...to here.
21822 (validate_phases): Rename to...
21823 (timer::validate_phases): ...this, and add "m_" prefixes. Make
21824 locals "total" and "tv" const.
21825 (timevar_print): Rename to...
21826 (timer::print): ...this, and add "m_" prefixes. Make locals
21827 "total" and "tv" const. Eliminate test for timevar_enable.
21828 * timevar.h (timevar_enable): Eliminate.
21829 (g_timer): New declaration.
21830 (timevar_push_1): Eliminate.
21831 (timevar_pop_1): Eliminate.
21832 (timevar_print): Eliminate.
21833 (class timer): New class.
21834 (timevar_push): Rewrite to use g_timer.
21835 (timevar_pop): Likewise.
21836 * toplev.c (toplev::~toplev): Likewise.
21837
21838 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
21839
21840 * arm-protos.h (arm_sched_autopref): Delete.
21841 (tune_params): Re-organize, use enums for flag values.
21842 (FUSE_OPS): New macro.
21843 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21844 (ARM_PREFETCH_BENEFICIAL): Likewise.
21845 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21846 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21847 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21848 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21849 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21850 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
21851 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21852 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21853 format.
21854 (arm_option_override, thumb2_reorg, arm_print_tune_info)
21855 (aarch_macro_fusion_pair_p): Update uses of current_tune.
21856 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21857
21858 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
21859
21860 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21861 "break".
21862
21863 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
21864 Sandra Loosemore <sandra@codesourcery.com>
21865
21866 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21867 value.
21868 (REG_CLASS_NAMES): Add "IJMP_REGS".
21869 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21870 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21871 use new "c" register constraint.
21872 * config/nios2/constraint.md (c): New register constraint
21873 corresponding to IJMP_REGS.
21874
21875 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21876
21877 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21878 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21879 define_splits): Delete, revamp, transmogrify into ...
21880 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21881 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21882 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21883 New.
21884
21885 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21886
21887 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21888 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21889
21890 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21891
21892 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21893 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21894 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21895 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21896 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21897 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21898 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21899 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21900 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21901 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21902 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21903 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21904 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21905 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21906 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21907 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21908 and 30 corresponding splitters): Delete.
21909
21910 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21911
21912 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21913 zero_extract.
21914
21915 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21916
21917 * combine.c (recog_for_combine_1): New function, factored out
21918 from recog_for_combine.
21919 (change_zero_ext): New function.
21920 (recog_for_combine): If recog fails, try again with the pattern
21921 modified by change_zero_ext; if that still fails, restore the
21922 pattern.
21923
21924 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21925
21926 * combine.c (get_undo_marker): New function.
21927 (undo_to_marker): New function, largely factored out from ...
21928 (undo_all): ... this. Adjust.
21929
21930 2015-05-12 Richard Biener <rguenther@suse.de>
21931
21932 PR tree-optimization/66101
21933 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21934 fixup if we turn a loop exit edge to a fallthru edge.
21935
21936 2015-05-12 Richard Biener <rguenther@suse.de>
21937
21938 PR tree-optimization/37021
21939 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21940 (SLP_TREE_TWO_OPERATORS): New define.
21941 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21942 SLP_TREE_TWO_OPERATORS.
21943 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21944 SLP node.
21945 (vect_build_slp_tree): Adjust.
21946 (vect_analyze_slp_cost_1): Likewise.
21947 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21948 emitting two vector stmts and mixing the results.
21949
21950 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21951
21952 * call.c (print_z_candidates): Remove dead code.
21953
21954 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21955
21956 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21957 and zEC12_simple_fp.
21958 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21959 to 1.
21960
21961 2015-05-12 Tom de Vries <tom@codesourcery.com>
21962
21963 PR tree-optimization/66010
21964 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21965 ifn_va_arg.
21966 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21967 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
21968 va_lists are passed, and remove corresponding handling.
21969 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
21970 do_deref argument to ifn_va_arg.
21971 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21972 ifn_va_arg.
21973
21974 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21975
21976 PR target/65955
21977 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21978 REG before taking its REGNO.
21979
21980 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21981
21982 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21983 rsp->sign_bit_copies and rsp->nonzero_bits into ...
21984 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
21985 present to get more accurate information about the number of sign bit
21986 copies and non zero bits.
21987
21988 2015-05-12 Richard Biener <rguenther@suse.de>
21989
21990 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21991 do not allow unrolling.
21992
21993 2015-05-11 Richard Henderson <rth@redhat.com>
21994
21995 * config/i386/i386-modes.def (CCP): New.
21996 * config/i386/i386.c (put_condition_code): Handle it.
21997 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21998
21999 2015-05-11 Richard Henderson <rth@redhat.com>
22000
22001 * target.def (md_asm_clobbers): Replace with...
22002 (md_asm_adjust): this.
22003 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22004 (TARGET_MD_ASM_ADJUST): New.
22005 * tm.texi: Rebuild.
22006 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22007 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22008 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22009
22010 * cfgexpand.c (check_operand_nalternatives): Accept vector of
22011 constraints instead of lists of outputs and inputs.
22012 (expand_asm_stmt): Save and restore input_location around the
22013 body of the function. Move asm data into vectors instead of
22014 building tree lists. Generate cleanup sequences as needed,
22015 rather than waiting til the end. Use new md_asm_adjust hook.
22016
22017 * config/vxworks.c: Include vec.h before target.h.
22018 * gimple.c: Likewise.
22019 * incpath.c: Likewise.
22020 * mode-switching.c: Likewise.
22021
22022 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22023 (cris_md_asm_adjust): this.
22024 (TARGET_MD_ASM_CLOBBERS): Remove.
22025 (TARGET_MD_ASM_ADJUST): New.
22026 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22027 (ix86_md_asm_adjust): this.
22028 (TARGET_MD_ASM_CLOBBERS): Remove.
22029 (TARGET_MD_ASM_ADJUST): New.
22030 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22031 (mn10300_md_asm_adjust): this.
22032 (TARGET_MD_ASM_CLOBBERS): Remove.
22033 (TARGET_MD_ASM_ADJUST): New.
22034 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22035 (rs6000_md_asm_adjust): this.
22036 (TARGET_MD_ASM_CLOBBERS): Remove.
22037 (TARGET_MD_ASM_ADJUST): New.
22038 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22039 (visium_md_asm_adjust): this.
22040 (TARGET_MD_ASM_CLOBBERS): Remove.
22041 (TARGET_MD_ASM_ADJUST): New.
22042
22043 2015-05-11 Richard Henderson <rth@redhat.com>
22044
22045 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22046 if noutputs is zero.
22047 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22048
22049 * cfgexpand.c (expand_asm_operands): Merge into...
22050 (expand_asm_stmt): ... here.
22051
22052 * cfgexpand.c (expand_asm_operands): Don't call
22053 resolve_asm_operand_names.
22054 * stmt.c (resolve_asm_operand_names): Clarify block comment.
22055
22056 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
22057
22058 * dwarf2out.c (gen_member_die): Sanity check that we access
22059 TYPE_MAIN_VARIANT for TYPE_METHODS.
22060 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22061 checking TYPE_METHODS.
22062 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22063 if non-null.
22064 (build_distinct_type_copy): Clear TYPE_METHODS.
22065 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22066 (verify_type): Allow TYPE_METHODS to be error_mark_node.
22067 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22068
22069 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
22070
22071 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22072 (emit_pattern_before_setloc): Likewise.
22073
22074 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22075
22076 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22077 for define_peephole2s.
22078 (get_peephole2_pattern): New function.
22079 (main): Use it. Call validate_pattern.
22080
22081 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22082
22083 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22084 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22085 (Last callee saved reg is different for AVR_TINY architecture)
22086
22087 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22088
22089 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22090 when looking for memory references.
22091
22092 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22093
22094 PR target/65753
22095 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22096 via function pointers.
22097
22098 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22099
22100 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22101 indirect call by forcing address into a pseudo with -fno-plt.
22102 * common.opt (flag_plt): New option.
22103 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22104 ([-fno-plt]): Document.
22105
22106 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
22107
22108 PR bootstrap/66105
22109 * config/rs6000/option-defaults.h: Add space between string literal
22110 and macro name.
22111
22112 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22113
22114 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22115 accross ARM targets.
22116
22117 2015-05-11 Christian Bruel <christian.bruel@st.com>
22118
22119 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22120 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22121
22122 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22123
22124 PR rtl-optimization/66076
22125 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22126 Don't grow the heap array if it is already big enough from a
22127 previous iteration.
22128
22129 2015-05-11 Christian Bruel <christian.bruel@st.com>
22130
22131 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22132 (is_called_in_ARM_mode): Remove.
22133 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22134 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22135 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22136 arm_declare_function_name.
22137
22138 2015-05-11 Christian Bruel <christian.bruel@st.com>
22139
22140 * config/arm/arm.c (arm_option_override): Reoganized and split into :
22141 (arm_option_params_internal); New function.
22142 (arm_option_check_internal): New function.
22143 (arm_option_override_internal): New function.
22144 (thumb_code, thumb1_code): Remove.
22145 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22146 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22147 (thumb_code, thumb1_code): Remove.
22148 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22149
22150 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22151
22152 * config/alpha/alpha.c (alpha_emit_set_const_1)
22153 (alpha_emit_set_long_const, alpha_extract_integer)
22154 (alpha_legitimate_constant_p, alpha_split_const_mov)
22155 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22156 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22157 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22158 HOST_WIDE_INT_1U.
22159 * config/alpha/predicates.md (mode_mask_operand): Do not match
22160 const_double RTX.
22161 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22162 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22163 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22164 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22165 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22166
22167 2015-05-11 Jakub Jelinek <jakub@redhat.com>
22168
22169 PR target/65780
22170 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22171 default_binds_local_p_2.
22172 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22173 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22174
22175 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22176
22177 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22178
22179 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22180
22181 Patch by Richard Biener
22182 * coverage.c (coverage_obj_init): Delay building of type variant
22183 until the type is finished.
22184
22185 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22186
22187 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22188 mismatch between C and C++ type; compoare correctly ARG_TYPES
22189 for non-prototypes and output correctly parameter index for METHOD_TYPE.
22190 (odr_types_equivalent_p): Fix wording of warning about attributes;
22191 it is OK to match prototype and non-prototype.
22192
22193 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22194
22195 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22196 TYPE_ARG_TYPES list.
22197 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22198 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22199
22200 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22201
22202 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22203 * tree.h (is_lang_specific): Constify.
22204
22205 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
22206
22207 PR tree-optimization/64454
22208 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22209 Rewrite.
22210
22211 2015-05-08 Jason Merrill <jason@redhat.com>
22212
22213 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22214 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22215 config/darwin.h, config/darwin9.h, config/elfos.h,
22216 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22217 config/microblaze/microblaze.h, config/mips/mips.h,
22218 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22219 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22220 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22221 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22222 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22223 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22224 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22225 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22226 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22227 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22228 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22229 between string literal and macro name.
22230
22231 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22232
22233 * jump.c: Change argument types to rtx_insn *.
22234 * rtl.h: Adjust.
22235
22236 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22237
22238 * lra-constraints.c: Change argument type to rtx_insn *.
22239
22240 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22241
22242 * df-problems.c: Change argument type to rtx_insn *.
22243
22244 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22245
22246 * combine.c: Change argument type to rtx_insn *.
22247
22248 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22249
22250 * rtl.h: Adjust.
22251 * rtlanal.c: Change argument type to rtx_insn *.
22252
22253 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22254
22255 * sched-deps.c: Change argument types to rtx_insn *.
22256 * sched-int.h: Adjust.
22257
22258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22259
22260 * dwarf2cfi.c: Change argument type to rtx_insn *.
22261
22262 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22263
22264 * ira.c (decrease_live_ranges_number): Changetype of local
22265 variable to rtx_insn *.
22266 * recog.c: Change argument types to rtx_insn *.
22267 * recog.h: Adjust.
22268
22269 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22270
22271 * reorg.c: Change argument types to rtx_insn *.
22272
22273 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22274
22275 * ira-color.c: Change argument types to rtx_insn *.
22276 * lra-eliminations.c: Likewise.
22277 * ira.h: Adjust.
22278
22279 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22280
22281 * gcse.c: Change argument types to rtx_insn *.
22282
22283 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22284
22285 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22286
22287 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22288
22289 * emit-rtl.c (emit_debug_insn_before): Change argument type to
22290 rtx_insn *.
22291 * rtl.h: Adjust.
22292
22293 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22294
22295 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22296 * rtl.h: Adjust.
22297
22298 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22299
22300 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22301 * rtl.h: Adjust.
22302
22303 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22304
22305 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22306 * rtl.h: Adjust.
22307
22308 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22309
22310 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22311 * rtl.h: Adjust.
22312
22313 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22314
22315 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22316 to rtx_insn *.
22317 * rtl.h: Adjust.
22318
22319 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22320
22321 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22322 to rtx_insn *.
22323 * rtl.h: Likewise.
22324
22325 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22326
22327 * except.c (can_nonlocal_goto): Change type of argument to
22328 rtx_insn *.
22329 * rtl.h: Adjust.
22330
22331 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22332
22333 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22334 * rtl.h: Adjust.
22335
22336 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22337
22338 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22339 * cfgrtl.c (can_delete_label_p): Adjust.
22340 * rtl.h: likewise.
22341
22342 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22343
22344 * reorg.c (stop_search_p): Change argument to rtx_insn *.
22345
22346 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22347
22348 * except.c (make_reg_eh_region_note): Change argument to
22349 rtx_insn *.
22350 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22351 * except.h: Adjust.
22352
22353 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22354
22355 * mode-switching.c (commit_mode_sets): Change type of local
22356 variable from rtx to rtx_insn *.
22357
22358 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
22359
22360 * doc/install.texi (--enable-languages): Add missing jit and lto info.
22361 Add ^ to grep command.
22362 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22363 arg to last gimple_simplify declaration. Add missing gimple_build
22364 declaration for built-in function case with four tree args.
22365
22366 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22367 Szabolcs Nagy <szabolcs.nagy@arm.com>
22368
22369 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22370 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22371 (GNU_USER_DYNAMIC_LINKERN32): Update.
22372
22373 2015-05-08 Richard Biener <rguenther@suse.de>
22374
22375 PR tree-optimization/66036
22376 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22377 Handle strided group loads.
22378 (vect_verify_datarefs_alignment): Likewise.
22379 (vect_enhance_data_refs_alignment): Likewise.
22380 (vect_analyze_group_access): Likewise.
22381 (vect_analyze_data_ref_access): Likewise.
22382 (vect_analyze_data_ref_accesses): Likewise.
22383 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22384 (vectorizable_load): Likewise.
22385
22386 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
22387
22388 * config/rs6000/rs6000.md: Require operand inequality in one
22389 of the peepholes.
22390
22391 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
22392 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22393
22394 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22395 from (set ...).
22396 * config/rx/rx.md (movdi, movdf): Likewise.
22397 Likewise for define_peephole2s.
22398
22399 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22400
22401 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22402 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22403 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22404 vtst_u64): Rewrite using gcc vector extensions.
22405
22406 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22407
22408 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22409 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22410
22411 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22412
22413 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22414
22415 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22416
22417 * config/glibc-stdint.h (OPTION_MUSL): Define.
22418 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22419 Change the definition based on OPTION_MUSL for 64 bit targets.
22420 * config/linux.h (OPTION_MUSL): Redefine.
22421 * config/alpha/linux.h (OPTION_MUSL): Redefine.
22422 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22423 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22424
22425 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22426 Szabolcs Nagy <szabolcs.nagy@arm.com>
22427
22428 * config.gcc (LIBC_MUSL): New tm_defines macro.
22429 * config/linux.h (OPTION_MUSL): Define.
22430 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22431 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22432 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22433 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22434 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22435 * config/linux.opt (mmusl): New option.
22436 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22437 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22438 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22439 * configure: Regenerate.
22440
22441 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
22442 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22443
22444 PR target/48904
22445 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22446 * config/i386/knetbsd-gnu64.h: New file.
22447
22448 2015-05-08 Marek Polacek <polacek@redhat.com>
22449
22450 PR c/64918
22451 * doc/invoke.texi: Document -Woverride-init-side-effects.
22452
22453 2015-05-07 Marek Polacek <polacek@redhat.com>
22454
22455 PR c/65179
22456 * doc/invoke.texi: Document -Wshift-negative-value.
22457
22458 2015-05-06 Aditya Kumar <hiraditya@msn.com>
22459
22460 * gcov-tool.c (do_merge): Refactore to remove int ret.
22461 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22462 !type == FUNC to type != FUNC.
22463 * reload.h (struct target_reload): Changee to type of
22464 x_spill_indirect_levels from bool to unsigned char.
22465
22466 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
22467
22468 * rtl.h (always_void_p): New function.
22469 * gengenrtl.c (always_void_p): Likewise.
22470 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22471 with code foo are always VOIDmode.
22472 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22473 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22474 compare-elim.c, config/aarch64/aarch64.c,
22475 config/aarch64/aarch64.md, config/alpha/alpha.c,
22476 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22477 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22478 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22479 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22480 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22481 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22482 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22483 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22484 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22485 config/ia64/vect.md, config/iq2000/iq2000.c,
22486 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22487 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22488 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22489 config/mep/mep.c, config/microblaze/microblaze.c,
22490 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22491 config/mn10300/mn10300.c, config/msp430/msp430.c,
22492 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22493 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22494 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22495 config/rs6000/altivec.md, config/rs6000/rs6000.c,
22496 config/rs6000/rs6000.md, config/rs6000/vector.md,
22497 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22498 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22499 config/sh/sh.md, config/sh/sh_treg_combine.cc,
22500 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22501 config/spu/spu.md, config/stormy16/stormy16.c,
22502 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22503 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22504 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22505 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22506 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22507 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22508 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22509 var-tracking.c: Update calls accordingly.
22510
22511 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22512
22513 PR middle-end/192
22514 PR middle-end/54303
22515 * varasm.c (function_mergeable_rodata_prefix): New function.
22516 (mergeable_string_section): Use it.
22517 (mergeable_constant_section): Use it.
22518
22519 2015-05-07 Jeff Law <law@redhat.com>
22520
22521 PR target/39726
22522 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22523 simplifier to narrow arithmetic.
22524 * generic-match-head.c: (types_match, single_use): New functions.
22525 * gimple-match-head.c: (types_match, single_use): New functions.
22526
22527 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22528
22529 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22530 rtx type.
22531
22532 2015-05-07 Richard Biener <rguenther@suse.de>
22533
22534 PR tree-optimization/66002
22535 * passes.def: Schedule another pass_merge_phi after ifcombine, right
22536 before phiopt.
22537
22538 2015-05-07 Marek Polacek <polacek@redhat.com>
22539 Martin Uecker <uecker@eecs.berkeley.edu>
22540
22541 * doc/invoke.texi: Document -fsanitize=bounds-strict.
22542 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22543 into SANITIZE_NONDEFAULT.
22544 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22545
22546 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
22547
22548 PR target/66015
22549 * config/alpha/alpha.c (alpha_override_options_after_change): New.
22550 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22551 (alpha_override_options): Move align_loops, align_jumps and
22552 align_functions handling into alpha_override_options_after_change.
22553
22554 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
22555 Chris Jones <chrisj@nvidia.com>
22556 Joshua Conner <jconner@nvidia.com>
22557
22558 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22559 linking of crtfastmath.o.
22560 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22561
22562 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
22563
22564 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22565 (cstore<mode>4_unsigned_imm): New expander.
22566 (cstore<mode>4): Remove empty constraint strings. Use the new
22567 expanders.
22568
22569 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
22570
22571 PR target/64208
22572 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22573 alternatives.
22574
22575 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22576
22577 * config/aarch64/geniterators.sh: Use standard BRE in sed.
22578
22579 2015-05-06 Alan Modra <amodra@gmail.com>
22580
22581 PR target/66033
22582 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22583 (UNSPEC_NOP): Define.
22584 (reload_vsx_from_gpr<mode>): Add missing DONE.
22585 (reload_gpr_from_vsx<mode>): Likewise.
22586 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22587 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22588
22589 2015-05-06 Christian Bruel <christian.bruel@st.com>
22590
22591 PR target/66015
22592 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22593 align_jumps, align_functions into aarch64_override_options_after_change.
22594
22595 2015-05-06 Richard Biener <rguenther@suse.de>
22596
22597 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22598 vect_transform_slp_perm_load to check if we support a permutation
22599 for basic-block vectorization.
22600
22601 2015-05-06 Nick Clifton <nickc@redhat.com>
22602
22603 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22604 used, even if it is not being used as a frame pointer.
22605
22606 2015-05-05 Jason Merrill <jason@redhat.com>
22607
22608 * dwarf2out.c (gen_member_die): Don't emit anything for an
22609 anonymous class constructor.
22610
22611 2015-05-05 David Malcolm <dmalcolm@redhat.com>
22612
22613 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22614 that it reflects the block structure.
22615 (afdo_propagate_edge): Likewise.
22616 (afdo_calculate_branch_prob): Likewise.
22617 (afdo_annotate_cfg): Likewise.
22618 * cfgcleanup.c (equal_different_set_p): Likewise.
22619 (try_crossjump_to_edge): Likewise.
22620 * cgraph.c (cgraph_node::verify_node): Likewise.
22621 * cgraphunit.c (expand_all_functions): Likewise.
22622 * config/i386/i386.c (ix86_expand_copysign): Likewise.
22623 (exact_dependency_1): Likewise.
22624 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22625 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22626 * gensupport.c (process_define_subst): Likewise.
22627 * lto-wrapper.c (merge_and_complain): Likewise.
22628 * tree-if-conv.c (if_convertible_bb_p): Likewise.
22629 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22630 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22631 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22632 * tree-vect-loop.c (vectorizable_reduction): Likewise.
22633 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22634 * tree-vect-stmts.c (vectorizable_shift): Likewise.
22635 * tree-vrp.c (vrp_finalize): Likewise.
22636 * tree.c (variably_modified_type_p): Likewise.
22637
22638 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
22639
22640 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22641 on darwin12 and later.
22642 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22643 file to pass -rdynamic on darwin12 and later.
22644 * config/darwin.opt (rdynamic): Add.
22645
22646 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22647
22648 * doc/extend.texi (C Extensions): Update menu for moved Variable
22649 Attributes and Type Attributes sections.
22650
22651 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22652
22653 PR target/65990
22654 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22655 if rep_8byte stringop strategy was specified for 32-bit target.
22656
22657 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
22658
22659 PR target/65915
22660 * config/i386/i386.md (vector convert to float spltiter): Check for
22661 xmm16+, when splitting scalar float conversion.
22662 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22663
22664 2015-05-05 Nick Clifton <nickc@redhat.com>
22665
22666 * config/msp430/msp430-opts.h (enum msp430_regions): New.
22667 * config/msp430/msp430.c (msp430_override_options): Complain if
22668 -mcode-region or -mdata-region is used on a non MSP430X.
22669 (msp430_section_attr): New function. Checks lower, upper and
22670 either attributes.
22671 (msp430_attribute_table): Add lower, upper and either.
22672 (gen_prefix): New function. Generates a prefix for a section
22673 name.
22674 (msp430_select_section): New function - handles the choice of
22675 section for an object. Takes into account memory region
22676 attributes and options.
22677 (msp430_function_section): Use gen_prefix.
22678 (TARGET_SECTION_TYPE_FLAGS): Define.
22679 (msp430_section_type_flags): New function.
22680 (TARGET_ASM_UNIQUE_SECTION): Define.
22681 (msp430_unique_section): New function.
22682 (msp430_output_aligned_decl_common): New function.
22683 (msp430_do_not_relax_short_jumps): New function.
22684 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22685 Define.
22686 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22687 * config/msp430/msp430-protos.h
22688 (msp430_do_not_relax_short_jumps): New prototype.
22689 (msp430_output_aligned_decl_common): New prototype.
22690 * config/msp430/msp430.md (length): New attribute.
22691 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22692 then use a long code sequence for short jumps.
22693 * config/msp430/msp430.opt (mcode-region): New.
22694 (mdata-region): New.
22695 * doc/invoke.texi: Document new options.
22696 * doc/extend.texi: Document new attributes.
22697
22698 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22699
22700 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22701 (tune_params): Add field branch_costs.
22702 (aarch64_branch_cost): Declare.
22703 * gcc/config/aarch64.c (generic_branch_cost): New.
22704 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22705 (cortexa53_tunings): Likewise.
22706 (cortexa57_tunings): Likewise.
22707 (thunderx_tunings): Likewise.
22708 (xgene1_tunings): Likewise.
22709 (aarch64_branch_cost): Define.
22710 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22711
22712 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22713
22714 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22715 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22716 * config/i386/i386.md: Ditto.
22717 * config/i386/winnt.c: Ditto.
22718
22719 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22720
22721 * doc/extend.texi (__atomic Builtins): Move implementation details
22722 to the end of the description, rewrite opening paragraphs, state
22723 difference with __sync builtins, state C11/C++11 assumptions,
22724 weaken itemized descriptions, add explanation of memory model
22725 behaviour, expand description of compare-exchange, simplify text.
22726
22727 2015-05-05 Renlin Li <renlin.li@arm.com>
22728
22729 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22730
22731 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
22732
22733 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22734 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22735 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22736 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22737 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22738 * configure: Regenerate.
22739 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22740 * doc/install.texi (aarch64*-*-*): Document new
22741 --enable-fix-cortex-a53-843419 option.
22742 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22743 and -mno-fix-cortex-a53-843419 options.
22744
22745 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22746
22747 PR target/65871
22748 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22749
22750 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
22751
22752 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22753 fix overactive TYPE_MIN_VALUE check and add FIXME for type
22754 compatibility problems.
22755
22756 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22757
22758 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22759 constraints.
22760 (cbranchsi4_reg): New.
22761 * config/microblaze/microblaze.c
22762 (microblaze_expand_conditional_branch_reg): New.
22763 * config/microblaze/microblaze-protos.h
22764 (microblaze_expand_conditional_branch_reg): New prototype.
22765
22766 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22767
22768 * config/microblaze/microblaze.md (peephole2): New.
22769
22770 2015-05-04 Jeff Law <law@redhat.com>
22771
22772 Revert:
22773 2015-05-04 Jeff Law <law@redhat.com>
22774
22775 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22776 simplifier to narrow arithmetic.
22777 * generic-match-head.c: (types_match, single_use): New functions.
22778 * gimple-match-head.c: (types_match, single_use): New functions.
22779
22780 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
22781
22782 PR target/65987
22783 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22784 (split_branches): Likewise.
22785
22786 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
22787
22788 * common.opt (fdelete-null-pointer-checks): Init to -1.
22789 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22790 override flag_delete_null_pointer_checks default.
22791 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22792 behavior re address zero. Better document target-specific behavior.
22793 (-fisolate-errneous-paths-dereference): Mention relationship to
22794 -fdelete-null-pointer-checks.
22795
22796 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22797
22798 PR tree-optimization/65984
22799 * ubsan.c: Include tree-cfg.h.
22800 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22801 stmt_could_throw_p test, rename can_throw variable to ends_bb.
22802
22803 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22804
22805 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22806 to CONST_DOUBLE_P predicate.
22807 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22808 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22809 allow only operands that satisfy standard_sse_constant_p predicate.
22810 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22811 to CONST_DOUBLE_P predicate.
22812
22813 2015-05-04 Jeff Law <law@redhat.com>
22814
22815 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22816 simplifier to narrow arithmetic.
22817 * generic-match-head.c: (types_match, single_use): New functions.
22818 * gimple-match-head.c: (types_match, single_use): New functions.
22819
22820 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
22821
22822 * config/arm/arm.c: Restore bootstrap.
22823
22824 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22825
22826 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22827 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22828 as CONST_WIDE_INT, not CONST_DOUBLE.
22829 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22830 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22831 (ix86_find_base_term): Do not check for CONST_DOUBLE.
22832 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22833 (ix86_build_signbit_mask): Rewrite using wide ints.
22834 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22835 (ix86_rtx_costs): Handle CONST_WIDE_INT.
22836 (find_constant): Ditto.
22837 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22838 using gen_int_mode.
22839 * config/i386/predicates.md (x86_64_immediate_operand)
22840 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22841 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22842 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22843 (const0_operand): Also match const_wide_int.
22844 (constm1_operand): Ditto.
22845 (const1_operand): Ditto.
22846
22847 2015-05-04 Richard Biener <rguenther@suse.de>
22848
22849 PR tree-optimization/65965
22850 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22851 store groups at gaps.
22852
22853 2015-05-04 Richard Biener <rguenther@suse.de>
22854
22855 PR tree-optimization/65935
22856 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22857 then make sure to apply that swapping to the IL.
22858
22859 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22860
22861 * Makefile.in (PATCHLEVEL_c): New variable.
22862 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22863 expand the same way as if DEVPHASE_c was non-empty.
22864
22865 2015-05-04 Kai Tietz <ktietz@redhat.com>
22866
22867 PR target/65559
22868 * lto-wrapper.c (run_gcc): Open filename
22869 in binary-mode.
22870
22871 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
22872
22873 * doc/extend.texi (Variable Attributes, Type Attributes): Move
22874 sections up in file, to immediately after the Function Attributes
22875 section.
22876
22877 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
22878
22879 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22880
22881 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22882
22883 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22884 (insert_partition_copy_on_edge): Adjust.
22885 (insert_rtx_to_part_on_edge): Likewise.
22886 (insert_part_to_rtx_on_edge): Likewise.
22887
22888 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22889
22890 * function.c (set_return_jump_label): Change type of argument to
22891 rtx_insn *.
22892 * function.h (set_return_jump_label): Adjust.
22893
22894 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22895
22896 * reload.h (struct reg_equivs_t): Change type of init to
22897 rtx_insn *.
22898 * ira.c (fix_reg_equiv_init): Adjust.
22899 * reload1.c (eliminate_regs_1): Likewise.
22900 (init_eliminable_invariants): Likewise.
22901
22902 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22903
22904 * cselib.c (fp_setter_insn): Take a rtx_insn *.
22905 * cselib.h (fp_setter_insn): Adjust.
22906
22907 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22908
22909 * recog.c (struct validate_replace_src_data): Change type of
22910 insn field to rtx_insn *.
22911 (validate_replace_src_group): Change type of argument to rtx_insn *.
22912 * recog.h (validate_replace_src_group): Adjust.
22913
22914 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22915
22916 * haifa-sched.c: Change the type of some variables to rtx_insn *.
22917 * sched-deps.c: Likewise.
22918 * sched-int.h: Likewise.
22919 * sched-rgn.c: Likewise.
22920 * sel-sched.c: Likewise.
22921
22922 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22923
22924 to rtx_insn *.
22925 * config/i386/i386.c: Change the type of some arguments to
22926 rtx_insn *.
22927 * config/arm/arm.c: Likewise.
22928
22929 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22930
22931 * lra-constraints.c: Change type of some arguments to rtx_insn *.
22932
22933 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22934
22935 * regcprop.c (kill_autoinc_value): Change type of argument to
22936 rtx_insn *.
22937
22938 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22939
22940 * genrecog.c (print_subroutine): Adjust.
22941 * recog.c (get_bool_attr_mask_uncached): Likewise.
22942 * recog.h (struct recog_data_d): Change the type of insn to
22943 rtx_insn *.
22944
22945 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22946
22947 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22948
22949 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22950
22951 * df-problems.c (df_set_note): Change type of argument to
22952 rtx_insn *.
22953
22954 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22955
22956 * builtins.c (expand_builtin_trap): Change type of local
22957 variable to rtx_insn *.
22958 (add_sched_insns_for_speculation): Likewise.
22959 (ix86_emit_save_regs): Likewise.
22960 (get_scratch_register_on_entry): Likewise.
22961 (ix86_emit_restore_reg_using_pop): Likewise.
22962 (ix86_emit_leave): Likewise.
22963 (ix86_emit_restore_regs_using_mov): Likewise.
22964 (ix86_expand_epilogue): Likewise.
22965 Likewise.
22966 (rl78_alloc_physical_registers_umul): Likewise.
22967 * cselib.c (discard_useless_locs): Likewise.
22968 (cselib_invalidate_regno): Likewise.
22969 (cselib_invalidate_mem): Likewise.
22970 * function.c (expand_function_start): Likewise.
22971 (emit_use_return_register_into_block): Likewise.
22972 * gcse.c: Likewise.
22973 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22974 * ifcvt.c (noce_get_alt_condition): Likewise.
22975 * loop-doloop.c (doloop_condition_get): Likewise.
22976 * lra-constraints.c (inherit_in_ebb): Likewise.
22977 * modulo-sched.c (sms_schedule_by_order): Likewise.
22978 * recog.c (next_insn_tests_no_inequality): Likewise.
22979 * reorg.c (emit_delay_sequence): Likewise.
22980 (update_reg_dead_notes): Likewise.
22981 (fix_reg_dead_note): Likewise.
22982 (fill_slots_from_thread): Likewise.
22983 (delete_computation): Likewise.
22984
22985 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
22986
22987 * doc/extend.texi (Variable Attributes): Add menu and proper
22988 @nodes to subsections. Move Microsoft Windows attributes to
22989 their own subsection.
22990 (Type Attributes): Reorganize introduction to remove duplicate
22991 list of attributes. Add menu and proper @nodes to subsections.
22992 Alphabetize the main table of common attributes.
22993
22994 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
22995
22996 * match.pd: New simplification patterns.
22997 (x + (x & 1)) -> ((x + 1) & ~1)
22998 (x & ~(x & y)) -> ((x & ~y))
22999 (x | ~(x | y)) -> ((x | ~y))
23000
23001 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23002
23003 * target.def (attribute_table): Mention that struct attribute_spec
23004 is defined in tree-core.h rather than tree.h
23005 * doc/tm.texi: Regenerate.
23006
23007 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
23008
23009 * genrecog.c (test): Rename to rtx_test. Update rest of file
23010 accordingly.
23011
23012 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
23013
23014 PR translation/65959
23015 * params.h (DEFPARAM): Rename msgid to nocmsgid.
23016
23017 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23018
23019 * gcc/config/aarch64/aarch64-protos.h (tune_params):
23020 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23021 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23022 Return value depending on target.
23023 (generic_tunings): Initialize new target settings.
23024 (cortexa53_tunings): Likewise.
23025 (cortexa57_tunings): Likewise.
23026 (thunderx_tunings): Likewise.
23027 (xgene1_tunings): Likewise.
23028
23029 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23030
23031 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23032 Make Cortex-A53 shift costs more accurate.
23033
23034 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23035
23036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23037 UNSIGNED_FLOAT.
23038
23039 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23040
23041 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23042 Calculate cost of op0 and op1 in PLUS and MINUS cases.
23043
23044 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23045
23046 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23047 Add cost of op0 in the compare-with-fpzero case.
23048
23049 2015-04-30 David Malcolm <dmalcolm@redhat.com>
23050
23051 * builtins.c (fold_builtin_1): Remove spurious second
23052 semicolon.
23053 * cgraph.h (symtab_node::get_availability): Likewise.
23054 * opts.c (common_handle_option): Remove spurious second semicolon.
23055 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23056 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23057
23058 2015-04-30 Caroline Tice <cmtice@google.com>
23059
23060 PR gcov-profile/65929
23061 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23062 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23063 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23064 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23065 * doc/tm.texi: Regenerate.
23066 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
23067 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23068 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
23069 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23070
23071 2015-04-30 Marek Polacek <polacek@redhat.com>
23072
23073 * varasm.c (handle_cache_entry): Fix logic.
23074
23075 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23076
23077 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23078 (*extrsi5_insn_uxtw_alt): Likewise.
23079 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23080 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23081 operations.
23082
23083 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23084
23085 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23086 fabd in ABS case.
23087
23088 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23089
23090 * config/aarch64/aarch64.md
23091 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23092 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23093 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23094 appropriately. Handle alternative EON form.
23095
23096 2015-04-30 Renlin Li <renlin.li@arm.com>
23097
23098 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23099 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23100
23101 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23102
23103 PR ipa/65873
23104 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23105 -fstrict-aliasing boundaries.
23106
23107 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23108
23109 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23110 and [SU]MNEGL patterns.
23111
23112 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23113
23114 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23115 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23116 combined arithmetic-shift ops. Properly handle all shift and extend
23117 operations that can occur in combination with PLUS/MINUS.
23118 Rename maybe_fma to compound_p.
23119 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23120 arithmetic and shift operations.
23121
23122 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23123
23124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23125 rather than arith_shift cost when costing ADD/MINUS of an
23126 extended value.
23127
23128 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23129
23130 PR lto/65948
23131 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23132 to itself.
23133
23134 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
23135
23136 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23137 are for the same position.
23138
23139 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
23140
23141 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
23142 vectorize_loops.
23143 (vectorize_loops): Use it.
23144
23145 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23146
23147 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23148 for aggregate types.
23149 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23150 type to be non_ODR.
23151 * tree.c (need_assembler_name_p): Compute mangled name for
23152 non-fundamental types and integer types.
23153
23154 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
23155
23156 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23157 manual swaps.
23158 * expr.c (expand_expr_real_2): Likewise.
23159
23160 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23161
23162 * tree.c (build_common_builtin_nodes): Do not build
23163 __builtin_alloca_with_align as equivalent of library alloca.
23164
23165 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23166
23167 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23168 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23169 bugus variants.
23170 * tree.c: Include print-tree.h and ipa-utils.h
23171 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23172 (free_lang_data_in_cgraph): Call verify_type.
23173 (verify_type_variant): New function.
23174 (verify_type): New function.
23175 * tree.h (verify_type): Declare.
23176
23177 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
23178
23179 * config/mips/mips-cpus.def: (mips4): Change default processor
23180 from PROCESSOR_R8000 to PROCESSOR_R10000.
23181
23182 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
23183
23184 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23185 la/jalr instead of jal.
23186
23187 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
23188
23189 PR target/65871
23190 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23191 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23192 (setcc+movzbl peephole2): Check also clobbered reg.
23193 (setcc+andl peephole2): Ditto.
23194
23195 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23196
23197 PR libgomp/65099
23198 * config/nvptx/mkoffload.c (target_ilp32): New variable.
23199 (main): Set it depending on "-foffload-abi=[...]".
23200 (compile_native, main): Use it to pass "-m32" or "-m64" to the
23201 compiler.
23202
23203 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23204
23205 PR target/65770
23206 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23207 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23208 Flip lane index back at assembly time for bigendian.
23209
23210 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23211
23212 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23213 * gimplify.c (gimplify_omp_workshare): Use it.
23214
23215 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23216
23217 * Makefile.in (build/genrecog.o): Depend on inchash.h.
23218 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23219 build/inchash.o
23220 * genrecog.c: Rewrite most of the code except for the third page.
23221
23222 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23223
23224 * inchash.h, inchash.c: Include bconfig.h for build objects.
23225 * Makefile.in (build/inchash.o): New rule.
23226
23227 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
23228
23229 PR target/65924
23230 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23231 number in type attribute expression.
23232
23233 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23234
23235 * loop-iv.c (canon_condition): Generalize to all types of integer
23236 constant.
23237
23238 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
23239
23240 * gimple-walk.c: Prune duplicate or unneeded includes.
23241 (walk_gimple_asm): Only call parse_input_constraint or
23242 parse_output_constraint if their findings are used.
23243 Honour parse_input_constraint and parse_output_constraint
23244 result.
23245
23246 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23247
23248 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23249
23250 2015-04-29 Tom de Vries <tom@codesourcery.com>
23251
23252 PR tree-optimization/65893
23253 * passes.def (pass_all_optimizations): Move pass_stdarg to after
23254 pass_dce.
23255
23256 2015-04-29 Richard Biener <rguenther@suse.de>
23257
23258 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23259 compute GROUP_SIZE for basic-block SLP.
23260 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23261 take into account gaps.
23262 (vect_get_mask_element): Properly reject references to previous
23263 vectors.
23264 (vect_transform_slp_perm_load): Likewise.
23265
23266 2015-04-29 Christian Bruel <christian.bruel@st.com>
23267
23268 PR target/64835
23269 * config/i386/i386.c (ix86_default_align): New function.
23270 (ix86_override_options_after_change): Call ix86_default_align.
23271 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23272 (ix86_override_options_after_change): New function.
23273
23274 2015-04-28 Jeff Law <law@redhat.com>
23275
23276 * tree-ssa-dom.c (record_equality); Fix comment typos.
23277
23278 2015-04-28 Tom de Vries <tom@codesourcery.com>
23279
23280 PR tree-optimization/65887
23281 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23282
23283 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
23284
23285 * doc/extend.texi (Declaring Attributes of Functions): Split into
23286 subsections by target. Alphabetize the table of common attributes.
23287 Rewrite some of the introductory text to reflect the new structure.
23288 Update some cross-references to point to the new subsections.
23289 (Attribute Syntax): Put paragraph about "__" naming here. Remove
23290 duplicate copies in the discussion of function, label, and type
23291 attributes.
23292
23293 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
23294
23295 PR bootstrap/65910
23296 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23297
23298 2015-04-28 Jason Merrill <jason@redhat.com>
23299
23300 PR c++/65734
23301 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23302 (finalize_type_size): Respect TYPE_USER_ALIGN.
23303 (layout_type) [ARRAY_TYPE]: Likewise.
23304
23305 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
23306
23307 * config/arm/arm.md (*arm_movt): Fix type attribute.
23308 (*cmpsi_shiftsi): Likewise.
23309 (*cmpsi_shiftsi_swp): Likewise.
23310 (*movsicc_insn): Likewise.
23311 (*cond_move): Likewise.
23312 (*if_plus_move): Likewise.
23313 (*if_move_plus): Likewise.
23314 (*if_arith_move): Likewise.
23315 (*if_move_arith): Likewise.
23316 (*if_shift_move): Likewise.
23317 (*if_move_shift): Likewise.
23318 (*arm_movtas_ze): Likewise.
23319 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23320 redundancy and type attribute.
23321 (*thumb2_movsi_insn): Fix type attribute.
23322 (*thumb2_addsi_short): Likewise.
23323 (thumb2_addsi3_compare0): Likewise.
23324 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23325 attributes accordingly.
23326
23327 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23328
23329 PR other/65911
23330 * function.c (pad_to_arg_alignment): Add parentheses.
23331
23332 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
23333
23334 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23335 libgcc/config/frv/elf-lib.h.
23336
23337 2015-04-28 Tom de Vries <tom@codesourcery.com>
23338
23339 * tree-call-cdce.c: Fix example in header comment.
23340
23341 2015-04-28 Richard Biener <rguenther@suse.de>
23342
23343 PR tree-optimization/62283
23344 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23345 fails fatally and we are vectorizing a basic-block simply
23346 cause the child to be constructed piecewise.
23347 (vect_analyze_slp_cost_1): Adjust.
23348 (vect_detect_hybrid_slp_stmts): Likewise.
23349 (vect_bb_slp_scalar_cost): Likewise.
23350 (vect_get_constant_vectors): For piecewise constructed
23351 constants place them after the last def.
23352 (vect_get_slp_defs): Adjust.
23353 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23354 externals for basic-block vectorization.
23355
23356 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23357
23358 PR target/63503
23359 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23360 aarch64-*-*.
23361 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23362 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23363 (AARCH64_TUNE_FMA_STEERING): Likewise.
23364 * config/aarch64/aarch64-cores.def: Set
23365 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23366 FMUL/FMADD instructions.
23367 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23368 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
23369 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23370 * config/aarch64/cortex-a57-fma-steering.h: New file.
23371 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23372
23373 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
23374
23375 * gensupport.c (std_preds): Add missing codes to address_operand entry.
23376
23377 2015-04-28 Richard Biener <rguenther@suse.de>
23378
23379 PR tree-optimization/65851
23380 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23381 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
23382 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
23383 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23384 (ccp_visit_phi_node): Adjust.
23385 (evaluate_stmt): For simplifications to SSA names return its
23386 lattice value if that isn't VARYING. Return immediately when
23387 simplified to a constant.
23388 (visit_assignment): Adjust.
23389 (ccp_visit_stmt): Likewise.
23390
23391 2015-04-28 Tom de Vries <tom@codesourcery.com>
23392
23393 PR tree-optimization/65818
23394 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23395 evaluated.
23396
23397 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23398
23399 * calls.c (save_fixed_argument_area): Don't check
23400 ARGS_GROW_DOWNWARD with the preprocessor.
23401 (restore_fixed_argument_area): Likewise.
23402 (mem_overlaps_already_clobbered_arg_p): Likewise.
23403 (check_sibcall_argument_overlap): Likewise.
23404 (expand_call): Likewise.
23405 (emit_library_call_value_1): Likewise.
23406 (store_one_arg): Likewise.
23407 * function.c (assign_parms): Likewise.
23408 (locate_and_pad_parm): Likewise.
23409 (pad_to_arg_alignment): Likewise.
23410 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23411
23412 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23413
23414 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23415 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23416 * calls.c (save_fixed_argument_area): Don't chekc if
23417 ARGS_GROW_DOWNWARD is defined.
23418 (restore_fixed_argument_area): Likewise.
23419 (mem_overlaps_already_clobbered_arg_p): Likewise.
23420 (check_sibcall_argument_overlap): Likewise.
23421 (expand_call): Likewise.
23422 (emit_library_call_value_1): Likewise.
23423 (store_one_arg): Likewise.
23424 * function.c (assign_parms): Likewise.
23425 (locate_and_pad_parm): Likewise.
23426 (pad_to_arg_alignment): Likewise.
23427 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23428
23429 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23430
23431 * defaults.h (gen_epilogue): New function.
23432 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23433 defined.
23434 * cfgrtl.c (cfg_layout_finalize): Likewise.
23435 * df-scan.c: Likewise.
23436 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23437 (reposition_prologue_and_epilogue_notes): Likewise.
23438 * reorg.c (find_end_label): Likewise.
23439 * toplev.c: Likewise.
23440
23441 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23442
23443 * bb-reorder.c (HAVE_return): Don't check if its undefined.
23444 * defaults.h (gen_simple_return): New function.
23445 (gen_simple_return): Likewise.
23446 (HAVE_return): Add default definition to false.
23447 (HAVE_simple_return): Likewise.
23448 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23449 HAVE_return and HAVE_simple_return are defined.
23450 * function.c (gen_return_pattern): Likewise.
23451 (convert_jumps_to_returns): Likewise.
23452 (thread_prologue_and_epilogue_insns): Likewise.
23453 * reorg.c (find_end_label): Likewise.
23454 (dbr_schedule): Likewise.
23455 * shrink-wrap.c: Likewise.
23456 * shrink-wrap.h: Likewise.
23457
23458 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23459
23460 * defaults.h (EPILOGUE_USES): Add default definition of false.
23461 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23462 * resource.c (init_resource_info): Likewise.
23463
23464 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23465
23466 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23467 to false.
23468 * dwarf2out.c (field_byte_offset): REmove check if
23469 PCC_BITFIELD_TYPE_MATTERS is defined.
23470 * stor-layout.c (layout_decl): Likewise.
23471 (update_alignment_for_field): Likewise.
23472 (place_field): Likewise.
23473
23474 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23475
23476 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23477 true.
23478 * regrename.c (check_new_reg_p): Remove check if
23479 HARD_REGNO_RENAME_OK is defined.
23480 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23481
23482 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23483
23484 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23485 * cse.c (fold_rtx): Likewise.
23486 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23487 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23488 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23489 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23490 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23491 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23492 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23493 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23494 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23495 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23496 * Likewise.
23497 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23498 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23499 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23500 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23501 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23502 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23503 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23504 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23505 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23506 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23507 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23508 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23509 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23510 * doc/tm.texi: Regenerate.
23511 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23512 either true or false.
23513
23514 2015-04-27 Jeff Law <law@redhat.com>
23515
23516 PR tree-optimization/65217
23517 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23518 of them has a single use, make sure it is the LHS of the implied
23519 copy.
23520
23521 2015-04-28 Alan Modra <amodra@gmail.com>
23522
23523 PR target/65810
23524 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23525 (offsettable_ok_by_alignment): Use minimum of decl and toc
23526 pointer alignment. Replace dead code with assertion.
23527 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
23528 case if size exceeds toc pointer alignment.
23529 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23530 (rs6000_emit_move): Likewise.
23531 * configure.ac: Add linker toc pointer alignment check.
23532 * configure: Regenerate.
23533 * config.in: Regenerate.
23534
23535 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
23536
23537 * config.gcc: Add h8300-*-linux.
23538 * config/h8300/linux.h: New.
23539 * config/h8300/t-linux: New.
23540 * config/h8300/h8300.c (h8300_option_override): Normal mode
23541 is not supported for h8300-*-linux.
23542 (h8300_file_start): Target priority change.
23543 (get_shift_alg): Likewise.
23544 (h8300_shift_need_scratch_p): Likewise.
23545 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23546 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23547
23548 2015-04-27 Caroline Tice <cmtice@google.com>
23549
23550 * final.c (final_scan_insn): Output cold_function_name as function
23551 type.
23552 * varasm.c (cold_function_name): Make global.
23553 (assemble_start_function): Re-set cold_function_name.
23554 (assemble_end_function): Output cold partition size.
23555 * varasm.h (cold_function_name): Declare global.
23556
23557 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
23558
23559 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23560 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23561 constraint.
23562 (*movxi_internal_avx512f): Ditto.
23563 (define_split): Check for xmm16+, when splitting scalar float_extend.
23564 (*extendsfdf2_mixed): Use "v" constraint.
23565 (define_split): Check for xmm16+, when splitting scalar float_truncate.
23566 (*truncdfsf_fast_sse): Use "v" constraint.
23567 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23568 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23569 (define_peephole2): Check for xmm16+, when converting scalar
23570 float_truncate.
23571 (define_peephole2): Check for xmm16+, when converting scalar
23572 float_extend.
23573 (*fop_<mode>_comm_mixed): Use "v" constraint.
23574 (*fop_<mode>_comm_sse): Ditto.
23575 (*fop_<mode>_1_mixed): Ditto.
23576 (*sqrt<mode>2_sse): Ditto.
23577 (*ieee_s<ieee_maxmin><mode>3): Ditto.
23578
23579 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23580
23581 * combine.c (simplify_if_then_else): Use std::swap instead
23582 of manually swapping.
23583 (known_cond): Likewise.
23584 (simplify_comparison): Likewise.
23585
23586 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
23587
23588 PR target/64579
23589 * config/rs6000/htm.md: Remove all define_expands.
23590 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23591 UNSPECV_HTM_TABORTWCI): Remove.
23592 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23593 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23594 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23595 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23596 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23597 tabortwci_internal): Remove define_insns.
23598 (tabort<wd>c, tabort<wd>ci): New define_insns.
23599 (tabort): Use gpc_reg_operand.
23600 (tcheck): Remove operand.
23601 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23602 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23603 expected value.
23604 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23605 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
23606 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23607 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23608 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23609 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23610 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23611 (tcheck): Remove builtin argument.
23612 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23613 not TARGET_64BIT.
23614 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
23615 tabortdc and tabortdci builtins when not in 64-bit mode.
23616 Modify code to handle the loss of the HTM define_expands.
23617 Emit code to copy the CR register to TARGET.
23618 (htm_init_builtins): Modify code to handle the loss of the HTM
23619 define_expands.
23620 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23621 (RS6000_BTC_64BIT): Likewise.
23622 (RS6000_BTC_CR): New macro.
23623 * doc/extend.texi: Update documentation for htm builtins.
23624
23625 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23626
23627 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23628 of manually swapping.
23629 (simplify_associative_operation): Likewise.
23630 (simplify_binary_operation): Likewise.
23631 (simplify_plus_minus): Likewise.
23632 (simplify_relational_operation): Likewise.
23633 (simplify_ternary_operation): Likewise.
23634
23635 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23636
23637 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23638 (xs_hi_nonmemory_operand): Remove error.
23639 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23640 general_operand rather than xs_hi_general_operand.
23641
23642 2015-04-27 Richard Biener <rguenther@suse.de>
23643
23644 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23645 (record_equivalences_from_stmt): Valueize rhs.
23646 (record_equality): Canonicalize x and y order via
23647 tree_swap_operands_p. Do not swap operands for same loop depth.
23648
23649 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
23650
23651 PR target/65296
23652 PR target/65895
23653 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23654 Add hint how to use own spec file.
23655
23656 2015-04-27 Jakub Jelinek <jakub@redhat.com>
23657
23658 PR tree-optimization/65875
23659 * tree-vrp.c (update_value_range): If in is_new case setting
23660 old_vr to VR_VARYING, also set new_vr to it. Remove
23661 old_vr->type == VR_VARYING test.
23662 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23663 SSA_PROP_INTERESTING if update_value_range returned true,
23664 but new range is VR_VARYING.
23665
23666 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
23667
23668 * combine.c (sign_extend_short_imm): New.
23669 (set_nonzero_bits_and_sign_copies): Use above new function for sign
23670 extension of src short immediate.
23671 (reg_nonzero_bits_for_combine): Likewise for tem.
23672
23673 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23674
23675 * stor-layout.c (self_referential_component_ref_p): New predicate.
23676 (copy_self_referential_tree_r): Use it.
23677 (self_referential_size): Punt for simple operations directly involving
23678 self-referential component references.
23679 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23680
23681 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23682
23683 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23684
23685 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23686
23687 * vec.h (vec): Make splice arguments const. Update definitions
23688 accordingly.
23689
23690 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
23691
23692 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23693 alternatives.
23694
23695 2015-04-26 Tom de Vries <tom@codesourcery.com>
23696
23697 PR tree-optimization/65826
23698 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23699
23700 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
23701
23702 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23703 (*madd3<mode>): Ditto.
23704 (*msub4<mode>): Ditto.
23705 (*msub3<mode>): Ditto.
23706 (*nmadd4<mode>): Ditto.
23707 (*nmadd3<mode>): Ditto.
23708 (*nmadd4<mode>_fastmath): Ditto.
23709 (*nmadd3<mode>_fastmath): Ditto.
23710 (*nmsub4<mode>): Ditto.
23711 (*nmsub3<mode>): Ditto.
23712 (*nmsub4<mode>_fastmath): Ditto.
23713 (*nmsub3<mode>_fastmath): Ditto.
23714
23715 2015-04-24 Jason Merrill <jason@redhat.com>
23716
23717 PR c++/50800
23718 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23719 down when building TYPE_CANONICAL.
23720 (build_pointer_type_for_mode): Likewise.
23721
23722 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
23723
23724 * genrecog.c (validate_pattern): Check matching constraint refers
23725 to a lower numbered operand.
23726
23727 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23728
23729 PR target/65849
23730 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23731 save to independent variables use the Save attribute. This will
23732 allow these options to be modified with the #pragma/attribute
23733 target support.
23734 (-mallow-movmisalign): Likewise.
23735 (-mallow-df-permute): Likewise.
23736 (-msched-groups): Likewise.
23737 (-malways-hint): Likewise.
23738 (-malign-branch-targets): Likewise.
23739 (-mvectorize-builtins): Likewise.
23740 (-msave-toc-indirect): Likewise.
23741
23742 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23743 can be set via the #pragma/attribute target support.
23744 (rs6000_opt_vars): Likewise.
23745 (rs6000_inner_target_options): If VSX was set, also set
23746 -mno-avoid-indexed-addresses.
23747
23748 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23749
23750 * config/arm/iterators.md (shiftable_ops): Rename to...
23751 (SHIFTABLE_OPS): ... This. Update use in comments.
23752 (ior_xor): Rename to...
23753 (IOR_XOR): ... This.
23754 (vqh_ops): Rename to...
23755 (VQH_OPS): ... This.
23756 (vqhs_ops): Rename to...
23757 (VQHS_OPS): ... This.
23758 (rshifts): Rename to...
23759 (RSHIFTS): ... This.
23760 (returns): Rename to...
23761 (RETURNS): ... This.
23762 * config/arm/arm.md: Update uses of the above.
23763 * config/arm/neon.md: Likewise.
23764
23765 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23766
23767 * config.host (case ${host}): Add aarch64*-*-linux case.
23768 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23769 fields to all the cores.
23770 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23771 Add MCPU_MTUNE_NATIVE_SPECS.
23772 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23773 field to all extensions.
23774 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23775 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23776 Adjust definition of AARCH64_OPT_EXTENSION.
23777 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23778 (MCPU_MTUNE_NATIVE_SPECS): Define.
23779 * config/aarch64/driver-aarch64.c: New file.
23780 * config/aarch64/x-arch64: New file.
23781 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23782 -mtune and -march.
23783
23784 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23785 Wei Mi <wmi@google.com>
23786
23787 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23788 * config/i386/i386.c (extract_base_offset_in_addr): New function.
23789 (ix86_operands_ok_for_move_multiple): Ditto.
23790 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23791 (movlpd/movhpd to movupd peephole2): Ditto.
23792
23793 2015-04-24 Marek Polacek <polacek@redhat.com>
23794
23795 PR c/61534
23796 * input.h (from_macro_expansion_at): Define.
23797
23798 PR c/63357
23799 * doc/invoke.texi: Update description of -Wlogical-op.
23800
23801 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23802
23803 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23804 ternary operator in fprintf and harmonize spacing.
23805
23806 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23807
23808 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23809 Mark operand1 commutative.
23810
23811 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23812
23813 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23814 input operands in memory.
23815 (*vec_concatv2si_sse4_1): Ditto.
23816 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23817 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23818 register_operand.
23819 (vec_extract_hi_v32hi): Ditto.
23820 (vec_extract_hi_v64hi): Ditto.
23821 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23822
23823 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23824 Steven Bosscher <steven@gcc.gnu.org>
23825
23826 PR rtl-optimization/34503
23827 * cprop.c (cprop_reg_p): New.
23828 (hash_scan_set): Use above function to check if register can be
23829 propagated.
23830 (find_avail_set): Return up to two sets, one whose source is a
23831 register and one whose source is a constant. Sets are returned in an
23832 array passed as parameter rather than as a return value.
23833 (cprop_insn): Use a do while loop rather than a goto. Try each of the
23834 sets returned by find_avail_set, starting with the one whose source is
23835 a constant. Use cprop_reg_p to check if register can be propagated.
23836 (do_local_cprop): Use cprop_reg_p to check if register can be
23837 propagated.
23838 (implicit_set_cond_p): Likewise.
23839
23840 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23841
23842 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23843 (sem_function::equals): IGNORED_NODES parameter is now unused;
23844 update call of equals_private.
23845 (sem_function::equals_private): Do not call equals_wpa; skip
23846 gimple body matching if there is no body.
23847 (sem_function::init): Add logic to hash tthunk info.
23848 (sem_function::parse): Also parse thunks.
23849 * ipa-icf.h (equals_private): Update declaration.
23850
23851 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23852
23853 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23854 asterisk from name so this can be generated directly.
23855 (*altivec_stvx_<mode>_internal): Likewise.
23856 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23857 that this is never called during or after reload/lra.
23858 (rs6000_frame_related): Remove split_reg
23859 argument and logic that references it.
23860 (emit_frame_save): Remove last parameter from call to
23861 rs6000_frame_related.
23862 (rs6000_emit_prologue): Remove last parameter from eight calls to
23863 rs6000_frame_related. Force generation of stvx instruction for
23864 Altivec register saves. Remove split_reg handling, which is no
23865 longer needed.
23866 (rs6000_emit_epilogue): Force generation of lvx instruction for
23867 Altivec register restores.
23868
23869 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23870
23871 * config/rs6000/rs6000.opt (mcrypto): Change option description to
23872 match category changes in ISA 2.07B.
23873
23874 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23875
23876 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23877 iterators.
23878 (cmp_op, cmp_type): New code attributes.
23879 (NEON_VCMP, NEON_VACMP): New int iterators.
23880 (cmp_op_unsp): New int attribute.
23881 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23882 (neon_vceq<mode>): Delete.
23883 (neon_vc<cmp_op><mode>_insn): New pattern.
23884 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23885 (neon_vcgeu<mode>): Delete.
23886 (neon_vcle<mode>): Likewise.
23887 (neon_vclt<mode>: Likewise.
23888 (neon_vcage<mode>): Likewise.
23889 (neon_vcagt<mode>): Likewise.
23890 (neon_vca<cmp_op><mode>): New define_expand.
23891 (neon_vca<cmp_op><mode>_insn): New pattern.
23892 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23893
23894 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23895
23896 * tree.h (attribute_value_equal): Declare.
23897 * tree.c (attribute_value_equal): Export.
23898
23899 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23900
23901 * ipa-icf.c (sem_item::compare_attributes): New function.
23902 (sem_item::compare_referenced_symbol_properties): Compare variable
23903 attributes.
23904 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23905 (sem_function::param_used_p): New function.
23906 (sem_function::equals_wpa): Fix attribute comparsion; match
23907 parameter type codes; do not compare paremter flags when
23908 they are not used; compare edge flags; compare indirect calls.
23909 (sem_item::update_hash_by_addr_refs): Hash reference type.
23910 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23911 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23912 reference use type.
23913 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23914 * ipa-icf.h (compare_attributes, param_used_p): Declare.
23915
23916 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23917
23918 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23919 cleanup.
23920 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23921 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23922 (sem_item::compare_referenced_symbol_properties): New.
23923 (sem_item::hash_referenced_symbol_properties): New.
23924 (sem_item::compare_cgraph_references): Rename to ...
23925 (sem_item::compare_symbol_references): ... this one; use
23926 compare_referenced_symbol_properties.
23927 (sem_function::equals_wpa): Do not compare
23928 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23929 DECL_IS_OPERATOR_NEW; compare pointer sizes.
23930 (sem_item::update_hash_by_addr_refs): Call
23931 hash_referenced_symbol_properties.
23932 (sem_item::update_hash_by_local_refs): Cleanup.
23933 (sem_function::merge): Do not mix up symbol properties.
23934 (sem_variable::equals_wpa): Use compare_symbol_references.
23935 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23936 (sem_item::hash_referenced_symbol_properties): New.
23937 (sem_item::compare_symbol_references): New.
23938 (sem_item::compare_cgraph_references): Remove.
23939
23940 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
23941
23942 PR target/26702
23943 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23944 Emit size of local.
23945
23946 2015-04-23 Nick Clifton <nickc@redhat.com>
23947
23948 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23949 ATTRIBUTE_UNUSED to x parameter.
23950 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23951
23952 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23953
23954 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23955 TARGET_CRYPTO to TARGET_P8_VECTOR>
23956 (crypto_vpermxor_<mode>): Likewise.
23957 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23958 (BU_CRYPTO_3A): Likewise.
23959 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23960 (BU_CRYPTO_OVERLOAD_3A): New #define.
23961 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23962 (VPMSUMH): Likewise.
23963 (VPMSUMW): Likewise.
23964 (VPMSUMD): Likewise.
23965 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23966 (VPERMXOR_V4SI): Likewise.
23967 (VPERMXOR_V8HI): Likewise.
23968 (VPERMXOR_V16QI): Likewise.
23969 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23970 BU_CRYPTO_OVERLOAD_2A.
23971 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23972 BU_CRYPTO_OVERLOAD_3A.
23973 * config/rs6000/rs6000.opt (mcrypto): Change description of
23974 option.
23975
23976 2015-04-23 Richard Biener <rguenther@suse.de>
23977
23978 * passes.def: Remove copy propagation passes run directly after CCP.
23979 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23980 SSA names.
23981 (ccp_visit_phi_node): Rework to handle first executable edge
23982 specially.
23983
23984 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
23985
23986 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23987 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23988 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23989 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23990 (thumb_legimitimize_reload_address): Remove.
23991 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23992 Remove.
23993 (thumb_legimitimize_reload_address): Remove.
23994
23995 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23996
23997 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23998
23999 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24000
24001 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24002 MAX_LDM_STM_OPS.
24003 (store_multiple): Likewise.
24004
24005 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24006
24007 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24008 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24009 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24010 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24011 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24012 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24013 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24014 Specify issue_rate value.
24015 (arm_issue_rate): Look up issue rate from tuning structs. Remove
24016 large switch statement.
24017 (arm_marvell_pj4_tune): New struct.
24018 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24019 struct.
24020
24021 2015-04-23 Richard Biener <rguenther@suse.de>
24022
24023 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24024 (vect_find_last_store_in_slp_instance): Rename to ...
24025 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24026 (vect_analyze_slp_cost_1): Use vector_load for constant defs
24027 and vec_construct for external defs when estimating prologue cost.
24028 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24029 Compute costs here only when vectorizing loops.
24030 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24031 have been determined.
24032 (vect_schedule_slp_instance): Simplify vectorized code placement
24033 and prepare for in-BB external defs.
24034 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24035 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24036 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24037 guard.
24038 (vect_model_load_cost): Likewise.
24039 (vectorizable_store): Instead add it here.
24040 (vectorizable_load): Likewise.
24041 (vect_is_simple_use): Dump def type textually.
24042
24043 2015-04-23 Richard Biener <rguenther@suse.de>
24044
24045 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24046 * cfgloop.c (verify_loop_structure): Verify the root loop node.
24047 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24048 instead of get_eh_region_from_lp_number.
24049 * loop-init.c (fix_loop_structure): If we removed a loop, reset
24050 the SCEV cache.
24051
24052 2015-04-23 Anton Blanchard <anton@samba.org>
24053
24054 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24055 need for -mprofile-kernel to save LR to stack.
24056
24057 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24058
24059 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24060 adjustments.
24061 (insn_is_swappable_p): Return 1 for a convert from double to
24062 single precision when all of its uses are splats of BE element
24063 zero.
24064
24065 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24066
24067 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24068
24069 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24070
24071 PR target/65456
24072 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
24073 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24074 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24075 option.
24076 (rs6000_builtin_mask_for_load): Return 0 for targets with
24077 efficient unaligned VSX accesses so that the vectorizer will use
24078 direct unaligned loads.
24079 (rs6000_builtin_support_vector_misalignment): Always return true
24080 for targets with efficient unaligned VSX accesses.
24081 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24082 stores on targets with efficient unaligned VSX accesses is almost
24083 always the same as the cost of an aligned load or store, so model
24084 it that way.
24085 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24086 unaligned vectors if we have efficient unaligned VSX accesses.
24087 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24088 undocumented option.
24089
24090 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24091
24092 Revert:
24093 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24094
24095 * config.gcc (LIBC_MUSL): New tm_defines macro.
24096 * config/linux.h (OPTION_MUSL): Define.
24097 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24098 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24099 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24100
24101 * config/linux.opt (mmusl): New option.
24102 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24103 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24104
24105 * configure: Regenerate.
24106
24107 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24108
24109 * config.gcc (LIBC_MUSL): New tm_defines macro.
24110 * config/linux.h (OPTION_MUSL): Define.
24111 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24112 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24113 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24114
24115 * config/linux.opt (mmusl): New option.
24116 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24117 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24118
24119 * configure: Regenerate.
24120
24121 2015-04-22 Yury Gribov <y.gribov@samsung.com>
24122
24123 * doc/invoke.texi (-fsanitize-sections): Update description.
24124 * asan.c (set_sanitized_sections): Parse incoming arg.
24125 (section_sanitized_p): Support wildcards.
24126
24127 2015-04-22 Tom de Vries <tom@codesourcery.com>
24128
24129 PR tree-optimization/65823
24130 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24131 equality between ap_copy and ap.
24132
24133 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24134
24135 PR target/47098
24136 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24137
24138 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24139
24140 PR target/47122
24141 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24142
24143 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24144
24145 PR target/55144
24146 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24147 remove already contained t-files.
24148
24149 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24150
24151 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24152 Remove unneeded forward declarations.
24153 (suitable_for_tail_call_opt_p): Commentary typo fix.
24154
24155 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24156
24157 * varasm.c (emit_bss): Remove redundant guard.
24158
24159 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24160
24161 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24162
24163 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24164
24165 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24166
24167 2015-04-22 Hale Wang <hale.wang@arm.com>
24168 Terry Guo <terry.guo@arm.com>
24169
24170 PR rtl-optimization/64818
24171 * combine.c (can_combine_p): Don't combine user-specified
24172 register if it is in an asm input.
24173
24174 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
24175
24176 PR ipa/65076
24177 * passes.def (early_optimizations): Add pass_dse.
24178
24179 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24180
24181 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24182 * reorg.c (redundant_insn): Remove ifdef
24183 INSN_REFERENCES_ARE_DELAYED.
24184 * resource.c (mark_referenced_resources): Likewise.
24185
24186 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24187
24188 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24189 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24190 * resource.c (mark_set_resources): Likewise.
24191
24192 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24193
24194 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24195 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24196 (flow_find_head_matching_sequence): Likewise.
24197 (try_head_merge_bb): Likewise.
24198 * combine.c (can_combine_p): Likewise.
24199 (try_combine): Likewise.
24200 (distribute_notes): Likewise.
24201 * df-problems.c (can_move_insns_across): Likewise.
24202 * final.c (final): Likewise.
24203 * gcse.c (insert_insn_end_basic_block): Likewise.
24204 * ira.c (find_moveable_pseudos): Likewise.
24205 * reorg.c (try_merge_delay_insns): Likewise.
24206 (fill_simple_delay_slots): Likewise.
24207 (fill_slots_from_thread): Likewise.
24208 * sched-deps.c (sched_analyze_2): Likewise.
24209
24210 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24211
24212 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24213 PIC_OFFSET_TABLE_REGNUM.
24214
24215 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24216
24217 * alias.c (init_alias_target): Remove ifdef
24218 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24219 * df-scan.c (df_insn_refs_collect): Likewise.
24220 (df_get_regular_block_artificial_uses): Likewise.
24221 (df_get_eh_block_artificial_uses): Likewise.
24222 (df_get_entry_block_def_set): Likewise.
24223 (df_get_exit_block_use_set): Likewise.
24224 * emit-rtl.c (gen_rtx_REG): Likewise.
24225 * ira.c (ira_setup_eliminable_regset): Likewise.
24226 * reginfo.c (init_reg_sets_1): Likewise.
24227 * regrename.c (rename_chains): Likewise.
24228 * reload1.c (reload): Likewise.
24229 (eliminate_regs_in_insn): Likewise.
24230 * resource.c (mark_referenced_resources): Likewise.
24231 (init_resource_info): Likewise.
24232
24233 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24234
24235 * defaults.h (MASK_RETURN_ADDR): New definition.
24236 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24237 MASK_RETURN_ADDR.
24238
24239 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24240
24241 * defaults.h (RETURN_ADDR_OFFSET): New definition.
24242 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24243 RETURN_ADDR_OFFSET.
24244 (expand_builtin_frob_return_addr): Likewise.
24245
24246 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24247
24248 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24249 (try_redirect_by_replacing_jump): Likewise.
24250 (rtl_tidy_fallthru_edge): Likewise.
24251 * combine.c (insn_a_feeds_b): Likewise.
24252 (find_split_point): Likewise.
24253 (simplify_set): Likewise.
24254 * cprop.c (cprop_jump): Likewise.
24255 * cse.c (cse_extended_basic_block): Likewise.
24256 * df-problems.c (can_move_insns_across): Likewise.
24257 * function.c (emit_use_return_register_into_block): Likewise.
24258 * haifa-sched.c (sched_init): Likewise.
24259 * ira.c (find_moveable_pseudos): Likewise.
24260 * loop-invariant.c (find_invariant_insn): Likewise.
24261 * lra-constraints.c (curr_insn_transform): Likewise.
24262 * postreload.c (reload_combine_recognize_const_pattern):
24263 * Likewise.
24264 * reload.c (find_reloads): Likewise.
24265 * reorg.c (delete_scheduled_jump): Likewise.
24266 (steal_delay_list_from_target): Likewise.
24267 (steal_delay_list_from_fallthrough): Likewise.
24268 (redundant_insn): Likewise.
24269 (fill_simple_delay_slots): Likewise.
24270 (fill_slots_from_thread): Likewise.
24271 (delete_computation): Likewise.
24272 * sched-rgn.c (add_branch_dependences): Likewise.
24273
24274 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24275
24276 * genconfig.c (main): Always define HAVE_cc0.
24277 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24278 HAVE_cc0.
24279 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24280 (flow_find_head_matching_sequence): Likewise.
24281 (try_head_merge_bb): Likewise.
24282 * cfgrtl.c (rtl_merge_blocks): Likewise.
24283 (try_redirect_by_replacing_jump): Likewise.
24284 (rtl_tidy_fallthru_edge): Likewise.
24285 * combine.c (do_SUBST_MODE): Likewise.
24286 (insn_a_feeds_b): Likewise.
24287 (combine_instructions): Likewise.
24288 (can_combine_p): Likewise.
24289 (try_combine): Likewise.
24290 (find_split_point): Likewise.
24291 (subst): Likewise.
24292 (simplify_set): Likewise.
24293 (distribute_notes): Likewise.
24294 * cprop.c (cprop_jump): Likewise.
24295 * cse.c (cse_extended_basic_block): Likewise.
24296 * df-problems.c (can_move_insns_across): Likewise.
24297 * final.c (final): Likewise.
24298 (final_scan_insn): Likewise.
24299 * function.c (emit_use_return_register_into_block): Likewise.
24300 * gcse.c (insert_insn_end_basic_block): Likewise.
24301 * haifa-sched.c (sched_init): Likewise.
24302 * ira.c (find_moveable_pseudos): Likewise.
24303 * loop-invariant.c (find_invariant_insn): Likewise.
24304 * lra-constraints.c (curr_insn_transform): Likewise.
24305 * optabs.c (prepare_cmp_insn): Likewise.
24306 * postreload.c (reload_combine_recognize_const_pattern):
24307 * Likewise.
24308 * reload.c (find_reloads): Likewise.
24309 (find_reloads_address_1): Likewise.
24310 * reorg.c (delete_scheduled_jump): Likewise.
24311 (steal_delay_list_from_target): Likewise.
24312 (steal_delay_list_from_fallthrough): Likewise.
24313 (try_merge_delay_insns): Likewise.
24314 (redundant_insn): Likewise.
24315 (fill_simple_delay_slots): Likewise.
24316 (fill_slots_from_thread): Likewise.
24317 (delete_computation): Likewise.
24318 (relax_delay_slots): Likewise.
24319 * sched-deps.c (sched_analyze_2): Likewise.
24320 * sched-rgn.c (add_branch_dependences): Likewise.
24321
24322 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24323
24324 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24325 that is trivially ded on non cc0 targets.
24326 (simplify_set): Likewise.
24327 (mark_used_regs_combine): Likewise.
24328 * cse.c (new_basic_block): Likewise.
24329 (fold_rtx): Likewise.
24330 (cse_insn): Likewise.
24331 (cse_extended_basic_block): Likewise.
24332 (set_live_p): Likewise.
24333 * rtlanal.c (canonicalize_condition): Likewise.
24334 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24335
24336 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24337
24338 * conditions.h: Define macros even if HAVE_cc0 is undefined.
24339 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24340 * final.c: Likewise.
24341 * jump.c: Likewise.
24342 * recog.c: Likewise.
24343 * recog.h: Declare functions even when HAVE_cc0 is undefined.
24344 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24345
24346 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24347
24348 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24349 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24350 * builtins.c (expand_builtin): Remove check if
24351 EH_RETURN_DATA_REGNO is defined.
24352 * df-scan.c (df_bb_refs_collect): Likewise.
24353 (df_get_exit_block_use_set): Likewise.
24354 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24355 * ira-lives.c (process_bb_node_lives): Likewise.
24356 * lra-lives.c (process_bb_lives): Likewise.
24357
24358 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24359
24360 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24361 FIRST_PSEUDO_REG): New.
24362 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24363 (ARG_POINTER_REGNUM): Define to ARGP_REG.
24364 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24365 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24366 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24367 (FIRST_INT_REG): New.
24368 (LAST_INT_REG): New.
24369 (FIRST_*_REG): Define using *_REG.
24370 (LAST_*_REG): Ditto.
24371 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24372 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24373 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24374
24375 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24376
24377 * expmed.c: (synth_mult): Only assume overlapping
24378 shift with previous steps in alg_sub_t_m2 case.
24379
24380 2015-04-21 Richard Biener <rguenther@suse.de>
24381
24382 PR tree-optimization/65650
24383 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24384 transitions involving copies.
24385 (set_lattice_value): Adjust for copy lattice state.
24386 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24387 if that doesn't dominate the merge point.
24388 (bit_value_unop): Adjust what we treat as varying mask.
24389 (bit_value_binop): Likewise.
24390 (bit_value_assume_aligned): Likewise.
24391 (evaluate_stmt): When we simplified to a SSA name record a copy
24392 instead of dropping to varying.
24393 (visit_assignment): Simplify.
24394
24395 * gimple-match.h (gimple_simplify): Add another callback.
24396 * gimple-fold.c (fold_stmt_1): Adjust caller.
24397 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24398 for the 2nd callback.
24399 * gimple-match-head.c (gimple_simplify): Add a callback that is
24400 used to valueize the stmt operands and use it that way.
24401
24402 2015-04-21 Richard Biener <rguenther@suse.de>
24403
24404 PR tree-optimization/65788
24405 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24406
24407 2015-04-21 Richard Biener <rguenther@suse.de>
24408
24409 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24410 vec_construct cost by vec_stmt_cost.
24411
24412 2015-04-21 Richard Biener <rguenther@suse.de>
24413
24414 * cfghooks.h (create_basic_block): Replace with two overloads
24415 for RTL and GIMPLE.
24416 (split_block): Likewise.
24417 * cfghooks.c (split_block): Rename to ...
24418 (split_block_1): ... this.
24419 (split_block): Add two type-safe overloads for RTL and GIMPLE.
24420 (split_block_after_labels): Call split_block_1.
24421 (create_basic_block): Rename to ...
24422 (create_basic_block_1): ... this.
24423 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24424 (create_empty_bb): Call create_basic_block_1.
24425 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24426 split_block_after_labels.
24427 * omp-low.c (expand_parallel_call): Likewise.
24428 (expand_omp_target): Likewise.
24429 (simd_clone_adjust): Likewise.
24430 * tree-chkp.c (chkp_get_entry_block): Likewise.
24431 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24432 create_basic_block overload.
24433 (cgraph_node::expand_thunk): Likewise.
24434 * tree-cfg.c (make_blocks): Likewise.
24435 (handle_abnormal_edges): Likewise.
24436 * tree-inline.c (copy_bb): Likewise.
24437
24438 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24439
24440 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24441 New pattern.
24442 (*xor_one_cmplsidi3_ze): Likewise.
24443
24444 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
24445
24446 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24447 use df_remove_problem rather than manually removing problems, leaving
24448 holes in df->problems_in_order[].
24449
24450 2015-04-21 Tom de Vries <tom@codesourcery.com>
24451
24452 PR tree-optimization/65802
24453 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24454
24455 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24456
24457 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24458 Increase to 128.
24459 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24460 at '.'. Assert that there's enough space for everything.
24461
24462 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24463
24464 PR tree-optimization/64950
24465 Revert:
24466 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
24467
24468 PR target/41089
24469 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24470 as volatile.
24471
24472 2015-04-20 Shiva Chen <shiva0217@gmail.com>
24473
24474 PR rtl-optimization/64916
24475 * cfgcleanup.c (values_equal_p): New function.
24476 (can_replace_by): Use it.
24477
24478 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
24479
24480 PR c++/65801
24481 * doc/invoke.texi ([-Wnarrowing]): Update.
24482
24483 2015-04-20 Jeff Law <law@redhat.com>
24484
24485 PR tree-optimization/65658
24486 * tree-ssa-threadupdate.c (redirection_block_p): Remove
24487 redundant test for GIMPLE_ASSIGN in last change.
24488
24489 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
24490
24491 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24492 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24493 (legitimize_tls_address): Ditto.
24494 (ix86_expand_move): Ditto.
24495 (ix86_expand_binary_operator): Remove reload_in_progress checks.
24496 (ix86_expand_unary_operator): Ditto.
24497 * config/i386/predicates.md (index_register_operand): Ditto.
24498
24499 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
24500
24501 * reorg.c (try_merge_delay_insns): Improve correctness checking
24502 for targets with multiple delay slots.
24503
24504 2015-04-20 Jeff Law <law@redhat.com>
24505
24506 PR tree-optimization/65658
24507 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24508 statements too.
24509
24510 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24511
24512 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24513 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24514 Delete.
24515
24516 2015-04-20 Jakub Jelinek <jakub@redhat.com>
24517
24518 PR debug/65807
24519 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24520
24521 2015-04-20 Richard Biener <rguenther@suse.de>
24522
24523 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24524 * gimple-fold.c (gimple_build_valueize): New function.
24525 (gimple_build): Always use gimple_build_valueize as valueize hook.
24526
24527 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24528
24529 PR target/64134
24530 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24531 and overwrite variable parts if <= 1/2 the elements are variable.
24532
24533 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
24534
24535 PR rtl-optimization/65805
24536 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24537 Don't use difference of offset and previous offset if
24538 update_sp_offset is non-zero.
24539 (eliminate_regs_in_insn): Ditto.
24540 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24541 lra_eliminate_regs_1 call.
24542 * lra-constraints.c (get_equiv_with_elimination): Ditto.
24543
24544 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
24545
24546 * hash-table.h: Remove version of hash_table that stored value_type *.
24547 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24548 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24549 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24550 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24551 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24552 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24553 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24554 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24555 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24556 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24557 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24558 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24559 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24560 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24561 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24562 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24563
24564 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24565 Jakub Jelinek <jakub@redhat.com>
24566
24567 PR target/65787
24568 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24569 subsequent SH_NONE operand does not overwrite an existing *special
24570 value.
24571 (adjust_extract): Handle case where a vec_extract operation is
24572 wrapped in a PARALLEL.
24573
24574 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24575
24576 PR target/65780
24577 * config/i386/i386.c (ix86_binds_local_p): Define only if
24578 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24579
24580 2015-04-17 Jeff Law <law@redhat.com>
24581
24582 PR tree-optimization/47679
24583 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24584 * tree-ssa-scopedtables.c: New file.
24585 * tree-ssa-scopedtables.h: New file.
24586 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24587 (const_and_copies): Change name/type.
24588 (record_const_or_copy): Move into tree-ssa-scopedtables.c
24589 (record_const_or_copy_1): Similarly.
24590 (restore_vars_to_original_value): Similarly.
24591 (pass_dominator::execute): Create and destroy const_and_copies table.
24592 (thread_across_edge): Update passing of const_and_copies.
24593 (record_temporary_equivalence): Use method calls rather than
24594 manipulating const_and_copies directly.
24595 (record_equality, cprop_into_successor_phis): Similarly.
24596 (dom_opt_dom_walker::before_dom_children): Similarly.
24597 (dom_opt_dom_walker::after_dom_children): Similarly.
24598 (eliminate_redundant_computations): Similarly.
24599 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24600 (record_temporary_equivalence): Likewise.
24601 (invalidate_equivalences): Likewise.
24602 (record_temporary_equivalences_from_phis): Update due to type
24603 change of const_and_copies. Use method calls rather than
24604 manipulating the stack directly.
24605 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24606 (thread_through_normal_block, thread_across_edge): Likewise.
24607 (thread_across_edge): Likewise.
24608 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24609 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
24610 of equiv_stack.
24611 (identify_jump_threads): Update due to type change of equiv_stack.
24612 (finalize_jump_threads): Delete the equiv_stack when complete.
24613
24614 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
24615
24616 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24617 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24618 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24619
24620 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
24621
24622 PR target/65535
24623 * config.gcc: Exit with a comment when we do not have a major version
24624 number for the FreeBSD target.
24625
24626 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24627
24628 PR target/65689
24629 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24630 maybe_allows_mem bitfields.
24631 (maybe_allows_none_start, maybe_allows_none_end,
24632 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24633 maybe_allows_mem_end): New variables.
24634 (compute_maybe_allows): New function.
24635 (add_constraint): Use it to initialize maybe_allows_reg and
24636 maybe_allows_mem fields.
24637 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24638 is_address constraints such that those that allow neither mem nor
24639 reg come first, then those that only allow reg but not mem, then
24640 those that only allow mem but not reg, then the rest.
24641 (write_allows_reg_mem_function): New function.
24642 (write_tm_preds_h): Call it.
24643 * stmt.c (parse_output_constraint, parse_input_constraint): Use
24644 the generated insn_extra_constraint_allows_reg_mem function
24645 instead of always setting *allows_reg = true; *allows_mem = true;
24646 for unknown extra constraints.
24647
24648 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24649
24650 PR target/65780
24651 * output.h (default_binds_local_p_3): New.
24652 * varasm.c (default_binds_local_p_3): Make it public. Take an
24653 argument to indicate if common symbol may be local. If common
24654 symbol may be local, treat non-external variable as defined
24655 locally.
24656 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24657 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24658 * config/i386/i386.c (ix86_binds_local_p): New.
24659 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24660 ix86_binds_local_p.
24661
24662 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24663
24664 PR debug/65771
24665 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24666 trying mem_loc_descriptor on XEXP (rtl, 0).
24667
24668 2015-04-17 Martin Liska <mliska@suse.cz>
24669
24670 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24671 Release symbol_compare_collection.
24672 * ipa-reference.c: Add TODO that a vector should be released.
24673
24674 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24675
24676 PR target/65296
24677 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24678 to new AVR-LibC file layout (bug #44574).
24679 (*avrlibc_devicelib): Same.
24680 * config/avr/avr-mcus.def: Adjust comments.
24681 * config/avr/avr.opt (nodevicelib): Adjust help.
24682
24683 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
24684
24685 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24686
24687 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
24688
24689 PR c++/64527
24690 * gimplify.c (gimplify_init_constructor): Always emit a
24691 side-effecting constructor.
24692
24693 2015-04-17 Tom de Vries <tom@codesourcery.com>
24694
24695 PR tree-optimization/64950
24696 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24697 in cfun->curr_properties.
24698 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24699 if we generate an IFN_VA_ARG.
24700 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24701 function if PROP_gimple_lva is not set in src function.
24702
24703 2015-04-17 Tom de Vries <tom@codesourcery.com>
24704 Michael Matz <matz@suse.de>
24705
24706 PR tree-optimization/64950
24707 * gimple-iterator.c (update_modified_stmts): Remove static.
24708 * gimple-iterator.h (update_modified_stmts): Declare.
24709 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24710 (gimplify_va_arg_internal): New function.
24711 (gimplify_va_arg_expr): Use IFN_VA_ARG.
24712 * gimplify.h (gimplify_va_arg_internal): Declare.
24713 * internal-fn.c (expand_VA_ARG): New unreachable function.
24714 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24715 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24716 (expand_ifn_va_arg): New function.
24717 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24718 (pass_stdarg::execute): Call expand_ifn_va_arg.
24719 (pass_data_lower_vaarg): New pass_data.
24720 (pass_lower_vaarg): New gimple_opt_pass.
24721 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24722 (make_pass_lower_vaarg): New function.
24723 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24724 properties_required field.
24725 * passes.def (all_passes): Add pass_lower_vaarg.
24726 * tree-pass.h (PROP_gimple_lva): Add define.
24727 (make_pass_lower_vaarg): Declare.
24728
24729 2015-04-17 Tom de Vries <tom@codesourcery.com>
24730
24731 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24732 * calls.c (call_expr_flags): Same.
24733
24734 2015-04-17 Tom de Vries <tom@codesourcery.com>
24735
24736 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24737 (pass_stdarg::execute): ... here.
24738
24739 2015-04-17 Tom de Vries <tom@codesourcery.com>
24740 Michael Matz <matz@suse.de>
24741
24742 * tree-cfg.c (make_blocks_1): Factor out of ...
24743 (make_blocks): ... here.
24744 (make_edges_bb): Factor out of ...
24745 (make_edges): ... here.
24746 (gimple_find_sub_bbs): New function.
24747 * tree-cfg.h (gimple_find_sub_bbs): Declare.
24748
24749 2015-04-17 Tom de Vries <tom@codesourcery.com>
24750
24751 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24752
24753 2015-04-17 Yury Gribov <y.gribov@samsung.com>
24754
24755 * asan.c (set_sanitized_sections): New function.
24756 (section_sanitized_p): Ditto.
24757 (asan_protect_global): Optionally sanitize user-defined
24758 sections.
24759 * asan.h (set_sanitized_sections): Declare new function.
24760 * common.opt (fsanitize-sections): New option.
24761 * doc/invoke.texi (-fsanitize-sections): Document new option.
24762 * opts-global.c (handle_common_deferred_options): Handle new
24763 option.
24764
24765 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24766
24767 PR debug/65771
24768 * dwarf2out.c (loc_list_from_tree): Return NULL
24769 for DEBUG_EXPR_DECL.
24770
24771 2015-04-17 Christian Bruel <christian.bruel@st.com>
24772
24773 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24774 same attributes.
24775
24776 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24777
24778 * ira-color.c (setup_left_conflict_sizes_p): Do not process
24779 node itself when computing left conflict subnode size.
24780
24781 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24782
24783 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24784 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24785 *fop_<mode>_1_sse using enabled attribute. Use
24786 register_mixssei387nonimm_operand operand 1 predicate. Change
24787 alternative 3 constraints from "x" to "v".
24788
24789 2015-04-16 Richard Biener <rguenther@suse.de>
24790
24791 PR tree-optimization/65774
24792 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24793 bit-value tracking on.
24794
24795 2015-04-16 Richard Biener <rguenther@suse.de>
24796
24797 PR tree-optimization/64277
24798 * tree-vrp.c (check_array_ref): Fix anti-range handling,
24799 simplify upper bound handling.
24800 (search_for_addr_array): Simplify.
24801 (check_array_bounds): Handle ADDR_EXPRs here.
24802 (check_all_array_refs): Simplify.
24803
24804 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24805
24806 * config/i386/i386.c (print_reg): Rewrite function.
24807
24808 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24809
24810 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24811 Invert the condition.
24812
24813 2015-04-16 Renlin Li <renlin.li@arm.com>
24814
24815 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24816 simplifications for UNSIGNED_FLOAT.
24817
24818 2015-04-16 Nick Clifton <nickc@redhat.com>
24819
24820 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24821 MUL_UNINIT.
24822 (enum rl78_cpu_type): New.
24823 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24824 (umulhi3_shift_virt): Remove m constraint from operand 1.
24825 (umulqihi3_virt): Likewise.
24826 * config/rl78/rl78.c (rl78_option_override): Add code to process
24827 -mcpu and -mmul options.
24828 (rl78_alloc_physical_registers): Add code to handle divhi and
24829 divsi valloc attributes.
24830 (set_origin): Likewise.
24831 * config/rl78/rl78.h (RL78_MUL_G14): Define.
24832 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24833 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24834 __RL78_Gxx__.
24835 (ASM_SPEC): Pass -mcpu on to assembler.
24836 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24837 (mulqi3_rl78): Likewise.
24838 (mulhi3_g13): Likewise.
24839 (mulhi3): Generate the G13 or G14 versions of the insn directly.
24840 (mulsi3): Likewise.
24841 (mulhi3_g14): Add clobbers of AX and BC.
24842 (mulsi3_g14): Likewise.
24843 (mulsi3_g13): Likewise.
24844 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24845 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24846 * config/rl78/rl78.opt (mmul): Initialise value to
24847 RL78_MUL_UNINIT.
24848 (mcpu): New option.
24849 (m13, m14, mrl78): New option aliases.
24850 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24851 (MULTILIB_DIRNAMES): Add g13 and g14.
24852 * doc/invoke.texi: Document -mcpu and -mmul options.
24853
24854 2015-04-16 Richard Biener <rguenther@suse.de>
24855
24856 * tree-ssa-ccp.c (likely_value): See if we have operands that
24857 are marked as never simulate again and return CONSTANT in this
24858 case.
24859 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24860 not have any operands that will be simulated again as
24861 not being simulated again.
24862
24863 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
24864
24865 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24866 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24867 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24868 attribute.
24869 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24870 enabled attribute.
24871 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24872 *float<SWI48:mode><MODEF:mode>2_sse.
24873 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24874 enabled attribute.
24875 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24876 enabled attribute.
24877
24878 2015-04-15 Tom de Vries <tom@codesourcery.com>
24879
24880 PR other/65487
24881 * function.c (push_dummy_function): New function.
24882 (init_dummy_function_start): Use push_dummy_function.
24883 (pop_dummy_function): New function. Factored out of ...
24884 (expand_dummy_function_end): ... here.
24885 * function.h (push_dummy_function, pop_dummy_function): Declare.
24886 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24887 pop_dummy_function.
24888 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24889
24890 2015-04-15 Jeff Law <law@redhat.com>
24891
24892 PR tree-optimization/47679
24893 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24894 need for forward declaration in upcoming changes.
24895 (record_conditions, record_edge_info): Likewise.
24896
24897 PR rtl-optimization/42522
24898 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24899 SIGN_EXTRACT as a whole object rather than simplifying
24900 its operand.
24901
24902 2015-04-15 Jakub Jelinek <jakub@redhat.com>
24903
24904 PR ipa/65765
24905 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24906 and GIMPLE_PREDICT use break instead of return true. For
24907 GIMPLE_EH_DISPATCH, compare dispatch region.
24908
24909 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
24910
24911 * doc/extend.texi (__sync Builtins): Simplify some text. Update
24912 details about the implementation. Make clear preference for
24913 __atomic builtins. Reduce possibility of future change.
24914
24915 2015-04-15 Nick Clifton <nickc@redhat.com>
24916
24917 * config/rx/rx.opt (mallow-string-insns): New option.
24918 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24919 builtin if string instructions are denied.
24920 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24921 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24922 appropriate.
24923 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24924 * config/rx/rx.md (movstr): Enable pattern only if string
24925 instructions are allowed.
24926 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24927 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24928 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24929 (MULTILIB_DIRNAMES): Add no-strings.
24930 * doc/invoke.texi: Document -mno-allow-string-insns.
24931
24932 2015-04-15 Alan Modra <amodra@gmail.com>
24933
24934 PR target/65408
24935 PR target/58744
24936 PR middle-end/36043
24937 * calls.c (load_register_parameters): Don't load past end of
24938 mem unless suitably aligned.
24939
24940 2015-04-15 Nick Clifton <nickc@redhat.com>
24941
24942 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24943 decrement instruction as being frame related.
24944 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24945 based addresses.
24946 If zero extending a function address enclose the operation in
24947 %code(...).
24948 (rl78_preferred_reload_class): New function.
24949 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24950 * config/rl78/rl78.md: Remove useless constraints in expanders.
24951 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24952 (mulhi3_rl78): Likewise.
24953 (mulhi3_g13): Likewise.
24954 (mulsi3_rl78): Likewise.
24955 (es_addr): Move to before the multiply patterns.
24956
24957 2015-04-15 Alan Modra <amodra@gmail.com>
24958
24959 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24960 and sequence_stack. Add seq.
24961 (seq_stack): Delete.
24962 * function.c (prepare_function_start): Don't access x_last_insn.
24963 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24964 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24965 * emit_rtl.c (start_sequence, push_topmost_sequence,
24966 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24967 sequence accessors.
24968 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24969 remove_insn): Likewise. Simplify.
24970 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24971 and pop_topmost_sequence.
24972 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
24973 debug insns.
24974 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24975
24976 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
24977
24978 PR target/65729
24979 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24980 the assertiion.
24981
24982 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24983
24984 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24985 (LEGACY_INT_REGNO_P): Ditto.
24986 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24987 (ANY_MASK_REG_P): Remove.
24988 (BND_REG_P): Rename from ANY_BND_REG_P.
24989 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24990 legacy integer registers. Do not handle MMX_REG_P in a special way.
24991 Merge 64byte and 32byte SSE handling.
24992
24993 2015-04-14 Nick Clifton <nickc@redhat.com>
24994
24995 * expr.c (expand_assignment): Force an address offset computation
24996 into a register before changing its mode.
24997 (expand_expr_real_1): Likewise.
24998
24999 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
25000
25001 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25002 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25003 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25004 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25005 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25006 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25007 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25008 and __aarch64_vget_lane_any.
25009
25010 2015-04-14 Jakub Jelinek <jakub@redhat.com>
25011
25012 PR rtl-optimization/65761
25013 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25014 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25015
25016 2015-04-14 Richard Biener <rguenther@suse.de>
25017
25018 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25019 (graphite_can_represent_scev): Use POINTER_TYPE_P.
25020
25021 2015-04-14 Richard Biener <rguenther@suse.de>
25022
25023 PR tree-optimization/65758
25024 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25025 against -1.
25026 (ccp_lattice_meet): Likewise.
25027 (bit_value_unop): Likewise.
25028 (bit_value_binop): Likewise.
25029 (bit_value_assume_aligned): Likewise.
25030
25031 2015-04-14 Christian Bruel <christian.bruel@st.com>
25032
25033 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25034 function.
25035
25036 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
25037
25038 PR tree-optimization/63387
25039 * match.pd ((x unord x) | (y unord y) -> (x unord y),
25040 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25041
25042 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25043
25044 * config/i386/predicates.md (any_QIreg_operand): Rename from
25045 q_regs_operand. Do not process subregs.
25046 (QIreg_operand): Use QI_REGNO_P predicate.
25047 (ext_QIreg_operand): Ditto.
25048 (ext_register_operand): Ditto.
25049 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25050 (AND splitters): Ditto.
25051 (AND with -65536 splitter): Add SWI48 mode for operand 0.
25052 (AND with -256 splitter): Use any_QIreg_operand predicate and
25053 SWI248 mode for operand 0.
25054 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25055 mode for operand 0.
25056 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25057
25058 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
25059
25060 * doc/plugins.texi: Rewrite first introductory paragraph.
25061
25062 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25063
25064 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25065 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25066
25067 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25068
25069 * ipa-profie.c (ipa_profile): Check number of parameters
25070 and possible polymorphic call targets before
25071 devirtualizing.
25072
25073 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
25074
25075 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25076 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25077
25078 2015-04-13 Richard Biener <rguenther@suse.de>
25079
25080 PR tree-optimization/65204
25081 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25082 takens for bit-CCP.
25083
25084 2015-04-13 Richard Biener <rguenther@suse.de>
25085
25086 PR target/65660
25087 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25088 and cond_not_taken_branch_cost to 4 and 2.
25089 (bdver2_cost): Likewise.
25090 (bdver3_cost): Likewise.
25091 (bdver4_cost): Likewise.
25092
25093 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25094
25095 * hash-table.h (hash_table constructor): Add mem stats.
25096 (alloc_entries): Likewise.
25097
25098 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25099
25100 * ipa-cp.c (ipcp_driver): Relase prev_edge.
25101 * passes.c (execute_one_pass): Only add transform if pass has one.
25102
25103 2015-04-12 Joseph Myers <joseph@codesourcery.com>
25104
25105 * config/i386/i386.c (ix86_option_override_internal): Don't set
25106 -fprefetch-loop-arrays if optimizing for size.
25107
25108 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25109 Gerald Pfeifer <gerald@pfeifer.com>
25110
25111 * doc/contrib.texi (Contributors): Add Martin Jambor and
25112 Michael Matz.
25113
25114 2015-04-12 Jakub Jelinek <jakub@redhat.com>
25115
25116 * BASE-VER: Set to 6.0.0.
25117
25118 PR tree-optimization/65747
25119 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25120 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25121
25122 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25123
25124 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25125 sentence. Improve grammar.
25126
25127 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25128
25129 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25130
25131 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25132
25133 PR ipa/65743
25134 * ipa-inline-transform.c (speculation_removed): Remove static var.
25135 (check_speculations): New function.
25136 (clone_inlined_nodes): Do not check spculations.
25137 (inline_call): Call check_speculations.
25138 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25139 consider non-invariants.
25140
25141 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25142 Martin Liska <mliska@suse.cz>
25143
25144 PR ipa/65722
25145 * ipa-icf.c (sem_item::compare_cgraph_references): function and
25146 variable can not match.
25147 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25148 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25149
25150 2015-04-11 Jakub Jelinek <jakub@redhat.com>
25151
25152 PR tree-optimization/65735
25153 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25154 Remove visited_phis argument, add visited_bbs, avoid recursing into the
25155 same bb rather than just into the same phi node.
25156 (thread_through_normal_block): Adjust caller.
25157
25158 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25159
25160 * doc/contrib.texi (Contributors): Add Ira Rosen.
25161
25162 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
25163
25164 * gcov.c (find_source): Fix miswording in error message.
25165 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25166 (ix86_expand_sse_comi_round): Fix typo in error message.
25167
25168 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25169
25170 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25171
25172 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
25173
25174 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25175
25176 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25177
25178 PR target/65710
25179 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25180 Print bad_spills_num and insn_pseudos_num.
25181
25182 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25183
25184 PR target/65694
25185 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25186 when creating +1 values for SImode.
25187
25188 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25189
25190 PR target/65729
25191 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25192 assert.
25193
25194 2015-04-10 Jakub Jelinek <jakub@redhat.com>
25195 Iain Sandoe <iain@codesourcery.com>
25196
25197 PR target/65351
25198 * configure: Regenerate.
25199
25200 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25201
25202 PR target/65671
25203 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25204
25205 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
25206
25207 * doc/contrib.texi (Contributors): Add John Marino.
25208
25209 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25210
25211 PR tree-optimization/65709
25212 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25213 TREE_TYPE (TREE_TYPE (t)).
25214
25215 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
25216
25217 PR target/65710
25218 * lra-int.h (lra_bad_spill_regno_start): New.
25219 * lra.c (lra_bad_spill_regno_start): New.
25220 (lra): Set up lra_bad_spill_regno_start. Set up
25221 lra_constraint_new_regno_start unconditionally.
25222 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25223 spill preferences.
25224
25225 2015-04-09 Marek Polacek <polacek@redhat.com>
25226 Jakub Jelinek <jakub@redhat.com>
25227
25228 PR middle-end/65554
25229 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25230 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25231 of STRIP_NOPS.
25232
25233 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
25234
25235 PR rtl-optimization/65693
25236 * combine.c (is_parallel_of_n_reg_sets): Move outside of
25237 #ifndef HAVE_cc0.
25238
25239 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
25240
25241 PR target/65296
25242 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25243 device specs file if "device-specs%s" didn't resolve to a path.
25244
25245 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25246
25247 PR target/65676
25248 * config/i386/i386.c (fixup_modeless_constant): New.
25249 (ix86_expand_args_builtin): Fixup modeless constant operand.
25250 (ix86_expand_round_builtin): Ditto.
25251 (ix86_expand_special_args_builtin): Ditto.
25252 (ix86_expand_builtin): Ditto.
25253
25254 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25255
25256 PR target/65693
25257 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25258 any pow2 integer in between 2 and 0x80000000U inclusive.
25259
25260 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
25261
25262 PR rtl-optimization/65693
25263 * combine.c (is_parallel_of_n_reg_sets): Change first argument
25264 from an rtx_insn * to an rtx.
25265 (try_combine): Adjust both callers. Use it once more.
25266
25267 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25268
25269 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25270 (chkp_make_static_const_bounds): Search existing
25271 symbol by assembler name. Use make_decl_one_only.
25272 (chkp_get_zero_bounds_var): Remove node search which
25273 is now performed in chkp_make_static_const_bounds.
25274 (chkp_get_none_bounds_var): Likewise.
25275
25276 2015-04-08 Michael Witten <mfwitten@gmail.com>
25277
25278 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25279 to an example.
25280
25281 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25282
25283 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25284
25285 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25286
25287 * doc/extend.texi (__sync Builtins): Fix grammar.
25288
25289 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25290
25291 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25292
25293 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25294
25295 * varasm.c (emit_local): Move definition of align.
25296
25297 2015-04-08 Julian Brown <julian@codesourcery.com>
25298
25299 * config/nvptx/mkoffload.c (process): Support variable mapping.
25300
25301 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
25302
25303 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25304 alpha_links **.
25305 (alpha_write_one_linkage): Correct typo.
25306
25307 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25308
25309 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25310
25311 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25312
25313 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25314
25315 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25316
25317 * tree-chkp.h (chkp_insert_retbnd_call): New.
25318 * tree-chkp.c (chkp_insert_retbnd_call): New.
25319 * ipa-split.c (insert_bndret_call_after): Remove.
25320 (split_function): Use chkp_insert_retbnd_call.
25321 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25322 bounds for instrumented functions.
25323
25324 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
25325
25326 PR ipa/65540
25327 * calls.c (initialize_argument_information): When producing tail
25328 call also turn SSA_NAMES passed by references to original PARM_DECLs
25329
25330 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
25331
25332 PR target/65648
25333 * lra-remat.c (do_remat): Process input and non-input insn
25334 registers separately.
25335
25336 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25337
25338 PR debug/65678
25339 * valtrack.c (debug_lowpart_subreg): New function.
25340 (dead_debug_insert_temp): Use it.
25341
25342 PR middle-end/65680
25343 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25344 into signed HOST_WIDE_INT the same as negative bit_offset.
25345
25346 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
25347
25348 * ipa-comdats.c (ipa_comdats): Visit all thunks
25349 to set proper comdat group.
25350
25351 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25352
25353 PR target/65489
25354 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25355 on constants for NEON VSTRUCT modes.
25356
25357 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25358 Iain Sandoe <iain@codesourcery.com>
25359
25360 PR target/65351
25361 * configure: Regenerate.
25362
25363 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25364
25365 PR target/65614
25366 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25367 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25368 that LFD is used to load double constants instead of LFS. Add
25369 defaults for all costs structures. Add comments for missing
25370 initialization fields.
25371 (size32_cost): Likewise.
25372 (size64_cost): Likewise.
25373 (rs64a_cost): Likewise.
25374 (mpccore_cost): Likewise.
25375 (ppc403_cost): Likewise.
25376 (ppc405_cost): Likewise.
25377 (ppc440_cost): Likewise.
25378 (ppc476_cost): Likewise.
25379 (ppc601_cost): Likewise.
25380 (ppc603_cost): Likewise.
25381 (ppc604_cost): Likewise.
25382 (ppc604e_cost): Likewise.
25383 (ppc620_cost): Likewise.
25384 (ppc630_cost): Likewise.
25385 (ppccell_cost): Likewise.
25386 (ppc750_cost): Likewise.
25387 (ppc7450_cost): Likewise.
25388 (ppc8540_cost): Likewise.
25389 (ppce300c2c3_cost): Likewise.
25390 (ppce500mc_cost): Likewise.
25391 (ppce500mc64_cost): Likewise.
25392 (ppce5500_cost): Likewise.
25393 (ppce6500_cost): Likewise.
25394 (titan_cost): Likewise.
25395 (power4_cost): Likewise.
25396 (power6_cost): Likewise.
25397 (power7_cost): Likewise.
25398 (power8_cost): Likewise.
25399 (ppca2_cost): Likewise.
25400 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25401
25402 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25403 instead of XXLOR to copy SFmode to clear out dirty bits created
25404 when SFmode denormals are generated.
25405 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25406 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25407
25408 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25409
25410 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25411 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25412 * config/aarch64/aarch64-tune.md: Regenerate.
25413
25414 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25415
25416 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25417 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25418 * config/arm/arm-cores.def (exynos-m1): New core.
25419 * config/arm/arm-tune.md: Regenerate.
25420 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25421 * config/arm/bpabi.h: Likewise.
25422
25423 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25424
25425 * ipa-cp (set_single_call_flag): Remove too
25426 restrictive assert.
25427
25428 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
25429
25430 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25431 GOMP_offload_unregister from the destructor.
25432
25433 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25434
25435 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25436 flags for instrumentation thunk.
25437 (chkp_produce_thunks): Likewise.
25438
25439 2015-04-05 Martin Liska <mliska@suse.cz>
25440
25441 PR ipa/65665
25442 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25443 has computed data structure.
25444 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25445
25446 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
25447
25448 * invoke.texi (inline-unit-growth): Increase growth to 20%
25449 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25450
25451 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
25452
25453 PR target/65647
25454 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
25455 value checking.
25456 (lra_rematerialization_iter): New.
25457 * lra.c (lra): Initialize lra_rematerialization_iter.
25458 Stop updating lra_constraint_new_regno_start after switching of
25459 inheritance and rematerialization.
25460 * lra-remat.c (lra_rematerialization_iter): New.
25461 (lra_remat): Add printing pass iteration. Do rematerialization
25462 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25463
25464 2015-04-04 Richard Biener <rguenther@suse.de>
25465
25466 PR tree-optimization/64909
25467 PR tree-optimization/65660
25468 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25469 to take a cost vector for scalar iteration cost.
25470 (vect_get_single_scalar_iteration_cost): Likewise.
25471 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25472 Compute the scalar iteration cost into a cost vector.
25473 (vect_get_known_peeling_cost): Use the scalar cost vector to
25474 account for the cost of the peeled iterations.
25475 (vect_estimate_min_profitable_iters): Likewise.
25476 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25477 Likewise.
25478
25479 2015-04-04 Alan Modra <amodra@gmail.com>
25480
25481 PR target/65576
25482 PR target/65240
25483 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25484 0.0 constant unless TARGET_VSX.
25485 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25486 alternative.
25487
25488 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25489
25490 PR ipa/65654
25491 * ipa-inline-transform.c (inline_call): Skip sanity check to work
25492 around the ICE
25493
25494 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25495
25496 PR ipa/65655
25497 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25498 speculative indirect edges to avoid ordering issue.
25499
25500 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25501
25502 PR ipa/65076
25503 * ipa-inline.c (edge_badness): Add combined size to the denominator.
25504
25505 2015-04-03 Jakub Jelinek <jakub@redhat.com>
25506
25507 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25508 TYPE_ARTIFICIAL on the .omp_data* types.
25509
25510 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25511
25512 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25513 instrumentation thunks.
25514
25515 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25516
25517 * config/i386/i386.c (ix86_expand_call): Avoid nested
25518 PARALLEL in returned call value.
25519
25520 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25521
25522 * lto-cgraph.c (input_cgraph_1): Always link instrumented
25523 assembler name with original one.
25524
25525 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25526
25527 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25528
25529 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25530
25531 Revert parts of r216820.
25532 * config/i386/i386.md (movqi_internal): Correct type calculation
25533 for alternatives 3 and 5.
25534
25535 2015-04-02 Jakub Jelinek <jakub@redhat.com>
25536
25537 PR preprocessor/61977
25538 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25539 predefine __vector/__bool/__pixel macros nor context sensitive
25540 macros for CLK_ASM.
25541 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25542
25543 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
25544
25545 * config/pa/pa.c (pa_output_move_double): Directly handle register
25546 indexed memory operand. Simplify handling of scaled register indexed
25547 memory operands.
25548
25549 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25550
25551 PR driver/65444
25552 * config/i386/linux-common.h (MPX_SPEC): New.
25553 (CHKP_SPEC): Add MPX_SPEC.
25554 * doc/invoke.texi (-fcheck-pointer-boudns): Document
25555 possible issues with '-z bndplt' support in linker.
25556
25557 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25558
25559 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25560 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25561 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25562 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25563 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25564
25565 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
25566
25567 * config/i386/sync.md (UNSPEC_MOVA): Remove.
25568 (atomic_load<mode>): Change operand 0 predicate to
25569 nonimmediate_operand and fix up the destination when needed.
25570 Use UNSPEC_LDA.
25571 (atomic_loaddi_fpu): Use UNSPEC_LDA.
25572 (atomic_store<mode>): Change operand 1 predicate to
25573 nonimmendate_operand and move the source to register when needed.
25574 Use UNSPEC_STA.
25575 (atomic_store<mode>_1): Use UNSPEC_STA.
25576 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25577 Fix moves from memory operand. Use UNSPEC_STA.
25578
25579 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25580
25581 * expmed.c (strict_volatile_bitfield_p): Check that the access will
25582 not cross a MODESIZE boundary.
25583 (store_bit_field, extract_bit_field): Added assertions in the
25584 strict volatile bitfields code path.
25585
25586 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
25587
25588 PR target/65624
25589 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25590 Increase args array size by one to avoid buffer overflow.
25591
25592 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25593
25594 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25595 split_part.
25596 * ipa-inline.c (edge_badness): Add wrapper penalty.
25597 (sum_callers): Move up.
25598 (inline_small_functions): Set single_caller.
25599 * ipa-inline.h (inline_summary): Add single_caller.
25600 * ipa-split.c (split_function): Set split_part.
25601 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25602 * cgraph.h (cgraph_node): Add split_part.
25603
25604 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
25605
25606 PR target/58945
25607 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25608 Do not split operands 0 and operands 2 to halfmode.
25609 (atomic_compare_and_swap<mode>): Update for
25610 atomic_compare_and_swap<dwi>_doubleword changes.
25611
25612 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25613
25614 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25615 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25616 no caching is done.
25617
25618 2015-03-31 Martin Liska <mliska@suse.cz>
25619
25620 PR ipa/65557
25621 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25622 has already filled up function summary.
25623 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25624
25625 2015-03-31 Richard Biener <rguenther@suse.de>
25626
25627 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25628 of types.
25629
25630 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
25631
25632 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25633 nested functions.
25634 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25635 (s390_asm_output_function_label): Adapt to new signature of
25636 s390_function_num_hotpatch_hw
25637 Optimise the code generating assembler output.
25638 Add comments to assembler file.
25639
25640 2015-03-31 Richard Biener <rguenther@suse.de>
25641
25642 PR middle-end/65626
25643 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25644 of the noreturn call so it is last and cleanup_control_flow_bb
25645 can do the CFG part.
25646
25647 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
25648
25649 PR target/65531
25650 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25651 same_comdat_group for external symbols.
25652 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25653 infinite same_comdat_group traversal loop.
25654
25655 2015-03-31 Jakub Jelinek <jakub@redhat.com>
25656
25657 PR plugins/61176
25658 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25659 automatically to $headers.
25660
25661 2015-03-30 Jakub Jelinek <jakub@redhat.com>
25662
25663 PR ipa/65610
25664 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25665 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25666 function.
25667 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25668 Use it.
25669 * ipa-prop.c (param_type_may_change_p): Likewise.
25670 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25671 (remove_unused_scope_block_p): Add in_ctor_dtor_block
25672 argument. Before inlining, preserve
25673 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25674 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
25675 recursive calls.
25676 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25677
25678 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25679
25680 PR ipa/65076
25681 * ipa-inline.c (edge_badness): Base denominator on callee's
25682 grwoth squared.
25683
25684 2015-03-27 Martin Jambor <mjambor@suse.cz>
25685
25686 PR ipa/65478
25687 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25688 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25689 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25690 node_calling_single_call.
25691 * ipa-cp.c (count_callers): New function.
25692 (set_single_call_flag): Likewise.
25693 (initialize_node_lattices): Count callers and set single_flag_call if
25694 necessary.
25695 (incorporate_penalties): New function.
25696 (good_cloning_opportunity_p): Use it, dump new flags.
25697 (propagate_constants_topo): Set node_within_scc flag if appropriate.
25698 * doc/invoke.texi (ipa-cp-recursion-penalty,
25699 ipa-cp-single-call-pentalty): Document.
25700
25701 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25702
25703 PR ipa/65588
25704 * symtab.c (symtab_node::get_partitioning_class): Register vars
25705 are duplicated.
25706 * varpool.c (symbol_table::output_variables) Do not assemble unefined
25707 decls for non-symbols.
25708
25709 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
25710
25711 PR target/65248
25712 * output.h (default_binds_local_p_2): New.
25713 * varasm.c (default_binds_local_p_2): Renamed to ...
25714 (default_binds_local_p_3): This. Don't return true on protected
25715 data symbol if protected data may be external.
25716 (default_binds_local_p): Use default_binds_local_p_3.
25717 (default_binds_local_p_1): Likewise.
25718 (default_binds_local_p_2): New.
25719 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25720 default_binds_local_p_2 if TARGET_MACHO is undefined.
25721
25722 2015-03-27 Jakub Jelinek <jakub@redhat.com>
25723
25724 PR target/65593
25725 * config/i386/i386.c (legitimize_pic_address): If base
25726 is SYMBOL_REF or LABEL_REF using %rip addressing, force
25727 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25728
25729 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25730
25731 PR target/65531
25732 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25733 comdat groups.
25734
25735 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25736
25737 PR ipa/65600
25738 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25739 of optimized out indirect call.
25740 (redirect_to_unreachable): Always build symbol table node for
25741 BUILT_IN_UNREACHABLE
25742
25743 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
25744
25745 PR target/65407
25746 * ira-costs.c (record_reg_classes): Process all constraint string
25747 containing 0-9.
25748
25749 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
25750
25751 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25752 memory_operand.
25753
25754 PR target/65052
25755 * config/c6x/constraints.md (S3): New constraint.
25756 * config/c6x/c6x.md (real_jump): Use it.
25757
25758 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25759
25760 PR middle-end/65595
25761 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25762 do redirection if the call is not optimized out.
25763
25764 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
25765
25766 PR target/65495
25767 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25768 (fchkp-check-incomplete-type): Add LTO.
25769 (fchkp-zero-input-bounds-for-main): Likewise.
25770 (fchkp-first-field-has-own-bounds): Likewise.
25771 (fchkp-narrow-bounds): Likewise.
25772 (fchkp-narrow-to-innermost-array): Likewise.
25773 (fchkp-use-static-bounds): Likewise.
25774 (fchkp-use-static-const-bounds): Likewise.
25775 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25776
25777 2015-03-27 Marek Polacek <polacek@redhat.com>
25778
25779 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25780
25781 2015-03-27 Marek Polacek <polacek@redhat.com>
25782
25783 PR sanitizer/65583
25784 * ubsan.c (ubsan_create_edge): New function.
25785 (instrument_bool_enum_load): Call it.
25786 (instrument_nonnull_arg): Likewise.
25787 (instrument_nonnull_return): Likewise.
25788 (instrument_object_size): Likewise.
25789
25790 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25791
25792 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25793 auto_vec.
25794
25795 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25796
25797 PR lto/65536
25798 * lto-streamer.h (class lto_location_cache): New.
25799 (struct data_in): Add location_cache.
25800 (lto_input_location): Update prototype.
25801 (stream_input_location_now): New.
25802 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25803 pointer to location.
25804 (stream_input_location): Update.
25805 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25806 (warn_odr): Apply location cache before warning.
25807 (lto_input_location): Update prototype.
25808 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25809 Use stream_input_location_now.
25810 * lto-streamer-in.c (lto_location_cache::current_cache): New static
25811 variable.
25812 (lto_location_cache::cmp_loc): New function.
25813 (lto_location_cache::apply_location_cache): New function.
25814 (lto_location_cache::accept_location_cache): New function.
25815 (lto_location_cache::revert_location_cache): New function.
25816 (lto_location_cache::input_location): New function.
25817 (lto_input_location): Do location caching.
25818 (stream_input_location_now): New function.
25819 (input_eh_region, input_struct_function_base): Use
25820 stream_input_location_now.
25821 (lto_data_in_create): use new.
25822 (lto_data_in_delete): Use delete.
25823 * tree-streamer-in.c (unpack_ts_block_value_fields,
25824 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25825 lto_input_ts_exp_tree_pointers): Update for cached location api.
25826
25827 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25828
25829 PR ipa/65076
25830 * passes.def: Add pass_nothrow.
25831 * ipa-pure-const.c: (pass_data_nothrow): New.
25832 (pass_nothrow): New.
25833 (pass_nothrow::execute): New.
25834 (make_pass_nothrow): New.
25835 * tree-pass.h (make_pass_nothrow): Declare.
25836
25837 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25838
25839 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25840 edge to change by speculation resolution or redirection.
25841 (edge_set_predicate): Likewise.
25842 (inline_summary_t::duplicate): Likewise.
25843 (remap_edge_summaries): Likewise.
25844
25845 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25846
25847 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25848 New macros.
25849 (can_inline_edge_p): Relax option matching for always inline functions.
25850
25851 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
25852
25853 PR target/65561
25854 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25855 Check operand 4 and operand 0 for equality.
25856 (avx512f_vextract<shuffletype>32x4_1_maskm):
25857 Check operand 6 and operand 0 for equality.
25858 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25859 for equality.
25860 (vec_extract_hi_<mode>_maskm): Ditto.
25861
25862 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25863
25864 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25865 dead calls back to live.
25866 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25867 cross check to ...
25868 (cgraph_node::verify_node): ... here; verify only callee edges,
25869 not caller.
25870 * cif-code.def (CILK_SPAWN): New code.
25871
25872 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25873
25874 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25875 (edge_set_predicate): Use it to mark unreachable edges.
25876 (inline_summary_t::duplicate): Remove unnecesary code.
25877 (remap_edge_summaries): Likewise.
25878 (dump_inline_summary): Report contains_cilk_spawn.
25879 (compute_inline_parameters): Compute contains_cilk_spawn.
25880 (inline_read_section, inline_write_summary): Stream
25881 contains_cilk_spawn.
25882 * ipa-inline.c (can_inline_edge_p): Do not touch
25883 DECL_STRUCT_FUNCTION that may not be available;
25884 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25885 remove check for callee_fun->can_throw_non_call_exceptions and
25886 replace it by optimization attribute check; check for flag_exceptions.
25887 * ipa-inline-transform.c (inline_call): Maintain
25888 DECL_FUNCTION_PERSONALITY
25889 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25890
25891 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25892
25893 PR tree-optimization/65551
25894 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25895 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25896
25897 2015-03-26 Richard Biener <rguenther@suse.de>
25898
25899 PR middle-end/65555
25900 * tree-cfg.c (verify_gimple_call): Do not require a call to
25901 have no LHS if it wasn't recognized as control altering yet.
25902
25903 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25904
25905 PR tree-optimization/64715
25906 * passes.def: Add another instance of pass_object_sizes before ccp1.
25907 * tree-object-size.c (pass_object_sizes::execute): In
25908 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25909 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25910 __bos result and the computed constant. Remove redundant
25911 checks, obsoleted by gimple_call_builtin_p test.
25912
25913 * var-tracking.c (variable_tracking_main_1): Don't track
25914 variables for targetm.no_register_allocation targets.
25915
25916 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
25917
25918 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25919 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25920
25921 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
25922
25923 PR target/65569
25924 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25925 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
25926 0.0 is correctly setup.
25927 (extenddftf2_internal): Likewise.
25928
25929 2015-03-25 Sebastian Pop <s.pop@samsung.com>
25930
25931 PR tree-optimization/65177
25932 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25933 (bb_in_bbs): New.
25934 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
25935 edges not adjacent on the path to the original code.
25936
25937 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
25938
25939 PR bootstrap/65537
25940 * doc/install.texi (Building a native compiler): Document new
25941 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
25942 configuration assumes that the host supports the linker plugin.
25943
25944 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
25945
25946 PR target/65508
25947 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25948 chain for generated call.
25949
25950 2015-03-25 Richard Biener <rguenther@suse.de>
25951
25952 * passes.c (pass_manager::execute_early_local_passes): Guard
25953 execution of pass_chkp_instrumentation_passes with
25954 flag_check_pointer_bounds.
25955 (pass_chkp_instrumentation_passes::gate): Likewise.
25956
25957 2015-03-25 Martin Liska <mliska@suse.cz>
25958
25959 PR tree-optimization/65538
25960 * symbol-summary.h (function_summary::~function_summary):
25961 Relese memory for allocated summaries.
25962 (function_summary::release): New function.
25963
25964 2015-03-25 Jakub Jelinek <jakub@redhat.com>
25965
25966 PR lto/65515
25967 * lto-streamer-out.c (DFS::worklist): New struct.
25968 (DFS::worklist_vec): New data member.
25969 (DFS::next_dfs_num): Remove.
25970 (DFS::DFS): Rewritten using worklist instead of recursion,
25971 using most of code from DFS::DFS_write_tree.
25972 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25973 pass it to DFS_write_tree calls.
25974 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25975 quick initial checks push it into worklist_vec and return.
25976
25977 2015-03-25 Richard Biener <rguenther@suse.de>
25978
25979 PR middle-end/65519
25980 * genmatch.c (expr::gen_transform): Re-write to avoid
25981 using gimple_build.
25982
25983 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25984
25985 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25986
25987 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25988
25989 * config/arm/arm.opt (print_tune_info): New option.
25990 * config/arm/arm.c (arm_print_tune_info): New function.
25991 (arm_file_start): Call arm_print_tune_info.
25992 * config/arm/arm-protos.h (struct tune_params): Add comment.
25993 * doc/invoke.texi (@item -mprint-tune-info): New item.
25994 (-mtune): mention it in ARM Option Summary.
25995
25996 2015-03-25 DJ Delorie <dj@redhat.com>
25997
25998 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25999 correct clause.
26000
26001 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
26002 Martin Liska <mliska@suse.cz>
26003
26004 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26005 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26006 (sem_item::add_type): New function.
26007 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26008 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26009 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26010 (sem_function::equals_wpa): Fix typo.
26011 * ipa-icf.h (sem_item::add_type): New function.
26012 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26013 order.
26014
26015 2015-03-24 Jakub Jelinek <jakub@redhat.com>
26016
26017 PR tree-optimization/65533
26018 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26019 with swapped operands, call vect_free_slp_tree on
26020 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26021 vector.
26022
26023 2015-03-24 Richard Biener <rguenther@suse.de>
26024
26025 PR middle-end/65517
26026 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26027 for fixup if necessary.
26028
26029 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
26030
26031 * doc/extend.texi (Function Attributes): Add @cindex entries
26032 for all attributes and regularize their format. Delete text
26033 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
26034 information about "eightbit_data", "tiny_data", and "model"
26035 variable attributes to the Variable Attributes section. Fix
26036 some obvious typos and copy-editing issues.
26037 (Variable Attributes, Type Attributes): Likewise add/fix
26038 @cindex entries for all attributes.
26039
26040 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26041
26042 PR target/65523
26043 * tree-chkp.c (chkp_build_returned_bound): Ignore
26044 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26045
26046 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
26047
26048 PR target/65505
26049 * config/sh/predicates.md (simple_mem_operand,
26050 displacement_mem_operand): Add test for reg.
26051 (short_displacement_mem_operand): Test for displacement_mem_operand
26052 before invoking sh_disp_addr_displacement.
26053 * config/sh/constraints.md (Sdd, Sra): Simplify.
26054 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26055 Remove redundant displacement_mem_operand tests.
26056
26057 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
26058
26059 PR target/65296
26060 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26061 the same -mmcu=MCU more than once.
26062
26063 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26064
26065 PR bootstrap/65522
26066 * ipa-devirt.c: Remove duplicate demangle.h include.
26067
26068 PR target/65504
26069 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26070 on the pseudo.
26071 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26072 REG_POINTER on *destptr after adjusting it for prologue size.
26073
26074 PR ipa/65521
26075 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26076 ultimate_alias_target ()->order ints instead of
26077 ultimate_alias_target () pointers.
26078
26079 2015-03-23 Richard Biener <rguenther@suse.de>
26080
26081 PR tree-optimization/65518
26082 * tree-vect-stmts.c (vectorizable_load): Reject single-element
26083 interleaving cases we generate absymal code for.
26084
26085 2015-03-23 Richard Biener <rguenther@suse.de>
26086
26087 PR tree-optimization/65494
26088 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26089 matches here.
26090 (vect_analyze_slp_instance): But do that here, always and once.
26091
26092 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26093
26094 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26095 adding T or multiplying by T+1 and subracting T.
26096
26097 2015-03-22 Jeff Law <law@redhat.com>
26098
26099 PR rtl-optimization/64317
26100 * Makefile.in (OBJS): Add gcse-common.c
26101 * gcse.c: Include gcse-common.h
26102 (struct modify_pair_s): Move structure definition to gcse-common.h
26103 (compute_transp): Move function to gcse-common.c.
26104 (canon_list_insert): Similarly.
26105 (record_last_mem_set_info): Break out some code and put it into
26106 gcse-common.c. Call into the new common code.
26107 (compute_local_properties): Pass additional arguments to compute_transp.
26108 * postreload-gcse.c: Include gcse-common.h and df.h
26109 (modify_mem_list_set, blocks_with_calls): New variables.
26110 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26111 (get_bb_avail_insn): Pass in the expression index too.
26112 (alloc_mem): Allocate memory for the new bitmaps and lists.
26113 (free_mem): Free memory for the new bitmaps and lists.
26114 (insert_expr_in_table): Record a bitmap index for each entry we
26115 add to the table.
26116 (record_last_mem_set_info): Call into common code in gcse-common.c.
26117 (get_bb_avail_insn): If no available insn was found in the requested
26118 BB. If BB has a single predecessor, see if the expression is
26119 transparent in BB and available in that single predecessor.
26120 (compute_expr_transp): New wrapper for compute_transp.
26121 (eliminate_partially_redundant_load): Pass expression's bitmap_index
26122 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
26123 (gcse_after_reload_main): If there are elements in the hash table,
26124 then compute transparency for all the elements in the hash table.
26125 * gcse-common.h: New file.
26126 * gcse-common.c: New file.
26127
26128 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
26129
26130 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26131 as an adjective.
26132 (System Headers): Likewise.
26133 (Ifdef): Likewise.
26134 (Traditional macros): Likewise.
26135 (Invocation): Likewise.
26136 (Option Index): Likewise.
26137 * doc/cppopts.texi (-M): Likewise.
26138 (-finput-charset): Likewise.
26139 (--help): Likewise.
26140 * doc.invoke.texi (AVR Options): Likewise.
26141 (V850 Options): Likewise.
26142
26143 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
26144
26145 PR ipa/65475
26146 * ipa-devirt.c: Include demangle.h
26147 (odr_type_d): Add field rtti_broken.
26148 (odr_subtypes_equivalent_p): Do not require name to match.
26149 (compare_virtual_tables): Fix typo; if type already has ODR violation,
26150 bypass the tests; be ready for function referneces in vtables that are
26151 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26152 (warn_odr): Give up for nameless types.
26153 (warn_types_mismatch): Report mismatch in mangled names;
26154 report mismatch in anonymous namespaces; look into component types to
26155 give useful error; report when mismatch is dragged in from other ODR
26156 type.
26157 (odr_types_equivalent_p): Match types for being polymorphic; avoid
26158 duplicated diagnostics.
26159 (add_type_duplicate): Reorder checks so more informative ones come
26160 first; fix typo; do not output "the extra base is defined here" when
26161 we did not warn.
26162 (BINFO_N_BASE_BINFOS): Relax sanity check.
26163
26164 2015-03-22 Martin Liska <mliska@suse.cz>
26165 Jakub Jelinek <jakub@redhat.com>
26166
26167 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26168 masks that can potentially include a builtin.
26169 (ix86_add_new_builtins): Introduce fast filter for isa values
26170 that cannot trigger builtin inclusion.
26171
26172 2015-03-22 Martin Liska <mliska@suse.cz>
26173
26174 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26175 (sem_item::update_hash_by_local_refs): Likewise.
26176 (sem_variable::get_hash): Empty line is fixed.
26177 (sem_item_optimizer::execute): Include adding of hash references.
26178 (sem_item_optimizer::update_hash_by_addr_refs): New function.
26179 (sem_item_optimizer::build_hash_based_classes): Use local hash.
26180 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26181 (sem_item::update_hash_by_local_refs): Likewise.
26182
26183 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26184
26185 PR ipa/65502
26186 * ipa-comdats.c (enqueue_references): Walk through thunks.
26187 (ipa_comdats): Likewise.
26188 (set_comdat_group_1): New function.
26189
26190 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26191
26192 PR ipa/65475
26193 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26194 non-polymorphic
26195
26196 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
26197 Gerald Pfeifer <gerald@pfeifer.com>
26198
26199 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26200
26201 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
26202 Sandra Loosemore <sandra@codesourcery.com>
26203
26204 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26205 function parameter declaration.
26206 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26207 Update arguments to nios2_adjust_call_address().
26208 (sibcall_internal): Rename from *sibcall.
26209 (sibcall_value_internal): Rename from *sibcall_value.
26210 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26211 (nios2_large_got_address): Add target temp reg parameter.
26212 (nios2_got_address): Adjust call to nios2_large_got_address, add
26213 force_reg around it.
26214 (nios2_load_pic_address): Add target temp reg parameter, replace call
26215 to nios2_got_address with corresponding code.
26216 (nios2_legitimize_constant_address): Update call to
26217 nios2_load_pic_address.
26218 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26219 to use temp reg for PIC loading purposes.
26220 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26221 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26222 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26223
26224 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26225
26226 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26227 usage of "the @option{...}".
26228 (-Wopenmp-simd): Likewise.
26229 (-fsanitize-recover): Likewise.
26230 (-fsanitize-undefined-trap-on-error): Likewise.
26231 (-flto): Likewise.
26232 (tracer-dynamic-coverage-feedback): Likewise.
26233 (reorder-block-duplicate-feedback): Likewise.
26234 (loop-unroll-jam-size): Likewise.
26235 (-B): Likewise.
26236 (-I-): Likewise.
26237 (-mabs=legacy): Likewise.
26238 (-mupper-regs-df): Likewise.
26239 (-mupper-regs-sf): Likewise.
26240 (-mpointers-to-nested-functions): Likewise.
26241
26242 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26243
26244 * doc/extend.texi (Cilk Plus Builtins): Add markup.
26245
26246 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26247
26248 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26249 additional index entries and cross-references.
26250 (-fchkp-check-incomplete-type): Likewise.
26251 (-fchkp-first-field-has-own-bounds): Likewise.
26252 (-fchkp-narrow-to-innermost-array): Likewise.
26253 (-fchkp-use-fast-string-functions): Likewise.
26254 (-fchkp-use-nochk-string-functions): Likewise.
26255 (-fchkp-use-static-const-bounds): Likewise.
26256 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26257 (-fchkp-instrument-marked-only): Likewise.
26258 (-fchkp-use-wrappers): Likewise.
26259 (-static-libmpx): Likewise.
26260 (-static-libmpxwrappers): Likewise.
26261 * doc/extend.texi (bnd_legacy): Likewise.
26262 (bnd_instrument): Likewise.
26263 (bnd_variable_size): Likewise.
26264 (Pointer Bounds Checker builtins): Likewise.
26265
26266 2015-03-21 Tom de Vries <tom@codesourcery.com>
26267
26268 PR tree-optimization/65458
26269 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26270 * cgraph.h (cgraph_node): Add parallelized_function field.
26271 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26272 (input_overwrite_node): Read parallelized_function field.
26273 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26274 parallelized_function on cgraph_node for child_fn.
26275 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26276 Remove include of gt-tree-parloops.h.
26277 (parallelized_functions): Remove static variable.
26278 (parallelized_function_p): Rewrite using parallelized_function field of
26279 cgraph_node.
26280 (create_loop_fn): Remove adding to parallelized_functions.
26281 * Makefile.in (GTFILES): Remove tree-parloops.c
26282
26283 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
26284
26285 PR rtl-optimization/64366
26286 * lra.c (lra_update_insn_regno_info): Consider regs in
26287 CALL_INSN_FUNCTION_USAGE memory.
26288
26289 2015-03-20 Richard Biener <rguenther@suse.de>
26290
26291 PR middle-end/64715
26292 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26293 for type comparison and gcc_checking_assert.
26294 (chrec_fold_plus_poly_poly): Likewise.
26295 (chrec_fold_multiply_poly_poly): Likewise.
26296 (chrec_convert_1): Likewise.
26297 * gimplify.c (gimplify_expr): Remove premature folding of
26298 &X + CST to &MEM[&X, CST].
26299
26300 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26301
26302 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26303 already is final.
26304 (ipa_inline): Recompute inline_failed codes.
26305 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26306 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26307 CIF_FINAL_ERROR.
26308
26309 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
26310
26311 PR rtl-optimization/60851
26312 * recog.c (constrain_operands): Accept a pseudo register before reload
26313 for LRA enabled targets.
26314
26315 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
26316
26317 PR target/65240
26318 * config/rs6000/predicates.md (easy_fp_constant): Remove special
26319 -ffast-math handling that kept non-0 constants live in the RTL
26320 until reload. Remove logic testing the number of instructions it
26321 took to create a constant in a GPR that was never used, due to a
26322 test for soft-float earlier.
26323 (memory_fp_constant): Delete, no longer used.
26324
26325 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26326 alternatives for loading non-0 constants into GPRs for hard
26327 floating point that is no longer needed due to changes in
26328 easy_fp_constant. Add support for loading 0.0 into GPRs.
26329 (mov<mode>_hardfloat32): Likewise.
26330 (mov<mode>_hardfloat64): Likewise.
26331 (mov<mode>_64bit_dm): Likewise.
26332 (movtd_64bit_nodm): Likewise.
26333 (pre-reload move FP constant define_split): Delete define_split,
26334 since it is no longer used.
26335 (extenddftf2_internal): Remove GHF constraints that are not valid
26336 for extenddftf2.
26337
26338 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
26339
26340 PR rtl-optimization/63491
26341 * lra-constraints.c (check_and_process_move): Use src instead of
26342 sreg. Remove some dead code.
26343
26344 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
26345
26346 PR ipa/65380
26347 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26348 (sem_variable::merge): Likewise.
26349
26350 2015-03-19 Martin Liska <mliska@suse.cz>
26351
26352 PR ipa/65465
26353 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26354 all fields of cgraph_thunk_info.
26355
26356 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
26357
26358 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26359 clone instrumented thunks.
26360
26361 2015-03-19 Richard Biener <rguenther@suse.de>
26362
26363 Revert
26364 2015-03-10 Richard Biener <rguenther@suse.de>
26365
26366 PR middle-end/63155
26367 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26368 * tree-ssa-coalesce.c: Include timevar.h.
26369 (attempt_coalesce): Handle graph being NULL.
26370 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26371 Split out abnormal coalescing to ...
26372 (perform_abnormal_coalescing): ... this function.
26373 (coalesce_ssa_name): Perform abnormal coalescing without computing
26374 live/conflict.
26375 (verify_ssa_coalescing_worker): New function.
26376 (verify_ssa_coalescing): Likewise.
26377
26378 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26379 Jakub Jelinek <jakub@redhat.com>
26380
26381 PR sanitizer/65400
26382 * tsan.c (instrument_gimple): Clear tail call flag on
26383 calls.
26384
26385 2015-03-19 Jakub Jelinek <jakub@redhat.com>
26386
26387 PR sanitizer/65400
26388 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26389 call in the return bb.
26390 (find_split_points): Add RETURN_BB argument, don't call
26391 find_return_bb.
26392 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
26393 if true append TSAN_FUNC_EXIT internal call after the call to
26394 the split off function.
26395 (execute_split_functions): Call find_return_bb here.
26396 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26397 Adjust find_split_points and split_function calls.
26398
26399 2015-03-18 DJ Delorie <dj@redhat.com>
26400
26401 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26402 (iorqi3_virt): Likewise.
26403
26404 2015-03-18 Tom de Vries <tom@codesourcery.com>
26405
26406 * tree-parloops.c (parallelize_loops): Make static.
26407 * tree-parloops.h (parallelize_loops): Remove extern declaration.
26408
26409 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
26410
26411 PR middle-end/64491
26412 Revert:
26413 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
26414
26415 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26416 condition would be removed due to undefined behaviour.
26417
26418 2015-03-18 Martin Liska <mliska@suse.cz>
26419
26420 PR ipa/65432
26421 * cgraph.c (cgraph_node::get_create): Remove unnecessary
26422 xstrdup_for_dump wrapper.
26423 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26424 sem_item::name.
26425 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26426 with xstrdup_for_dump.
26427 (sem_variable::equals): Likewise.
26428 (sem_item_optimizer::read_section): Use symtab_node::name instead of
26429 sem_item::name.
26430 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26431 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26432 symtab_node::asm_name with xstrdup_for_dump.
26433 (congruence_class::dump): Use symtab_node::name instead of
26434 sem_item::name.
26435 * ipa-icf.h (symtab_node::name): Remove.
26436 (symtab_node::asm_name): Likewise.
26437
26438 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26439
26440 PR tree-optimization/65450
26441 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26442 function.
26443 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26444 it instead of duplicate_ssa_name_ptr_info.
26445
26446 PR target/65222
26447 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26448
26449 2015-03-18 Richard Biener <rguenther@suse.de>
26450
26451 * tree-data-ref.h (struct access_matrix): Remove.
26452 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26453 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26454 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26455 (am_vector_index_for_loop): Likewise.
26456 (struct data_reference): Remove access_matrix member.
26457 (DR_ACCESS_MATRIX): Remove.
26458 (lambda_vector_new): Add comment.
26459 (lambda_matrix_new): Use XOBNEWVEC.
26460
26461 2015-03-18 Richard Biener <rguenther@suse.de>
26462
26463 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26464 (pass_ch::execute): Cleanup the CFG only if we did sth.
26465 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26466
26467 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26468
26469 * expmed.c (synth_mult): Use std::swap instead of manually
26470 swapping algorithms.
26471
26472 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26473
26474 PR target/65078
26475 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26476
26477 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
26478
26479 PR target/65296
26480 * config/avr/avr.opt (-nodevicelib): New option.
26481 * doc/invoke.texi (AVR Options): Document it.
26482 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26483 libgcc.a, libc.a, libm.a.
26484 * config/avr/specs.h: Same.
26485 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26486 which don't (directly) depend on the device. Print more help.
26487 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26488 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26489 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26490 case of an error.
26491 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26492 for specs file name.
26493 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26494 * config/avr/avr-mcus.def: Adjust initializers and comments.
26495
26496 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
26497
26498 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26499 DECL_ONE_ONLY to check if decl is one only.
26500 * ipa-split.c (consider_split): Limit splitt of one only functions.
26501
26502 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26503
26504 PR tree-optimization/65427
26505 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26506 functions.
26507 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26508
26509 2015-03-16 Marek Polacek <polacek@redhat.com>
26510
26511 * cgraph.h (add_new_static_var): Remove declaration.
26512 * varpool.c (add_new_static_var): Remove function.
26513
26514 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26515
26516 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26517 instead of vec<tree> * with vec_alloc and release for args.
26518 Adjust all users.
26519
26520 PR middle-end/65431
26521 * omp-low.c (delete_omp_context): Only splay_tree_delete
26522 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26523 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
26524
26525 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
26526
26527 PR sanitizer/64820
26528 * cfgexpand.c (align_base): New function.
26529 (alloc_stack_frame_space): Call it.
26530 (expand_stack_vars): Align prev_frame to be sure
26531 data->asan_vec elements aligned properly.
26532
26533 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
26534
26535 PR middle-end/65409
26536 * expr.c (store_field): Do not do a direct block copy if the source is
26537 a PARALLEL with BLKmode.
26538
26539 2015-03-16 Tom de Vries <tom@codesourcery.com>
26540
26541 PR middle-end/65414
26542 Revert:
26543 2015-03-12 Tom de Vries <tom@codesourcery.com>
26544
26545 PR rtl-optimization/64895
26546 * lra-lives.c (check_pseudos_live_through_calls): Use
26547 actual_call_used_reg_set instead of call_used_reg_set, if available.
26548
26549 2015-03-16 Alan Modra <amodra@gmail.com>
26550
26551 PR target/63150
26552 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26553 Modify Z->r bswapdi splitter to use dest in place of scratch.
26554 In r->Z and Z->r bswapdi splitter rename word_high, word_low
26555 to word1, word2 and rearrange logic to suit.
26556 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26557 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
26558 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26559 Add one '?' on r->r. Modify Z->r splitter to avoid need for
26560 early clobber.
26561
26562 2015-03-14 Jakub Jelinek <jakub@redhat.com>
26563
26564 PR tree-optimization/65369
26565 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26566 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26567 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26568
26569 PR tree-optimization/65418
26570 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26571 are casts in the first PLUS_EXPR operand, ensure tbias and
26572 *totallowp are in the inner type.
26573
26574 PR rtl-optimization/65401
26575 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26576 argument. If true, adjust_address_nv of x with big-endian
26577 correction for the mode widening to GET_MODE (y).
26578 (make_field_assignment): Don't do MEM mode widening here.
26579 Use MEM_P instead of GET_CODE == MEM.
26580
26581 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
26582
26583 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26584 the external decls.
26585
26586 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26587
26588 PR target/64600
26589 * config/arm/arm.c (arm_gen_constant, AND case): Use
26590 ARM_SIGN_EXTEND when constructing AND mask.
26591
26592 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26593
26594 * graph.c (print_graph_cfg): Make function names visible and append
26595 parenthesis to it. Also make groups of basic blocks belonging to the
26596 same function visible.
26597
26598 2015-03-12 Richard Biener <rguenther@suse.de>
26599
26600 PR middle-end/44563
26601 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26602 to avoid quadratic behavior with inline expansion splitting blocks.
26603 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26604 with the successor if the predecessor will be merged with it.
26605 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26606 entry block with its successor.
26607
26608 2015-03-13 Richard Biener <rguenther@suse.de>
26609
26610 PR middle-end/44563
26611 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26612 (cleanup_tree_cfg_1): Do not call it.
26613 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26614 (fixup_noreturn_call): Mark the stmt as control altering.
26615 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26616 here.
26617 (pass_data_fixup_cfg): Produce a dump file.
26618 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26619 (need_noreturn_fixup): New global.
26620 (pass_dominator::execute): Fixup queued noreturn calls.
26621 (optimize_stmt): Queue calls that became noreturn for fixup.
26622 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26623 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26624 (el_to_fixup): New global.
26625 (eliminate_dom_walker::before_dom_childre): Queue calls that
26626 became noreturn for fixup.
26627 (eliminate): Fixup queued noreturn calls.
26628 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26629 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26630 (substitute_and_fold_dom_walker::before_dom_children): Queue
26631 alls that became noreturn for fixup.
26632 (substitute_and_fold): Fixup queued noreturn calls.
26633
26634 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
26635
26636 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26637 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26638 are building; for methods check ODR type of class they belong to if
26639 they may lead to a polymorphic call.
26640 (sem_function::compare_polymorphic_p): Be bit smarter about testing
26641 when function may lead to a polymorphic call.
26642 (sem_function::compare_type_list): Remove.
26643 (sem_variable::equals): Update use of compatible_types_p.
26644 (sem_variable::parse_tree_refs): Remove.
26645 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26646 cdtor.
26647 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26648 matching here.
26649 (func_checker::compatible_polymorphic_types_p): Break out from ...
26650 (unc_checker::compatible_types_p): ... here.
26651 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26652 Declare.
26653 (unc_checker::compatible_types_p): Update.
26654 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26655 Remove.
26656
26657 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26658
26659 PR rtl-optimization/65235
26660 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26661 When first element of vec_concat is const_int, calculate its size
26662 using second element.
26663
26664 2015-03-12 Richard Biener <rguenther@suse.de>
26665
26666 PR middle-end/65270
26667 * fold-const.c (operand_equal_p): Fix ordering of resetting
26668 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26669
26670 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26671
26672 * config/s390/s390.c (s390_reorg): Move code to output nops after label
26673 to s390_reorg ().
26674 (s390_asm_output_function_label): Likewise.
26675 * config/s390/s390.c (s390_asm_output_function_label):
26676 Fix function label alignment with -mhtopatch.
26677 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26678 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26679 ("nop_2_byte"): New define_insn.
26680 ("nop_4_byte"): Likewise.
26681 ("nop_6_byte"): Likewise.
26682 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26683 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26684
26685 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26686
26687 PR target/65103
26688 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26689 register.
26690
26691 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26692
26693 PR target/65044
26694 * toplev.c (process_options): Restrict Pointer Bounds Checker
26695 usage with Address Sanitizer.
26696
26697 2015-03-12 Richard Biener <rguenther@suse.de>
26698
26699 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26700 to split on.
26701 * omp-low.c (expand_omp_taskreg): Split block before removing
26702 the stmt.
26703 (expand_omp_target): Likewise.
26704 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26705 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26706 stmt to split_block.
26707
26708 2015-03-12 Tom de Vries <tom@codesourcery.com>
26709
26710 PR rtl-optimization/64895
26711 * lra-lives.c (check_pseudos_live_through_calls): Use
26712 actual_call_used_reg_set instead of call_used_reg_set, if available.
26713
26714 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26715
26716 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26717 (cgraph_node::remove): Likewise.
26718 (cgraph_node::get_untransformed_body): Likewise.
26719 * varpool.c (varpool_node::remove): Likewise.
26720 (varpool_node::get_constructor): Add sanity check.
26721
26722 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
26723
26724 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26725 old GCC versions.
26726 (-fabi-compat-version): Likewise.
26727 (-ffriend-injection): Likewise.
26728 (-Wdeclaration-after-statement): Likewise.
26729 (-fomit-frame-pointer): Likewise.
26730 (-ftree-coalesce-inlined-vars): Likewise.
26731 (-fvisibility=): Likewise.
26732 * doc/extend.texi (Typeof): Likewise.
26733 (Zero Length): Likewise.
26734 (Escaped Newlines): Likewise.
26735 (Compound Literals): Likewise.
26736 (Function Attributes): Likewise.
26737 (Label Attributes): Likewise.
26738 (Type Attributes): Likewise.
26739 (Function Names): Likewise.
26740 (Other Builtins): Likewise.
26741 (Function Specific Option Pragmas): Likewise.
26742 (C++ Interface): Likewise.
26743
26744 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
26745
26746 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26747
26748 2015-03-11 Marek Polacek <polacek@redhat.com>
26749
26750 PR tree-optimization/65388
26751 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26752
26753 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26754
26755 PR target/65296
26756 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26757 * configure: Regenerate.
26758 * config.in: Regenerate.
26759 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26760 [-mn-flash]: Document it.
26761 [__AVR_ARCH__]: Document avrtiny.
26762
26763 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26764 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26765 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26766
26767 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26768
26769 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26770
26771 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26772
26773 PR target/65242
26774 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26775 allow reloads of PLUS in floating point/VSX registers.
26776
26777 2015-03-11 Junmo Park <junmoz.park@samsung.com>
26778
26779 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26780 crypto_sha256_fast.
26781 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26782
26783 2015-03-11 Richard Biener <rguenther@suse.de>
26784
26785 PR tree-optimization/65310
26786 * tree-sra.c (build_ref_for_offset): Also preserve larger
26787 alignment.
26788
26789 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
26790
26791 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26792
26793 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26794
26795 PR target/65368
26796 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26797 new define_expand.
26798 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26799
26800 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26801
26802 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26803 (sem_function::equals_wpa): ... here.
26804
26805 2015-03-10 Marek Polacek <polacek@redhat.com>
26806 Jakub Jelinek <jakub@redhat.com>
26807
26808 PR sanitizer/65367
26809 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26810 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
26811 separately.
26812
26813 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26814
26815 PR target/65286
26816 * config/rs6000/t-linux: For powerpc64* target set
26817 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26818
26819 2015-03-10 Richard Biener <rguenther@suse.de>
26820
26821 PR middle-end/44563
26822 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26823 for redirect_all_calls.
26824
26825 2015-03-10 Marek Polacek <polacek@redhat.com>
26826
26827 * gdbinit.in (pcfun): Define and document.
26828
26829 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
26830
26831 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26832 of libgomp-plugin.h.
26833 (find_target_compiler): Support a case when the path to gcc is
26834 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26835 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26836 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26837 libgomp-plugin.h.
26838 (main): Use GCC_INSTALL_NAME as target_driver_name.
26839 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26840 define.
26841 (mkoffload.o): Remove obsolete include path and defines.
26842 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26843
26844 2015-03-10 Richard Biener <rguenther@suse.de>
26845
26846 PR middle-end/63155
26847 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26848 * tree-ssa-coalesce.c: Include timevar.h.
26849 (attempt_coalesce): Handle graph being NULL.
26850 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26851 Split out abnormal coalescing to ...
26852 (perform_abnormal_coalescing): ... this function.
26853 (coalesce_ssa_name): Perform abnormal coalescing without computing
26854 live/conflict.
26855 (verify_ssa_coalescing_worker): New function.
26856 (verify_ssa_coalescing): Likewise.
26857
26858 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26859
26860 PR target/65296
26861 * config.gcc (extra_options) [avr]: Remove.
26862 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26863 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26864 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26865
26866 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26867 (-mmcu=): Add Var and MissingArgError properties.
26868 (-march=): Remove.
26869 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26870 * config/avr/t-multilib: Regenerate.
26871 * config/avr/specs.h: New file.
26872 * config/avr/driver-avr.c: New file.
26873 * config/avr/genopt.sh: Remove file.
26874 * config/avr/avr-tables.opt: Remove file.
26875 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26876 * config/avr/avr-c.c: Same.
26877 * avr-arch.h: Same.
26878 (avr_current_device): Remove proto.
26879 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26880 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26881 (EXTRA_SPEC_FUNCTIONS): Define.
26882 (avr_devicespecs_file): New specs function proto.
26883 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26884 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26885 (avr_current_device): Remove definition and usage.
26886 (avr_set_core_architecture): New static function.
26887 (avr_option_override): Use it.
26888 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26889 (mcu_name): New static array.
26890 (comparator, avr_archs_str, avr_mcus_str): New static functions.
26891 (avr_inform_devices, avr_inform_core_architectures): New functions.
26892 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26893 (avrlibc.h) [WITH_AVRLIBC]: Include.
26894 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26895 (print_mcu): Rewrite from scratch.
26896 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26897 Forward to avr-specific specs defined in device-specs file.
26898 * config/avr/t-avr (driver-avr.o): New rule.
26899 (avr-devices.o): Depend on avr-arch.h.
26900 (avr-mcus): No more depend on avr-tables.opt.
26901 (avr-tables.opt): Remove rule.
26902 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26903
26904 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26905
26906 * c-family/c.opt (fchkp-use-wrappers): New.
26907 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26908 (chkp_wrap_function): New.
26909 (chkp_build_instrumented_fndecl): Support wrapped
26910 functions.
26911 * doc/invoke.texi (-fcheck-pointer-bounds): New.
26912 (-fchkp-check-incomplete-type): New.
26913 (-fchkp-first-field-has-own-bounds): New.
26914 (-fchkp-narrow-bounds): New.
26915 (-fchkp-narrow-to-innermost-array): New.
26916 (-fchkp-optimize): New.
26917 (-fchkp-use-fast-string-functions): New.
26918 (-fchkp-use-nochk-string-functions): New.
26919 (-fchkp-use-static-bounds): New.
26920 (-fchkp-use-static-const-bounds): New.
26921 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26922 (-fchkp-check-read): New.
26923 (-fchkp-check-write): New.
26924 (-fchkp-store-bounds): New.
26925 (-fchkp-instrument-calls): New.
26926 (-fchkp-instrument-marked-only): New.
26927 (-fchkp-use-wrappers): New.
26928 (-static-libmpx): New.
26929 (-static-libmpxwrappers): New.
26930
26931 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26932
26933 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26934 (CHKP_SPEC): Add wrappers library.
26935 * c-family/c.opt (static-libmpxwrappers): New.
26936
26937 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26938
26939 * config/i386/linux-common.h (LIBMPX_LIBS): New.
26940 (LIBMPX_SPEC): New.
26941 (CHKP_SPEC): New.
26942 * gcc.c (CHKP_SPEC): New.
26943 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26944 * c-family/c.opt (static-libmpx): New.
26945
26946 2015-03-10 Richard Biener <rguenther@suse.de>
26947
26948 PR middle-end/44563
26949 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26950 for compare_type.
26951 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26952 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26953 (cgraph_add_edge_to_call_site_hash): Likewise.
26954 (cgraph_node::get_edge): Likewise.
26955 (cgraph_edge::set_call_stmt): Likewise.
26956 (cgraph_edge::remove_caller): Likewise.
26957
26958 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
26959
26960 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26961 (callee_saved_gpr_regs_size): ... this.
26962 (callee_saved_regs_first_regno): Rename to ...
26963 (callee_saved_first_gpr_regno): ... this.
26964 (callee_saved_regs_last_regno) Rename to ...
26965 (callee_saved_last_gpr_regno): ... this.
26966 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26967 variables.
26968 (nds32_initial_elimination_offset): Likewise.
26969 (nds32_expand_prologue): Likewise.
26970 (nds32_expand_epilogue): Likewise.
26971 (nds32_expand_prologue_v3push): Likewise.
26972 (nds32_expand_epilogue_v3pop): Likewise.
26973 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26974 Adjust renamed variables.
26975 (nds32_output_stack_pop): Likewise.
26976
26977 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
26978
26979 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26980 code in comment.
26981
26982 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26983
26984 PR rtl-optimization/65321
26985 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26986 than shift mode.
26987 * var-tracking.c (use_narrower_mode): Likewise.
26988
26989 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26990
26991 PR tree-optimization/65355
26992 * varasm.c (notice_global_symbol): Do not produce RTL.
26993 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26994 anchor.
26995 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26996 check for section anchors.
26997
26998 2015-03-10 Alan Modra <amodra@gmail.com>
26999
27000 PR target/65286
27001 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27002 to be single-arch by default. Set cpu_is_64bit for powerpc64
27003 given --with-cpu=native.
27004 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27005 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27006 and powerpc64le.
27007 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27008 rs6000_isa_flags rather than TARGET_64BIT.
27009
27010 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
27011 Kaz Kojima <kkojima@gcc.gnu.org>
27012
27013 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27014
27015 2015-03-09 Jakub Jelinek <jakub@redhat.com>
27016
27017 PR lto/65361
27018 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27019 on a TREE_BINFO, instead use BINFO_TYPE.
27020
27021 2015-03-09 Richard Biener <rguenther@suse.de>
27022
27023 PR middle-end/65270
27024 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27025 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27026 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
27027 of that. When comparing dereferences compare alignment.
27028 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27029
27030 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27031
27032 * ipa-inline-analysis.c (check_callers): Check
27033 node->can_remove_if_no_direct_calls_and_refs_p.
27034 (growth_likely_positive): Reorganize to call
27035 can_remove_if_no_direct_calls_p later.
27036 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27037 will_be_removed_from_program_if_no_direct_calls_p): Add
27038 will_inline parameter.
27039 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27040 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27041 Handle inliner case correctly.
27042
27043 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27044
27045 PR tree-optimization/63743
27046 * cfgexpand.c (reorder_operands): Also reorder if only second operand
27047 had its definition forwarded by TER.
27048
27049 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27050
27051 PR lto/65316
27052 * ipa-utils.h (types_odr_comparable): Add strict argument.
27053 * ipa-devirt.c: Fix whitespace;
27054 (odr_hasher): Remove.
27055 (odr_name_hasher, odr_vtable_hasher): New hashers.
27056 (can_be_name_hashed_p): New predicate.
27057 (hash_type_name): remove.
27058 (hash_odr_name): New.
27059 (odr_name_hasher::hash): new.
27060 (can_be_vtable_hashed_p): New.
27061 (hash_odr_vtable): New.
27062 (odr_vtable_hasher::hash): New.
27063 (types_same_for_odr): Add strict parameter.
27064 (types_odr_comparable): Likewise.
27065 (odr_name_hasher::equal): New.
27066 (odr_vtable_hasher::equal): New.
27067 (odr_name_hasher::remove): New.
27068 (odr_hash_type): Change to hash_table<odr_name_hasher>.
27069 (odr_vtable_hash_type): New.
27070 (odr_vtable_hash): New.
27071 (odr_subtypes_equivalent_p): Do strict comparsion.
27072 (add_type_duplicate): Merge type names; cleanup; avoid type
27073 duplicates.
27074 (register_odr_type): Initialize vtable hash.
27075 (build_type_inheritance_graph): Likewise
27076 (get_odr_type): Reorg to use two hashes.
27077 (dump_possible_polymorphic_call_targets): Move sanity check after debug
27078 output.
27079 (ipa_devirt): Dump type_inheritance_graph.
27080 (types_same_for_odr): Add strict mode.
27081
27082 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27083
27084 PR ipa/65334
27085 * cgraph.h (symtab_node): Add definition_alignment,
27086 can_increase_alignment_p and increase_alignment.
27087 * symtab.c (symtab_node::can_increase_alignment_p,
27088 increase_alignment_1, symtab_node::increase_alignment,
27089 symtab_node::definition_alignment): New.
27090 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27091 can_increase_alignment_p.
27092 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27093 * tree-vect-stmts.c (ensure_base_align): Likewise.
27094 * varasm.c (function_section_1): Use definition_alignment.
27095 (assemble_start_function): Likewise.
27096 (emit_local): likewise.
27097 (build_constant_desc): Likewsie.
27098 (output_constant_def_contents): Likewise.
27099 (place_block_symbol): Likewise.
27100 (output_object_block): Likewise.
27101
27102 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27103
27104 PR ipa/65316
27105 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27106 when outputting debug.
27107
27108 2015-03-07 Marek Polacek <polacek@redhat.com>
27109 Martin Uecker <uecker@eecs.berkeley.edu>
27110
27111 PR sanitizer/65280
27112 * doc/invoke.texi: Update description of -fsanitize=bounds.
27113
27114 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
27115
27116 * tree-ssa-phiopt.c (neg_replacement): Remove.
27117 (tree_ssa_phiopt_worker): Remove negate optimization.
27118
27119 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27120
27121 PR ipa/65302
27122 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27123
27124 2015-03-06 Richard Biener <rguenther@suse.de>
27125
27126 PR middle-end/64928
27127 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27128 and liveout_obstack members.
27129 (calculate_live_on_exit): Remove.
27130 (calculate_live_ranges): Change declaration.
27131 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27132 (new_tree_live_info): Adjust.
27133 (calculate_live_ranges): Delete livein when not wanted.
27134 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27135 Deal with partly deleted live info.
27136 (loe_visit_block): Remove temporary bitmap by using
27137 bitmap_ior_and_compl_into.
27138 (live_worklist): Adjust accordingly.
27139 (calculate_live_on_exit): Make static.
27140 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27141 we do not need livein.
27142
27143 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
27144
27145 * real.c (real_from_string): Fix typo in assertion.
27146
27147 2015-03-06 Alex Velenko <alex.velenko@arm.com>
27148
27149 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27150 the patch.
27151
27152 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27153
27154 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27155
27156 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
27157
27158 PR target/64342
27159 * lra-assigns.c (find_hard_regno_for): Rename to
27160 find_hard_regno_for_1. Add a new parameter.
27161 (find_hard_regno_for): New function using find_hard_regno_for_1.
27162
27163 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27164
27165 PR rtl-optimization/65067
27166 * expmed.c (store_bit_field, extract_bit_field): Reworked the
27167 strict volatile bitfield handling.
27168
27169 2015-03-05 Martin Liska <mliska@suse.cz>
27170
27171 PR ipa/65318
27172 * ipa-icf.c (sem_variable::equals): Compare variables types.
27173
27174 2015-03-05 Richard Henderson <rth@redhat.com>
27175
27176 PR target/65121
27177 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27178 correctly check weak symbol binding.
27179
27180 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
27181
27182 PR middle-end/65315
27183 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27184 needed alignment.
27185
27186 2015-03-05 Martin Liska <mliska@suse.cz>
27187
27188 * ipa-inline.c (inline_small_functions): Set default value to
27189 prevent warning during bootstrap.
27190 * tree.h: Add pragma guard that ignores false positives during
27191 bootstrap.
27192
27193 2015-03-05 Richard Biener <rguenther@suse.de>
27194
27195 PR tree-optimization/65310
27196 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27197 Properly preserve alignment of the base of the access.
27198
27199 2015-03-05 Richard Biener <rguenther@suse.de>
27200
27201 PR ipa/65270
27202 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27203 Compare dependence info.
27204
27205 2015-03-05 Richard Biener <rguenther@suse.de>
27206
27207 PR middle-end/65233
27208 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27209 tree-into-ssa.h.
27210 (walk_ssa_copies): Revert last chage. Instead do not walk
27211 SSA names registered for SSA update.
27212
27213 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27214
27215 PR ipa/65270
27216 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27217 vtable references for their containing type.
27218 (sem_function::equals_wpa): Compare TYPE_RESTRICT
27219 and type attributes.
27220
27221 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
27222
27223 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27224 before negating it.
27225 * stor-layout.c (finalize_record_size): Revert latest change.
27226
27227 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
27228
27229 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27230
27231 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27232
27233 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27234 for correct comdat handling.
27235 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27236 Likewise.
27237 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27238 (used_from_object_file_p_worker): Remove.
27239 (cgraph_node::only_called_directly_or_alised): Add
27240 used_from_object_file_p.
27241 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27242 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27243 can_remove_if_no_direct_calls_and_refs_p.
27244
27245 2015-03-04 Nick Clifton <nickc@redhat.com>
27246
27247 * config/rl78/rl78.h (enum reg_class): Remove real registers from
27248 General register class.
27249 * config/rl78/rl78-real.md: Replace general register constraints
27250 with real+virtual register constraints.
27251
27252 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27253
27254 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27255 from checking for -mhtm option.
27256
27257 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27258
27259 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27260 (struct ipa_sra_check_caller_data): Add has_thunk field.
27261 (ipa_sra_check_caller): Check for thunk.
27262 (ipa_sra_preliminary_function_checks): Give up on function with
27263 thunks.
27264 (ipa_early_sra): Use call_for_symbol_and_aliases.
27265
27266 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27267
27268 PR target/65249
27269 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27270 called for __stack_chk_guard symbol.
27271
27272 2015-03-03 DJ Delorie <dj@redhat.com>
27273
27274 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27275 inc/dec.
27276 (*addhi3_real): Likewise.
27277 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27278 pattern to match incrementing memory.
27279 * config/rl78/predicates.md (rl78_1_2_operand): New.
27280 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27281 it's the same and only mem.
27282 (rl78_alloc_physical_registers_op2): If there's effectively only
27283 one MEM, transcode it into HL.
27284 (rl78_far_p): Reject addresses that aren't legitimate.
27285
27286 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27287
27288 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27289 negating it.
27290
27291 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27292
27293 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27294
27295 Implement call0 ABI for xtensa
27296 * config/xtensa/constraints.md ("a" constraint): Include stack
27297 pointer in case of call0 ABI.
27298 ("q" constraint): Make empty in case of call0 ABI.
27299 ("D" constraint): Include stack pointer in case of call0 ABI.
27300 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27301 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27302 prototypes.
27303 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27304 variable.
27305 (xtensa_regno_to_class): Make it a local variable in the
27306 function xtensa_regno_to_class.
27307 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27308 macro, function prototype and implementation.
27309 (reg_nonleaf_alloc_order): Make it a local variable in the
27310 function order_regs_for_local_alloc.
27311 (xtensa_conditional_register_usage): New function.
27312 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27313 (xtensa_valid_move): Allow direct moves to stack pointer
27314 register in call0 ABI.
27315 (xtensa_setup_frame_addresses): Only spill register windows in
27316 windowed ABI.
27317 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27318 call0 ABI respectively.
27319 (xtensa_function_arg_1): Only mark a7 register for copying in
27320 windowed ABI.
27321 (xtensa_call_save_reg): New function.
27322 (compute_frame_size): Add space for callee saved register
27323 storage to the frame size in call0 ABI.
27324 (xtensa_expand_prologue): Generate code to set up stack frame
27325 and save callee-saved registers in call0 ABI.
27326 (xtensa_expand_epilogue): New function.
27327 (xtensa_set_return_address): New function.
27328 (xtensa_return_addr): Calculate return address in call0 ABI.
27329 (xtensa_builtin_saveregs): Only mark a7 register for copying and
27330 emit copying code in windowed ABI.
27331 (order_regs_for_local_alloc): Add preferred register allocation
27332 order for non-leaf function in call0 ABI.
27333 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27334 (xtensa_asm_trampoline_template): Add trampoline generation for
27335 call0 ABI.
27336 (xtensa_trampoline_init): Add trampoline initialization for
27337 call0 ABI.
27338 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27339 functions.
27340 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27341 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27342 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27343 ABI call-used registers.
27344 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27345 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27346 call0 ABI.
27347 (REG_CLASS_CONTENTS): Include all registers into the preferred
27348 reload registers set, adjust the set in the
27349 xtensa_conditional_register_usage.
27350 (xtensa_regno_to_class): Drop variable declaration.
27351 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27352 function.
27353 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27354 respectively.
27355 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27356 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27357 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27358 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27359 location in call0 ABI.
27360 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27361 stack adjustment size when handling exception.
27362 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27363 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27364 definitions.
27365 ("return" pattern): Generate ret.n/ret in call0 ABI.
27366 ("epilogue" pattern): Expand epilogue.
27367 ("nonlocal_goto" pattern): Use default in call0 ABI.
27368 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27369 emit eh_set_a0_* depending on ABI.
27370 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27371 ("eh_set_a0_call0", "blockage"): New patterns.
27372
27373 2015-03-03 Martin Liska <mliska@suse.cz>
27374
27375 PR ipa/65287
27376 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27377
27378 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27379
27380 PR 65138/target
27381 * config/rs6000/rs6000-tables.opt: Regenerate table.
27382
27383 2015-03-03 Renlin Li <renlin.li@arm.com>
27384
27385 * doc/md.texi (@item ^): Change ? into ^.
27386
27387 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
27388
27389 * doc/tm.texi: Regenerated.
27390
27391 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27392
27393 * builtins.c (expand_builtin_return_addr): Add
27394 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27395 surrounding #ifdef.
27396 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27397 definition to 1.
27398 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27399 Likewise.
27400 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27401 undefined.
27402 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27403 paragraph.
27404
27405 2015-03-03 Martin Jambor <mjambor@suse.cz>
27406 Eric Botcazou <ebotcazou@adacore.com>
27407
27408 * tree-sra.c (ipa_sra_check_caller_data): New type.
27409 (has_caller_p): Removed.
27410 (ipa_sra_check_caller): New function.
27411 (ipa_sra_preliminary_function_checks): Use it.
27412
27413 2015-03-03 Martin Liska <mliska@suse.cz>
27414
27415 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27416 instead of if branch.
27417
27418 2015-03-03 Martin Liska <mliska@suse.cz>
27419
27420 PR ipa/65282
27421 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27422
27423 2015-03-23 Jeff Law <law@redhat.com>
27424
27425 PR tree-optimization/65241
27426 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27427 hash table if INSERT is true.
27428
27429 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27430
27431 PR target/65296
27432 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27433
27434 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27435
27436 PR target/64331
27437 * config/avr/avr.c (context.h, tree-pass.h): Include them.
27438 (avr_pass_data_recompute_notes): New static variable.
27439 (avr_pass_recompute_notes): New class.
27440 (avr_register_passes): New static function.
27441 (avr_option_override): Call it.
27442
27443 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27444
27445 Fix various problems with specs file generation.
27446
27447 PR target/65296
27448 * config.gcc (extra_gcc_objs) [avr]: Remove.
27449 * config/avr/driver-avr.c: Remove file.
27450 * config/avr/t-avr (driver-avr.o): Remove rule.
27451 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27452 INCLUDES to build. Depend on TM_H.
27453 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
27454 build warnings. Fix non-matching types and non-existing %-codes.
27455 (tm.h): Include.
27456 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27457 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27458 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27459 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27460 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27461 (LIBGCC_SPEC): Remove definitions.
27462
27463 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27464
27465 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27466 to create a register in testing mode.
27467
27468 2015-03-03 Martin Liska <mliska@suse.cz>
27469 Jan Hubicka <hubicka@ucw.cz>
27470
27471 PR ipa/65263
27472 * cgraph.c (cgraph_node::has_thunk_p): New function.
27473 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27474 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27475 (sem_function::merge): Assert is changed.
27476
27477 2015-03-03 Martin Liska <mliska@suse.cz>
27478 Martin Jambor <mjambor@suse.cz>
27479
27480 PR ipa/65087
27481 * ipa-icf.c (sem_item_optimizer::execute): Change function
27482 return value to boolean.
27483 (sem_item_optimizer::merge_classes): Likewise.
27484 (ipa_icf_driver): Return TODO_remove_functions in case there's
27485 a merge operation processed.
27486 * ipa-icf.h: Change function return value to boolean.
27487
27488 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27489
27490 PR 65138/target
27491 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27492 processor type for 64-bit little endian PowerPC.
27493
27494 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27495 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
27496 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
27497 printing built-in mask so it does not pass NULL pointers.
27498
27499 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27500 -mcpu=powerpc64le.
27501
27502 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
27503
27504 PR target/58158
27505 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27506 !ISA_HAS_FP_CONDMOVE.
27507
27508 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
27509
27510 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27511 reload_completed.
27512
27513 2015-03-02 Ulrich Drepper <drepper@gmail.com>
27514
27515 * doc/invoke.texi (Options for Code Generation Conventions):
27516 Fix URL of DSO paper.
27517
27518 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27519
27520 PR ipa/65130
27521 * ipa-inline.c (check_callers): Looks for recursion.
27522 (inline_to_all_callers): Give up on uninlinable or recursive edges.
27523 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27524 summary of inline clones.
27525 (do_estimate_growth_1): Fix recursion check.
27526
27527 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27528
27529 PR ipa/64988
27530 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27531 comdat groups.
27532
27533 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27534 Aldy Hernandez <aldyh@redhat.com>
27535
27536 PR lto/65276
27537 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27538 when checking TYPE_BINFO.
27539
27540 2015-03-02 Richard Biener <rguenther@suse.de>
27541
27542 PR ipa/65270
27543 * ipa-icf-gimple.c: Include builtins.h.
27544 (func_checker::compare_memory_operand): Compare base alignment.
27545
27546 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27547
27548 PR target/65184
27549 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27550 are never passed by reference.
27551
27552 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27553
27554 PR target/65183
27555 * tree-chkp.c (chkp_check_lower): Don't check against
27556 zero bounds for already instrumented functions.
27557 (chkp_check_upper): Likewise.
27558 (chkp_fini): Clean pass local data to avoid wrong reusage.
27559
27560 2015-02-28 Martin Liska <mliska@suse.cz>
27561 Jan Hubicka <hubicka@ucw.cz>
27562
27563 * ipa-icf.c (sem_variable::equals): Improve debug output;
27564 get variable constructor.
27565 (sem_variable::parse): Do not filter out too early; give up on
27566 volatile and register vars.
27567 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27568 variables.
27569 * ipa-icf.h (sem_variable::init): Do not set ctor.
27570 (sem_variable::ctor): Remove.
27571
27572 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
27573
27574 PR middle-end/65233
27575 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27576
27577 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27578
27579 * ipa-icf.c: Include stor-layout.h
27580 (sem_function::compare_cgraph_references): Rename to ...
27581 (sem_item::compare_cgraph_references): ... this one.
27582 (sem_variable::equals_wpa): New function
27583 (sem_variable::equals): Do not check stuff already verified by
27584 equals_wpa.
27585 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27586 * ipa-icf.h (sem_item): Add compare_cgraph_references.
27587 (sem_function): Remove compare_cgraph_references.
27588 (sem_variable): Turns equals_wpa into non-inline.
27589
27590 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27591
27592 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27593 (sem_item::add_expr): New function.
27594 (sem_function::hash_stmt): Handle operands of most statements.
27595 (sem_variable::get_hash): Hash the actual constructor.
27596 * ipa-icf.h (sem_item): Add add_expr.
27597 (sem_function): Update prototype of hash_stmt
27598
27599 2015-02-28 Martin Liska <mliska@suse.cz>
27600 Jan Hubicka <hubicka@ucw.cz>
27601
27602 PR ipa/65245
27603 * ipa-icf-gimple.c (func_checker::compare_function_decl):
27604 Remove.
27605 (func_checker::compare_variable_decl): Skip symtab vars.
27606 (func_checker::compare_cst_or_decl): Update.
27607 * ipa-icf.c (sem_function::parse): Do not consider aliases.
27608 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27609 use correct symtab predicates.
27610 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27611 (sem_variable::parse): Update comment.
27612 (sem_item_optimizer::build_graph): Consider ultimate aliases
27613 for references.
27614
27615 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27616
27617 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27618 of OBJ_TYPE_REF.
27619
27620 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27621
27622 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27623 (sem_variable::merge) Likewise.
27624
27625 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27626
27627 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27628 target; also match flag_ipa_devirt.
27629
27630 2015-03-01 Martin Liska <mliska@suse.cz>
27631 Jan Hubicka <hubicka@ucw.cz>
27632
27633 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27634 Validate variable alignment.
27635 * ipa-icf.c (sem_function::equals_private): Be more precise
27636 about non-common function attributes.
27637 (sem_variable::equals): Likewise.
27638
27639 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27640
27641 PR ipa/65237
27642 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27643 across COMDAT group boundary.
27644
27645 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27646
27647 PR ipa/65232
27648 * ipa-icf.c (clear_decl_rtl): New function.
27649 (sem_function::merge): Clear RTL before forming alias.
27650 (sem_variable::merge): Clear RTL before forming alias.
27651
27652 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27653
27654 PR ipa/65236
27655 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27656
27657 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
27658
27659 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27660 to neon_to_gp<q>.
27661
27662 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27663
27664 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27665 a typo in the description.
27666
27667 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27668
27669 PR target/64317
27670 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27671 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27672 * lra-constraints.c: Include "params.h".
27673 (EBB_PROBABILITY_CUTOFF): Use
27674 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27675 (lra_inheritance): Use '<' instead of '<=' for
27676 EBB_PROBABILITY_CUTOFF.
27677 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27678 Document change.
27679
27680 2015-02-27 Martin Liska <mliska@suse.cz>
27681
27682 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27683 vector length condition.
27684
27685 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
27686
27687 * doc/extend.texi (x86 transactional memory intrinsics):
27688 Reorganize discussion of _xbegin. Clarify that the return
27689 value is a bit mask. Expand example and move to end of section.
27690
27691 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27692 Aldy Hernandez <aldyh@redhat.com>
27693
27694 PR rtl-optimization/65220
27695 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27696
27697 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27698
27699 PR target/65032
27700 * lra-remat.c (update_scratch_ops): New.
27701 (do_remat): Call it.
27702 * lra.c (lra_register_new_scratch_op): New. Take code from ...
27703 (remove_scratches): ... here.
27704 * lra-int.h (lra_register_new_scratch_op): New prototype.
27705
27706 2015-02-27 Marek Polacek <polacek@redhat.com>
27707
27708 PR c/65040
27709 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27710 -Wformat-signedness anymore.
27711
27712 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27713
27714 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27715 function.
27716 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27717
27718 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27719
27720 * config/s390/s390.c (enum s390_builtin):
27721 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27722 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27723 (s390_init_builtins): Generate new builtin functions.
27724 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27725 (s390_sfpc, s390_efpc): New pattern definitions.
27726
27727 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27728
27729 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27730 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27731 (s390_builtin_decls): New array.
27732 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27733 (s390_builtin_decl): New function.
27734 (TARGET_BUILTIN_DECL): Define macro.
27735
27736 2015-02-27 Richard Biener <rguenther@suse.de>
27737
27738 PR middle-end/63175
27739 * builtins.c (get_object_alignment_2): Make sure to re-apply
27740 the ANDed mask after recursing to its operand gets us a new
27741 misalignment bit position.
27742
27743 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
27744 Martin Liska <mliska@suse.cz>
27745
27746 PR bootstrap/65150
27747 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27748 Use address_matters_p.
27749 (redirect_all_callers, set_addressable): New functions.
27750 (sem_function::merge): Reorganize and fix merging issues.
27751 (sem_variable::merge): Likewise.
27752 (sem_variable::compare_sections): Remove.
27753 * common.opt (fmerge-all-constants, fmerge-constants): Remove
27754 Optimization flag.
27755 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27756 redirect them.
27757 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27758 decl is used.
27759 (address_matters_1): New function.
27760 (symtab_node::address_matters_p): New function.
27761 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27762 check for merged flag.
27763 * cgraph.h (address_matters_p): Declare.
27764 (symtab_node::address_taken_from_non_vtable_p): Remove.
27765 (symtab_node::address_can_be_compared_p): New method.
27766 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27767 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27768 Remove.
27769 (comdat_can_be_unshared_p_1) Use address_matters_p.
27770 (update_vtable_references): Fix formating.
27771 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27772 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27773 * cgraphclones.c: Preserve merged and icf_merged flags.
27774
27775 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
27776
27777 * doc/extend.texi (Function Attributes): Fix spelling and typos.
27778 (Label Attributes): Likewise.
27779 (Cilk Plus Builtins): Likewise.
27780 (ARC SIMD Built-in Functions): Likewise.
27781 (ARM C Language Extensions (ACLE)): Likewise.
27782 (PowerPC Built-in Functions): Likewise.
27783 (PowerPC Hardware Transactional Memory Built-in Functions):
27784 Likewise.
27785
27786 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27787
27788 PR tree-optimization/65216
27789 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27790 new stmt and new SSA_NAME for lhs whenever the arguments have
27791 changed and weren't just swapped. Fix comment typo.
27792
27793 PR tree-optimization/65215
27794 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27795 for PDP endian targets.
27796 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27797 Fix up formatting issues.
27798 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
27799 size is smaller than the original, adjust MEM_REF offset by the
27800 difference of sizes. Use is_gimple_mem_ref_addr instead of
27801 is_gimple_min_invariant test to avoid adding address temporaries.
27802
27803 2015-02-26 Martin Liska <mliska@suse.cz>
27804 Jan Hubicka <hubicka@ucw.cz>
27805
27806 PR ipa/64693
27807 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27808 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27809 (sem_item_optimizer::process_cong_reduction): Include division by
27810 sensitive references.
27811 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27812 * ipa-ref.c (ipa_ref::address_matters_p): New function.
27813 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27814
27815 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
27816
27817 PR target/65192
27818 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27819 Remove.
27820 * config/avr/avr.c: Same.
27821 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27822 Refuse any constant address not in 0..0xbf.
27823 * config/avr/avr.md (*mov<mode>, *movsf): Remove
27824 tiny_valid_direct_memory_access_range from insn conditions.
27825 (mov<mode>): Don't special-case expansion of avrtiny addresses.
27826
27827 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
27828
27829 PR target/61142
27830 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27831 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27832 * config/sh/predicates.md (const_logical_operand): New predicate.
27833 * config/sh/sh.md: Add new peephole2 patterns.
27834
27835 2015-02-26 Marek Polacek <polacek@redhat.com>
27836
27837 PR ipa/65008
27838 * ipa-inline.c (early_inliner): Recompute inline parameters.
27839
27840 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27841
27842 PR target/65171
27843 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27844 instructions with TImode operands are included in the analysis.
27845
27846 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27847
27848 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27849 of an EDGE_FSM_THREAD.
27850
27851 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
27852
27853 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27854
27855 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
27856
27857 PR debug/46102
27858 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27859
27860 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27861
27862 PR tree-optimization/65048
27863 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27864 (thread_through_all_blocks): Call valid_jump_thread_path.
27865 Remove invalid FSM jump-thread paths.
27866
27867 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27868
27869 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27870 (ipa_write_optimization_summaries): Likewise.
27871 * tree-streamer.h: Include data-streamer.h.
27872 (streamer_mode_table): Declare extern variable.
27873 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27874 * lto-streamer-out.c (lto_output_init_mode_table,
27875 lto_write_mode_table): New functions.
27876 (produce_asm_for_decls): Call lto_write_mode_table when streaming
27877 offloading LTO.
27878 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27879 (lto_create_simple_input_block): Add mode_table argument to the
27880 lto_input_block constructors.
27881 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27882 Likewise.
27883 * data-streamer-in.c (string_for_index): Likewise.
27884 * ipa-inline-analysis.c (inline_read_section): Likewise.
27885 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27886 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27887 * lto-streamer-in.c (lto_read_body_or_constructor,
27888 lto_input_toplevel_asms): Likewise.
27889 (lto_input_mode_table): New function.
27890 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27891 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27892 Use bp_pack_machine_mode.
27893 * real.h (struct real_format): Add name field.
27894 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27895 (class lto_input_block): Add mode_table member.
27896 (lto_input_block::lto_input_block): Add mode_table_ argument,
27897 initialize mode_table.
27898 (struct lto_file_decl_data): Add mode_table field.
27899 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27900 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27901 unpack_ts_decl_common_value_fields,
27902 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27903 * tree-streamer.c (streamer_mode_table): New variable.
27904 * real.c (ieee_single_format, mips_single_format,
27905 motorola_single_format, spu_single_format, ieee_double_format,
27906 mips_double_format, motorola_double_format,
27907 ieee_extended_motorola_format, ieee_extended_intel_96_format,
27908 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27909 ibm_extended_format, mips_extended_format, ieee_quad_format,
27910 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27911 decimal_single_format, decimal_double_format, decimal_quad_format,
27912 ieee_half_format, arm_half_format, real_internal_format): Add name
27913 field.
27914 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27915
27916 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
27917
27918 PR target/65161
27919 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27920 reordering for selective scheduling.
27921
27922 2015-02-26 Terry Guo <terry.guo@arm.com>
27923
27924 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27925 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27926 (arm_arch_no_volatile_ce): Declare new global variable.
27927 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27928 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27929 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27930 (TARGET_NO_VOLATILE_CE): New macro.
27931 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27932 volatile memory access in IT block
27933
27934 2015-02-25 Kai Tietz <ktietz@redhat.com>
27935
27936 PR tree-optimization/61917
27937 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27938 that reduc_def_stmt is null.
27939
27940 2015-02-25 Martin Liska <mliska@suse.cz>
27941
27942 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27943 hard register variables.
27944
27945 2015-02-25 Kai Tietz <ktietz@redhat.com>
27946
27947 PR target/64212
27948 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27949 (symtab::noninterposable_alias): Likewise.
27950
27951 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
27952
27953 PR target/65167
27954 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27955 bounds registers.
27956 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27957
27958 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
27959
27960 PR target/64997
27961 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27962 as split condition; force split via '#' in output pattern.
27963
27964 2015-02-25 Richard Biener <rguenther@suse.de>
27965 Kai Tietz <ktietz@redhat.com>
27966
27967 PR tree-optimization/61917
27968 * tree-vect-loop.c (vectorizable_reduction): Allow
27969 vect_internal_def without reduction to exit graceful.
27970
27971 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27972
27973 PR target/65196
27974 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27975 only with NONDEBUG_INSN_P.
27976
27977 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27978
27979 Use variadic macros with avr-log.c.
27980
27981 * config/avr/avr-protos.h (avr_vdump): New prototype.
27982 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27983 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27984 * config/avr/avr-log.c: Adjust comments.
27985 (avr_vdump): New function.
27986 (avr_vadump): Pass caller as 2nd argument instead of format string.
27987 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27988 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27989
27990 2015-02-25 Jakub Jelinek <jakub@redhat.com>
27991
27992 PR lto/64374
27993 * target.def (target_option_stream_in): New target hook.
27994 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27995 targetm.target_option.post_stream_in if non-NULL.
27996 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27997 * doc/tm.texi: Updated.
27998 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27999 function.
28000 (TARGET_OPTION_POST_STREAM_IN): Redefine.
28001
28002 2015-02-24 Jeff Law <law@redhat.com>
28003
28004 PR target/65117
28005 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28006 of operand 0 and operand 2.
28007 (zero_cost_loop_end, loop_end): Similarly.
28008
28009 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
28010
28011 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28012 CXX_MEM_STAT_INFO.
28013
28014 2015-02-24 DJ Delorie <dj@redhat.com>
28015
28016 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28017 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28018 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28019 instead of hardcoding SImode.
28020
28021 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
28022
28023 * omp-low.c (create_omp_child_function): Tag entrypoint
28024 functions with a special attribute.
28025
28026 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28027
28028 PR target/65058
28029 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28030
28031 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
28032
28033 PR rtl-optimization/65123
28034 * lra-remat.c (operand_to_remat): Check hard regs in insn
28035 definition too.
28036
28037 2015-02-24 Nick Clifton <nickc@redhat.com>
28038
28039 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28040 to the assembler.
28041
28042 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
28043
28044 PR libgomp/64625
28045 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28046 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28047 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28048 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28049 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28050 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28051 (BUILT_IN_GOACC_PARALLEL): Specify as
28052 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28053 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28054 * builtin-types.def
28055 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28056 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28057 Remove function types.
28058 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28059 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28060 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28061 New function types.
28062
28063 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
28064
28065 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28066
28067 2015-02-24 Jakub Jelinek <jakub@redhat.com>
28068
28069 PR tree-optimization/65170
28070 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28071 if val[1] < 0, clear also val[2] and return 3.
28072
28073 2015-02-24 Alan Modra <amodra@gmail.com>
28074
28075 PR target/65172
28076 * config/rs6000/rs6000.c (get_memref_parts): Only return true
28077 when *base is a reg. Handle nested plus addresses. Simplify
28078 pre_modify test.
28079
28080 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
28081
28082 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28083 use natural alignment when optimizing for size.
28084
28085 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
28086
28087 PR target/65153
28088 * config/sh/sh.md (movsicc_true+3): Remove peephole.
28089 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28090 * config/sh/sh.c (replace_n_hard_rtx): Remove.
28091
28092 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
28093
28094 PR fortran/63427
28095 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28096 too big for a wide_int. Implement missing wrapping operation.
28097
28098 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
28099
28100 PR target/65163
28101 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28102 instead of const_int 4294901760.
28103
28104 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
28105
28106 * config/avr/t-avr: Fix typo in comment.
28107
28108 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
28109
28110 * doc/rtl.texi (fma): Clarify documentation.
28111
28112 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
28113
28114 PR debug/58123
28115 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28116 over input_location.
28117
28118 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28119
28120 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28121 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28122 restrict alignments to absolute_biggest_alignment.
28123 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28124 Define.
28125 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28126 * doc/tm.texi: Regenerate.
28127 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28128
28129 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
28130
28131 PR target/64172
28132 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28133
28134 2015-02-20 Richard Biener <rguenther@suse.de>
28135
28136 PR tree-optimization/65136
28137 * tree-ssa-propagate.c: Include cfgloop.h.
28138 (replace_phi_args_in): Avoid replacing loop latch edge PHI
28139 arguments with constants.
28140
28141 2015-02-20 Jakub Jelinek <jakub@redhat.com>
28142 Martin Liska <mliska@suse.cz>
28143
28144 PR target/63892
28145 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28146 don't try to create_thunk if stdarg_p. If
28147 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28148 redirect_callers if possible.
28149 (sem_item_optimizer::execute): Call unregister_hooks here...
28150 (ipa_icf_driver): ... instead of here.
28151
28152 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28153
28154 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28155 Mark operand 0 as earlyclobber in 2nd alternative.
28156 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28157 Write negated shift amount into QI lowpart operand 0 and use it
28158 in the shift step.
28159 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28160
28161 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28162
28163 * cgraph.h (clone_function_name_1): Declare.
28164 * cgraphclones.c (clone_function_name_1): New function.
28165 (clone_function_name): Use it.
28166 * lto-partition.c: Include "stringpool.h".
28167 (must_not_rename, maybe_rewrite_identifier)
28168 (validize_symbol_for_target): New static functions.
28169 (privatize_symbol_name): Use must_not_rename.
28170 (promote_symbol): Call validize_symbol_for_target.
28171 (lto_promote_cross_file_statics): Likewise.
28172 (lto_promote_statics_nonwpa): Likewise.
28173
28174 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
28175
28176 PR target/64452
28177 * config/avr/avr.md (pushhi_insn): New insn.
28178 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28179
28180 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28181 Jakub Jelinek <jakub@redhat.com>
28182
28183 * tree-streamer.c (preload_common_nodes): Don't preload
28184 TI_VA_LIST* for offloading.
28185 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28186 in_lto_p.
28187
28188 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
28189
28190 * config/pa/pa.c (pa_emit_move_sequence): Always force
28191 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
28192 note on insn.
28193
28194 * config/pa/pa.c (pa_reloc_rw_mask): New function.
28195 (TARGET_ASM_RELOC_RW_MASK): Define.
28196 (pa_cannot_force_const_mem): Revert previous change.
28197
28198 2015-02-19 Martin Jambor <mjmabor@suse.cz>
28199 Jan Hubicka <hubicka@ucw.cz>
28200
28201 PR ipa/65028
28202 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28203 across jump functions.
28204
28205 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
28206
28207 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28208
28209 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
28210
28211 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28212
28213 2015-02-19 Richard Henderson <rth@redhat.com>
28214
28215 PR middle-end/65074
28216 * varasm.c (default_binds_local_p_2): Don't test node->definition;
28217 test DECL_EXTERNAL independent of symtab_node.
28218
28219 2015-02-19 Jakub Jelinek <jakub@redhat.com>
28220
28221 PR lto/65012
28222 * varpool.c (varpool_node::get_constructor): Return early
28223 if this->lto_file_data is NULL.
28224
28225 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28226
28227 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28228 (rank_for_schedule_debug): Update.
28229 (ready_sort): Make static. Move sorting logic to ...
28230 (ready_sort_debug, ready_sort_real): New static functions.
28231 (schedule_block): Sort both debug insns and real insns in preparation
28232 for ready list trimming. Improve debug output.
28233 * sched-int.h (ready_sort): Remove global declaration.
28234
28235 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
28236
28237 * ipa-icf.c (sem_function::equals_private): Adjust.
28238 (sem_function::bb_dict_test): Take a vec<int> * instead of
28239 auto_vec<int>.
28240 * ipa-icf.h (bb_dict_test): Likewise.
28241
28242 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28243
28244 PR gcov-profile/64634
28245 * tree-eh.c (frob_into_branch_around): Fix up typos
28246 in function comment.
28247 (lower_catch): Put eh_seq resulting from EH lowering of
28248 the cleanup sequence after the cleanup rather than before it.
28249
28250 2015-02-18 Tom de Vries <tom@codesourcery.com>
28251
28252 * common.opt (fstdarg-opt): New option.
28253 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28254 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28255 (@item -fstdarg-opt): New item.
28256
28257 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
28258
28259 PR target/65064
28260 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28261 for common symbols.
28262
28263 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28264
28265 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28266 insn-modes.h.
28267 (ALL_HOST_OBJS): Add mkoffload.o.
28268 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28269
28270 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
28271
28272 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28273 (compare_virtual_tables): Be smarter about skipping typeinfos;
28274 do sane output on virtual table table mismatch.
28275 (warn_odr): Be ready for forward declarations of enums;
28276 output sane info on base mismatch and virtual table mismatch.
28277 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28278 when only one type is polymorphic.
28279 (get_odr_type): Fix hashtable corruption.
28280 (dump_odr_type): Dump mangled names.
28281
28282 2015-02-18 Richard Biener <rguenther@suse.de>
28283
28284 PR tree-optimization/65063
28285 * tree-predcom.c (determine_unroll_factor): Return 1 if we
28286 have replaced looparound PHIs.
28287
28288 2015-02-18 Martin Liska <mliska@suse.cz>
28289
28290 * lto-streamer.c (lto_streamer_init): Encapsulate
28291 streamer_check_handled_ts_structures with checking macro.
28292
28293 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28294
28295 PR ipa/65087
28296 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28297 section if !implicit_section.
28298 (cgraph_node::create_version_clone_with_body): Likewise.
28299 * trans-mem.c (ipa_tm_create_version): Likewise.
28300
28301 2015-02-18 Richard Biener <rguenther@suse.de>
28302
28303 PR tree-optimization/62217
28304 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28305 into BIVs.
28306
28307 2015-02-18 Marek Polacek <polacek@redhat.com>
28308
28309 PR sanitizer/65081
28310 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28311 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28312 is in range [-16K, -1]. Don't issue run-time error if
28313 (ptr > ptr + offset).
28314
28315 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
28316
28317 * doc/install.texi (nvptx-*-none): New section.
28318 * doc/invoke.texi (Nvidia PTX Options): Likewise.
28319 * config/nvptx/nvptx.opt: Update.
28320
28321 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28322 (access_check): New functions, copied from
28323 config/i386/intelmic-mkoffload.c.
28324 (main): For non-installed testing, look in all COMPILER_PATHs for
28325 GCC_INSTALL_NAME.
28326
28327 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28328
28329 2015-02-18 Andrew Pinski <apinski@cavium.com>
28330 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28331
28332 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28333 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28334
28335 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28336
28337 * ipa-visibility.c (function_and_variable_visibility): Only
28338 check locality if node is not already local.
28339 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28340 call_for_symbol_and_aliases instead of
28341 call_for_symbol_thunks_and_aliases.
28342 (ipa_inline): Likewise.
28343 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28344 first walk aliases.
28345 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28346 call_for_symbol_and_aliases.
28347 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28348 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28349 (ipa_propagate_frequency): Update.
28350 (ipa_profile): Add opt_for_fn gueards.
28351
28352 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28353
28354 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28355 * doc/invoke.texi (SH options): Document it.
28356 * config/sh/sh.c (sh_insn_length_adjustment): Check
28357 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28358
28359 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
28360
28361 * common.opt (fipa-cp-alignment): New.
28362 * ipa-cp.c (ipcp_store_alignment_results): Check
28363 flag_ipa_cp_alignment.
28364 * opts.c (default_options_table): Enable -fipa-cp-alignment for
28365 -O2.
28366 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28367 * doc/invoke.texi: Document -fipa-cp-alignment.
28368
28369 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28370
28371 PR target/64793
28372 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28373 to nil. Adjust comments.
28374
28375 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28376
28377 * ipa-visibility.c (function_and_variable_visibility): Only
28378 check locality if node is not already local.
28379 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28380 call_for_symbol_and_aliases instead of
28381 call_for_symbol_thunks_and_aliases.
28382 (ipa_inline): Likewise.
28383 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28384 first walk aliases.
28385 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28386 call_for_symbol_and_aliases.
28387 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28388 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28389 (ipa_propagate_frequency): Update.
28390 (ipa_profile): Add opt_for_fn guards.
28391
28392 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
28393
28394 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28395 skipping of "strange" tokens.
28396
28397 2015-02-17 Jeff Law <law@redhat.com>
28398
28399 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
28400 obsolete comment.
28401
28402 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
28403
28404 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28405 as forcing a HARD_DEP between instructions, thereby
28406 disallowing rewriting to break dependencies.
28407
28408 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28409
28410 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28411 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28412 variables in boundary that have no inlitalizer encoded and are
28413 not aliases.
28414 * varasm.c (default_binds_local_p_2): External definitions do not
28415 count as definitions here.
28416
28417 2015-02-16 Jeff Law <law@redhat.com>
28418
28419 PR tree-optimization/64823
28420 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28421 statements.
28422 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28423 threading through blocks with PHIs, but no statements.
28424 (thread_through_normal_block): Distinguish between blocks where
28425 we did not process all the statements and blocks with no statements.
28426
28427 2015-02-16 Jakub Jelinek <jakub@redhat.com>
28428 James Greenhalgh <james.greenhalgh@arm.com>
28429
28430 PR ipa/64963
28431 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28432 section if not linkonce. Fix up formatting.
28433 (cgraph_node::create_version_clone_with_body): Copy section.
28434 * trans-mem.c (ipa_tm_create_version): Likewise.
28435
28436 2015-02-16 Richard Biener <rguenther@suse.de>
28437
28438 PR tree-optimization/65077
28439 * tree-ssa-structalias.c (get_constraint_for_1): Handle
28440 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28441 (find_func_aliases): Allow float values to carry pointers again.
28442
28443 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28444
28445 * doc/install.texi (Specific): Reorder targets list to put
28446 aarch64 in alphabetical order. Add a link to aarch64*-*-*
28447 from the top menu.
28448
28449 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28450 David Edelsohn <dje.gcc@gmail.com>
28451
28452 PR target/65058
28453 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28454 mapping class to external variable or function reference.
28455 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28456 mapping class.
28457
28458 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
28459
28460 PR target/53348
28461 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28462 ASM_WEAKEN_DECL if defined.
28463
28464 2015-02-16 Richard Biener <rguenther@suse.de>
28465
28466 PR lto/65015
28467 * varasm.c (default_file_start): For LTO produced units
28468 emit <artificial> as file directive.
28469
28470 2015-02-16 Richard Biener <rguenther@suse.de>
28471
28472 PR tree-optimization/63593
28473 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28474 stmts and releasing SSA names until...
28475 (execute_pred_commoning): ... after processing all chains.
28476
28477 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28478
28479 PR ipa/65059
28480 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28481 external functions.
28482
28483 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
28484
28485 * doc/bugreport.texi: Adjust section titles throughout the file
28486 to use "Title Case".
28487 * doc/extend.texi: Likewise.
28488 * doc/gcov.texi: Likewise.
28489 * doc/implement-c.texi: Likewise.
28490 * doc/implement-cxx.texi: Likewise.
28491 * doc/invoke.texi: Likewise.
28492 * doc/objc.texi: Likewise.
28493 * doc/standards.texi: Likewise.
28494 * doc/trouble.texi: Likewise.
28495
28496 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
28497
28498 * cgraph.h (symtab_node::has_aliases_p): Simplify.
28499 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28500 * tree.c (lookup_binfo_at_offset): Make static.
28501 (get_binfo_at_offset): Do not shadow offset; add explanatory
28502 comment.
28503
28504 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
28505
28506 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28507 for all floading point loads and stores except those using a register
28508 index address.
28509 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28510 to a register.
28511
28512 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28513
28514 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28515 (do_estimate_growth_1): Record if any uninlinable edge was seen.
28516 (estimate_growth): Handle uninlinable edges correctly.
28517 (check_callers): New.
28518 (growth_likely_positive): Handle aliases correctly.
28519
28520 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28521
28522 * ipa-chkp.c: Use iterate_direct_aliases.
28523 * symtab.c (resolution_used_from_other_file_p): Move inline.
28524 (symtab_node::create_reference): Fix formating.
28525 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28526 (symtab_node::iterate_reference): Move inline.
28527 (symtab_node::iterate_referring): Move inline.
28528 (symtab_node::iterate_direct_aliases): Move inline.
28529 (symtab_node::used_from_object_file_p_worker): Inline into ...
28530 (symtab_node::used_from_object_file_p): ... this one; move inline.
28531 (symtab_node::call_for_symbol_and_aliases): Move inline;
28532 use iterate_direct_aliases.
28533 (symtab_node::call_for_symbol_and_aliases_1): New method.
28534 (cgraph_node::call_for_symbol_and_aliases): Move inline;
28535 use iterate_direct_aliases.
28536 (cgraph_node::call_for_symbol_and_aliases_1): New method.
28537 (varpool_node::call_for_node_and_aliases): Rename to ...
28538 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28539 use iterate_direct_aliases.
28540 (varpool_node::call_for_symbol_and_aliases_1): New method.
28541 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28542 (ipa_discover_readonly_nonaddressable_var): Update.
28543 * ipa-devirt.c: Fix formating.
28544 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28545 Move inline.
28546 (cgraph_node::call_for_symbol_and_aliases): Move inline.
28547 (cgraph_node::call_for_symbol_and_aliases_1): New function..
28548 * cgraph.h (used_from_object_file_p_worker): Remove.
28549 (resolution_used_from_other_file_p): Move inline.
28550 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28551 (symtab_node::iterate_reference): Move inline.
28552 (symtab_node::iterate_referring): Move inline.
28553 (symtab_node::iterate_direct_aliases): Move inline.
28554 (symtab_node::used_from_object_file_p_worker): Inline into ...
28555 (symtab_node::used_from_object_file_p): Move inline.
28556 * tree-emutls.c (ipa_lower_emutls): Update.
28557 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28558 (varpool_node::call_for_node_and_aliases): Remove.
28559
28560 2015-02-14 Jakub Jelinek <jakub@redhat.com>
28561
28562 PR tree-optimization/62209
28563 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28564 op == range->exp, insert seq and gimplified code after labels
28565 instead of after the phi.
28566
28567 2015-02-13 Jeff Law <law@redhat.com>
28568
28569 PR bootstrap/65060
28570 Revert my change for tree-optimization/64823.
28571
28572 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28573
28574 PR tree-optimization/65053
28575 * tree-ssa-phiopt.c (value_replacement): When moving assign before
28576 cond, either reset VR on lhs or set it to phi result VR.
28577
28578 2015-02-13 Jeff Law <law@redhat.com>
28579
28580 PR tree-optimization/64823
28581 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28582 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28583 threading through blocks with PHIs, but no statements.
28584 (thread_through_normal_block): Distinguish between blocks where
28585 we did not process all the statements and blocks with no statements.
28586
28587 PR rtl-optimization/47477
28588 * match.pd (convert (plus/minus (convert @0) (convert @1): New
28589 simplifier to narrow arithmetic.
28590
28591 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
28592
28593 PR ipa/65028
28594 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28595 polymorphic call info when type is not known to be preserved.
28596
28597 2015-02-13 Maritn Jambor <mjambor@suse.cz>
28598
28599 PR ipa/65028
28600 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28601 (inline_call): Use it.
28602
28603 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
28604
28605 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28606 GOMP_DEVICE_NVIDIA_PTX.
28607
28608 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28609
28610 PR ipa/65034
28611 * stmt.c (emit_case_nodes): Use void_type_node instead of
28612 NULL_TREE as LABEL_DECL type.
28613
28614 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
28615
28616 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28617 constraints.
28618 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28619 symbolic references to data to be forced to constant memory on the
28620 SOM target.
28621
28622 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
28623
28624 PR tree-optimization/65002
28625 * tree-cfg.c (pass_data_fixup_cfg): Don't update
28626 SSA on start.
28627 * tree-sra.c (some_callers_have_no_vuse_p): New.
28628 (ipa_early_sra): Reject functions whose callers
28629 assume function is read only.
28630
28631 2015-02-13 Richard Biener <rguenther@suse.de>
28632
28633 PR lto/65015
28634 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28635 for LTO produced CUs.
28636
28637 2015-02-13 Bin Cheng <bin.cheng@arm.com>
28638
28639 PR tree-optimization/64705
28640 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28641 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28642 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28643 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28644 expand_simple_operations.
28645
28646 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
28647 Richard Henderson <rth@redhat.com>
28648
28649 PR rtl/32219
28650 * cgraphunit.c (cgraph_node::finalize_function): Set definition
28651 before notice_global_symbol.
28652 (varpool_node::finalize_decl): Likewise.
28653 * varasm.c (default_binds_local_p_2): Rename from
28654 default_binds_local_p_1, add weak_dominate argument. Use direct
28655 returns instead of assigning to local variable. Unify varpool and
28656 cgraph paths via symtab_node. Reject undef weak variables before
28657 testing visibility. Reorder tests for simplicity.
28658 (default_binds_local_p): Use default_binds_local_p_2.
28659 (default_binds_local_p_1): Likewise.
28660 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28661 via symtab_node.
28662 (default_elf_asm_output_external): Emit visibility when specified.
28663
28664 2015-02-13 Alan Modra <amodra@gmail.com>
28665
28666 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28667 code setting up r11 for out-of-line fp restore.
28668
28669 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
28670
28671 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28672 (muser-mode): Likewise.
28673
28674 2015-02-13 Alan Modra <amodra@gmail.com>
28675
28676 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28677 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28678
28679 2015-02-12 David Howells <dhowells@redhat.com>
28680
28681 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28682 warning.
28683 * tree-ssa-uninit.c (dump_predicates): Likewise.
28684 * opts.c (print_filtered_help): Likewise.
28685
28686 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28687
28688 * dwarf2out.c (output_die): Use "%s", name instead of name to
28689 avoid -Wformat-security warning.
28690
28691 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28692 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28693 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28694 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28695
28696 2015-02-12 Jason Merrill <jason@redhat.com>
28697
28698 * common.opt (-flifetime-dse): New.
28699
28700 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28701
28702 PR sanitizer/65019
28703 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28704
28705 PR tree-optimization/65014
28706 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28707 use original second operand of arg0 or arg1 instead of
28708 that adjusted by STRIP_NOPS.
28709
28710 2015-02-11 Jeff Law <law@redhat.com>
28711
28712 PR target/63347
28713 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28714 that needs to be queued, just queue it for a single cycle.
28715
28716 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
28717
28718 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28719 bodies of thunks; comment on why.
28720 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28721 symbols are extern.
28722
28723 2015-02-11 Richard Henderson <rth@redhat.com>
28724
28725 PR sanitize/65000
28726 * tree-eh.c (mark_reachable_handlers): Mark source and destination
28727 regions of __builtin_eh_copy_values.
28728
28729 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28730
28731 PR middle-end/65003
28732 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28733 ultimate alias is MEM with SYMBOL_REF satisfying
28734 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
28735 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28736
28737 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
28738
28739 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28740 "diagnostic-core.h".
28741 (main): Initialize progname, and call diagnostic_initialize.
28742
28743 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28744 instead of __OPENMP_TARGET__.
28745
28746 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28747 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28748 hard-coding PTX_ID.
28749
28750 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
28751
28752 * doc/sourcebuild.texi (pie_enabled): Document.
28753
28754 2015-02-11 Martin Liska <mliska@suse.cz>
28755
28756 PR ipa/64813
28757 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28758 a return value for call to a function that is noreturn.
28759
28760 2015-02-11 Richard Biener <rguenther@suse.de>
28761
28762 PR lto/65015
28763 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28764 and -fresolution.
28765
28766 2015-02-11 Andrew Pinski <apinski@cavium.com>
28767
28768 PR target/64893
28769 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28770 Change the first argument type to size_type_node and add another
28771 size_type_node.
28772 (aarch64_simd_expand_builtin): Handle the new argument to
28773 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28774 print an out when the first two arguments are not
28775 nonzero integer constants.
28776 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28777 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28778
28779 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28780
28781 PR target/61925
28782 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28783 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28784 (ix86_set_current_function): Rewritten.
28785 (ix86_add_new_builtins): Temporarily clear current_target_pragma
28786 when creating builtin fndecls.
28787
28788 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28789
28790 PR ipa/65005
28791 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28792 function.
28793 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28794 have no comdat group.
28795 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28796 (lto_output_varpool_node): Always output alias info.
28797 (output_refs): Output refs of boundary aliases, too.
28798 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28799 (output_symtab): Output call eges in thunks in boundary.
28800 (get_alias_symbol): Remove.
28801 (input_node, input_varpool_node): Do not special case weakrefs.
28802 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28803 alias and thunks targets in the boundary; do not take removed symbols
28804 from their comdat groups.
28805 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28806 (cgraph_node::global_info): Remove.
28807 (cgraph_node::rtl_info): Look through aliases and thunks.
28808 * cgrpah.h (global_info): Remove.
28809 (non_local_p): Remove.
28810
28811 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28812 Sandra Loosemore <sandra@codesourcery.com>
28813
28814 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28815 to inline asm. List dialects in proper order.
28816
28817 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28818 Sandra Loosemore <sandra@codesourcery.com>
28819
28820 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28821
28822 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28823
28824 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28825 modified) reference to Solaris.
28826
28827 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
28828
28829 * doc/extend.texi (Extended Asm): Fix typos.
28830
28831 2015-02-10 Jakub Jelinek <jakub@redhat.com>
28832
28833 PR sanitizer/65004
28834 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28835
28836 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
28837
28838 PR target/64661
28839 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28840 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28841 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28842 * config/sh/constraints.md (Ara, Add): New constraints.
28843 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28844 predicates.
28845 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28846 atomic_mem_operand_0. Don't use force_reg on the memory address.
28847 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28848 Sra constraint. Convert to insn_and_split. Add workaround for
28849 PR 64974.
28850 (atomic_compare_and_swap<mode>_hard): Copy to
28851 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
28852 Use atomic_mem_operand_0 predicate.
28853 (atomic_compare_and_swap<mode>_soft_gusa,
28854 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28855 AraAdd constraints.
28856 (atomic_compare_and_swap<mode>_soft_tcb,
28857 atomic_compare_and_swap<mode>_soft_imask,
28858 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28859 atomic_mem_operand_0 predicate and SraSdd constraints.
28860 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28861 constraint.
28862 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28863 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
28864 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28865 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
28866 force_reg on the memory address.
28867 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28868 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28869 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28870 atomic_mem_operand_1 predicate and Sra constraint.
28871 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28872 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28873 Use atomic_mem_operand_1 predicate.
28874 (atomic_<fetchop_name><mode>_hard): Copy to
28875 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28876 Use atomic_mem_operand_1 predicate.
28877 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28878 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28879 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
28880 insn_and_split. Use atomic_mem_operand_1 predicate.
28881 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28882 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
28883 Use atomic_mem_operand_1 predicate.
28884 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28885 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28886 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28887 in generated insn with original mem operand before emitting the insn.
28888 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28889 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28890 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28891 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28892 Use atomic_mem_operand_1 predicate and AraAdd constraints.
28893 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28894 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28895 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28896 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28897 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28898 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28899 atomic_not_fetch<mode>_soft_tcb,
28900 atomic_<fetchop_name>_fetch<mode>_soft_imask,
28901 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28902 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28903 Use atomic_mem_operand_1 predicate and SraSdd constraints.
28904
28905 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
28906
28907 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28908 and 3 earlyclobber operands.
28909
28910 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28911
28912 * common.opt (fstack-reuse): Mark as optimization.
28913
28914 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28915
28916 PR ipa/64982
28917 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28918
28919 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
28920
28921 PR tree-optimization/64326
28922 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28923
28924 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
28925
28926 PR gcov-profile/61889
28927 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28928
28929 2015-02-10 Richard Biener <rguenther@suse.de>
28930
28931 PR tree-optimization/64995
28932 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28933 value we use is final.
28934 (visit_reference_op_store): Always valueize op.
28935 (visit_use): Properly valueize vuses.
28936
28937 2015-02-10 Richard Biener <rguenther@suse.de>
28938
28939 PR tree-optimization/64909
28940 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28941 pass a scalar-stmt count estimate to the cost model.
28942 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28943
28944 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
28945
28946 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28947 enabled by default together with var-tracking.
28948
28949 2015-02-10 Nick Clifton <nickc@redhat.com>
28950
28951 * config/rl78/rl78.c: Remove DIV attribute code accidentally
28952 included in previous rl78 commit.
28953
28954 2015-02-10 Richard Biener <rguenther@suse.de>
28955
28956 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28957 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28958 return the bitpack.
28959
28960 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28961
28962 PR gcov-profile/61889
28963 * config.in: regenerate.
28964 * configure.in: Likewise.
28965 * configure.ac: Check for ftw.h.
28966 * gcov-tool.c: Check for ftw.h before using nftw.
28967
28968 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28969
28970 PR lto/64076
28971 * ipa-visibility.c (update_visibility_by_resolution_info): Only
28972 assert when not in lto mode.
28973
28974 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28975
28976 * ira-color.c (setup_left_conflict_sizes_p): Simplify
28977 initialization/assignment of conflict_size.
28978
28979 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
28980
28981 PR ipa/64978
28982 * ipa-cp.c (gather_caller_stats): Skip thunks.
28983 (propagate_constants_topo): Skip aliases.
28984
28985 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
28986
28987 PR target/64761
28988 * config/sh/sh.c (sh_option_override): Don't change
28989 -freorder-blocks-and-partition to -freorder-blocks even when
28990 unwinding is enabled.
28991 (sh_can_follow_jump): Return false if the followee jump is
28992 a crossing jump when -freorder-blocks-and-partition is specified.
28993 * config/sh/sh.md (*jump_compact_crossing): New insn.
28994
28995 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
28996 Kaz Kojima <kkojima@gcc.gnu.org>
28997
28998 PR target/64761
28999 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29000 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29001 (sh_can_redirect_branch): Rename to ...
29002 (sh_can_follow_jump): ... this. Constify argument types.
29003 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29004 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29005 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29006 * doc/tm.texi: Regenerate.
29007
29008 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29009
29010 PR sanitizer/64981
29011 * builtins.c (expand_builtin): Call targetm.expand_builtin
29012 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29013
29014 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29015
29016 PR ipa/61548
29017 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29018
29019 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29020
29021 PR ipa/63566
29022 * ipa-icf.c (set_local): New function.
29023 (sem_function::merge): Use it.
29024
29025 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29026
29027 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29028 (add_type_duplicate): Fix comparison of BINFOs.
29029
29030 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29031
29032 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29033 on getting VOID pointer.
29034
29035 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29036
29037 PR target/64979
29038 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29039 va_list escapes.
29040
29041 2015-02-09 Richard Biener <rguenther@suse.de>
29042
29043 * genmatch.c (replace_id): Copy expr_type.
29044
29045 2015-02-09 Richard Biener <rguenther@suse.de>
29046
29047 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29048 (streamer_write_tree_bitfields): Declare.
29049 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29050 properly unpack padding.
29051 (unpack_value_fields): Inline ...
29052 (streamer_read_tree_bitfields): ... here.
29053 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29054 and properly add padding bits.
29055 (streamer_pack_tree_bitfields): Fold into ...
29056 (streamer_write_tree_bitfields): ... this new function,
29057 exposing the bitpack object.
29058 * lto-streamer-out.c (lto_write_tree_1): Call
29059 streamer_write_tree_bitfields.
29060
29061 2015-02-09 Richard Biener <rguenther@suse.de>
29062
29063 PR tree-optimization/54000
29064 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29065 (struct ivopts_data): Add loop_loc member.
29066 (tree_ssa_iv_optimize_loop): Dump loop location.
29067 (create_new_ivs): Likewise, also dump number of IVs generated.
29068
29069 2015-02-09 Martin Liska <mliska@suse.cz>
29070
29071 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29072 just if not yet registered.
29073 (ipa_icf_generate_summary): Register callgraph hooks.
29074
29075 2015-02-08 Andrew Pinski <apinski@cavium.com>
29076
29077 * config/aarch64/aarch64.c (gty_dummy): Delete.
29078
29079 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29080
29081 PR ipa/63566
29082 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29083 (cgraph_node::local_p): Remove thunk related FIXME.
29084
29085 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29086
29087 PR ipa/63566
29088 * i386.c (ix86_function_regparm): Look through aliases to see if callee
29089 is local and optimized.
29090 (ix86_function_sseregparm): Likewise; also use target's SSE math
29091 settings; error out instead of silently generating wrong code
29092 on mismatches.
29093 (init_cumulative_args): Look through aliases.
29094
29095 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29096
29097 PR ipa/63566
29098 * ipa-split.c (execute_split_functions): Split if function has aliases.
29099
29100 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29101
29102 PR ipa/63566
29103 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29104 aliases before trying to expand it.
29105 (cgraph_node::expand_thunk): Fix formating.
29106
29107 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
29108
29109 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29110 (Using Assembly Language with C): Expand introduction.
29111 (Basic Asm): Copy-edit. Add more information about uses of
29112 basic asm.
29113 (Extended Asm): Copy-edit. Document new escape syntax and
29114 %l[label] syntax.
29115 (Global Reg Vars): Copy-edit.
29116 (Local Reg Vars): Likewise.
29117
29118 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
29119
29120 PR debug/2714
29121 PR bootstrap/64256
29122 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29123 (DBX_CONTIN_CHAR): Define.
29124
29125 2015-02-06 Sebastian Pop <s.pop@samsung.com>
29126 Brian Rzycki <b.rzycki@samsung.com>
29127
29128 PR tree-optimization/64878
29129 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29130 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29131 Stop recursion at loop phi nodes after having visited a loop phi node.
29132
29133 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29134
29135 * toplev.c (process_options): Change flag_ipa_ra before creating
29136 optimization_{default,current}_node.
29137
29138 PR ipa/64896
29139 * cgraphunit.c (cgraph_node::expand_thunk): If
29140 restype is not is_gimple_reg_type nor the thunk_fndecl
29141 returns aggregate_value_p, set restmp to a temporary variable
29142 instead of resdecl.
29143
29144 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
29145
29146 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29147
29148 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29149
29150 PR target/64205
29151 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29152 add a general secondary reload handler for SDmode, unless we have
29153 both read/write support for SDmode.
29154
29155 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29156
29157 PR middle-end/64937
29158 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29159 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29160 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29161 1 before, push it to abstract_vec.
29162 (dwarf2out_abstract_function): Adjust caller. Don't call
29163 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29164 DECL_ABSTRACT_P flags for all abstract_vec elts.
29165
29166 2015-02-06 Renlin Li <renlin.li@arm.com>
29167
29168 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29169 complex gimple.
29170 * tree-ssa.c (execute_update_addresses_taken): Likewise.
29171
29172 2015-02-06 Jeff Law <law@redhat.com>
29173
29174 PR target/64889
29175 * config/h8300/h8300.c (push): New argument "in_prologue".
29176 Pass "in_prologue" along to "F".
29177 (h8300_push_pop): Corresponding changes.
29178 (h8300_expand_prologue): Likewise.
29179 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
29180
29181 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29182
29183 PR rtl-optimization/64957
29184 PR debug/64817
29185 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29186 IOR rather than for AND.
29187
29188 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
29189
29190 PR target/62631
29191 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29192 of shift-add and (add + shift) operations. Rename local variable.
29193
29194 2015-02-05 Jeff Law <law@redhat.com>
29195
29196 PR target/17306
29197 * config/h8300/constraints.md (U): Correctly dectect
29198 "eightbit_data" memory addresses.
29199 * config/h8300/h8300.c (eightbit_constant_address_p): Also
29200 handle (const (plus (symbol_ref (x)))) where x is declared
29201 as an 8-bit data memory address.
29202 * config/h8300/h8300.md (call, call_value): Correctly detect
29203 "funcvec" functions.
29204
29205 PR target/43264
29206 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29207 24 to 28 bits for the H8/300.
29208
29209 2015-02-06 Alan Modra <amodra@gmail.com>
29210
29211 PR target/64876
29212 * config/rs6000/rs6000.c (chain_already_loaded): New function.
29213 (rs6000_call_aix): Use it.
29214
29215 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
29216
29217 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29218 check.
29219
29220 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
29221
29222 * config/h8300/constraints.md ("U" constraint): Use strict
29223 variant of REG_OK_FOR_BASE_P after reload has started.
29224
29225 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
29226
29227 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29228 define to zero if !TARGET_NEON.
29229 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29230
29231 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29232 Trevor Saunders <tsaunders@mozilla.com>
29233
29234 PR ipa/61548
29235 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29236
29237 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29238
29239 PR ipa/61548
29240 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29241 when removing varpool nodes.
29242
29243 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29244
29245 PR ipa/61548
29246 * varpool.c (varpool_node::remove): Fix order of variables.
29247
29248 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29249
29250 PR ipa/64686
29251 * ipa-inline.c (inline_small_functions): Fix ordering issue between
29252 speculation resolution and key updates.
29253
29254 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29255
29256 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29257 about not letting any speculative edges unupdated.
29258
29259 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29260
29261 PR gcov/64123
29262 * gcov-io.c (gcov_var): Export.
29263
29264 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29265
29266 PR middle-end/64922
29267 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29268 edges that become speculative.
29269
29270 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29271
29272 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29273 or DW_LANG_Fortran08.
29274 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29275 DW_LANG_Fortran08.
29276 (gen_compile_unit_die): Handle "GNU Fortran2003" and
29277 "GNU Fortran2008" language strings.
29278 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29279 * langhooks.h (lang_GNU_Fortran): New prototype.
29280 * langhooks.c (lang_GNU_Fortran): New function.
29281 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29282 lang_GNU_Fortran.
29283
29284 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29285
29286 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29287 (RTX_OK_FOR_OLO10_P): Likewise.
29288
29289 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29290
29291 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29292
29293 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29294
29295 PR middle-end/64922
29296 * gimple.c: Include gimple-ssa.h.
29297 (maybe_remove_unused_call_args): New function.
29298 * gimple.h (maybe_remove_unused_call_args): Declare.
29299 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29300 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29301 * gimple-fold.c (gimple_fold_call): Likewise.
29302
29303 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
29304
29305 PR rtl-optimization/64905
29306 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29307 pointer alignment if it isn't needed.
29308
29309 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29310
29311 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29312 cortex-a72.cortex-a53.
29313 * config/aarch64/aarch64-tune.md: Regenerate.
29314 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29315
29316 2015-02-04 Nick Clifton <nickc@redhat.com>
29317
29318 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29319 inside a MEM.
29320
29321 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29322
29323 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29324 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29325 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29326 of DEF_BUILTIN.
29327 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29328 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29329 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29330 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29331 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29332 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29333 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29334 * tree-core.h (enum built_in_function): In between
29335 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29336 for builtins that use DEF_BUILTIN_CHKP macro.
29337
29338 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
29339
29340 PR debug/64817
29341 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29342 operands for tcc_comparison exprs. Fix typos.
29343
29344 PR debug/64817
29345 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29346 of two XORs that have an intervening AND or IOR.
29347
29348 PR debug/64817
29349 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29350 simplification of XOR of AND to not allocate new rtx before
29351 committing to a simplification.
29352
29353 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29354
29355 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29356 manual swaps in all peepholes.
29357
29358 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29359
29360 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29361 of manual swapping implementation.
29362 (aarch64_expand_vec_perm_const_1): Likewise.
29363
29364 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
29365
29366 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29367 (generic_addrcost_table): Remove NAMED_PARAM.
29368 (cortexa57_addrcost_table): Likewise.
29369 (xgene1_addrcost_table): Likewise.
29370 (generic_regmove_table): Likewise.
29371 (cortexa53_regmove_table): Likewise.
29372 (xgene1_regmove_table): Likewise.
29373 (generic_vector_table): Likewise.
29374 (cortexa57_vector_table): Likewise.
29375 (xgene1_vector_table): Likewise.
29376 (generic_tunings): Likewise.
29377 (cortexa53_tunings): Likewise.
29378 (cortexa57_tunings): Likewise.
29379 (xgene1_tunings): Likewise.
29380
29381 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29382
29383 * config/arm/arm-cores.def: Add cortex-a72 and
29384 cortex-a72.cortex-a53.
29385 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29386 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29387 * config/arm/arm-tune.md: Regenerate.
29388 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29389 "cortex-a72.cortex-a53".
29390 * doc/invoke.texi (ARM Options/-mtune): Likewise.
29391
29392 2015-02-04 Nick Clifton <nickc@redhat.com>
29393
29394 PR target/64408
29395 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29396 of accepted codes.
29397 (nonimmediate_di_operand): Likewise.
29398
29399 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29400 prefixes of known F5 using MSP430 MCUs.
29401
29402 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29403
29404 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29405 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29406 instead of __builtin_sqrt.
29407
29408 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
29409
29410 * varasm.c (do_assemble_alias): Follow transparent alias
29411 chain for target.
29412 (default_assemble_visibility): Follow transparent alias
29413 chain for decl name.
29414
29415 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
29416
29417 PR middle-end/62103
29418 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29419 to compute size of referenced value in the constant case.
29420
29421 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29422
29423 PR rtl-optimization/64756
29424 * cse.c (invalidate_dest): New function.
29425 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
29426 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29427 invalidate and do not record it.
29428
29429 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
29430
29431 PR target/64660
29432 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29433 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29434 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29435 atomic_nand<mode>_soft_tcb): New insns.
29436 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29437 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29438 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29439 Split into atomic_not_fetchsi_hard if operands[0] is unused.
29440 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29441 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29442 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
29443 atomic_not<mode>_hard if operands[0] is unused.
29444 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29445 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29446 if operands[0] is unused.
29447 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
29448 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29449 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29450 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29451 unused.
29452 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
29453 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29454 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29455 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29456 if operands[0] is unused.
29457 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
29458 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29459 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
29460 atomic_nand_fetchsi_hard if operands[0] is unused.
29461 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
29462 atomic_nand<mode>_hard if operands[0] is unused.
29463 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
29464 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29465 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
29466 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29467 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
29468 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29469 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29470 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29471 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
29472 atomic_not<mode>_hard if operands[0] is unused.
29473 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29474 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29475 unused.
29476 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29477 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29478 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
29479 atomic_nand<mode>_hard if operands[0] is unused.
29480 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29481 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29482
29483 2015-02-03 David Malcolm <dmalcolm@redhat.com>
29484
29485 PR jit/64810
29486 * Makefile.in (GCC_OBJS): Add gcc-main.o.
29487 * gcc-main.c: New file, containing "main" taken from gcc.c.
29488 * gcc.c (do_self_spec): Free decoded_options.
29489 (class driver): Move declaration to gcc.h.
29490 (main): Move declaration and implementation to new file
29491 gcc-main.c.
29492 (driver_get_configure_time_options): New function.
29493 * gcc.h (class driver): Move this declaration here, from
29494 gcc.c.
29495 (driver_get_configure_time_options): New declaration.
29496
29497 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
29498
29499 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29500 cross-module inlining.
29501 * cgraph.h (cgraph_node): Add flag merged.
29502 * ipa-icf.c (sem_function::merge): Maintain it.
29503
29504 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
29505
29506 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29507 instead of OBJECT_P.
29508
29509 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
29510
29511 PR target/62631
29512 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29513 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29514 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29515 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29516
29517 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29518
29519 PR other/63504
29520 * combine.c (reg_n_sets_max): New variable.
29521 (can_change_dest_mode, reg_nonzero_bits_for_combine,
29522 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29523 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29524 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29525 (rest_of_handle_combine): Initialize reg_n_sets_max.
29526
29527 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
29528
29529 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29530 if some always_inline was inlined, apply changes before inlining
29531 heuristically.
29532
29533 2015-02-02 David Malcolm <dmalcolm@redhat.com>
29534
29535 PR jit/64810
29536 * config/arm/arm.c (arm_option_override): Set
29537 arm_selected_arch/cpu/tune to NULL on entry.
29538
29539 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
29540 Andrew Pinski <pinskia@gcc.gnu.org>
29541 Jakub Jelinek <jakub@gcc.gnu.org>
29542
29543 PR target/64231
29544 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29545 integer typing for small model. Use IN_RANGE.
29546
29547 2015-02-02 Richard Biener <rguenther@suse.de>
29548
29549 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29550 * tree-vrp.c (vrp_valueize_1): Likewise.
29551
29552 2015-02-02 Alan Modra <amodra@gmail.com>
29553
29554 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29555 than mem for toc_restore.
29556 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29557 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29558 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29559
29560 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
29561
29562 PR target/64047
29563 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29564 explicit default options.
29565
29566 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
29567
29568 PR ipa/64872
29569 * ipa-utils.c (ipa_merge_profiles): Add release argument.
29570 * ipa-icf.c (sem_function::merge): Do not release body when merging.
29571 * ipa-utils.h (ipa_merge_profiles): Update prototype.
29572
29573 2015-02-01 Jakub Jelinek <jakub@redhat.com>
29574
29575 PR debug/64817
29576 * cfgexpand.c (deep_ter_debug_map): New variable.
29577 (avoid_deep_ter_for_debug): New function.
29578 (expand_debug_expr): If TERed SSA_NAME is in
29579 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29580 instead of trying to expand SSA_NAME's def stmt.
29581 (expand_debug_locations): When expanding debug bind
29582 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29583 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29584 value.
29585 (pass_expand::execute): Call avoid_deep_ter_for_debug on
29586 all debug bind stmts. Delete deep_ter_debug_map after
29587 expand_debug_location if non-NULL and clear it.
29588
29589 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
29590
29591 PR target/64851
29592 * config/sh/sync.md (atomic_fetch_notsi_hard,
29593 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29594 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29595 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29596 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29597 atomic_not_fetch<mode>_soft_imask): New insns.
29598
29599 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29600
29601 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29602 (rank_for_schedule_debug): Split from ...
29603 (rank_for_schedule): ... this.
29604 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29605 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29606
29607 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29608
29609 * doc/md.texi (Machine Constraints): Alphabetize table by target.
29610 * doc/extend.texi (x86 Variable Attributes): Move section to
29611 correct alphabetization after renaming.
29612 (x86 Type Attributes): Likewise.
29613 (Target Builtins): Re-alphabetize menu.
29614 (x86 Built-in Functions): Move section to correct alphabetization
29615 after renaming.
29616 (x86 transactional memory intrinsics): Likewise.
29617 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29618 and x86 Windows Options in table and menu.
29619 (x86 Options): Move section to correct alphabetization after
29620 renaming.
29621 (x86 Windows Options): Likewise.
29622
29623 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29624
29625 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29626 preferred names of the architecture and its 32- and 64-bit
29627 variants.
29628 * doc/invoke.texi: Likewise.
29629 * doc/md.texi: Likewise.
29630
29631 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29632
29633 PR target/64882
29634 * config/i386/predicates.md (address_no_seg_operand): Reject
29635 non-CONST_INT_P operands in invalid mode.
29636
29637 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29638
29639 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29640 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
29641 * config/i386/predicates.md (address_no_seg_operand): Call
29642 address_operand with VOIDmode.
29643 (vsib_address_operand): Ditto.
29644 (address_mpx_no_base_operand): Ditto.
29645 (address_mpx_no_index_operand): Ditto.
29646
29647 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29648
29649 PR target/64688
29650 * lra-constraints.c (original_subreg_reg_mode): New.
29651 (simplify_operand_subreg): Try to simplify subreg of const. Use
29652 original_subreg_reg_mode for it.
29653 (swap_operands): Update original_subreg_reg_mode.
29654 (curr_insn_transform): Set up original_subreg_reg_mode.
29655
29656 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29657
29658 PR target/64617
29659 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29660 function.
29661 (process_alt_operands): Use it.
29662 (curr_insn_transform): Check the optional reload pseudo class is
29663 ok for the mode.
29664
29665 2015-01-30 Joseph Myers <joseph@codesourcery.com>
29666
29667 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29668 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29669 prototype.
29670 * toplev.h (init_asm_output): Update comment on use of
29671 UNKNOWN_LOCATION with fatal_error.
29672 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29673 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29674 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29675 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29676 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29677 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29678 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29679 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29680 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29681 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29682 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29683 fatal_error changed to pass input_location as first argument.
29684
29685 2015-01-30 Martin Liska <mliska@suse.cz>
29686
29687 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29688 in #pragma GCC diagnostic guards.
29689
29690 2015-01-30 Richard Biener <rguenther@suse.de>
29691
29692 PR tree-optimization/64829
29693 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29694 not add a widening conversion pattern but hand off extra
29695 widenings to callers.
29696 (vect_recog_widen_mult_pattern): Handle extra widening produced
29697 by vect_handle_widen_op_by_const.
29698 (vect_recog_widen_shift_pattern): Likewise.
29699 (vect_pattern_recog_1): Remove excess vertical space in dumping.
29700 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29701 (vect_init_vector_1): Likewise.
29702 (vect_get_vec_def_for_operand): Likewise.
29703 (vect_finish_stmt_generation): Likewise.
29704 (vectorizable_load): Likewise.
29705 (vect_analyze_stmt): Likewise.
29706 (vect_is_simple_use): Likewise.
29707
29708 2015-01-29 Jeff Law <law@redhat.com>
29709
29710 * combine.c (try_combine): Fix typo in comment.
29711
29712 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
29713
29714 PR target/64580
29715 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29716 (rs6000_stack_info): Add assert.
29717 (rs6000_output_savres_externs): New function, split off from...
29718 (rs6000_output_function_prologue): ... here. Do not call it for
29719 thunks.
29720
29721 2015-01-29 Jeff Law <law@redhat.com>
29722
29723 PR target/15184
29724 * combine.c (try_combine): If I0 is a memory load and I3 a store
29725 to a related address, increase the "goodness" of doing a 4-insn
29726 combination with I0-I3.
29727 (make_field_assignment): Handle SUBREGs in the ior+and case.
29728
29729 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
29730
29731 PR tree-optimization/64746
29732 * tree-if-conv.c (mask_exists): New function.
29733 (predicate_mem_writes): Save created mask with given size for further
29734 use.
29735 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29736 (ifcvt_repair_bool_pattern): Collect all statements that are root
29737 of bool pattern and use iterative algorithm to remove multiple uses
29738 of predicates, display number of required iterations.
29739
29740 2015-01-29 Richard Biener <rguenther@suse.de>
29741
29742 PR tree-optimization/64853
29743 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29744 stmt will get simulated again.
29745 * tree-ssa-ccp.c (valueize_op_1): Likewise.
29746
29747 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29748
29749 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29750 return_in_pc. Remove redundant assignments.
29751 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29752 (arm_expand_epilogue): Don't compare boolean with true in if condition.
29753
29754 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
29755
29756 * config/i386/i386.c (ix86_mode_after): Make static.
29757
29758 2015-01-29 Richard Biener <rguenther@suse.de>
29759
29760 PR tree-optimization/64844
29761 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29762 dump cost model analysis.
29763 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29764 Do not register adjusted load/store costs here.
29765
29766 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29767 Uros Bizjak <ubizjak@gmail.com>
29768
29769 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29770 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29771 using x86_use_pseudo_pic_reg.
29772 * config/i386/i386.c (ix86_conditional_register_usage): Remove
29773 support for fixed PIC register.
29774 (ix86_use_pseudo_pic_reg): Not static any more.
29775
29776 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29777
29778 PR middle-end/64805
29779 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29780 to avoid error in cgraph node verification.
29781
29782 2015-01-29 Marek Polacek <polacek@redhat.com>
29783
29784 * doc/standards.texi: Reflect that the default for C is gnu11.
29785
29786 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
29787
29788 PR target/64761
29789 * reorg.c (switch_text_sections_between_p): New function.
29790 (relax_delay_slots): Call it when testing if the jump insn
29791 is removable. Use targetm.can_follow_jump when testing if
29792 the conditional branch can follow an unconditional jump.
29793
29794 2015-01-27 Caroline Tice <cmtice@google.com>
29795
29796 Committing VTV Cywin/Ming patch for Patrick Wollgast
29797 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29798 if -fvtable-verify=preinit/std is used.
29799 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29800 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29801 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29802 if -fvtable-verify=preinit/std is used.
29803 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29804 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29805 if -fvtable-verify=preinit/std is used.
29806 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29807 * config/i386/mingw32.h (LIB_SPEC): Likewise.
29808 * varasm.c (assemble_variable): Add code to properly set the comdat
29809 section and name for the .vtable_map_vars section in case the
29810 target is PE or COFF.
29811
29812 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29813
29814 PR ipa/64801
29815 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29816 make sane BB profile.
29817 (cgraph_node::expand_thunk): Make sane BB profile.
29818 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29819 * cgraph.h (init_lowered_empty_function): Update prototype.
29820 * config/i386/i386.c (make_resolver_func): Update call.
29821 * predict.c (gate): Disable branch prediction pass if
29822 profile is already there.
29823
29824 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29825
29826 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29827 * opth-gen.awk: Likewise.
29828 * common.opt: Mark flag_fp_contract_mode as Optimization.
29829
29830 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
29831
29832 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29833 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29834
29835 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
29836
29837 PR target/64659
29838 * config/sh/predicates.md (atomic_arith_operand,
29839 atomic_logical_operand): Remove.
29840 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29841 (atomic_arith_operand_0): New predicate.
29842 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29843 Use atomic_arith_operand_0 for input values.
29844 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29845 atomic_compare_and_swap<mode>_soft_gusa,
29846 atomic_compare_and_swap<mode>_soft_tcb,
29847 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29848 arith_reg_operand instead of register_operand.
29849 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
29850 atomic_arith_operand_0 for newval input.
29851 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29852 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29853 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29854 arith_reg_operand instead of register_operand.
29855 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29856 fetchop_predicate_1, fetchop_constraint_1_llcs,
29857 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29858 fetchop_constraint_1_imask): New code iterator attributes.
29859 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29860 register_operand. Use fetchop_predicate_1.
29861 (atomic_fetch_<fetchop_name>si_hard,
29862 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29863 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29864 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29865 and arith_reg_operand instead of register_operand. Use
29866 fetchop_predicate_1, fetchop_constraint_1_gusa.
29867 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29868 and arith_reg_operand instead of register_operand. Use
29869 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
29870 to allow R0 usage.
29871 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29872 and arith_reg_operand instead of register_operand. Use
29873 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
29874 to allow R0 usage.
29875 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29876 register_operand. Use atomic_logical_operand_1.
29877 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29878 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29879 arith_reg_operand instead of register_operand.
29880 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29881 Use arith_reg_dest and arith_reg_operand instead of register_operand.
29882 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
29883 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29884 register_operand. Use fetchop_predicate_1.
29885 (atomic_<fetchop_name>_fetchsi_hard,
29886 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29887 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29888 fetchop_constraint_1_llcs.
29889 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29890 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29891 fetchop_constraint_1_gusa.
29892 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29893 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29894 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
29895 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29896 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29897 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
29898 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29899 register_operand. Use atomic_logical_operand_1.
29900 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29901 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29902 arith_reg_operand instead of register_operand.
29903 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29904 arith_reg_operand instead of register_operand. Use logical_operand
29905 and K08. Adjust asm sequence to allow R0 usage.
29906 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29907 arith_reg_operand instead of register_operand. Use logical_operand
29908 and K08.
29909
29910 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29911
29912 PR other/63504
29913 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29914 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29915 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29916 only get_full_len HOST_WIDE_INTs from get_val () array rather than
29917 all bits in *val_wide.
29918
29919 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
29920
29921 * varpool.c (tls_model_names): Fix names.
29922 (varpool_node::dump): Dump tls- prefix for tls models.
29923
29924 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
29925 Bernd Schmidt <bernds@codesourcery.com>
29926 Nathan Sidwell <nathan@codesourcery.com>
29927
29928 * config/nvptx/mkoffload.c: New file.
29929 * config/nvptx/t-nvptx: Add build rules for it.
29930 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29931 (extra_programs): Add mkoffload.
29932 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29933 function.
29934 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29935
29936 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
29937
29938 PR middle-end/64809
29939 * cfgexpand.c (reorder_operands): Skip debug gimples.
29940
29941 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
29942
29943 PR tree-optimization/64277
29944 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29945 range info when possible to refine estimation.
29946
29947 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29948
29949 PR tree-optimization/64718
29950 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29951 be a 16bit unsigned integer when n->range is 16.
29952 (bswap_replace): Convert src to that type if necessary for all bswap
29953 sizes. Fix rotation right notation in nearby comment. Use bswap_type
29954 set in pass_optimize_bswap::execute ().
29955
29956 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
29957
29958 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29959 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29960 integer and floating point variants.
29961 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29962
29963 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
29964
29965 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29966 for all vector modes.
29967
29968 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29969
29970 PR bootstrap/64612
29971 * doc/sourcebuild.texi (comdat_group): Document.
29972
29973 2015-01-28 Terry Guo <terry.guo@arm.com>
29974
29975 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29976
29977 2015-01-27 David Malcolm <dmalcolm@redhat.com>
29978
29979 * toplev.c (print_version): Add param "show_global_state", and
29980 only print GGC and plugin information if it is true.
29981 (init_asm_output): Pass in "true" for the new param when calling
29982 print_version.
29983 (process_options): Likewise.
29984 (toplev::main): Likewise.
29985 * toplev.h (print_version): Add new param to decl.
29986
29987 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29988
29989 PR ipa/60871
29990 PR ipa/64139
29991 * tree.c (lookup_binfo_at_offset): New function.
29992 (get_binfo_at_offset): Use it.
29993
29994 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29995
29996 PR ipa/64282
29997 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29998 on vtable being vtable.
29999
30000 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
30001
30002 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30003 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30004 -mhotpatch= option.
30005 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30006 -mno-hotpatch options. Change syntax of -mhotpatch= option.
30007 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30008 Renamed.
30009 (s390_hotpatch_trampoline_halfwords_max): Renamed.
30010 (s390_hotpatch_hw_max): New name.
30011 (s390_hotpatch_trampoline_halfwords): Renamed.
30012 (s390_hotpatch_hw_before_label): New name.
30013 (get_hotpatch_attribute): Removed.
30014 (s390_hotpatch_hw_after_label): New name.
30015 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30016 attribute.
30017 (s390_attribute_table): Ditto.
30018 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30019 (s390_function_num_hotpatch_hw): New name.
30020 Remove special handling of inline functions and hotpatching.
30021 Return number of nops before and after the function label.
30022 (s390_can_inline_p): Removed.
30023 (s390_asm_output_function_label): Emit a configurable number of nops
30024 after the function label.
30025 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30026 (TARGET_CAN_INLINE_P) Removed.
30027 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30028
30029 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30030 Jiong Wang <jiong.wang@arm.com>
30031
30032 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30033 of scratch reg.
30034 (cb<optab><mode>1): Likewise.
30035 * config/aarch64/iterators.md (bcond): New define_code_attr.
30036
30037 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30038
30039 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30040 memory accesses.
30041
30042 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30043
30044 * config/s390/s390.c (s390_register_move_cost): Increase costs for
30045 FPR->GPR moves.
30046
30047 2015-01-27 Richard Biener <rguenther@suse.de>
30048
30049 * tree-vrp.c (update_value_range): Intersect the range with
30050 old recorded SSA name range information.
30051
30052 2015-01-27 Nick Clifton <nickc@redhat.com>
30053
30054 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30055 BC, DE and HL registers directly, not via AX.
30056 When decrementing the stack pointer by a large amount, transfer SP
30057 into AX and perform the subtraction there.
30058 (rl78_expand_epilogue): Perform the inverse of the above
30059 enhancements.
30060
30061 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30062
30063 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30064
30065 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30066 Yury Gribov <y.gribov@samsung.com>
30067
30068 PR ubsan/64741
30069 * ubsan.c (ubsan_source_location): Refactor code.
30070 (ubsan_type_descriptor): Update type size. Refactor code.
30071
30072 2015-01-27 Richard Biener <rguenther@suse.de>
30073
30074 PR tree-optimization/56273
30075 PR tree-optimization/59124
30076 PR tree-optimization/64277
30077 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30078 from the first VRP pass.
30079
30080 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30081
30082 PR ipa/64776
30083 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30084 handle the first argument in the same loop as all the other arguments.
30085
30086 PR rtl-optimization/61058
30087 * jump.c (cleanup_barriers): Update basic block boundaries
30088 if BLOCK_FOR_INSN is non-NULL on PREV.
30089
30090 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
30091
30092 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30093 bounds narrowing, already instrumented calls and calls to
30094 not instrumentable functions.
30095
30096 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30097
30098 PR tree-optimization/64807
30099 * wide-int.cc (wi::divmod_internal): Clear
30100 b_dividend[dividend_blocks_needed].
30101
30102 2015-01-26 DJ Delorie <dj@redhat.com>
30103
30104 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30105 volatile memory references.
30106
30107 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
30108
30109 PR target/49263
30110 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30111 remove_insn.
30112 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30113 shifts if it already fits into K08.
30114
30115 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30116
30117 PR ipa/64730
30118 * ipa-inline.c (inline_small_functions): Print "unknown" even
30119 if edge->call_stmt is non-NULL, but has builtins or unknown
30120 location.
30121
30122 PR middle-end/64421
30123 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30124 with asterisk, skip the first character.
30125
30126 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 PR target/64806
30129 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30130 order change.
30131
30132 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
30133
30134 PR target/64795
30135 * config/i386/i386.md (*movdi_internal): Also check operand 0
30136 to determine TYPE_LEA operand.
30137 (*movsi_internal): Ditto.
30138
30139 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30140
30141 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30142 OPTION_MASK_QUAD_MEMORY_ATOMIC.
30143
30144 2015-01-26 Renlin Li <renlin.li@arm.com>
30145
30146 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30147 the comment.
30148 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30149 for higher part.
30150
30151 2015-01-26 Richard Biener <rguenther@suse.de>
30152
30153 PR middle-end/64764
30154 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30155 combining two BIT_AND_EXPR predicates.
30156
30157 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30158
30159 PR bootstrap/64754
30160 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30161
30162 2015-01-26 Terry Guo <terry.guo@arm.com>
30163
30164 * config/arm/arm.c (arm_file_start): Update the assignment of
30165 Tag_ABI_HardFP_use.
30166
30167 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
30168
30169 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30170 pipeline model.
30171 config/arm/arm.md: Include the new Cortex-A57 model.
30172 (generic_sched): Don't use generic_sched when tuning for
30173 Cortex-A57.
30174
30175 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
30176 Uros Bizjak <ubizjak@gmail.com>
30177
30178 * config/i386/i386.c (get_builtin_code_for_version): Add
30179 support for BMI and BMI2 multiversion functions.
30180
30181 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30182
30183 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30184 (extract_bit_field): Likewise.
30185 (extract_low_bits): Likewise.
30186 (expand_mult): Likewise.
30187 (expand_mult_highpart_adjust): Likewise.
30188
30189 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
30190
30191 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30192 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30193 * config/i386/i386.c (processor_model): Add
30194 M_INTEL_COREI7_BROADWELL.
30195 (arch_names_table): Add "broadwell".
30196
30197 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
30198
30199 PR target/49263
30200 PR target/53987
30201 PR target/64345
30202 PR target/59533
30203 PR target/52933
30204 PR target/54236
30205 PR target/51244
30206 * config/sh/sh-protos.h
30207 (sh_extending_set_of_reg::can_use_as_unextended_reg,
30208 sh_extending_set_of_reg::use_as_unextended_reg,
30209 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30210 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30211 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30212 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30213 (sh_treg_insns): New class.
30214 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30215 (scope_counter): New class.
30216 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30217 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30218 sh_extending_set_of_reg::can_use_as_unextended_reg,
30219 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30220 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30221 sh_split_treg_set_expr): New functions.
30222 (addsubcosts): Handle treg_set_expr.
30223 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30224 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30225 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30226 (sh_insn_operands_modified_between_p): Make non-static.
30227 * config/sh/predicates.md (zero_extend_movu_operand): Allow
30228 simple_mem_operand in addition to displacement_mem_operand.
30229 (zero_extend_operand): Don't allow zero_extend_movu_operand.
30230 (treg_set_expr, treg_set_expr_not_const01,
30231 arith_reg_or_treg_set_expr): New predicates.
30232 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30233 arith_or_int_operand instead of logical_operand. Convert to
30234 insn_and_split. Try to optimize constant operand in splitter.
30235 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
30236 (*tstqi_t_zero): Delete.
30237 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30238 (tstsi_t_and_not): Delete.
30239 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30240 Convert to insn_and_split.
30241 (unnamed split, tstsi_t_zero_extract_xor,
30242 tstsi_t_zero_extract_subreg_xor_little,
30243 tstsi_t_zero_extract_subreg_xor_big): Delete.
30244 (*tstsi_t_shift_mask): New insn_and_split.
30245 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30246 to recombine with surrounding insns when splitting.
30247 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30248 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30249 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30250 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30251 (*cbranch_div0s: Delete.
30252 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30253 Try to recombine with surrounding insns when splitting. Add operand
30254 order variants.
30255 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30256 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30257 *addc_r_r_msb, *addc_2r_msb): Delete.
30258 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
30259 order variant.
30260 (*addc_negreg_t): New insn_and_split.
30261 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30262 Try to recombine with surrounding insns when splitting.
30263 Add operand order variants.
30264 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30265 insn_and_split patterns.
30266 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
30267 surrounding insns when splitting.
30268 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30269 (*rotcl): Likewise. Add zero_extract variant.
30270 (*ashrsi2_31): New insn_and_split.
30271 (*negc): Convert to insn_and_split. Use treg_set_expr.
30272 (*zero_extend<mode>si2_disp_mem): Update comment.
30273 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30274 condition.
30275 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
30276 with surrounding insns when splitting.
30277 (any_treg_expr_to_reg): New insn_and_split.
30278 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30279 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30280 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30281 *zero_extract_2): New single bit zero extract patterns.
30282 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30283 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30284 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30285 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30286 set destination.
30287 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30288 register_operand for set source.
30289
30290 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
30291
30292 * i386.opt (prefetch_sse): New targetsave.
30293 * i386.c (ix86_function_specific_save): Save prefetch_sse.
30294 (ix86_function_specific_restore): Restore prefetch_sse and initialize
30295 ix86_cost/ix86_tune_cost.
30296
30297 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30298
30299 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30300 Support the JIT by using 0 as the language type.
30301
30302 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
30303
30304 PR target/64317
30305 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
30306 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30307 (mark_regno_live, process_bb_lives): Pass new parameter value to
30308 make_hard_regno_born.
30309
30310 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30311
30312 PR rtl-optimization/63637
30313 PR rtl-optimization/60663
30314 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30315 if elt->cost is MAX_COST for ASM_OPERANDS.
30316 (find_sets_in_insn): Fix up comment typo.
30317 (cse_insn): Don't set src_volatile for all non-volatile
30318 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30319 or with "memory" clobber. Set elt->cost to MAX_COST
30320 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
30321 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30322
30323 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30324
30325 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30326 alternative 1.
30327
30328 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30329
30330 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30331 libgcc/config/i386/elf-lib.h.
30332
30333 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30334
30335 PR driver/64737
30336 * gcc.c (print_configuration): Don't print a blank line at the end
30337 here...
30338 (run_attempt): ... but here unstead.
30339
30340 PR middle-end/64734
30341 * omp-low.c (scan_sharing_clauses): Don't ignore
30342 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30343 on target data/update constructs.
30344
30345 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
30346
30347 PR target/50928
30348 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30349 (DEBUG_RELOAD): Removed define.
30350 (m32c_limit_reload_class): Enable traces with if DEBUG0.
30351 (m32c_function_arg): Added a type cast.
30352 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30353 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30354 * config/m32c/bitops.md (andqi3_16): Likewise.
30355 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30356 (push_a01_l): Likewise.
30357
30358 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30359
30360 PR jit/64721
30361 * main.c (main): Construct toplev instances with init_signals=true.
30362 * toplev.c (general_init): Add param "init_signals", and use it to
30363 conditionalize the calls to signal and host_hooks.extra_signals.
30364 (toplev::toplev): Add param "init_signals".
30365 (toplev::main): When invoking general_init, pass m_init_signals
30366 to control whether signal-handlers are installed.
30367 * toplev.h (toplev::toplev): Add param "init_signals".
30368 (toplev::m_init_signals): New field.
30369
30370 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30371
30372 PR jit/64722
30373 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30374 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30375 latter may be affected by the former (e.g. on i686).
30376
30377 2015-01-23 Martin Liska <mliska@suse.cz>
30378
30379 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30380 false positive during profiledbootstrap.
30381
30382 2015-01-23 Tom de Vries <tom@codesourcery.com>
30383
30384 PR libgomp/64672
30385 * lto-opts.c (lto_write_options): Output non-explicit conservative
30386 -fno-openacc.
30387 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30388 (append_compiler_options): Pass -fopenacc through.
30389
30390 2015-01-23 Tom de Vries <tom@codesourcery.com>
30391
30392 PR libgomp/64707
30393 * lto-opts.c (lto_write_options): Output non-explicit conservative
30394 -fno-openmp.
30395 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30396 (append_compiler_options): Pass -fopenmp through.
30397
30398 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30399
30400 PR debug/64511
30401 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30402 GTY markup.
30403
30404 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30405 * diagnostic.def (DK_ICE_NOBT): New kind.
30406 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30407 like DK_ICE, but never print backtrace.
30408 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30409 (internal_error_no_backtrace): New function.
30410 * gcc.c (execute): Use internal_error_no_backtrace instead of
30411 internal_error.
30412
30413 2015-01-22 Jeff Law <law@redhat.com>
30414
30415 PR target/52076
30416 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30417 improve code density for small immediate to memory case.
30418 (insv): Better handle bitfield assignments when the field is
30419 being set to all ones.
30420 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30421 operand predicate.
30422
30423 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30424 Jakub Jelinek <jakub@redhat.com>
30425
30426 PR middle-end/64729
30427 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30428 for !TARGET_LIBC_PROVIDES_SSP version and
30429 -fstack-protector-{all,strong,explicit} otherwise.
30430 * config/freebsd.h (LINK_SSP_SPEC): Handle
30431 -fstack-protector-{strong,explicit}.
30432
30433 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
30434 H.J. Lu <hongjiu.lu@intel.com>
30435
30436 PR ipa/64694
30437 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30438 heap.
30439
30440 2015-01-22 Wei Mi <wmi@google.com>
30441
30442 PR rtl-optimization/64557
30443 * dse.c (record_store): Call get_addr for mem_addr.
30444 (check_mem_read_rtx): Likewise.
30445
30446 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
30447
30448 * fold-const.c (const_binop): Add early return for non-tcc_binary.
30449
30450 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
30451
30452 * toplev.c (init_local_tick): Process the failure when read
30453 fails for random_seed.
30454
30455 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30456 'pretty_name' to avoid memory overflow.
30457
30458 2015-01-22 Richard Biener <rguenther@suse.de>
30459
30460 PR middle-end/64728
30461 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30462 abnormal coalescing on undefined SSA names.
30463
30464 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
30465
30466 PR target/64688
30467 PR target/64477
30468 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30469 for alternative 3.
30470 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30471
30472 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
30473
30474 PR middle-end/63325
30475 * fold-const.c (fold_checksum_tree): Don't include value of
30476 expr->decl_with_vis.symtab_node in the checksum.
30477
30478 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30479
30480 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30481
30482 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
30483
30484 PR driver/64690
30485 * gcc.c (insert_comments): New function.
30486 (try_generate_repro): Call it.
30487 (append_text): Removed.
30488
30489 2015-01-22 Richard Biener <rguenther@suse.de>
30490
30491 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30492 with IL incompatible options. Properly honor user optimize
30493 attributes.
30494
30495 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
30496
30497 PR rtl-optimization/64682
30498 * combine.c (distribute_notes): When moving a death note for
30499 a register that is set in the new I2, make sure to put it
30500 before that new I2.
30501
30502 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
30503
30504 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30505 not TARGET_DEFAULT.
30506
30507 2015-01-21 Jakub Jelinek <jakub@redhat.com>
30508
30509 PR debug/64511
30510 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30511 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30512 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30513
30514 PR sanitizer/64706
30515 * doc/invoke.texi (-fsanitize=vptr): Document.
30516
30517 PR rtl-optimization/62078
30518 * dse.c: Include cfgcleanup.h.
30519 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30520 anything call purge_all_dead_edges and cleanup_cfg at the end
30521 of the pass.
30522
30523 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
30524
30525 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30526 edges.
30527
30528 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30529
30530 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30531 decl attribute.
30532
30533 2015-01-21 David Sherwood <david.sherwood@arm.com>
30534 Tejas Belagod <Tejas.Belagod@arm.com>
30535
30536 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30537 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30538 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30539 Removed.
30540
30541 2015-01-21 David Sherwood <david.sherwood@arm.com>
30542 Tejas Belagod <Tejas.Belagod@arm.com>
30543
30544 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30545 (aarch64_reverse_mask): New decls.
30546 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30547 (insn_count): New mode_attr.
30548 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30549 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30550 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30551 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30552 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30553 (aarch64_simd_st4): New patterns.
30554 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30555 (aarch64_reverse_mask): New functions.
30556
30557 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
30558
30559 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30560 Declare.
30561 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30562 addressing modes for BE.
30563 (aarch64_print_operand): Add 'R' specifier.
30564 (aarch64_simd_disambiguate_copy): Delete.
30565 (aarch64_simd_emit_reg_reg_move): New function.
30566 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30567 in define_splits for structural moves.
30568 (mov<mode>): Use less restrictive predicates.
30569 (*aarch64_mov<mode>): Simplify and only allow for LE.
30570 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30571
30572 2015-01-21 Alan Hayward <alan.hayward@arm.com>
30573
30574 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30575
30576 2015-01-21 Richard Henderson <rth@redhat.com>
30577
30578 PR target/64669
30579 * ccmp.c (used_in_cond_stmt_p): Remove.
30580 (expand_ccmp_expr): Don't use it.
30581
30582 2015-01-21 Nick Clifton <nickc@redhat.com>
30583
30584 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30585 PARALLELs.
30586
30587 2015-01-21 Richard Biener <rguenther@suse.de>
30588
30589 PR middle-end/64313
30590 * tree-core.h (builtin_info, builtin_info_type): Turn from
30591 an object with two arrays into an array of an object with
30592 decl and two flags, implicit_p and declared_p.
30593 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30594 set_builtin_decl, set_builtin_decl_implicit_p,
30595 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30596 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30597 * builtins.c (builtin_info): Adjust.
30598 * gimplify.c (gimplify_addr_expr): References to builtins
30599 that have been declared by the user makes them eligible for
30600 use by the compiler. Call set_builtin_decl_implicit_p on them.
30601
30602 2015-01-20 Jeff Law <law@redhat.com>
30603
30604 PR target/59946
30605 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30606 allow pc-relative addresses in operand predicates or constraints.
30607
30608 2015-01-21 Bin Cheng <bin.cheng@arm.com>
30609
30610 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30611 neon on aarch32 processors for stringops.
30612
30613 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30614
30615 PR ipa/63576
30616 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30617
30618 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30619
30620 PR lto/45375
30621 * ipa-inline.c: Include lto-streamer.h
30622 (report_inline_failed_reason): Output source file differences and
30623 flags on optimization/target node mismatch.
30624 (can_inline_edge_p): Consider caller to be the outer inline function;
30625 be less restrictive about matching opimize and optimize_size attributes.
30626 (inline_account_function_p): Break out from ...
30627 (inline_small_functions): ... here.
30628 * ipa-inline-transform.c (clone_inlined_nodes): Use
30629 inline_account_function_p.
30630 (inline_call): Use optimize attribution; use inline_account_function_p.
30631 (inline_transform): Use opt_for_fn.
30632 * ipa-inline.h (inline_account_function_p): Declare.
30633
30634 2015-01-20 Jakub Jelinek <jakub@redhat.com>
30635
30636 PR debug/64663
30637 * dwarf2out.c (decl_piece_node): Don't put bitsize into
30638 mode if bitsize <= 0.
30639 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30640 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30641 sizes and positions.
30642
30643 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
30644
30645 * config/nios2/nios2.c (nios2_asm_file_end): Implement
30646 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30647 needed.
30648 (TARGET_ASM_FILE_END): Define.
30649
30650 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30651
30652 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30653 (struct tune_params): Use the enum.
30654 * arm.c (arm_*_tune): Update.
30655 (arm_option_override): Update.
30656
30657 2015-01-20 Richard Biener <rguenther@suse.de>
30658
30659 PR ipa/64684
30660 * ipa-reference.c (add_static_var): Inline ...
30661 (analyze_function): ... here after splitting out from ...
30662 (is_proper_for_analysis): ... this.
30663
30664 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
30665
30666 PR target/64149
30667 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30668 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30669 replace the conditional with it's true branch.
30670 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30671 (arm_lra_p): Remove.
30672
30673 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
30674
30675 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30676
30677 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30678
30679 * config/tilegx/mul-tables.c: Move symtab.h include after
30680 coretypes.h include.
30681 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30682 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30683 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30684 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30685 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30686
30687 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
30688
30689 PR bootstrap/64676
30690 Revert:
30691 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30692
30693 PR rtl-optimization/64081
30694 * loop-iv.c (def_pred_latch_p): New function.
30695 (latch_dominating_def): Allow specific cases with non-single
30696 definitions.
30697 (iv_get_reaching_def): Likewise.
30698 (check_complex_exit_p): New function.
30699 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30700 with exits not executing on any iteration.
30701
30702 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30703
30704 PR lto/45375
30705 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30706 to set branch cost.
30707
30708 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30709
30710 PR lto/45375
30711 * i386.c (gate): Check flag_expensive_optimizations and
30712 optimize_size.
30713 (ix86_option_override_internal): Drop optimize_size condition
30714 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30715 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30716 MASK_PREFER_AVX128.
30717 (ix86_avx256_split_vector_move_misalign,
30718 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30719 * sse.md (all uses of TARGET_PREFER_AVX128): Add
30720 optimize_insn_for_speed_p check.
30721
30722 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
30723
30724 * config/mips/mips.h (FP_ASM_SPEC): New define.
30725 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30726 instead.
30727
30728 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
30729
30730 PR target/53988
30731 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30732 nullptr for insn when reaching the first insn.
30733 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30734 (sh_insn_operands_modified_between_p): Add nullptr check.
30735 (sh_find_extending_set_of_reg): Fix log message. Don't accept
30736 sign extending mem load if the insn contains any UNSPEC or
30737 UNSPEC_VOLATILE.
30738
30739 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30740
30741 * params.def (inline-unit-growth): Drop to 15%.
30742 * invoke.texi (inline-unit-growth): Document change.
30743
30744 2015-01-19 Martin Liska <mliska@suse.cz>
30745
30746 PR ipa/64668
30747 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30748 function for second argument of OBJ_TYPE_REF.
30749
30750 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30751
30752 PR ipa/64218
30753 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30754 whether function is an alias.
30755
30756 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30757
30758 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30759 cases.
30760
30761 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
30762
30763 PR rtl-optimization/64671
30764 * lra-remat.c (operand_to_remat): Don't consider jump and call
30765 insns.
30766
30767 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
30768
30769 PR target/59828
30770 * config/rs6000/default64.h: Include rs6000-cpus.def.
30771 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30772 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30773 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30774 and POWER8.
30775 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30776 POWER8.
30777 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30778 pseudo-op to specify assembler dialect.
30779
30780 2015-01-19 Martin Liska <mliska@suse.cz>
30781
30782 PR ipa/64664
30783 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30784 Handle safe potentially removed nodes during filtering.
30785
30786 2015-01-19 Martin Liska <mliska@suse.cz>
30787
30788 * doc/extend.texi (no_icf): Add new attribute description.
30789 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30790 where the pass attempts to merge a function with no_icf attribute.
30791
30792 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30793
30794 PR target/64532
30795 * doc/md.texi (ARM Options): Document register constraints.
30796
30797 2015-01-19 Jiong Wang <jiong.wang@arm.com>
30798 Andrew Pinski <apinski@cavium.com>
30799
30800 PR target/64304
30801 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30802 (ashl<mode>3): Don't expand if operands[2] is not constant.
30803
30804 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30805
30806 PR target/64448
30807 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30808 Match xor-and-xor RTL pattern.
30809
30810 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30811
30812 PR rtl-optimization/64081
30813 * loop-iv.c (def_pred_latch_p): New function.
30814 (latch_dominating_def): Allow specific cases with non-single
30815 definitions.
30816 (iv_get_reaching_def): Likewise.
30817 (check_complex_exit_p): New function.
30818 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30819 with exits not executing on any iteration.
30820
30821 2015-01-19 Jakub Jelinek <jakub@redhat.com>
30822
30823 * common.opt (fgraphite): Fix a typo.
30824
30825 2015-01-19 Felix Yang <felix.yang@huawei.com>
30826
30827 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30828 pattern.
30829 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30830 uminp, smax_nanp, smin_nanp): New builtins.
30831 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30832 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30833 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30834 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30835 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30836 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30837 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30838 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30839 vpminnms_f32): Rewrite using builtin functions.
30840
30841 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
30842
30843 PR libgomp/64625
30844 * omp-low.c (offload_symbol_decl): Remove variable.
30845 (get_offload_symbol_decl): Remove function.
30846 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30847 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30848 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30849 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30850 BUILT_IN_GOACC_UPDATE don't pass it at all.
30851
30852 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30853
30854 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30855 callers.
30856
30857 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30858
30859 * ipa-chkp.c (chkp_produce_thunks): Add early param
30860 to split thunks production into two passes. Keep
30861 'always_inline' function bodies after the first pass.
30862 (pass_data_ipa_chkp_early_produce_thunks): New.
30863 (pass_ipa_chkp_early_produce_thunks): New.
30864 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30865 chkp_produce_thunks signature.
30866 (make_pass_ipa_chkp_early_produce_thunks): New.
30867 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30868 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30869 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30870
30871 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30872
30873 * cgraph.c (cgraph_node::dump): Dump profile flags.
30874
30875 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
30876
30877 PR target/64652
30878 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30879 reg appear first in the parallel.
30880
30881 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30882
30883 * ipa-reference.c (set_reference_optimization_summary,
30884 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30885 disabled.
30886 (ignore_module_statics): New static var.
30887 (propagate_bits): If ipa-reference is disabled, do not look into local
30888 properties.
30889 (analyze_function): Disable analysis when ipa_reference is disabled.
30890 (generate_summary): Do not dump when reference is disabled;
30891 collect vars accessed from functions with ipa-reference disabled.
30892 (get_read_write_all_from_node): When ipa-reference is disabled, use the
30893 node flags.
30894 (gate): Enable for LTO.
30895 (ignore_edge_p): New function.
30896 (propagate): Skip functions w/o ipa-reference analysis.
30897 * optc-save-gen.awk: Handle optimize_debug correctly.
30898 * opth-gen.awk: Likewise.
30899 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30900 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30901 fira-share-save-slots, fira-share-spill-slots,
30902 fmodulo-sched-allow-regmoves, fpartial-inlining,
30903 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30904 ftracer, ftree-parallelize-loops, fassociative-math,
30905 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30906 Optimization
30907 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30908 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30909 Optimization.
30910 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30911 Fix for IPA.
30912
30913 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30914
30915 PR ipa/64378
30916 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30917 flag correctly.
30918 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30919
30920 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
30921
30922 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30923 Remove duplicate option listings.
30924
30925 2015-01-18 Felix Yang <felix.yang@huawei.com>
30926
30927 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30928 (autofdo_source_profile::get_callsite_total_count,
30929 function_instance::get_function_instance_by_decl,
30930 string_table::get_index, string_table::get_index_by_decl,
30931 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30932 Fix comment typos. Reformatting and minor code rearrangement.
30933
30934 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30935
30936 * config/rs6000/rs6000.md (probe_stack): Delete.
30937 (probe_stack_address): New.
30938
30939 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30940
30941 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30942 to test for 32-bit ABIs, not !TARGET_POWERPC64.
30943
30944 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30945
30946 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30947 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
30948 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
30949 snafu.
30950 (rs6000_libcall_value): Use the new function.
30951
30952 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
30953
30954 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30955
30956 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
30957
30958 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30959 implement a more precise life analysis for it during backward scan.
30960
30961 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30962
30963 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30964
30965 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
30966
30967 PR rtl-optimization/52773
30968 * calls.c (emit_library_call_value): When pushing arguments use
30969 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30970 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
30971 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30972
30973 2015-01-17 Jeff Law <law@redhat.com>
30974
30975 PR rtl-optimization/32790
30976 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30977 not ZERO_EXTEND in SET_DESTs.
30978
30979 2015-01-17 Alan Modra <amodra@gmail.com>
30980
30981 * cprop.c (do_local_cprop): Revert last change.
30982
30983 2015-01-16 DJ Delorie <dj@redhat.com>
30984 Nick Clifton <nickc@redhat.com>
30985
30986 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30987 (addhi3_real): Likewise. Fix [HL+0] syntax.
30988 (subqi3_real): Likewise.
30989 (subhi3_real): Likewise.
30990 (cbranchqi4_real): Likewise. Allow saddr,#imm.
30991 (cbranchhi4_real): Likewise.
30992 (cbranchhi4_real_inverted): Likewise.
30993 (cbranchsi4_real_lt): Likewise.
30994 (cbranchsi4_real_ge): Likewise.
30995 (cbranchsi4_real_ge): Likewise.
30996 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30997 (sub<mode>3_virt): Likewise.
30998 (cbranchqi4_virt): Likewise.
30999 (cbranchhi4_virt): Likewise.
31000 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31001 always use '[reg+imm]' even when imm is zero.
31002 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31003 (rl78_general_operand): New.
31004 (rl78_nonimmediate_operand): New.
31005 (rl78_nonfar_operand): Use them.
31006 (rl78_nonfar_nonimm_operand): Likewise.
31007 (rl78_stack_based_mem): Fix.
31008 * config/rl78/constraints.md (Ibqi): New.
31009 (IBqi): New.
31010 (Wsa): New.
31011 (Wsf): New.
31012 (Cs1): Fix.
31013 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31014 (iorqi3): Likewise.
31015 (xorqi3): Likewise.
31016 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31017
31018 * config/rl78/constrains (Qs8): New constraint.
31019 * config/rl78/rl78.c (rl78_flags_already_set): New function.
31020 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31021 * config/rl78/rl78-real.md (update_Z): New attribute.
31022 Update patterns to set it.
31023 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31024 shorter compare and branch sequence can be used.
31025 (cbranchhi4_real): Likewise.
31026 (cbranchhi4_real_inverted): Likewise.
31027
31028 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31029 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31030 address space.
31031 * config/rl78/rl78.c (rl78_get_name_encoding): New.
31032 (rl78_option_override): Allow -mes0 only if C.
31033 (characterize_address): Support subregs of symbol_refs.
31034 (rl78_addr_space_address_mode): Move. Add __near.
31035 (rl78_far_p): Likewise.
31036 (rl78_addr_space_pointer_mode): Likewise.
31037 (rl78_as_legitimate_address): Likewise.
31038 (rl78_addr_space_subset_p): Likewise.
31039 (rl78_addr_space_convert): Likewise.
31040 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31041 symbols with -mes0.
31042 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
31043 addressing.
31044 (rl78_alloc_physical_registers_op1): Change logic to prefer
31045 symbol[BC] addressing.
31046 (frodata_section): New.
31047 (rl78_asm_init_sections): Initialize it.
31048 (rl78_select_section): Put __far readonly symbols in .frodata.
31049 (rl78_make_type_far): New.
31050 (rl78_insert_attributes): Force all readonly symbols to be
31051 __far when -mes0.
31052 (rl78_asm_out_integer): New.
31053 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31054 * config/rl78/rl78.opt (-mes0): New.
31055
31056 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31057 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31058 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31059 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31060 (rl78_saddr_p): New.
31061 (rl78_output_aligned_common): New.
31062 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31063 (rl78_handle_saddr_attribute): New.
31064 (rl78_handle_naked_attribute): New.
31065 (rl78_attribute_table): Add saddr.
31066 (rl78_print_operand_1): Don't print '!' on saddr operands.
31067 (rl78_print_operand_1): Strip encodings.
31068 (rl78_sfr_p): New.
31069 (rl78_strip_name_encoding): New.
31070 (rl78_attrlist_to_encoding): New.
31071 (rl78_encode_section_info): New.
31072 (rl78_asm_init_sections): New.
31073 (rl78_select_section): New.
31074 (rl78_output_labelref): New.
31075 (rl78_output_aligned_common): New.
31076 (rl78_asm_out_integer): New.
31077 (rl78_asm_ctor_dtor): New.
31078 (rl78_asm_constructor): New.
31079 (rl78_asm_destructor): New.
31080
31081 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31082 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31083 (transcode_memory_rtx): Update.
31084 (rl78_expand_epilogue): Use A_REG instead of 0.
31085
31086 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31087
31088 * config/arm/arm-protos.h (struct tune_params): New field
31089 sched_autopref_queue_depth.
31090 * config/arm/arm.c (sched-int.h): Include header.
31091 (arm_first_cycle_multipass_dfa_lookahead_guard,)
31092 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31093 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31094 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31095 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31096 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31097 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31098 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31099 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
31100 * config/arm/t-arm (arm.o): Update.
31101 * haifa-sched.c (update_insn_after_change): Update.
31102 (rank_for_schedule): Use auto-prefetcher model, if requested.
31103 (autopref_multipass_init): New static function.
31104 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31105 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31106 variable for debug dumps.
31107 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31108 (autopref_multipass_dfa_lookahead_guard): New global function that
31109 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31110 (init_h_i_d): Update.
31111 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31112 * sched-int.h (enum autopref_multipass_data_status): New const enum.
31113 (autopref_multipass_data_): Structure for auto-prefetcher data.
31114 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31115 (struct _haifa_insn_data:autopref_multipass_data): New field.
31116 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31117 (autopref_multipass_dfa_lookahead_guard): Declare.
31118
31119 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31120
31121 * rtlanal.c (get_base_term): Handle SCRATCH.
31122
31123 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31124
31125 * config/aarch64/aarch64.c
31126 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31127 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31128 * config/arm/arm.c
31129 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31130 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31131
31132 2015-01-17 Alan Modra <amodra@gmail.com>
31133
31134 * cprop.c (do_local_cprop): Disallow replacement of fixed
31135 hard registers.
31136
31137 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31138
31139 PR target/62066
31140 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31141 early return 0.
31142
31143 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
31144
31145 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31146 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31147
31148 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31149
31150 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31151 * config/arm/thumb1.md: ... Here.
31152
31153 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31154
31155 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31156 TImode for TARGET_32BIT.
31157
31158 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31159
31160 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31161 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31162 as ...
31163 (rs6000_abi_word_mode): New function.
31164
31165 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31166
31167 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31168 instead of UNITS_PER_WORD to describe the size of stack slots.
31169
31170 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31171
31172 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31173 as rs6000_promote_function_mode. Move comment to there.
31174 (rs6000_promote_function_mode): New function.
31175
31176 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31177
31178 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31179 -mpowerpc64 is active.
31180
31181 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31182
31183 PR middle-end/64353
31184 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31185 virtuals on start.
31186
31187 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31188
31189 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31190 introduced in revision 219724.
31191
31192 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31193 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31194
31195 PR target/64263
31196 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31197 destination is not a GP reg.
31198 (*movdi_aarch64): Likewise.
31199
31200 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
31201
31202 PR target/64623
31203 * config/rs6000/default64.h: Revert ISA change.
31204
31205 2015-01-16 Richard Biener <rguenther@suse.de>
31206
31207 PR middle-end/64614
31208 * tree-ssa-uninit.c: Include tree-cfg.h.
31209 (MAX_SWITCH_CASES): New define.
31210 (convert_control_dep_chain_into_preds): Handle switch statements.
31211 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31212 (normalize_one_pred_1): Do not split bit-manipulations.
31213 Record (x & CST).
31214
31215 2015-01-16 Richard Biener <rguenther@suse.de>
31216
31217 PR tree-optimization/64568
31218 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31219 complex load rewriting for TARGET_MEM_REFs.
31220
31221 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
31222
31223 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31224
31225 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
31226
31227 PR target/64149
31228 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31229 variable.
31230 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31231 (aarch64_lra_p): Remove.
31232
31233 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31234
31235 PR target/64363
31236 * ipa-chkp.h (chkp_instrumentable_p): New.
31237 * ipa-chkp.c: Include tree-inline.h.
31238 (chkp_instrumentable_p): New.
31239 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31240 Fix processing of not instrumentable functions.
31241 (chkp_versioning): Use chkp_instrumentable_p. Warn about
31242 not instrumentable functions.
31243 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31244 chkp_instrumentable_p.
31245 * tree-inline.h (copy_forbidden): New.
31246 * tree-inline.c (copy_forbidden): Not static anymore.
31247
31248 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31249
31250 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31251 ptr1, ptr2 unused.
31252
31253 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31254
31255 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31256 type OP_OUT to OP_INOUT.
31257
31258 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31259
31260 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31261 (high x) y) to y if x and y have the same base.
31262
31263 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31264
31265 * config/arm/cortex-a57.md: New.
31266 * config/aarch64/aarch64.md: Include it.
31267 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31268 * config/aarch64/aarch64-tune.md: Regenerate.
31269
31270 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
31271
31272 PR target/64015
31273 * ccmp.c (expand_ccmp_next): New function.
31274 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31275 and compare insn sequence.
31276 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31277 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31278 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31279 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31280 (*ccmp_ior): Changed to ccmp_ior<mode>.
31281 (cmp<mode>): New pattern.
31282 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31283 parameters.
31284 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31285
31286 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
31287
31288 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31289 _mm256_bsrli_epi128): New.
31290 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31291
31292 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31293
31294 * expmed.c (store_bit_field_using_insv): Improve warning message.
31295 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31296
31297 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31298
31299 PR rtl-optimization/64011
31300 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31301 there is partial overflow.
31302
31303 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31304
31305 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31306 prototype.
31307 (nds32_expand_epilogue_v3pop): Likewise.
31308 * config/nds32/nds32.md (sibcall): Define this for sibling call
31309 optimization.
31310 (sibcall_register): Likewise.
31311 (sibcall_immediate): Likewise.
31312 (sibcall_value): Likewise.
31313 (sibcall_value_register): Likewise.
31314 (sibcall_value_immediate): Likewise.
31315 (sibcall_epilogue): Likewise.
31316 (epilogue): Pass false to indicate this is not a sibcall epilogue.
31317 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31318 (nds32_expand_epilogue_v3pop): Likewise.
31319
31320 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31321
31322 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31323 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31324 (return_internal): New.
31325 (return): Define this named pattern.
31326 (simple_return): Define this named pattern.
31327 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31328 pattern instead of unspec_volatile_func_return.
31329 (nds32_expand_epilogue_v3pop): Likewise.
31330 (nds32_can_use_return_insn): New function.
31331
31332 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31333
31334 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31335 * config/nds32/nds32.md (pop25return): New.
31336 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31337 pop25return pattern.
31338
31339 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31340
31341 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31342 -mforbid-fp-as-gp, and -mex9 options.
31343
31344 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31345
31346 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31347 remove -mgp-direct option.
31348
31349 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31350
31351 * doc/invoke.texi (--param early-inlining-insns): Update default value.
31352 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31353
31354 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31355
31356 * ipa-inline.c (inline_small_functions): Work around hints
31357 cache issue.
31358
31359 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
31360
31361 PR target/59710
31362 * doc/invoke.texi (Option Summary): Document new Nios II
31363 -mgpopt= syntax.
31364 (Nios II Options): Likewise.
31365 * config/nios2/nios2.opt: Add -mgpopt= option support.
31366 Modify existing -mgpopt and -mno-gpopt options to be aliases.
31367 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31368 * config/nios2/nios2.c (nios2_option_override): Adjust
31369 -mgpopt defaulting.
31370 (nios2_in_small_data_p): Return true for explicit small data
31371 sections even with -G0.
31372 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31373 option choices.
31374
31375 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31376
31377 PR ipa/64612
31378 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31379 of comdat locals.
31380 (inline_call): Fix removal of aliases.
31381
31382 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31383
31384 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31385 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31386 * opts.c (common_handle_option): Add -fsanitize=vptr.
31387 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31388 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31389 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31390 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31391 (ubsan_expand_vptr_ifn): New prototype.
31392 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31393 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31394 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31395 expand_LOOP_VECTORIZED): Make argument nameless, remove
31396 ATTRIBUTE_UNUSED.
31397 (expand_UBSAN_VPTR): New function.
31398 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31399 in fn spec.
31400 (UBSAN_VPTR): New internal function.
31401 * sanopt.c (tree_map_traits): Renamed to ...
31402 (sanopt_tree_map_traits): ... this.
31403 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31404 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31405 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
31406 (maybe_optimize_ubsan_vptr_ifn): New function.
31407 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31408 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
31409 -fsanitize=vptr.
31410 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31411 internal calls like pure functions for aliasing, even when they
31412 have other side-effects that prevent making them ECF_PURE.
31413 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31414 (ubsan_expand_vptr_ifn): New function.
31415
31416 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
31417
31418 PR rtl-optimization/64110
31419 * stmt.c (parse_output_constraint): Process '^' and '$'.
31420 (parse_input_constraint): Ditto.
31421 * lra-constraints.c (process_alt_operands): Process the new
31422 constraints.
31423 * ira-costs.c (record_reg_classes): Process the new constraint
31424 '^'.
31425 * genoutput.c (indep_constraints): Add '^' and '$'.
31426 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31427 * doc/md.texi: Add description of the new constraints.
31428
31429 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
31430 Bernd Schmidt <bernds@codesourcery.com>
31431 Cesar Philippidis <cesar@codesourcery.com>
31432 James Norris <jnorris@codesourcery.com>
31433 Tom de Vries <tom@codesourcery.com>
31434 Ilmir Usmanov <i.usmanov@samsung.com>
31435 Dmitry Bocharnikov <dmitry.b@samsung.com>
31436 Evgeny Gavrin <e.gavrin@samsung.com>
31437 Jakub Jelinek <jakub@redhat.com>
31438
31439 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31440 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31441 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31442 New function types.
31443 * builtins.c: Include "gomp-constants.h".
31444 (expand_builtin_acc_on_device): New function.
31445 (expand_builtin, is_inexpensive_builtin): Handle
31446 BUILT_IN_ACC_ON_DEVICE.
31447 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31448 New macros.
31449 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31450 flag_openmp.
31451 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31452 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31453 i386/intelmic-offload.h.
31454 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31455 to libgomp and its dependencies.
31456 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31457 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31458 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31459 * config/ia64/hpux.h (LIB_SPEC): Likewise.
31460 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31461 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31462 * doc/generic.texi: Update for OpenACC changes.
31463 * doc/gimple.texi: Likewise.
31464 * doc/invoke.texi: Likewise.
31465 * doc/sourcebuild.texi: Likewise.
31466 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31467 GF_OMP_FOR_KIND_OACC_LOOP.
31468 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31469 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31470 GF_OMP_TARGET_KIND_OACC_UPDATE,
31471 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31472 Dump more data.
31473 * gimple.c: Update comments for OpenACC changes.
31474 * gimple.def: Likewise.
31475 * gimple.h: Likewise.
31476 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31477 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31478 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31479 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31480 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31481 appropriate place.
31482 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31483 * gimplify.c: Include "gomp-constants.h".
31484 Update comments for OpenACC changes.
31485 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31486 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31487 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31488 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31489 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31490 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31491 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31492 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31493 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31494 OMP_CLAUSE_SEQ.
31495 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31496 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31497 OMP_CLAUSE_SET_MAP_KIND.
31498 (gimplify_oacc_cache): New function.
31499 (gimplify_omp_for): Handle OACC_LOOP.
31500 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31501 OACC_DATA.
31502 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31503 OACC_EXIT_DATA, OACC_UPDATE.
31504 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31505 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31506 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31507 (gimplify_body): Consider flag_openacc next to flag_openmp.
31508 * lto-streamer-out.c: Include "gomp-constants.h".
31509 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31510 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31511 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31512 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31513 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31514 (BUILT_IN_ACC_ON_DEVICE): New builtins.
31515 * omp-low.c: Include "gomp-constants.h".
31516 Update comments for OpenACC changes.
31517 (struct omp_context): Add reduction_map, gwv_below, gwv_this
31518 members.
31519 (extract_omp_for_data, use_pointer_for_field, install_var_field)
31520 (new_omp_context, delete_omp_context, scan_sharing_clauses)
31521 (create_omp_child_function, scan_omp_for, scan_omp_target)
31522 (check_omp_nesting_restrictions, lower_reduction_clauses)
31523 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31524 Update for OpenACC changes.
31525 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31526 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31527 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31528 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31529 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31530 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
31531 OMP_CLAUSE_MAP_*.
31532 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31533 Handle GF_OMP_FOR_KIND_OACC_LOOP.
31534 (expand_omp_target, lower_omp_target): Handle
31535 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31536 GF_OMP_TARGET_KIND_OACC_UPDATE,
31537 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31538 GF_OMP_TARGET_KIND_OACC_DATA.
31539 (pass_expand_omp::execute, execute_lower_omp)
31540 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31541 flag_openmp.
31542 (offload_symbol_decl): New variable.
31543 (oacc_get_reduction_array_id, oacc_max_threads)
31544 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31545 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31546 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31547 (oacc_gimple_assign, oacc_initialize_reduction_data)
31548 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31549 functions.
31550 (is_targetreg_ctx): Remove function.
31551 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31552 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31553 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31554 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31555 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31556 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31557 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31558 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31559 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31560 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31561 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31562 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31563 * tree-core.h: Update comments for OpenACC changes.
31564 (enum omp_clause_map_kind): Remove.
31565 (struct tree_omp_clause): Change type of map_kind member from enum
31566 omp_clause_map_kind to unsigned char.
31567 * tree-inline.c: Update comments for OpenACC changes.
31568 * tree-nested.c: Likewise. Include "gomp-constants.h".
31569 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31570 (convert_tramp_reference_stmt, convert_gimple_call): Update for
31571 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31572 OMP_CLAUSE_SET_MAP_KIND.
31573 * tree-pretty-print.c: Include "gomp-constants.h".
31574 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31575 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31576 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31577 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31578 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31579 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
31580 instead of OMP_CLAUSE_MAP_*.
31581 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31582 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31583 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31584 * tree-streamer-in.c: Include "gomp-constants.h".
31585 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31586 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
31587 * tree-streamer-out.c: Include "gomp-constants.h".
31588 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31589 OMP_CLAUSE_MAP_*.
31590 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31591 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31592 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31593 * tree.c (omp_clause_num_ops): Update accordingly.
31594 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31595 Likewise.
31596 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31597 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31598 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31599 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31600 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31601 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31602 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31603 (OMP_CLAUSE_SET_MAP_KIND): New macro.
31604 * varpool.c (varpool_node::get_create): Consider flag_openacc next
31605 to flag_openmp.
31606 * config/i386/intelmic-offload.h: New file.
31607 * config/nvptx/offload.h: Likewise.
31608
31609 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31610
31611 * explow.h: Remove duplicate contents.
31612 * dojump.h: Likewise.
31613
31614 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
31615
31616 * arm.c (arm_xgene_tune): Add default initializer for instruction
31617 fusion.
31618
31619 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31620
31621 PR ipa/64068
31622 PR ipa/64559
31623 * ipa.c (symbol_table::remove_unreachable_nodes):
31624 Do not put abstract origins into boundary.
31625
31626 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
31627
31628 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31629 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31630
31631 2015-01-15 Steve Ellcey <sellcey@mips.com>
31632
31633 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31634 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31635 builtins.def, and chkp-builtins.def.
31636
31637 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
31638
31639 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31640 ISA 2.7 (POWER8).
31641
31642 2015-01-15 Richard Biener <rguenther@suse.de>
31643
31644 PR tree-optimization/61743
31645 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31646 information on PHIs for some simple cases.
31647
31648 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31649
31650 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31651 Include xgene1.md.
31652 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31653 * config/arm/arm-cores.def (xgene1): New entry.
31654 * config/arm/arm-tables.opt: Regenerate.
31655 * config/arm/arm-tune.md: Regenerate.
31656 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31657
31658 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31659
31660 * tree-if-conv.c: Include hash-map.h.
31661 (aggressive_if_conv): New variable.
31662 (fold_build_cond_expr): Add simplification of non-zero condition.
31663 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31664 destination block is not always executed.
31665 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31666 than two predecessors if AGGRESSIVE_IF_CONV is true.
31667 (if_convertible_stmt_p): Fix commentary.
31668 (all_preds_critical_p): New function.
31669 (has_pred_critical_p): New function.
31670 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31671 BB can have more than two predecessors and all incoming edges can be
31672 critical.
31673 (predicate_bbs): Skip predication for loop exit block, use build2_loc
31674 to compute predicate for true edge.
31675 (find_phi_replacement_condition): Delete this function.
31676 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31677 Allow interchange PHI arguments if EXTENDED is false.
31678 Change check that block containing reduction statement candidate
31679 is predecessor of phi-block since phi may have more than two arguments.
31680 (phi_args_hash_traits): New helper structure.
31681 (struct phi_args_hash_traits): New type.
31682 (phi_args_hash_traits::hash): New function.
31683 (phi_args_hash_traits::equal_keys): New function.
31684 (gen_phi_arg_condition): New function.
31685 (predicate_scalar_phi): Add handling of phi nodes with more than two
31686 arguments, delete COND and TRUE_BB arguments, insert body of
31687 find_phi_replacement_condition to predicate ordinary phi nodes.
31688 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31689 delete call of find_phi_replacement_condition and invoke
31690 predicate_scalar_phi with two arguments.
31691 (insert_gimplified_predicates): Add assert that non-predicated block
31692 don't have statements to insert.
31693 (ifcvt_split_critical_edges): New function.
31694 (ifcvt_split_def_stmt): Likewise.
31695 (ifcvt_walk_pattern_tree): Likewise.
31696 (stmt_is_root_of_bool_pattern): Likewise.
31697 (ifcvt_repair_bool_pattern): Likewise.
31698 (ifcvt_local_dce): Likewise.
31699 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31700 is copy of inner or outer loop force_vectorize field, invoke
31701 ifcvt_split_critical_edges, ifcvt_local_dce and
31702 ifcvt_repair_bool_pattern for aggressive if-conversion.
31703
31704 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
31705
31706 * config/aarch64/aarch64.md: Include xgene1.md.
31707 * config/aarch64/xgene1.md: New file.
31708
31709 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31710
31711 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31712 xgene1 (APM XGene-1) core definition.
31713 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31714 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31715 * doc/invoke.texi: Document -mcpu=xgene1.
31716
31717 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31718
31719 * dojump.h: New header file.
31720 * explow.h: Likewise.
31721 * expr.h: Remove includes.
31722 Move expmed.c prototypes to expmed.h.
31723 Move dojump.c prototypes to dojump.h.
31724 Move alias.c prototypes to alias.h.
31725 Move explow.c prototypes to explow.h.
31726 Move calls.c prototypes to calls.h.
31727 Move emit-rtl.c prototypes to emit-rtl.h.
31728 Move varasm.c prototypes to varasm.h.
31729 Move stmt.c prototypes to stmt.h.
31730 (saved_pending_stack_adjust): Move to dojump.h.
31731 (adjust_address): Move to explow.h.
31732 (adjust_address_nv): Move to emit-rtl.h.
31733 (adjust_bitfield_address): Likewise.
31734 (adjust_bitfield_address_size): Likewise.
31735 (adjust_bitfield_address_nv): Likewise.
31736 (adjust_automodify_address_nv): Likewise.
31737 * explow.c (expr_size): Move to expr.c.
31738 (int_expr_size): Likewise.
31739 (tree_expr_size): Likewise.
31740 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31741 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31742 * genemit.c (main): Generate includes statistics.h, real.h,
31743 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31744 stmt.h.
31745 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31746 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31747 explow.h, emit-rtl.h, stmt.h.
31748 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31749 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31750 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31751 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31752 emit-rtl.h, varasm.h, stmt.h.
31753 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31754 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31755 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31756 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31757 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31758 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31759 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31760 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31761 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31762 tm.h tree.h varasm.h vec.h wide-int.h.
31763 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31764 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31765 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31766 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31767 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31768 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31769 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31770 * loop-iv.c: Likewise.
31771 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31772 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31773 statistics.h stmt.h tree.h varasm.h wide-int.h.
31774 * lra-constraints.c: Likewise.
31775 * lra-eliminations.c: Likewise.
31776 * lra-lives.c: Likewise.
31777 * lra-remat.c: Likewise.
31778 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31779 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31780 statistics.h stmt.h tree.h varasm.h wide-int.h.
31781 * hw-doloop.c: Likewise.
31782 * ira-color.c: Likewise.
31783 * ira-emit.c: Likewise.
31784 * loop-doloop.c: Likewise.
31785 * loop-invariant.c: Likewise.
31786 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31787 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31788 statistics.h stmt.h tree.h varasm.h wide-int.h.
31789 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31790 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31791 statistics.h stmt.h tree.h varasm.h wide-int.h.
31792 * combine-stack-adj.c: Likewise.
31793 * cse.c: Likewise.
31794 * ddg.c: Likewise.
31795 * ifcvt.c: Likewise.
31796 * ira-costs.c: Likewise.
31797 * jump.c: Likewise.
31798 * lra-coalesce.c: Likewise.
31799 * lra-spills.c: Likewise.
31800 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31801 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31802 stmt.h varasm.h wide-int.h.
31803 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31804 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31805 varasm.h.
31806 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31807 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31808 statistics.h stmt.h varasm.h wide-int.h.
31809 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31810 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31811 varasm.h wide-int.h.
31812 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31813 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31814 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31815 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31816 statistics.h stmt.h.
31817 * config/tilepro/tilepro.c: Likewise.
31818 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31819 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31820 * config/pdp11/pdp11.c: Likewise.
31821 * config/xtensa/xtensa.c: Likewise.
31822 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31823 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31824 varasm.h.
31825 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31826 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31827 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31828 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31829 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31830 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31831 * rtl-chkp.c: Likewise.
31832 * tree-chkp-opt.c: Likewise.
31833 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31834 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31835 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31836 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31837 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31838 statistics.h stmt.h.
31839 * tree-vect-data-refs.c: Likewise.
31840 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31841 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31842 rtl.h statistics.h stmt.h varasm.h.
31843 * internal-fn.c: Likewise.
31844 * ipa-icf-gimple.c: Likewise.
31845 * lto-section-out.c: Likewise.
31846 * tree-data-ref.c: Likewise.
31847 * tree-nested.c: Likewise.
31848 * tree-outof-ssa.c: Likewise.
31849 * tree-predcom.c: Likewise.
31850 * tree-pretty-print.c: Likewise.
31851 * tree-scalar-evolution.c: Likewise.
31852 * tree-ssa-strlen.c: Likewise.
31853 * tree-vect-loop.c: Likewise.
31854 * tree-vect-patterns.c: Likewise.
31855 * tree-vect-slp.c: Likewise.
31856 * tree-vect-stmts.c: Likewise.
31857 * tsan.c: Likewise.
31858 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31859 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31860 stmt.h.
31861 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31862 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31863 statistics.h stmt.h varasm.h.
31864 * loop-unroll.c: Likewise.
31865 * ubsan.c: Likewise.
31866 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31867 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31868 stmt.h varasm.h.
31869 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31870 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31871 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31872 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31873 statistics.h stmt.h.
31874 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31875 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31876 statistics.h stmt.h varasm.h.
31877 * gimple-match-head.c: Likewise.
31878 * lto-cgraph.c: Likewise.
31879 * lto-section-in.c: Likewise.
31880 * lto-streamer-in.c: Likewise.
31881 * lto-streamer-out.c: Likewise.
31882 * tree-affine.c: Likewise.
31883 * tree-cfg.c: Likewise.
31884 * tree-cfgcleanup.c: Likewise.
31885 * tree-if-conv.c: Likewise.
31886 * tree-into-ssa.c: Likewise.
31887 * tree-ssa-alias.c: Likewise.
31888 * tree-ssa-copyrename.c: Likewise.
31889 * tree-ssa-dse.c: Likewise.
31890 * tree-ssa-forwprop.c: Likewise.
31891 * tree-ssa-live.c: Likewise.
31892 * tree-ssa-math-opts.c: Likewise.
31893 * tree-ssa-pre.c: Likewise.
31894 * tree-ssa-sccvn.c: Likewise.
31895 * tree-tailcall.c: Likewise.
31896 * tree-vect-generic.c: Likewise.
31897 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31898 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31899 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31900 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31901 * varasm.c: Likewise.
31902 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31903 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31904 varasm.h.
31905 * init-regs.c: Likewise.
31906 * ira.c: Likewise.
31907 * omp-low.c: Likewise.
31908 * stack-ptr-mod.c: Likewise.
31909 * tree-ssa-reassoc.c: Likewise.
31910 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31911 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31912 varasm.h.
31913 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31914 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31915 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31916 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31917 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31918 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31919 * tree-ssa-phiopt.c: Likewise.
31920 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31921 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31922 * config/fr30/fr30.c: Likewise.
31923 * config/frv/frv.c: Likewise.
31924 * expr.c: Likewise.
31925 * final.c: Likewise.
31926 * optabs.c: Likewise.
31927 * passes.c: Likewise.
31928 * simplify-rtx.c: Likewise.
31929 * stmt.c: Likewise.
31930 * toplev.c: Likewise.
31931 * var-tracking.c: Likewise.
31932 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31933 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31934 * lower-subreg.c: Likewise.
31935 * postreload-gcse.c: Likewise.
31936 * ree.c: Likewise.
31937 * reginfo.c: Likewise.
31938 * store-motion.c: Likewise.
31939 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31940 fixed-value.h hashtab.h real.h stmt.h varasm.h.
31941 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31942 fixed-value.h hashtab.h statistics.h stmt.h.
31943 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31944 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31945 * except.c: Likewise.
31946 * explow.c: Likewise.
31947 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31948 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31949 varasm.h.
31950 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31951 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31952 * tree-ssa-structalias.c: Likewise.
31953 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31954 fixed-value.h insn-config.h real.h statistics.h.
31955 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31956 fixed-value.h insn-config.h real.h statistics.h stmt.h.
31957 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31958 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31959 * cfgbuild.c: Likewise.
31960 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31961 fixed-value.h real.h rtl.h statistics.h stmt.h.
31962 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31963 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31964 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31965 fixed-value.h real.h statistics.h stmt.h.
31966 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31967 fixed-value.h real.h statistics.h stmt.h varasm.h.
31968 * cprop.c: Likewise.
31969 * modulo-sched.c: Likewise.
31970 * postreload.c: Likewise.
31971 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31972 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31973 statistics.h stmt.h varasm.h.
31974 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31975 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31976 rtl.h statistics.h stmt.h varasm.h.
31977 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31978 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31979 varasm.h.
31980 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31981 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31982 varasm.h.
31983 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31984 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31985 varasm.h.
31986 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31987 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31988 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31989 function.h real.h statistics.h stmt.h varasm.h.
31990 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31991 insn-config.h real.h statistics.h stmt.h.
31992 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31993 statistics.h stmt.h.
31994 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31995 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31996 statistics.h stmt.h varasm.h.
31997 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
31998 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
31999 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32000 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32001 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32002 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32003 statistics.h stmt.h varasm.h.
32004 * ipa-polymorphic-call.c: Likewise.
32005 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32006 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32007 statistics.h stmt.h.
32008 * config/c6x/c6x.c: Likewise.
32009 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32010 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32011 statistics.h stmt.h varasm.h.
32012 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32013 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32014 stmt.h varasm.h.
32015 * ipa-split.c: Likewise.
32016 * tree-eh.c: Likewise.
32017 * tree-ssa-dce.c: Likewise.
32018 * tree-ssa-loop-niter.c: Likewise.
32019 * tree-vrp.c: Likewise.
32020 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32021 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32022 stmt.h.
32023 * config/nds32/nds32-fp-as-gp.c: Likewise.
32024 * config/nds32/nds32-intrinsic.c: Likewise.
32025 * config/nds32/nds32-isr.c: Likewise.
32026 * config/nds32/nds32-md-auxiliary.c: Likewise.
32027 * config/nds32/nds32-memory-manipulation.c: Likewise.
32028 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32029 * config/nds32/nds32-predicates.c: Likewise.
32030 * config/nds32/nds32.c: Likewise.
32031 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32032 fixed-value.h hashtab.h real.h statistics.h.
32033 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32034 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32035 * config/arm/arm.c: Likewise.
32036 * config/avr/avr.c: Likewise.
32037 * config/bfin/bfin.c: Likewise.
32038 * config/h8300/h8300.c: Likewise.
32039 * config/i386/i386.c: Likewise.
32040 * config/ia64/ia64.c: Likewise.
32041 * config/iq2000/iq2000.c: Likewise.
32042 * config/m32c/m32c.c: Likewise.
32043 * config/m32r/m32r.c: Likewise.
32044 * config/m68k/m68k.c: Likewise.
32045 * config/mcore/mcore.c: Likewise.
32046 * config/mep/mep.c: Likewise.
32047 * config/mips/mips.c: Likewise.
32048 * config/mn10300/mn10300.c: Likewise.
32049 * config/moxie/moxie.c: Likewise.
32050 * config/pa/pa.c: Likewise.
32051 * config/rl78/rl78.c: Likewise.
32052 * config/rx/rx.c: Likewise.
32053 * config/s390/s390.c: Likewise.
32054 * config/sh/sh.c: Likewise.
32055 * config/sparc/sparc.c: Likewise.
32056 * config/spu/spu.c: Likewise.
32057 * config/stormy16/stormy16.c: Likewise.
32058 * config/v850/v850.c: Likewise.
32059 * config/vax/vax.c: Likewise.
32060 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32061 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32062 * config/msp430/msp430.c: Likewise.
32063 * predict.c: Likewise.
32064 * value-prof.c: Likewise.
32065 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32066 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32067 * config/microblaze/microblaze.c: Likewise.
32068 * config/nios2/nios2.c: Likewise.
32069 * config/rs6000/rs6000.c: Likewise.
32070 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32071 insn-config.h real.h rtl.h statistics.h stmt.h.
32072 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32073 insn-config.h real.h statistics.h stmt.h.
32074 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32075 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32076 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32077 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32078 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32079 fixed-value.h real.h statistics.h stmt.h.
32080 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32081 fixed-value.h statistics.h stmt.h.
32082 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32083 stmt.h.
32084
32085 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32086
32087 * gengtype.c (create_user_defined_type): Workaround
32088 -Wmaybe-uninitialized false positives.
32089 * cse.c (fold_rtx): Likewise.
32090 * loop-invariant.c (gain_for_invariant): Likewise.
32091
32092 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
32093
32094 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32095 set the memory attributes in all cases but clear MEM_EXPR if need be.
32096
32097 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32098
32099 PR tree-optimization/64434
32100 * cfgexpand.c (reorder_operands): New function.
32101 (expand_gimple_basic_block): Insert call of reorder_operands if
32102 optimized is true.
32103
32104 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
32105
32106 * config/mips/micromips.md (*swp): Remove explicit parallel.
32107 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32108 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32109 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32110 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32111 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32112 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32113 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32114 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32115 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32116 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32117 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32118 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32119 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32120 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32121 (mips_wrdsp): Likewise.
32122 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32123 parallel.
32124 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32125 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32126 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32127 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32128 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32129 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32130 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32131 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32132 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32133
32134 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32135
32136 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32137 (mips_print_operand): Support 'y' to print exact log2 in decimal
32138 of a const_int.
32139 * config/mips/mips.h (ISA_HAS_LSA): New define.
32140 (ISA_HAS_DLSA): Likewise.
32141 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32142 * config/mips/predicates.md (const_immlsa_operand): New predicate.
32143
32144 2015-01-15 Martin Liska <mliska@suse.cz>
32145
32146 PR target/64377
32147 * optc-save-gen.awk: Add support for array types.
32148
32149 2015-01-15 Richard Biener <rguenther@suse.de>
32150
32151 PR middle-end/64365
32152 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32153 for MEM_REF access functions with the same base can never partially
32154 overlap.
32155
32156 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
32157
32158 * common.opt: New option -fstack-protector-explicit.
32159 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32160 (stack_protect_decl_phase): Handle stack_protect attribute for
32161 explicit stack protection requests.
32162 (expand_used_vars): Similarly.
32163 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32164 * doc/extend.texi: Add documentation for "stack_protect" attribute.
32165 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32166
32167 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
32168
32169 PR target/53988
32170 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32171 reg-reg copies.
32172 (sh_extending_set_of_reg): New struct.
32173 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32174 sh_remove_reg_dead_or_unused_notes): New Declarations.
32175 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32176 sh_find_extending_set_of_reg, sh_split_tst_subregs,
32177 sh_extending_set_of_reg::use_as_extended_reg): New functions.
32178 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32179 convert to insn_and_split and use new function sh_split_tst_subregs.
32180
32181 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
32182
32183 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32184 option.
32185 (Optimization Options): Move -fuse-ld documentation to...
32186 (Link Options): ...here.
32187
32188 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32189
32190 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32191 offsets.
32192 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32193 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32194 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32195 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32196 instead of ZR for the memory operand of LL/SC.
32197 (compare_and_swap_12, sync_add<mode>): Likewise.
32198 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32199 (sync_new_<optab>_12, sync_nand_12): Likewise.
32200 (sync_old_nand_12, sync_new_nand_12): Likewise.
32201 (sync_sub<mode>, sync_old_add<mode>): Likewise.
32202 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32203 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32204 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32205 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32206 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32207 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32208 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32209 * doc/md.texi (ZC): Update description.
32210
32211 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32212
32213 * builtins.c (expand_builtin_atomic_exchange): Remove error when
32214 memory model is CONSUME.
32215 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32216 expand_builtin_atomic_store): Change invalid memory model errors to
32217 warnings.
32218 (expand_builtin_atomic_clear): Change invalid model errors to warnings
32219 and issue warning for CONSUME.
32220
32221 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
32222
32223 * lto-cgraph: Update function comments for
32224 lto_symtab_encoder_encode_*.
32225
32226 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32227
32228 * Makefile.in (site.exp): Do not set ENABLE_LTO.
32229
32230 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32231
32232 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32233 * lto-cgraph.c (select_what_to_stream): Remove argument, use
32234 lto_stream_offload_p instead.
32235 * lto-streamer.h (select_what_to_stream): Remove argument.
32236 * passes.c (ipa_write_summaries): Likewise.
32237 * tree-pass.h (ipa_write_summaries): Likewise.
32238
32239 2015-01-14 Richard Biener <rguenther@suse.de>
32240
32241 PR tree-optimization/59354
32242 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32243 groups larger than the slp group size as having gaps.
32244
32245 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32246
32247 PR middle-end/59448
32248 * builtins.c (get_memmodel): Promote consume to acquire always.
32249
32250 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32251
32252 PR target/64386
32253 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32254 V32HImode.
32255
32256 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32257
32258 PR target/64393
32259 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32260 Enable AVX512BW.
32261 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32262 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32263 AVX512VBMI, as it implies AVX512BW.
32264
32265 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32266
32267 PR target/64387
32268 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32269 (vec_unpacks_hi_v16sf): Ditto.
32270
32271 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32272
32273 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32274 is not available.
32275
32276 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32277
32278 * doc/invoke.texi (mapcs): Mention deprecation.
32279 (mapcs-frame): Likewise.
32280
32281 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
32282
32283 PR target/64453
32284 * config/arm/arm.c (callee_saved_reg_p): Define.
32285 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32286 register is callee saved instead of !call_used_regs[reg].
32287 (thumb1_compute_save_reg_mask): Likewise.
32288
32289 2015-01-14 Hale Wang <hale.wang@arm.com>
32290
32291 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32292 Cortex-M7.
32293
32294 2015-01-14 Richard Biener <rguenther@suse.de>
32295
32296 PR lto/64415
32297 * tree-inline.c (insert_debug_decl_map): Check destination
32298 function MAY_HAVE_DEBUG_STMTS.
32299 (insert_init_debug_bind): Likewise.
32300 (insert_init_stmt): Remove redundant check.
32301 (remap_gimple_stmt): Drop debug stmts if the destination
32302 function has var-tracking assignments disabled.
32303
32304 2015-01-14 Martin Liska <mliska@suse.cz>
32305
32306 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32307 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32308
32309 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32310
32311 PR target/64460
32312 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32313 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32314
32315 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32316
32317 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32318 level from an ARCH; do not inject the default.
32319 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32320 MIPS_ISA_LEVEL_SPEC.
32321 (MIPS_ISA_NAN2008_SPEC): Update comment.
32322 (BASE_DRIVER_SELF_SPECS): Likewise.
32323 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32324 MIPS_DEFAULT_ISA_LEVEL_SPEC.
32325 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32326 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32327 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32328
32329 2015-01-14 Richard Biener <rguenther@suse.de>
32330
32331 PR tree-optimization/64493
32332 PR tree-optimization/64495
32333 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32334 assign the proper vectorized PHI to the inner loop exit PHIs.
32335
32336 2015-01-14 Joey Ye <joey.ye@arm.com>
32337
32338 * config/arm/arm.c (arm_compute_save_reg_mask):
32339 Do not save lr in case of tail call.
32340 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32341
32342 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
32343
32344 * tree-vrp.c (check_array_ref): Emit more warnings
32345 for warn_array_bounds >= 2.
32346 * common.opt: New option -Warray-bounds=.
32347 * doc/invoke.texi: Document -Warray-bounds=.
32348
32349 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
32350
32351 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32352 (mforbid-fp-as-gp): Remove.
32353 (mex9): Remove.
32354 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32355 (nds32_symbol_load_store_p): Remove.
32356 (nds32_fp_as_gp_check_available): Clean up implementation.
32357 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32358 cases.
32359 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32360 fp-as-gp and ex9 cases.
32361
32362 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32363
32364 * tree-profile.c (init_ic_make_global_vars): Drop workaround
32365 for bintuils bug 14342.
32366 (init_ic_make_global_vars): Likewise.
32367 (gimple_init_edge_profiler): Likewise.
32368 (gimple_gen_ic_func_profiler): Likewise.
32369
32370 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32371
32372 * ipa-inline.c (inline_small_functions): Swap the operands in
32373 enum.
32374
32375 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32376
32377 PR ipa/64481
32378 * ipa-inline-analysis.c (node_growth_cache): Remove.
32379 (initialize_growth_caches): Do not initialize it.
32380 (free_growth_caches): Do not free it.
32381 (do_estimate_growth): Rename to ...
32382 (estimate_growth): ... this one; drop growth cache code.
32383 (growth_likely_positive): Always go the heuristics way.
32384 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32385 (reset_edge_caches): Do not reset node growth.
32386 (heap_edge_removal_hook): Do not maintain cache.
32387 (inline_small_functions): Likewise; strenghten sanity check.
32388 (ipa_inline): Do not maintain caches.
32389 * ipa-inline.h (node_growth_cache): Remove.
32390 (do_estimate_growth): Remove to ...
32391 (estimate_growth): this one; remove inline version.
32392 (reset_node_growth_cache): Remove.
32393
32394 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32395
32396 PR ipa/64565
32397 * ipa-inline.c (inline_small_functions): Update callee keys after
32398 resolving speculation
32399 (inline_small_functions): Always check monotonicity of the queue.
32400
32401 2015-01-13 Marek Polacek <polacek@redhat.com>
32402
32403 PR middle-end/64391
32404 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32405
32406 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32407
32408 PR rtl-optimization/64286
32409 * ree.c (combine_reaching_defs): Move part of comment earlier,
32410 remove !SCALAR_INT_MODE_P check.
32411 (add_removable_extension): Don't add vector mode
32412 extensions if all uses of the source register aren't the same
32413 vector extensions.
32414
32415 2015-01-13 Renlin Li <renlin.li@arm.com>
32416
32417 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32418 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32419
32420 2015-01-13 Martin Liska <mliska@suse.cz>
32421
32422 * ipa-icf.c (sem_function::equals_private): Call new functions
32423 cl_target_option_print_diff and cl_optimization_print_diff.
32424 * optc-save-gen.awk (cl_target_option_print_diff): New function.
32425 (cl_optimization_print_diff): Likewise.
32426 * opth-gen.awk: Likewise.
32427
32428 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
32429
32430 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32431 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32432 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32433 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32434 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32435 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32436
32437 2015-01-13 Andrew Pinski <apinski@cavium.com>
32438
32439 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32440 instead of src mode.
32441
32442 2015-01-13 Richard Biener <rguenther@suse.de>
32443
32444 PR lto/64373
32445 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32446 DECL_CONTEXT.
32447
32448 2015-01-13 Andrew Pinski <apinski@cavium.com>
32449
32450 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32451 volatile mems.
32452 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32453
32454 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32455
32456 PR middle-end/63974
32457 * cfgexpand.c (expand_computed_goto): Don't call
32458 convert_memory_address here.
32459
32460 2015-01-13 Richard Biener <rguenther@suse.de>
32461
32462 PR tree-optimization/64406
32463 * tree-loop-distibution.c (pass_loop_distribution::execute):
32464 Reset the SCEV hashtable if we distributed anything.
32465
32466 2015-01-13 Richard Biener <rguenther@suse.de>
32467
32468 PR tree-optimization/64404
32469 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32470 SLP types for CSEd loads.
32471
32472 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32473
32474 PR tree-optimization/64436
32475 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32476 merge of two symbolic numbers for a bitwise OR to ...
32477 (perform_symbolic_merge): This. Also fix computation of the range and
32478 end of the symbolic number corresponding to the result of a bitwise OR.
32479
32480 2015-01-13 Richard Biener <rguenther@suse.de>
32481
32482 PR tree-optimization/64568
32483 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32484 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32485
32486 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32487
32488 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32489 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32490
32491 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32492
32493 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32494 target-specific symbol_ref flag.
32495 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32496 resides in rodata section.
32497 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32498 (nds32_encode_section_info): New function.
32499
32500 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32501
32502 * config/nds32/nds32.md (call): Use pseudo instruction bal which
32503 clobbers TA_REGNUM if large code model is specified.
32504 (call_register): Likewise.
32505 (call_immediate): Likewise.
32506 (call_value): Likewise.
32507 (call_value_register): Likewise.
32508 (call_value_immediate): Likewise.
32509
32510 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32511
32512 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32513 (TARGET_CMODEL_MEDIUM): New macro.
32514 (TARGET_CMODEL_LARGE): New macro.
32515 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32516 code model setting in assembly code.
32517
32518 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32519
32520 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32521 Remove MASK_GP_DIRECT flag.
32522 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32523 one of the multilib default options.
32524 * config/nds32/nds32.opt (mgp-direct): Remove.
32525 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32526 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
32527
32528 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32529
32530 * config/nds32/nds32.opt (mcmodel): Add new option.
32531 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32532 to describe code model.
32533
32534 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
32535
32536 PR target/64479
32537 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32538
32539 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
32540
32541 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32542 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32543 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32544 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32545 __builtin_sh_set_fpscr.
32546
32547 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32548
32549 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32550 after a funtion name just to indicate it is a function.
32551 ([-fsanitize-undefined-trap-on-error]): Likewise.
32552 ([-fdbg-cnt=]): Likewise.
32553 ([-mmemcpy]): Likewise.
32554 ([-mflush-func]): Likewise.
32555 ([-msynci]): Likewise.
32556
32557 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32558
32559 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32560 example.
32561
32562 2015-01-12 Jakub Jelinek <jakub@redhat.com>
32563
32564 PR tree-optimization/64563
32565 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32566 instead of != VR_VARYING.
32567
32568 PR target/64513
32569 * config/i386/i386.c (ix86_expand_prologue): Add
32570 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32571
32572 PR tree-optimization/64454
32573 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32574 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32575 for signed or [0, op1 - 1] for unsigned modulo.
32576 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32577 even if op1 does not satisfy integer_pow2p.
32578
32579 PR other/64370
32580 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32581
32582 2015-01-12 Jeff Law <law@redhat.com>
32583
32584 PR target/64461
32585 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32586 (trunchiqi2, truncsihi2): Similarly.
32587
32588 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32589 rather than calling F.
32590
32591 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
32592
32593 * tsan.c (instrument_expr): Use force_gimple_operand.
32594 Use may_be_nonaddressable_p instead of is_gimple_addressable.
32595
32596 2015-01-12 Richard Biener <rguenther@suse.de>
32597
32598 PR tree-optimization/64530
32599 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32600 back dr1.
32601
32602 2015-01-12 Richard Biener <rguenther@suse.de>
32603
32604 PR middle-end/64357
32605 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32606 latches properly.
32607
32608 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32609
32610 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32611 Cortex-A17 tuning parameters.
32612 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32613
32614 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32615
32616 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32617 * config/arm/arm.c (arm_macro_fusion_p): New function.
32618 (arm_macro_fusion_pair_p): Likewise.
32619 (TARGET_SCHED_MACRO_FUSION_P): Define.
32620 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32621 (ARM_FUSE_NOTHING): Likewise.
32622 (ARM_FUSE_MOVW_MOVT): Likewise.
32623 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32624 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32625 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32626 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32627 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32628 arm_cortex_a5_tune): Specify fuseable_ops value.
32629
32630 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
32631
32632 PR bootstrap/64561
32633 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32634 test for PIE with copy reloc.
32635 * configure: Regenerated.
32636
32637 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32638
32639 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32640 in gen_rtx_REG.
32641 (arm_tls_descseq_addr): Likewise.
32642 (arm_gen_movmemqi): Likewise.
32643 (arm_expand_epilogue_apcs_frame): Likewise.
32644 (arm_expand_epilogue): Likewise.
32645 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
32646 in gen_rtx_REG.
32647
32648 2015-01-12 Martin Liska <mliska@suse.cz>
32649
32650 PR ipa/64550
32651 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32652 volatility for correct operands.
32653
32654 2015-01-12 Martin Liska <mliska@suse.cz>
32655
32656 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32657 indication that a function is not leaf.
32658 (sem_function::compare_polymorphic_p): Likewise.
32659
32660 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32661
32662 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32663 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32664 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32665 fold-const.h, tree-check.h.
32666
32667 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32668
32669 PR ipa/63967
32670 PR ipa/64425
32671 * ipa-inline.c (compute_uninlined_call_time,
32672 compute_inlined_call_time): Use counts for extra precision when
32673 needed possible.
32674 (big_speedup_p): Fix formating.
32675 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32676 (relative_time_benefit): Remove.
32677 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32678 merge guessed and read profile paths.
32679 (inline_small_functions): Count only !optimize_size functions into
32680 initial size; be more lax about sanity check when profile is used;
32681 be sure to update inlined function profile when profile is read.
32682
32683 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32684
32685 PR ipa/63470
32686 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32687 cost when edge becomes direct.
32688 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32689 is resolved or when introducing new speculation.
32690
32691 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
32692
32693 PR ipa/64551
32694 PR ipa/64552
32695 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32696 '||' to fix typo issue.
32697
32698 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32699 accept and return NULL.
32700
32701 2015-01-12 Martin Liska <mliska@suse.cz>
32702
32703 * cgraph.c (cgraph_edge::remove_callee): Move function to header
32704 file for being inlined.
32705 (cgraph_set_edge_callee): Delete.
32706 (cgraph_edge::redirect_callee): Move function to header file
32707 for being inlined.
32708 (cgraph_edge::make_direct): Use new function.
32709 (cgraph_edge::dump_edge_flags): New function created from
32710 static dump_edge_flags function.
32711 (cgraph_node::dump): Use new function.
32712 (cgraph_edge::verify_count_and_frequency): New function created
32713 from verify_edge_count_and_frequency.
32714 (cgraph_edge::verify_corresponds_to_fndecl): New function created
32715 from verify_edge_corresponds_to_fndecl.
32716 (verify_edge_corresponds_to_fndecl): Delete.
32717 (cgraph_node::verify_node): Use new function.
32718 * cgraph.h (cgraph_edge::set_callee): New function.
32719 (cgraph_edge::dump_edge_flags): Likewise.
32720 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32721
32722 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
32723
32724 * ipa-utils.c (estimate_function_body_sizes): Do not
32725 free node params when called late with early=true.
32726
32727 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
32728
32729 * doc/md.texi (Instruction Patterns): Rewrite text for
32730 clarity.
32731 (Example): Likewise.
32732
32733 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
32734
32735 * doc/invoke.texi (Option Summary): Break long lines.
32736 [(-fdiagnostics-color)]: Put long literal in @smallexample
32737 instead of inline.
32738 [(-fsanitize-recover)]: Likewise.
32739 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32740 [(-ffast-math)]: Likewise.
32741 [(--param max-inline-insns-recursive)]: Likewise.
32742 [(--param max-inline-recursive-depth)]: Likewise.
32743 [(-mno-text-section-literals)]: Likewise.
32744
32745 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
32746
32747 * doc/install.texi: Update for libgomp being renamed from "GNU
32748 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32749 Runtime Library".
32750 * doc/sourcebuild.texi: Likewise.
32751
32752 2015-01-10 Anthony Green <green@moxielogic.com>
32753
32754 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32755 mul.x availability for moxiebox configuration.
32756
32757 2015-01-09 Anthony Green <green@moxielogic.com>
32758
32759 * config/moxie/moxie.md: Tabify assembly output.
32760
32761 2015-01-09 Anthony Green <green@moxielogic.com>
32762
32763 * config/moxie/moxie.md (CC_REG): Correct register definition.
32764
32765 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
32766
32767 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32768 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
32769 of log files.
32770
32771 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32772
32773 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32774
32775 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
32776 Jakub Jelinek <jakub@redhat.com>
32777
32778 PR middle-end/64412
32779 * lto-streamer.h (lto_stream_offload_p): New declaration.
32780 * lto-streamer.c (lto_stream_offload_p): New variable.
32781 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32782 at the same time as section_name_prefix.
32783 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32784 if lto_stream_offload_p.
32785 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32786 stream TREE_TARGET_OPTION if lto_stream_offload_p.
32787 (write_ts_function_decl_tree_pointers): Don't
32788 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32789 * tree-streamer-in.c (unpack_value_fields): Don't stream
32790 TREE_TARGET_OPTION in if ACCEL_COMPILER.
32791 (lto_input_ts_function_decl_tree_pointers): Don't stream
32792 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32793 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32794 instead of section_name_prefix string comparisons.
32795
32796 2015-01-09 Jakub Jelinek <jakub@redhat.com>
32797
32798 PR rtl-optimization/64536
32799 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32800 tablejumps.
32801
32802 2015-01-09 Michael Collison <michael.collison@linaro.org>
32803
32804 PR tree-optimization/64322
32805 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32806 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32807
32808 2015-01-09 Tom de Vries <tom@codesourcery.com>
32809
32810 PR rtl-optimization/64539
32811 * regcprop.c (kill_clobbered_values): Factor out of ...
32812 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
32813 instead of note_stores with kill_clobbered_value.
32814
32815 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32816
32817 * ginclude/unwind-arm-common.h: Revert previous commit.
32818
32819 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32820
32821 * config.gcc (arm*-*-freebsd*): New configuration.
32822 * config/arm/freebsd.h: New file.
32823 * config.host: Add extra components for arm*-*-freebsd*.
32824 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32825 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32826
32827 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32828
32829 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32830 for -mcpu=e6500.
32831 * config/rs6000/t-rtems: Add e6500 multilibs.
32832
32833 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32834
32835 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32836 MPC8540.
32837
32838 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32839
32840 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32841 MULTILIB_EXCEPTIONS.
32842
32843 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32844
32845 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32846 MULTILIB_EXCEPTIONS.
32847
32848 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32849
32850 * config/arm/t-rtems-eabi: Rename to...
32851 * config/arm/t-rtems: ...this.
32852 * config/arm/rtems-eabi.h: Rename to...
32853 * config/arm/rtems.h: ...this.
32854 * config.gcc (arm*-*-rtems*): Reflect changes above.
32855
32856 2015-01-09 Richard Biener <rguenther@suse.de>
32857
32858 PR tree-optimization/64410
32859 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32860 on the LHS.
32861 (execute_update_addresses_taken): Deal with that.
32862 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32863 loads/stores for complex variables.
32864
32865 2015-01-09 Martin Liska <mliska@suse.cz>
32866
32867 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32868 name comparison.
32869 (func_checker::compare_memory_operand): New function.
32870 (func_checker::compare_operand): Split case to newly
32871 added functions.
32872 (func_checker::compare_cst_or_decl): New function.
32873 (func_checker::compare_gimple_call): Identify
32874 memory operands.
32875 (func_checker::compare_gimple_assign): Likewise.
32876 * ipa-icf-gimple.h: New function.
32877
32878 2015-01-09 Martin Liska <mliska@suse.cz>
32879
32880 PR ipa/64503
32881 * sreal.c (sreal::dump): Change unsigned format to signed for
32882 m_exp value.
32883 (sreal::to_double): Replace exp2 with scalbln.
32884
32885 2015-01-09 Martin Liska <mliska@suse.cz>
32886
32887 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32888 * ipa-icf.c (sem_function::equals_private): Add support for target and
32889 (sem_item_optimizer::merge_classes): Remove redundant function
32890 optimization flags comparison.
32891 * tree.h (target_opts_for_fn): New function.
32892
32893 2015-01-09 Tom de Vries <tom@codesourcery.com>
32894
32895 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32896
32897 2015-01-09 Kito Cheng <kito@0xlab.org>
32898
32899 PR rtl-optimization/64348
32900 * lra-constraints.c (split_reg): Fix caller-save store/restore
32901 instruction generation.
32902
32903 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
32904
32905 PR gcov-profile/61790
32906 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32907 long long. Fallback to int64_t if host doesn't have long long and
32908 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
32909
32910 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32911
32912 PR tree-optimization/63989
32913 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32914 from 1000 to 10000.
32915 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32916 (get_stridx): If we don't have a record for certain SSA_NAME,
32917 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32918 constant offset, call get_stridx_plus_constant.
32919 (get_stridx_plus_constant): New function.
32920 (zero_length_string): Don't use get_stridx here.
32921
32922 PR target/55023
32923 PR middle-end/64388
32924 * dse.c (struct insn_info): Mention frame_read set also
32925 before reload for tail calls on some targets.
32926 (scan_insn): Revert 2014-12-22 change. Set frame_read
32927 also before reload for tail calls if
32928 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
32929 instead of add_non_frame_wild_read for non-const/memset
32930 tail calls after reload.
32931
32932 2015-01-08 Jason Merrill <jason@redhat.com>
32933
32934 * ubsan.c (do_ubsan_in_current_function): New.
32935 (pass_ubsan::gate): Use it.
32936 * ubsan.h: Declare it.
32937 * convert.c (convert_to_integer): Use it.
32938
32939 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32940
32941 PR target/64338
32942 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32943 compare_code when it is unconditionally overwritten afterwards.
32944 Use ix86_reverse_condition instead of reverse_condition. Don't
32945 change code if *reverse_condition* returned UNKNOWN and don't
32946 swap ct/cf and negate diff in that case.
32947
32948 2015-01-08 Mike Stump <mikestump@comcast.net>
32949
32950 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32951 (pass_tsan_O0::gate): Likewise.
32952 * extend.texi (Function Attributes): Add no_sanitize_thread
32953 documentation.
32954
32955 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
32956
32957 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32958 for registering builtins.
32959 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32960 add -fopenmp to the argv_obstack used when invoking
32961 compile_for_target.
32962
32963 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32964 add "-m32" or "-m64" to argv_obstack.
32965 (generate_host_descr_file): Likewise, when invoking host_compiler.
32966 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32967 ld.
32968
32969 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32970
32971 * config/sh/sh-mem.cc: Use constant as second operand when emitting
32972 tstsi_t insns.
32973
32974 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32975
32976 PR target/55212
32977 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32978 constant load if constant operand fits into I08.
32979
32980 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32981
32982 PR sanitizer/64336
32983 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32984 and TREE_THIS_VOLATILE for MEM_REFs.
32985 (build5_stat): Fix up initialization of TREE_READONLY and
32986 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32987
32988 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
32989
32990 PR target/64533
32991 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32992 of r for the second alternative of the destination operand.
32993
32994 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
32995
32996 PR target/36557
32997 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32998
32999 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33000
33001 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33002 keywords.
33003 ([-fivar-visibility], [-fvisibility]): Likewise.
33004
33005 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33006
33007 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33008 the file where @code, @command, etc is more appropriate.
33009
33010 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
33011
33012 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33013 of -mrecip= documentation.
33014
33015 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33016
33017 PR target/64505
33018 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33019 correct reload handler if -m32 -mpowerpc64 is used.
33020
33021 2015-01-06 Tom de Vries <tom@codesourcery.com>
33022
33023 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33024
33025 2015-01-08 Christian Bruel <christian.bruel@st.com>
33026
33027 PR target/64507
33028 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33029
33030 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
33031
33032 PR tree-optimization/63259
33033 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33034 if optab exists for 16bit byteswap.
33035
33036 2015-01-06 Jakub Jelinek <jakub@redhat.com>
33037
33038 * opts.c (common_handle_option): Add support for
33039 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33040 * doc/invoke.texi: Document -fno-sanitize=all,
33041 -f{,no-}sanitize-recover=all. Document that
33042 -fsanitize=float-cast-overflow is not enabled
33043 by -fsanitize=undefined. Fix up documentation
33044 of -f{,no-}sanitize-recover.
33045
33046 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
33047
33048 * config.gcc: Add Visium support.
33049 * configure.ac: Likewise.
33050 * configure: Regenerate.
33051 * doc/extend.texi (interrupt attribute): Add Visium.
33052 * doc/invoke.texi: Document Visium options.
33053 * doc/install.texi: Document Visium target.
33054 * doc/md.texi: Document Visium constraints.
33055 * common/config/visium: New directory.
33056 * config/visium: Likewise.
33057
33058 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33059
33060 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33061 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33062
33063 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33064
33065 * combine.c (combine_validate_cost): Do not count the cost of a
33066 split I2 twice. Do not display it twice in the dump, either.
33067
33068 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33069
33070 Revert parts of r219199.
33071 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33072 <inttypes.h>.
33073 ([-Wtraditional]): Restore markup on <limits.h>.
33074
33075 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
33076
33077 PR c++/31397
33078 * doc/invoke.texi: Document -Wsuggest-override.
33079
33080 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
33081
33082 PR rtl-optimization/64287
33083 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33084 (process_options): Disable flag_ipa_ra if profiling.
33085
33086 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
33087
33088 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33089
33090 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
33091
33092 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33093 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33094 put under #if TARGET_LOOPS guard.
33095
33096 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
33097
33098 * config/i386/i386.c (output_387_binary_op): Use std::swap.
33099
33100 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
33101
33102 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33103 * rtl.h (refers_to_regno_p): Add overload.
33104 * cse.c: Use it.
33105 * bt-load.c: Likewise.
33106 * combine.c: Likewise.
33107 * df-scan.c: Likewise.
33108 * sched-deps.c: Likewise.
33109 * config/s390/s390.c: Likewise.
33110 * config/m32r/m32r.c: Likewise.
33111 * config/rs6000/spe.md: Likewise.
33112 * config/rs6000/rs6000.c: Likewise.
33113 * config/pa/pa.c: Likewise.
33114 * config/stormy16/stormy16.c: Likewise.
33115 * config/cris/cris.c: Likewise.
33116 * config/arc/arc.md: Likewise.
33117 * config/arc/arc.c: Likewise.
33118 * config/sh/sh.md: Likewise.
33119 * config/sh/sh.c: Likewise.
33120 * config/frv/frv.c: Likewise.
33121
33122 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33123
33124 PR sanitizer/64265
33125 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33126 call as cleanup of the whole body.
33127 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33128 * tsan.c (replace_func_exit): New function.
33129 (instrument_func_exit): Moved earlier.
33130 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33131 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33132 been found.
33133 (tsan_pass): Don't call instrument_func_exit.
33134 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33135 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33136 inlining.
33137
33138 PR sanitizer/64344
33139 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33140 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33141 it to libubsan handler instead of EXPR. Fold comparisons earlier,
33142 if the result is integer_zerop, return NULL_TREE.
33143 * convert.c (convert_to_integer): Pass expr as ARG.
33144
33145 PR tree-optimization/64465
33146 * tree-inline.c (redirect_all_calls): During inlining
33147 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33148 changed the stmt to a non-throwing call.
33149
33150 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33151
33152 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33153 etc markup throughout the file.
33154
33155 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33156
33157 Enable experimental TSAN support for Ada.
33158 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33159
33160 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33161
33162 PR tree-optimization/64494
33163 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33164 clear SSA_NAME_ANTI_RANGE_P flag.
33165
33166 2015-01-05 Marek Polacek <polacek@redhat.com>
33167
33168 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33169
33170 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33171
33172 Update copyright years.
33173
33174 * gcc.c (process_command): Update copyright notice dates.
33175 * gcov-dump.c: Ditto.
33176 * gcov.c: Ditto.
33177 * doc/cpp.texi: Bump @copying's copyright year.
33178 * doc/cppinternals.texi: Ditto.
33179 * doc/gcc.texi: Ditto.
33180 * doc/gccint.texi: Ditto.
33181 * doc/gcov.texi: Ditto.
33182 * doc/install.texi: Ditto.
33183 * doc/invoke.texi: Ditto.
33184
33185 * auto-profile.c, auto-profile.h: Fix up Copyright line.
33186
33187 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
33188
33189 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33190 verb tense, etc.
33191 ([-fvtable-verify], [-fvtv-debug]): Likewise.
33192 ([-Wabi]): Likewise.
33193 ([-fmessage-length]): Likewise.
33194 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33195 ([-Wno-discarded-qualifiers]): Likewise.
33196 ([-Wnodiscarded-array-qualifiers]): Likewise.
33197 ([-Wno-virtual-move-assign]): Likewise.
33198 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33199 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33200 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33201 ([-fsanitize-undefined-trap-on-error]): Likewise.
33202 ([-floop-interchange]): Likewise.
33203 ([-ftree-coalesce-inlined-vars]): Likewise.
33204 ([-fvect-cost-model]): Likewise.
33205 ([-flto]): Likewise.
33206 ([--param]): Likewise.
33207 (Spec Files): Likewise.
33208 ([-mstrict-align]): Likewise.
33209 ([-mfix-cortex-a53-835769]): Likewise.
33210 ([-march], [-mtune]): Likewise.
33211 ([-mpic-register]): Likewise.
33212 ([-munaligned-access]): Likewise.
33213 ([-msp8]): Likewise.
33214 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33215 (AVR Built-in Macros): Likewise.
33216 ([-mpreferred-stack-boundary]): Likewise.
33217 ([-mtune-crtl]): Likewise.
33218 ([-mashf]): Likewise.
33219 ([-mmcu=]): Likewise.
33220 ([-minrt]): Likewise.
33221 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33222 ([-mupper-regs]): Likewise.
33223 ([-matomic-model]): Likewise.
33224 ([-mdiv]): Likewise.
33225 ([-mzdcbranch]): Likewise.
33226 ([-mdisable-callt]): Likewise.
33227 ([-msoft-float]): Likewise.
33228 ([-m8byte-align]): Likewise.
33229 ([-fstack-reuse]): Likewise.
33230
33231 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33232
33233 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33234 Fix markup, light copy-editing.
33235 ([-fauto-profile]): Rewrite to fix formatting and content
33236 problems.
33237
33238 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33239
33240 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33241 Copy-edit description.
33242 ([-fisolate-erroneous-paths-attribute]): Likewise.
33243 * common.opt (fisolate-erroneous-paths-dereference):
33244 Copy-edit description.
33245 (fisolate-erroneous-paths-attribute): Likewise.
33246
33247 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33248
33249 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33250 tidy grammar.
33251
33252 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33253
33254 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33255 ([-fvtv-debug]): Likewise.
33256 ([-Wc++-compat]): Likewise.
33257 ([-Wc++11-compat]): Likewise.
33258 ([-Wc++14-compat]): Likewise.
33259 ([-Wno-sized-deallocation]): Likewise.
33260 ([-femit-class-debug-always]): Likewise.
33261 ([-femit-struct-debug-detailed]): Likewise.
33262 ([-fno-keep-inline-dllexport]): Likewise.
33263 ([-fira-algorithm]): Likewise.
33264 ([-fira-region]): Likewise.
33265 ([-flra-remat]): Likewise.
33266 ([-fipa-ra]): Likewise.
33267 ([-fhoist-adjacent-loads]): Likewise.
33268 ([-fisolate-erroneous-paths-dereference]): Likewise.
33269 ([-fisolate-erroneous-paths-attribute]): Likewise.
33270 ([-ftree-switch-conversion]): Likewise.
33271 ([-ftree-tail-merge]): Likewise.
33272 ([-ftree-loop-if-convert]): Likewise.
33273 ([-ftree-loop-if-convert-stores]): Likewise.
33274 ([-ftree-loop-distribution]): Likewise.
33275 ([-ftree-loop-distribute-patterns]): Likewise.
33276 ([-flto-compression-level]): Likewise.
33277 ([-flto-report]): Likewise.
33278 ([-flto-report-wpa]): Likewise.
33279 ([-fuse-linker-plugin]): Likewise.
33280 ([-mfix-cortex-a53-835769]): Likewise.
33281 ([-mno-fix-cortex-a53-835769]): Likewise.
33282 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33283 explicit listing; add a note to the discussion indicating they
33284 exist. Reorder table to group similar options. Add missing
33285 @opindex entries. Add @need commands throughout the table to
33286 allow it to be split across multiple pages.
33287 ([-m8bit-idiv]): Fix @opindex.
33288 ([-mavx256-split-unaligned-load]): Likewise.
33289 ([-mavx256-split-unaligned-store]): Likewise.
33290 ([-mstack-protector-guard]): Likewise.
33291 ([-mcpu=]): Likewise.
33292 ([-mcpu]): Likewise.
33293 ([-mpointer-size=]): Likewise.
33294
33295 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
33296
33297 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33298 instead of `m' constraint. Likewise for unnamed movb comparison
33299 patterns using reg_before_reload_operand predicate.
33300 * config/pa/predicates.md (reg_before_reload_operand): Tighten
33301 predicate to reject register index and LO_SUM DLT memory forms
33302 after reload.
33303
33304 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33305
33306 * doc/invoke.texi (Option Summary): Fix spelling of
33307 -fdevirtualize-at-ltrans.
33308 ([-fdevirtualize]): Fix markup.
33309 ([-fdevirtualize-speculatively]): Fix typo.
33310 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
33311 implementor-speaky.
33312 * common.opt (fdevirtualize-at-ltrans): Likewise.
33313 * ipa-devirt.c: Fix typos in comments throughout the file.
33314 (ipa_devirt): Fix typos in format strings for dump output.
33315
33316 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33317
33318 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33319 discussion of defaults, light copy-editing.
33320
33321 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33322
33323 * tsan.c (instrument_expr): corrected previous checkin.
33324
33325 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33326
33327 Instrument bit field and unaligned accesses for TSAN.
33328 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33329 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33330 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33331 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33332 unaligned memory regions.
33333
33334 2015-01-01 Anthony Green <green@moxielogic.com>
33335
33336 * config/moxie/predicates.md (moxie_general_movsrc_operand):
33337 Restrict move source register offsets to 16 bits.
33338 \f
33339 Copyright (C) 2015 Free Software Foundation, Inc.
33340
33341 Copying and distribution of this file, with or without modification,
33342 are permitted in any medium without royalty provided the copyright
33343 notice and this notice are preserved.