Use gcc/coretypes.h:enum offload_abi in mkoffloads
[gcc.git] / gcc / ChangeLog
1 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2
3 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4 variable, replacing it with...
5 (offload_abi): ... this new variable. Adjust all users.
6 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7
8 2015-09-30 Matthias Klose <doko@ubuntu.com>
9
10 * configure.ac: Remove extraneous ;;.
11 * configure: Regenerate.
12
13 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14
15 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
16 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
17 predicate, disallow register for operand 2.
18
19 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
20
21 * graphite-dependences.c (scop_get_dependences): Moved in down
22 in order to be visible to its caller.
23 * graphite-poly.h: Removed compute_deps, and extend_schedule.
24
25 2015-09-29 Sebastian Pop <s.pop@samsung.com>
26 Aditya Kumar <aditya.k7@samsung.com>
27
28 PR tree-optimization/67754
29 * graphite-optimize-isl.c (optimize_isl): Call
30 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
31
32 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
33
34 * builtins.c (expand_builtin_acc_on_device): Delete.
35 (expand_builtin): Don't call it.
36 (fold_builtin_1): Fold acc_on_device.
37
38 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
39
40 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
41 (ix86_nsaved_sseregs): Likewise.
42
43 2015-09-29 Jeff Law <law@redhat.com>
44
45 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
46 computation of unused value.
47
48 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
49 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
50 inline macro expansion.
51
52 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
53
54 * config/sh/sh.c (gen_shl_and): Fix undefined left shift
55 behaviour.
56 (gen_shl_sext): Likewise.
57 * config/sh/sh.md (divsi3): Likewise.
58 (imm->ext_dest_operand splitter): Likewise.
59
60 2015-09-29 Sebastian Pop <s.pop@samsung.com>
61 Aditya Kumar <aditya.k7@samsung.com>
62
63 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
64 (nb_data_writes_in_bb): Remove.
65 (split_pbb): Remove.
66 (split_reduction_stmt): Remove.
67 (is_reduction_operation_p): Remove.
68 (phi_contains_arg): Remove.
69 (follow_ssa_with_commutative_ops): Remove.
70 (detect_commutative_reduction_arg): Remove.
71 (detect_commutative_reduction_assign): Remove.
72 (follow_inital_value_to_phi): Remove.
73 (edge_initial_value_for_loop_phi): Remove.
74 (initial_value_for_loop_phi): Remove.
75 (used_outside_reduction): Remove.
76 (detect_commutative_reduction): Remove.
77 (translate_scalar_reduction_to_array_for_stmt): Remove.
78 (remove_phi): Remove.
79 (dr_indices_valid_in_loop): Remove.
80 (close_phi_written_to_memory): Remove.
81 (translate_scalar_reduction_to_array): Remove.
82 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
83 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
84 (rewrite_commutative_reductions_out_of_ssa): Remove.
85 (build_poly_scop): Remove call to
86 rewrite_commutative_reductions_out_of_ssa.
87
88 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
89
90 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
91 Add new insn types for vector load and store pairs.
92 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
93 types "neon_ldp{,_q}".
94 * config/arm/cortex-a57.md (neon_load_c): Add insn types
95 "neon_ldp{,_q}".
96 (neon_store_complex): Add insn types "neon_stp{,_q}".
97 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
98 "neon_{ldp,stp}_q".
99
100 2015-09-29 Jeff Law <law@redhat.com>
101
102 * config/rx/constraints.md (Int08): Fix undefined left shift
103 behaviour.
104 (Sint08, Sint16, Sint24): Likewise.
105 * config/rx/rx.c (rx_get_stack_layout): Likewise.
106
107 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
108 behaviour.
109
110 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
111 left shift behaviour.
112 * config/msp430/constraints.md ('L' constraint): Similarly.
113 ('Ys' constraint): Similarly.
114
115 2015-09-29 Richard Biener <rguenther@suse.de>
116
117 PR tree-optimization/67170
118 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
119 the translate function pointer parameter to get the
120 bool whether to disambiguate only by reference.
121 (walk_non_aliased_vuses): Likewise.
122 * tree-ssa-alias.c (maybe_skip_until): Adjust.
123 (get_continuation_for_phi_1): Likewise.
124 (get_continuation_for_phi): Likewise.
125 (walk_non_aliased_vuses): Likewise.
126 * tree-ssa-sccvn.c (const_parms): New bitmap.
127 (vn_reference_lookup_3): Adjust for interface change.
128 Disambiguate parameters pointing to readonly memory.
129 (free_scc_vn): Free const_parms.
130 (run_scc_vn): Initialize const_parms from a fn spec attribute.
131
132 2015-09-29 Richard Biener <rguenther@suse.de>
133
134 PR tree-optimization/67741
135 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
136 builtin calls with correct signature.
137
138 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
139
140 PR target/65105
141 * config/i386/i386.c: Include dbgcnt.h.
142 (has_non_address_hard_reg): New.
143 (convertible_comparison_p): New.
144 (scalar_to_vector_candidate_p): New.
145 (remove_non_convertible_regs): New.
146 (scalar_chain): New.
147 (scalar_chain::scalar_chain): New.
148 (scalar_chain::~scalar_chain): New.
149 (scalar_chain::add_to_queue): New.
150 (scalar_chain::mark_dual_mode_def): New.
151 (scalar_chain::analyze_register_chain): New.
152 (scalar_chain::add_insn): New.
153 (scalar_chain::build): New.
154 (scalar_chain::compute_convert_gain): New.
155 (scalar_chain::replace_with_subreg): New.
156 (scalar_chain::replace_with_subreg_in_insn): New.
157 (scalar_chain::emit_conversion_insns): New.
158 (scalar_chain::make_vector_copies): New.
159 (scalar_chain::convert_reg): New.
160 (scalar_chain::convert_op): New.
161 (scalar_chain::convert_insn): New.
162 (scalar_chain::convert): New.
163 (convert_scalars_to_vector): New.
164 (pass_data_stv): New.
165 (pass_stv): New.
166 (make_pass_stv): New.
167 (ix86_option_override): Created and register stv pass.
168 (flag_opts): Add -mstv.
169 (ix86_option_override_internal): Likewise.
170 * config/i386/i386.md (SWIM1248x): New.
171 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
172 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
173 (*anddi3_doubleword): New.
174 (*zext<mode>_doubleword): New.
175 (*zextsi_doubleword): New.
176 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
177 (*<code>di3_doubleword): New.
178 * config/i386/i386.opt (mstv): New.
179 * dbgcnt.def (stv_conversion): New.
180
181 2015-09-29 Tom de Vries <tom@codesourcery.com>
182
183 * tree-cfg.c (dump_function_to_file): Dump function attributes.
184
185 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
186
187 PR target/67716
188 * config/sh/sh.c (sh_override_options_after_change): New.
189 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
190 (sh_option_override): Move align_loops, align_jumps and
191 align_functions handling into sh_override_options_after_change.
192
193 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
194
195 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
196 (nvptx_record_offload_symbol): Record function execution geometry.
197 * config/nvptx/mkoffload.c (process): Include launch geometry in
198 function data.
199 * omp-low.c (oacc_launch_pack): New.
200 (replace_oacc_fn_attrib): New.
201 (set_oacc_fn_attrib): New.
202 (get_oacc_fn_attrib): New.
203 (expand_omp_target): Create keyed varargs for GOACC_parallel call
204 generation.
205 * omp-low.h (get_oacc_fn_attrib): Declare.
206 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
207 (DEF_FUNCTION_TYPE_VAR_11): Delete.
208 * tree.h (OMP_CLAUSE_EXPR): New.
209 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
210
211 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
212 Sebastian Pop <s.pop@samsung.com>
213
214 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
215
216 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
217 Sebastian Pop <s.pop@samsung.com>
218
219 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
220 * graphite-scop-detection.c (struct sese_l): New type.
221 (get_entry_bb): API for getting entry bb of SESE.
222 (get_exit_bb): API for getting exit bb of SESE.
223 (class debug_printer): New type. Simple printer in debug mode.
224 (trivially_empty_bb_p): New. Return true when BB is empty or
225 contains only debug instructions.
226 (graphite_can_represent_expr): Call scalar_evoution_in_region
227 instead of analyze_scalar_evolution. Pass in scop instead of only
228 the scop entry.
229 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
230 scop entry.
231 (stmt_simple_for_scop_p): Same.
232 (harmful_stmt_in_bb): Same.
233 (graphite_can_represent_loop): Deleted.
234 (struct scopdet_info): Deleted.
235 (scopdet_basic_block_info): Deleted.
236 (build_scops_1): Deleted.
237 (bb_in_sd_region): Deleted.
238 (find_single_entry_edge): Deleted.
239 (find_single_exit_edge): Deleted.
240 (create_single_entry_edge): Deleted.
241 (sd_region_without_exit): Deleted.
242 (create_single_exit_edge): Deleted.
243 (unmark_exit_edges): Deleted.
244 (mark_exit_edges): Deleted.
245 (create_sese_edges): Deleted.
246 (build_graphite_scops): Deleted.
247 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
248 (build_scops): Use the new scop_builder to build scops.
249 (dot_all_scops_1): Use the new pretty printer. Print loop father
250 as well.
251 (loop_body_is_valid_scop): New. Return true if loop body is a
252 valid scop.
253 (class scop_builder): New. Builds SCoPs for polyhedral
254 optimizations.
255 (scop_builder): New constructor.
256 (static sese_l invalid_sese): sese_l with invalid edges.
257 (get_sese): Get an sese (from a loop) if possible, invalid_sese
258 otherwise.
259 (get_nearest_dom_with_single_entry): Get nearest dominator of a
260 basic_block with single entry. Return NULL if we get to the
261 beginning of a function.
262 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
263 a basic_block with single exit. Return NULL if we get to the
264 beginning of a function.
265 (print_sese): Pretty-print SESE.
266 (merge_sese): Merge two SESEs if possible and return the new SESE.
267 (build_scop_depth): Start building the SCoP within a loop nest.
268 (build_scop_breadth): Start building the SCoP at a single loop
269 depth. Merge adjacent SESEs if valid.
270 (can_represent_loop_1): Returns true if Graphite can represent
271 loop inside SCoP. Helper for can_represent_loop.
272 (can_represent_loop): Returns true if Graphite can represent LOOP
273 and all its nested loops in SCoP.
274 (loop_is_valid_scop): Returns true if LOOP and all its nests
275 constitute a valid SCoP.
276 (region_has_one_loop): Returns true of a region has only one loop.
277 (add_scop): Add SCoP to the list of valid scops. Removes an
278 already existing scop if it intersects with or subsumed by this one.
279 (harmful_stmt_in_region): Returns true if SCoP has any statment
280 which cannot be represented by Graphite.
281 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
282 (remove_subscops): Remove any SCoP from the list of already found
283 SCoPs, if subsumed by S1.
284 (intersects): Return true if region bounded by SCoPs S1 and S2
285 intersect.
286 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
287 * graphite.c (print_graphite_scop_statistics):
288 (print_graphite_statistics): Print SCoP info while debugging.
289 (graphite_initialize): Early exit in case number of loops in a
290 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
291 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
292 (graphite_finalize):
293 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
294 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
295 (recompute_all_dominators): Recalculate POST_DOMINATORS.
296 * tree-cfg.c (print_loops): Print the function name while printing
297 loops.
298
299 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
300 Sebastian Pop <s.pop@samsung.com>
301
302 PR tree-optimization/67700
303 * graphite-sese-to-poly.c (parameter_index_in_region): Call
304 invariant_in_sese_p_rec.
305 (extract_affine): Same.
306 (rewrite_cross_bb_scalar_deps): Call update_ssa.
307 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
308 * sese.h (invariant_in_sese_p_rec): Declare.
309
310 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
311
312 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
313
314 2015-09-28 Jiong Wang <jiong.wang@arm.com>
315
316 Revert:
317 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
318 Jiong Wang <jiong.wang@arm.com>
319
320 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
321 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
322 (REG_CLASS_NAMES): Likewise.
323 (REG_CLASS_CONTENTS): Likewise.
324 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
325 (aarch64_register_move_cost): Likewise.
326 (aarch64_load_symref_appropriately): Invoke the new added pattern if
327 possible.
328 * config/aarch64/constraints.md (Uc0): New constraint.
329
330 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
331
332 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
333
334 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
335
336 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
337 SECTION_EXCLUDE in XO mapping class.
338
339 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
340
341 PR target/54236
342 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
343 and handle ne and eq codes.
344 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
345 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
346 CONST_INT_P. Use reverse_condition.
347 (sh_split_treg_set_expr): Likewise.
348
349 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
350
351 * config/arm/types.md (type): Add rotate_imm.
352 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
353 ROR immediate case.
354 (*rorsi3_insn_uxtw): Likewise.
355 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
356 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
357 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
358
359 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
360
361 PR rtl-optimization/67481
362 * ifcvt.c (contains_ccmode_rtx_p): New function.
363 (insn_valid_noce_process_p): Use it.
364
365 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
366
367 PR rtl-optimization/67456
368 PR rtl-optimization/67464
369 PR rtl-optimization/67465
370 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
371 move in the mode of x. Handle combination of complex and simple
372 block pairs as well as the case when one is empty.
373
374 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
375
376 * doc/gimple.texi: Update references to gimple_statement_base.
377 * gdbhooks.py: Likewise.
378 * gimple.h: Likewise.
379
380 2015-09-28 Daniel Cederman <cederman@gaisler.com>
381
382 * config/sparc/driver-sparc.c: map LEON to leon3
383
384 2015-09-28 Daniel Cederman <cederman@gaisler.com>
385
386 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
387 and make it inverse to change default
388 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
389 supervisor mode
390 * doc/invoke.texi: Document change of default
391
392 2015-09-28 Daniel Cederman <cederman@gaisler.com>
393
394 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
395 true on %f0 for a target without FPU.
396 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
397 without FPU.
398 (untyped_return): Do not load %f0 for a target without FPU.
399
400 2015-09-28 Andrew Pinski <apinski@cavium.com>
401
402 * config/aarch64/aarch64.md (prefetch):
403 Change the predicate of operand 0 to register_operand.
404
405 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
406
407 * config/i386/predicates.md (register_sse4nonimm_operand): New
408 predicate.
409 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
410 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
411 Use register_sse4nonimm_operand as operand 0 predicate.
412 (*vec_extractv8hi_sse2): Remove insn pattern.
413 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
414 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
415
416 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
417 Kaz Kojima <kkojima@gcc.gnu.org>
418
419 PR target/67391
420 * config/sh/sh-protos.h (sh_lra_p): Declare.
421 * config/sh/sh.c (sh_lra_p): Make non-static.
422 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
423 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
424 Expand into addsi3_scr if operands[2] if needed.
425 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
426 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
427 (addsi3_scr, *addsi3): New insn_and_split patterns.
428
429 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
430
431 PR rtl-optimization/64164
432 PR tree-optimization/67312
433 PR middle-end/67340
434 PR middle-end/67490
435 PR bootstrap/67597
436 * cfgexpand.c (parm_in_stack_slot_p): Remove.
437 (ssa_default_def_partition): Remove.
438 (get_rtl_for_parm_ssa_default_def): Remove.
439 (set_rtl): Check that RTL assignments match expectations.
440 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
441 default def location for params and results. Record SSA names
442 or types in REG and MEM attrs, respectively.
443 (set_parm_rtl): New.
444 (expand_one_ssa_partition): Drop logic that assigned MEMs with
445 unassigned addresses.
446 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
447 deferred stack alloc vars.
448 (expand_used_vars): Skip partitions holding parm default defs.
449 Move adjust_one_expanded_partition_var loop...
450 (pass_expand::execute): ... here. Drop redundant assert.
451 Adjust comments before the final loop over all ssa names.
452 Require assigned rtl of parms and results to match exactly.
453 Reset its attributes to match them, not any other variables in
454 the same partition.
455 (expand_debug_expr): Use entry value for PARM's default defs
456 only iff they have zero nondebug uses.
457 * cfgexpand.h (parm_in_stack_slot_p): Remove.
458 (get_rtl_for_parm_ssa_default_def): Remove.
459 (set_parm_rtl): Declare.
460 * doc/invoke.texi: Improve wording.
461 * explow.c (promote_decl_mode): Fix promote_function_mode for
462 result decls not by reference.
463 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
464 bypass TYPE_MODE to get the actual vector mode.
465 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
466 2015-08-19's changes as follows. Drop include of
467 basic-block.h and df.h.
468 (rtl_for_parm): Remove.
469 (maybe_reset_rtl_for_parm): Remove.
470 (parm_in_unassigned_mem_p): Remove.
471 (use_register_for_decl): Add logic for RESULT_DECLs matching
472 assign_parms' behavior.
473 (split_complex_args): Revert.
474 (assign_parms_augmented_arg_list): Revert. Add comment
475 referencing the logic above.
476 (assign_parm_adjust_stack_rtl): Revert.
477 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
478 of SET_DECL_RTL. Set up a REG if the parm demands so.
479 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
480 calls into a single set_parm_rtl. Set up a temporary RTL
481 temporarily for expand_assignment.
482 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
483 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
484 (assign_bounds): Revert.
485 (assign_parms): Revert. Use set_parm_rtl.
486 (allocate_struct_function): Relayout result and parms of
487 non-abstruct functions.
488 (expand_function_start): Revert. Use set_parm_rtl. If the
489 result is not a hard reg, create a pseudo from the promoted
490 mode of the default def. Promote static chain mode.
491 * tree-outof-ssa.c (remove_ssa_form): Drop unused
492 partition_has_default_def. Set up
493 partitions_for_parm_default_defs.
494 (finish_out_of_ssa): Remove partition_has_default_def.
495 Release partitions_for_parm_default_defs.
496 * tree-outof-ssa.h (struct ssaexpand): Remove
497 partition_has_default_def. Add
498 partitions_for_parm_default_defs.
499 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
500 stor-layout.h.
501 (build_ssa_conflict_graph): Fix conflict-detection of default
502 defs of even unused default defs of params and results.
503 (for_all_parms): New.
504 (create_default_def): New.
505 (register_default_def): New.
506 (coalesce_with_default): New.
507 (create_outofssa_var_map): Create default defs for all parms
508 and results, and register their partitions. Add GIMPLE_RETURN
509 operands as coalesce candidates with results. Add default
510 defs of each parm or result as coalesce candidates with its
511 other defs. Mark each result def, and each default def of
512 parms, as used_in_copy.
513 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
514 with the ssa names, even anonymous ones. Drop
515 parm_in_stack_slot_p calls. Require same signedness and
516 alignment.
517 (coalesce_ssa_name): Add coalesce candidates for all defs of
518 each parm and result, even unused ones.
519 (parm_default_def_partition_arg): New type.
520 (set_parm_default_def_partition): New.
521 (get_parm_default_def_partitions): New.
522 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
523 * tree-ssa-live.c (partition_view_init): Regard unused defs of
524 parms and results as used.
525 (verify_live_on_entry): Don't error out just because they're
526 not live.
527
528 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
529
530 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
531 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
532 (output_fde): Don't output length for debug_frame on AIX.
533 (output_call_frame_info): Don't output length for debug_frame on AIX.
534 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
535 HAVE_XCOFF_DWARF_EXTRAS.
536 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
537 HAVE_XCOFF_DWARF_EXTRAS.
538 (output_compilation_unit_header): Don't output length on AIX.
539 (output_pubnames): Don't output length on AIX.
540 (output_aranges): Delete argument. Compute length locally. Don't
541 output length on AIX.
542 (output_line_info): Don't output length on AIX.
543 (dwarf2out_finish): Don't compute aranges_length.
544 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
545 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
546 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
547 symbol decoration for AIX.
548 (rs6000_xcoff_debug_unwind_info): New.
549 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
550 for SECTION_DEBUG.
551 (rs6000_xcoff_declare_function_name): Emit different
552 .function pseudo-op when DWARF2_DEBUG. Don't call
553 xcoffout_declare_function for DWARF2_DEBUG.
554 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
555 Redefine.
556 * config/rs6000/aix71.h: New.
557 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
558 locations support.
559 * configure: Regenerate.
560 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
561 DWARF support.
562
563 2015-09-26 Jeff Law <law@redhat.com>
564
565 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
566 behaviour.
567 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
568 behaviour.
569
570 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
571 behaviour
572
573 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
574 undefined behaviour.
575
576 * config/cris/cris.md (asrandb): Fix left shift undefined
577 behaviour.
578 (asrandw): Likewise.
579
580 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
581
582 PR target/61578
583 * lra-constarints.c (match_reload): Check presence of the input pseudo
584 in the output operand.
585
586 2015-09-25 Tobias Burnus <burnus@net-b.de>
587
588 * doc/invoke.texi (-fsanitize): Minor wording tweak.
589
590 2015-09-25 Tobias Burnus <burnus@net-b.de>
591
592 * doc/invoke.texi (-fsanitize): Update URLs.
593
594 2015-09-25 Teresa Johnson <tejohnson@google.com>
595
596 * opts.c (finish_options): Unset -freorder-blocks-and-partition
597 if not using profile.
598
599 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
600
601 PR pretty-print/67567
602 * pretty-print.c (pp_string): Add gcc_checking_assert.
603 * pretty-print.h (output_buffer_append_r): Likewise.
604
605 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
606
607 PR target/67675
608 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
609 addr2 individually. Don't emit logical or insn if one is known to
610 be aligned approriately.
611 (sh_expand_cmpnstr): Likewise.
612
613 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
614
615 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
616 __builtin_aarch64_fp[sc]r arguments into a register.
617
618 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
619
620 * config.gcc (x86_archs): Replace lakemount with lakemont.
621 (with_cpu): Likewise.
622 (with_arch): Likewise.
623 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
624 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
625 __tune_lakemount__ with __tune_lakemont__.
626 * config/i386/i386.c (lakemount_cost): Renamed to ...
627 (lakemont_cost): This.
628 (m_LAKEMOUNT): Renamed to ...
629 (m_LAKEMONT): This.
630 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
631 (processor_target_table): Replace "lakemount" with "lakemont".
632 (processor_alias_table): Likewise.
633 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
634 PROCESSOR_LAKEMONT.
635 (ix86_adjust_cost): Likewise.
636 (ia32_multipass_dfa_lookahead): Likewise.
637 * config/i386/i386.h (processor_type): Likewise.
638 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
639 * doc/invoke.texi: Replace lakemount with lakemont. Replace
640 Lakemount with Lakemont.
641
642 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
643
644 * config.gcc (x86_archs): Replace iamcu with lakemount.
645 (with_cpu): Likewise.
646 (with_arch): Likewise.
647 * doc/invoke.texi: Likewise.
648 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
649 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
650 __tune_iamcu__ with __tune_lakemount__.
651 * config/i386/i386.c (iamcu_cost): Renamed to ...
652 (lakemount_cost): This.
653 (m_IAMCU): Renamed to ...
654 (m_LAKEMOUNT): This.
655 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
656 (processor_target_table): Replace "iamcu" with "lakemount".
657 (processor_alias_table): Likewise.
658 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
659 PROCESSOR_LAKEMOUNT.
660 (ix86_adjust_cost): Likewise.
661 (ia32_multipass_dfa_lookahead): Likewise.
662 * config/i386/i386.h (processor_type): Likewise.
663 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
664
665 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
666
667 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
668 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
669 Declare.
670 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
671 (pa_expand_compare_and_swap_loop): New.
672 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
673 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
674 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
675 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
676 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
677 Revise.
678
679 2015-09-24 Michael Collison <michael.collison@linaro.org>
680
681 PR other/57195
682 * read-md.c (read_name): Allow mode iterators inside angle
683 brackets in rtl expressions.
684
685 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
686
687 PR target/61578
688 * ira-color.c (update_allocno_cost): Add parameter.
689 (update_costs_from_allocno): Decrease conflict cost. Pass the new
690 parameter.
691
692 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
693
694 PR driver/67640
695 * opts-common.c (prune_options): Discard all -fdiagnostics-color
696 but the last one, which is moved to the front to be processed
697 first.
698 * opts.c (enable_warning_as_error): Reject options that do not
699 control warnings.
700
701 2015-09-24 Jiong Wang <jiong.wang@arm.com>
702
703 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
704
705 2015-09-24 Jiong Wang <jiong.wang@arm.com>
706
707 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
708 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
709 (aarch64_cannot_force_const_mem): Likewise.
710 (aarch64_classify_address): Likewise.
711 (aarch64_classify_symbolic_expression): Likewise.
712 (aarch64_print_operand): Likewise.
713 (aarch64_classify_symbol): Likewise.
714 (aarch64_mov_operand_p): Likewise.
715 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
716 (aarch64_mov_operand): Likewise.
717
718 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
719
720 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
721 for info->spe_gp_size.
722
723 2015-09-24 Richard Biener <rguenther@suse.de>
724
725 PR lto/67699
726 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
727 abstract origins.
728
729 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
730
731 * tree-object-size.c (plus_stmt_object_size)
732 (cond_expr_object_size): Change the formal parameters from gimple
733 to gimple *.
734 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
735 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
736 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
737
738 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
739
740 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
741 Check for ld -type pie on Solaris 11.x and 12.
742 * configure: Regenerate.
743 * config.in: Regenerate.
744
745 * gcc.c (LD_PIE_SPEC): Allow redefinition.
746
747 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
748 (STARTFILE_SPEC): Use it.
749 (ENDFILE_CRTEND_SPEC): Define.
750 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
751 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
752 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
753 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
754 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
755 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
756 (ENDFILE_ARCH_SPEC): Define.
757 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
758
759 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
760
761 * configure.ac (gcc_cv_solaris_crts): New test.
762 * configure. Regenerate.
763 * config.in: Regenerate.
764 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
765 HAVE_SOLARIS_CRTS variant.
766
767 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
768
769 * tree-inline.h (count_insns_seq): Delete prototype.
770 (estimate_num_insns_seq): Define prototype.
771 * tree-inline.c (count_insns_seq): Delete.
772 (estimate_num_insns_seq): Remove static qualifier.
773 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
774 with estimate_num_insns_seq.
775
776 2015-09-24 Richard Biener <rguenther@suse.de>
777
778 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
779 members.
780 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
781 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
782 offset.
783 (ao_ref_init_from_vn_reference): Record clique and base in the
784 built base.
785 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
786
787 2015-09-24 Richard Biener <rguenther@suse.de>
788
789 PR tree-optimization/48885
790 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
791 as not including any restrict tags from other pointers.
792
793 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
794
795 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
796 character when appending to offload_targets.
797
798 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
799 offload targets by commas, not colons.
800 * config.in: Regenerate.
801 * configure: Likewise.
802 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
803 instead of setting up the default offload targets here...
804 (process_command): ..., do it here.
805 libgomp/
806 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
807 targets are separated by commas.
808 * config.h.in: Regenerate.
809
810 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
811 Nathan Sidwell <nathan@codesourcery.com>
812
813 * omp-low.h (omp_reduction_init_op): Declare.
814 * omp-low.c (omp_reduction_init_op): New, broken out of ...
815 (omp_reduction_init): ... here. Call it.
816 * tree-parloops.c (initialize_reductions): Use
817 omp_reduction_init_op.
818
819 2015-09-23 Richard Biener <rguenther@suse.de>
820
821 PR middle-end/67662
822 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
823 undefined overflow unless they will cancel out.
824
825 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
826
827 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
828 insn emit.
829
830 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
831
832 PR c/49655
833 * opts.h (write_langs): Declare.
834 * opts-global.c (write_langs): Make it extern.
835
836 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
837
838 PR target/67391
839 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
840 overlapping regs when matching the pattern.
841
842 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
843
844 * config/aarch64/aarch64-simd.md
845 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
846 (aarch64_float_truncate_hi_v4sf_le): New.
847 (aarch64_float_truncate_hi_v4sf_be): Likewise.
848
849 2015-09-23 Richard Biener <rguenther@suse.de>
850
851 * tree-ssa-structalias.c (intra_create_variable_infos): Build
852 representatives for all restrict qualified pointer destinations.
853
854 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
855
856 * config/i386/i386.md (define_code_attr mshift): New.
857 (define_mode_iterator SWI1248_AVX512BW): Rename ...
858 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
859 only.
860 (define_insn "*k<logic><mode>"): Use new iterator name.
861 (define_insn "*<mshift><mode>3"): New.
862
863 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
864
865 PR middle-end/67649
866 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
867 mark the block as accessible.
868
869 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
870
871 * function.c (thread_prologue_and_epilogue_insns): Delete
872 orig_entry_edge argument to try_shrink_wrapping.
873 * shrink-wrap.c (can_get_prologue): New function.
874 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
875 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
876 can_get_prologue where needed. Remove code that finds a single
877 edge for the prologue. Remove code that tests if any reg clobbered
878 by the prologue is live on the prologue edge. Remove code that finds
879 the new prologue edge after duplicating blocks. Make a new prologue
880 block and edge.
881 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
882
883 2015-09-22 Jeff Law <law@redhat.com>
884
885 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
886 behavior.
887
888 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
889
890 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
891 -Wtemplates, -Wnamespaces): Document.
892
893 2015-09-22 Tom de Vries <tom@codesourcery.com>
894
895 PR tree-optimization/67671
896 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
897 pointer references as restrict.
898
899 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
900
901 * config/nios2/nios2.c (nios2_legitimize_address): When handling
902 'reg + reloc' cases, allow first operand to be non-REG, and use
903 force_reg() to enforce address pattern.
904
905 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
906
907 PR target/67480
908 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
909 (define_mode_iterator VI12_AVX_AVX512F): New.
910 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
911 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
912 (define_insn "*<code><mode>3"): ... Into new pattern using
913 VI12_AVX_AVX512F iterators without masking.
914
915 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
916
917 * config.gcc: Support "skylake-avx512".
918 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
919 PROCESSOR_SKYLAKE_AVX512.
920 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
921 (processor_target_table): Add "skylake-avx512".
922 (PTA_SKYLAKE_AVX512): Define.
923 (ix86_option_override_internal): Add "skylake_avx512".
924 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
925 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
926 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
927 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
928 * doc/invoke.texi (skylake-avx512): New.
929
930 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
931
932 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
933 operand in pattern.
934 (define_insn "kunpcksi"): Ditto.
935 (define_insn "kunpckdi"): Ditto.
936
937 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
938
939 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
940 iterator instead of fixed modes.
941
942 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
943
944 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
945 Adjust declaration.
946 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
947 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
948 out_result. Update to support update-fetch operations.
949 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
950 Adjust for change to aarch64_gen_atomic_ldop.
951 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
952 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
953 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
954 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
955 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
956
957 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
958
959 * config/aarch64/aarch64-protos.h
960 (aarch64_atomic_ldop_supported_p): Declare.
961 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
962 (enum aarch64_atomic_load_op_code): New.
963 (aarch64_emit_atomic_load_op): New.
964 (aarch64_gen_atomic_ldop): Update to support load-operate
965 patterns.
966 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
967 to an expander.
968 (aarch64_atomic_<atomic_optab><mode>): New.
969 (aarch64_atomic_<atomic_optab><mode>_lse): New.
970 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
971 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
972 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
973
974 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
975
976 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
977 (UNSPECV_ATOMIC_LDOP_OR): New.
978 (UNSPECV_ATOMIC_LDOP_BIC): New.
979 (UNSPECV_ATOMIC_LDOP_XOR): New.
980 (UNSPECV_ATOMIC_LDOP_PLUS): New.
981 (ATOMIC_LDOP): New.
982 (atomic_ldop): New.
983 (aarch64_atomic_load<atomic_ldop><mode>): New.
984
985 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
986
987 * config/aarch64/aarch64.md
988 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
989 pattern.
990
991 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
992
993 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
994 Declare.
995 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
996 (aarch64_gen_atomic_ldop): New.
997 (aarch64_split_atomic_op): Fix whitespace and add a comment.
998 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
999 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1000 (atomic_exchange<mode>): Replace with an expander.
1001 (aarch64_atomic_exchange<mode>): New.
1002 (aarch64_atomic_exchange<mode>_lse): New.
1003 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1004 (aarch64_atomic_swp<mode>): New.
1005
1006 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1007
1008 * tree-inline.c (expand_call_inline): Use inform for extra note.
1009 Do not give a note with UNKNOWN_LOCATION.
1010 Replace input_location with gimple_location (stmt).
1011 Use true/false instead of TRUE/FALSE.
1012
1013 2015-09-22 Tom de Vries <tom@codesourcery.com>
1014
1015 PR tree-optimization/67666
1016 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1017 with single field non-conservative.
1018
1019 2015-09-21 David S. Miller <davem@davemloft.net>
1020
1021 PR/67622
1022 Revert:
1023 2015-09-11 David S. Miller <davem@davemloft.net>
1024
1025 * config/sparc/constraints.md: Make "U" constraint a real register
1026 constraint.
1027 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1028 (D_MODES, DF_MODES): Add missing cast.
1029 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1030 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1031 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1032 cost to 8.
1033 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1034 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1035 provide these insn when flag_pic.
1036
1037 2015-09-17 David S. Miller <davem@davemloft.net>
1038
1039 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1040 Declare.
1041 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1042 function.
1043 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1044 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1045 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1046 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1047 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1048 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1049 provide when flag_pic.
1050
1051 2015-09-21 Jeff Law <law@redhat.com>
1052
1053 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1054 behavior.
1055
1056 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1057
1058 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1059
1060 2015-09-21 Richard Biener <rguenther@suse.de>
1061
1062 * passes.c (rest_of_decl_compilation): Do not call
1063 dwarf2out_early_global_decl for aliases.
1064
1065 2015-09-21 Richard Biener <rguenther@suse.de>
1066
1067 PR debug/67664
1068 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1069 attribute parameter. Early exit if either DW_AT_const_value
1070 or DW_AT_location are present already.
1071 (gen_variable_die): Adjust caller.
1072 (dwarf2out_late_global_decl): Likewise.
1073
1074 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1075
1076 PR target/67657
1077 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1078 sh_peephole_emit_move_insn): Add new functions.
1079 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1080 sh_peephole_emit_move_insn): Declere them.
1081 * config/sh/sh.md: Use them in various peephole2 patterns.
1082
1083 2015-09-21 Richard Biener <rguenther@suse.de>
1084
1085 PR middle-end/67651
1086 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1087 address with -fno-delete-null-pointer-checks.
1088
1089 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1090
1091 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1092 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1093 (reduc_uplus_v16qi): Remove.
1094
1095 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1096 (reduc_<VEC_reduc_name>_v2df): Remove.
1097 (reduc_<VEC_reduc_name>_v4sf): Remove.
1098 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1099
1100 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1101 gen_ function by removing * prefix.
1102 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1103
1104 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1105
1106 PR middle-end/60832
1107 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1108 Print i_bound without converting it to a tree.
1109
1110 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1111
1112 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1113 operands[4] operands[5] swap with std::swap, removed tmp variable.
1114 (arm_evpc_neon_vzip): Replaced in0/in1 and
1115 out0/out1 swaps with std::swap, removed x variable.
1116 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1117 out0/out1 swaos with std::swap, removed x variable.
1118 (arm_expand_vec_perm_const_1): Replaced
1119 d->op0/d->op1 swap with std::swap, removed x variable.
1120 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1121 out0/out1 swaps with std::swap, removed x variable.
1122
1123 2015-09-21 Jonathan Yong <10walls@gmail.com>
1124
1125 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1126 sysroot/usr/lib/32api for additional win32 libraries,
1127 fixes failing Cygwin bootstrapping.
1128
1129 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1130
1131 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1132
1133 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1134
1135 PR target/67126
1136 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1137 (*mov_t_msb_neg): Rewrite negc pattern.
1138
1139 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1140
1141 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1142 immediate generation code.
1143
1144 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1145
1146 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1147 redundant immediate generation code.
1148
1149 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1150
1151 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1152 (AARCH64_NUM_BITMASKS): Remove.
1153 (aarch64_bitmasks_cmp): Remove.
1154 (aarch64_build_bitmask_table): Remove.
1155
1156 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1157
1158 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1159 slow immediate matching loops with a faster algorithm.
1160
1161 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1162
1163 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1164 faster algorithm.
1165
1166 2015-09-20 Jeff Law <law@redhat.com>
1167
1168 PR tree-optimization/47679
1169 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1170 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1171 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1172 (thread_through_normal_block): Use record_temporary_equivalences.
1173
1174 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1175
1176 * coretypes.h (gimple): Change typedef to be a forward declaration.
1177 * gimple.h (gimple_statement_base): rename to gimple.
1178 * (all functions and types using gimple): Adjust.
1179 * *.[ch]: Likewise.
1180
1181 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1182 David Edelsohn <dje.gcc@gmail.com>
1183
1184 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1185 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1186 (EH_FRAME_THROUGH_COLLECT2): Define.
1187 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1188 (ASM_OUTPUT_DWARF_PCREL): Define.
1189 (ASM_OUTPUT_DWARF_DATAREL): Define.
1190
1191 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1192
1193 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1194 of TARGET_ELF32.
1195
1196 2015-09-18 Jeff Law <law@redhat.com>
1197
1198 PR tree-optimization/47679
1199 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1200 it here ...
1201 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1202 object. Update constructor.
1203 (pass_dominator::execute): Corresponding chagnes to declaration
1204 and initialization of avail_exprs_stack. Update constructor call
1205 for dom_opt_dom_walker object.
1206 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1207 it down to children as needed.
1208 (record_equivalences_from_incoming_edge): Likewise.
1209 (eliminate_redundant_computations): Likewise.
1210 (record_equivalences_from_stmt): Likewise.
1211 (simplify_stmt_for_jump_threading): Likewise.
1212 (record_temporary_equivalences): Likewise.
1213 (optimize_stmt): Likewise.
1214 (dom_opt_dom_walker::thread_across_edge): Update access to
1215 avail_exprs_stack object and pass it to children as needed.
1216 (dom_opt_dom_walker::before_dom_children): Similarly.
1217 (dom_opt_dom_walker::after_dom_children): Similarly.
1218 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1219 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1220 Add avail_expr_stack argument. Pass it to children as needed.
1221 (dummy_simplify): Likewise.
1222 (simplify_control_stmt_condition): Likewise.
1223 (thread_around_empty_blocks): Likewise.
1224 (thread_through_normal_block): Likewise.
1225 (thread_across_edge): Likewise.
1226 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1227 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1228
1229 PR tree-optimization/47679
1230 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1231 it here ...
1232 (dom_opt_dom_walker): New private member holding the const_and_copies
1233 object. Update constructor.
1234 (pass_dominator::execute): Corresponding changes to declaration
1235 and initialization of const_and_copies. Update constructor call
1236 for the dom_opt_dom_walker object.
1237 (record_temporary_equivalences): Accept const_and_copies argument
1238 pass it down to children as needed.
1239 (record_equality): Likewise.
1240 (record_equivalences_from_incoming_edge): Likewise.
1241 (cprop_into_successor_phis, optimize_stmt): Likewise.
1242 (eliminate_redundant_computations): Likewise.
1243 (dom_opt_dom_walker::thread_across_edge): Update access to
1244 const_and_copies object and pass it to children as needed.
1245 (dom_opt_dom_walker::before_dom_children): Similarly.
1246 (dom_opt_dom_walker::after_dom_children): Similarly.
1247
1248 PR tree-optimization/47679
1249 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1250 it into the avail_exprs_stack class.
1251 (pass_dominator::execute): Corresponding changes to declaration
1252 and initialization of avail_exprs. Pass avail_exprs to
1253 dump_dominator_optimization_stats.
1254 (record_cond): Extract avail_exprs from avail_exprs_stack.
1255 (lookup_avail_expr): Similarly.
1256 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1257 position in file.
1258 (dump_dominator_optimization_stats): Make static and prototype.
1259 Add argument for the hash table to dump.
1260 (debug_dominator_optimization_stats): Remove.
1261 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1262 prototype.
1263 (debug_dominator_optimization_stats): Similarly.
1264 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1265 "void" in prototype for pop_to_marker method. Add accessor method
1266 for the underlying avail_exprs table.
1267
1268 * tree-ssa-threadedge.c: Remove trailing whitespace.
1269
1270 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1271
1272 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1273 unsigned.
1274 (pa_ldil_cint_p): Likewise.
1275 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1276 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1277 Update callers.
1278 * config/pa/pa.md: Likewise.
1279
1280 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1281
1282 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1283 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1284 (diagnostic_show_locus): Likewise.
1285 (diagnostic_print_caret_line): Likewise.
1286 * diagnostic-show-locus.c: New file.
1287
1288 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1289
1290 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1291 "back" parameter. Declare label in #if block.
1292
1293 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1294
1295 PR middle-end/67619
1296 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1297 the address to a register.
1298
1299 2015-09-18 Jeff Law <law@redhat.com>
1300
1301 PR tree-optimization/47679
1302 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1303 * tree-ssa-dom.c: Remove unnecessary header includes.
1304 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1305 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1306 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1307 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1308 (pass_phi_only_cprop::execute): Likewise.
1309 (make_pass_phi_only_cprop): Likewise.
1310 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1311 uses of file scoped statics by passing the required objects
1312 as parameters wherever needed.
1313
1314 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1315 David Edelsohn <dje.gcc@gmail.com>
1316
1317 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1318 EH_FRAME_THROUGH_COLLECT2.
1319 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1320 DW_EH_PE_datarel.
1321 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1322 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1323 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1324 * except.c (switch_to_exception_section): Use a read-only section
1325 even if EH_FRAME_SECTION_NAME is undefined.
1326 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1327 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1328 (scan_prog_file): Don't export __dso_handle nor
1329 __gcc_unwind_dbase.
1330 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1331 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1332 (ASM_OUTPUT_DWARF_PCREL): Define.
1333 (ASM_OUTPUT_DWARF_DATAREL): Define.
1334 (EH_FRAME_THROUGH_COLLECT2): Define.
1335 (EH_FRAME_IN_DATA_SECTION): Delete.
1336 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1337 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1338 Declare.
1339 (rs6000_asm_output_dwarf_datarel): Declare.
1340 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1341 (rs6000_aix_asm_output_dwarf_datarel): New.
1342 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1343 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1344 (EH_FRAME_THROUGH_COLLECT2): Define.
1345 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1346 (EH_FRAME_THROUGH_COLLECT2): Define.
1347 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1348 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1349 (EH_FRAME_THROUGH_COLLECT2): New.
1350 (ASM_OUTPUT_DWARF_DATAREL): New.
1351 * doc/tm.texi: Regenerate.
1352
1353 2015-09-18 Richard Biener <rguenther@suse.de>
1354
1355 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1356 we're in early phase.
1357 (schedule_generic_params_dies_gen): Likewise.
1358 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1359 work as possible, retaining unhandled cases.
1360 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1361 clear out generic_type_instances at the end.
1362 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1363 (dwarf2out_early_finish): ... here. Do most of
1364 gen_remaining_tmpl_value_param_die_attribute here.
1365
1366 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1367
1368 PR tree-optimization/67283
1369 * tree-sra.c (type_consists_of_records_p): Rename to...
1370 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1371 (completely_scalarize_record): Rename to...
1372 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1373 (scalarize_elem): New.
1374 (analyze_all_variable_accesses): Follow renamings.
1375
1376 2015-09-18 Richard Biener <rguenther@suse.de>
1377
1378 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1379 in early-dwarf.
1380
1381 2015-09-18 Richard Biener <rguenther@suse.de>
1382
1383 PR tree-optimization/66142
1384 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1385 treat MEM[&x] and x the same.
1386 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1387 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1388 when we simplified sth.
1389 (vn_reference_maybe_forwprop_address): Likewise.
1390 (valueize_refs_1): When we simplified through
1391 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1392 set valueized_anything to true.
1393 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1394 one ref kills the other instead of just a offset-based test.
1395 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1396 for the operand_equal_p test to compare bases and also compare
1397 sizes.
1398
1399 2015-09-17 Christian Bruel <christian.bruel@st.com>
1400
1401 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1402
1403 2015-09-17 Richard Henderson <rth@redhat.com>
1404
1405 PR libstdc++/65913
1406 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1407 pointers that encode the alignment of the object.
1408
1409 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1410
1411 PR rtl-optimization/66790
1412 * df-problems.c (LIVE): Amend documentation.
1413
1414 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1415
1416 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1417 and optabs-tree.o.
1418 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1419 * genopinit.c (main): Add an include guard to insn-opinit.h.
1420 Protect the rtx_code parts with NUM_RTX_CODE.
1421 * optabs.h: Split parts out to...
1422 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1423 * optabs.c: Split parts out to...
1424 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1425 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1426 * fold-const.c: Likewise.
1427 * target-globals.c: Likewise.
1428 * tree-if-conv.c: Likewise.
1429 * tree-ssa-forwprop.c: Likewise.
1430 * tree-ssa-loop-prefetch.c: Likewise.
1431 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1432 Remove unncessary include files.
1433 * tree-ssa-phiopt.c: Likewise.
1434 * tree-ssa-reassoc.c: Likewise.
1435 * tree-switch-conversion.c: Likewise.
1436 * tree-vect-data-refs.c: Likewise.
1437 * tree-vect-generic.c: Likewise.
1438 * tree-vect-loop.c: Likewise.
1439 * tree-vect-patterns.c: Likewise.
1440 * tree-vect-slp.c: Likewise.
1441 * tree-vect-stmts.c: Likewise.
1442 * tree-vrp.c: Likewise.
1443 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1444 rather than optabs.h.
1445 * expr.c: Include optabs-tree.h.
1446 * function.c: Likewise.
1447
1448 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 PR middle-end/65958
1451 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1452 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1453 * config/arm/arm.c: Include common/common-target.h.
1454 (use_return_insn): Return 0 if the static chain register was saved
1455 above a non-APCS frame.
1456 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1457 (struct scratch_reg): New.
1458 (get_scratch_register_on_entry): New function.
1459 (release_scratch_register_on_entry): Likewise.
1460 (arm_emit_probe_stack_range): Likewise.
1461 (output_probe_stack_range): Likewise.
1462 (arm_expand_prologue): Factor out code dealing with the IP register
1463 for nested function and adjust it for stack checking.
1464 Invoke arm_emit_probe_stack_range if static builtin stack checking
1465 is enabled.
1466 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1467 is enabled.
1468 (arm_expand_epilogue): Add the saved static chain register, if any, to
1469 the amount of pre-pushed registers to pop.
1470 (arm_frame_pointer_required): Return true if static stack checking is
1471 enabled and we want to catch the exception with the EABI unwinder.
1472 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1473 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1474 * config/arm/arm.md (probe_stack): New insn.
1475 (probe_stack_range): Likewise.
1476
1477 2015-09-17 Richard Biener <rguenther@suse.de>
1478
1479 * genmatch.c (parser::parse_expr): Improve error message
1480 for mis-placed flags.
1481
1482 2015-09-17 Richard Biener <rguenther@suse.de>
1483
1484 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1485 debug hook when we created a varpool node.
1486 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1487 dwarf2out_early_global_decl, when not just add location or
1488 value attributes to existing DIEs.
1489
1490 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1491
1492 * config/aarch64/aarch64.md (copysigndf3): New.
1493 (copysignsf3): Likewise.
1494
1495 2015-09-17 David S. Miller <davem@davemloft.net>
1496
1497 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1498 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1499 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1500 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1501 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1502 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1503 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1504 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1505 provide when flag_pic.
1506
1507 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1508
1509 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1510 object_allocator change.
1511
1512 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1513
1514 PR tree-optimization/66388
1515 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1516 (dump_iv): Dump no_overflow information.
1517 (alloc_iv): Initialize new field for struct iv.
1518 (mark_bivs): Count number of no_overflow bivs.
1519 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1520 functions.
1521 (idx_find_step): Call new functions above.
1522 (add_candidate_1, add_candidate): New paramter.
1523 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1524 (get_computation_aff): Simplify convertion of cand for BIV.
1525 (get_computation_cost_at): Step cand's base if necessary.
1526
1527 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1528
1529 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1530 parameter.
1531 (tree_simplify_using_condition): Ditto.
1532 (simplify_using_initial_conditions): Ditto.
1533 (loop_exits_before_overflow): Pass new argument to function
1534 simplify_using_initial_conditions. Remove case for type conversions
1535 simplification.
1536 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1537 parameter.
1538 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1539 in iv base using loop initial conditions.
1540
1541 2015-09-16 Jeff Law <law@redhat.com>
1542
1543 PR tree-optimization/47679
1544 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1545 (free_all_edge_infos): Use it.
1546 (allocate_edge_info): Free preexisting edge info data.
1547 (pass_dominator::execute): Set up initial edge info structures.
1548 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1549 thread_across_edge.
1550 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1551 If non-null, then push/pop markers appropriately.
1552 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1553 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1554 thread-across_edge.
1555
1556 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1557
1558 * config/ft32/ft32.c: Fix the memory address space predicate.
1559
1560 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1561
1562 PR target/67573
1563 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1564 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1565
1566 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1567
1568 * toplev.h (check_global_declaration): Remove declaration.
1569 * toplev.c (check_global_declaration): Move to ...
1570 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1571 (analyze_functions): Update call.
1572
1573 2015-09-16 David S. Miller <davem@davemloft.net>
1574
1575 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1576 lowpart of a SUBREG has offset zero.
1577
1578 2015-09-16 Jeff Law <law@redhat.com>
1579
1580 PR tree-optimization/47679
1581 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1582 tree-ssa-scopedtables.h.
1583 (struct hashable_expr, class expr_hash_elt): Likewise.
1584 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1585 Move associated methods into tree-ssa-scopedtables.c.
1586 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1587 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1588 (add_hashable_expr): Likewise.
1589 (record_cond): Delete element directly.
1590 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1591 private copy ctor and assignment operator methods.
1592 (expr_elt_hasher): Inline trivial methods.
1593 (initialize_expr_from_cond): Prototype.
1594 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1595 methods that were previously in tree-ssa-dom.c. Improve various
1596 comments.
1597
1598 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1599
1600 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1601
1602 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1603
1604 PR bootstrap/67587
1605 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1606 fixup_partitions.
1607
1608 2015-09-16 Richard Biener <rguenther@suse.de>
1609
1610 PR middle-end/67253
1611 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1612 location of possibly shared trees.
1613
1614 2015-09-16 Richard Biener <rguenther@suse.de>
1615
1616 PR middle-end/67271
1617 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1618
1619 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1620
1621 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1622 offset and size computations instead of HOST_WIDE_INT.
1623
1624 2015-09-16 Richard Biener <rguenther@suse.de>
1625
1626 PR middle-end/67442
1627 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1628 result before builting a tree via wide_int_to_tree.
1629
1630 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1631
1632 * Makefile.in: Add memory-block.cc
1633 (pool_allocator::initialize): Use fixed block size.
1634 (pool_allocator::release): Use memory_block_pool.
1635 (pool_allocator::allocate): Likewise.
1636 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1637 object pools.
1638 * cfg.c (initialize_original_copy_tables): Likewise.
1639 * cselib.c (elt_list_pool, elt_loc_list_pool,
1640 cselib_val_pool): Likewise.
1641 * df-problems.c (df_chain_alloc): Likewise.
1642 * df-scan.c (df_scan_alloc): Likewise.
1643 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1644 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1645 group_info_pool, deferred_change_pool): Likewise.
1646 * et-forest.c (et_nodes, et_occurrences): Likewise.
1647 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1648 ipcp_agg_lattice_pool): Likewise.
1649 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1650 * ipa-profile.c (histogram_pool): Likewise.
1651 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1652 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1653 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1654 * ira-color.c (update_cost_record_pool): Likewise.
1655 * lra-lives.c (lra_live_range_pool): Likewise.
1656 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1657 * memory-block.cc: New file.
1658 * memory-block.h: New file.
1659 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1660 * sched-deps.c (sched_deps_init): Likewise.
1661 * sel-sched-ir.c (sched_lists_pool): Likewise.
1662 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1663 * tree-sra.c (access_pool): Likewise.
1664 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1665 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1666 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1667 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1668 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1669 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1670 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1671 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1672
1673 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1674
1675 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1676 definition.
1677 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1678 call0 ABI.
1679
1680 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1681
1682 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1683 to pass TLS call argument, according to current ABI.
1684 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1685 callx0 for TLS call, according to current ABI.
1686
1687 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1688
1689 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1690 on stack restore statements.
1691 (decide_copy_try_finally): Do not consider a stack restore statement as
1692 coming from sources.
1693
1694 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1695
1696 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1697 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1698
1699 2015-09-15 Jeff Law <law@redhat.com>
1700
1701 PR tree-optimization/47679
1702 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1703 methods and private members.
1704 (avail_exprs_stack): Similarly. Change type of global
1705 from a pair of expr_hash_elt_t to the new class.
1706 (expr_elt_hasher::hash): Corresponding changes.
1707 (expr_elt_hasher::equal): Similarly.
1708 (avail_expr_hash): Similarly.
1709 (pass_dominator::execute): Similarly.
1710 (dom_opt_dom_walker::thread_across_edge): Similarly.
1711 (record_cond): Similarly.
1712 (dom_opt_dom_walker::before_dom_children): Similarly.
1713 (dom_opt_dom_walker::after_dom_children): Similarly.
1714 (lookup_avail_expr): Likewise.
1715 (initialize_hash_element): Now a expr_hash_elt constructor.
1716 (initialize_hash_element_from_expr): Similarly.
1717 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1718 (free_expr_hash_elt): Call dtor for the element.
1719 (remove_local_expressions_from_table): Now the "pop_to_marker"
1720 method in the available_exprs_stack class.
1721 (avail_expr_stack::record_expr): Method factored out.
1722 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1723 Fix formatting.
1724 (hashable_expr_equal_p): Fix formatting.
1725
1726 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1727
1728 * input.h (location_get_source_line): Drop "expanded_location"
1729 param in favor of a file and line number.
1730 * input.c (location_get_source_line): Likewise.
1731 (dump_location_info): Update for change in signature of
1732 location_get_source_line.
1733 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1734
1735 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1736
1737 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1738 Bump to 4KB for SJLJ exceptions.
1739 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1740 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1741 * doc/tm.texi: Regenerate.
1742
1743 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1744
1745 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1746 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1747 Update prototype.
1748
1749 2015-09-15 Richard Biener <rguenther@suse.de>
1750
1751 PR tree-optimization/67470
1752 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1753 structure for PHI hoisting by inserting a forwarder block
1754 if appropriate.
1755
1756 2015-09-15 Christian Bruel <christian.bruel@st.com>
1757
1758 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1759 (arm_option_print): New function.
1760
1761 2015-09-15 Christian Bruel <christian.bruel@st.com>
1762
1763 PR target/52144
1764 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1765 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1766 Remove flags parameter.
1767 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1768 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1769 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1770 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1771 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1772 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1773 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1774 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1775
1776 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1777
1778 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1779
1780 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1781 AARCH64_VALID_SIMD_DREG_MODE.
1782
1783 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1784
1785 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1786 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1787 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1788 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1789 aarch64_ld4_lane<mode>): Combine together, making...
1790 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1791 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1792 aarch64_st4_lane<mode>): Combine together, making...
1793 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1794 * config/aarch64/iterators.md (nregs): Add comment.
1795
1796 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1797
1798 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1799 Change operand mode from <V_TWO_ELEM> to BLK.
1800 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1801 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1802 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1803 (aarch64_ld2_lane<mode>): Likewise.
1804 (aarch64_st2_lane<VQ:mode>): Likewise.
1805 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1806
1807 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1808
1809 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1810 Change operand mode from <V_FOUR_ELEM> to BLK.
1811 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1812 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1813 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1814 (aarch64_ld4_lane<mode>): Likewise.
1815 (aarch64_st4_lane<mode>): Likewise.
1816 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1817
1818 2015-09-15 Richard Biener <rguenther@suse.de>
1819
1820 PR middle-end/67563
1821 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1822 transfer EH info from old to new stmt.
1823 (replace_call_with_value): Likewise.
1824 (replace_call_with_call_and_fold): Likewise.
1825 (gimple_fold_builtin_memory_op): Likewise.
1826 (gimple_fold_builtin_memset): Likewise.
1827 (gimple_fold_builtin_stpcpy): Likewise.
1828 (gimple_fold_call): Likewise.
1829
1830 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1831
1832 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1833 comment.
1834 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1835 (aarch64_simd_intEI_type_node): Likewise.
1836 (aarch64_simd_builtin_std_type): Remove EImode case.
1837 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1838 * config/aarch64/aarch64-modes.def: Remove EImode.
1839
1840 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1841
1842 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1843 Change operand mode from <V_THREE_ELEM> to BLK.
1844 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1845 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1846 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1847 (aarch64_ld3_lane<mode>): Likewise.
1848 (aarch64_st3_lane<mode>): Likewise.
1849 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1850
1851 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1852
1853 * config/aarch64/aarch64-simd.md
1854 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1855 Change all TImode operands to BLKmode.
1856 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1857 Change all EImode operands to BLKmode.
1858 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1859 Change all OImode operands to BLKmode.
1860
1861 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1862 and call set_mem_size.
1863 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1864
1865 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1866
1867 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1868
1869 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1870 to...
1871 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1872
1873 (vec_store_lanesci_lane<mode>): Rename to...
1874 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1875
1876 (vec_store_lanesxi_lane<mode>): Rename to...
1877 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1878
1879 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1880 aarch64_st4_lane<mode>): Follow renaming.
1881
1882 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1883
1884 * config/s390/s390.c (s390_const_operand_ok): Add missing
1885 brackets.
1886
1887 2015-09-15 Richard Biener <rguenther@suse.de>
1888
1889 PR lto/67568
1890 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1891 initialize.
1892 * lto-streamer-out.c (clear_line_info): Likewise.
1893
1894 2015-09-15 Richard Biener <rguenther@suse.de>
1895
1896 * doc/match-and-simplify.texi: Fix wording.
1897
1898 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1899
1900 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1901 unnecessary type conversion in op1.
1902
1903 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1904
1905 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1906 (dup_block_and_redirect): Delete function.
1907 (can_dup_for_shrink_wrapping): New function.
1908 (fix_fake_fallthrough_edge): New function.
1909 (try_shrink_wrapping): Rewrite function.
1910 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1911
1912 2015-09-14 Rich Felker <dalias@libc.org>
1913
1914 * configure.ac: Change target pattern for sh TLS support
1915 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1916 * configure: Regenerate.
1917
1918 2015-09-14 Jeff Law <law@redhat.com>
1919
1920 PR tree-optimization/47679
1921 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1922 type rather than void *.
1923
1924 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1925
1926 PR fortran/67460
1927 * diagnostic.c (diagnostic_initialize): Do not set
1928 some_warnings_are_errors.
1929 (diagnostic_finish): Use DK_WERROR count instead.
1930 (diagnostic_report_diagnostic): Do not set
1931 some_warnings_are_errors.
1932 * diagnostic.h (struct diagnostic_context): Remove
1933 some_warnings_are_errors.
1934
1935 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * config/sparc/predicates.md (const_all_ones_operand): Use
1938 CONSTM1_RTX to simplify definition.
1939
1940 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1941
1942 PR target/67061
1943 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1944 Handle call insns.
1945
1946 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1947
1948 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1949 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1950 OPT_fshow_column to handled saved option cases.
1951 (append_compiler_options): Do not skip the above added options.
1952
1953 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1954
1955 PR target/63304
1956 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1957 nopcrelative_literal_loads.
1958 (aarch64_classify_address): Likewise.
1959 (aarch64_constant_pool_reload_icode): Define.
1960 (aarch64_secondary_reload): Handle secondary reloads for
1961 literal pools.
1962 (aarch64_override_options): Handle nopcrelative_literal_loads.
1963 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1964 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1965 Define.
1966 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1967 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1968 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1969 predicate.
1970 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1971
1972 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1973
1974 PR middle-end/67401
1975 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1976 sync_compare_and_swap_optab libcall to target_oval.
1977
1978 2015-09-14 Marek Polacek <polacek@redhat.com>
1979
1980 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1981 value.
1982 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1983
1984 2015-09-11 Mark Wielaard <mjw@redhat.com>
1985
1986 PR c/28901
1987 * toplev.c (check_global_declaration): Check and use
1988 warn_unused_const_variable.
1989 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1990 (-Wunused-variable): Remove non-constant. For C implies
1991 -Wunused-const-variable.
1992 (-Wunused-const-variable): New.
1993
1994 2015-09-14 Richard Biener <rguenther@suse.de>
1995
1996 * doc/match-and-simplify.texi: Update for changed syntax
1997 of inner ifs and the new switch expression.
1998
1999 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2000
2001 * config/i386/haswell.md: New file describing Haswell pipeline.
2002 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2003 haswell-like processors.
2004 (ix86_reassociation_width): Increase reassociation width for 64-bit
2005 Haswell processor family.
2006 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2007
2008 2015-09-14 Richard Biener <rguenther@suse.de>
2009
2010 * doc/match-and-simplify.texi: Fixup some formatting issues
2011 and document the 's' flag.
2012
2013 2015-09-13 Olivier Hainque <hainque@adacore.com>
2014 Eric Botcazou <ebotcazou@adacore.com>
2015
2016 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2017 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2018 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2019 (TARGET_CPU_gr5): Likewise.
2020 (TARGET_CPU_gr6): Likewise.
2021 (MULTILIB_DEFAULTS): Likewise.
2022 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2023 for mcpu=gr5 and mcpu=gr6.
2024 (MULTILIB_DIRNAMES): Adjust accordingly.
2025
2026 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2027
2028 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2029 (mem_ref_p): Likewise.
2030 (outermost_indep_loop): Adjust.
2031 (mem_ref_in_stmt): Likewise.
2032 (determine_max_movement): Likewise.
2033 (mem_ref_alloc): Likewise.
2034 (record_mem_ref_loc): Likewise.
2035 (set_ref_stored_in_loop): Likewise.
2036 (mark_ref_stored): Likewise.
2037 (gather_mem_refs_stmt): Likewise.
2038 (mem_refs_may_alias_p): Likewise.
2039 (for_all_locs_in_loop): Likewise.
2040 (struct rewrite_mem_ref_loc): Likewise.
2041 (rewrite_mem_refs): Likewise.
2042 (struct first_mem_ref_loc_1): Likewise.
2043 (first_mem_ref_loc): Likewise.
2044 (struct sm_set_flag_if_changed): Likewise.
2045 (execute_sm_if_changed_flag_set): Likewise.
2046 (execute_sm): Likewise.
2047 (hoist_memory_references):
2048 (struct ref_always_accessed): Likewise.
2049 (ref_always_accessed_p): Likewise.
2050 (refs_independent_p): Likewise.
2051 (record_dep_loop): Likewise.
2052 (ref_indep_loop_p_1): Likewise.
2053 (ref_indep_loop_p_2): Likewise.
2054 (ref_indep_loop_p): Likewise.
2055 (can_sm_ref_p): Likewise.
2056 (find_refs_for_sm): Likewise.
2057 (tree_ssa_lim_finalize): Likewise.
2058
2059 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2060
2061 * dwarf2out.c (dw_attr_ref): Remove typedef.
2062 (dw_line_info_ref): Likewise.
2063 (pubname_ref): Likewise.
2064 (dw_ranges_ref): Likewise.
2065 (dw_ranges_by_label_ref): Likewise.
2066 (comdat_type_node_ref): Likewise.
2067 (get_AT): Adjust.
2068 (get_AT_low_pc): Likewise.
2069 (get_AT_hi_pc): Likewise.
2070 (get_AT_string): Likewise.
2071 (get_AT_flag): Likewise.
2072 (get_AT_unsigned): Likewise.
2073 (get_AT_ref): Likewise.
2074 (get_AT_file): Likewise.
2075 (remove_AT): Likewise.
2076 (print_die): Likewise.
2077 (check_die): Likewise.
2078 (die_checksum): Likewise.
2079 (attr_checksum_ordered): Likewise.
2080 (struct checksum_attributes): Likewise.
2081 (collect_checksum_attributes): Likewise.
2082 (die_checksum_ordered): Likewise.
2083 (same_die_p): Likewise.
2084 (is_declaration_die): Likewise.
2085 (clone_die): Likewise.
2086 (clone_as_declaration): Likewise.
2087 (copy_declaration_context): Likewise.
2088 (break_out_comdat_types): Likewise.
2089 (copy_decls_walk): Likewise.
2090 (output_location_lists): Likewise.
2091 (external_ref_hasher::hash): Likewise.
2092 (optimize_external_refs_1): Likewise.
2093 (build_abbrev_table): Likewise.
2094 (size_of_die): Likewise.
2095 (unmark_all_dies): Likewise.
2096 (size_of_pubnames): Likewise.
2097 (output_die_abbrevs): Likewise.
2098 (output_die): Likewise.
2099 (output_pubnames): Likewise.
2100 (add_ranges_num): Likewise.
2101 (add_ranges_by_labels): Likewise.
2102 (add_high_low_attributes): Likewise.
2103 (gen_producer_string): Likewise.
2104 (dwarf2out_set_name): Likewise.
2105 (new_line_info_table): Likewise.
2106 (prune_unused_types_walk_attribs): Likewise.
2107 (prune_unused_types_update_strings): Likewise.
2108 (prune_unused_types): Likewise.
2109 (resolve_addr): Likewise.
2110 (optimize_location_lists_1): Likewise.
2111 (index_location_lists): Likewise.
2112 (dwarf2out_finish): Likewise.
2113
2114 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2115
2116 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2117
2118 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2119
2120 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2121 (dump_asserts_for): Adjust.
2122 (register_new_assert_for): Likewise.
2123 (process_assert_insertions): Likewise.
2124 (insert_range_assertions): Likewise.
2125
2126 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2127
2128 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2129 and remove typedef.
2130 (new_temp_expr_table): Adjust.
2131 (free_temp_expr_table): Likewise.
2132 (version_to_be_replaced_p): Likewise.
2133 (make_dependent_on_partition): Likewise.
2134 (add_to_partition_kill_list): Likewise.
2135 (remove_from_partition_kill_list): Likewise.
2136 (add_dependence): Likewise.
2137 (finished_with_expr): Likewise.
2138 (process_replaceable): Likewise.
2139 (kill_expr): Likewise.
2140 (kill_virtual_exprs): Likewise.
2141 (mark_replaceable): Likewise.
2142 (find_replaceable_in_bb): Likewise.
2143 (find_replaceable_exprs): Likewise.
2144 (debug_ter): Likewise.
2145
2146 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2147
2148 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2149 (struct btr_user): Rename from btr_user_s.
2150 (struct btr_def): Rename from btr_def_s.
2151 (find_btr_def_group): Adjust.
2152 (add_btr_def): Likewise.
2153 (new_btr_user): Likewise.
2154 (note_other_use_this_block): Likewise.
2155 (compute_defs_uses_and_gen): Likewise.
2156 (link_btr_uses): Likewise.
2157 (build_btr_def_use_webs): Likewise.
2158 (block_at_edge_of_live_range_p): Likewise.
2159 (btr_def_live_range): Likewise.
2160 (combine_btr_defs): Likewise.
2161 (move_btr_def): Likewise.
2162 (migrate_btr_def): Likewise.
2163 (migrate_btr_defs): Likewise.
2164
2165 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2166
2167 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2168 (shared_hash): Remove typedef.
2169 (struct dataflow_set): Adjust.
2170 (shared_hash_unshare): Likewise.
2171 (dataflow_set_merge): Likewise.
2172 (vt_initialize): Likewise.
2173 (vt_finalize): Likewise.
2174
2175 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2176
2177 * var-tracking.c (struct location_chain): Rename from
2178 location_chain_def.
2179 (struct variable_part): Adjust.
2180 (variable_htab_free): Likewise.
2181 (unshare_variable): Likewise.
2182 (get_init_value): Likewise.
2183 (get_addr_from_local_cache): Likewise.
2184 (drop_overlapping_mem_locs): Likewise.
2185 (val_reset): Likewise.
2186 (struct variable_union_info): Likewise.
2187 (variable_union): Likewise.
2188 (find_loc_in_1pdv): Likewise.
2189 (insert_into_intersection): Likewise.
2190 (intersect_loc_chains): Likewise.
2191 (canonicalize_loc_order_check): Likewise.
2192 (canonicalize_values_mark): Likewise.
2193 (canonicalize_values_star): Likewise.
2194 (canonicalize_vars_star): Likewise.
2195 (variable_merge_over_cur): Likewise.
2196 (remove_duplicate_values): Likewise.
2197 (variable_post_merge_new_vals): Likewise.
2198 (variable_post_merge_perm_vals): Likewise.
2199 (find_mem_expr_in_1pdv): Likewise.
2200 (dataflow_set_preserve_mem_locs): Likewise.
2201 (dataflow_set_remove_mem_locs): Likewise.
2202 (variable_part_different_p): Likewise.
2203 (onepart_variable_different_p): Likewise.
2204 (find_src_set_src): Likewise.
2205 (dump_var): Likewise.
2206 (set_slot_part): Likewise.
2207 (clobber_slot_part): Likewise.
2208 (delete_slot_part): Likewise.
2209 (vt_expand_var_loc_chain): Likewise.
2210 (emit_note_insn_var_location): Likewise.
2211 (vt_finalize): Likewise.
2212
2213 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2214
2215 * dse.c (store_info_t): Remove typedef.
2216 (group_info_t): Likewise.
2217 (const_group_info_t): Likewise.
2218 (deferred_change_t): Likewise.
2219 (get_group_info): Adjust.
2220 (free_store_info): Likewise.
2221 (canon_address): Likewise.
2222 (clear_rhs_from_active_local_stores): Likewise.
2223 (record_store): Likewise.
2224 (replace_read): Likewise.
2225 (check_mem_read_rtx): Likewise.
2226 (scan_insn): Likewise.
2227 (remove_useless_values): Likewise.
2228 (dse_step1): Likewise.
2229 (dse_step2_init): Likewise.
2230 (dse_step2_nospill): Likewise.
2231 (scan_stores_nospill): Likewise.
2232 (scan_reads_nospill): Likewise.
2233 (dse_step3_exit_block_scan): Likewise.
2234 (dse_step3): Likewise.
2235 (dse_step5_nospill): Likewise.
2236 (dse_step6): Likewise.
2237
2238 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2239
2240 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2241 (alias_set_entry): Remove typedef.
2242 (alias_set_subset_of): Adjust.
2243 (alias_sets_conflict_p): Likewise.
2244 (init_alias_set_entry): Likewise.
2245 (get_alias_set): Likewise.
2246 (new_alias_set): Likewise.
2247 (record_alias_subset): Likewise.
2248
2249 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2250
2251 * doc/install.texi (Downloading the source): Mark up
2252 contrib/download_prerequisites properly and drop leading "./".
2253
2254 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2255
2256 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2257 * config/lm32/lm32.h: Likewise.
2258 * config/mep/mep.h: Likewise.
2259 * config/visium/visium.h: Likewise.
2260 * system.h: Poison STRUCT_VALUE macro.
2261
2262 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2263
2264 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2265 CONSTANT_P operands.
2266
2267 2015-09-11 David S. Miller <davem@davemloft.net>
2268
2269 * config/sparc/constraints.md: Make "U" constraint a real register
2270 constraint.
2271 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2272 (D_MODES, DF_MODES): Add missing cast.
2273 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2274 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2275 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2276 cost to 8.
2277 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2278 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2279 provide these insn when flag_pic.
2280
2281 2015-09-11 Jeff Law <law@redhat.com>
2282
2283 PR tree-optimization/47679
2284 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2285 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2286 member with m_. Update inline member functions as necessary. Add
2287 toplevel comment.
2288 * tree-ssa-scopedtables.c: Update const_and_copies's member
2289 functions to use m_ prefix to access the stack.
2290
2291 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2292
2293 * graphite-optimize-isl.c (disable_tiling): Remove.
2294 (get_schedule_for_band): Do not use disable_tiling.
2295 (get_prevector_map): Delete function.
2296 (enable_polly_vector): Remove.
2297 (get_schedule_for_band_list): Remove dead code.
2298
2299 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2300
2301 * graphite-optimize-isl.c (get_tile_map): Refactor.
2302 (get_schedule_for_band): Same.
2303 (getScheduleForBand): Same.
2304 (get_prevector_map): Same.
2305 (get_schedule_for_band_list): Same.
2306 (get_schedule_map): Same.
2307 (get_single_map): Same.
2308 (apply_schedule_map_to_scop): Same.
2309 (optimize_isl): Same.
2310
2311 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2312
2313 PR target/63304
2314 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2315 (movtf): Delete.
2316 * config/aarch64/iterators.md (GPF_TF_F16): New.
2317 (GPF_F16): Delete.
2318
2319 2015-09-10 Nathan Sidwell <nathan@acm.org>
2320
2321 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2322 (nvptx_reorg): Adjust comments.
2323
2324 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2325
2326 PR bootstrap/67363
2327 * configure.ac: Check if setenv and unsetenv are declared.
2328 * configure: Rebuild.
2329 * config.in: Rebuild.
2330 * system.h: Declare setenv and unsetenv if not declared.
2331
2332 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2333
2334 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2335 commentary to simplify permute mask adjustment equation.
2336 (special_handling_values): Add SH_VPERM.
2337 (const_load_sequence_p): New function.
2338 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2339 the mask loaded from the constant pool.
2340 (adjust_vperm): New function.
2341 (handle_special_swappables): Call adjust_vperm.
2342 (dump_swap_insn_table): Handle SH_VPERM.
2343
2344 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2345
2346 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2347 * shrink-wrap.h (requires_stack_frame_p): Put back.
2348
2349 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2350
2351 * reload1.c (elimination_costs_in_insn): Locally turn
2352 -Wmaybe-uninitialized into a warning.
2353
2354 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2355
2356 * shrink-wrap.c (requires_stack_frame_p): Make static.
2357 (prepare_shrink_wrap): Likewise.
2358 (dup_block_and_redirect): Likewise.
2359 * shrink-wrap.h: Remove declarations of those functions.
2360
2361 2015-09-10 Mark Wielaard <mjw@redhat.com>
2362
2363 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2364
2365 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2366
2367 PR target/67506
2368 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2369 missing simplify_gen_subreg.
2370
2371 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2372
2373 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2374 the vector element is bigger than 64 bit.
2375
2376 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2377
2378 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2379 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2380
2381 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2382
2383 * config/s390/s390.c: Add V1TImode to constant pool modes.
2384
2385 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2386
2387 PR target/67439
2388 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2389 predicate. Set predicable_short_it attr to "no".
2390
2391 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2392
2393 PR rtl-optimization/67421
2394 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2395 left wide shift tranformation.
2396
2397 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2398
2399 * common/config/arc/arc-common.c: Remove references to A5.
2400 * config/arc/arc-opts.h: Likewise.
2401 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2402 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2403 * config/arc/t-arc-newlib: Likewise.
2404
2405 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2406
2407 * config/arc/arc.md (length): Fix attribute length for conditional
2408 executed instructions with long immediate.
2409
2410 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2411
2412 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2413 type for second alternative.
2414
2415 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2416
2417 * doc/invoke.texi (Downloading GCC): Mention
2418 contrib/download_prerequisites script.
2419
2420 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2421
2422 PR c++/67523
2423 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2424 for combined loop, assert seen_error () and return GS_ERROR.
2425
2426 PR middle-end/67521
2427 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2428 if decl is already in outer->variables.
2429
2430 PR middle-end/67517
2431 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2432 asserting that decl is not specified in octx->variables,
2433 break out of the loop if it is.
2434
2435 PR c++/67514
2436 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2437 iterator is not explicitly determined, but is defined inside
2438 of the combined workshare region, handle it like if it has
2439 DECL_EXPR in OMP_FOR_PRE_BODY.
2440
2441 2015-09-09 Nathan Sidwell <nathan@acm.org>
2442
2443 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2444 (*cmp<mode>): Add assembler spacing.
2445 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2446 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2447 level.
2448 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2449 (nvptx_expand_call): Likewise.
2450 (nvptx_output_call_insn): Likewise.
2451 (nvptx_reorg_subreg): Add spacing.
2452
2453 2015-09-09 Marek Polacek <polacek@redhat.com>
2454
2455 PR middle-end/67512
2456 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2457 for comparisons.
2458
2459 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2460
2461 PR c++/53184
2462 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2463
2464 2015-09-09 Tom de Vries <tom@codesourcery.com>
2465
2466 * params-list.h: Add missing copyright notice.
2467
2468 2015-09-09 Nathan Sidwell <nathan@acm.org>
2469
2470 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2471 sel_truesi, not andsi.
2472
2473 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2474
2475 * config/arm/arm.md (*subsi3_compare0): Rename to...
2476 (subsi3_compare0): ... This.
2477 (modsi3): New define_expand.
2478 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2479 when operand is power of 2.
2480
2481 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2482
2483 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2484 (*neg<mode>2_compare0): Rename to...
2485 (neg<mode>2_compare0): ... This.
2486 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2487 Move check for speed inside the if-then-elses. Reflect
2488 CSNEG sequence in MOD by power of 2 case.
2489
2490 2015-09-09 Alan Modra <amodra@gmail.com>
2491
2492 PR target/67378
2493 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2494 reload replacement for PRE_MODIFY address reg.
2495
2496 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2497
2498 PR tree-optimization/53852
2499 * config.in: Regenerate.
2500 * configure: Regenerate.
2501 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2502 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2503 PARAM_MAX_ISL_OPERATIONS is reached.
2504 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2505 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2506 result equal to isl_stat_ok as the status now can be isl_error_quota.
2507 (subtract_commutative_associative_deps): Same.
2508 (compute_deps): Same.
2509
2510 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2511 Sebastian Pop <s.pop@samsung.com>
2512
2513 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2514 Return the parameter if it was saved in corresponding
2515 parameter_rename_map of the region.
2516 (copy_def): Copy def from sese region to the newly created region.
2517 (copy_internal_parameters): Copy all the internal parameters defined
2518 within a region to the newly created region.
2519 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2520 translating isl to gimple.
2521 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2522 the loop-nest does not have any data-references.
2523 (build_graphite_scops): Create a scop only when there is at least one
2524 loop inside it.
2525 (contains_only_close_phi_nodes): Deleted.
2526 (print_graphite_scop_statistics): Deleted
2527 (print_graphite_statistics): Deleted
2528 (limit_scops): Deleted.
2529 (build_scops): Removed call to limit_scops.
2530 * sese.c (new_sese): Construct.
2531 (free_sese): Destruct.
2532 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2533 added.
2534 (set_rename): Pass sese region so that parameters inside the region can
2535 be added to its parameter_rename_map.
2536 (rename_uses): Pass sese region.
2537 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2538 generated in the header of the scop. For each SSA_NAME in the
2539 parameter_rename_map rename its usage.
2540 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2541 sese region.
2542 (scalar_evolution_in_region): If the tree t is invariant just return t.
2543 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2544 struct sese to keep track of all the parameters which need renaming.
2545 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2546 any data-refs.
2547 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2548
2549 2015-09-08 Tom de Vries <tom@codesourcery.com>
2550
2551 * Makefile.in (generated_files): Add params.list.
2552 (params.list, s-params.list): Add rule.
2553 * params.h (enum compiler_param): Include params-list.h. Move define
2554 DEFPARAM, include params.def and undef DEFPARAM ...
2555 * params-list.h: ... here. New file.
2556
2557 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2558
2559 * pretty-print.h (printer_fn): Fix typo in comment.
2560
2561 2015-09-07 Jeff Law <law@redhat.com>
2562
2563 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2564
2565 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2566
2567 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2568 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2569 (arm_neon_fp16_hw): New.
2570
2571 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2572
2573 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2574 UNITS_PER_WORD >= 4.
2575
2576 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2577
2578 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2579 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2580 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2581 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2582 (aarch64_float_extend_lo_v2df): Rename to...
2583 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2584
2585 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2586 (float_extend_lo): Add v4sf.
2587
2588 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2589 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2590 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2591 (Vwide): New mode_attr.
2592
2593 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2594
2595 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2596 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2597 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2598 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2599 V4HF and V8HF variants to iterator.
2600
2601 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2602
2603 * config/aarch64/iterators.md (VDQF_F16): New.
2604 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2605
2606 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2607
2608 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2609 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2610 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2611 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2612 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2613 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2614 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2615 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2616 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2617 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2618 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2619 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2620 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2621 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2622 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2623 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2624 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2625 vld1q_dup_f16): New.
2626
2627 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2628
2629 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2630 Reparameterize to...
2631 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2632 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2633 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2634
2635 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2636 v8hf variant.
2637 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2638
2639 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2640
2641 * config/aarch64/iterators.md (VDF, Vdtype): New.
2642 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2643
2644 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2645
2646 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2647 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2648 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2649 Add __builtin_aarch64_simd_hf.
2650 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2651 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2652 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2653 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2654 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2655 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2656 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2657 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2658 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2659
2660 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2661 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2662 (VDC, Vdbl): Add V4HF.
2663
2664 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2665
2666 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2667 V4HFmode and V8HFmode.
2668 (aarch64_split_simd_move): Add case for V8HFmode.
2669 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2670 (aarch64_simd_builtin_std_type): Handle HFmode.
2671 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2672
2673 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2674 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2675 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2676
2677 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2678 Float16x8_t.
2679
2680 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2681 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2682 New typedefs.
2683 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2684 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2685 vst1q_lane_f16): New.
2686 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2687 (VALLDI_F16, VALL_F16): New.
2688 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2689 Add cases for V4HF and V8HF.
2690 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2691
2692 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2693
2694 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2695 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2696 vld4_dup): Add v4hf variant.
2697 (vget_high, vget_low): Add v8hf variant.
2698 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2699 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2700 v4hf and v8hf variants.
2701
2702 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2703 (VDX): Add V4HF.
2704 (V_DOUBLE): Add case for V4HF.
2705 (VQX): Add V8HF.
2706 (V_HALF): Add case for V8HF.
2707 (VDQX): Add V4HF, V8HF.
2708 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2709 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2710
2711 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2712 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2713 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2714 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2715 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2716 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2717 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2718 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2719 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2720
2721 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2722 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2723 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2724 Change VDX to VD_RE.
2725
2726 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2727 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2728 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2729
2730 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2731 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2732 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2733 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2734 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2735 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2736 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2737 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2738 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2739
2740 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2741
2742 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2743 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2744 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2745 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2746 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2747 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2748 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2749 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2750 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2751 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2752 New.
2753
2754 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2755
2756 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2757
2758 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2759
2760 * config/arm/arm-builtins.c (v8hf_UP): New.
2761 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2762
2763 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2764
2765 * config/arm/arm_neon.h (float16x8_t): New typedef.
2766
2767 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2768
2769 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2770 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2771 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2772 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2773 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2774 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2775 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2776 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2777 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2778 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2779
2780 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2781
2782 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2783 non-alphanumeric characters in the symbol name.
2784
2785 2015-09-07 Marek Polacek <polacek@redhat.com>
2786
2787 PR inline-asm/67448
2788 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2789 a memory input.
2790
2791 2015-09-07 Marek Polacek <polacek@redhat.com>
2792
2793 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2794
2795 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2796
2797 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2798 not warn.
2799
2800 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2801
2802 PR middle-end/67452
2803 * tree-ssa-live.c: Include cfgloop.h.
2804 (remove_unused_locals): Clear loop->simduid if simduid is about
2805 to be removed from cfun->local_decls.
2806
2807 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2808
2809 PR target/65210
2810 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2811 attribute as well.
2812
2813 2015-09-04 Tom de Vries <tom@codesourcery.com>
2814
2815 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2816
2817 2015-09-04 Jeff Law <law@redhat.com>
2818
2819 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2820 unnecessary constructor. It's now trivial and implemented inside...
2821 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2822 constructor. Add comments to various methods. Remove unused
2823 private fields.
2824 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2825 * tree-vrp.c (identify_jump_threads): Likewise.
2826 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2827 indentation issues.
2828 (thread_across_edge): Similarly.
2829 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2830 arguments in constructor call.
2831
2832 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2833
2834 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2835 temp path contains a '-'.
2836
2837 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2838 Petr Murzin <petr.murzin@intel.com>
2839 Kirill Yukhin <kirill.yukhin@intel.com>
2840
2841 * config/i386/i386-builtin-types.def
2842 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2843 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2844 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2845 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2846 * config/i386/i386.c
2847 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2848 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2849 IX86_BUILTIN_SCATTERALTDIV16SI.
2850 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2851 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2852 __builtin_ia32_scatteraltdiv8si.
2853 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2854 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2855 IX86_BUILTIN_SCATTERALTDIV16SI.
2856 (ix86_vectorize_builtin_scatter): New.
2857 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2858 ix86_vectorize_builtin_scatter.
2859
2860 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2861 Petr Murzin <petr.murzin@intel.com>
2862 Kirill Yukhin <kirill.yukhin@intel.com>
2863
2864 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2865 * doc/tm.texi: Regenerate.
2866 * target.def: Add scatter builtin.
2867 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2868 for loads/stores in case of gather/scatter accordingly.
2869 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2870 STMT_VINFO_GATHER_P(S).
2871 (vect_check_gather): Rename to ...
2872 (vect_check_gather_scatter): this.
2873 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2874 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2875 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2876 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2877 variable and new checkings for it accordingly.
2878 * tree-vect-stmts.c
2879 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2880 STMT_VINFO_GATHER_P(S).
2881 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2882 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2883
2884 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2885
2886 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2887 define_insn.
2888 (mulv16qi3): New define_expand.
2889
2890 2015-09-03 Martin Sebor <msebor@redhat.com>
2891
2892 PR c/66516
2893 * doc/extend.texi (Other Builtins): Document when the address
2894 of a built-in function can be taken.
2895
2896 2015-09-03 Richard Biener <rguenther@suse.de>
2897
2898 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2899 (dwarf2out_early_finish): ... here.
2900 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2901 flush_limbo_die_list. Assert we have no deferred asm names.
2902
2903 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2904
2905 * optabs.c (expand_binop): Don't create a broadcast vector with a
2906 source element wider than the inner mode.
2907
2908 2015-09-03 Richard Biener <rguenther@suse.de>
2909
2910 * varasm.c (output_constant): Use fold_convert instead of
2911 wide_int_to_tree.
2912
2913 2015-09-03 Tom de Vries <tom@codesourcery.com>
2914
2915 PR tree-optimization/65637
2916 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2917 fin_bb has 2 predecessors.
2918
2919 2015-09-03 Tom de Vries <tom@codesourcery.com>
2920
2921 PR tree-optimization/65637
2922 * omp-low.c (find_phi_with_arg_on_edge): New function.
2923 (expand_omp_for_static_chunk): Fix inner loop phi.
2924
2925 2015-09-03 Tom de Vries <tom@codesourcery.com>
2926
2927 PR tree-optimization/65637
2928 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2929 that head is NULL.
2930
2931 2015-09-03 Tom de Vries <tom@codesourcery.com>
2932
2933 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2934
2935 2015-09-03 Tom de Vries <tom@codesourcery.com>
2936
2937 * doc/invoke.texi (parloops-chunk-size): Add item.
2938 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2939 * tree-parloops.c: Include params.h.
2940 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2941 param parloops-chunk-size is used.
2942
2943 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2944
2945 PR middle-end/67351
2946 * fold-const.c (fold_binary_loc) : Move
2947 Transform (x >> c) << c into x & (-1<<c) or
2948 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2949 types using simplify and match.
2950 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2951 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2952
2953 2015-09-03 Richard Biener <rguenther@suse.de>
2954
2955 PR ipa/66705
2956 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2957 (create_variable_info_for_1): Use ctor_for_analysis instead
2958 of get_constructor.
2959 (create_variable_info_for): Likewise.
2960
2961 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2962
2963 PR ipa/67280
2964 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2965 in new callgraph edge.
2966
2967 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2968
2969 PR target/59810
2970 PR target/63652
2971 PR target/63653
2972 * config/aarch64/aarch64-simd.md
2973 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2974 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2975 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2976 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2977
2978 2015-09-02 Alan Modra <amodra@gmail.com>
2979
2980 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2981 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2982 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2983
2984 2015-09-02 Alan Modra <amodra@gmail.com>
2985
2986 PR target/67417
2987 * config/rs6000/predicates.md (current_file_function_operand): Don't
2988 return true for weak symbols.
2989 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2990
2991 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2992 Andrew Bennett <andrew.bennett@imgtec.com>
2993
2994 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2995 * config/mips/mips-protos.h: Add definitions for
2996 mips_output_jump and mips_output_equal_conditional_branch
2997 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2998 JIC instruction.
2999 (mips_emit_compare): Add support for the MIPS R6 conditional
3000 compact branches.
3001 (mips_process_sync_loop): Likewise.
3002 (mips_output_order_conditional_branch): Likewise.
3003 (mips16_build_call_stub): Change MIPS_CALL to
3004 mips_output_jump.
3005 (mips_print_operand_punctuation): Update 's' case to only
3006 apply to micromips r2.
3007 (mips_adjust_insn_length): Add support for forbidden slot
3008 hazards.
3009 (mips_avoid_hazard): Likewise.
3010 (mips_reorg_process_insns): Likewise.
3011 (mips_output_jump): New function.
3012 (mips_output_equal_conditional_branch): Likewise.
3013 (mips_output_conditional_branch): Use jrc/bc if compact
3014 branch support is enabled. Ensure the forbidden slots
3015 between the two branch instructions is filled with a nop.
3016 (mips_option_override): Add support to process the compact
3017 branch option and set the correct defaults. Prevent
3018 non-explict relocs being using for MIPS R6.
3019 (mips_trampoline_init): Add compact branch support.
3020 (mips_mult_zero_zero_cost): Allow zero initialisation of
3021 accumulators with TARGET_DSP.
3022 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3023 (TARGET_CB_MAYBE): New define.
3024 (TARGET_CB_ALWAYS): New define.
3025 (ISA_HAS_DELAY_SLOTS): New define.
3026 (ISA_HAS_COMPACT_BRANCHES): New define.
3027 (ISA_HAS_JRC): New define.
3028 (MIPS_BRANCH_C): New define.
3029 (MIPS_CALL): Removed.
3030 (MICROMIPS_J): Removed.
3031 * config/mips/mips.md (compact_form): New attr.
3032 (hazard): Add support for forbidden slots.
3033 (define_delay): Add support for compact branches.
3034 (*branch_order<mode>): Likewise.
3035 (*branch_order<mode>_inverted): Likewise.
3036 (*branch_equality<mode>): Likewise.
3037 (*branch_equality<mode>_inverted): Likewise.
3038 (*jump_absolute): Likewise.
3039 (*jump_pic): Likewise.
3040 (indirect_jump): Use mips_output_jump to produce assembly output.
3041 (tablejump_<mode>"): Likewise.
3042 (*<optab>"): Likewise.
3043 (<optab>_internal): Likewise.
3044 (sibcall_internal): Likewise.
3045 (sibcall_value_internal): Likewise.
3046 (sibcall_value_multiple_internal): Likewise.
3047 (call_internal): Likewise.
3048 (call_split): Likewise.
3049 (call_internal_direct): Likewise.
3050 (call_direct_split): Likewise.
3051 (call_value_internal): Likewise.
3052 (call_value_split): Likewise.
3053 (call_value_internal_direct): Likewise.
3054 (call_value_direct_split): Likewise.
3055 (call_value_multiple_internal): Likewise.
3056 (call_value_multiple_split): Likewise.
3057 (mips_get_fcsr_mips16_<mode>): Likewise.
3058 (mips_set_fcsr_mips16_<mode>): Likewise.
3059 (tls_get_tp_mips16_<mode>): Likewise.
3060 * config/mips/mips.opt: Add -mcompact-branches option.
3061 * config/mips/predicates.md (order_operator): Ensure the
3062 conditional compact branches are only used if the ISA them.
3063 * doc/invoke.texi: Document -mcompact-branches option.
3064
3065 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3066
3067 PR target/61578
3068 * lra-lives.c (process_bb_lives): Process move pseudos with the
3069 same value for copies and preferences
3070 * lra-constraints.c (match_reload): Create match reload pseudo
3071 with the same value from single dying input pseudo.
3072
3073 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3074
3075 PR target/67405
3076 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3077
3078 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3079
3080 * trans-mem.c: Add contributed-by.
3081 * trans-mem.h: Same.
3082
3083 2015-09-01 Richard Biener <rguenther@suse.de>
3084
3085 * expr.c (expand_expr_real_1): For expanding TERed defs
3086 set the current location to that of the def if not UNKNOWN.
3087
3088 2015-09-01 David Sherwood <david.sherwood@arm.com>
3089
3090 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3091
3092 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3093
3094 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3095 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3096 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3097 Include rtl-iter.h.
3098 (noce_simple_bbs): New function.
3099 (noce_try_move): Bail if basic blocks are not simple.
3100 (noce_try_store_flag): Likewise.
3101 (noce_try_store_flag_constants): Likewise.
3102 (noce_try_addcc): Likewise.
3103 (noce_try_store_flag_mask): Likewise.
3104 (noce_try_cmove): Likewise.
3105 (noce_try_minmax): Likewise.
3106 (noce_try_abs): Likewise.
3107 (noce_try_sign_mask): Likewise.
3108 (noce_try_bitop): Likewise.
3109 (bbs_ok_for_cmove_arith): New function.
3110 (noce_emit_all_but_last): Likewise.
3111 (noce_emit_insn): Likewise.
3112 (noce_emit_bb): Likewise.
3113 (noce_try_cmove_arith): Handle non-simple basic blocks.
3114 (insn_valid_noce_process_p): New function.
3115 (contains_mem_rtx_p): Likewise.
3116 (bb_valid_for_noce_process_p): Likewise.
3117 (noce_process_if_block): Allow non-simple basic blocks
3118 where appropriate.
3119
3120 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3121
3122 * tree-ssa-dom.c (record_equivalences_from_phis,
3123 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3124 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3125
3126 2015-09-01 Nick Clifton <nickc@redhat.com>
3127
3128 * config/msp430/msp430.opt (mcpu): Fix typo.
3129
3130 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3131
3132 * config/aarch64/aarch64.c (aarch64_set_current_function):
3133 Re-layout any vector parameters have non-simd layout.
3134 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3135 Delete.
3136 (aarch64_simd_expand_args): Delete call to the above.
3137
3138 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3139
3140 * doc/invoke.texi (asan-stack): Add space before option.
3141
3142 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3143
3144 * tree.h (zerop): New function.
3145 * tree.c (zerop): Likewise.
3146 (element_precision): Handle expressions.
3147 * match.pd (define_predicates): Add zerop.
3148 (x <= +Inf): Fix comment.
3149 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3150 * fold-const.c (fold_binary_loc): ... here. Remove.
3151
3152 2015-08-31 Richard Biener <rguenther@suse.de>
3153
3154 PR middle-end/67381
3155 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3156
3157 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3158
3159 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3160 (CEXPI): New operator list.
3161 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3162 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3163 Converted from ...
3164 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3165
3166 2015-08-31 Tom de Vries <tom@codesourcery.com>
3167
3168 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3169 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3170 parameter.
3171 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3172 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3173 (rewrite_into_loop_closed_ssa): ... here.
3174 (replace_uses_in_dominated_bbs): Remove function.
3175 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3176 rewrite_into_loop_closed_ssa_1.
3177
3178 2015-08-31 Michael Matz <matz@suse.de>
3179
3180 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3181 enter entry and exit blocks for reverse post order.
3182
3183 2015-08-31 Richard Biener <rguenther@suse.de>
3184
3185 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3186 (lto_location_cache::current_sysp): Likewise.
3187 (output_block::current_sysp): Likewise.
3188 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3189 (lto_location_cache::apply_location_cache): Properly record
3190 system header locations.
3191 (lto_location_cache::input_location): Input whether a file
3192 is a system header.
3193 * lto-streamer-out.c (lto_output_location): Stream whether a file
3194 is a system header.
3195
3196 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3197
3198 PR bootstrap/67363
3199 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3200
3201 2015-08-31 Tom de Vries <tom@codesourcery.com>
3202
3203 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3204 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3205 Improve function header comments.
3206
3207 2015-08-30 Michael Collison <michael.collison@linaro.org>
3208
3209 PR other/67320
3210 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3211 standard names
3212
3213 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3214
3215 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3216 special_handling bitfield.
3217 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3218 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3219 that represents a general xxpermdi.
3220 (insn_is_swappable_p): Add handling for vec_concat of two
3221 doublewords, which maps to a specific xxpermdi.
3222 (adjust_xxpermdi): New function.
3223 (adjust_concat): Likewise.
3224 (handle_special_swappables): Call adjust_xxpermdi and
3225 adjust_concat.
3226 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3227
3228 2015-08-30 Rich Felker <dalias@libc.org>
3229
3230 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3231 case instead of sh[123456ble]-*-*.
3232
3233 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3234
3235 * ira.c (print_unform_and_important_classes,
3236 print_translated_classes): Remove reg_class_names static array.
3237 (print_unform_and_important_classes): Rename to ...
3238 (print_uniform_and_important_classes): ... this.
3239 (ira_debug_allocno_classes): Update accordingly.
3240
3241 2015-08-29 Tom de Vries <tom@codesourcery.com>
3242
3243 PR tree-optimization/46193
3244 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3245 clause.
3246
3247 2015-08-28 Jeff Law <law@redhat.com>
3248
3249 PR lto/66752
3250 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3251 unable to find X NE 0 in the tables, return X as the simplified
3252 condition.
3253 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3254 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3255 to VISISTED_BBS.
3256 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3257 after removing the control flow statement and unnecessary edges.
3258
3259 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3260
3261 Revert:
3262 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3263
3264 PR tree-optimization/67283
3265 * tree-sra.c (type_consists_of_records_p): Rename to...
3266 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3267
3268 (completely_scalarize_record): Rename to...
3269 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3270 code to:
3271 (scalarize_elem): New.
3272
3273 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3274
3275 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3276 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3277 (aarch64_symbol_type): Likewise.
3278 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3279 Likewise.
3280 (aarch64_expand_mov_immediate): Likewise.
3281 (aarch64_print_operand): Likewise.
3282 (aarch64_classify_tls_symbol): Likewise.
3283
3284 2015-08-28 Richard Biener <rguenther@suse.de>
3285
3286 * cgraphunit.c (symbol_table::compile): Move early debug generation
3287 and finish...
3288 (symbol_table::finalize_compilation_unit): ... back here and
3289 add a !seen_error () guard.
3290
3291 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3292
3293 * toplev.c (process_options): Do not use flag_loop_block,
3294 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3295 flag_loop_optimize_isl.
3296
3297 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3298
3299 * Makefile.in (OBJS): Remove graphite-blocking.o and
3300 graphite-interchange.o.
3301 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3302 Alias of floop-nest-optimize.
3303 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3304 Document as alias of -floop-nest-optimize.
3305 * graphite-blocking.c: Remove.
3306 * graphite-interchange.c: Remove.
3307 * graphite-optimize-isl.c: Include dumpfile.h.
3308 (getScheduleForBand): Add dump for tiled loops. Use
3309 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3310 * graphite-poly.c (scop_max_loop_depth): Remove.
3311 (print_scattering_function_1): Remove.
3312 (print_scattering_function): Remove.
3313 (print_scattering_functions): Remove.
3314 (debug_scattering_function): Remove.
3315 (debug_scattering_functions): Remove.
3316 (apply_poly_transforms): Remove use of flag_loop_block,
3317 flag_loop_strip_mine, and flag_loop_interchange.
3318 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3319 PBB_ORIGINAL.
3320 (print_pdr_access_layout): Remove.
3321 (print_pdr): Print ISL representation.
3322 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3323 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3324 (free_scop): Same.
3325 (openscop_print_pbb_domain): Remove.
3326 (print_pbb): Remove call to print_scattering_function.
3327 (openscop_print_scop_context): Remove.
3328 (print_scop_context): Do not print matrices anymore.
3329 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3330 SCOP_TRANSFORMED_SCHEDULE.
3331 (print_isl_set): Add printing of a new line.
3332 (print_isl_map): Same.
3333 (print_isl_aff): Same.
3334 (print_isl_constraint): Same.
3335 (loop_to_lst): Remove.
3336 (scop_to_lst): Remove.
3337 (lst_indent_to): Remove.
3338 (print_lst): Remove.
3339 (debug_lst): Remove.
3340 (dot_lst_1): Remove.
3341 (dot_lst): Remove.
3342 (reverse_loop_at_level): Remove.
3343 (reverse_loop_for_pbbs): Remove.
3344 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3345 (pdr_nb_params): Remove.
3346 (pdr_alias_set_dim): Remove.
3347 (pdr_subscript_dim): Remove.
3348 (pdr_iterator_dim): Remove.
3349 (pdr_parameter_dim): Remove.
3350 (same_pdr_p): Remove.
3351 (struct poly_scattering): Remove.
3352 (struct poly_bb): Remove _original, _transformed, _saved.
3353 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3354 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3355 (PBB_NB_LOCAL_VARIABLES): Remove.
3356 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3357 (schedule_to_scattering): Remove.
3358 (number_of_write_pdrs): Remove.
3359 (pbb_dim_iter_domain): Remove.
3360 (pbb_nb_params): Remove.
3361 (pbb_nb_scattering_orig): Remove.
3362 (pbb_nb_scattering_transform): Remove.
3363 (pbb_nb_dynamic_scattering_transform): Remove.
3364 (pbb_nb_local_vars): Remove.
3365 (pbb_iterator_dim): Remove.
3366 (pbb_parameter_dim): Remove.
3367 (psco_scattering_dim): Remove.
3368 (psct_scattering_dim): Remove.
3369 (psct_local_var_dim): Remove.
3370 (psco_iterator_dim): Remove.
3371 (psct_iterator_dim): Remove.
3372 (psco_parameter_dim): Remove.
3373 (psct_parameter_dim): Remove.
3374 (psct_dynamic_dim): Remove.
3375 (psct_static_dim): Remove.
3376 (psct_add_local_variable): Remove.
3377 (new_lst_loop): Remove.
3378 (new_lst_stmt): Remove.
3379 (free_lst): Remove.
3380 (copy_lst): Remove.
3381 (lst_add_loop_under_loop): Remove.
3382 (lst_depth): Remove.
3383 (lst_dewey_number): Remove.
3384 (lst_dewey_number_at_depth): Remove.
3385 (lst_pred): Remove.
3386 (lst_succ): Remove.
3387 (lst_find_pbb): Remove.
3388 (find_lst_loop): Remove.
3389 (lst_find_first_pbb): Remove.
3390 (lst_empty_p): Remove.
3391 (lst_find_last_pbb): Remove.
3392 (lst_contains_p): Remove.
3393 (lst_contains_pbb): Remove.
3394 (lst_create_nest): Remove.
3395 (lst_remove_from_sequence): Remove.
3396 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3397 (lst_niter_for_loop): Remove.
3398 (pbb_update_scattering): Remove.
3399 (lst_update_scattering_under): Remove.
3400 (lst_update_scattering): Remove.
3401 (lst_insert_in_sequence): Remove.
3402 (lst_replace): Remove.
3403 (lst_substitute_3): Remove.
3404 (lst_distribute_lst): Remove.
3405 (lst_remove_all_before_including_pbb): Remove.
3406 (lst_remove_all_before_excluding_pbb): Remove.
3407 (struct scop): Remove original_schedule, transformed_schedule, and
3408 saved_schedule.
3409 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3410 (SCOP_SAVED_SCHEDULE): Remove.
3411 (poly_scattering_new): Remove.
3412 (poly_scattering_free): Remove.
3413 (poly_scattering_copy): Remove.
3414 (store_scattering_pbb): Remove.
3415 (store_lst_schedule): Remove.
3416 (restore_lst_schedule): Remove.
3417 (store_scattering): Remove.
3418 (restore_scattering_pbb): Remove.
3419 (restore_scattering): Remove.
3420 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3421 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3422 compute the scattering polyhedron dimension from the dimension of
3423 pbb->domain.
3424 (build_scop_scattering): Update call to
3425 build_pbb_scattering_polyhedrons.
3426 (build_poly_scop): Remove call to scop_to_lst.
3427 * graphite.c (graphite_transform_loops): Add call to print_scop.
3428 (gate_graphite_transforms): Remove use of flag_loop_block,
3429 flag_loop_interchange, and flag_loop_strip_mine.
3430
3431 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3432
3433 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3434 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3435 -floop-nest-optimize.
3436 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3437 (generate_luj_sepclass): Remove.
3438 (generate_luj_options): Remove.
3439 (set_options): Remove opt_luj.
3440 (scop_to_isl_ast): Remove opt_luj.
3441 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3442 flag_loop_unroll_jam.
3443 (getPrevectorMap_full): Remove.
3444 (getScheduleForBandList): Remove map_sepcl.
3445 (getScheduleMap): Same.
3446 (apply_schedule_map_to_scop): Remove sepcl.
3447 (optimize_isl): Same.
3448 * graphite-poly.c (apply_poly_transforms): Remove check for
3449 flag_loop_unroll_jam.
3450 (new_poly_bb): Remove map_sepclass.
3451 * graphite-poly.h (struct poly_bb): Same.
3452 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3453 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3454 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3455 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3456
3457 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3458
3459 PR target/67317
3460 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3461 (addqi3_cc): Ditto.
3462 (UNSPEC_ADD_CARRY): Remove.
3463 (addqi3_cconly_overflow): New expander.
3464 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3465 Adjust for changed add<mode>3_carry.
3466 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3467 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3468 (<plusminus_insn><mode>3_carry): Remove expander.
3469 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3470 add<mode>3_carry and sub<mode>3_carry.
3471 (plusminus_carry_mnemonic): Remove code attribute.
3472 (add<mode>3_carry): Canonicalize insn pattern.
3473 (*addsi3_carry_zext): Ditto.
3474 (sub<mode>3_carry): Ditto.
3475 (*subsi3_carry_zext): Ditto.
3476 (adcx<mode>3): Remove insn pattern.
3477 (addcarry<mode>): New insn pattern.
3478 (subborrow<mode>): Ditto.
3479 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3480 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3481 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3482 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3483 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3484 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3485 Rewrite expander to not clobber carry flag chains.
3486
3487 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3488
3489 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3490 instead of a rotate.
3491
3492 2015-08-27 Marek Polacek <polacek@redhat.com>
3493
3494 PR middle-end/67005
3495 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3496 an entry into an irreducible region.
3497
3498 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3499
3500 * configure: Regenerate.
3501
3502 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3503
3504 PR tree-optimization/67283
3505 * tree-sra.c (type_consists_of_records_p): Rename to...
3506 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3507
3508 (completely_scalarize_record): Rename to...
3509 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3510 (scalarize_elem): New.
3511
3512 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3513
3514 * tree-sra.c (completely_scalarize_var): Rename to...
3515 (create_total_scalarization_access): ... Here. Drop call to
3516 completely_scalarize_record.
3517
3518 (analyze_all_variable_accesses): Replace completely_scalarize_var
3519 with create_total_scalarization_access and completely_scalarize_record.
3520
3521 2015-08-27 Alan Modra <amodra@gmail.com>
3522
3523 PR target/67356
3524 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3525 for operand 1.
3526
3527 2015-08-27 Richard Biener <rguenther@suse.de>
3528
3529 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3530 call with !seen_error ().
3531 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3532 early debug generation and finish...
3533 (symbol_table::compile): ... here to put it after a !seen_error ()
3534 guard.
3535
3536 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3537
3538 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3539 Solaris 12+.
3540
3541 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3542 Andre Vieira <andre.simoesdiasvieira@arm.com>
3543
3544 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3545 (*cb<optab><mode>1): Likewise.
3546 (*tb<optab><mode>1): Likewise.
3547 (*cb<optab><mode>1): Likewise.
3548 * config/aarch64/iterators.md (inv_cb): New code attribute.
3549 (inv_tb): Likewise.
3550 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3551 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3552
3553 2015-08-27 Richard Biener <rguenther@suse.de>
3554
3555 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3556
3557 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3558
3559 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3560 trap to fix ICE.
3561
3562 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3563
3564 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3565 Add declaration.
3566
3567 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3568 comment.
3569 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3570 floating point in VSX registers.
3571 (rs6000_output_move_128bit): Always print out the set insn if we
3572 can't generate an appropriate 128-bit move.
3573 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3574 point in VSX registers comparisons.
3575 (rs6000_expand_float128_convert): Likewise.
3576
3577 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3578 predicate for only GPR hard registers.
3579
3580 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3581 modes to iterators. Add new iterators for moving 128-bit values in
3582 scalar FPR registers and VSX registers.
3583 (FMOVE128): Likewise.
3584 (FMOVE128_FPR): Likewise.
3585 (FMOVE128_GPR): Likewise.
3586 (FMOVE128_VSX): Likewise.
3587 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3588 in VSX registers.
3589 (IFKF): Likewise.
3590 (IBM128): Likewise.
3591 (TFIFKF): Likewise.
3592 (RELOAD): Add IEEE 128-bit floating point modes.
3593 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3594 floating point in VSX registers modes.
3595 (signbit<mode>2, IBM128 iterator): Likewise.
3596 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3597 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3598 (negtf2): Likewise.
3599 (neg<mode>2, TFIFKF iterator): Likewise.
3600 (negtf2_internal): Likewise.
3601 (abstf2): Likewise.
3602 (abs<mode>2, TFIFKF iterator): Likewise.
3603 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3604 VSX insn support for negate, absolute value, and negative absolute
3605 value.
3606 (ieee_128bit_vsx_neg<mode>2): Likewise.
3607 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3608 (ieee_128bit_vsx_abs<mode>2): Likewise.
3609 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3610 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3611 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3612 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3613 floating point in VSX registers.
3614 (unpack<mode>_dm): Likewise.
3615 (unpack<mode>_nodm): Likewise.
3616 (pack<mode>): Likewise.
3617 (unpackv1ti): Likewise.
3618 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3619 (packv1ti): Likewise.
3620 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3621 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3622 registers.
3623 (extenddftf2_internal): Likewise.
3624 (trunctfdf2): Likewise.
3625 (trunctfdf2_internal2): Likewise.
3626 (fix_trunc_helper): Likewise.
3627 (fix_trunctfdi2"): Likewise.
3628 (floatditf2): Likewise.
3629 (floatuns<mode>tf2): Likewise.
3630 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3631 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3632 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3633 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3634 (float<SDI:mode><IFKF:mode>2): Likewise.
3635 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3636
3637 2015-08-26 Renlin Li <renlin.li@arm.com>
3638
3639 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3640
3641 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3642 Jiong Wang <jiong.wang@arm.com>
3643
3644 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3645 (tlsie_tiny_<mode>): New define_insn.
3646 (tlsie_tiny_sidi): Likewise.
3647 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3648 SYMBOL_TINY_TLSIE.
3649 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3650 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3651 SYMBOL_TINY_TLSIE.
3652 (aarch64_expand_mov_immediate): Likewise.
3653 (aarch64_print_operand): Likewise.
3654 (arch64_classify_tls_symbol): Likewise.
3655
3656 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3657
3658 * config/arm/arm-arches.def: Replace single value flags with
3659 an initializer built from ARM_FSET_MAKE_CPU1.
3660 * config/arm/arm-cores.def: Likewise.
3661 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3662 derivation from the ARM_CORE macro definition, use the given value
3663 instead.
3664 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3665 ARM_ARCH macro definition, use the given value instead.
3666
3667 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3668
3669 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3670 feature set.
3671 (struct builtin_description): Replace field mask with field
3672 features.
3673 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3674 (IWMMXT2_BUILTIN): Likewise.
3675 (IWMMXT2_BUILTIN2): Likewise.
3676 (FP_BUILTIN): Likewise.
3677 (CRC32_BUILTIN): Likewise.
3678 (CRYPTO_BUILTIN): Likewise.
3679 (iwmmx_mbuiltin): Likewise.
3680 (iwmmx2_mbuiltin): Likewise.
3681 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3682 struct builtin_description.
3683
3684 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3685
3686 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3687 (struct builtin_description): Change type of mask to unsigned
3688 long.
3689 * config/arm/arm-protos.h (insn_flags): Declare as type
3690 arm_feature_set.
3691 (tune_flags): Likewise.
3692 * config/arm/arm.c (feature_count): New.
3693 (insn_flags): Define as type arm_feature_set.
3694 (tune_flags): Likewise.
3695 (struct processors): Define field flags as type arm_feature_set.
3696 (all_cores): Update for change to struct processors.
3697 (all_architectures): Likewise.
3698 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3699 macros.
3700 (arm_option_override_internal): Likewise.
3701 (arm_option_override): Likewise.
3702
3703 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3704 Jiong Wang <jiong.wang@arm.com>
3705
3706 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3707 tls size for tiny, small, large memory model.
3708 (aarch64_load_symref_appropriately): Support new symbol types.
3709 (aarch64_expand_mov_immediate): Likewise.
3710 (aarch64_print_operand): Likewise.
3711 (aarch64_classify_tls_symbol): Likewise.
3712 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3713 (aarch64_symbol_type): Likewise.
3714 * config/aarch64/aarch64.md (tlsle): Deleted.
3715 (tlsle12_<mode>): New define_insn.
3716 (tlsle24_<mode>): Likewise.
3717 (tlsle32_<mode>): Likewise.
3718 (tlsle48_<mode>): Likewise.
3719 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3720 "aarch64_tlsle32".
3721
3722 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3723
3724 * config/arm/arm-protos.h (FL_NONE): New.
3725 (FL_ANY): New.
3726 (arm_feature_set): New.
3727 (ARM_FSET_MAKE): New.
3728 (ARM_FSET_MAKE_CPU1): New.
3729 (ARM_FSET_MAKE_CPU2): New.
3730 (ARM_FSET_CPU1): New.
3731 (ARM_FSET_CPU2): New.
3732 (ARM_FSET_EMPTY): New.
3733 (ARM_FSET_ANY): New.
3734 (ARM_FSET_HAS_CPU1): New.
3735 (ARM_FSET_HAS_CPU2): New.
3736 (ARM_FSET_HAS_CPU): New.
3737 (ARM_FSET_ADD_CPU1): New.
3738 (ARM_FSET_ADD_CPU2): New.
3739 (ARM_FSET_DEL_CPU1): New.
3740 (ARM_FSET_DEL_CPU2): New.
3741 (ARM_FSET_UNION): New.
3742 (ARM_FSET_INTER): New.
3743 (ARM_FSET_XOR): New.
3744 (ARM_FSET_EXCLUDE): New.
3745 (AFM_FSET_IS_EMPTY): New.
3746 (ARM_FSET_CPU_SUBSET): New.
3747
3748 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3749
3750 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3751 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3752 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3753 Likewise.
3754 (aarch64_expand_mov_immediate): Likewise.
3755 (aarch64_print_operand): Likewise.
3756 (aarch64_classify_symbol): Likewise.
3757
3758 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3759
3760 * config/aarch64/aarch64.opt (mtls-size): New entry.
3761 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3762 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3763 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3764
3765 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3766
3767 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3768 ARM_CORE entry. Fix some white-space.
3769 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3770 ARM_CORE definition.
3771
3772 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3773
3774 * fold-const.c (fold_binary_loc) : Move Optimize
3775 root(x)*root(y) as root(x*y) to match.pd.
3776 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3777 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3778 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3779 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3780 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3781 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3782 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3783 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3784 (rdiv @0 (exps:s @1)) : New simplifier.
3785
3786 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3787
3788 * gcc.c (driver::finalize): Only assign to extra_specs if
3789 [EXTRA_SPECS].
3790
3791 2015-08-25 Marek Polacek <polacek@redhat.com>
3792
3793 PR middle-end/67330
3794 * varasm.c (declare_weak): Return after giving an error.
3795
3796 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3797
3798 * gcc-main.c (main): Add params to driver ctor.
3799 * gcc.c (class env_manager): New.
3800 (env): New global.
3801 (env_manager::init): New.
3802 (env_manager::get): New.
3803 (env_manager::xput): New.
3804 (env_manager::restore): New.
3805 Poison getenv and putenv.
3806 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3807 (target_system_root): Update initialization to use
3808 DEFAULT_TARGET_SYSTEM_ROOT.
3809 (struct spec_list): Add field "default_ptr".
3810 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3811 (init_spec): Likewise.
3812 (set_spec): Clear field "default_ptr".
3813 (read_specs): Free "spec" and "buffer".
3814 (xputenv): Reimplement in terms of env_manager.
3815 (process_command): Replace ::getenv calls with calls to the
3816 env_manager singleton.
3817 (process_brace_body): Free string in three places.
3818 (driver::driver): New.
3819 (driver::~driver): New.
3820 (used_arg): Convert from a function to...
3821 (class used_arg_t): ...this class, and...
3822 (used_arg): ...this new global instance.
3823 (used_arg_t::finalize): New function.
3824 (getenv_spec_function): Add "const" to local "value". Replace
3825 ::getenv call with call to the env_manager singleton.
3826 (path_prefix_reset): New function.
3827 (driver::finalize): New function.
3828 * gcc.h (driver::driver): New.
3829 (driver::~driver): New.
3830 (driver::finalize): New.
3831
3832 2015-08-25 Nathan Sidwell <nathan@acm.org>
3833
3834 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3835 target doesn't have one.
3836
3837 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3838
3839 PR target/67346
3840 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3841
3842 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3843
3844 PR target/67344
3845 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3846 a define_insn, remove second alternative.
3847
3848 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3849 Joseph Myers <joseph@codesourcery.com>
3850
3851 * gcc.c (struct switchstr): Expand comment.
3852
3853 2015-08-25 Nathan Sidwell <nathan@acm.org>
3854
3855 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3856 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3857
3858 2015-08-25 Richard Biener <rguenther@suse.de>
3859
3860 PR middle-end/67306
3861 * genmatch.c (expr::gen_transform): Verify the result of
3862 builtin_decl_implicit.
3863 (dt_simplify::gen_1): Likewise.
3864
3865 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3866
3867 * config/arm/constraints.md: Also list Cs and US ARM-specific
3868 constraints as used.
3869
3870 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3871
3872 PR target/66609
3873 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3874 UNSPEC_PCREL.
3875 (nonpic_symbol_mentioned_p): Likewise.
3876 (sh_delegitimize_address): Likewise.
3877 (sh_function_ok_for_sibcall): Take into account weak symbols.
3878 (sh_expand_sym_label2reg): New.
3879 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3880 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3881 (call_pcrel): Use sh_expand_sym_label2reg.
3882 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3883 (symPCREL_label2reg) New expand.
3884
3885 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3886
3887 * graphite-poly.c: Change type of region from void* to sese.
3888 * graphite-poly.h (struct scop): Changing the type of scop::region
3889 from void* to sese. Change accessor macro accordingly.
3890 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3891
3892 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3893
3894 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3895 Constrain only on INTEGER_TYPE.
3896
3897 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3898
3899 PR target/67211
3900 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3901 -mefficient-unaligned-vsx on ISA 2.7.
3902
3903 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3904 option to a masked option.
3905
3906 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3907 logic for -mefficient-unaligned-vsx so that it is set via an arch
3908 ISA option, instead of being set if -mtune=power8 is set. Move
3909 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3910 near other default option handling.
3911
3912 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3913
3914 * genflags.c (gen_macro): Delete.
3915 (gen_proto): Don't create GEN.*CALL.* macros.
3916 * gensupport.h (get_file_location): Declare.
3917 * gensupport.c (rtx_locs): New variable.
3918 (read_md_rtx): Record rtx locations.
3919 (get_file_location): New function.
3920 * target-insns.def (call, call_pop, call_value, call_value_pop)
3921 (sibcall, sibcall_value): New patterns.
3922 * gentarget-def.c (parse_argument): New function.
3923 (def_target_insn): Use it. Handle optional operands. Raise an
3924 error if an .md pattern has the wrong number of operands for the
3925 pattern name. Remove the names of unused operands from the prototype.
3926 * builtins.c (expand_builtin_apply): Use targetm functions
3927 instead of HAVE_call_value and GEN_CALL_VALUE.
3928 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3929 and sibcall_value_pop.
3930 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3931 of GEN_CALL.
3932 * config/alpha/alpha.md (untyped_call): Likewise.
3933 * config/iq2000/iq2000.md (untyped_call): Likewise.
3934 * config/m68k/m68k.md (untyped_call): Likewise.
3935 * config/mips/mips.md (untyped_call): Likewise.
3936 * config/pa/pa.md (untyped_call): Likewise.
3937 * config/rs6000/rs6000.md (untyped_call): Likewise.
3938 * config/sparc/sparc.md (untyped_call): Likewise.
3939 * config/tilegx/tilegx.md (untyped_call): Likewise.
3940 * config/tilepro/tilepro.md (untyped_call): Likewise.
3941 * config/visium/visium.md (untyped_call): Likewise.
3942 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3943 gen_call_value instead of GEN_CALL_VALUE.
3944 * config/arm/arm.md (untyped_call): Likewise.
3945 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3946 GEN_CALL.
3947
3948 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3949
3950 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3951 (have_cbranchcc4): New variable.
3952 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3953 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3954 (if_convert): Initialize have_cbranchcc4.
3955
3956 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3957
3958 * builtins.c (expand_cmpstrn): Rename to...
3959 (expand_cmpstrn_or_cmpmem): ...this.
3960 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3961 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3962 Remove mode argument.
3963 (expand_builtin): Update accordingly.
3964
3965 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3966
3967 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3968 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3969 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3970 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3971 Add predicates for operands 0 and 3.
3972 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3973 operand.
3974 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3975 immediate_operand to nonmemory_operand.
3976
3977 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3978
3979 * df-scan.c (df_insn_info_init_fields): New function, split out
3980 from...
3981 (df_insn_create_insn_record): ...here.
3982 (df_insn_info_free_fields): New function, split out from...
3983 (df_insn_info_delete): ...here.
3984 (df_insn_rescan): Use the new functions instead of freeing and
3985 reallocating the df_insn_info.
3986
3987 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3988
3989 * doc/install.texi (Binaries): Remove links no longer valid.
3990
3991 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3992
3993 * config/nvptx/mkoffload.c (process): Replace
3994 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3995
3996 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3997
3998 PR target/67329
3999 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4000
4001 2015-08-24 Renlin Li <renlin.li@arm.com>
4002
4003 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4004 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4005 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4006 * config/arm/constraints.md ("j"): Add check for high code.
4007
4008 2015-08-24 Tom de Vries <tom@codesourcery.com>
4009
4010 PR tree-optimization/65468
4011 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4012 chunk_size is one.
4013
4014 2015-08-24 Nathan Sidwell <nathan@acm.org>
4015
4016 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4017 change to nvptx_type_from_mode call. Use arg_promotion for both
4018 split and non-split args.
4019
4020 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4021
4022 * target-insns.def (movstr): New pattern.
4023 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4024 (expand_movstr): Use targetm rather than HAVE_movstr/
4025 CODE_FOR_movstr.
4026
4027 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4028
4029 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4030 cast syntax.
4031
4032 2015-08-24 Andrew Pinski <apinski@cavium.com>
4033
4034 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4035 AARCH64_EXTRA_TUNING_OPTION.
4036 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4037 New enum.
4038 (aarch64_extra_tuning_flags): Base the shifted value on the index
4039 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4040 * config/aarch64/aarch64.c: Remove the last argument to
4041 AARCH64_EXTRA_TUNING_OPTION.
4042
4043 2015-08-23 Nathan Sidwell <nathan@acm.org>
4044
4045 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4046 decls.
4047 (nvptx_declare_function_name): Insert formatting tabs for
4048 consistency.
4049
4050 2015-08-23 Tom de Vries <tom@codesourcery.com>
4051
4052 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4053 parm_decl, rather than generating a dummy default def in cfun.
4054 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4055 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4056 (move_stmt_op): Handle PARM_DECl.
4057 (gather_ssa_name_hash_map_from): New function.
4058 (move_sese_region_to_fn): Add default defs for function params, and add
4059 them to vars_map. Release copied ssa names.
4060 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4061
4062 2015-08-23 Tom de Vries <tom@codesourcery.com>
4063
4064 * doc/sourcebuild.texi: Rename vect_no_int_max with
4065 vect_no_int_min_max. Update description.
4066
4067 2015-08-22 Andrew Pinski <apinski@cavium.com>
4068
4069 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4070 * config/aarch64/aarch64-protos.h
4071 (aarch64_fusion_pairs_index): New enum.
4072 (aarch64_fusion_pairs): Base the shifted value on the index instead
4073 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4074 of the argument to AARCH64_FUSION_PAIR.
4075 * config/aarch64/aarch64.c: Remove the last argument to
4076 AARCH64_FUSION_PAIR.
4077
4078 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4079
4080 * dominance.c (new_zero_array): Define.
4081 (dom_info): Redefine as class with proper encapsulation.
4082 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4083 Add new members.
4084 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4085 allocations/deallocations. Pass function as parameter (instead of
4086 using cfun).
4087 (dom_info::get_idom): Define accessor method.
4088 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4089 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4090 (calculate_dominance_info): Adjust to use dom_info class.
4091 (verify_dominators): Likewise.
4092
4093 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4094
4095 * print-rtl.c (print_rtx): Check the correct range for
4096 flag_dump_unnumbered_links to behave as documented.
4097
4098 PR rtl-optimization/67227
4099 PR rtl-optimization/64164
4100 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4101 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4102 identical gimple_reg exprs.
4103
4104 2015-08-21 Nathan Sidwell <nathan@acm.org>
4105
4106 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4107 expansion.
4108 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4109 crtl->stack_alignment_needed to determine alignment.
4110 (nvptx_get_drap_rtx): New.
4111 (TARGET_GET_DRAP_RTX): Override.
4112 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4113
4114 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4115
4116 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4117
4118 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4119
4120 * configure.ac: Remove uwin* cases.
4121 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4122 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4123 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4124 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4125 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4126 i[34567]86-*-uwin*, powerpc-*-beos*.
4127
4128 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4129
4130 * gencodes.c (gencodes): Print the comma for the preceding
4131 enum value rather than the current one. Use aliased enum values
4132 rather than #defines for compiled-out patterns.
4133 (main): Update accordingly. Replace LAST_INSN_CODE with
4134 NUM_INSN_CODES.
4135 * lra.c (insn_code_data): Update accordingly.
4136 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4137 * recog.h (target_recog): Likewise.
4138 (preprocess_insn_constraints): Change parameter to unsigned int.
4139 * recog.c (preprocess_insn_constraints): Likewise.
4140 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4141 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4142
4143 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4144
4145 PR rtl-optimization/61657
4146 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4147 unsigned. Remove superflous uint64_t cast.
4148
4149 2014-08-21 Felix Yang <felix.yang@huawei.com>
4150 Jiji Jiang <jiangjiji@huawei.com>
4151
4152 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4153 argument and get builtin function code directly from CALL.
4154 (gimple_stringop_fixed_value): Modified accordingly.
4155 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4156 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4157
4158 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4159
4160 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4161
4162 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4163
4164 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4165 to match.pd.
4166 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4167 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4168 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4169 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4170 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4171 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4172 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4173 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4174 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4175 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4176
4177 * match.pd (SIN ) : New Operator.
4178 (TAN) : New Operator.
4179 (mult (SQRT@1 @0) @1) : New simplifier.
4180 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4181 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4182 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4183 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4184 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4185 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4186 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4187 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4188 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4189 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4190
4191 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4192
4193 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4194 loop if EXPR is simplified to const value.
4195
4196 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4197
4198 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4199 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4200
4201 2015-08-21 Richard Biener <rguenther@suse.de>
4202
4203 PR middle-end/67285
4204 * gimple-fold.c (replace_stmt_with_simplification): Assert
4205 seq is empty when replacing a call with itself but different
4206 arguments.
4207 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4208 a call require that it is const.
4209
4210 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4211
4212 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4213 * builtins.c (get_object_alignment_2): Adjust.
4214 * varasm.c (align_variable): Likewise.
4215 (get_variable_align): Likewise.
4216 (build_constant_desc): Likewise.
4217 (force_const_mem): Likewise.
4218 * doc/tm.texi.in: Likewise.
4219 * doc/tm.texi: Regenerate.
4220
4221 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4222
4223 * genconfig.c (main): Always define HAVE_cc0.
4224 * recog.c (rest_of_handle_peephole2): Adjust.
4225
4226 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4227
4228 * reorg.c (relax_delay_slots): Don't use #if to check value of
4229 HAVE_cc0.
4230
4231 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4232
4233 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4234 * targhooks.c (default_have_conditional_execution): Adjust.
4235
4236 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4237
4238 * rtl.h (rtvec_all_equal_p): Declare.
4239 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4240 * rtl.c (rtvec_all_equal_p): New function.
4241 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4242 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4243 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4244 * config/arm/arm.c (neon_vdup_constant): Likewise.
4245 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4246 * config/tilegx/constraints.md (W, Y): Likewise.
4247 * config/tilepro/constraints.md (W, Y): Likewise.
4248 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4249 (classify_immediate): Use unwrap_const_vec_duplicate.
4250 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4251 (reg_or_v2s8bit_operand): Likewise.
4252 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4253 (reg_or_v4s8bit_operand): Likewise.
4254
4255 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4256
4257 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4258 (vec_shasigma_be): New #define.
4259 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4260 (VPMSUMH): Likewise.
4261 (VPMSUMW): Likewise.
4262 (VPMSUMD): Likewise.
4263 (VPMSUM): New BU_P8V_OVERLOAD_2.
4264 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4265 entries for VEC_MADD and VEC_VPMSUM.
4266
4267 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4268
4269 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4270 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4271 (avr_pgm_check_var_decl): Same.
4272
4273 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4274
4275 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4276 initialization of HFmode scalar type (float16_t) to...
4277 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4278 code.
4279
4280 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4281
4282 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4283 having an -mfp16-format.
4284
4285 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4286
4287 * config/i386/predicates.md (vector_all_ones_operand): Use
4288 CONSTM1_RTX to simplify definition.
4289
4290 2015-08-20 Richard Biener <rguenther@suse.de>
4291
4292 * toplev.c (compile_file): Remove loop calling late_global_decl
4293 on all symbols.
4294 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4295 on decls we assembled.
4296
4297 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4298
4299 * common/config/aarch64/aarch64-common.c
4300 (AARCH64_CPU_NAME_LENGTH): Delete.
4301 (aarch64_option_extension): New.
4302 (all_extensions): Likewise.
4303 (processor_name_to_arch): Likewise.
4304 (arch_to_arch_name): Likewise.
4305 (all_cores): New.
4306 (all_architectures): Likewise.
4307 (aarch64_get_extension_string_for_isa_flags): Likewise.
4308 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4309 architecture names.
4310 * config/aarch64/aarch64-protos.h
4311 (aarch64_get_extension_string_for_isa_flags): New.
4312 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4313 (aarch64_option_print): Get the string to print from
4314 aarch64_get_extension_string_for_isa_flags.
4315 (aarch64_declare_function_name): Likewise.
4316 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4317 (MCPU_TO_MARCH_SPEC): This.
4318 (ASM_CPU_SPEC): Use it.
4319 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4320 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4321 (EXTRA_SPEC_FUNCTIONS): Use it.
4322
4323 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4324
4325 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4326 expansion when !ISA_HAS_LWL_LWR.
4327 (mips_block_move_straight): Update the size of elements copied to
4328 account for alignment when !ISA_HAS_LWL_LWR.
4329 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4330
4331 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4332
4333 * expr.c (expand_expr_real_2): Check gimple statement during
4334 LSHIFT_EXPR expand.
4335
4336 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4337
4338 * common.opt (fstack-protector): Initialize to -1.
4339 (fstack-protector-all): Likewise.
4340 (fstack-protector-strong): Likewise.
4341 (fstack-protector-explicit): Likewise.
4342 * configure.ac: Add --enable-default-ssp.
4343 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4344 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4345 -1.
4346 * doc/install.texi: Document --enable-default-ssp.
4347 * config.in: Regenerated.
4348 * configure: Likewise.
4349
4350 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4351
4352 PR rtl-optimization/64164
4353 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4354 (parm_in_stack_slot_p): ... this. Disregard mode, what
4355 matters is whether the parm will live in a pseudo or a stack
4356 slot.
4357 (expand_one_ssa_partition): Deal with params without a default
4358 def. Disregard mode.
4359 * cfgexpand.h: Renamed function declaration.
4360 * tree-ssa-coalesce.c: Adjust.
4361 * function.c (split_complex_args): Allocate stack slot for
4362 unassigned parms before splitting.
4363 (parm_in_unassigned_mem_p): New. Use it instead of
4364 parm_maybe_byref_p throughout this file.
4365 (assign_parm_setup_block): Use it. Accept pseudos in the
4366 expand-assigned rtl.
4367 (assign_parm_setup_reg): Drop BLKmode requirement.
4368 (assign_parm_setup_stack): Allocate and fill in the address of
4369 unassigned MEM parms.
4370
4371 2015-08-19 David Sherwood <david.sherwood@arm.com>
4372
4373 * genmodes.c (emit_mode_unit_size_inline): New function.
4374 (emit_mode_unit_precision_inline): New function.
4375 (emit_insn_modes_h): Emit new #define. Emit new functions.
4376 (emit_mode_unit_size): New function.
4377 (emit_mode_unit_precision): New function.
4378 (emit_mode_adjustments): Add mode_unit_size adjustments.
4379 (emit_insn_modes_c): Emit new arrays.
4380 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4381 use new inline methods.
4382
4383 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4384
4385 * config/aarch64/aarch64.c (bit_count): Delete prototype
4386 and definition.
4387 (aarch64_print_operand): Use popcount_hwi instead of the above.
4388
4389 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4390
4391 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4392 comment.
4393
4394 2015-08-19 Marek Polacek <polacek@redhat.com>
4395
4396 PR middle-end/67133
4397 * gimple-ssa-isolate-paths.c
4398 (insert_trap_and_remove_trailing_statements): Rename to ...
4399 (insert_trap): ... this. Don't remove trailing statements; split
4400 block instead.
4401 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4402
4403 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4404
4405 PR other/67042
4406 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4407 conditionalize the whole on __GNUC__. Add fallback code
4408 depending neither on undefined nor implementation-defined behaviour.
4409
4410 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4411
4412 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4413 whitespaces with tab.
4414
4415 2015-08-19 Florian Weimer <fweimer@redhat.com>
4416
4417 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4418 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4419 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4420 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4421 trampolines.
4422
4423 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4424
4425 * config/arm/arm.c (bounds_check): Use %wd print format
4426 for HOST_WIDE_INT arguments.
4427
4428 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4429
4430 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4431 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4432 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4433 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4434 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4435 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4436 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4437 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4438 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4439 typedefs.
4440
4441 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4442
4443 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4444 function.c, graphite-scop-detection.c, haifa-sched.c,
4445 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4446 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4447 varasm.c: Remove typedefs of structs.
4448
4449 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4450
4451 * config/rs6000/altivec.h (vec_adde): New define.
4452 (vec_addec): Likewise.
4453 (vec_double): Likewise.
4454 (vec_bperm): Likewise.
4455 (vec_gb): Likewise.
4456 * config/rs6000/rs6000-builtin.def (ADDE): New
4457 BU_ALTIVEC_OVERLOAD_3.
4458 (ADDEC): Likewise.
4459 (DOUBLE): New BU_VSX_OVERLOAD_1.
4460 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4461 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4462 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4463 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4464 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4465 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4466 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4467 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4468 and P8V_BUILTIN_VEC_VBPERMQ.
4469
4470 2015-08-18 Jason Merrill <jason@redhat.com>
4471
4472 * print-tree.c (print_node): Handle TREE_BINFO.
4473
4474 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4475
4476 PR middle-end/36757
4477 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4478 we can expand BUILT_IN_SIGNBIT inline.
4479 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4480 * doc/extend.texi: Document the type-generic __builtin_signbit.
4481
4482 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4483
4484 PR rtl-optimization/67218
4485 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4486 (simplify_unary_operation_1): Use it.
4487
4488 2015-08-18 Marek Polacek <polacek@redhat.com>
4489
4490 PR middle-end/67222
4491 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4492 if the call isn't valid.
4493 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4494 gimple_call_builtin_p.
4495 (call_may_clobber_ref_p_1): Likewise.
4496 (stmt_kills_ref_p): Likewise.
4497
4498 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4499
4500 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4501 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4502 (mips_hard_regno_scratch_ok): Likewise.
4503 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4504 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4505
4506 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4507
4508 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4509 (determine_value_range): Call refine_value_range_using_guard for
4510 each loop initial condition to improve value range.
4511
4512 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4513
4514 * config/i386/i386.c: Remove include of fibheap.h.
4515
4516 2015-08-17 Richard Biener <rguenther@suse.de>
4517
4518 PR tree-optimization/67221
4519 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4520 (sccvn_dom_walker::before_dom_children): Mark backedges of
4521 non-executable blocks as not executable.
4522
4523 2015-08-17 David Sherwood <david.sherwood@arm.com>
4524
4525 * config/arm/arm.c (neon_element_bits): Replace call to
4526 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4527 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4528 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4529 (neon_vdup_lane<mode>): Likewise.
4530 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4531 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4532 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4533 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4534 * config/spu/spu.c (arith_immediate_p): Likewise.
4535 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4536 * expr.c (expand_expr_real_2): Likewise.
4537 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4538 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4539 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4540 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4541 New variable.
4542 * fold-const.c (fold_binary_loc): Replace call to
4543 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4544 GET_MODE_UNIT_PRECISION (m).
4545
4546 2015-08-17 Mike Stump <mikestump@comcast.net>
4547
4548 * config/arm/arm.c (arm_block_move_unaligned_straight):
4549 Emit normal move instead of unaligned load when source or destination
4550 are appropriately aligned.
4551
4552 2015-08-17 Richard Biener <rguenther@suse.de>
4553 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4554
4555 PR middle-end/16107
4556 * match.pd (div (coss (op @0) : New simplifier.
4557
4558 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4559
4560 PR rtl-optimization/64164
4561 PR bootstrap/66978
4562 PR middle-end/66983
4563 PR rtl-optimization/67000
4564 PR middle-end/67034
4565 PR middle-end/67035
4566 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4567 * tree-ssa-copyrename.c: Removed.
4568 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4569 -ftree-coalesce-vars.
4570 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4571 * common.opt (ftree-copyrename): Ignore.
4572 (ftree-coalesce-inlined-vars): Likewise.
4573 * doc/invoke.texi: Remove the ignored options above.
4574 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4575 * tree-ssa-coalesce.h: ... here.
4576 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4577 headers required by it.
4578 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4579 across variables when flag_tree_coalesce_vars. Check register
4580 use and promoted modes to allow coalescing. Do not coalesce
4581 maybe-byref parms with SSA_NAMEs of other variables, or
4582 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4583 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4584 with its member functions to tree-ssa-coalesce.c.
4585 (var_map_base_init): Likewise. Renamed to
4586 compute_samebase_partition_bases.
4587 (partition_view_normal): Drop want_bases parameter.
4588 (partition_view_bitmap): Likewise.
4589 * tree-ssa-live.h: Adjust declarations.
4590 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4591 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4592 default defs at the entry point.
4593 (dump_part_var_map): New.
4594 (compute_optimized_partition_bases): New, called by...
4595 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4596 of compute_samebase_partition_bases. Adjust.
4597 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4598 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4599 (ssa_default_def_partition): New.
4600 (get_rtl_for_parm_ssa_default_def): New.
4601 (align_local_variable, add_stack_var): Support anonymous SSA
4602 names.
4603 (defer_stack_allocation): Likewise. Declare earlier.
4604 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4605 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4606 Do no record deferred-allocation marker in
4607 SA.partition_to_pseudo.
4608 (expand_stack_vars): Adjust check for the marker in it.
4609 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4610 redundant MEM attr setting.
4611 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4612 from...
4613 (expand_one_stack_var): ... this. New wrapper to check and
4614 skip already expanded SSA partitions.
4615 (record_alignment_for_reg_var): New, factored out of...
4616 (expand_one_var): ... this.
4617 (expand_one_ssa_partition): New.
4618 (adjust_one_expanded_partition_var): New.
4619 (expand_one_register_var): Check and skip already expanded SSA
4620 partitions.
4621 (expand_used_vars): Don't create DECLs for anonymous SSA
4622 names. Expand all SSA partitions, then adjust all SSA names.
4623 (pass::execute): Replace the loops that set
4624 SA.partition_to_pseudo from partition leaders and cleared
4625 DECL_RTL for multi-location variables, and that which used to
4626 rename vars and set attrs, with one that clears DECL_RTL and
4627 checks that PARMs and RESULTs default_defs match DECL_RTL.
4628 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4629 * emit-rtl.c: Include stor-layout.h.
4630 (set_reg_attrs_for_parm): Handle NULL decl.
4631 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4632 it's not a DECL.
4633 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4634 rather than its possibly-NULL DECL.
4635 * explow.c (promote_ssa_mode): New.
4636 * explow.h (promote_ssa_mode): Declare.
4637 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4638 (read_complex_part): Export.
4639 * expr.h (read_complex_part): Declare.
4640 * cfgexpand.h (parm_maybe_byref_p): Declare.
4641 * function.c: Include cfgexpand.h.
4642 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4643 (use_register_for_parm_decl): Wrapper for the above to
4644 special-case the result_ptr.
4645 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4646 (split_complex_args): Take assign_parm_data_all argument.
4647 Pass it to rtl_for_parm. Set up rtl and context for split
4648 args. Reset complex parm before fetching its default decl
4649 rtl.
4650 (assign_parms_unsplit_complex): Use the default-def complex
4651 parm rtl if it matches the components.
4652 (assign_parms_augmented_arg_list): Adjust.
4653 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4654 multiple locations. Recognize split complex args.
4655 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4656 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4657 (assign_parm_setup_block): Prefer SSA-assigned location, and
4658 fill in its address if the memory location of a maybe-byref
4659 parm was not assigned by cfgexpand.
4660 (assign_parm_setup_reg): Likewise. Adjust its mode as
4661 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4662 sure passed_pointer parms don't need conversion. Copy address
4663 or value as needed.
4664 (assign_parm_setup_stack): Prefer SSA-assigned location.
4665 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4666 rtl before testing for pointer bounds. Special-case result_ptr.
4667 (expand_function_start): Maybe reset DECL_RTL of result.
4668 Prefer SSA-assigned location for result and static chain.
4669 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4670 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4671 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4672 anonymous SSA names. Use promote_ssa_mode.
4673 (get_temp_reg): Likewise.
4674 (remove_ssa_form): Adjust.
4675 * stor-layout.c (layout_decl): Don't set mem attributes of
4676 non-MEMs.
4677 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4678 and get its reg_usage for reg invalidation.
4679 (compute_bb_dataflow): Pass it insn.
4680 (emit_notes_in_bb): Likewise.
4681
4682 2015-08-14 Marek Polacek <polacek@redhat.com>
4683
4684 * tree-core.h (tree_base): Fix typo.
4685
4686 2015-08-14 Marek Polacek <polacek@redhat.com>
4687
4688 PR middle-end/67133
4689 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4690 nonnull argument position is not outside function arguments.
4691
4692 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4693
4694 PR target/67143
4695 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4696 'lconst_atomic' with 'const_atomic'.
4697 (atomic_fetch_<optab><mode>): Likewise.
4698 (atomic_<optab>_fetch<mode>): Likewise.
4699 * config/aarch64/iterators.md (lconst-atomic): Move below
4700 'const_atomic'.
4701 (const_atomic): New.
4702
4703 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4704 Bernd Schmidt <bernds@codesourcery.com>
4705
4706 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4707 debug options.
4708 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4709 (DWARF2_DEBUGGING_INFO): Don't define.
4710 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4711 * toplev.c (process_options): Add a case for it.
4712 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4713 (dwarf2out_init): Skip most initializations if
4714 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4715 case.
4716 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4717 DWARF2_LINENO_DEBUGGING_INFO.
4718 * opts.c (set_debug_level): Likewise.
4719
4720 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4721
4722 * config/arm/types.md (is_neon_type): Add missing types.
4723
4724 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4725
4726 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4727 for skylake.
4728 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4729 (processor_alias_table): Add skylake description.
4730 (enum processor_model): Add skylake processor.
4731 (arch_names_table): Add skylake record.
4732 * doc/invoke.texi: Add skylake item.
4733
4734 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4735
4736 * ira-int.h: Include recog.h.
4737 * ira-build.c: Don't include recog.h.
4738 * ira-color.c: Likewise.
4739 * ira-conflicts.c: Likewise.
4740 * ira-costs.c: Likewise.
4741 * ira-emit.c: Likewise.
4742 * ira-lives.c: Likewise.
4743 * ira.c: Likewise.
4744 * sched-deps.c: Likewise.
4745 * sel-sched.c: Likewise.
4746 * target-globals.c: Likewise.
4747
4748 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4749
4750 PR bootstrap/55035
4751 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4752 compiler that the n_dups and n_operands loop bounds are invariant.
4753
4754 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4755
4756 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4757 expressions in A and B.
4758
4759 2015-08-13 Richard Biener <rguenther@suse.de>
4760
4761 * tree.c (nonnull_arg_p): Move from ...
4762 * tree-vrp.c (nonnull_arg_p): ... here.
4763 * tree.h (nonnull_arg_p): Declare.
4764 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4765 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4766 Properly initialize static chain and by-reference result pointer.
4767 (run_scc_vn): Adjust.
4768
4769 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4770
4771 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4772 TUNE_I6400.
4773
4774 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4775
4776 * config/aarch64/aarch64-protos.h
4777 (aarch64_gen_atomic_cas): Declare.
4778 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4779 Choose appropriate instruction pattern for the target.
4780 (aarch64_gen_atomic_cas): New.
4781 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4782 (atomic_compare_and_swap<mode>_1): Rename to
4783 aarch64_compare_and_swap<mode>. Fix some indentation.
4784 (aarch64_compare_and_swap<mode>_lse): New.
4785 (aarch64_atomic_cas<mode>): New.
4786
4787 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4788
4789 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4790 (TARGET_LSE): New.
4791
4792 2015-08-13 Richard Biener <rguenther@suse.de>
4793
4794 PR tree-optimization/67191
4795 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4796 assert we value-numbered last stmts operand because it can validly
4797 trigger for unreachable code.
4798
4799 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4800
4801 PR rtl-optimization/67103
4802 * ifcvt.c (noce_try_store_flag_constants): Move
4803 x = (-(test != 0) & (b - a)) + a transformation to...
4804 (noce_try_cmove): ... Here. Try it if normal conditional
4805 move fails.
4806
4807 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4808
4809 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4810 pseudo-processors.
4811 * config/mips/mips.md (processor): Remove w32 and w64.
4812
4813 2015-08-13 Richard Biener <rguenther@suse.de>
4814
4815 PR tree-optimization/66502
4816 PR tree-optimization/67167
4817 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4818 backedge arguments.
4819 (vn_phi_lookup): Adjust.
4820 (vn_phi_insert): Likewise.
4821 (visit_phi): Prefer to value-number to another PHI node
4822 over value-numbering to a PHI argument.
4823 (init_scc_vn): Mark DFS back edges.
4824
4825 2015-08-13 Richard Biener <rguenther@suse.de>
4826
4827 * gimple.h (gcall::code_): New constant static member.
4828 (gcond::code_): Likewise.
4829 * gimple.c (gcall::code_): Define.
4830 (gcond::code_): Likewise.
4831 (is_a_helper <const gcond *>): Add.
4832 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4833 and forward to a new gcall overload with less checking and a
4834 cheaper way to access the operand.
4835 (gimple_call_lhs_ptr): Likewise.
4836 (gimple_call_set_lhs): Likewise.
4837 (gimple_call_internal_p): Likewise.
4838 (gimple_call_with_bounds_p): Likewise.
4839 (gimple_call_set_with_bounds): Likewise.
4840 (gimple_call_internal_fn): Likewise.
4841 (gimple_call_set_ctrl_altering): Likewise.
4842 (gimple_call_ctrl_altering_p): Likewise.
4843 (gimple_call_fntype): Likewise.
4844 (gimple_call_fn): Likewise.
4845 (gimple_call_fn_ptr): Likewise.
4846 (gimple_call_set_fndecl): Likewise.
4847 (gimple_call_fndecl): Likewise.
4848 (gimple_call_chain): Likewise.
4849 (gimple_call_num_args): Likewise.
4850 (gimple_call_arg): Likewise.
4851 (gimple_call_arg_ptr): Likewise.
4852 (gimple_call_set_arg): Likewise.
4853 (gimple_call_noreturn_p): Likewise.
4854 (gimple_cond_code): Likewise.
4855 (gimple_cond_lhs): Likewise.
4856 (gimple_cond_rhs): Likewise.
4857 (gimple_has_lhs): Reduce checking.
4858
4859 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4860
4861 PR middle-end/25529
4862 * match.pd (div (mult @0 @1) @1) : New simplifier.
4863
4864 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4865
4866 PR target/67071
4867 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4868 predicate to allow construction of vector constants using the
4869 VSLDOI vector shift instruction.
4870
4871 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4872 declaration.
4873
4874 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4875 the number of bytes to be shifted left and filled in with either
4876 all zero or all one bits.
4877 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4878 methods exist.
4879 (output_vec_const_move): On power8, generate XXLORC to generate
4880 a vector constant with all 1's. Do a split if we need to use a
4881 VSLDOI instruction.
4882
4883 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4884 properly test for the MSB.
4885
4886 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4887 vector constants that can be created with VSLDOI.
4888
4889 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4890
4891 revert:
4892 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4893 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4894 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4895 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4896 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4897 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4898 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4899 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4900 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4901
4902 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4903
4904 * config/xtensa/constraints.md (define_constraint "Y"): New
4905 constraint.
4906 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4907 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4908 * config/xtensa/predicates.md (move_operand): Match constants
4909 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4910 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4911 immediate references to TLS data.
4912 (xtensa_emit_move_sequence): Don't force constants to memory in
4913 the presence of TARGET_AUTO_LITPOOLS.
4914 (print_operand): Add 'y' format, same as default, but capable of
4915 printing SF mode constants as well.
4916 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4917 (movsf_internal): Add movi pattern that loads literal.
4918 (movsf, movdf): Don't force constants to memory in the presence
4919 of TARGET_AUTO_LITPOOLS.
4920 (movdf_internal): Add 'Y' constraint.
4921 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4922 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4923
4924 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4925
4926 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4927 Update comment.
4928 * config/arm/arm.c (ARM_FPU): Update macro.
4929 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4930 (TARGET_FP16): Likewise.
4931 (TARGET_CRYPTO): Likewise.
4932 (TARGET_NEON): Likewise.
4933 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4934 field features.
4935
4936 2015-08-12 Tom de Vries <tom@codesourcery.com>
4937
4938 PR other/67092
4939 PR other/67098
4940 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4941 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4942 accordingly. Mention default for --with-stage1-ldflags.
4943
4944 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4945
4946 * config/arm/arm.h (arm_fpu_feature_set): New.
4947 (ARM_FPU_FSET_HAS): New.
4948 (FPU_FL_NONE): New.
4949 (FPU_FL_NEON): New.
4950 (FPU_FL_FP16): New.
4951 (FPU_FL_CRYPTO): New.
4952
4953 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4954
4955 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4956 after -mcmodel=large -fPIC sorry.
4957
4958 2015-08-12 Richard Biener <rguenther@suse.de>
4959
4960 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4961 comparison operand order and commutative ternary op operand order.
4962 (sccvn_dom_walker::cond_stack): New state to track temporary
4963 expressions.
4964 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4965 no longer valid.
4966 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4967 expression.
4968 (sccvn_dom_walker::record_conds): Add a temporary conditional
4969 expressions and all related expressions also true/false.
4970 (sccvn_dom_walker::before_dom_children): Record temporary
4971 expressions based on the controlling condition of a single
4972 predecessor. When trying to simplify a conditional statement
4973 lookup expressions we might have inserted earlier.
4974
4975 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4976
4977 PR target/67127
4978 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4979 to ARM core registers.
4980
4981 2015-08-12 Nathan Sidwell <nathan@acm.org>
4982
4983 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4984 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4985
4986 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4987
4988 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4989 line with comments.
4990 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4991
4992 2015-08-12 Richard Biener <rguenther@suse.de>
4993
4994 * gimple.h (remove_pointer): New trait.
4995 (GIMPLE_CHECK2): New inline template function.
4996 (gassign::code_): New constant static member.
4997 (is_a_helper<const gassign *>): Add.
4998 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4999 and forward to a new gassign overload with less checking and a
5000 cheaper way to access the operand.
5001 (gimple_assign_lhs_ptr): Likewise.
5002 (gimple_assign_set_lhs): Likewise.
5003 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5004 Likewise.
5005 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5006 Likewise.
5007 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5008 Likewise.
5009 (gimple_assign_rhs_code): Likewise.
5010 * gimple.c (gassign::code_): Define.
5011
5012 2015-08-12 Richard Biener <rguenther@suse.de>
5013
5014 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5015 Eliminate edges marked as not executable by SCCVN.
5016 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5017 (cond_dom_walker): Rename to sccvn_dom_walker.
5018 (sccvn_dom_walker::before_dom_children): Value-number defs
5019 of all stmts.
5020 (run_scc_vn): Remove loop value-numbering all SSA names.
5021 Drop not visited SSA names to varying.
5022
5023 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5024
5025 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5026 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5027 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5028 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5029 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5030 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5031 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5032 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5033 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5034
5035 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5036
5037 PR target/66954
5038 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5039 to enum feature_priority and feature_list.
5040 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5041 and isa_names_table.
5042
5043 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5044
5045 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5046 vect_induction_def.
5047
5048 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5049
5050 PR c/66098
5051 PR c/66711
5052 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5053 account when deciding what was the command-line status.
5054
5055 2015-08-11 Nathan Sidwell <nathan@acm.org>
5056
5057 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5058
5059 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5060 we're not the only contributor to target phi.
5061
5062 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5063
5064 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5065 FIXED_REG0.
5066
5067 2015-08-11 Tom de Vries <tom@codesourcery.com>
5068
5069 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5070
5071 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5072
5073 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5074 with CPU_SLM.
5075 * config/i386/i386.md (cpu): Remove knl.
5076
5077 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5078
5079 PR libgomp/65742
5080 PR middle-end/66332
5081 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5082 open-coded sequence.
5083 * omp-low.c (oacc_process_reduction_data): Remove handline of
5084 GOMP_DEVICE_HOST_NONSHM.
5085
5086 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5087 GET_MODE_INNER changes.
5088
5089 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5090 Ilya Verbin <ilya.verbin@intel.com>
5091
5092 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5093
5094 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5095
5096 * doc/options.texi (EnabledBy): Document that the argument must be
5097 a Common option.
5098 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5099 Not enabled by -Wall.
5100 * optc-gen.awk: Give nicer error messages. Detect if the argument
5101 of EnabledBy is not a Common option.
5102 * common.opt (Wnull-dereference): Not enabled by -Wall.
5103 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5104
5105 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5106
5107 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5108 model == 0x4f as Broadwell.
5109
5110 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5111
5112 PR rtl-optimization/67028
5113 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5114 Add test to see if a const_int fits in the new mode.
5115
5116 2015-08-07 DJ Delorie <dj@redhat.com>
5117
5118 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5119
5120 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5121
5122 PR rtl-optimization/67029
5123 * ira-color.c: Include "recog.h" before including "ira-int.h".
5124 * target-globals.c: Likewise.
5125 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5126 adds an alternative_mask argument and use it instead of
5127 preferred_alternatives.
5128 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5129 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5130 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5131 (sched_analyze_insn): Update call to
5132 ira_implicitly_set_insn_hard_regs.
5133 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5134 (implicit_clobber_conflict_p): Update call to
5135 ira_implicitly_set_insn_hard_regs.
5136
5137 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5138
5139 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5140
5141 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5142
5143 PR target/67002
5144 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5145 currently_expanding_to_rtl is set.
5146
5147 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5148
5149 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5150 * configure: Regenerate.
5151
5152 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5153 Jiong Wang <jiong.wang@arm.com>
5154
5155 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5156 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5157 (REG_CLASS_NAMES): Likewise.
5158 (REG_CLASS_CONTENTS): Likewise.
5159 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5160 (aarch64_register_move_cost): Likewise.
5161 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5162 possible.
5163 * config/aarch64/constraints.md (Uc0): New constraint.
5164
5165 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5166
5167 * config/aarch64/constraints.md (Usf): Add the test of
5168 aarch64_is_noplt_call_p.
5169
5170 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5171
5172 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5173 declaration.
5174 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5175 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5176 (call_symbol): Likewise.
5177
5178 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5179
5180 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5181 for vectorizing multiplication patterns.
5182 * tree-vectorizer.h: Adjust the number of patterns.
5183
5184 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5185
5186 * config/i386/sse.md (*vec_concatv2df): Declare added
5187 alternatives as sselog type.
5188
5189 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5190
5191 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5192 all GPRs.
5193
5194 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5195
5196 * config/s390/s390.c (s390_expand_tbegin): Expand either
5197 tbegin_1_z13 or tbegin_1 depending on VX flag.
5198 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5199
5200 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5201
5202 * config/s390/s390.opt: Clarify description for -mzvector
5203 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5204 -mzvector.
5205
5206 2015-08-06 Richard Biener <rguenther@suse.de>
5207
5208 * gimple.h (gimple_call_set_fn): Access op member directly.
5209 (gimple_call_chain_ptr): Likewise.
5210 (gimple_call_set_chain): Likewise.
5211 (gimple_cond_lhs_ptr): Likewise.
5212 (gimple_cond_set_lhs): Likewise.
5213 (gimple_cond_rhs_ptr): Likewise.
5214 (gimple_cond_set_rhs): Likewise.
5215 (gimple_cond_true_label): Likewise.
5216 (gimple_cond_set_true_label): Likewise.
5217 (gimple_cond_set_false_label): Likewise.
5218 (gimple_cond_false_label): Likewise.
5219 (gimple_label_label): Likewise.
5220 (gimple_label_set_label): Likewise.
5221 (gimple_goto_set_dest): Likewise.
5222 (gimple_asm_input_op): Likewise.
5223 (gimple_asm_input_op_ptr): Likewise.
5224 (gimple_asm_set_input_op): Likewise.
5225 (gimple_asm_output_op): Likewise.
5226 (gimple_asm_output_op_ptr): Likewise.
5227 (gimple_asm_set_output_op): Likewise.
5228 (gimple_asm_clobber_op): Likewise.
5229 (gimple_asm_set_clobber_op): Likewise.
5230 (gimple_asm_label_op): Likewise.
5231 (gimple_asm_set_label_op): Likewise.
5232 (gimple_switch_index): Likewise.
5233 (gimple_switch_index_ptr): Likewise.
5234 (gimple_return_retval_ptr): Likewise.
5235 (gimple_return_retval): Likewise.
5236 (gimple_return_set_retval): Likewise.
5237 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5238 (gimple_switch_label): Likewise.
5239 (gimple_switch_set_label): Likewise.
5240
5241 2015-08-06 Richard Biener <rguenther@suse.de>
5242
5243 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5244 bool comparison canonicalization and restrict to integers.
5245
5246 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5247
5248 * coretypes.h (enum symbol_visibility): Relocate here.
5249 * flag-types.h (enum symbol_visibility): Remove.
5250 * tree-core.h (enum symbol_visibility): Remove.
5251
5252 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5253
5254 PR target/66870
5255 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5256 for no_split_stack function attribute along with
5257 flag_split_stack.
5258 (rs6000_expand_split_stack_prologue): Likewise.
5259
5260 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5261 Jeff Law <law@redhat.com>
5262
5263 PR c/16351
5264 * doc/invoke.texi (Wnull-dereference): New.
5265 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5266 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5267 Warn for potential NULL dereferences.
5268 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5269 * ubsan.c (instrument_nonnull_arg): Call
5270 infer_nonnull_range_by_attribute.
5271 (instrument_nonnull_return): Likewise.
5272 * common.opt (Wnull-dereference); New.
5273 * gimple.c (infer_nonnull_range): Remove bool arguments.
5274 (infer_nonnull_range_by_dereference): New.
5275 (infer_nonnull_range_by_attribute): New.
5276 * gimple.h: Update declarations.
5277
5278 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5279
5280 * gensupport.c (sequence_num): Replace with...
5281 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5282 ...these new variables.
5283 (init_rtx_reader_args_cb): Update accordingly.
5284 (get_num_code_insns): Likewise.
5285 (read_md_rtx): Rework to use a while loop and get_c_test.
5286 Use the new counters. Remove redundant DEFINE_SUBST case.
5287 * genoutput.c (gen_split): Delete.
5288 (main): Don't call it.
5289
5290 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5291
5292 * gensupport.h (get_c_test): Declare.
5293 * gensupport.c (get_c_test): New function.
5294 * genconditions.c (main): Use it.
5295 * genrecog.c (validate_pattern): Likewise.
5296 (match_pattern_1): Likewise. Remove c_test argument.
5297 (match_pattern): Update accordingly and remove c_test argument.
5298 (main): Update accordingly.
5299
5300 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5301
5302 * gensupport.h (get_num_insn_codes): Declare.
5303 * gensupport.c (get_num_insn_codes): New function.
5304 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5305 num_insn_codes.
5306 (main): Likewise. Use get_num_insn_codes.
5307 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5308
5309 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5310
5311 PR middle-end/66311
5312 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5313 is zero- rather than sign-extended.
5314
5315 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5316
5317 * target-insns.def (can_extend): Delete.
5318
5319 2015-08-05 Richard Biener <rguenther@suse.de>
5320
5321 PR tree-optimization/67121
5322 * tree-if-conv.c (combine_blocks): Clear range-info produced
5323 by stmts no longer executed conditionally.
5324
5325 2015-08-05 Nick Clifton <nickc@redhat.com>
5326
5327 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5328 to allow identical far pointers to remain.
5329
5330 2015-08-05 Richard Biener <rguenther@suse.de>
5331
5332 PR middle-end/67120
5333 * match.pd: Compare address bases with == if they are decls
5334 or SSA names, not operand_equal_p. Otherwise fail.
5335
5336 2015-08-05 Richard Biener <rguenther@suse.de>
5337
5338 PR tree-optimization/67055
5339 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5340 NULL gimple_block.
5341
5342 * g++.dg/torture/pr67055.C: New testcase.
5343
5344 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5345
5346 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5347 noavx512vl.
5348 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5349 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5350 AVX-512 alternative out of SSE.
5351 (define_insn "*vec_concatv2df"): Ditto.
5352
5353 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5354
5355 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5356 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5357 CODE_FOR_avx_ptestv4di.
5358 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5359 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5360 (define_insn "avx_ptest256"): Merge this ...
5361 (define_insn "sse4_1_ptest"): And this ...
5362 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5363
5364 2015-08-05 Richard Biener <rguenther@suse.de>
5365
5366 PR tree-optimization/67109
5367 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5368 against too big groups. Print whether this is a load or store
5369 group. Rename from ...
5370 (vect_analyze_group_access): ... this which is now a wrapper
5371 dissolving an invalid group.
5372 (vect_analyze_data_ref_accesses): Print whether this is a load
5373 or store group.
5374
5375 2015-08-05 Richard Biener <rguenther@suse.de>
5376
5377 PR middle-end/67107
5378 * match.pd: Guard const_binop result checking against NULL_TREE
5379 result.
5380
5381 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5382
5383 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5384 when dest and value in the REG_EQUAL are same and dest
5385 is STRICT_LOW_PART.
5386
5387 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5388
5389 * config/moxie/moxie.h (PRINT_OPERAND,
5390 PRINT_OPERAND_ADDRESS): Remove macros.
5391 * config/moxie/moxie-protos.h (moxie_print_operand,
5392 moxie_print_operand_address): Remove declaration.
5393 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5394 TARGET_PRINT_OPERAND_ADDRESS): Define.
5395 (moxie_print_operand, moxie_print_operand_address): Make static.
5396
5397 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5398
5399 PR target/66731
5400 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5401 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5402
5403 2015-08-04 Richard Biener <rguenther@suse.de>
5404
5405 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5406 generated code.
5407 (dt_operand::gen_gimple_expr): Adjust.
5408
5409 2015-08-04 Richard Biener <rguenther@suse.de>
5410
5411 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5412 bool compares on RHS.
5413 * match.pd: Add X ==/!= !X is false/true pattern.
5414
5415 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5416
5417 * config/aarch64/aarch64.c: Change inner loop statement cost
5418 to be consistent with other targets.
5419
5420 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5421
5422 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5423 targets.
5424
5425 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5426
5427 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5428 (machine_function): Remove pseudos field.
5429
5430 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5431
5432 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5433 Exit early and use target_option_current_node if processing current
5434 pragma.
5435
5436 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5437
5438 * doc/extend.texi (AArch64 Function Attributes): New node.
5439 (AArch64 Pragmas): Likewise.
5440
5441 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5442
5443 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5444 Initialize simd builtins if TARGET_SIMD.
5445 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5446 Make sure that the builtins are initialized only once no matter how
5447 many times the function is called.
5448 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5449 (aarch64_relayout_simd_param): New function.
5450 (aarch64_simd_expand_args): Use above during argument expansion.
5451 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5452 simd builtins if TARGET_SIMD.
5453 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5454 prototype.
5455 (aarch64_relayout_simd_types): Likewise.
5456
5457 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5458
5459 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5460 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5461 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5462 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5463 static keyword.
5464 (aarch64_reset_previous_fndecl): New function.
5465 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5466 the string.
5467 * config/aarch64/aarch64-c.c: New file.
5468 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5469 Push and pop options at beginning and end. Remove ifdef
5470 __ARM_FEATURE_CRC32.
5471 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5472 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5473 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5474 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5475 Define prototype.
5476 (aarch64_register_pragmas): Likewise.
5477 (aarch64_reset_previous_fndecl): Likewise.
5478 (aarch64_process_target_attr): Likewise.
5479 (aarch64_override_options_internal): Likewise.
5480
5481 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5482
5483 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5484 New function.
5485 (aarch64_can_inline_p): Likewise.
5486 (TARGET_CAN_INLINE_P): Define.
5487
5488 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5489
5490 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5491 Remove static. Handle OPT_mgeneral_regs_only,
5492 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5493 OPT_momit_leaf_frame_pointer.
5494 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5495 (aarch64_attr_opt_type): New enum.
5496 (aarch64_attribute_info): New struct.
5497 (aarch64_handle_attr_arch): New function.
5498 (aarch64_handle_attr_cpu): Likewise.
5499 (aarch64_handle_attr_tune): Likewise.
5500 (aarch64_handle_attr_isa_flags): Likewise.
5501 (aarch64_attributes): New table.
5502 (aarch64_process_one_target_attr): New function.
5503 (num_occurences_in_str): Likewise.
5504 (aarch64_process_target_attr): Likewise.
5505 (aarch64_option_valid_attribute_p): Likewise.
5506 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5507 * config/aarch64/aarch64-protos.h: Include input.h
5508 (aarch64_handle_option): Declare prototype.
5509
5510 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5511
5512 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5513 * config/aarch64/aarch64.c: Include target-globals.h
5514 (aarch64_previous_fndecl): New variable.
5515 (aarch64_set_current_function): New function.
5516 (TARGET_SET_CURRENT_FUNCTION): Define.
5517
5518 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5519
5520 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5521 (explicit_arch): Likewise.
5522 (x_aarch64_isa_flags): Likewise.
5523 (mgeneral-regs-only): Mark as Save.
5524 (mfix-cortex-a53-835769): Likewise.
5525 (mcmodel=): Likewise.
5526 (mstrict-align): Likewise.
5527 (momit-leaf-frame-pointer): Likewise.
5528 (mtls-dialect): Likewise.
5529 (master=): Likewise.
5530 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5531 (aarch64_isa_flags): Remove extern declaration.
5532 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5533 to indicate success or failure.
5534 (aarch64_validate_march): Likewise.
5535 (aarch64_validate_mtune): Likewise.
5536 (aarch64_isa_flags): Delete.
5537 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5538 instead of aarch64_isa_flags.
5539 (aarch64_get_tune_cpu): New function.
5540 (aarch64_get_arch): Likewise.
5541 (aarch64_override_options): Use above and set up explicit_tune_core
5542 and explicit_arch.
5543 (aarch64_print_extension): Move earlier in file. Add isa_flags
5544 argument and use that instead of the global aarch64_isa_flags.
5545 (aarch64_option_save): New function.
5546 (aarch64_option_restore): Likewise.
5547 (aarch64_option_print): Likewise.
5548 (aarch64_declare_function_name): Likewise.
5549 (aarch64_start_file): Delete.
5550 (TARGET_ASM_FILE_START): Do not define.
5551 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5552 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5553 Declare prototype.
5554
5555 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5556
5557 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5558 flag_omit_leaf_frame_pointer to 2.
5559
5560 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5561
5562 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5563 define to 0 or 1.
5564 (TARGET_FIX_ERR_A53_835769): New macro.
5565 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5566 handling of opts->x_aarch64_fix_a53_err835769.
5567 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5568 than aarch64_fix_a53_err835769.
5569 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5570 * config/aarch64/aarch64-linux.h: Likewise.
5571
5572 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5573
5574 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5575 ix86_expand_int_movcc as boolean.
5576
5577 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5578
5579 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5580 (aarch64_cpu_string): Likewise.
5581 (aarch64_tune_string): Likewise.
5582 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5583 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5584 Add extra argument to put result into.
5585 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5586 (aarch64_parse_cpu): Add arguments to put results into. Return
5587 aarch64_parse_opt_result.
5588 (aarch64_parse_tune): Likewise.
5589 (aarch64_override_options_after_change_1): New function.
5590 (aarch64_override_options_internal): New function.
5591 (aarch64_validate_mcpu): Likewise.
5592 (aarch64_validate_march): Likewise.
5593 (aarch64_validate_mtune): Likewise.
5594 (aarch64_override_options): Update to reflect above changes.
5595 Move some logic into aarch64_override_options_internal.
5596 Initialize target_option_default_node and target_option_current_node.
5597 (aarch64_override_options_after_change): Move logic into
5598 aarch64_override_options_after_change_1 and call it with global_options.
5599 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5600 flag values from that.
5601
5602 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5603
5604 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5605 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5606 * config/aarch64/aarch64.c (struct processor): Add arch field.
5607 (all_architectures): Handle above, move above all_cores.
5608 (all_cores): Handle above.
5609 (aarch64_parse_arch): Handle above changes.
5610 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5611 above. Update comments.
5612 (armv8.1-a): Likewise.
5613 * config/aarch64/aarch64-cores.def: Update according to above.
5614 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5615 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5616 aarch64_arch_driver_info.
5617
5618 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5619
5620 * config/aarch64/aarch64.c (struct processor): Add ident field.
5621 Rename core sched_core.
5622 (all_cores): Handle above changes.
5623 (all_architectures): Likewise.
5624 (aarch64_parse_arch): Likewise.
5625 (aarch64_override_options): Likewise.
5626
5627 2015-08-04 Richard Biener <rguenther@suse.de>
5628
5629 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5630 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5631 comparisons embedded in [VEC_]COND_EXPRs.
5632
5633 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5634
5635 * tree-if-conv.c: Fix various typos in comments.
5636 * tree-vect-stmts.c: Likewise.
5637
5638 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5639
5640 PR tree-optimization/67043
5641 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5642 preheader after hoisting invariant in it.
5643 (find_defs): Force recomputation of all luids.
5644
5645 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5646
5647 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5648 using a base register.
5649
5650 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5651
5652 * main.c (main): Pass in NULL for toplev's external_timer.
5653 * timevar.c: Include coretypes.h.
5654 (class timer::named_items): New.
5655 (timer::named_items::named_items): New.
5656 (timer::named_items::~named_items): New.
5657 (timer::named_items::push): New.
5658 (timer::named_items::pop): New.
5659 (timer::named_items::print): New.
5660 (timer::timer): Initialize field "m_jit_client_items".
5661 (timer::~timer): New.
5662 (timer::push): Move bulk of implementation to...
5663 (timer::push_internal): ...here. New function.
5664 (timer::pop): Move bulk of implementation to...
5665 (timer::pop_internal): ...here. New function.
5666 (timer::push_client_item): New.
5667 (timer::pop_client_item): New.
5668 (timer::print_row): New function, taken from timer::print.
5669 (timer::print): Print "GCC items" header if we also have client
5670 items. Move row-printing to timer::print_row. Print any client
5671 items.
5672 (timer::get_topmost_item_name): New method.
5673 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5674 (TV_JIT_CLIENT_CODE): New.
5675 * timevar.h (timer::push_client_item): New declaration.
5676 (timer::pop_client_item): New declaration.
5677 (timer::get_topmost_item_name): New method.
5678 (timer::push_internal): New declaration.
5679 (timer::pop_internal): New declaration.
5680 (timer::print_row): New declaration.
5681 (timer::named_items): New declaration.
5682 (timer::m_jit_client_items): New field.
5683 (timer): Add friend class named_items.
5684 (auto_timevar::auto_timevar): Add timer param.
5685 (auto_timevar::~auto_timevar): Use field "m_timer".
5686 (auto_timevar::m_timer): New field.
5687 * toplev.c (initialize_rtl): Add g_timer as param when
5688 constructing auto_timevar instance.
5689 (toplev::toplev): Add "external_timer" param, and use it to
5690 initialize the "g_timer" global if non-NULL.
5691 (toplev::~toplev): If this created "g_timer", delete it.
5692 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5693 with "external_timer" timer *.
5694
5695 2015-08-03 Alexander Basov <coohpt@gmail.com>
5696
5697 PR middle-end/64744
5698 PR middle-end/48470
5699 PR middle-end/43404
5700 * cfgexpand.c (expand_one_var): Add check if stack is going to
5701 be used in naked function.
5702 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5703 whether expression should not reside in MEM.
5704 * function.c (use_register_for_decl): Do not use registers for
5705 non-register things (volatile, float, BLKMode) in naked functions.
5706
5707 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5708
5709 PR target/67060
5710 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5711 Adjust splits to match new pattern.
5712
5713 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5714
5715 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5716 (VEC_M): Likewise.
5717 (VEC_N): Likewise.
5718 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5719 point in VSX registers.
5720
5721 * config/rs6000/constraints.md (wb constraint): Document unused
5722 w<x> constraint.
5723 (we constraint): Likewise.
5724 (wo constraint): Likewise.
5725 (wp constraint): New constraint for IEEE 128-bit floating point in
5726 VSX registers.
5727 (wq constraint): Likewise.
5728
5729 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5730 IEEE 128-bit floating point in VSX registers.
5731 (easy_scalar_constant): Likewise.
5732
5733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5734 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5735 registers.
5736 (rs6000_init_hard_regno_mode_ok): Likewise.
5737
5738 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5739 floating point in VSX registers.
5740 (VSX_L): Likewise.
5741 (VSX_M): Likewise.
5742 (VSX_M2): Likewise.
5743 (VSm): Likewise.
5744 (VSs): Likewise.
5745 (VSr): Likewise.
5746 (VSa): Likewise.
5747 (VSv): Likewise.
5748 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5749 IEEE 128-bit floating point in VSX registers on little endian.
5750 (vsx_le_undo_permute_<mode>): Likewise.
5751 (vsx_le_perm_load_<mode>): Likewise.
5752 (vsx_le_perm_store_<mode>): Likewise.
5753 (splitters for IEEE 128-bit fp moves): Likewise.
5754
5755 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5756 wq constraints.
5757
5758 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5759 floating point in VSX registers.
5760 (VM2): Likewise.
5761
5762 * doc/md.text (Machine Constraints): Document wp and wq
5763 constraints on PowerPC.
5764
5765 2015-08-03 Jeff Law <law@redhat.com>
5766
5767 PR middle-end/66314
5768 PR gcov-profile/66899
5769 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5770 iterate over the jump threading paths when an element in the
5771 jump threading paths array is eliminated.
5772
5773 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5774
5775 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5776
5777 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5778
5779 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5780 is_use_properly_guarded the variable def_preds. Free its
5781 contents before returning.
5782 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5783 (is_use_properly_guarded): Replace local variable def_preds with
5784 a parameter. Adjust accordingly. Only update *def_preds if it's
5785 the empty vector.
5786
5787 2015-08-03 Richard Biener <rguenther@suse.de>
5788
5789 * genmatch.c (simplify::for_subst_vec): New member.
5790 (binary_ok): New helper for for lowering.
5791 (lower_for): Delay substituting operators into result expressions
5792 if we can merge the results eventually again.
5793 (capture_info::walk_result): Adjust for user_id appearing as
5794 result expression operator.
5795 (expr::gen_transform): Likewise.
5796 (dt_simplify::gen_1): Likewise.
5797 (dt_simplify::gen): Pass not substituted operators to tail
5798 functions or initialize local variable with it.
5799 (decision_tree::gen): Adjust function signature.
5800 * match.pd: Fix tests against global code and add default
5801 cases to switch stmts.
5802
5803 2015-08-03 Richard Biener <rguenther@suse.de>
5804
5805 * genmatch.c (dt_simplify::gen): Create captures array
5806 with an initializer.
5807
5808 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5809
5810 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5811 the host compiler is affected by placement new aliasing bug.
5812 * configure: Regenerate.
5813 * Makefile.in (ALIASING_FLAGS): New variable.
5814 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5815
5816 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5817
5818 PR target/66731
5819 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5820 (negmulsf3_vfp): Likewise.
5821 (muldf3negdf_vfp): Disable for -frounding-math.
5822 (mulsf3negsf_vfp): Likewise.
5823 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5824 fix MULT cost with -frounding-math.
5825
5826 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5827
5828 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5829 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5830 explicit. Prefer to add the flag whenever possible.
5831 (noce_process_if_block): Try noce_try_store_flag_constants before
5832 noce_try_cmove.
5833
5834 2015-08-03 Richard Biener <rguenther@suse.de>
5835
5836 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5837 New hash-map to record equivalent transforms.
5838 (dt_node::analyze): Populate the equivalent transforms hash-map.
5839 (dt_simplify::info): Add reference to hash-map entry.
5840 (dt_simplify::gen): If we have split out a function for the
5841 transform, generate a call to it.
5842 (sinfo_hashmap_traits::hash): New function.
5843 (compare_op): New helper function for ...
5844 (sinfo_hashmap_traits::equal_keys): ... this new function.
5845 (decision_tree::gen): Split out common equivalent transforms
5846 into functions.
5847
5848 2015-08-03 Richard Biener <rguenther@suse.de>
5849
5850 * gimple-fold.c (fold_gimple_assign): Remove folding of
5851 the comparison in COND_EXPRs.
5852
5853 2015-08-03 Richard Biener <rguenther@suse.de>
5854
5855 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5856 on the rhs of assignments first simplify the embedded
5857 GENERIC condition.
5858
5859 2015-08-03 Richard Biener <rguenther@suse.de>
5860
5861 PR tree-optimization/66917
5862 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5863 field.
5864 (DR_VECT_AUX): New macro.
5865 (set_dr_misalignment): Adjust.
5866 (dr_misalignment): Likewise.
5867 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5868 Compute whether the base is at least element aligned.
5869 * tree-vect-stmts.c (ensure_base_align): Adjust.
5870 (vectorizable_store): If the base is not element aligned
5871 preserve alignment of the original access if misalignment is unknown.
5872 (vectorizable_load): Likewise.
5873
5874 2015-08-02 Martin Sebor <msebor@redhat.com>
5875
5876 * c-family/c.opt (-Wframe-address): New warning option.
5877 * doc/invoke.texi (Wframe-address): Document it.
5878 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5879 Clarify possible effects of calling the functions with non-zero
5880 arguments and mention -Wframe-address.
5881 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5882
5883 2015-08-01 Michael Collison <michael.collison@linaro.org
5884 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5885
5886 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5887 (*arm_umin_cmp): Likewise.
5888
5889 2015-08-01 Caroline Tice <cmtice@google.com>
5890
5891 PR 66521
5892 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5893 global variables.
5894 (vtbl_find_mangled_name): New function.
5895 (vtbl_register_mangled_name): New function.
5896 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5897 mangled name in mangled name vectors.
5898 (find_or_create_vtbl_map_node): Ditto.
5899 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5900 update recursion_depth on function entry; pass it to every recursive
5901 call; automatically exit if depth > 25 (give up looking at that point).
5902 (verify_bb_vtables): Initialize recursion_depth and pass it to
5903 var_is_used_for_virtual_call_p.
5904 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5905 global variable decls.
5906 (vtbl_register_mangled_name): New extern function decl.
5907
5908 2015-08-01 Tom de Vries <tom@codesourcery.com>
5909
5910 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5911 function.
5912 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5913 Declare.
5914 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5915 operation_no_trapping_overflow. Allow non-overflow operations.
5916 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5917 operations.
5918
5919 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5920
5921 PR target/67049
5922 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5923
5924 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5925
5926 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5927 Enable for TARGET_32BIT.
5928 (*if_move_neg): Likewise.
5929
5930 2015-07-31 Nick Clifton <nickc@redhat.com>
5931
5932 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5933 Returns true for __model__.
5934 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5935
5936 2015-07-31 Alan Modra <amodra@gmail.com>
5937
5938 PR target/66870
5939 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5940 (rs6000_emit_prologue): Set it.
5941 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5942
5943 2015-07-31 Richard Biener <rguenther@suse.de>
5944
5945 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5946 -> X == (C1 ^ C2) which is already implemented in match.pd.
5947 Remove redundant dispatching to fold_relational_const.
5948 Move unordered self and NaN compares ...
5949 * match.pd: ... as patterns here. Remove some stray captures
5950 and add a comment.
5951
5952 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5953
5954 * config/i386/i386.c
5955 (bdesc_special_args): Convert mask type from signed to unsigned for
5956 masked builtins.
5957 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5958 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5959 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5960 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5961 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5962 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5963 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5964 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5965 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5966 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5967 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5968 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5969 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5970 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5971 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5972 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5973 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5974 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5975 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5976 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5977 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5978 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5979 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5980 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5981 * config/i386/i386-builtin-types.def
5982 (V16QI_FTYPE_V16SI): Remove.
5983 (V8DF_FTYPE_V8SI): Ditto.
5984 (V8HI_FTYPE_V8DI): Ditto.
5985 (V8SI_FTYPE_V8DI): Ditto.
5986 (V8SF_FTYPE_V8DF): Ditto.
5987 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5988 (V16HI_FTYPE_V16SI): Ditto.
5989 (V16SF_FTYPE_V16HI): Ditto.
5990 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5991 (V16SF_FTYPE_V16SI): Ditto.
5992 (V4DI_FTYPE_V4DI): Ditto.
5993 (V16SI_FTYPE_V16SF): Ditto.
5994 (V16SF_FTYPE_FLOAT): Ditto.
5995 (V8DF_FTYPE_DOUBLE): Ditto.
5996 (V8DI_FTYPE_INT64): Ditto.
5997 (V8DI_FTYPE_V4DI): Ditto.
5998 (V16QI_FTYPE_V8DI): Ditto.
5999 (UINT_FTYPE_V4SF): Ditto.
6000 (UINT64_FTYPE_V4SF): Ditto.
6001 (UINT_FTYPE_V2DF): Ditto.
6002 (UINT64_FTYPE_V2DF): Ditto.
6003 (V16SI_FTYPE_V16SI): Ditto.
6004 (V8DI_FTYPE_V8DI): Ditto.
6005 (V16SI_FTYPE_PV4SI): Ditto.
6006 (V16SF_FTYPE_PV4SF): Ditto.
6007 (V8DI_FTYPE_PV2DI): Ditto.
6008 (V8DF_FTYPE_PV2DF): Ditto.
6009 (V4DI_FTYPE_PV2DI): Ditto.
6010 (V4DF_FTYPE_PV2DF): Ditto.
6011 (V16SI_FTYPE_PV2SI): Ditto.
6012 (V16SF_FTYPE_PV2SF): Ditto.
6013 (V8DI_FTYPE_PV4DI): Ditto.
6014 (V8DF_FTYPE_PV4DF): Ditto.
6015 (V8SF_FTYPE_FLOAT): Ditto.
6016 (V4SF_FTYPE_FLOAT): Ditto.
6017 (V4DF_FTYPE_DOUBLE): Ditto.
6018 (V8SF_FTYPE_PV4SF): Ditto.
6019 (V8SI_FTYPE_PV4SI): Ditto.
6020 (V4SI_FTYPE_PV2SI): Ditto.
6021 (V8SF_FTYPE_PV2SF): Ditto.
6022 (V8SI_FTYPE_PV2SI): Ditto.
6023 (V16SF_FTYPE_PV8SF): Ditto.
6024 (V16SI_FTYPE_PV8SI): Ditto.
6025 (V8DI_FTYPE_V8SF): Ditto.
6026 (V4DI_FTYPE_V4SF): Ditto.
6027 (V2DI_FTYPE_V4SF): Ditto.
6028 (V64QI_FTYPE_QI): Ditto.
6029 (V32HI_FTYPE_HI): Ditto.
6030 (V8UHI_FTYPE_V8UHI): Ditto.
6031 (V16UHI_FTYPE_V16UHI): Ditto.
6032 (V32UHI_FTYPE_V32UHI): Ditto.
6033 (V2UDI_FTYPE_V2UDI): Ditto.
6034 (V4UDI_FTYPE_V4UDI): Ditto.
6035 (V8UDI_FTYPE_V8UDI): Ditto.
6036 (V4USI_FTYPE_V4USI): Ditto.
6037 (V8USI_FTYPE_V8USI): Ditto.
6038 (V16USI_FTYPE_V16USI): Ditto.
6039 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6040 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6041 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6042 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6043 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6044 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6045 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6046 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6047 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6048 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6049 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6050 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6051 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6052 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6053 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6054 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6055 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6056 (V16SI_FTYPE_V16SI_SI): Ditto.
6057 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6058 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6059 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6060 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6061 (QI_FTYPE_QI): Ditto.
6062 (SI_FTYPE_SI): Ditto.
6063 (DI_FTYPE_DI): Ditto.
6064 (QI_FTYPE_QI_QI): Ditto.
6065 (QI_FTYPE_QI_INT): Ditto.
6066 (HI_FTYPE_HI_INT): Ditto.
6067 (SI_FTYPE_SI_INT): Ditto.
6068 (DI_FTYPE_DI_INT): Ditto.
6069 (HI_FTYPE_V16QI_V16QI): Ditto.
6070 (SI_FTYPE_V32QI_V32QI): Ditto.
6071 (DI_FTYPE_V64QI_V64QI): Ditto.
6072 (QI_FTYPE_V8HI_V8HI): Ditto.
6073 (HI_FTYPE_V16HI_V16HI): Ditto.
6074 (SI_FTYPE_V32HI_V32HI): Ditto.
6075 (QI_FTYPE_V4SI_V4SI): Ditto.
6076 (QI_FTYPE_V8SI_V8SI): Ditto.
6077 (QI_FTYPE_V2DI_V2DI): Ditto.
6078 (QI_FTYPE_V4DI_V4DI): Ditto.
6079 (QI_FTYPE_V8DI_V8DI): Ditto.
6080 (HI_FTYPE_V16SI_V16SI): Ditto.
6081 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6082 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6083 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6084 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6085 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6086 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6087 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6088 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6089 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6090 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6091 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6092 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6093 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6094 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6095 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6096 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6097 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6098 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6099 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6100 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6101 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6102 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6103 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6104 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6105 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6106 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6107 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6108 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6109 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6110 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6111 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6112 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6113 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6114 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6115 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6116 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6117 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6118 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6119 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6120 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6121 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6122 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6123 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6124 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6125 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6126 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6127 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6128 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6129 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6130 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6131 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6132 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6133 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6134 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6135 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6136 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6137 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6138 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6139 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6140 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6141 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6142 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6143 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6144 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6145 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6146 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6147 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6148 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6149 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6150 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6151 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6152 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6153 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6154 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6155 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6156 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6157 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6158 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6159 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6160 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6161 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6162 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6163 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6164 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6165 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6166 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6167 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6168 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6169 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6170 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6171 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6172 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6173 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6174 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6175 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6176 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6177 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6178 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6179 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6180 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6181 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6182 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6183 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6184 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6185 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6186 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6187 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6188 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6189 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6190 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6191 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6192 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6193 (HI_FTYPE_HI): Ditto.
6194 (HI_FTYPE_V16QI): Ditto.
6195 (SI_FTYPE_V32QI): Ditto.
6196 (DI_FTYPE_V64QI): Ditto.
6197 (QI_FTYPE_V8HI): Ditto.
6198 (HI_FTYPE_V16HI): Ditto.
6199 (SI_FTYPE_V32HI): Ditto.
6200 (QI_FTYPE_V4SI): Ditto.
6201 (QI_FTYPE_V8SI): Ditto.
6202 (HI_FTYPE_V16SI): Ditto.
6203 (QI_FTYPE_V2DI): Ditto.
6204 (QI_FTYPE_V4DI): Ditto.
6205 (QI_FTYPE_V8DI): Ditto.
6206 (V16QI_FTYPE_HI): Ditto.
6207 (V32QI_FTYPE_SI): Ditto.
6208 (V64QI_FTYPE_DI): Ditto.
6209 (V8HI_FTYPE_QI): Ditto.
6210 (V16HI_FTYPE_HI): Ditto.
6211 (V32HI_FTYPE_SI): Ditto.
6212 (V4SI_FTYPE_QI): Ditto.
6213 (V4SI_FTYPE_HI): Ditto.
6214 (V8SI_FTYPE_QI): Ditto.
6215 (V8SI_FTYPE_HI): Ditto.
6216 (V2DI_FTYPE_QI): Ditto.
6217 (V4DI_FTYPE_QI): Ditto.
6218 (HI_FTYPE_HI_HI): Ditto.
6219 (SI_FTYPE_SI_SI): Ditto.
6220 (DI_FTYPE_DI_DI): Ditto.
6221 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6222 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6223 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6224 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6225 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6226 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6227 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6228 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6229 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6230 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6231 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6232 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6233 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6234 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6235 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6236 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6237 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6238 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6239 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6240 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6241 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6242 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6243 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6244 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6245 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6246 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6247 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6248 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6249 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6250 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6251 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6252 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6253 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6254 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6255 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6256 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6257 (V16SI_FTYPE_HI): Ditto.
6258 (V8DI_FTYPE_QI): Ditto.
6259 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6260 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6261 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6262 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6263 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6264 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6265 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6266 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6267 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6268 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6269 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6270 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6271 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6272 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6273 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6274 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6275 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6276 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6277 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6278 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6279 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6280 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6281 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6282 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6283 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6284 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6285 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6286 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6287 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6288 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6289 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6290 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6291 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6292 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6293 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6294 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6295 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6296 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6297 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6298 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6299 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6300 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6301 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6302 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6303 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6304 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6305 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6306 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6307 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6308 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6309 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6310 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6311 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6312 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6313 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6314 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6315 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6316 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6317 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6318 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6319 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6320 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6321 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6322 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6323 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6324 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6325 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6326 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6327 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6328 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6329 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6330 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6331 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6332 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6333 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6334 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6335 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6336 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6337 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6338 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6339 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6340 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6341 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6342 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6343 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6344 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6345 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6346 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6347 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6348 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6349 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6350 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6351 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6352 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6353 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6354 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6355 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6356 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6357 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6358 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6359 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6360 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6361 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6362 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6363 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6364 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6365 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6366 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6367 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6368 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6369 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6370 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6371 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6372 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6373 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6374 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6375 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6376 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6377 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6378 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6379 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6380 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6381 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6382 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6383 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6384 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6385 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6386 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6387 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6388 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6389 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6390 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6391 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6392 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6393 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6394 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6395 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6396 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6397 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6398 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6399 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6400 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6401 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6402 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6403 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6404 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6405 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6406 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6407 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6408 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6409 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6410 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6411 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6412 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6413 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6414 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6415 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6416 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6417 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6418 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6419 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6420 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6421 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6422 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6423 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6424 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6425 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6426 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6427 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6428 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6429 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6430 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6431 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6432 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6433 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6434 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6435 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6436 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6437 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6438 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6439 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6440 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6441 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6442 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6443 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6444 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6445 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6446 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6447 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6448 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6449 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6450 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6451 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6452 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6453 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6454 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6455 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6456 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6457 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6458 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6459 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6460 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6461 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6462 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6463 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6464 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6465 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6466 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6467 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6468 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6469 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6470 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6471 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6472 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6473 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6474 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6475 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6476 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6477 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6478 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6479 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6480 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6481 (QI_FTYPE_V8DF_INT_QI): Ditto.
6482 (QI_FTYPE_V4DF_INT_QI): Ditto.
6483 (QI_FTYPE_V2DF_INT_QI): Ditto.
6484 (HI_FTYPE_V16SF_INT_HI): Ditto.
6485 (QI_FTYPE_V8SF_INT_QI): Ditto.
6486 (QI_FTYPE_V4SF_INT_QI): Ditto.
6487 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6488
6489 2015-07-31 Richard Biener <rguenther@suse.de>
6490
6491 * gimple-fold.c (fold_gimple_assign): Remove folding of
6492 GIMPLE_BINARY_RHS.
6493
6494 2015-07-31 Tom de Vries <tom@codesourcery.com>
6495
6496 PR tree-optimization/66846
6497 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6498 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6499 (expand_omp_target) [ENABLE_CHECKING]: Same.
6500 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6501 cfun if !LOOPS_NEED_FIXUP.
6502 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6503 that omp_for already has its own loop struct.
6504 * tree-parloops.c (create_phi_for_local_result)
6505 (create_call_for_reduction): Handle simple latch bb.
6506 (create_parallel_loop): Add simple latch bb to preserve
6507 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6508 (gen_parallel_loop): Remove call to cancel_loop_tree.
6509 (parallelize_loops): Skip loops that are inner loops of parallelized
6510 loops.
6511 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6512 verify_loop_structure.
6513
6514 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6515
6516 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6517 * config/v850/v850.md (RV_REGNUM): New constants.
6518 * config/v850/v850.c (v850_libcall_value): New functions.
6519 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6520 (TARGET_LIBCALL_VALUE): Define.
6521
6522 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6523
6524 * rtl.h (lowpart_subreg): Move in file.
6525 * loop-iv.c (lowpart_subreg): Move to...
6526 * simplify-rtx.c (lowpart_subreg): ...here.
6527 (simplify_binary_operation_1): Use lowpart_subreg instead of
6528 simplify_gen_subreg.
6529 * expr.c (expand_expr_real_2): Ditto.
6530 * emit-rtl.c (gen_lowpart_common): Ditto.
6531 * combine.c (gen_lowpart_for_combine): Ditto.
6532 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6533 expand_debug_source_expr): Ditto.
6534
6535 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6536
6537 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6538 (expand_builtin_atomic_clear): Remove support for atomic_clear
6539 pattern.
6540
6541 2015-07-30 Richard Biener <rguenther@suse.de>
6542
6543 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6544 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6545 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6546 redundant operand canonicalization.
6547
6548 2015-07-30 David Sherwood <david.sherwood@arm.com>
6549
6550 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6551 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6552 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6553 * config/arm/arm.c (neon_valid_immediate): Likewise.
6554 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6555 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6556 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6557 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6558 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6559 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6560 * config/i386/sse.md
6561 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6562 (*ssse3_palignr<mode>_perm): Likewise.
6563 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6564 * config/spu/spu.c (arith_immediate_p): Likewise.
6565 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6566 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6567
6568 2015-07-30 Richard Biener <rguenther@suse.de>
6569
6570 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6571 (decision_tree::gen_generic): ... this into ...
6572 (decision_tree::gen): ... this.
6573 (main): Adjust callers.
6574
6575 2015-07-30 Richard Biener <rguenther@suse.de>
6576
6577 * genmatch.c (verbose): New global.
6578 (warning_at): Add overload with source_location.
6579 (capture_info::capture_info): Add bool whether generating gimple
6580 or generic. Add gimple member.
6581 (capture_info::cinfo): Add capture member.
6582 (capture_info::walk_match): Record capture. Warn on
6583 non-captured leafs.
6584 (capture_info::walk_c_expr): Add more fragments captures cannot
6585 escape through. Warn on escaped captures.
6586 (dt_simplify::gen_1): Warn on operands we force to have no
6587 side-effects.
6588 (main): Initialize verbose.
6589 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6590
6591 2015-07-30 Richard Biener <rguenther@suse.de>
6592
6593 PR middle-end/67053
6594 * match.pd: Allow both operands to independently have conversion
6595 when simplifying compares of addresses.
6596
6597 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6598
6599 PR target/66217
6600 PR target/67045
6601 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6602 around those cases that need one.
6603
6604 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6605
6606 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6607
6608 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6609
6610 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6611 New. Copied from config/i386/gnu-user.h.
6612 (ASM_COMMENT_START): Likewise.
6613 (DBX_REGISTER_NUMBER): Likewise.
6614
6615 2015-07-29 Richard Biener <rguenther@suse.de>
6616
6617 * gimple-fold.c (fold_gimple_cond): Remove.
6618 (fold_stmt_1): Do not call it.
6619
6620 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6621
6622 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6623 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6624
6625 * config/aarch64/aarch64-modes.def: Add HFmode.
6626
6627 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6628 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6629
6630 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6631 aarch64_promoted_type): New.
6632
6633 (aarch64_float_const_representable_p): Disable HFmode.
6634 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6635 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6636 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6637
6638 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6639 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6640
6641 * config/aarch64/iterators.md (GPF_F16): New.
6642
6643 2015-07-29 Richard Biener <rguenther@suse.de>
6644
6645 * match.pd: Merge address comparison patterns and make them
6646 handle some more cases.
6647
6648 2015-07-29 Richard Biener <rguenther@suse.de>
6649
6650 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6651 (parser::parse_capture): Add bool argument on whether to reject
6652 unknown captures.
6653 (parser::parse_expr): Adjust.
6654 (parser::parse_op): Likewise.
6655 (parser::parse_pattern): Likewise.
6656
6657 2015-07-29 Richard Biener <rguenther@suse.de>
6658
6659 * gimple-fold.c (has_use_on_stmt): New function.
6660 (replace_stmt_with_simplification): Use it to allow
6661 abnormals originally referenced in the stmt.
6662 (fold_stmt_1): Canonicalize operand order.
6663
6664 2015-07-28 David Sherwood <david.sherwood@arm.com>
6665
6666 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6667 GET_MODE_INNER unconditionally.
6668 * config/spu/spu.c (arith_immediate_p): Likewise.
6669 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6670 * expmed.c (synth_mult): Remove check for VOIDmode result from
6671 GET_MODE_INNER.
6672 (expand_mult_const): Likewise.
6673 * fold-const.c (fold_binary_loc): Replace call to element_precision
6674 with call to GET_MODE_PRECISION.
6675 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6676 m->name.
6677 (emit_mode_inner): Likewise.
6678 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6679 result check.
6680 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6681 (GET_MODE_UNIT_PRECISION): Likewise.
6682 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6683 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6684 * stor-layout.c (bitwise_type_for_mode): Update assert.
6685 (element_precision): Remove.
6686
6687 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6688
6689 * target-insns.def (reload_load_address): New targetm instruction
6690 pattern.
6691 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6692
6693 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6694
6695 * target-insns.def (atomic_test_and_set): New targetm instruction
6696 pattern.
6697 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6698 HAVE_*/gen_* interface.
6699
6700 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6701
6702 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6703 patterns.
6704 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6705 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6706 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6707 * rtlanal.c (nonzero_bits1): Likewise.
6708 (num_sign_bit_copies1): Likewise.
6709
6710 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6711
6712 * target-insns.def (eh_return): New targetm instruction pattern.
6713 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6714 interface.
6715 * function.c (thread_prologue_and_epilogue_insns): Remove
6716 preprocessor condition.
6717
6718 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6719
6720 * target-insns.def (indirect_jump): New targetm instruction pattern.
6721 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6722 interface.
6723
6724 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6725
6726 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6727 instead of nonimmediate_operand. Remove C condiition.
6728
6729 2015-07-28 Richard Biener <rguenther@suse.de>
6730
6731 * match.pd: Add more simplification of address comparisons.
6732
6733 2015-07-28 Richard Biener <rguenther@suse.de>
6734
6735 * match.pd: Re-order two cases in comparison with max/min
6736 value simplification to make it apply for bools.
6737
6738 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6739
6740 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6741 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6742 (aarch64_rtx_costs): Properly strip extend or extract before
6743 passing down to rtx costs again.
6744
6745 2015-07-28 Nick Clifton <nickc@redhat.com>
6746
6747 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6748 Optimizes the case where -mes0 is active and a constant symbolic
6749 address is used.
6750 * config/rl78/rl78-protos.h: Prototype the new function.
6751 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6752
6753 2015-07-28 Tom de Vries <tom@codesourcery.com>
6754
6755 * tree-parloops.c (reduc_stmt_res): New function.
6756 (initialize_reductions, add_field_for_reduction)
6757 (create_phi_for_local_result, create_loads_for_reductions)
6758 (create_stores_for_reduction, build_new_reduction): Handle case that
6759 reduc_stmt is a phi.
6760 (gather_scalar_reductions): Allow double_reduc reductions.
6761
6762 2015-07-28 Richard Biener <rguenther@suse.de>
6763
6764 * fold-const.c (fold_comparison): Remove equality folding
6765 of decl addresses ...
6766 * match.pd: ... here and merge with existing pattern.
6767
6768 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6769
6770 PR tree-optimization/66828
6771 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6772 from int64_t to uint64_t.
6773
6774 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6775
6776 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6777 as valid only in the error message of the driver, not in the
6778 messages of the language compilers.
6779
6780 2015-07-27 Tom de Vries <tom@codesourcery.com>
6781
6782 * tree-parloops.c (gather_scalar_reductions): Simplify function
6783 structure.
6784
6785 2015-07-27 Marek Polacek <polacek@redhat.com>
6786
6787 * ipa-devirt.c (types_same_for_odr): Fix typo.
6788
6789 2015-07-27 Jason Merrill <jason@redhat.com>
6790
6791 PR debug/66468
6792 * dwarf2out.c (gen_inlined_subroutine_die): Check
6793 cgraph_function_possibly_inlined_p.
6794
6795 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6796
6797 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6798 Place integer variant first.
6799 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6800
6801 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6802
6803 PR/63870
6804 * config/arm/arm-builtins.c (enum arm_builtins):
6805 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6806 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6807 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6808 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6809 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6810
6811 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6812
6813 PR/63870
6814 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6815 Add qualifier_lane_index.
6816 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6817 (arm_getlane_qualifiers): Use qualifier_lane_index.
6818 (arm_lanemac_qualifiers): Rename to...
6819 (arm_mac_n_qualifiers): ...this.
6820 (LANEMAC_QUALIFIERS): Rename to...
6821 (MAC_N_QUALIFIERS): ...this.
6822 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6823 (arm_setlane_qualifiers): Use qualifier_lane_index.
6824 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6825 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6826 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6827 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6828
6829 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6830 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6831 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6832 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6833 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6834 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6835 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6836 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6837 qualifiers to TERNOP_IMM.
6838 (vdup_lane): Change qualifiers to GETLANE.
6839 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6840 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6841 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6842 vqdmlsl_n): Change qualifiers to MAC_N.
6843
6844 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6845 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6846 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6847 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6848 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6849 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6850 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6851 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6852 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6853 Remove call to neon_lane_bounds.
6854
6855 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6856
6857 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6858 Place integer variant first.
6859
6860 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6861
6862 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6863 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6864 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6865 for armv6kz targets.
6866 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6867 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6868 (FL_FOR_ARCH6ZK): Remove.
6869 (FL_FOR_ARCH6KZ): New.
6870 (arm_arch6zk): New declaration.
6871 * config/arm/arm-tables.opt: Regenerate.
6872 * config/arm/arm.c (arm_arch6kz): New.
6873 (arm_option_override): Set arm_arch6kz.
6874 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6875 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6876 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6877
6878 2015-07-27 Marek Polacek <polacek@redhat.com>
6879
6880 PR c++/66555
6881 PR c/54979
6882 * doc/invoke.texi: Document -Wtautological-compare.
6883
6884 2015-07-27 Richard Biener <rguenther@suse.de>
6885
6886 * genmatch.c (decision_tree::gen_gimple): Split out large
6887 subtrees into separate functions.
6888 (decision_tree::gen_generic): Likewise.
6889
6890 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6891
6892 * config/alpha/alpha.c: Use SUBREG_P predicate.
6893 * config/alpha/predicates.md: Ditto.
6894
6895 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6896
6897 * config.host (s390*-*-*): Include driver-native.c only when
6898 building with s390* as host *and* target.
6899
6900 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6901
6902 PR target/66930
6903 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6904 T bit register modified_between_p check.
6905
6906 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6907
6908 * config/i386/i386.c: Use SUBREG_P predicate.
6909 * config/i386/i386.md: Ditto.
6910 * config/i386/sse.md: Ditto.
6911 * config/i386/predicates.md: Ditto.
6912
6913 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6914
6915 PR target/67004
6916 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6917 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6918
6919 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6920
6921 * Makefile.in: Remove use of TREEBROWSER.
6922 * config.in: Regenerated.
6923 * configure: Regenerated.
6924 * configure.ac: Remove definition of TREEBROWSER.
6925 * tree-browser.c: Removed.
6926 * tree-browser.def: Removed.
6927
6928 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6929
6930 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6931 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6932 Graphite.
6933 (scopdet_basic_block_info): Print when a loop or bb cannot be
6934 represented in Graphite.
6935
6936 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6937
6938 PR target/66648
6939 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6940 execution guard when min_size is less than size_needed.
6941
6942 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6943
6944 * doc/install.texi: Document supported versions of ISL.
6945
6946 2015-07-25 Jeff Law <law@redhat.com>
6947
6948 Revert:
6949 PR lto/66752
6950 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6951 unable to find X NE 0 in the tables, return X as the simplified
6952 condition.
6953 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6954 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6955 to VISISTED_BBS. */
6956 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6957 after removing the control flow statement and unnecessary edges.
6958
6959 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6960
6961 Revert:
6962 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6963
6964 PR rtl-optimization/64164
6965 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6966 * tree-ssa-copyrename.c: Removed.
6967 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6968 -ftree-coalesce-vars.
6969 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6970 * common.opt (ftree-copyrename): Ignore.
6971 (ftree-coalesce-inlined-vars): Likewise.
6972 * doc/invoke.texi: Remove the ignored options above.
6973 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6974 * tree-ssa-coalesce.h: ... here.
6975 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6976 headers required by it.
6977 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6978 across variables when flag_tree_coalesce_vars. Check register
6979 use and promoted modes to allow coalescing. Moved to
6980 tree-ssa-coalesce.c.
6981 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6982 with its member functions to tree-ssa-coalesce.c.
6983 (var_map_base_init): Likewise. Renamed to
6984 compute_samebase_partition_bases.
6985 (partition_view_normal): Drop want_bases parameter.
6986 (partition_view_bitmap): Likewise.
6987 * tree-ssa-live.h: Adjust declarations.
6988 * tree-ssa-coalesce.c: Include explow.h.
6989 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6990 default defs at the entry point.
6991 (dump_part_var_map): New.
6992 (compute_optimized_partition_bases): New, called by...
6993 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6994 of compute_samebase_partition_bases. Adjust.
6995 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6996 * cfgexpand.c (leader_merge): New.
6997 (get_rtl_for_parm_ssa_default_def): New.
6998 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6999 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7000 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7001 redundant MEM attr setting.
7002 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7003 from...
7004 (expand_one_stack_var): ... this. New wrapper to check and
7005 skip already expanded SSA partitions.
7006 (record_alignment_for_reg_var): New, factored out of...
7007 (expand_one_var): ... this.
7008 (expand_one_ssa_partition): New.
7009 (adjust_one_expanded_partition_var): New.
7010 (expand_one_register_var): Check and skip already expanded SSA
7011 partitions.
7012 (expand_used_vars): Don't create DECLs for anonymous SSA
7013 names. Expand all SSA partitions, then adjust all SSA names.
7014 (pass::execute): Replace the loops that set
7015 SA.partition_to_pseudo from partition leaders and cleared
7016 DECL_RTL for multi-location variables, and that which used to
7017 rename vars and set attrs, with one that clears DECL_RTL and
7018 checks that PARMs and RESULTs default_defs match DECL_RTL.
7019 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7020 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7021 * explow.c (promote_ssa_mode): New.
7022 * explow.h (promote_ssa_mode): Declare.
7023 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7024 * function.c: Include cfgexpand.h.
7025 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7026 (use_register_for_parm_decl): Wrapper for the above to
7027 special-case the result_ptr.
7028 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7029 (split_complex_args): Take assign_parm_data_all argument.
7030 Pass it to rtl_for_parm. Set up rtl and context for split
7031 args.
7032 (assign_parms_augmented_arg_list): Adjust.
7033 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7034 multiple locations. Recognize split complex args.
7035 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7036 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7037 (assign_parm_setup_block): Prefer SSA-assigned location.
7038 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7039 if stack_parm is NULL.
7040 (assign_parm_setup_stack): Prefer SSA-assigned location.
7041 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7042 rtl before testing for pointer bounds. Special-case result_ptr.
7043 (expand_function_start): Maybe reset DECL_RTL of result.
7044 Prefer SSA-assigned location for result and static chain.
7045 Factor out DECL_RESULT and SET_DECL_RTL.
7046 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7047 anonymous SSA names. Use promote_ssa_mode.
7048 (get_temp_reg): Likewise.
7049 (remove_ssa_form): Adjust.
7050 * stor-layout.c (layout_decl): Don't set mem attributes of
7051 non-MEMs.
7052 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7053 and get its reg_usage for reg invalidation.
7054 (compute_bb_dataflow): Pass it insn.
7055 (emit_notes_in_bb): Likewise.
7056
7057 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7058
7059 * config/i386/i386.c (ix86_va_start): Remove
7060 unneeded !TARGET_64BIT check.
7061 (ix86_gimplify_va_arg): Ditto.
7062
7063 2015-07-24 Tom de Vries <tom@codesourcery.com>
7064
7065 * graphite-sese-to-poly.c (build_poly_scop): Always call
7066 rewrite_commutative_reductions_out_of_ssa.
7067
7068 2015-07-24 Tom de Vries <tom@codesourcery.com>
7069
7070 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7071 flag_associative_math to FLOAT_TYPE_P. Honour
7072 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7073
7074 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7075
7076 PR c++/64079
7077 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7078 and "%qD" in warning_at instead of "%q+D" in warning.
7079
7080 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7081
7082 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7083 (ix86_function_abi): Cleanup.
7084
7085 2015-07-24 Michael Darling <darlingm@gmail.com>
7086
7087 PR other/66259
7088 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7089 * configure: Likewise
7090 * configure.ac: Likewise
7091 * doc/install.texi: Likewise
7092 * doc/tm.texi: Likewise
7093 * doc/tm.texi.in: Likewise
7094
7095 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7096
7097 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7098 manually swapping values.
7099 * cse.c (fold_rtx): Likewise.
7100 * lra-eliminations.c (form_sum): Likewise.
7101
7102 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7103
7104 PR target/64003
7105 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7106 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7107 (*jcc_1, *jcc_2, jump, simple_return_internal)
7108 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7109 Set length_nobnd attribute instead of length attribute.
7110 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7111 (length_nobnd): Remove attribute.
7112 (length): Remove length_nobnd processing.
7113
7114 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7115
7116 * gimplify.c (omp_default_clause): New function. Reorganize flow
7117 for clarity. Broken out of ...
7118 (omp_notice_variable): ... here.
7119
7120 2015-07-24 Gary Funck <gary@intrepid.com>
7121
7122 PR middle-end/66984
7123 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7124 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7125
7126 2015-07-24 Tom de Vries <tom@codesourcery.com>
7127
7128 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7129 exit-first loop transform.
7130
7131 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7132
7133 PR 66714
7134 * tree-cfg.c (struct replace_decls_d): New struct.
7135 (replace_block_vars_by_duplicates_1): New function.
7136 (replace_block_vars_by_duplicates): Use it to replace the decls
7137 in the value exprs by duplicates.
7138
7139 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7140
7141 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7142 -shared, -symbolic, -rdynamic.
7143
7144 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7145
7146 PR target/65711
7147 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7148 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7149 %{!static.
7150
7151 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7152
7153 PR ipa/66566
7154 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7155 edge summary is available.
7156
7157 2015-07-24 Richard Biener <rguenther@suse.de>
7158
7159 * genmatch.c (struct dt_node): Add statistic fields.
7160 (dt_node::analyze): New method.
7161 (decision_tree::gen_gimple): Call analyze on the root node
7162 and print statistics to stderr.
7163 (decision_tree::gen_generic): Likewise.
7164
7165 2015-07-24 Richard Biener <rguenther@suse.de>
7166
7167 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7168 against the highest or lowest possible integer ...
7169 * match.pd: ... as patterns here.
7170
7171 2015-07-24 Richard Biener <rguenther@suse.de>
7172
7173 * genmatch.c (struct capture_info): Add same_as field.
7174 (capture_info::capture_info): Initialize same_as.
7175 (capture_info::walk_match): Compute same_as.
7176 (capture_info::walk_result): Compute stuff for the leader.
7177 (capture_info::walk_c_expr): Likewise.
7178 (dt_simplify::gen_1): Only look at leaders when deciding
7179 to force no side-effects or emit side-effects of omitted operands.
7180
7181 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7182
7183 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7184 reg note to the GPR -> FPR save instructions.
7185
7186 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7187
7188 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7189 cheaper.
7190 (s390_expand_insv): Don't generate risbg pattern for constant zero
7191 sources.
7192 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7193 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7194 splitters.
7195
7196 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7197
7198 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7199 with
7200 -mtune=
7201 (s390_issue_rate): Likewise.
7202 (s390_sched_reorder): Likewise.
7203 (s390_sched_variable_issue): Likewise.
7204 (s390_loop_unroll_adjust): Likewise.
7205 (s390_option_override): Likewise.
7206
7207 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7208
7209 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7210 processor capabilities with -march=native.
7211 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7212 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7213 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7214
7215 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7216
7217 * config/s390/s390.c (s390_issue_rate): Handle
7218 PROCESSOR_2094_Z9_EC.
7219 (s390_option_override): Likewise.
7220 (s390_adjust_priority): Likewise.
7221
7222 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7223
7224 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7225 when cross compiling.
7226
7227 2015-07-24 Richard Biener <rguenther@suse.de>
7228
7229 * fold-const.c (maybe_canonicalize_comparison_1): Move
7230 A code CST canonicalization ...
7231 * match.pd: ... to a pattern here.
7232
7233 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7234
7235 Revert:
7236 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7237 PR target/63521
7238 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7239 (HONOR_REG_ALLOC_ORDER): Define.
7240
7241 2015-07-24 Richard Biener <rguenther@suse.de>
7242
7243 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7244 * fold-const.c (fold_comparison): Move parameter does not
7245 alias &local simplification ...
7246 * match.pd: ... as a pattern here.
7247
7248 2015-07-24 Richard Biener <rguenther@suse.de>
7249
7250 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7251 valueizing call operands.
7252 * gimple-match-head.c (maybe_push_res_to_seq): Take
7253 number of call arguments from ops array.
7254 (do_valueize): New function.
7255 (gimple_simplify): Return true if valueization changed
7256 any operand even if the result didn't simplify further.
7257
7258 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7259
7260 PR middle-end/25530
7261 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7262
7263 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7264
7265 PR middle-end/25529
7266 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7267
7268 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7269
7270 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7271 instruction.
7272
7273 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7274
7275 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7276 clean up.
7277
7278 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7279
7280 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7281 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7282 targets here.
7283 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7284 ms_va_list_type_node initialization.
7285
7286 2015-07-23 Jeff Law <law@redhat.com>
7287
7288 PR lto/66752
7289 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7290 unable to find X NE 0 in the tables, return X as the simplified
7291 condition.
7292 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7293 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7294 to VISISTED_BBS. */
7295 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7296 after removing the control flow statement and unnecessary edges.
7297
7298 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7299
7300 * tree-pass.h (get_current_pass_name): Removed.
7301
7302 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7303
7304 PR rtl-optimization/64164
7305 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7306 * tree-ssa-copyrename.c: Removed.
7307 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7308 -ftree-coalesce-vars.
7309 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7310 * common.opt (ftree-copyrename): Ignore.
7311 (ftree-coalesce-inlined-vars): Likewise.
7312 * doc/invoke.texi: Remove the ignored options above.
7313 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7314 * tree-ssa-coalesce.h: ... here.
7315 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7316 headers required by it.
7317 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7318 across variables when flag_tree_coalesce_vars. Check register
7319 use and promoted modes to allow coalescing. Moved to
7320 tree-ssa-coalesce.c.
7321 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7322 with its member functions to tree-ssa-coalesce.c.
7323 (var_map_base_init): Likewise. Renamed to
7324 compute_samebase_partition_bases.
7325 (partition_view_normal): Drop want_bases parameter.
7326 (partition_view_bitmap): Likewise.
7327 * tree-ssa-live.h: Adjust declarations.
7328 * tree-ssa-coalesce.c: Include explow.h.
7329 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7330 default defs at the entry point.
7331 (dump_part_var_map): New.
7332 (compute_optimized_partition_bases): New, called by...
7333 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7334 of compute_samebase_partition_bases. Adjust.
7335 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7336 * cfgexpand.c (leader_merge): New.
7337 (get_rtl_for_parm_ssa_default_def): New.
7338 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7339 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7340 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7341 redundant MEM attr setting.
7342 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7343 from...
7344 (expand_one_stack_var): ... this. New wrapper to check and
7345 skip already expanded SSA partitions.
7346 (record_alignment_for_reg_var): New, factored out of...
7347 (expand_one_var): ... this.
7348 (expand_one_ssa_partition): New.
7349 (adjust_one_expanded_partition_var): New.
7350 (expand_one_register_var): Check and skip already expanded SSA
7351 partitions.
7352 (expand_used_vars): Don't create DECLs for anonymous SSA
7353 names. Expand all SSA partitions, then adjust all SSA names.
7354 (pass::execute): Replace the loops that set
7355 SA.partition_to_pseudo from partition leaders and cleared
7356 DECL_RTL for multi-location variables, and that which used to
7357 rename vars and set attrs, with one that clears DECL_RTL and
7358 checks that PARMs and RESULTs default_defs match DECL_RTL.
7359 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7360 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7361 * explow.c (promote_ssa_mode): New.
7362 * explow.h (promote_ssa_mode): Declare.
7363 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7364 * function.c: Include cfgexpand.h.
7365 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7366 (use_register_for_parm_decl): Wrapper for the above to
7367 special-case the result_ptr.
7368 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7369 (split_complex_args): Take assign_parm_data_all argument.
7370 Pass it to rtl_for_parm. Set up rtl and context for split
7371 args.
7372 (assign_parms_augmented_arg_list): Adjust.
7373 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7374 multiple locations. Recognize split complex args.
7375 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7376 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7377 (assign_parm_setup_block): Prefer SSA-assigned location.
7378 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7379 if stack_parm is NULL.
7380 (assign_parm_setup_stack): Prefer SSA-assigned location.
7381 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7382 rtl before testing for pointer bounds. Special-case result_ptr.
7383 (expand_function_start): Maybe reset DECL_RTL of result.
7384 Prefer SSA-assigned location for result and static chain.
7385 Factor out DECL_RESULT and SET_DECL_RTL.
7386 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7387 anonymous SSA names. Use promote_ssa_mode.
7388 (get_temp_reg): Likewise.
7389 (remove_ssa_form): Adjust.
7390 * stor-layout.c (layout_decl): Don't set mem attributes of
7391 non-MEMs.
7392 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7393 and get its reg_usage for reg invalidation.
7394 (compute_bb_dataflow): Pass it insn.
7395 (emit_notes_in_bb): Likewise.
7396
7397 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7398
7399 PR target/66217
7400 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7401 prototype.
7402 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7403 (rs6000_emit_2insn_and): Handle dot forms.
7404 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7405 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7406 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7407
7408 2015-07-23 Richard Biener <rguenther@suse.de>
7409
7410 * generic-match-head.c: Include cgraph.h.
7411 * gimple-match-head.c: Likewise.
7412 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7413 SSA names.
7414 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7415 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7416 pattern.
7417
7418 2015-07-23 Richard Biener <rguenther@suse.de>
7419
7420 * gimple-fold.c (fold_gimple_cond): Do not require folding
7421 results to pass valid_gimple_rhs_p.
7422 * tree-cfg.h (fold_cond_expr_cond): Remove.
7423 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7424 (make_edges): Do not call it.
7425 * tree-inline.c (tree_function_versioning): Likewise.
7426
7427 2015-07-23 Tom de Vries <tom@codesourcery.com>
7428
7429 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7430 vect_force_simple_reduction.
7431 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7432 (vect_is_simple_reduction_1): Add and handle
7433 need_wrapping_integral_overflow parameter.
7434 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7435 need_wrapping_integral_overflow parameter.
7436 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7437 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7438 decl.
7439
7440 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7441
7442 PR tree-optimization/66926,66951
7443 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7444 INNER_LOOP and fix up condition for renaming virtual operands.
7445
7446 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7447
7448 * combine.c (try_combine): Use std::swap instead of manually
7449 swapping.
7450
7451 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7452
7453 * config/mips/i6400.md: New file.
7454 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7455 (mips64r6): Likewise.
7456 (i6400): Define.
7457 * config/mips/mips-tables.opt: Regenerate.
7458 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7459 (mips_issue_rate): Add support for i6400.
7460 (mips_multipass_dfa_lookahead): Likewise.
7461 * config/mips/mips.h (TUNE_I6400): Define.
7462 * config/mips/mips.md: Include i6400.md.
7463 (processor): Add i6400.
7464 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7465
7466 2015-07-23 Richard Biener <rguenther@suse.de>
7467
7468 PR middle-end/66916
7469 * match.pd: Guard widen and sign-change comparison simplification
7470 with single_use.
7471
7472 2015-07-23 Richard Biener <rguenther@suse.de>
7473
7474 PR tree-optimization/66945
7475 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7476 ::before_dom_children): Force the propagators idea of
7477 non-executable edges to materialize, not what the folder
7478 chooses.
7479
7480 2015-07-23 Richard Biener <rguenther@suse.de>
7481
7482 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7483 (gimple_cond_make_true): Use 1 != 0.
7484
7485 2015-07-22 DJ Delorie <dj@redhat.com>
7486
7487 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7488 slashes.
7489
7490 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7491 (ashrhi3): Likewise.
7492 (lshrhi3): Likewise.
7493 (movhi): Take advantage of zero-extend to load small constants.
7494 (movpsi): Likewise.
7495 (and<mode>3): Likewise.
7496 (zero_extendqihi2): Likewise.
7497 (zero_extendqisi2): New.
7498 * config/msp430/constraints.md (N,O): New.
7499 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7500
7501 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7502
7503 PR target/66954
7504 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7505 to enum feature_priority and feature_list.
7506 (fold_builtin_cpu): Add F_AES to enum processor_features
7507 and isa_names_table.
7508
7509 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7510
7511 PR driver/66737
7512 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7513 for 64bit target only.
7514
7515 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7516
7517 * config/nvptx/nvptx.c: Expand some comments.
7518
7519 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7520
7521 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7522 (cortex_a53_advsimd): ...This.
7523
7524 2015-07-22 Richard Biener <rguenther@suse.de>
7525
7526 * genmatch.c (expr::gen_transform): Clarify error message
7527 and display location.
7528
7529 2015-07-22 Richard Biener <rguenther@suse.de>
7530
7531 * genmatch.c (struct operand): Add location member.
7532 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7533 constructors.
7534 (struct simplify): Remove match_location and result_location
7535 members.
7536 (elsehwere): Adjust.
7537
7538 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7539
7540 * config/mips/m5100.md: New file.
7541 * config/mips/mips-cpus.def (m5100, m5101): Define.
7542 * config/mips/mips-tables.opt: Regenerate.
7543 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7544 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7545 -march=m5101 to -mips32r5.
7546 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7547 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7548 !-msoft-float.
7549 * config/mips/mips.md: Include m5100.md.
7550 (processor): Add m5100.
7551 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7552
7553 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7554
7555 * config/mips/mips-cpus.def (interaptiv): Define.
7556 * config/mips/mips-tables.opt: Regenerate.
7557 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7558 -mips32r2.
7559 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7560 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7561
7562 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7563
7564 PR target/63521
7565 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7566 (HONOR_REG_ALLOC_ORDER): Define.
7567
7568 2015-07-22 Richard Biener <rguenther@suse.de>
7569
7570 PR tree-optimization/66952
7571 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7572 blocks we end up executing unconditionally reset all SSA
7573 info such as range and alignment.
7574 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7575 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7576
7577 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7578
7579 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7580 typo in attribute.
7581
7582 2015-07-22 Richard Biener <rguenther@suse.de>
7583
7584 * genmatch.c (parser::parse_result): Properly handle
7585 match with result operands and conditions.
7586
7587 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7588
7589 PR target/63870
7590 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7591 Add qualifier_struct_load_store_lane_index.
7592 (aarch64_types_loadstruct_lane_qualifiers): Use
7593 qualifier_struct_load_store_lane_index for lane index argument for
7594 last argument.
7595 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7596 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7597 (aarch64_simd_expand_args): Add new argument describing mode of
7598 builtin. Check lane bounds for arguments with
7599 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7600 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7601 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7602 (aarch64_simd_expand_builtin): Handle arguments with
7603 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7604 aarch64_simd_expand_args.
7605 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7606 vst[234]_lane with BUILTIN_VALLDIF.
7607 * config/aarch64/aarch64-simd.md:
7608 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7609 endianness reversal on lane index.
7610 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7611 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7612 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7613 (vec_store_lanesci_lane<mode>): Ditto.
7614 (vec_store_lanesxi_lane<mode>): Ditto.
7615 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7616 reversal of lane index.
7617 (aarch64_ld3_lane<mode>): Ditto.
7618 (aarch64_ld4_lane<mode>): Ditto.
7619 (aarch64_st2_lane<mode>): Ditto.
7620 (aarch64_st3_lane<mode>): Ditto.
7621 (aarch64_st4_lane<mode>): Ditto.
7622 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7623 to qmode. Add new mode parameter. Update uses.
7624 (__LD3_LANE_FUNC): Ditto.
7625 (__LD4_LANE_FUNC): Ditto.
7626 (__ST2_LANE_FUNC): Ditto.
7627 (__ST3_LANE_FUNC): Ditto.
7628 (__ST4_LANE_FUNC): Ditto.
7629
7630 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7631
7632 * doc/invoke.texi (Language Independent Options): Rename node to
7633 Diagnostic Message Formatting Options.
7634
7635 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7636
7637 PR ipa/66424.
7638 * lra-remat.c (operand_to_remat): Prevent using insns with input
7639 subregs processed separately by IRA.
7640
7641 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7642
7643 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7644 straight loops.
7645 (single_imm_use): Check for iterator node.
7646 (num_imm_uses): Likewise.
7647 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7648 (single_imm_use_1): Check for iterator node.
7649
7650 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7651 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7652
7653 * configure.ac: Add check for new options in isl-0.15.
7654 * config.in, configure: Rebuilt.
7655 * graphite-blocking.c: Include <isl/constraint.h>
7656 * graphite-interchange.c, graphite-poly.c: Likewise.
7657 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7658 * graphite.c: Likewise.
7659 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7660 <isl/union_set.h>.
7661 * graphite-dependences.c: Include <isl/constraint.h>.
7662 (max_number_of_out_dimensions): Returns isl_stat.
7663 (extend_schedule_1): Likewise
7664 (extend_schedule): Corresponding changes.
7665 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7666 <isl/union_set.h>.
7667 (getSingleMap): Change return type of isl_stat.
7668 (optimize_isl): Conditionally use
7669 isl_options_set_schedule_serialize_sccs.
7670 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7671 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7672
7673 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7674
7675 PR target/66956
7676 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7677 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7678
7679 2015-07-21 Richard Biener <rguenther@suse.de>
7680
7681 PR tree-optimization/66948
7682 * genmatch.c (capture_info::walk_match): Also recurse to
7683 captures. Properly compute expr state from captures of
7684 captures.
7685 * match.pd: Add single-use guards to
7686 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7687
7688 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7689
7690 * config/nvptx/mkoffload.c (process): Add static destructor call.
7691
7692 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7693
7694 PR middle-end/66915
7695 * match.pd (A - B -> A + (-B)): Don't allow folding
7696 when type if a fixed-point type.
7697
7698 2015-07-20 DJ Delorie <dj@redhat.com>
7699
7700 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7701 (iorqi3_real): Likewise for set1.
7702
7703 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7704
7705 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7706 for !TARGET_64BIT.
7707
7708 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7709
7710 * graphite-isl-ast-to-gimple.c:
7711 Refactor so that each function can access 'region'. This will help
7712 maintain a parameter rename_map within a region.
7713
7714 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7715
7716 * config/rs6000/rs6000.md (*lt0_disi): New.
7717
7718 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7719
7720 PR target/66217
7721 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7722 "available letters" comment.
7723 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7724 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7725 and_2rld_operand): Delete.
7726 (and_operand): Adjust.
7727 (rotate_mask_operator): New.
7728 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7729 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7730 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7731 extract_ME): Delete.
7732 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7733 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7734 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7735 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7736 rs6000_emit_2insn_and): New.
7737 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7738 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7739 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7740 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7741 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7742 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7743 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7744 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7745 rs6000_emit_2insn_and): New.
7746 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7747 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7748 handling.
7749 <NOT>: Don't fall through to next case.
7750 <AND>: Handle the various rotate-and-mask cases directly.
7751 <IOR>: Always cost as one insn.
7752 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7753 (and<mode>3): Adjust expander for the new patterns.
7754 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7755 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7756 (*and<mode>3_imm_dot_shifted): New.
7757 (*and<mode>3_mask): Delete, rewrite as ...
7758 (and<mode>3_mask): ... New.
7759 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7760 (andsi3_internal0_nomc): Delete.
7761 (*andsi3_internal6): Delete.
7762 (*and<mode>3_2insn): New.
7763 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7764 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7765 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7766 *insvdi_internal3): Delete.
7767 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7768 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7769 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7770 *ior<mode>_mask): New.
7771 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7772 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7773 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7774 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7775 Delete.
7776 (ashr<mode>3): Delete expander.
7777 (*ashr<mode>3): Rename to ...
7778 (ashr<mode>3): ... This.
7779 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7780 (*rotldi3_internal4, *rotldi3_internal5 and split,
7781 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7782 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7783 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7784 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7785 (splitter for loading a mask): Adjust.
7786 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7787
7788 2015-07-20 Marek Polacek <polacek@redhat.com>
7789
7790 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7791 output_add_clobbers, output_added_clobbers_hard_reg_p,
7792 gen_rtx_scratch): Remove declarations.
7793
7794 2015-07-20 Marek Polacek <polacek@redhat.com>
7795
7796 PR c++/55095
7797 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7798
7799 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7800
7801 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7802 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7803
7804 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7805
7806 * combine.c (combine_simplify_rtx): Move simplification step
7807 before various transformations/substitutions.
7808
7809 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7810
7811 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7812 (struct int_traits): Likewise.
7813
7814 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7815
7816 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7817 function to vmsdbgout_function_decl.
7818
7819 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7820
7821 PR target/66922
7822 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7823 from misaligned positions.
7824 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7825
7826 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7827
7828 PR middle-end/46851
7829 PR middle-end/60340
7830 * Makefile.in: Removed omega.o.
7831 * common.opt: Document flag fcheck-data-deps as deprecated.
7832 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7833 its associated params: omega-max-vars, omega-max-geqs,
7834 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7835 omega-max-keys, omega-eliminate-redundant-constraints.
7836 * doc/loop.texi: Remove all the section on Omega.
7837 * graphite-blocking.c: Include missing params.h: it used to be
7838 included through tree-data-ref.h and omega.h.
7839 * graphite-isl-ast-to-gimple.c: Same.
7840 * graphite-optimize-isl.c: Same.
7841 * graphite-sese-to-poly.c: Same.
7842 * graphite.c: Same.
7843 * omega.c: Remove.
7844 * omega.h: Remove.
7845 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7846 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7847 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7848 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7849 * passes.def: Remove pass_check_data_deps.
7850 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7851 (dump_conflict_function): Same.
7852 (dump_subscript): Same.
7853 (print_direction_vector): Same.
7854 (print_dir_vectors): Same.
7855 (print_lambda_vector): Same.
7856 (print_dist_vectors): Same.
7857 (dump_data_dependence_relation): Same.
7858 (dump_data_dependence_relations): Same.
7859 (dump_dist_dir_vectors): Same.
7860 (dump_ddrs): Same.
7861 (init_omega_eq_with_af): Removed.
7862 (omega_extract_distance_vectors): Removed.
7863 (omega_setup_subscript): Removed.
7864 (init_omega_for_ddr_1): Removed.
7865 (init_omega_for_ddr): Removed.
7866 (ddr_consistent_p): Removed.
7867 (compute_affine_dependence): Do not use omega to check data
7868 dependences.
7869 (compute_data_dependences_for_bb): Removed.
7870 (analyze_all_data_dependences): Removed.
7871 (tree_check_data_deps): Removed.
7872 * tree-data-ref.h: Do not include omega.h.
7873 (compute_data_dependences_for_bb): Removed.
7874 (tree_check_data_deps): Removed.
7875 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7876 (make_pass_check_data_deps): Removed.
7877 * tree-ssa-phiopt.c: Include params.h.
7878 * tree-vect-data-refs.c: Same.
7879 * tree-vect-slp.c: Same.
7880
7881 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7882
7883 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7884 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7885 (mem->fpreg splitters): Ditto.
7886 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7887 Disable DFmode for TARGET_64BIT.
7888
7889 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7890
7891 PR target/66906
7892 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7893 chain on the stack.
7894
7895 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7896
7897 * config/nvptx/mkoffload.c (process): Constify host data.
7898 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7899 Constify host data.
7900 (generate_host_descr_file): Likewise.
7901
7902 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7903 Sebastian Pop <s.pop@samsung.com>
7904
7905 PR middle-end/61929
7906 * graphite-dependences.c (add_pdr_constraints): Renamed
7907 pdr->extent to pdr->subscript_sizes.
7908 * graphite-interchange.c (build_linearized_memory_access): Add
7909 back all gcc_assert's that the "isl_int to isl_val conversion"
7910 patch has removed. Refactored.
7911 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7912 * graphite-poly.c (new_poly_dr): Same.
7913 (free_poly_dr): Same.
7914 * graphite-poly.h (struct poly_dr): Same.
7915 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7916 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7917 * graphite-scop-detection.h: Fix space.
7918 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7919 back all gcc_assert's removed by a previous patch.
7920 (wrap): Remove the_isl_ctx global variable that the same patch has
7921 added.
7922 (build_loop_iteration_domains): Same.
7923 (add_param_constraints): Same.
7924 (pdr_add_data_dimensions): Same. Refactored.
7925 (build_poly_dr): Renamed extent to subscript_sizes.
7926
7927 2015-07-17 Marek Polacek <polacek@redhat.com>
7928
7929 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7930 * match.pd: ... here.
7931
7932 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7933
7934 * config/nvptx/mkoffload.c (process): Constify target data.
7935 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7936 Constify target data.
7937 (generate_target_offloadend_file): Likewise.
7938
7939 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7940
7941 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7942 to allow renaming of PHI arguments on edges incoming from outer
7943 loop header, add corresponding check before start PHI iterator.
7944 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7945 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7946 with true force_vectorize. Set-up dominator for outer loop too.
7947 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7948 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7949 was marked with force_vectorize and has restricted cfg.
7950 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7951 inner loop.
7952 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7953 do peeling for outer loops.
7954
7955 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7956 Matthias Klose <doko@ubuntu.com>
7957
7958 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7959 build-sysroot, sysroot from the `Miscenalleous configure options' to
7960 the `Directories' section and strip trailing `/' from with_sysroot.
7961 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7962 * configure: Regenerated.
7963
7964 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7965
7966 PR target/66824
7967 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7968 (TARGET_HARD_DF_REGS): Ditto.
7969 (TARGET_HARD_XF_REGS): Ditto.
7970 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7971 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7972 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7973 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7974 (*movsf_internal): Add alternatives 16 and 17. Enable
7975 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7976
7977 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7978
7979 PR rtl-optimization/66891
7980 * calls.c (expand_call): Wrap precompute_register_parameters with
7981 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7982
7983 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7984
7985 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7986 Define target data struct and initialize it.
7987
7988 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7989
7990 PR rtl-optimization/66626
7991 * ira.h (emit-rtl.h): Include.
7992 (non_spilled_static_chain_regno_p): New.
7993 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7994 unless it is non spilled static chain pseudo.
7995 (assign_hard_rego): Spill memory profitable allocno unless it is
7996 non spilled static chain pseudo.
7997 (allocno_spill_priority_compare): Put non spilled static chain
7998 pseudo at the end of sorted array.
7999 (improve_allocation): Do nothing if we have static chain and
8000 non-local goto.
8001 (allocno__priority_compare_func): Put non spilled static chain
8002 pseudo at the beginning of sorted array.
8003 (move_spill_restore): Ignore non spilled static chain pseudo.
8004 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8005 to non spilled static chain pseudo.
8006 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8007 pseudo at the beginning of sorted array.
8008 (spill_for): Spill non spilled static chain pseudo last.
8009 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8010 check for equivalence.
8011
8012 2015-07-16 Martin Liska <mliska@suse.cz>
8013
8014 PR ipa/66896.
8015 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8016 dst_ctx if it does not exist.
8017
8018 2015-07-16 Martin Liska <mliska@suse.cz>
8019
8020 * hash-set.h (remove): New function.
8021 (iterator): New iteration class for hash_set.
8022
8023 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8024
8025 * genattrtab.c (make_canonical): Add a file_location parameter.
8026 Use fatal_at rather than fatal.
8027 (get_attr_value): Likewise. Update call to make_canonical.
8028 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8029 (make_internal_attr): Update calls accordingly.
8030
8031 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8032
8033 * read-md.h (message_with_line, error_with_line): Delete.
8034 * read-md.c (message_with_line, error_with_line): Delete.
8035 * gensupport.h: Include read-md.h.
8036 (md_rtx_info): New structure.
8037 (read_md_rtx): Use it. Return a bool success value.
8038 * gensupport.c (read_md_rtx): Likewise.
8039 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8040 (main): Update after interface changes.
8041 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8042 (main): Update after interface changes.
8043 * genattrtab.c (insn_code_number): Delete.
8044 (optimize_attrs): Add a max_insn_code parameter and use it instead
8045 of insn_code_number.
8046 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8047 Use *_at rather than *_with_line functions.
8048 (gen_insn): Likewise.
8049 (gen_delay): Likewise.
8050 (gen_insn_reserv): Likewise.
8051 (gen_bypass): Take an md_rtx_info rather than an rtx.
8052 (main): Update after interface changes. Use a local max_insn_code
8053 variable instead of insn_code_number.
8054 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8055 an rtx. Use fatal_at rather than fatal.
8056 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8057 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8058 (gen_absence_set, gen_final_absence_set, gen_automaton)
8059 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8060 (main): Update after interface changes.
8061 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8062 and code number.
8063 (main): Update after interface changes.
8064 * genconditions.c (main): Use new read_md_rtx interface.
8065 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8066 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8067 (main): Update after interface changes.
8068 * genemit.c (insn_code_number, insn_index_number): Delete.
8069 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8070 Use fatal_at rather than fatal.
8071 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8072 rather than fatal.
8073 (gen_split): Likewise.
8074 (main): Update after interface changes.
8075 * genextract.c (line_no): Delete.
8076 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8077 Update call to walk_rtx.
8078 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8079 rather than message_with_line.
8080 (walk_rtx): Add an md_rtx_info argument. Update call to
8081 VEC_safe_set_locstr.
8082 (main): Update after interface changes.
8083 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8084 and lineno. Use error_at rather than separate message_with_line
8085 calls and have_error assignments.
8086 (main): Update after interface changes.
8087 * genmddump.c (main): Use new read_md_rtx interface.
8088 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8089 (main): Update after interface changes.
8090 * genoutput.c (next_code_number): Delete.
8091 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8092 (gen_peephole, gen_expand, gen_split): Likewise.
8093 (note_constraint): Likewise. Use *_at rather than *_with_line
8094 functions.
8095 (main): Update after interface changes.
8096 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8097 rtx and lineno.
8098 (main): Update after interface changes.
8099 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8100 than an rtx and lineno.
8101 (process_define_constraint): Likewise.
8102 (process_define_register_constraint): Likewise.
8103 (main): Update after interface changes.
8104 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8105 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8106 Use *_at rather than *_with_line functions.
8107 (match_pattern_2): Likewise.
8108 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8109 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8110 Use *_at rather than *_with_line functions.
8111 * gentarget-def.c (add_insn): New function.
8112 (main): Use it. Use new read_md_rtx interface.
8113
8114 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8115
8116 * gensupport.h (compute_test_codes): Take a file_location rather
8117 than a line number.
8118 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8119 rather than *_with_line functions.
8120 (process_define_predicate): Update call to compute_test_codes.
8121 * genpreds.c (validate_exp): Take a file_location rather than a
8122 line number. Use *_at functions rather than *_with_line functions.
8123 (process_define_predicate): Update call to validate_exp.
8124 (constraint_data): Replace lineno field with a file_location.
8125 (add_constraint): Take a file_location rather than a line number.
8126 Use *_at functions rather than *_with_line functions. Fix error
8127 message for address constraints. Update after changes to
8128 validate_exp, constraint_data and compute_test_codes.
8129 (process_define_constraint): Update accordingly.
8130 (process_define_register_constraint): Likewise.
8131
8132 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8133
8134 * genoutput.c (data): Use a file_location to record the source
8135 position.
8136 (nothing): Delete.
8137 (idata, idata_end): Remove initialization.
8138 (constraint_data): Replace lineno with a file_location.
8139 (output_insn_data): Update after changes to data.
8140 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8141 (scan_operands): Likewise, using *_at rather than *_with_line
8142 functions.
8143 (process_template): Likewise.
8144 (validate_insn_alternatives): Likewise.
8145 (validate_insn_operands): Likewise.
8146 (validate_optab_operands): Likewise.
8147 (init_insn_for_nothing): Initialize idata and idata_end.
8148 (note_constraint): Update after changes to constraint_data,
8149 using at rather than with_line functions.
8150 (mdep_constraint_len): Take a file_location rather than a
8151 line number. Use at rather than with_line functions.
8152
8153 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8154
8155 * read-md.h (fatal_at): Declare.
8156 * read-md.c (fatal_at): New function.
8157 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8158 to record the source position.
8159 (check_attr_test): Take a file_location instead of a line number.
8160 Use fatal_at instead of fatal.
8161 (check_attr_value): Update after above changes, using "at"
8162 rather than "with_line" reporting functions.
8163 (convert_set_attr_alternative): Likewise.
8164 (gen_attr): Likewise.
8165 (check_defs): Likewise. Don't assign to read_md_filename.
8166 (gen_insn): Update initialization after above changes.
8167 (gen_delay): Likewise.
8168 (write_insn_cases): Print the filename for a define_peephole.
8169 (gen_insn_reserv): Take a line number as argument and update
8170 the call to check_attr_test.
8171 (main): Pass a line number to gen_insn_reserv.
8172
8173 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8174
8175 * read-md.h (file_location): New structure.
8176 (directive_handler_t): Take a file_location rather than a line number.
8177 (message_at, error_at): Declare.
8178 (read_skip_construct): Delete.
8179 * read-md.c (message_with_line_1): Replace with...
8180 (message_at_1): ...this new function.
8181 (message_at, error_at): New functions.
8182 (message_with_line, error_with_line): Update to use message_at_1.
8183 (handle_enum): Take a file_location rather than a line number
8184 and use error_at for error reporting.
8185 (handle_include): Likewise.
8186 (read_skip_construct): Likewise. Make static.
8187 (handle_file): Update after above changes. Pass a file_location
8188 rather than a line number to handle_directive.
8189 * gensupport.c (queue_elem): Replace separate filename and lineno
8190 with a file_location.
8191 (queue_pattern): Replace filename and lineno arguments with a
8192 file_location. Update after change to queue_elem.
8193 (process_define_predicate): Replace lineno argument with a
8194 file_location and use error_at for error reporting. Update
8195 after above changes.
8196 (process_rtx): Likewise.
8197 (subst_pattern_match): Likewise.
8198 (get_alternatives_number): Likewise.
8199 (alter_predicate_for_insn): Likewise.
8200 (rtx_handle_directive): Likewise.
8201 (is_predicable): Update after above changes, using error_at rather
8202 than error_with_line.
8203 (has_subst_attribute): Likewise.
8204 (identify_predicable_attribute): Likewise.
8205 (alter_attrs_for_subst_insn): Likewise.
8206 (process_one_cond_exec): Likewise.
8207 (process_substs_on_one_elem): Likewise.
8208 (process_define_subst): Likewise.
8209 (check_define_attr_duplicates): Likewise.
8210 (read_md_rtx): Update after change to queue_elem.
8211
8212 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8213
8214 * genoutput.c (next_index_number): Delete.
8215 (data): Remove index_number.
8216 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8217 (main): Remove manipulation of next_index_number.
8218
8219 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8220
8221 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8222 (make_canonical): Likewise.
8223
8224 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8225
8226 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8227 instead of adjust_address_nv.
8228 (restore_stack_nonlocal): Likewise.
8229 (nonlocal_goto): Likewise.
8230
8231 2015-07-16 Tom de Vries <tom@codesourcery.com>
8232
8233 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8234 not have a corresponding loop header phi.
8235
8236 2015-07-16 Tom de Vries <tom@codesourcery.com>
8237
8238 * tree-parloops.c (create_loads_for_reductions): Handle case that
8239 reduction is unused.
8240
8241 2015-07-16 Richard Biener <rguenther@suse.de>
8242
8243 PR tree-optimization/66894
8244 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8245 about deriving NE_EXPR from truncated values.
8246
8247 2015-07-16 Martin Liska <mliska@suse.cz>
8248
8249 * alloc-pool.h
8250 (object_allocator): Add new class.
8251 (pool_allocator::initialize): Use the underlying class.
8252 (pool_allocator::allocate): Likewise.
8253 (pool_allocator::remove): Likewise.
8254 (operator new): A new generic allocator.
8255 * asan.c (struct asan_mem_ref): Remove unused members.
8256 (asan_mem_ref_new): Replace new operator with
8257 object_allocator::allocate.
8258 (free_mem_ref_resources): Change deallocation.
8259 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8260 with object_allocator.
8261 * config/sh/sh.c (add_constant): Replace new operator with
8262 object_allocator::allocate.
8263 (sh_reorg): Change call to a release method.
8264 * cselib.c (struct elt_list): Remove unused members.
8265 (new_elt_list): Replace new operator with
8266 object_allocator::allocate.
8267 (new_elt_loc_list): Likewise.
8268 (new_cselib_val): Likewise.
8269 (unchain_one_elt_list): Change delete operator with remove method.
8270 (unchain_one_elt_loc_list): Likewise.
8271 (unchain_one_value): Likewise.
8272 (cselib_finish): Release newly added static allocators.
8273 * cselib.h (struct cselib_val): Remove unused members.
8274 (struct elt_loc_list): Likewise.
8275 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8276 object_allocator.
8277 * df-scan.c (struct df_scan_problem_data): Likewise.
8278 (df_scan_alloc): Likewise.
8279 * df.h (struct dataflow): Likewise.
8280 * dse.c (struct read_info_type): Likewise.
8281 (struct insn_info_type): Likewise.
8282 (struct dse_bb_info_type): Likewise.
8283 (struct group_info): Likewise.
8284 (struct deferred_change): Likewise.
8285 (get_group_info): Likewise.
8286 (delete_dead_store_insn): Likewise.
8287 (free_read_records): Likewise.
8288 (replace_read): Likewise.
8289 (check_mem_read_rtx): Likewise.
8290 (scan_insn): Likewise.
8291 (dse_step1): Likewise.
8292 (dse_step7): Likewise.
8293 * et-forest.c (struct et_occ): Remove unused members.
8294 (et_new_occ): Use allocate instead of new operator.
8295 (et_new_tree): Likewise.
8296 (et_free_tree): Call release method explicitly.
8297 (et_free_tree_force): Likewise.
8298 (et_free_pools): Likewise.
8299 (et_split): Use remove instead of delete operator.
8300 * et-forest.h (struct et_node): Remove unused members.
8301 * ipa-cp.c: Change pool_allocator to object_allocator.
8302 * ipa-inline-analysis.c: Likewise.
8303 * ipa-profile.c: Likewise.
8304 * ipa-prop.c: Likewise.
8305 * ipa-prop.h: Likewise.
8306 * ira-build.c (initiate_cost_vectors): Cast return value.
8307 (ira_allocate_cost_vector): Likewise.
8308 * ira-color.c (struct update_cost_record): Remove unused members.
8309 * lra-int.h (struct lra_live_range): Likewise.
8310 (struct lra_copy): Likewise.
8311 (struct lra_insn_reg): Likewise.
8312 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8313 * lra.c (new_insn_reg): Replace new operator with allocate method.
8314 (free_insn_regs): Same for operator delete.
8315 (finish_insn_regs): Release new static allocator.
8316 (finish_insn_recog_data): Likewise.
8317 (lra_free_copies): Replace delete operator with remove method.
8318 (lra_create_copy): Replace operator new with allocate method.
8319 (invalidate_insn_data_regno_info): Same for remove method.
8320 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8321 (free_debug_insn_changes): Replace delete operator with remove method.
8322 (replace_oldest_value_reg): Replace operator new with allocate method.
8323 (pass_cprop_hardreg::execute): Release new static variable.
8324 * sched-deps.c (sched_deps_init): Change pool_allocator to
8325 object_allocator.
8326 * sel-sched-ir.c: Likewise.
8327 * sel-sched-ir.h: Likewise.
8328 * stmt.c (expand_case): Likewise.
8329 (expand_sjlj_dispatch_table): Likewise.
8330 * tree-sra.c (struct access): Remove unused members.
8331 (struct assign_link): Likewise.
8332 (sra_deinitialize): Release newly added static pools.
8333 (create_access_1):Replace operator new with allocate method.
8334 (build_accesses_from_assign): Likewise.
8335 (create_artificial_child_access): Likewise.
8336 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8337 pool_allocator to object_allocator.
8338 * tree-ssa-pre.c: Likewise.
8339 * tree-ssa-reassoc.c: Likewise.
8340 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8341 * tree-ssa-strlen.c: Likewise.
8342 * tree-ssa-structalias.c: Likewise.
8343 * var-tracking.c (onepart_pool_allocate): New function.
8344 (unshare_variable): Use the newly added function.
8345 (variable_merge_over_cur): Likewise.
8346 (variable_from_dropped): Likewise.
8347 (variable_was_changed): Likewise.
8348 (set_slot_part): Likewise.
8349 (emit_notes_for_differences_1): Likewise.
8350 (vt_finalize): Release newly added static pools.
8351
8352 2015-07-16 Martin Jambor <mjambor@suse.cz>
8353
8354 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8355 all uses. Fix two typos in its general comment.
8356 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8357
8358 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8359
8360 * config/i386/linux-common.h (LINK_MPX): New.
8361 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8362 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8363 indicating '-z bndplt' support by linker.
8364 * configure: Regenerate.
8365 * config.in: Regenerate.
8366
8367 2015-07-16 Richard Biener <rguenther@suse.de>
8368
8369 * fold-const.c (fold_widened_comparison): Remove.
8370 (fold_sign_changed_comparison): Likewise.
8371 (fold_comparison): Move widened and sign-changed comparison
8372 simplification ...
8373 * match.pd: ... to patterns here.
8374 * generic-match-head.c: Include target.h.
8375 * gimple-match-head.c: Likewise.
8376
8377 2015-07-16 Richard Biener <rguenther@suse.de>
8378
8379 * tree-ssa-dom.c (dom_valueize): New function.
8380 (record_temporary_equivalences): Also record equivalences
8381 for dominating stmts that have uses of equivalences we are
8382 about to record.
8383
8384 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8385
8386 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8387 add_autoinc_candidates.
8388 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8389 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8390 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8391 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8392 Call new function.
8393 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8394 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8395 Remove parameter struct iv*. Call add_autoinc_candidates here.
8396 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8397 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8398 Call new function.
8399 (find_iv_candidates): Call new functions.
8400
8401 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8402
8403 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8404 uninitialized-variable warning.
8405
8406 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8407
8408 PR target/65249
8409 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8410 when the destination is R0.
8411
8412 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8413
8414 PR target/66866
8415 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8416 * config/i386/i386.c (ix86_expand_pextr): New function.
8417 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8418 for non-lowpart subregs.
8419 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8420 (insv<mode>): Use SWI248 mode iterator.
8421 (insv<mode>_1): Ditto.
8422
8423 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8424 Sebastian Pop <s.pop@samsung.com>
8425
8426 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8427 iterator to use_stmt.
8428
8429 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8430 Sebastian Pop <s.pop@samsung.com>
8431
8432 * graphite-scop-detection.c (build_scops_1): Discard scops for
8433 which entry==exit.
8434
8435 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8436 Sebastian Pop <s.pop@samsung.com>
8437
8438 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8439 case of a return statement in scop.
8440
8441 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8442 Sebastian Pop <s.pop@samsung.com>
8443
8444 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8445 INTEGER_TYPE parameters.
8446 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8447 VECTOR_CST in scan_tree_for_params.
8448 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8449
8450 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8451
8452 * gimple-pretty-print.h: Don't include pretty-print.h.
8453 * tree-streamer.h: Don't include lto-streamer.h.
8454 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8455 * gimple-streamer-in.c: Remove redundant includes.
8456 * gimple-streamer-out.c: Likewise.
8457 * ipa-devirt.c: Likewise.
8458 * ipa-icf.c: Likewise.
8459 * ipa-inline-analysis.c: Likewise.
8460 * ipa-polymorphic-call.c: Likewise.
8461 * ipa-profile.c: Likewise.
8462 * ipa-prop.c: Likewise.
8463 * ipa-pure-const.c: Likewise.
8464 * lto-cgraph.c: Likewise.
8465 * lto-streamer-in.c: Likewise.
8466 * lto-streamer-out.c: Likewise.
8467 * lto-streamer.c: Likewise.
8468 * tree-streamer-in.c: Likewise.
8469 * tree-streamer-out.c: Likewise.
8470 * tree-streamer.c: Likewise.
8471
8472 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8473
8474 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8475 include input.h.
8476 * opts.c: Remove multiline #include comment.
8477
8478 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8479
8480 * config/nvptx/mkoffload.c (process): Add C++ protection to
8481 emitted code.
8482
8483 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8484
8485 PR target/66854
8486 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8487 null before IEEE 128-bit floating point support patch.
8488
8489 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8490
8491 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8492 for (!c) != {0,...,0} ? a : b for vector modes.
8493
8494 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8495 Martin Jambor <mjambor@suse.cz>
8496
8497 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8498 struct func_body_info* instead of struct ipa_node_params*, expecting
8499 fbi->info to be filled in. Replace throughout. Adjust call to
8500 ipa_load_from_parm_agg.
8501 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8502 instead of struct ipa_node_params*. Adjust calls to other functions
8503 so that they pass either fbi or fbi->info.
8504 (set_switch_stmt_execution_predicate): Likewise.
8505 (will_be_nonconstant_predicate): Likewise.
8506 (compute_bb_predicates): Likewise.
8507 (estimate_function_body_sizes): Move asserts earlier. Fill in
8508 struct func_body_info, replace parms_info with fbi.info. Adjust
8509 calls to functions that now accept struct func_body_info.
8510 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8511 (struct func_body_info): Likewise.
8512 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8513 remove static. Adjust callers.
8514 (ipa_load_from_parm_agg): Remove.
8515 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8516 (func_body_info): Likewise.
8517 (ipa_load_from_parm_agg): Adjust prototype.
8518
8519 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8520
8521 * gensupport.c (rtx_handle_directive): Adjust.
8522 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8523 instead of expr list rtx.
8524 (add_define_attr_for_define_subst): Likewise.
8525 (add_define_subst_attr): Likewise.
8526 (read_subst_mapping): Likewise.
8527 (read_rtx): Likewise.
8528 * rtl.h (read_rtx): Adjust.
8529
8530 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8531
8532 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8533
8534 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8535
8536 PR target/58066
8537 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8538 (*tls_local_dynamic_base_64_<mode>): Ditto.
8539 (*tls_local_dynamic_base_64_largepic): Ditto.
8540 (tls_global_dynamic_64_<mode>): Update expander pattern.
8541 (tls_local_dynamic_base_64_<mode>): Ditto.
8542
8543 2015-07-15 Richard Biener <rguenther@suse.de>
8544
8545 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8546 and bool_var == 1 -> bool_var simplifications ...
8547 * match.pd: ... to patterns here. Factor out negate_expr_p
8548 cases from the A - B -> A + (-B) patterns as negate_expr_p
8549 predicate and add a -(A + B) -> (-B) - A pattern.
8550
8551 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8552
8553 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8554
8555 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8556 Robert Suchanek <robert.suchanek@imgtec.com>
8557
8558 * config/mips/mips.c (mips_int_mask): New enum.
8559 (mips_shadow_set): Likewise.
8560 (int_mask): New variable.
8561 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8562 (machine_function): Add int_mask and use_shadow_register_set.
8563 (mips_attribute_table): Add attribute handlers for interrupt and
8564 use_shadow_register_set.
8565 (mips_interrupt_mask): New static function.
8566 (mips_handle_interrupt_attr): Likewise.
8567 (mips_handle_use_shadow_register_set_attr): Likewise.
8568 (mips_use_shadow_register_set): Change return type to enum
8569 mips_shadow_set. Add argument handling for use_shadow_register_set
8570 attribute.
8571 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8572 compare with mips_shadow_set enum.
8573 (mips_compute_frame_info): Add interrupt mask and
8574 use_shadow_register_set to per-function information structure.
8575 Add a stack slot for EPC unconditionally.
8576 (mips_expand_prologue): Compare use_shadow_register_set value
8577 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8578 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8579 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8580 copying the stack pointer from the shadow register set.
8581 * config/mips/mips.h (SR_IM0): New define.
8582 * config/mips/mips.md (mips_rdpgpr): Rename to...
8583 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8584 * doc/extend.texi (Declaring Attributes of Functions): Document
8585 optional arguments for interrupt and use_shadow_register_set
8586 attributes.
8587
8588 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8589
8590 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8591 interrupt attribute.
8592 (mips_expand_prologue): Disable the floating point unit in an ISR.
8593 * config/mips/mips.h (SR_COP1): New define.
8594
8595 2015-07-15 Richard Biener <rguenther@suse.de>
8596
8597 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8598 to tell how many tokens to peek ahead (default 1).
8599 (parser::eat_token, parser::eat_ident): Return token consumed.
8600 (parser::parse_result): Parse new switch statement.
8601 * match.pd: Use case statements where appropriate.
8602
8603 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8604
8605 PR rtl-optimization/58066
8606 * calls.c (expand_call): Precompute register parameters before stack
8607 alignment is performed.
8608
8609 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8610
8611 PR rtl-optimization/66838
8612 * postreload.c (reload_cse_move2add): Also process
8613 CALL_INSN_FUNCTION_USAGE when resetting information of
8614 call-clobbered registers.
8615
8616 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8617 Cesar Philippidis <cesar@codesourcery.com>
8618 Chung-Lin Tang <cltang@codesourcery.com>
8619
8620 * config/nios2/constraints.md (U, v): New constraints.
8621 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8622 (ldstex_memory_operand): New.
8623 * config/nios2/sync.md: New file.
8624 * config/nios2/nios2.md (unspecv): Add new builtin function
8625 UNSPECV codes.
8626 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8627 (top-level): Include sync.md.
8628 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8629 new builtins.
8630 (N2_BUILTINS): Add arch field setting, add new builtins.
8631 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8632 for arch field.
8633 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8634 Also handle ldex/stex/ldsex/stsex builtins.
8635 (nios2_expand_rdprs_builtin): New function.
8636 (nios2_expand_cache_builtin): New function.
8637 (nios2_expand_wrpie_builtin): New function.
8638 (nios2_expand_eni_builtin): New function.
8639 (nios2_expand_builtin): Add arch field handling and new builtin
8640 cases.
8641 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8642 new builtins.
8643 * doc/md.texi (Machine Constraints): Document U and v constraints.
8644
8645 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8646 Cesar Philippidis <cesar@codesourcery.com>
8647 Chung-Lin Tang <cltang@codesourcery.com>
8648
8649 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8650 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8651 callee_save_reg_size and uses_anonymous_args fields.
8652 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8653 (nios2_create_cfa_notes): New function.
8654 (nios2_adjust_stack): New function for adjusting stack.
8655 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8656 Use nios2_adjust_stack.
8657 (nios2_expand_epilogue): Likewise.
8658 (nios2_expand_return): New function.
8659 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8660 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8661 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8662 * config/nios2/nios2.md (return): Use nios2_expand_return.
8663
8664 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8665 Cesar Philippidis <cesar@codesourcery.com>
8666 Chung-Lin Tang <cltang@codesourcery.com>
8667
8668 * config/nios2/predicates.md (pop_operation): New.
8669 (ldwm_operation, stwm_operation): New.
8670 (nios2_hard_register_operand): New.
8671 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8672 (ldstwm_operation_p): Declare.
8673 (gen_ldstwm_peep): Declare.
8674 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8675 (base_reg_adjustment_p): New.
8676 (pop_operation_p): New.
8677 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8678 (nios2_ldstwm_regset_p): New.
8679 (ldstwm_operation_p): New.
8680 (gen_ldst): New.
8681 (nios2_ldst_parallel): New.
8682 (struct ldswm_operand): Declare.
8683 (compare_ldstwm_operands): New.
8684 (can_use_cdx_ldstw): New.
8685 (gen_ldstwm_peep): New.
8686 * config/nios2/nios2-ldstwm.sml: New.
8687 * config/nios2/nios2.md: Include ldstwm.md.
8688 * config/nios2/ldstwm.md: Generated.
8689
8690 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8691 Cesar Philippidis <cesar@codesourcery.com>
8692 Chung-Lin Tang <cltang@codesourcery.com>
8693
8694 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8695 (REG_ALLOC_ORDER): Define.
8696 (ADJUST_REG_ALLOC_ORDER): Define.
8697 (HONOR_REG_ALLOC_ORDER): Define.
8698 (CDX_REG_P): Define.
8699 (ANDCLEAR_INT): Define.
8700 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8701 (nios2_label_align): Declare.
8702 (nios2_cdx_narrow_form_p): Declare.
8703 (nios2_adjust_reg_alloc_order): Declare.
8704 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8705 operation.
8706 (nios2_large_unspec_reloc_p): New function, split from...
8707 (nios2_legitimate_pic_operand_p): ...here.
8708 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8709 (nios2_print_operand_punct_valid_p): New.
8710 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8711 (split_mem_address): New.
8712 (split_alu_insn): New.
8713 (cdxreg): New.
8714 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8715 (enum nios2_add_insn_kind): New.
8716 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8717 (nios2_add_insn_classify): New.
8718 (nios2_add_insn_asm): New.
8719 (nios2_cdx_narrow_form_p): New.
8720 (label_align, min_labelno, max_labelno): New.
8721 (nios2_reorg): New.
8722 (nios2_label_align): New.
8723 (nios2_adjust_reg_alloc_order): New.
8724 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8725 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8726 * config/nios2/constraints.md (P): New constraint.
8727 * config/nios2/predicates.md (const_and_operand): New.
8728 (and_operand): New.
8729 (stack_memory_operand): New.
8730 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8731 (length): Update to use nios2_cdx_narrow_form_p().
8732 (type): Add new insn type values.
8733 (control, alu, st, ld, shift): Update insn reservations with
8734 new insn type values.
8735 (*high, *lo_sum): Define new insn patterns for constant generation.
8736 (movqi_internal, movhi_internal, movsi_internal): Reduce
8737 alternatives, update asm template to handle CDX variants, update
8738 type attributes.
8739 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8740 template, update type attributes.
8741 (extendhisi2, extendqi<mode>2): Likewise.
8742 (addsi3): Change to use function for asm string.
8743 (subsi3): Add CDX notation to asm template, update type attributes.
8744 (negsi3, one_cmplsi3): Likewise.
8745 (andsi3): New pattern, specialized from logical patterns.
8746 (<code>si3): Remove and case, combine alternatives, update asm
8747 template.
8748 (<shift_op>si3): Add CDX notation, update type attributes.
8749 (rotrsi3): Update type attribute.
8750 (*merge, extzv, insv): New insn patterns.
8751 (return): Change to define_expand.
8752 (simple_return): Add CDX notation, update type attributes.
8753 (indirect_jump): Add CDX notation.
8754 (jump): Update asm cases, update length attribute expression.
8755 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8756 (nios2_cbranch): Update asm cases and length attribute expression
8757 to handle CDX variants.
8758 (nios2_cmp<code>): Update asm template.
8759 (nop): Add CDX notation, update type attributes.
8760 (trap): Add CDX notation.
8761 (ctrapsi4): Update asm cases and length attribute expression to
8762 handle CDX variant.
8763 * doc/md.texi (Machine Constraints): Document P constraint.
8764
8765 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8766 Cesar Philippidis <cesar@codesourcery.com>
8767 Chung-Lin Tang <cltang@codesourcery.com>
8768
8769 * config/nios2/nios2.h (SMALL_INT12): New macro.
8770 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8771 (nios2_valid_addr_expr_p): Use it.
8772 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8773 with implicit "io" instructions on R2.
8774 * config/nios2/constraints.md (w): New constraint.
8775 * config/nios2/predicates.md (ldstio_memory_operand): New.
8776 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8777 operand predicate and constraint.
8778 (ld<bh>io_signed, st<bhw>io>): Likewise.
8779 * doc/md.texi (Machine Constraints): Document w constraint.
8780
8781 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8782 Cesar Philippidis <cesar@codesourcery.com>
8783 Chung-Lin Tang <cltang@codesourcery.com>
8784
8785 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8786 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8787 Nios II architecture level.
8788 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8789 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8790 (OPTION_DEFAULT_SPECS): Define.
8791 (ASM_SPEC): Add -march= spec strings.
8792 * config/nios2/nios2.c (nios2_option_override): Check for
8793 conflicts involving new options.
8794 * config.gcc (nios2*-*-*): Support --with-arch=.
8795 * doc/invoke.texi (Option Summary, Nios II Options): Document
8796 -march=, -mbmx, and -mcdx.
8797
8798 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8799
8800 PR rtl-optimization/66626
8801 * lra-constraints.c (lra_constraints): Prevent equivalence
8802 substitution for static chain pseudo in functions with nonlocal
8803 goto.
8804
8805 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8806
8807 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8808 (nios2_emit_stack_limit_check): Add size parameter. Handle
8809 -fstack-limit-symbol as well as -fstack-limit-register.
8810 (nios2_expand_prologue): Emit only a single stack limit check,
8811 even if multiple stack adjustments are required.
8812 (nios2_option_override): Diagnose unsupported combination of -fpic
8813 and -stack-limit-symbol.
8814
8815 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8816
8817 * Makefile.in (top_srcdir): New.
8818 * configure.ac: Use AM_ZLIB.
8819 * configure: Regeneated.
8820
8821 2015-07-14 Matthias Klose <doko@ubuntu.com>
8822
8823 PR target/66840
8824 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8825
8826 2015-07-14 Richard Biener <rguenther@suse.de>
8827
8828 PR tree-optimization/66863
8829 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8830 what we record for conversion use stmt lhs inequalities.
8831
8832 2015-07-14 Richard Biener <rguenther@suse.de>
8833
8834 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8835 (decision_tree::gen_gimple): Likewise.
8836
8837 2015-07-14 Tom de Vries <tom@codesourcery.com>
8838
8839 * gcc.c (greater_than_spec_func): Declare forward.
8840 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8841 -ftree-parallelize-loops={0,1}.
8842 (static_spec_functions): Add greater_than_spec_func function with name
8843 "gt".
8844 (greater_than_spec_func): New function.
8845
8846 2015-07-14 Richard Biener <rguenther@suse.de>
8847
8848 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8849 wideing type conversion case from record_equivalences_from_incoming_edge
8850 and use record_equality to record equivalences.
8851 (record_equivalences_from_incoming_edge): Call
8852 record_temporary_equivalences.
8853
8854 2015-07-14 Richard Biener <rguenther@suse.de>
8855
8856 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8857 (struct if_expr): New.
8858 (struct with_expr): Likewise.
8859 (is_a_helper): Add helpers for if_expr and with_expr.
8860 (struct simplify): Add simplify_kind enum and member. Remove
8861 ifexpr_vec member.
8862 (simplify::simplify): Adjust.
8863 (lower_commutative): Adjust.
8864 (lower_opt_convert): Likewise.
8865 (lower_cond): Likewise.
8866 (replace_id): Handle with_expr and if_expr.
8867 (lower_for): Adjust.
8868 (dt_simplify::gen_1): New recursive worker, split out from ...
8869 (dt_simplify::gen): ... here. Deal with if and with expansion
8870 recursively.
8871 (capture_info::capture_info): Take context argument
8872 (capture_info::walk_result): Only analyze specific result.
8873 (parser::parse_result): New function.
8874 (parser::parse_simplify): Adjust to parse ifs with then end
8875 else case.
8876 (parser::parse_if): Simplify.
8877 (parser::parse_pattern): Pass down simplify kind.
8878 * match.pd: Convert if structure to new syntax.
8879
8880 2015-07-13 Marek Polacek <polacek@redhat.com>
8881
8882 * rtl.c (rtx_equal_p_cb): Fix typo.
8883
8884 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8885
8886 * omega.h: Don't include config.h, don't include params.h again if
8887 omega.h has already been included.
8888 * graphite-poly.h: Include sese.h.
8889 * graphite.c: Don't include sese.h, remove needless includes and
8890 minimize includes outside #ifdef HAVE_isl block.
8891 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8892 and wrap entire file in #ifdef HAVE_isl
8893 * graphite-dependences.c: Likewise.
8894 * graphite-interchange.c: Likewise.
8895 * graphite-isl-ast-to-gimple.c: Likewise.
8896 * graphite-optimize-isl.c: Likewise.
8897 * graphite-poly.c: Likewise.
8898 * graphite-scop-detection.c: Likewise.
8899 * graphite-sese-to-poly.c: Likewise.
8900
8901 2015-07-13 Tom de Vries <tom@codesourcery.com>
8902
8903 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8904
8905 2015-07-13 Renlin Li <renlin.li@arm.com>
8906
8907 PR rtl/66556
8908 * simplify-rtx.c (simplify_const_relational_operation): Add
8909 side_effects_p checks.
8910
8911 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8912
8913 * bitmap.h: Fix double word typos.
8914 * builtins.c: Same.
8915 * calls.c: Same.
8916 * cfgloopmanip.c: Same.
8917 * cgraph.c: Same.
8918 * cgraph.h: Same.
8919 * cgraphclones.c: Same.
8920 * combine.c: Same.
8921 * config/aarch64/aarch64-protos.h: Same.
8922 * config/aarch64/aarch64.c: Same.
8923 * config/aarch64/aarch64.md: Same.
8924 * config/arm/arm.md: Same.
8925 * config/arm/arm1020e.md: Same.
8926 * config/arm/arm1026ejs.md: Same.
8927 * config/arm/arm926ejs.md: Same.
8928 * config/arm/fa526.md: Same.
8929 * config/arm/fa606te.md: Same.
8930 * config/arm/fa626te.md: Same.
8931 * config/arm/fa726te.md: Same.
8932 * config/arm/fmp626.md: Same.
8933 * config/darwin.c: Same.
8934 * config/epiphany/epiphany.c: Same.
8935 * config/frv/frv.c: Same.
8936 * config/ft32/ft32.c: Same.
8937 * config/gnu-user.h: Same.
8938 * config/h8300/constraints.md: Same.
8939 * config/i386/i386.c: Same.
8940 * config/i386/i386.md: Same.
8941 * config/iq2000/iq2000.md: Same.
8942 * config/mips/mips.c: Same.
8943 * config/mmix/mmix.md: Same.
8944 * config/moxie/moxie.c: Same.
8945 * config/nds32/nds32.md: Same.
8946 * config/pa/pa.h: Same.
8947 * config/rs6000/aix.h: Same.
8948 * config/rs6000/rs6000.h: Same.
8949 * config/sh/sh.c: Same.
8950 * config/tilegx/tilegx.md: Same.
8951 * config/tilepro/gen-mul-tables.cc: Same.
8952 * cse.c: Same.
8953 * dbxout.c: Same.
8954 * doc/invoke.texi: Same.
8955 * dse.c: Same.
8956 * dwarf2out.c: Same.
8957 * final.c: Same.
8958 * gcc.c: Same.
8959 * genmatch.c: Same.
8960 * gimplify.c: Same.
8961 * hash-table.h: Same.
8962 * internal-fn.c: Same.
8963 * ipa-cp.c: Same.
8964 * ipa-devirt.c: Same.
8965 * ipa-icf.c: Same.
8966 * ipa-icf.h: Same.
8967 * ipa-profile.c: Same.
8968 * ipa-prop.c: Same.
8969 * ipa-prop.h: Same.
8970 * ira.c: Same.
8971 * omp-low.c: Same.
8972 * reg-stack.c: Same.
8973 * regcprop.c: Same.
8974 * reorg.c: Same.
8975 * rtl.h: Same.
8976 * sbitmap.h: Same.
8977 * tree-eh.c: Same.
8978 * tree-inline.c: Same.
8979 * tree-sra.c: Same.
8980 * tree-ssa-dom.c: Same.
8981 * tree-ssa-loop-ivopts.c: Same.
8982 * tree-ssa-structalias.c: Same.
8983 * tree-ssa-tail-merge.c: Same.
8984 * tree-ssa-ter.c: Same.
8985 * tree-ssa-threadupdate.c: Same.
8986 * tree-ssa-uninit.c: Same.
8987 * tree-ssanames.c: Same.
8988 * tree-vect-loop-manip.c: Same.
8989 * tree-vrp.c: Same.
8990 * tree.c: Same.
8991 * valtrack.c: Same.
8992 * vec.h: Same.
8993
8994 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8995
8996 PR middle-end/66726
8997 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8998 tree_ssa_phiopt_worker): Call it.
8999
9000 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9001
9002 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9003 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9004 REG_EQUAL note.
9005
9006 2015-07-11 Marek Polacek <polacek@redhat.com>
9007
9008 PR middle-end/66353
9009 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9010 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9011 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9012 rather than bb_has_abnormal_call_pred.
9013 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9014 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9015 rather than bb_has_abnormal_call_pred.
9016
9017 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9018
9019 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9020 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9021 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9022 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9023 v850_legitimate_address_p): New functions.
9024 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9025
9026 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9027
9028 PR target/66819
9029 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9030 indirect sibcall with register arguments if register available
9031 for argument passing.
9032 (init_cumulative_args): Set cfun->machine->arg_reg_available
9033 to (cum->nregs > 0) or to true if function has a variable
9034 argument list.
9035 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9036 to false if cum->nregs <= 0.
9037 * config/i386/i386.h (machine_function): Add arg_reg_available.
9038
9039 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9040
9041 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9042 and gen_higpart instead of gen_rtx_SUBREG.
9043 * config/i386/i386.md
9044 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9045 (read-modify peephole2): Use gen_lowpart instead of
9046 gen_rtx_SUBREG for operand 5.
9047
9048 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9049
9050 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9051 generated files.
9052 * config/tilepro/mul-tables.c: Regenerate.
9053 * config/tilegx/mul-tables.c: Regenerate.
9054
9055 2015-07-10 Richard Biener <rguenther@suse.de>
9056
9057 * fold-const.c (distribute_bit_expr): Remove.
9058 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9059 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9060 to A & (B | C) and simplifying A << C1 << C2 to ...
9061 * match.pd: ... patterns here.
9062
9063 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9064
9065 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9066 Mark mem as READONLY and NOTRAP for PIC symbol.
9067
9068 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9069
9070 * gimple-predict.h: New file.
9071 (gimple_predict_predictor, gimple_predict_set_predictor,
9072 gimple_predict_outcome, gimple_predict_set_outcome,
9073 gimple_build_predict): Relocate here.
9074 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9075 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9076 gimple-predict.h.
9077 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9078 * basic-block.h: Don't include cfghooks.h.
9079 * backend.h: Don't include predict.h.
9080 * cfghooks.h: Include predict.h.
9081 * gimple-pretty-print.c: Include gimple-predict.h.
9082 * gimplify.c: Likwise.
9083 * predict.c: Adjust includes.
9084 * tree-inline.c: Likewise.
9085 * asan.c: Likewise.
9086 * auto-inc-dec.c: Likewise.
9087 * auto-profile.c: Likewise.
9088 * bb-reorder.c: Likewise.
9089 * builtins.c: Likewise.
9090 * caller-save.c: Likewise.
9091 * calls.c: Likewise.
9092 * cfganal.c: Likewise.
9093 * cfgbuild.c: Likewise.
9094 * cfg.c: Likewise.
9095 * cfgcleanup.c: Likewise.
9096 * cfgexpand.c: Likewise.
9097 * cfghooks.c: Likewise.
9098 * cfgloopanal.c: Likewise.
9099 * cfgloop.c: Likewise.
9100 * cfgloopmanip.c: Likewise.
9101 * cfgrtl.c: Likewise.
9102 * cgraph.c: Likewise.
9103 * cgraphunit.c: Likewise.
9104 * combine.c: Likewise.
9105 * cprop.c: Likewise.
9106 * cse.c: Likewise.
9107 * dce.c: Likewise.
9108 * dojump.c: Likewise.
9109 * dse.c: Likewise.
9110 * except.c: Likewise.
9111 * expmed.c: Likewise.
9112 * expr.c: Likewise.
9113 * final.c: Likewise.
9114 * fold-const.c: Likewise.
9115 * function.c: Likewise.
9116 * fwprop.c: Likewise.
9117 * gcc-plugin.h: Likewise.
9118 * gcse.c: Likewise.
9119 * genattrtab.c: Likewise.
9120 * genemit.c: Likewise.
9121 * gengtype.c: Likewise.
9122 * genopinit.c: Likewise.
9123 * genoutput.c: Likewise.
9124 * genpreds.c: Likewise.
9125 * genrecog.c: Likewise.
9126 * gimple-fold.c: Likewise.
9127 * gimple-iterator.c: Likewise.
9128 * gimple-ssa-isolate-paths.c: Likewise.
9129 * gimple-ssa-strength-reduction.c: Likewise.
9130 * graph.c: Likewise.
9131 * graphite-blocking.c: Likewise.
9132 * graphite.c: Likewise.
9133 * graphite-dependences.c: Likewise.
9134 * graphite-interchange.c: Likewise.
9135 * graphite-isl-ast-to-gimple.c: Likewise.
9136 * graphite-optimize-isl.c: Likewise.
9137 * graphite-poly.c: Likewise.
9138 * graphite-scop-detection.c: Likewise.
9139 * graphite-sese-to-poly.c: Likewise.
9140 * haifa-sched.c: Likewise.
9141 * ifcvt.c: Likewise.
9142 * internal-fn.c: Likewise.
9143 * ipa-cp.c: Likewise.
9144 * ipa-profile.c: Likewise.
9145 * ipa-split.c: Likewise.
9146 * ipa-utils.c: Likewise.
9147 * ira-build.c: Likewise.
9148 * ira-color.c: Likewise.
9149 * ira-conflicts.c: Likewise.
9150 * ira-costs.c: Likewise.
9151 * ira-emit.c: Likewise.
9152 * ira-lives.c: Likewise.
9153 * jump.c: Likewise.
9154 * loop-doloop.c: Likewise.
9155 * loop-init.c: Likewise.
9156 * loop-invariant.c: Likewise.
9157 * loop-unroll.c: Likewise.
9158 * lower-subreg.c: Likewise.
9159 * lra-assigns.c: Likewise.
9160 * lra.c: Likewise.
9161 * lra-coalesce.c: Likewise.
9162 * lra-constraints.c: Likewise.
9163 * lra-lives.c: Likewise.
9164 * lto-cgraph.c: Likewise.
9165 * lto-streamer-in.c: Likewise.
9166 * mode-switching.c: Likewise.
9167 * modulo-sched.c: Likewise.
9168 * omp-low.c: Likewise.
9169 * optabs.c: Likewise.
9170 * passes.c: Likewise.
9171 * postreload.c: Likewise.
9172 * postreload-gcse.c: Likewise.
9173 * profile.c: Likewise.
9174 * recog.c: Likewise.
9175 * regstat.c: Likewise.
9176 * reload1.c: Likewise.
9177 * reorg.c: Likewise.
9178 * rtlanal.c: Likewise.
9179 * sched-ebb.c: Likewise.
9180 * sel-sched-ir.c: Likewise.
9181 * sese.c: Likewise.
9182 * shrink-wrap.c: Likewise.
9183 * simplify-rtx.c: Likewise.
9184 * stmt.c: Likewise.
9185 * store-motion.c: Likewise.
9186 * tracer.c: Likewise.
9187 * trans-mem.c: Likewise.
9188 * tree-call-cdce.c: Likewise.
9189 * tree-cfg.c: Likewise.
9190 * tree-cfgcleanup.c: Likewise.
9191 * tree-chkp.c: Likewise.
9192 * tree-complex.c: Likewise.
9193 * tree-eh.c: Likewise.
9194 * tree-if-conv.c: Likewise.
9195 * tree-loop-distribution.c: Likewise.
9196 * tree-outof-ssa.c: Likewise.
9197 * tree-parloops.c: Likewise.
9198 * tree-predcom.c: Likewise.
9199 * tree-pretty-print.c: Likewise.
9200 * tree-profile.c: Likewise.
9201 * tree-sra.c: Likewise.
9202 * tree-ssa.c: Likewise.
9203 * tree-ssa-coalesce.c: Likewise.
9204 * tree-ssa-dce.c: Likewise.
9205 * tree-ssa-dom.c: Likewise.
9206 * tree-ssa-forwprop.c: Likewise.
9207 * tree-ssa-ifcombine.c: Likewise.
9208 * tree-ssa-loop-ch.c: Likewise.
9209 * tree-ssa-loop-im.c: Likewise.
9210 * tree-ssa-loop-ivcanon.c: Likewise.
9211 * tree-ssa-loop-ivopts.c: Likewise.
9212 * tree-ssa-loop-manip.c: Likewise.
9213 * tree-ssa-loop-prefetch.c: Likewise.
9214 * tree-ssa-loop-unswitch.c: Likewise.
9215 * tree-ssa-math-opts.c: Likewise.
9216 * tree-ssa-phiopt.c: Likewise.
9217 * tree-ssa-pre.c: Likewise.
9218 * tree-ssa-reassoc.c: Likewise.
9219 * tree-ssa-sink.c: Likewise.
9220 * tree-ssa-tail-merge.c: Likewise.
9221 * tree-ssa-threadedge.c: Likewise.
9222 * tree-ssa-threadupdate.c: Likewise.
9223 * tree-switch-conversion.c: Likewise.
9224 * tree-tailcall.c: Likewise.
9225 * tree-vect-data-refs.c: Likewise.
9226 * tree-vect-loop.c: Likewise.
9227 * tree-vect-loop-manip.c: Likewise.
9228 * tree-vectorizer.c: Likewise.
9229 * tree-vrp.c: Likewise.
9230 * ubsan.c: Likewise.
9231 * value-prof.c: Likewise.
9232 * varasm.c: Likewise.
9233 * var-tracking.c: Likewise.
9234 * config/aarch64/aarch64-builtins.c: Likewise.
9235 * config/aarch64/aarch64.c: Likewise.
9236 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9237 * config/alpha/alpha.c: Likewise.
9238 * config/arc/arc.c: Likewise.
9239 * config/arm/arm.c: Likewise.
9240 * config/avr/avr.c: Likewise.
9241 * config/bfin/bfin.c: Likewise.
9242 * config/c6x/c6x.c: Likewise.
9243 * config/cr16/cr16.c: Likewise.
9244 * config/cris/cris.c: Likewise.
9245 * config/darwin.c: Likewise.
9246 * config/darwin-c.c: Likewise.
9247 * config/epiphany/epiphany.c: Likewise.
9248 * config/epiphany/mode-switch-use.c: Likewise.
9249 * config/epiphany/resolve-sw-modes.c: Likewise.
9250 * config/fr30/fr30.c: Likewise.
9251 * config/frv/frv.c: Likewise.
9252 * config/ft32/ft32.c: Likewise.
9253 * config/h8300/h8300.c: Likewise.
9254 * config/i386/i386.c: Likewise.
9255 * config/i386/winnt.c: Likewise.
9256 * config/ia64/ia64.c: Likewise.
9257 * config/iq2000/iq2000.c: Likewise.
9258 * config/lm32/lm32.c: Likewise.
9259 * config/m32c/m32c.c: Likewise.
9260 * config/m32r/m32r.c: Likewise.
9261 * config/m68k/m68k.c: Likewise.
9262 * config/mcore/mcore.c: Likewise.
9263 * config/mep/mep.c: Likewise.
9264 * config/microblaze/microblaze.c: Likewise.
9265 * config/mips/mips.c: Likewise.
9266 * config/mmix/mmix.c: Likewise.
9267 * config/mn10300/mn10300.c: Likewise.
9268 * config/moxie/moxie.c: Likewise.
9269 * config/msp430/msp430.c: Likewise.
9270 * config/nds32/nds32.c: Likewise.
9271 * config/nds32/nds32-cost.c: Likewise.
9272 * config/nds32/nds32-fp-as-gp.c: Likewise.
9273 * config/nds32/nds32-intrinsic.c: Likewise.
9274 * config/nds32/nds32-isr.c: Likewise.
9275 * config/nds32/nds32-md-auxiliary.c: Likewise.
9276 * config/nds32/nds32-memory-manipulation.c: Likewise.
9277 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9278 * config/nds32/nds32-predicates.c: Likewise.
9279 * config/nios2/nios2.c: Likewise.
9280 * config/nvptx/nvptx.c: Likewise.
9281 * config/pa/pa.c: Likewise.
9282 * config/pdp11/pdp11.c: Likewise.
9283 * config/rl78/rl78.c: Likewise.
9284 * config/rs6000/rs6000.c: Likewise.
9285 * config/rx/rx.c: Likewise.
9286 * config/s390/s390.c: Likewise.
9287 * config/sh/sh.c: Likewise.
9288 * config/sh/sh-mem.cc: Likewise.
9289 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9290 * config/sh/sh_treg_combine.cc: Likewise.
9291 * config/sparc/sparc.c: Likewise.
9292 * config/spu/spu.c: Likewise.
9293 * config/stormy16/stormy16.c: Likewise.
9294 * config/tilegx/tilegx.c: Likewise.
9295 * config/tilepro/tilepro.c: Likewise.
9296 * config/v850/v850.c: Likewise.
9297 * config/vax/vax.c: Likewise.
9298 * config/visium/visium.c: Likewise.
9299 * config/xtensa/xtensa.c: Likewise.
9300
9301 2015-07-10 Richard Biener <rguenther@suse.de>
9302
9303 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9304 (decision_tree::gen_gimple): Likewise.
9305 (decision_tree::gen_generic): Likewise.
9306
9307 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9308
9309 PR target/66813
9310 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9311 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9312
9313 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9314
9315 PR middle-end/66820
9316 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9317 or ORT_TASK contexts.
9318 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9319 is non-zero.
9320
9321 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9322
9323 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9324 above function.
9325
9326 2015-07-10 Tom de Vries <tom@codesourcery.com>
9327
9328 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9329 insert nit + 1 bound.
9330
9331 2015-07-10 Richard Biener <rguenther@suse.de>
9332
9333 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9334 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9335 (if_convertible_loop_p_1): For this always compute bb predicates.
9336 (if_convertible_loop_p): And free them.
9337
9338 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9339
9340 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9341 in dump message.
9342
9343 2015-07-10 Richard Biener <rguenther@suse.de>
9344
9345 PR tree-optimization/66823
9346 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9347 inverted predicate.
9348
9349 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9350
9351 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9352 to handle mips[32|64]r3 and mips[32|64]r5.
9353
9354 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9355
9356 PR middle-end/66633
9357 * tree-nested.c (get_static_chain): Or in a flag into
9358 info->static_chain_added.
9359 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9360 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9361 2015-07-01 changes.
9362 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9363 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9364 add it to clauses.
9365
9366 PR tree-optimization/66718
9367 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9368 field.
9369 (vect_simd_lane_linear): New function.
9370 (vectorizable_simd_clone_call): Support using linear arguments for
9371 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9372
9373 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9374
9375 PR target/66821
9376 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9377
9378 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9379
9380 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9381 Use machine mode, not enum machine_mode in the prototype.
9382
9383 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9384 classify 128-bit floating point support.
9385 (FLOAT128_IBM_P): Likewise.
9386 (FLOAT128_VECTOR_P): Likewise.
9387 (FLOAT128_2REG_P): Likewise.
9388 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9389 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9390 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9391 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9392
9393 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9394 tests against TFmode/TDmode, since those modes do not use VSX
9395 addresses.
9396 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9397 support.
9398 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9399 tests against TFmode, etc.
9400 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9401 (reg_offset_addressing_ok_p): Likewise.
9402 (rs6000_legitimate_offset_address_p): Likewise.
9403 (rs6000_legitimize_address): Likewise.
9404 (rs6000_legitimize_reload_address): Likewise.
9405 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9406 TDmode to use the new helper macros, which will include IFmode and
9407 KFmode.
9408 (rs6000_emit_move): Likewise.
9409 (rs6000_darwin64_record_arg_recurse): Likewise.
9410 (print_operand): Likewise.
9411 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9412 that uses a single vector register as a vector and not as a
9413 floating point register in terms of the calling sequence.
9414 (rs6000_discover_homogeneous_aggregate): Likewise.
9415 (rs6000_return_in_memory): Likewise.
9416 (init_cumulative_args): Likewise.
9417 (rs6000_function_arg_boundary): Likewise.
9418 (rs6000_function_arg_advance_1): Likewise.
9419 (rs6000_function_arg): Likewise.
9420 (rs6000_pass_by_reference): Likewise.
9421 (rs6000_gimplify_va_arg): Likewise.
9422 (rs6000_secondary_reload_memory): Use machine_mode not enum
9423 machine mode.
9424 (rs6000_split_multireg_move): Use new helper macros.
9425 (spe_func_has_64bit_regs_p): Likewise.
9426 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9427 (output_toc): Use new helper macros.
9428 (rs6000_register_move_cost): Likewise.
9429 (rs6000_function_value): Add IEEE 128-bit floating point calling
9430 sequence support.
9431 (rs6000_libcall_value): Likewise.
9432 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9433 floating point support.
9434 (rs6000_vector_mode_supported_p): Likewise.
9435
9436 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9437
9438 PR rtl-optimization/66782
9439 * lra-int.h (struct lra_insn_recog_data): Add comment about
9440 clobbered hard regs for arg_hard_regs.
9441 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9442 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9443 Add condition for processing used hard regs.
9444 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9445 Process clobbered hard regs.
9446
9447 2015-07-09 Michael Matz <matz@suse.de>
9448
9449 * genmatch.c (fprintf_indent): New function.
9450 (operand::gen_transform): Add indent parameter.
9451 (expr::gen_transform, c_expr::gen_transform,
9452 capture::gen_transform): Ditto and use fprintf_indent.
9453 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9454 (dt_operand::gen, dt_operand::gen_predicate,
9455 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9456 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9457 (decision_tree::gen_gimple): Adjust calls and indent generated
9458 code.
9459 (decision_tree::gen_generic): Ditto.
9460 (write_predicate): Ditto.
9461
9462 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9463
9464 PR target/66814
9465 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9466 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9467 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9468 {GENERAL,SSE,MMX}_REG_P where appropriate.
9469
9470 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9471
9472 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9473 * builtins.c: Adjust includes.
9474 * gimple.c: Likewise.
9475 * ipa-icf.c: Likewise.
9476 * lto-opts.c: Likewise.
9477 * ipa-reference.c: Likewise.
9478 * lto-section-out.c: Likewise.
9479 * lto-streamer-in.c: Likewise.
9480 * lto-streamer-out.c: Likewise.
9481 * opts-global.c: Likewise.
9482 * symtab.c: Likewise.
9483 * tree-chkp.c: Likewise.
9484 * tree-ssa-live.c: Likewise.
9485 * tree-streamer-in.c: Likewise.
9486 * tree-streamer-out.c: Likewise.
9487 * config/darwin.c: Likewise.
9488 * config/i386/winnt.c: Likewise.
9489
9490 2015-07-09 Richard Biener <rguenther@suse.de>
9491
9492 * genmatch.c (struct expr): Add force_single_use flag.
9493 (expr::expr): Add copy constructor.
9494 (capture_info::walk_match): Gather force_single_use captures.
9495 (expr::gen_transform): Use possibly NULLified sequence.
9496 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9497 seq if any constrained expr is not single-use.
9498 (parser::parse_expr): Refactor to allow multiple flags. Handle
9499 's' flag to force an expression have a single-use if the pattern
9500 simplifies to more than one statement.
9501 * match.pd: Convert most single_use conditionals to :s flags.
9502
9503 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9504
9505 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9506 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9507 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9508
9509 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9510
9511 * flags.h: Don't include flag-types.h or options.h.
9512 * opts-common.c: Adjust includes.
9513 * opts-global.c: Likewise.
9514 * common/config/epiphany/epiphany-common.c: Likewise.
9515
9516 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9517
9518 PR target/66818
9519 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9520 for IA MCU.
9521
9522 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9523
9524 PR target/66817
9525 * config/i386/i386.c (ix86_return_in_memory): Return true
9526 if int_size_in_bytes returns negative for IA MCU.
9527
9528 2015-07-09 Marek Polacek <polacek@redhat.com>
9529
9530 PR tree-optimization/66718
9531 * Makefile.in (OBJS): Add gimple-laddress.o.
9532 * passes.def: Schedule pass_laddress.
9533 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9534 * tree-pass.h (make_pass_laddress): Declare.
9535 * gimple-laddress.c: New file.
9536
9537 2015-07-09 Richard Biener <rguenther@suse.de>
9538
9539 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9540
9541 2015-07-09 Richard Biener <rguenther@suse.de>
9542
9543 PR tree-optimization/66807
9544 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9545
9546 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9547
9548 * function.c (stack_protect_epilogue): Use if rather than switch for
9549 check targetm.have_stack_protect_test.
9550
9551 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9552
9553 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9554 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9555 * config/arc/arc.h: Likewise.
9556 * config/arm/arm.h: Likewise.
9557 * config/bfin/bfin.h: Likewise.
9558 * config/epiphany/epiphany.h: Likewise.
9559 * config/frv/frv.h: Likewise.
9560 * config/ia64/ia64.h: Likewise.
9561 * config/iq2000/iq2000.h: Likewise.
9562 * config/lm32/lm32.h: Likewise.
9563 * config/m32r/m32r.h: Likewise.
9564 * config/mcore/mcore.h: Likewise.
9565 * config/mep/mep.h: Likewise.
9566 * config/microblaze/microblaze.h: Likewise.
9567 * config/mips/mips.h: Likewise.
9568 * config/mmix/mmix.h: Likewise.
9569 * config/mn10300/mn10300.h: Likewise.
9570 * config/nds32/nds32.h: Likewise.
9571 * config/nios2/nios2.h: Likewise.
9572 * config/pa/pa.h: Likewise.
9573 * config/rl78/rl78.h: Likewise.
9574 * config/sh/sh.h: Likewise.
9575 * config/sparc/sparc.h: Likewise.
9576 * config/stormy16/stormy16.h: Likewise.
9577 * config/tilegx/tilegx.h: Likewise.
9578 * config/tilepro/tilepro.h: Likewise.
9579 * config/v850/v850.h: Likewise.
9580 * config/xtensa/xtensa.h: Likewise.
9581 * doc/tm.texi: Regenerate.
9582 * doc/tm.texi.in: Adjust.
9583 * combine.c (simplify_set): Likewise.
9584 (simplify_comparison): Likewise.
9585 * expr.c (store_constructor): Likewise.
9586 * internal-fn.c (expand_arith_overflow): Likewise.
9587 * reload.c (push_reload): Likewise.
9588 (find_reloads): Likewise.
9589 (find_reloads_subreg_address): Likewise.
9590 * reload1.c (eliminate_regs_1): Likewise.
9591 * rtlanal.c (nonzero_bits1): Likewise.
9592 (num_sign_bit_copies1): Likewise.
9593 * simplify-rtx.c (simplify_truncation): Likewise.
9594
9595 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9596
9597 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9598 of AUTO_INC_DEC with the preprocessor.
9599 * combine.c (combine_instructions): Likewise.
9600 (can_combine_p): Likewise.
9601 (try_combine): Likewise.
9602 * emit-rtl.c (try_split): Likewise.
9603 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9604 * lower-subreg.c (resolve_simple_move): Likewise.
9605 * lra.c (update_inc_notes): Likewise.
9606 * recog.c (asm_operand_ok): Likewise.
9607 (constrain_operands): Likewise.
9608 * regrename.c (scan_rtx_address): Likewise.
9609 * reload.c (update_auto_inc_notes): Likewise.
9610 (reg_inc_found_and_valid_p): Likewise.
9611 * reload1.c (reload): Likewise.
9612 (emit_input_reload_insns): Likewise.
9613 (delete_output_reload): Likewise.
9614 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9615 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9616
9617 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9618
9619 * rtl.h: Always define AUTO_INC_DEC.
9620 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9621 * combine.c (combine_instructions): Likewise.
9622 (can_combine_p): Likewise.
9623 (try_combine): Likewise.
9624 * emit-rtl.c (try_split): Likewise.
9625 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9626 * lower-subreg.c (resolve_simple_move): Likewise.
9627 * lra.c (update_inc_notes): Likewise.
9628 * recog.c (asm_operand_ok): Likewise.
9629 (constrain_operands): Likewise.
9630 * regrename.c (scan_rtx_address): Likewise.
9631 * reload.c (update_auto_inc_notes): Likewise.
9632 (find_equiv_reg): Likewise.
9633 * reload1.c (reload): Likewise.
9634 (reload_as_needed): Likewise.
9635 (choose_reload_regs): Likewise.
9636 (emit_input_reload_insns): Likewise.
9637 (delete_output_reload): Likewise.
9638 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9639 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9640
9641 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9642
9643 * combine.c (can_combine_def_p): Don't check the value of
9644 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9645 (combinable_i3pat): Likewise.
9646 (mark_used_regs_combine): Likewise.
9647 * regrename.c (rename_chains): Likewise.
9648 * reload.c (find_reloads_address): Likewise.
9649 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9650
9651 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9652
9653 * combine.c (update_rsp_from_reg_equal): Don't check if
9654 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9655 (reg_nonzero_bits_for_combine): Likewise.
9656 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9657 1.
9658 * config/frv/frv.h: Likewise.
9659 * config/lm32/lm32.h: Likewise.
9660 * config/mep/mep.h: Likewise.
9661 * config/mips/mips.h: Likewise.
9662 * config/rs6000/rs6000.h: Likewise.
9663 * config/sh/sh.h: Likewise.
9664 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9665 * config/tilepro/tilepro.h: Likewise.
9666 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9667 * doc/tm.texi: Regenerate.
9668 * doc/tm.texi.in: Adjust.
9669 * rtlanal.c (nonzero_bits1): Likewise.
9670
9671 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9672
9673 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9674 with the preprocessor.
9675 (combine_instructions): Likewise.
9676 (try_combine): Likewise.
9677 (subst): Likewise.
9678 (distribute_notes): Likewise.
9679
9680 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9681
9682 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9683 defined.
9684 (simplify_set): Likewise.
9685 * cse.c (cse_insn): Likewise.
9686 * fold-const.c (fold_single_bit_test): Likewise.
9687 (fold_unary_loc): Likewise.
9688 * postreload.c (reload_cse_simplify_set): Likewise.
9689 (reload_cse_simplify_operands): Likewise.
9690
9691 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9692
9693 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9694 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9695
9696 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9697
9698 PR target/66746
9699 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9700 __iamcu__ is defined.
9701
9702 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9703
9704 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9705
9706 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9707
9708 PR target/66523
9709 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9710 names from preservation.
9711
9712 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9713
9714 PR target/66806
9715 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9716 change for IAMCU.
9717 (function_arg_advance_32): Don't pass vectors in registers for
9718 IAMCU.
9719 (function_arg_32): Likewise.
9720 (ix86_return_in_memory): Don't return vectors in registers for
9721 IAMCU.
9722
9723 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9724
9725 PR middle-end/66334
9726 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9727 hard regno live at the start of BB with incoming abnormal edges.
9728 * lra-lives.c (process_bb_lives): Ditto.
9729
9730 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9731
9732 PR libgomp/65099
9733 * config/nvptx/mkoffload.c (main): Create an offload image only in
9734 64-bit configurations.
9735
9736 2015-07-08 Martin Liska <mliska@suse.cz>
9737
9738 PR bootstrap/66744
9739 * tree-sra.c (create_access_1): Call ctor without brackets.
9740 (create_artificial_child_access): Likewise.
9741
9742 2015-07-08 Richard Biener <rguenther@suse.de>
9743
9744 PR tree-optimization/66793
9745 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9746 Properly split the block after stmts ending it.
9747
9748 2015-07-08 Richard Biener <rguenther@suse.de>
9749
9750 PR tree-optimization/66794
9751 * passes.c (execute_function_todo): Assert that post-dominators
9752 are not computed.
9753 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9754 Free post-dominators.
9755
9756 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9757
9758 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9759 with early exit.
9760
9761 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9762
9763 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9764 more than or equal 8 and less than 32 when optimizing for size.
9765
9766 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9767
9768 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9769 COSTS_N_INSNS (1) and increment it appropriately throughout the
9770 function.
9771
9772 2015-07-08 Richard Biener <rguenther@suse.de>
9773
9774 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9775
9776 2015-07-08 Alan Modra <amodra@gmail.com>
9777
9778 * target.def (rtx_costs): Remove "code" param, add "mode".
9779 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9780 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9781 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9782 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9783 call. Track mode when given in rtx.
9784 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9785 (default_address_cost): Pass Pmode to rtx_cost.
9786 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9787 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9788 with NULL set.
9789 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9790 (notreg_cost): Add mode param. Use it.
9791 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9792 mode param and pass to set_src_cost. Update all calls.
9793 (hash_scan_set): Formatting.
9794 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9795 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9796 * hooks.h: Ditto.
9797 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9798 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9799 emit_store_flag): Update set_src_cost and rtx_cost calls.
9800 * auto-inc-dec.c (attempt_change): Likewise.
9801 * calls.c (precompute_register_parameters): Likewise.
9802 * combine.c (expand_compound_operation, make_extraction,
9803 force_to_mode, distribute_and_simplify_rtx): Likewise.
9804 * dojump.c (prefer_and_bit_test): Likewise.
9805 * dse.c (find_shift_sequence): Likewise.
9806 * expr.c (compress_float_constant): Likewise.
9807 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9808 * ifcvt.c (noce_try_sign_mask): Likewise.
9809 * loop-doloop.c (doloop_optimize): Likewise.
9810 * loop-invariant.c (create_new_invariant): Likewise.
9811 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9812 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9813 lshift_cheap_p): Likewise.
9814 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9815 try_replace_in_use, reload_cse_move2add): Likewise.
9816 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9817 Likewise.
9818 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9819 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9820 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9821 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9823 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9824 to rtx_cost calls.
9825 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9826 * config/arc/arc.c (arc_rtx_costs): Likewise.
9827 * config/arm/arm.c (arm_rtx_costs): Likewise.
9828 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9829 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9830 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9831 * config/cris/cris.c (cris_rtx_costs): Likewise.
9832 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9833 * config/frv/frv.c (frv_rtx_costs): Likewise.
9834 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9835 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9836 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9837 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9838 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9839 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9840 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9841 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9842 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9843 * config/mep/mep.c (mep_rtx_cost): Likewise.
9844 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9845 * config/mips/mips.c (mips_rtx_costs): Likewise.
9846 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9847 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9848 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9849 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9850 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9851 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9852 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9853 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9854 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9855 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9856 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9857 * config/s390/s390.c (s390_rtx_costs): Likewise.
9858 * config/sh/sh.c (sh_rtx_costs): Likewise.
9859 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9860 * config/spu/spu.c (spu_rtx_costs): Likewise.
9861 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9862 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9863 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9864 * config/v850/v850.c (v850_rtx_costs): Likewise.
9865 * config/vax/vax.c (vax_rtx_costs): Likewise.
9866 * config/visium/visium.c (visium_rtx_costs): Likewise.
9867 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9868 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9869 "code" param, and pass as outer_code to first rtx_cost call. Pass
9870 mode to rtx_cost calls.
9871 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9872 calls.
9873 (aarch64_rtx_costs_wrapper): Update.
9874 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9875 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9876 rtx_cost calls.
9877 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9878 and rtx_cost calls.
9879 (avr_operand_rtx_cost): Similarly.
9880 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9881 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9882 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9883 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9884 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9885 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9886 rtx_cost.
9887 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9888 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9889 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9890 * doc/tm.texi: Regenerate.
9891
9892 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9893
9894 * tree-core.h: Include symtab.h.
9895 * rtl.h: Include hard-reg-set.h but not flags.h.
9896 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9897 hard-reg-set.h is always included.
9898 * regs.h: Don't include hard-reg-set.h or rtl.h.
9899 * cfg.h: Include dominance.h.
9900 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9901 * backend.h: New. Aggregate commonly used backend header files.
9902 * gimple-ssa.h: Don't include tree-hasher.h.
9903 * ssa.h: New. Aggregate commonly used SSA header files.
9904 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9905 * sel-sched-ir.h: Flatten includes.
9906 * lra-int.h: Flatten completely.
9907 * sel-sched-dump.h: Flatten includes.
9908 * ira-int.h: Flatten includes.
9909 * gimple-streamer.h: Remove all includes.
9910 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9911 * resource.h: Flatten hard-reg-set.h and df.h.
9912 * sched-int.h: Flatten insn-arrt.h and df.h.
9913 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9914 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9915 * genattrtab.c (write_header): Adjust generated includes.
9916 * genautomata.c (main): Likewise.
9917 * genconditions.c (write-header): Likewise.
9918 * genemit.c (main): Likewise.
9919 * gengtype.c (open_base_files): Likewise.
9920 * genopinit.c (main): Likewise.
9921 * genoutput.c (output_prologue): Likewise.
9922 * genpeep.c (main): Likewise.
9923 * genpreds.c (write_insn_preds_c): Likewise.
9924 * genrecog.c (write_header): Likewise.
9925 * alias.c: Adjust includes.
9926 * asan.c: Likewise.
9927 * attribs.c: Likewise.
9928 * auto-inc-dec.c: Likewise.
9929 * auto-profile.c: Likewise.
9930 * bb-reorder.c: Likewise.
9931 * bt-load.c: Likewise.
9932 * builtins.c: Likewise.
9933 * caller-save.c: Likewise.
9934 * calls.c: Likewise.
9935 * ccmp.c: Likewise.
9936 * cfg.c: Likewise.
9937 * cfganal.c: Likewise.
9938 * cfgbuild.c: Likewise.
9939 * cfgcleanup.c: Likewise.
9940 * cfgexpand.c: Likewise.
9941 * cfghooks.c: Likewise.
9942 * cfgloop.c: Likewise.
9943 * cfgloopanal.c: Likewise.
9944 * cfgloopmanip.c: Likewise.
9945 * cfgrtl.c: Likewise.
9946 * cgraph.c: Likewise.
9947 * cgraphbuild.c: Likewise.
9948 * cgraphclones.c: Likewise.
9949 * cgraphunit.c: Likewise.
9950 * cilk-common.c: Likewise.
9951 * combine-stack-adj.c: Likewise.
9952 * combine.c: Likewise.
9953 * compare-elim.c: Likewise.
9954 * convert.c: Likewise.
9955 * coverage.c: Likewise.
9956 * cppbuiltin.c: Likewise.
9957 * cprop.c: Likewise.
9958 * cse.c: Likewise.
9959 * cselib.c: Likewise.
9960 * data-streamer-in.c: Likewise.
9961 * data-streamer-out.c: Likewise.
9962 * data-streamer.c: Likewise.
9963 * dbxout.c: Likewise.
9964 * dce.c: Likewise.
9965 * ddg.c: Likewise.
9966 * debug.c: Likewise.
9967 * df-core.c: Likewise.
9968 * df-problems.c: Likewise.
9969 * df-scan.c: Likewise.
9970 * dfp.c: Likewise.
9971 * dojump.c: Likewise.
9972 * dominance.c: Likewise.
9973 * domwalk.c: Likewise.
9974 * double-int.c: Likewise.
9975 * dse.c: Likewise.
9976 * dumpfile.c: Likewise.
9977 * dwarf2asm.c: Likewise.
9978 * dwarf2cfi.c: Likewise.
9979 * dwarf2out.c: Likewise.
9980 * emit-rtl.c: Likewise.
9981 * et-forest.c: Likewise.
9982 * except.c: Likewise.
9983 * explow.c: Likewise.
9984 * expmed.c: Likewise.
9985 * expr.c: Likewise.
9986 * final.c: Likewise.
9987 * fixed-value.c: Likewise.
9988 * fold-const.c: Likewise.
9989 * function.c: Likewise.
9990 * fwprop.c: Likewise.
9991 * gcc-plugin.h: Likewise.
9992 * gcse-common.c: Likewise.
9993 * gcse.c: Likewise.
9994 * generic-match-head.c: Likewise.
9995 * ggc-page.c: Likewise.
9996 * gimple-builder.c: Likewise.
9997 * gimple-expr.c: Likewise.
9998 * gimple-fold.c: Likewise.
9999 * gimple-iterator.c: Likewise.
10000 * gimple-low.c: Likewise.
10001 * gimple-match-head.c: Likewise.
10002 * gimple-pretty-print.c: Likewise.
10003 * gimple-ssa-isolate-paths.c: Likewise.
10004 * gimple-ssa-strength-reduction.c: Likewise.
10005 * gimple-streamer-in.c: Likewise.
10006 * gimple-streamer-out.c: Likewise.
10007 * gimple-walk.c: Likewise.
10008 * gimple.c: Likewise.
10009 * gimplify-me.c: Likewise.
10010 * gimplify.c: Likewise.
10011 * godump.c: Likewise.
10012 * graph.c: Likewise.
10013 * graphite-blocking.c: Likewise.
10014 * graphite-dependences.c: Likewise.
10015 * graphite-interchange.c: Likewise.
10016 * graphite-isl-ast-to-gimple.c: Likewise.
10017 * graphite-optimize-isl.c: Likewise.
10018 * graphite-poly.c: Likewise.
10019 * graphite-scop-detection.c: Likewise.
10020 * graphite-sese-to-poly.c: Likewise.
10021 * graphite.c: Likewise.
10022 * haifa-sched.c: Likewise.
10023 * hw-doloop.c: Likewise.
10024 * ifcvt.c: Likewise.
10025 * init-regs.c: Likewise.
10026 * internal-fn.c: Likewise.
10027 * ipa-chkp.c: Likewise.
10028 * ipa-comdats.c: Likewise.
10029 * ipa-cp.c: Likewise.
10030 * ipa-devirt.c: Likewise.
10031 * ipa-icf-gimple.c: Likewise.
10032 * ipa-icf.c: Likewise.
10033 * ipa-inline-analysis.c: Likewise.
10034 * ipa-inline-transform.c: Likewise.
10035 * ipa-inline.c: Likewise.
10036 * ipa-polymorphic-call.c: Likewise.
10037 * ipa-profile.c: Likewise.
10038 * ipa-prop.c: Likewise.
10039 * ipa-pure-const.c: Likewise.
10040 * ipa-ref.c: Likewise.
10041 * ipa-reference.c: Likewise.
10042 * ipa-split.c: Likewise.
10043 * ipa-utils.c: Likewise.
10044 * ipa-visibility.c: Likewise.
10045 * ipa.c: Likewise.
10046 * ira-build.c: Likewise.
10047 * ira-color.c: Likewise.
10048 * ira-conflicts.c: Likewise.
10049 * ira-costs.c: Likewise.
10050 * ira-emit.c: Likewise.
10051 * ira-lives.c: Likewise.
10052 * ira.c: Likewise.
10053 * jump.c: Likewise.
10054 * langhooks.c: Likewise.
10055 * lcm.c: Likewise.
10056 * loop-doloop.c: Likewise.
10057 * loop-init.c: Likewise.
10058 * loop-invariant.c: Likewise.
10059 * loop-iv.c: Likewise.
10060 * loop-unroll.c: Likewise.
10061 * lower-subreg.c: Likewise.
10062 * lra-assigns.c: Likewise.
10063 * lra-coalesce.c: Likewise.
10064 * lra-constraints.c: Likewise.
10065 * lra-eliminations.c: Likewise.
10066 * lra-lives.c: Likewise.
10067 * lra-remat.c: Likewise.
10068 * lra-spills.c: Likewise.
10069 * lra.c: Likewise.
10070 * lto-cgraph.c: Likewise.
10071 * lto-compress.c: Likewise.
10072 * lto-opts.c: Likewise.
10073 * lto-section-in.c: Likewise.
10074 * lto-section-out.c: Likewise.
10075 * lto-streamer-in.c: Likewise.
10076 * lto-streamer-out.c: Likewise.
10077 * lto-streamer.c: Likewise.
10078 * mcf.c: Likewise.
10079 * mode-switching.c: Likewise.
10080 * modulo-sched.c: Likewise.
10081 * omega.c: Likewise.
10082 * omp-low.c: Likewise.
10083 * optabs.c: Likewise.
10084 * opts-global.c: Likewise.
10085 * passes.c: Likewise.
10086 * plugin.c: Likewise.
10087 * postreload-gcse.c: Likewise.
10088 * postreload.c: Likewise.
10089 * predict.c: Likewise.
10090 * print-rtl.c: Likewise.
10091 * print-tree.c: Likewise.
10092 * profile.c: Likewise.
10093 * real.c: Likewise.
10094 * realmpfr.c: Likewise.
10095 * recog.c: Likewise.
10096 * ree.c: Likewise.
10097 * reg-stack.c: Likewise.
10098 * regcprop.c: Likewise.
10099 * reginfo.c: Likewise.
10100 * regrename.c: Likewise.
10101 * regstat.c: Likewise.
10102 * reload.c: Likewise.
10103 * reload1.c: Likewise.
10104 * reorg.c: Likewise.
10105 * resource.c: Likewise.
10106 * rtl-chkp.c: Likewise.
10107 * rtlanal.c: Likewise.
10108 * rtlhooks.c: Likewise.
10109 * sanopt.c: Likewise.
10110 * sched-deps.c: Likewise.
10111 * sched-ebb.c: Likewise.
10112 * sched-rgn.c: Likewise.
10113 * sched-vis.c: Likewise.
10114 * sdbout.c: Likewise.
10115 * sel-sched-dump.c: Likewise.
10116 * sel-sched-ir.c: Likewise.
10117 * sel-sched.c: Likewise.
10118 * sese.c: Likewise.
10119 * shrink-wrap.c: Likewise.
10120 * simplify-rtx.c: Likewise.
10121 * stack-ptr-mod.c: Likewise.
10122 * stmt.c: Likewise.
10123 * stor-layout.c: Likewise.
10124 * store-motion.c: Likewise.
10125 * stringpool.c: Likewise.
10126 * symtab.c: Likewise.
10127 * target-globals.c: Likewise.
10128 * targhooks.c: Likewise.
10129 * toplev.c: Likewise.
10130 * tracer.c: Likewise.
10131 * trans-mem.c: Likewise.
10132 * tree-affine.c: Likewise.
10133 * tree-browser.c: Likewise.
10134 * tree-call-cdce.c: Likewise.
10135 * tree-cfg.c: Likewise.
10136 * tree-cfgcleanup.c: Likewise.
10137 * tree-chkp-opt.c: Likewise.
10138 * tree-chkp.c: Likewise.
10139 * tree-chrec.c: Likewise.
10140 * tree-complex.c: Likewise.
10141 * tree-data-ref.c: Likewise.
10142 * tree-dfa.c: Likewise.
10143 * tree-diagnostic.c: Likewise.
10144 * tree-dump.c: Likewise.
10145 * tree-eh.c: Likewise.
10146 * tree-emutls.c: Likewise.
10147 * tree-if-conv.c: Likewise.
10148 * tree-inline.c: Likewise.
10149 * tree-into-ssa.c: Likewise.
10150 * tree-iterator.c: Likewise.
10151 * tree-loop-distribution.c: Likewise.
10152 * tree-nested.c: Likewise.
10153 * tree-nrv.c: Likewise.
10154 * tree-object-size.c: Likewise.
10155 * tree-outof-ssa.c: Likewise.
10156 * tree-parloops.c: Likewise.
10157 * tree-phinodes.c: Likewise.
10158 * tree-predcom.c: Likewise.
10159 * tree-pretty-print.c: Likewise.
10160 * tree-profile.c: Likewise.
10161 * tree-scalar-evolution.c: Likewise.
10162 * tree-sra.c: Likewise.
10163 * tree-ssa-address.c: Likewise.
10164 * tree-ssa-alias.c: Likewise.
10165 * tree-ssa-ccp.c: Likewise.
10166 * tree-ssa-coalesce.c: Likewise.
10167 * tree-ssa-copy.c: Likewise.
10168 * tree-ssa-copyrename.c: Likewise.
10169 * tree-ssa-dce.c: Likewise.
10170 * tree-ssa-dom.c: Likewise.
10171 * tree-ssa-dse.c: Likewise.
10172 * tree-ssa-forwprop.c: Likewise.
10173 * tree-ssa-ifcombine.c: Likewise.
10174 * tree-ssa-live.c: Likewise.
10175 * tree-ssa-loop-ch.c: Likewise.
10176 * tree-ssa-loop-im.c: Likewise.
10177 * tree-ssa-loop-ivcanon.c: Likewise.
10178 * tree-ssa-loop-ivopts.c: Likewise.
10179 * tree-ssa-loop-manip.c: Likewise.
10180 * tree-ssa-loop-niter.c: Likewise.
10181 * tree-ssa-loop-prefetch.c: Likewise.
10182 * tree-ssa-loop-unswitch.c: Likewise.
10183 * tree-ssa-loop.c: Likewise.
10184 * tree-ssa-math-opts.c: Likewise.
10185 * tree-ssa-operands.c: Likewise.
10186 * tree-ssa-phiopt.c: Likewise.
10187 * tree-ssa-phiprop.c: Likewise.
10188 * tree-ssa-pre.c: Likewise.
10189 * tree-ssa-propagate.c: Likewise.
10190 * tree-ssa-reassoc.c: Likewise.
10191 * tree-ssa-sccvn.c: Likewise.
10192 * tree-ssa-scopedtables.c: Likewise.
10193 * tree-ssa-sink.c: Likewise.
10194 * tree-ssa-strlen.c: Likewise.
10195 * tree-ssa-structalias.c: Likewise.
10196 * tree-ssa-tail-merge.c: Likewise.
10197 * tree-ssa-ter.c: Likewise.
10198 * tree-ssa-threadedge.c: Likewise.
10199 * tree-ssa-threadupdate.c: Likewise.
10200 * tree-ssa-uncprop.c: Likewise.
10201 * tree-ssa-uninit.c: Likewise.
10202 * tree-ssa.c: Likewise.
10203 * tree-ssanames.c: Likewise.
10204 * tree-stdarg.c: Likewise.
10205 * tree-streamer-in.c: Likewise.
10206 * tree-streamer-out.c: Likewise.
10207 * tree-streamer.c: Likewise.
10208 * tree-switch-conversion.c: Likewise.
10209 * tree-tailcall.c: Likewise.
10210 * tree-vect-data-refs.c: Likewise.
10211 * tree-vect-generic.c: Likewise.
10212 * tree-vect-loop-manip.c: Likewise.
10213 * tree-vect-loop.c: Likewise.
10214 * tree-vect-patterns.c: Likewise.
10215 * tree-vect-slp.c: Likewise.
10216 * tree-vect-stmts.c: Likewise.
10217 * tree-vectorizer.c: Likewise.
10218 * tree-vrp.c: Likewise.
10219 * tree.c: Likewise.
10220 * tsan.c: Likewise.
10221 * ubsan.c: Likewise.
10222 * valtrack.c: Likewise.
10223 * value-prof.c: Likewise.
10224 * var-tracking.c: Likewise.
10225 * varasm.c: Likewise.
10226 * varpool.c: Likewise.
10227 * vmsdbgout.c: Likewise.
10228 * vtable-verify.c: Likewise.
10229 * web.c: Likewise.
10230 * wide-int.cc: Likewise.
10231 * xcoffout.c: Likewise.
10232 * config/aarch64/aarch64-builtins.c: Likewise.
10233 * config/aarch64/aarch64.c: Likewise.
10234 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10235 * config/alpha/alpha.c: Likewise.
10236 * config/arc/arc.c: Likewise.
10237 * config/arm/aarch-common.c: Likewise.
10238 * config/arm/arm-builtins.c: Likewise.
10239 * config/arm/arm-c.c: Likewise.
10240 * config/arm/arm.c: Likewise.
10241 * config/avr/avr-c.c: Likewise.
10242 * config/avr/avr-log.c: Likewise.
10243 * config/avr/avr.c: Likewise.
10244 * config/bfin/bfin.c: Likewise.
10245 * config/c6x/c6x.c: Likewise.
10246 * config/cr16/cr16.c: Likewise.
10247 * config/cris/cris.c: Likewise.
10248 * config/darwin-c.c: Likewise.
10249 * config/darwin.c: Likewise.
10250 * config/epiphany/epiphany.c: Likewise.
10251 * config/epiphany/mode-switch-use.c: Likewise.
10252 * config/epiphany/resolve-sw-modes.c: Likewise.
10253 * config/fr30/fr30.c: Likewise.
10254 * config/frv/frv.c: Likewise.
10255 * config/ft32/ft32.c: Likewise.
10256 * config/h8300/h8300.c: Likewise.
10257 * config/i386/i386-c.c: Likewise.
10258 * config/i386/i386.c: Likewise.
10259 * config/i386/msformat-c.c: Likewise.
10260 * config/i386/winnt-cxx.c: Likewise.
10261 * config/i386/winnt-stubs.c: Likewise.
10262 * config/i386/winnt.c: Likewise.
10263 * config/ia64/ia64-c.c: Likewise.
10264 * config/ia64/ia64.c: Likewise.
10265 * config/iq2000/iq2000.c: Likewise.
10266 * config/lm32/lm32.c: Likewise.
10267 * config/m32c/m32c-pragma.c: Likewise.
10268 * config/m32c/m32c.c: Likewise.
10269 * config/m32r/m32r.c: Likewise.
10270 * config/m68k/m68k.c: Likewise.
10271 * config/mcore/mcore.c: Likewise.
10272 * config/mep/mep-pragma.c: Likewise.
10273 * config/mep/mep.c: Likewise.
10274 * config/microblaze/microblaze-c.c: Likewise.
10275 * config/microblaze/microblaze.c: Likewise.
10276 * config/mips/mips.c: Likewise.
10277 * config/mmix/mmix.c: Likewise.
10278 * config/mn10300/mn10300.c: Likewise.
10279 * config/moxie/moxie.c: Likewise.
10280 * config/msp430/msp430-c.c: Likewise.
10281 * config/msp430/msp430.c: Likewise.
10282 * config/nds32/nds32-cost.c: Likewise.
10283 * config/nds32/nds32-fp-as-gp.c: Likewise.
10284 * config/nds32/nds32-intrinsic.c: Likewise.
10285 * config/nds32/nds32-isr.c: Likewise.
10286 * config/nds32/nds32-md-auxiliary.c: Likewise.
10287 * config/nds32/nds32-memory-manipulation.c: Likewise.
10288 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10289 * config/nds32/nds32-predicates.c: Likewise.
10290 * config/nds32/nds32.c: Likewise.
10291 * config/nios2/nios2.c: Likewise.
10292 * config/nvptx/nvptx.c: Likewise.
10293 * config/pa/pa.c: Likewise.
10294 * config/pdp11/pdp11.c: Likewise.
10295 * config/rl78/rl78-c.c: Likewise.
10296 * config/rl78/rl78.c: Likewise.
10297 * config/rs6000/rs6000-c.c: Likewise.
10298 * config/rs6000/rs6000.c: Likewise.
10299 * config/rx/rx.c: Likewise.
10300 * config/s390/s390-c.c: Likewise.
10301 * config/s390/s390.c: Likewise.
10302 * config/sh/sh-c.c: Likewise.
10303 * config/sh/sh-mem.cc: Likewise.
10304 * config/sh/sh.c: Likewise.
10305 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10306 * config/sh/sh_treg_combine.cc: Likewise.
10307 * config/sol2-c.c: Likewise.
10308 * config/sol2-cxx.c: Likewise.
10309 * config/sol2-stubs.c: Likewise.
10310 * config/sol2.c: Likewise.
10311 * config/sparc/sparc-c.c: Likewise.
10312 * config/sparc/sparc.c: Likewise.
10313 * config/spu/spu-c.c: Likewise.
10314 * config/spu/spu.c: Likewise.
10315 * config/stormy16/stormy16.c: Likewise.
10316 * config/tilegx/mul-tables.c: Likewise.
10317 * config/tilegx/tilegx-c.c: Likewise.
10318 * config/tilegx/tilegx.c: Likewise.
10319 * config/tilepro/mul-tables.c: Likewise.
10320 * config/tilepro/tilepro-c.c: Likewise.
10321 * config/tilepro/tilepro.c: Likewise.
10322 * config/v850/v850-c.c: Likewise.
10323 * config/v850/v850.c: Likewise.
10324 * config/vax/vax.c: Likewise.
10325 * config/visium/visium.c: Likewise.
10326 * config/vms/vms-c.c: Likewise.
10327 * config/vms/vms.c: Likewise.
10328 * config/vxworks.c: Likewise.
10329 * config/xtensa/xtensa.c: Likewise.
10330
10331 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10332
10333 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10334 Remove operand constraints. Change operand 2 predicate to
10335 nonmemory operand. Limit const_int values to mode bitsize. Only
10336 allow const_int values less than 32 when optimizing for size.
10337 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10338 Remove operand constraints.
10339 (*bt<mode>): Use SImode for const_int values less than 32.
10340 (regmode): Remove mode attribute.
10341
10342 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10343
10344 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10345 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10346 moxie_legitimate_address_p): New functions.
10347 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10348
10349 2015-07-07 Tom de Vries <tom@codesourcery.com>
10350
10351 PR tree-optimization/66642
10352 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10353 header comment. Rename split_edge variable to edge_at_split. Split
10354 exit edge to create new loop exit bb. Insert loop exit phis in new
10355 loop exit bb.
10356
10357 2015-07-07 Tom de Vries <tom@codesourcery.com>
10358
10359 * tree-cfg.c (get_virtual_phi): New function.
10360 * tree-cfg.h (get_virtual_phi): Declare.
10361 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10362 (rewrite_virtuals_into_loop_closed_ssa): New function.
10363 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10364 Declare.
10365 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10366 (transform_to_exit_first_loop_alt): Use
10367 rewrite_virtuals_into_loop_closed_ssa.
10368
10369 2015-07-07 Richard Biener <rguenther@suse.de>
10370
10371 * fold-const.c (fold_binary_loc): Move
10372 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10373 * match.pd: ... here.
10374 Add (X * C1) % C2 -> 0 simplification pattern derived from
10375 extract_muldiv_1.
10376
10377 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10378
10379 PR target/66780
10380 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10381 change for target/65249.
10382
10383 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10384
10385 * symtab.c (address_matters_1): Fix typo in comment above.
10386 (can_increase_alignment_p): Likewise.
10387
10388 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10389
10390 * function.c (free_after_compilation): Clear PROP_cfg in
10391 f->curr_properties.
10392
10393 2015-07-07 Richard Biener <rguenther@suse.de>
10394
10395 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10396 add which use to.
10397 (add_control_edge): Remove excessive vertical space in dumping.
10398 (process_ssa_edge_worklist): Simulate at most one statement and
10399 return whether we did. Do not simulate PHIs if they are in a
10400 BB not yet simulated.
10401 (ssa_propagate): Adjust to always drain the BB worklist whenever
10402 a BB is available there, likewise the VARYING edges list before
10403 the interesting edge list.
10404
10405 2015-07-07 Christian Bruel <christian.bruel@st.com>
10406
10407 PR target/52144
10408 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10409
10410 2015-07-07 Richard Biener <rguenther@suse.de>
10411
10412 PR middle-end/66739
10413 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10414 A - B.
10415
10416 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10417
10418 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10419 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10420 Copy operand 0 to a temporary if !ext_register_operand. Remove
10421 ancient extract_bit_field workaround.
10422 (insv<mode>_1): Rename from mov<mode>_insv_1.
10423 (*insvqi): Rename from *movqi_insv_2.
10424 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10425 for renamed insvsi_1.
10426 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10427
10428 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10429
10430 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10431 call to nvptx_reorg_subreg.
10432
10433 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10434
10435 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10436 * graphite-dependencies.c, graphite-interchange.c,
10437 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10438 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10439 Likewise.
10440
10441 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10442
10443 * match.pd: Remove element_mode inside HONOR_*.
10444 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10445 (~X | X -> -1, ~X ^ X -> -1): Merge.
10446 * tree.c (build_each_one_cst): New function.
10447 * tree.h (build_each_one_cst): Likewise.
10448
10449 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10450
10451 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10452 PROCESSOR_IAMCU.
10453
10454 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10455
10456 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10457 * config/mips/mips.opt (mfused-madd): Remove.
10458 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10459 * config/mips/mips.h (TARGET_MIPS8000): New.
10460 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10461 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10462 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10463 (ISA_HAS_NMADD4_NMSUB4): Remove.
10464 (ISA_HAS_NMADD3_NMSUB3): Remove.
10465 (ISA_HAS_FUSED_MADD4): New.
10466 (ISA_HAS_UNFUSED_MADD4): New.
10467 (ISA_HAS_FUSED_MADDF): New.
10468 (ISA_HAS_FUSED_MADD3): New.
10469 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10470 (*fma<mode>4_madd3) New.
10471 (*fma<mode>4_madd4) New.
10472 (*fma<mode>4_maddf) New.
10473 (fms<mode>4) New.
10474 (*fms<mode>4_msub3) New.
10475 (*fms<mode>4_msub4) New.
10476 (fnma<mode>4) New.
10477 (*fnma<mode>4_nmadd3) New.
10478 (*fnma<mode>4_nmadd4) New.
10479 (fnms<mode>4) New.
10480 (*fnms<mode>4_nmsub3) New.
10481 (*fnms<mode>4_nmsub4) New.
10482 (*madd4<mode>) Modify to be unfused only.
10483 (*msub4<mode>) Modify to be unfused only.
10484 (*nmadd4<mode>) Modify to be unfused only.
10485 (*nmsub4<mode>) Modify to be unfused only.
10486 (*madd3<mode>) Remove.
10487 (*msub3<mode>) Remove.
10488 (*nmadd3<mode>) Remove.
10489 (*nmsub3<mode>) Remove.
10490 (*nmadd3<mode>_fastmath) Remove.
10491 (*nmsub3<mode>_fastmath) Remove.
10492 (*nmadd4<mode>_fastmath) Update condition.
10493 (*nmsub4<mode>_fastmath) Update condition.
10494
10495 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10496
10497 PR target/65956
10498 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10499 alignment attribute, exploring one level down for records and arrays.
10500
10501 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10502
10503 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10504 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10505 Copy operand 1 to a temporary if !ext_register_operand. Remove
10506 ancient extract_bit_field workaround.
10507 (*extv<mode>): Rename from *mov<mode>_extv_1.
10508 (*extvqi): Rename from *movqi_extv_1.
10509 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10510 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10511 to a temporary if !ext_register_operand. Remove ancient
10512 extract_bit_field workaround.
10513 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10514 (*extzvqi): Rename from *movqi_extzv_2.
10515 (*testqi_ext_3): Remove modes from const_int_operand predicated
10516 operands. Add "n" constraint.
10517 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10518 operand. Add "J" constraint.
10519 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10520 const_0_to_63 predicated operand.
10521 (regmode): New insn attribute.
10522 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10523 to nonmemory_operand. Use regmode insn attribute.
10524 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10525 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10526 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10527 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10528 operands. Use "N" constraint instead of "n".
10529
10530 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10531
10532 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10533
10534 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10535
10536 PR target/66749
10537 * config/i386/i386.c (iamcu_cost): New.
10538 (m_IAMCU): Likewise.
10539 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10540 (processor_target_table): Add an entry for "iamcu".
10541 (processor_alias_table): Likewise.
10542 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10543 (ix86_adjust_cost): Likewise.
10544 (ia32_multipass_dfa_lookahead): Likewise.
10545 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10546 * config/i386/x86-tune.def: Updated for m_IAMCU.
10547
10548 2015-07-06 Richard Biener <rguenther@suse.de>
10549
10550 PR tree-optimization/66772
10551 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10552 values are available in the PHI node BB when there are
10553 still unexecutable edges.
10554
10555 2015-07-06 Richard Biener <rguenther@suse.de>
10556
10557 PR tree-optimization/66767
10558 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10559 Make sure to build the alignment test on a SSA name without
10560 final alignment info valid only if the alignment test
10561 evaluates to true.
10562
10563 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10564
10565 PR target/66620
10566 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10567 loop start when inserting LSETUP.
10568
10569 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10570
10571 PR target/53383
10572 * config/i386/i386.c (ix86_option_override_internal): Allow
10573 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10574
10575 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10576
10577 * read-md.c (decimal_string): Rename to ...
10578 (md_decimal_string): ... this.
10579 (handle_enum): Reflect this.
10580
10581 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10582
10583 PR target/66731
10584 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10585
10586 2015-07-06 Richard Biener <rguenther@suse.de>
10587
10588 PR middle-end/66759
10589 * match.pd: Add missing constraint of y to REAL_CST in
10590 REAL_CST - x CMP y to y - CST CMP x simplification.
10591
10592 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10593
10594 PR tree-optimization/66757
10595 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10596
10597 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10598 Sandra Loosemore <sandra@codesourcery.com>
10599
10600 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10601 Delete extern declaration.
10602 (gprel_constant_p): Add extern declaration.
10603 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10604 instead of nios2_symbol_ref_in_small_data_p.
10605 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10606 (nios2_symbol_ref_in_small_data_p): Make static.
10607 (gprel_constant_p): Make non-static.
10608
10609 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10610
10611 * doc/fragments.texi (Target Fragment): Convert debian.org
10612 link to use https.
10613 * doc/install.texi (Configuration): Ditto.
10614
10615 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10616
10617 PR tree-optimization/66718
10618 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10619 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10620
10621 PR tree-optimization/66718
10622 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10623 vectorizable_load, vectorizable_condition): Move vectype,
10624 nunits, ncopies computation after checking what kind of statement
10625 stmt is.
10626
10627 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10628
10629 * target-insns.def (extv, extzv, insv): New targetm instruction
10630 patterns.
10631 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10632 interface.
10633 * recog.c (simplify_while_replacing): Likewise.
10634
10635 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10636
10637 * target-insns.def (doloop_begin, doloop_end): New targetm
10638 instruction patterns.
10639 * loop-init.c: Include target.h.
10640 (pass_loop2::gate): Use the new targetm patterns instead of
10641 HAVE_*/gen_* interface.
10642 (pass_rtl_doloop::gate): Likewise.
10643 (pass_rtl_doloop::execute): Remove preprocessor condition.
10644 * hw-doloop.c: Build unconditionally.
10645 * loop-doloop.c: Likewise.
10646 (doloop_optimize): Use the new targetm patterns instead of
10647 HAVE_*/gen_* interface.
10648 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10649 * modulo-sched.c (doloop_register_get): Likewise.
10650
10651 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10652
10653 * target-insns.def (clear_cache): New targetm instruction pattern.
10654 * builtins.c (expand_builtin___clear_cache): Use it instead of
10655 HAVE_*/gen_* interface.
10656
10657 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10658
10659 * target-insns.def (allocate_stack, check_stack, probe_stack)
10660 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10661 New targetm instruction patterns.
10662 * explow.c (allocate_dynamic_stack_space): Use them instead of
10663 HAVE_*/gen_* interface.
10664 (emit_stack_probe): Likewise.
10665 (probe_stack_range): Likewise.
10666 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10667
10668 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10669
10670 * target-insns.def (stack_protect_set, stack_protect_test): New
10671 targetm instruction patterns.
10672 * cfgexpand.c (stack_protect_prologue): Use them instead of
10673 HAVE_*/gen_* interface.
10674 * function.c (stack_protect_epilogue): Likewise.
10675
10676 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10677
10678 * expr.h (gen_move_insn_uncast): Delete.
10679 * expr.c (gen_move_insn_uncast): Delete.
10680
10681 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10682
10683 * target-insns.def (restore_stack_block, restore_stack_function)
10684 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10685 (save_stack_nonlocal): New targetm instruction patterns.
10686 * builtins.c (expand_builtin_apply): Use them instead of
10687 HAVE_*/gen_* interface.
10688 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10689
10690 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10691
10692 * target-insns.def (trap): New targetm instruction pattern.
10693 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10694 interface.
10695 * explow.c (allocate_dynamic_stack_space): Likewise.
10696 * ifcvt.c (find_if_header): Likewise.
10697
10698 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10699
10700 * target-insns.def (prefetch): New targetm instruction pattern.
10701 * tree-ssa-loop-prefetch.c: Include targeth.
10702 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10703 of HAVE_*/gen_* interface.
10704 * builtins.c (expand_builtin_prefetch): Likewise.
10705 * toplev.c (process_options): Likewise.
10706
10707 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10708
10709 * target-insns.def (untyped_call, untyped_return): New targetm
10710 instruction patterns.
10711 * builtins.c (expand_builtin_apply): Use them instead of
10712 HAVE_*/gen_* interface.
10713 (result_vector): Define unconditionally.
10714
10715 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10716
10717 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10718 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10719 (nonlocal_goto_receiver): New targetm instruction patterns.
10720 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10721 of HAVE_*/gen_* interface.
10722 (expand_builtin_setjmp_receiver): Likewise.
10723 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10724 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10725
10726 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10727
10728 * target.def: Add code_for_* hooks.
10729 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10730 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10731 * target-insns.def (casesi, tablejump): New targetm instruction
10732 patterns.
10733 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10734 (do_tablejump): Likewise.
10735 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10736 (expand_sjlj_dispatch_table): Likewise.
10737 * targhooks.c (default_case_values_threshold): Likewise.
10738
10739 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10740
10741 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10742 Use rtx_insn * instead of rtx.
10743 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10744 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10745 (nios2_call_tls_get_addr): Likewise.
10746 (nios2_emit_expensive_div): Likewise.
10747 (nios2_emit_move_sequence): Change return type to bool.
10748 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10749 Change return type to bool.
10750
10751 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10752
10753 PR target/66747
10754 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10755
10756 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10757
10758 PR target/66114
10759 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10760 of register_operand. Remove constraint.
10761
10762 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10763
10764 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10765 the first argument.
10766
10767 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10768
10769 * attribs.c (decl_attributes): Guard inform with the return value
10770 of the preceding warning.
10771
10772 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10773
10774 * doc/invoke.texi (moverride): Move to correct section.
10775
10776 2015-07-03 Richard Biener <rguenther@suse.de>
10777
10778 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10779 Copy from tree.c
10780 (dt_operand::gen_gimple_expr): After valueizing operands
10781 re-canonicalize operand order for commutative tree codes.
10782
10783 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10784
10785 PR target/66746.
10786 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10787 is defined.
10788 (__crc32w): Likewise.
10789 (__crc32d): Likewise.
10790 (__rdpmc): Likewise.
10791 (__rdtscp): Likewise.
10792 (_rdpmc): Likewise.
10793 (_rdtscp): Likewise.
10794 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10795 is defined.
10796
10797 2015-07-03 Richard Biener <rguenther@suse.de>
10798
10799 * fold-const.c (fold_mathfn_compare): Remove.
10800 (fold_inf_compare): Likewise.
10801 (fold_comparison): Move floating point comparison simplifications...
10802 * match.pd: ... to patterns here. Introduce simple_comparisons
10803 operator list and use it for patterns formerly in fold_comparison.
10804
10805 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10806
10807 PR tree-optimization/66119
10808 * toplev.c (process_options): Don't set up default values for
10809 the sra_max_scalarization_size_{speed,size} parameters.
10810 * tree-sra (analyze_all_variable_accesses): If no values
10811 have been set for the sra_max_scalarization_size_{speed,size}
10812 parameters, call get_move_ratio to get target defaults.
10813
10814 2015-07-03 Richard Biener <rguenther@suse.de>
10815
10816 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10817 * match.pd: ... here.
10818
10819 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10820
10821 PR target/37072
10822 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10823 is not actually the default on FreeBSD.
10824
10825 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10826
10827 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10828 definition.
10829 (CMPGE_8HI): Likewise.
10830 (CMPGE_4SI): Likewise.
10831 (CMPGE_2DI): Likewise.
10832 (CMPGE_U16QI): Likewise.
10833 (CMPGE_U8HI): Likewise.
10834 (CMPGE_U4SI): Likewise.
10835 (CMPGE_U2DI): Likewise.
10836 (CMPLE_16QI): Likewise.
10837 (CMPLE_8HI): Likewise.
10838 (CMPLE_4SI): Likewise.
10839 (CMPLE_2DI): Likewise.
10840 (CMPLE_U16QI): Likewise.
10841 (CMPLE_U8HI): Likewise.
10842 (CMPLE_U4SI): Likewise.
10843 (CMPLE_U2DI): Likewise.
10844 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10845 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10846 ALTIVEC_BUILTIN_VEC_CMPLE.
10847 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10848 floating-point vector modes.
10849 (vector_nlt<mode>): New define_expand.
10850 (vector_nltu<mode>): Likewise.
10851 (vector_ngt<mode>): Likewise.
10852 (vector_ngtu<mode>): Likewise.
10853
10854 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10855
10856 PR rtl-optimization/66706
10857 * combine.c (make_compound_operation): If an AND of SUBREG of
10858 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10859
10860 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10861
10862 * tree-pass.h (make_pass_ch_vect): New.
10863 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10864
10865 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10866 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10867 make_pass_ch_vect): New.
10868 (pass_ch): Extend ch_base.
10869
10870 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10871 (ch_base::copy_headers): ...here.
10872
10873 2015-07-02 Richard Biener <rguenther@suse.de>
10874
10875 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10876 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10877 (fold_binary_loc): Implement (T)ptr & CST in terms of
10878 get_pointer_alignment_1.
10879 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10880 Make sure to build the alignment test on a SSA name without
10881 final alignment info valid only after the prologue.
10882
10883 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10884
10885 * config/cris/cris.md ("epilogue"): Remove condition.
10886 ("prologue"): Ditto.
10887
10888 2015-07-02 Richard Biener <rguenther@suse.de>
10889
10890 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10891 parameter to record a condition that is false.
10892 (record_conditions): When recording an extra NE_EXPR that is
10893 true also record a EQ_EXPR that is false.
10894
10895 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10896
10897 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10898 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10899 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10900 (set_iv, find_interesting_uses_address, add_candidate_1): New
10901 argument to alloc_iv.
10902 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10903 duplicate struct iv.
10904 (free_loop_data): Don't free struct iv explicitly.
10905 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10906
10907 2015-07-01 DJ Delorie <dj@redhat.com>
10908
10909 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10910 (LIB_SPEC): Add.
10911 (SUPPORTS_DISCRIMINATOR): Define.
10912
10913 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10914
10915 PR bootstrap/66685
10916 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10917 there are no CALLs in the same pattern.
10918
10919 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10920
10921 PR rtl-optimization/61047
10922 * rtlanal.c (get_initial_register_offset): New function.
10923 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10924
10925 2015-07-01 Richard Biener <rguenther@suse.de>
10926
10927 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10928 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10929 ~X CMP C -> X CMP' ~C to ...
10930 * match.pd: ... patterns here.
10931
10932 2015-07-01 Nick Clifton <nickc@redhat.com>
10933
10934 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10935 a 16-bit value into a 20-bit memory slot.
10936
10937 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10938
10939 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10940 "aarch64_tiny", "aarch64_small", "aarch64_large",
10941 "aarch64_little_endian", "aarch64_big_endian".
10942
10943 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10944
10945 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10946 Document "aarch64_small_fpic".
10947
10948 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10949
10950 * configure.ac: Add check for aarch64 assembler -fpic relocation
10951 modifier support.
10952 * configure: Regenerate.
10953 * config.in: Regenerate.
10954 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10955 to -fPIC if not support of -fpic relocation modifier in assembler.
10956
10957 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10958
10959 PR bootstrap/66685
10960 * rtl.c (classify_insn): Handle returns in PARALLELs.
10961
10962 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10963
10964 PR middle-end/66633
10965 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10966 to true if the function is nested and if not optimizing.
10967 (convert_local_omp_clauses): Initialize need_frame to true if the
10968 function contains nested functions and if not optimizing.
10969
10970 2015-07-01 Richard Biener <rguenther@suse.de>
10971
10972 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10973 (X & Y) ^ Y -> ~X & Y transforms to ...
10974 * match.pd: ... here.
10975
10976 2015-07-01 Richard Biener <rguenther@suse.de>
10977
10978 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10979 of converts to avoid uninteresting noise from the conversion
10980 simplifying patterns.
10981
10982 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10983
10984 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10985 gcc_assert evaluating its argument for side-effect.
10986
10987 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10988
10989 PR target/64833
10990 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10991 flag_pic is set.
10992
10993 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10994
10995 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10996 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10997 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10998 to the inner DFS walk.
10999
11000 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11001
11002 * target-insns.def (jump): New targetm instruction pattern.
11003 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11004 instead of gen_jump.
11005 (fix_up_crossing_landing_pad): Likewise.
11006 (add_labels_and_missing_jumps): Likewise.
11007 (fix_crossing_conditional_branches): Likewise.
11008 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11009 (force_nonfallthru_and_redirect): Likewise.
11010 * cse.c (cse_insn): Likewise.
11011 * expmed.c (expand_divmod): Likewise.
11012 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11013 * haifa-sched.c (init_before_recovery): Likewise.
11014 (sched_create_recovery_edges): Likewise.
11015 * ifcvt.c (find_cond_trap): Likewise.
11016 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11017 (expand_float, expand_fix): Likewise.
11018 * stmt.c (emit_jump): Likewise.
11019
11020 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11021
11022 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11023 (HAVE_store_multiple, gen_store_multiple): Delete.
11024 * target-insns.def (load_multiple, store_multiple): New targetm
11025 instruction patterns.
11026 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11027 of HAVE_*/gen_* interface.
11028
11029 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11030
11031 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11032 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11033 (gen_mem_signal_fence): Delete.
11034 * target-insns.def (mem_signal_fence, mem_thread_fence)
11035 (memory_barrier): New targetm instruction patterns.
11036 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11037 interface.
11038 (expand_mem_signal_fence): Likewise.
11039
11040 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11041
11042 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11043 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11044 targetm instruction patterns.
11045 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11046 interface.
11047 * calls.c (expand_call): Likewise.
11048 * cfgrtl.c (cfg_layout_finalize): Likewise.
11049 * df-scan.c (df_get_entry_block_def_set): Likewise.
11050 (df_get_exit_block_use_set): Likewise.
11051 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11052 * final.c (final_start_function): Likewise.
11053 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11054 (reposition_prologue_and_epilogue_notes): Likewise.
11055 * reorg.c (find_end_label): Likewise.
11056 * toplev.c (process_options): Likewise.
11057
11058 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11059
11060 * typed-splay-tree.h: New file.
11061
11062 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11063
11064 PR debug/66691
11065 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11066 (lra_substitute_pseudo_within_insn): Ditto.
11067 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11068 of constant.
11069 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11070 to lra_substitute_pseudo.
11071 * lra-lives.c (process_bb_lives): Add an argument to
11072 lra_substitute_pseudo_within_insn call.
11073 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11074 argument to lra_substitute_pseudo and
11075 lra_substitute_pseudo_within_insn calls.
11076 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11077
11078 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11079
11080 * configure: Regenerated.
11081
11082 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11083
11084 * config.gcc: Support i[34567]86-*-elfiamcu target.
11085 * config/i386/iamcu.h: New.
11086 * config/i386/i386.opt: Add -miamcu.
11087 * doc/invoke.texi: Document -miamcu.
11088 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11089 off x87/MMX/SSE/AVX codegen for -miamcu.
11090 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11091 __iamcu/__iamcu__ for -miamcu.
11092 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11093 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11094 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11095 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11096 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11097 MCU by default. Default long double to 64-bit for Intel MCU.
11098 Turn on -freg-struct-return for Intel MCU. Issue an error when
11099 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11100 AVX is turned on.
11101 (function_arg_advance_32): Pass value whose size is no larger
11102 than 8 bytes in registers for Intel MCU.
11103 (function_arg_32): Likewise.
11104 (ix86_return_in_memory): Return value whose size is no larger
11105 than 8 bytes in registers for Intel MCU.
11106 (iamcu_alignment): New function.
11107 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11108 true.
11109 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11110 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11111 true.
11112
11113 2015-06-30 Marek Polacek <polacek@redhat.com>
11114
11115 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11116 both operands of the resulting expression.
11117
11118 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11119 the final expression with the operand's type and then convert
11120 it to the type of the expression.
11121
11122 2015-06-30 Richard Biener <rguenther@suse.de>
11123
11124 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11125 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11126 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11127 * match.pd: ... to patterns here.
11128
11129 2015-06-30 Richard Biener <rguenther@suse.de>
11130
11131 PR tree-optimization/66704
11132 * tree-vect-data-refs.c (vect_setup_realignment): Use
11133 make_ssa_name for non-SSA name source.
11134
11135 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11136
11137 PR middle-end/66702
11138 * omp-low.c (simd_clone_adjust): Handle addressable linear
11139 or uniform parameters or non-gimple type uniform parameters.
11140
11141 2015-06-30 Richard Biener <rguenther@suse.de>
11142
11143 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11144 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11145 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11146 * match.pd: ... here.
11147 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11148 Move (x & y) | x -> x and friends before
11149 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11150
11151 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11152
11153 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11154 -mfix-ut699 is not specified.
11155 (leon3_load): Rename into...
11156 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11157 is specified.
11158
11159 2015-06-30 Marek Polacek <polacek@redhat.com>
11160
11161 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11162 * match.pd: ... here.
11163
11164 2015-06-30 Richard Biener <rguenther@suse.de>
11165
11166 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11167 * fold-const.c (build_range_check): Replace uses of
11168 HAVE_canonicalize_funcptr_for_compare.
11169 (fold_widened_comparison): Likewise.
11170 (fold_sign_changed_comparison): Likewise.
11171 * dojump.c: Include "target.h".
11172 (do_compare_and_jump): Replace uses of
11173 HAVE_canonicalize_funcptr_for_compare and
11174 gen_canonicalize_funcptr_for_compare.
11175 * expr.c (do_store_flag): Likewise.
11176
11177 2015-06-30 Tom de Vries <tom@codesourcery.com>
11178
11179 PR tree-optimization/66652
11180 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11181 max_loop_iterations to determine if nit + 1 overflows.
11182
11183 2015-06-30 Richard Biener <rguenther@suse.de>
11184
11185 * tree-vrp.c (register_edge_assert_for_2): Also register
11186 asserts for dominating conversion results.
11187
11188 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11189
11190 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11191 field in struct iv.
11192
11193 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11194
11195 PR target/66509
11196 * configure.ac: Fix filds and fildq test for 64-bit.
11197 * configure: Regenerated.
11198
11199 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11200
11201 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11202 (nvptx_reorg): Here. Keep the non-subreg pieces.
11203
11204 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11205
11206 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11207 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11208
11209 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11210
11211 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11212 Set attribute "length_nobnd" instead of "length".
11213 (*jcc_2): Ditto.
11214 (jump): Ditto.
11215 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11216
11217 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11218
11219 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11220 assert less restrictive.
11221
11222 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11223
11224 PR fortran/66605
11225 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11226 do_warn_unused_parameter.
11227 * function.c (do_warn_unused_parameter): Move from here.
11228 * function.h (do_warn_unused_parameter): Do not declare.
11229
11230 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11231
11232 PR target/65697
11233 * gcc.target/arm/armv-sync-comp-swap.c: New.
11234 * gcc.target/arm/armv-sync-op-acquire.c: New.
11235 * gcc.target/arm/armv-sync-op-full.c: New.
11236 * gcc.target/arm/armv-sync-op-release.c: New.
11237
11238 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11239
11240 PR target/65697
11241 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11242 initial acquire barrier with final barrier.
11243
11244 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11245
11246 PR target/65697
11247 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11248 initial acquire barrier with final barrier.
11249
11250 2015-06-29 Richard Henderson <rth@redhat.com>
11251
11252 * config/i386/constraints.md (Bf): New constraint.
11253 * config/i386/i386-c.c (ix86_target_macros): Define
11254 __GCC_ASM_FLAG_OUTPUTS__.
11255 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11256 as flags outputs.
11257 * doc/extend.texi (FlagOutputOperands): Document them.
11258
11259 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11260
11261 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11262 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11263 unspec name.
11264 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11265 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11266 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11267 (aarch64_symbol_context): Ditto.
11268 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11269 and use new pattern name.
11270 (aarch64_expand_mov_immediate): Ditto.
11271 (aarch64_print_operand): Ditto.
11272 (aarch64_classify_tls_symbol): Ditto.
11273
11274 2015-06-29 Marek Polacek <polacek@redhat.com>
11275 Marc Glisse <marc.glisse@inria.fr>
11276
11277 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11278 * match.pd: ... pattern here.
11279
11280 2015-06-29 Tom de Vries <tom@codesourcery.com>
11281
11282 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11283 function structure.
11284
11285 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11286
11287 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11288 feature description, split out the native option, add a link to
11289 the feature documentation, rearrange and slightly rewrite text.
11290 (Aarch64 options, -mcpu): Likewise.
11291 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11292 +rdma implies Adv. SIMD.
11293
11294 2015-06-29 Marek Polacek <polacek@redhat.com>
11295
11296 PR c/66322
11297 * function.c (stack_protect_epilogue): Remove a cast to int.
11298 * doc/invoke.texi: Update -Wswitch-bool description.
11299
11300 2015-06-29 Richard Biener <rguenther@suse.de>
11301
11302 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11303 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11304 via ptr_difference_const ...
11305 * match.pd: ... here.
11306 When matching (X ^ Y) == Y also match with swapped operands.
11307
11308 2015-06-29 Richard Biener <rguenther@suse.de>
11309
11310 * lto-streamer.h (LTO_major_version): Bump to 5.
11311
11312 2015-06-29 Richard Biener <rguenther@suse.de>
11313
11314 PR tree-optimization/66677
11315 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11316 STMT_VINFO_VEC_STMT clobbering less strict.
11317
11318 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11319
11320 PR middle-end/64130
11321 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11322 division, compute max and min when value ranges for dividend and
11323 divisor are available.
11324
11325 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11326 Sandra Loosemore <sandra@codesourcery.com>
11327
11328 * regrename.h (regrename_do_replace): Change to return bool.
11329 * regrename.c (rename_chains): Check return value of
11330 regname_do_replace.
11331 (regrename_do_replace): Re-validate the modified insns and
11332 return bool status.
11333 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11334 Update to match rename_chains changes.
11335 * config/c6x/c6x.c (try_rename_operands): Assert that
11336 regrename_do_replace returns true.
11337
11338 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11339
11340 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11341 operand 2 here. Use copy_addr_to_reg to copy non-index
11342 register operand 2 to a temporary.
11343 (<mode>_stx): Ditto for operand 1.
11344 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11345 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11346 (ix86_store_bounds): Ditto.
11347
11348 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11349
11350 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11351
11352 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11353
11354 * gimple.c (gimple_call_set_fndecl): Remove.
11355 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11356 build1_loc directly instead of build_fold_addr_expr_loc.
11357
11358 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11359
11360 * hash-map.h (hash_map::traverse): Use the definition of the
11361 Key typedef rather than the typedef itself.
11362
11363 2015-06-26 Martin Jambor <mjambor@suse.cz>
11364
11365 PR debug/66301
11366 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11367 NULL instead of calling dump_enabled_p.
11368
11369 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11370
11371 * config/aarch64/aarch64.opt: (override): New.
11372 * doc/invoke.texi (override): Document.
11373 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11374 (aarch64_fusible_pairs): Likewise.
11375 (aarch64_tuning_flags): Likewise.
11376 (aarch64_tuning_override_function): Likewise.
11377 (aarch64_tuning_override_functions): Likewise.
11378 (aarch64_parse_one_option_token): Likewise.
11379 (aarch64_parse_boolean_options): Likewise.
11380 (aarch64_parse_fuse_string): Likewise.
11381 (aarch64_parse_tune_string): Likewise.
11382 (aarch64_parse_one_override_token): Likewise.
11383 (aarch64_parse_override_string): Likewise.
11384 (aarch64_override_options): Parse the -override string if it
11385 is present.
11386
11387 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11388
11389 * config/aarch64/aarch64-protos.h (tune_params): Remove
11390 const from members.
11391 (aarch64_tune_params): Remove const, change to no longer be
11392 a pointer.
11393 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11394 change to no longer be a pointer, initialize to generic_tunings.
11395 (aarch64_min_divisions_for_recip_mul): Change dereference of
11396 aarch64_tune_params to member access.
11397 (aarch64_reassociation_width): Likewise.
11398 (aarch64_rtx_mult_cost): Likewise.
11399 (aarch64_address_cost): Likewise.
11400 (aarch64_branch_cost): Likewise.
11401 (aarch64_rtx_costs): Likewise.
11402 (aarch64_register_move_cost): Likewise.
11403 (aarch64_memory_move_cost): Likewise.
11404 (aarch64_sched_issue_rate): Likewise.
11405 (aarch64_builtin_vectorization_cost): Likewise.
11406 (aarch64_override_options): Take a copy of the selected tuning
11407 struct in to aarch64_tune_params, rather than just setting
11408 a pointer, change dereferences of aarch64_tune_params to member
11409 accesses.
11410 (aarch64_override_options_after_change): Change dereferences of
11411 aarch64_tune_params to member access.
11412 (aarch64_macro_fusion_p): Likewise.
11413 (aarch_macro_fusion_pair_p): Likewise.
11414 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11415
11416 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11417
11418 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11419 (aarch64_tune_flags): Likewise.
11420 (AARCH64_TUNE_FMA_STEERING): Likewise.
11421 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11422 to AARCH64_FL_USE_FMA_STEERING_PASS.
11423 (cortex-a57.cortex-a53): Likewise.
11424 (cortex-a72): Use cortexa72_tunings.
11425 (cortex-a72.cortex-a53): Likewise.
11426 (exynos-m1): Likewise.
11427 * config/aarch64/aarch64-protos.h (tune_params): Add
11428 a field: extra_tuning_flags.
11429 * config/aarch64/aarch64-tuning-flags.def: New.
11430 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11431 (aarch64_extra_tuning_flags): Likewise.
11432 (aarch64_tune_params): Declare here.
11433 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11434 (cortexa53_tunings): Likewise.
11435 (cortexa57_tunings): Likewise.
11436 (thunderx_tunings): Likewise.
11437 (xgene1_tunings): Likewise.
11438 (cortexa72_tunings): New.
11439 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11440 (gate): Check against aarch64_tune_params.
11441 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11442 aarch64-protos.h.
11443
11444 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11445
11446 * config/aarch64/aarch64-fusion-pairs.def: New.
11447 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11448 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11449 aarch64_fusion_pairs.
11450 (AARCH64_FUSE_MOV_MOVK): Likewise.
11451 (AARCH64_FUSE_ADRP_ADD): Likewise.
11452 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11453 (AARCH64_FUSE_ADRP_LDR): Likewise.
11454 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11455
11456 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11457
11458 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11459 SYMBOL_SMALL_GOT_28K.
11460 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11461 relocation modifiers.
11462 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11463 (ldr_got_small_28k_<mode>): New.
11464 (ldr_got_small_28k_sidi): New.
11465 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11466 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11467 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11468 SYMBOL_SMALL_GOT_28K.
11469 (aarch64_rtx_costs): Add costs for new instruction sequences.
11470 (initialize_aarch64_code_model): Initialize new model.
11471 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11472 (aarch64_asm_preferred_eh_data_format): Support new model.
11473 (aarch64_load_symref_appropriately): Generate new instruction
11474 sequences for -fpic.
11475 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11476 (aarch64_use_pseudo_pic_reg): New function.
11477
11478 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11479
11480 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11481 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11482 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11483 (aarch64_expand_mov_immediate): Ditto.
11484 (aarch64_print_operand): Ditto.
11485 (aarch64_classify_symbol): Ditto.
11486
11487 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11488
11489 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11490
11491 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11492
11493 PR bootstrap/66638
11494 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11495 assertion failed. Remove assertion itself.
11496
11497 2015-06-26 Richard Biener <rguenther@suse.de>
11498
11499 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11500 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11501 in match.pd.
11502 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11503 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11504 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11505 * match.pd: ... patterns here.
11506
11507 2015-06-26 Marek Polacek <polacek@redhat.com>
11508
11509 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11510 (x | y) & (~x ^ y) -> x & y): New patterns.
11511
11512 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11513
11514 * rtl.h (emit): Add an optional boolean parameter to control
11515 whether barriers are emitted.
11516 * emit-rtl.c (emit): Likewise.
11517 * gensupport.c (get_emit_function): Return null rather than "emit".
11518 * genemit.c (gen_emit_seq): Handle the null return value.
11519 Don't emit barriers after the final instruction in the sequence.
11520 * gentarget-def.c (main): Don't emit barriers after the instruction.
11521
11522 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11523
11524 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11525 TARGET_UNIFIED_ASM.
11526
11527 2015-06-26 Richard Biener <rguenther@suse.de>
11528
11529 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11530
11531 2015-06-26 Richard Biener <rguenther@suse.de>
11532
11533 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11534 irrespective on whether the inner operation has a single use
11535 of both off are constant.
11536
11537 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11538 Segher Boessenkool <segher@kernel.crashing.org>
11539
11540 PR target/66412
11541 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11542 before doing PUT_MODE or PUT_CODE on operands to avoid
11543 in-place RTX modification.
11544
11545 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11546
11547 * gentarget-def.c (def_target_insn): Cast return of strtol to
11548 unsigned int.
11549
11550 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11551
11552 * gimple.h (gimple_call_set_fn): Move inline function.
11553 * gimple.c (gimple_call_set_fn): Relocate here.
11554
11555 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11556
11557 PR target/65979
11558 PR target/66611
11559 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11560 the replacement insn will work.
11561
11562 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11563
11564 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11565 by default.
11566
11567 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11568
11569 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11570 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11571 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11572 (symtab_node::address_can_be_compared_p): Move function.
11573 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11574 definition here.
11575 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11576 * auto-profile.c: Likewise.
11577 * bb-reorder.c: Likewise.
11578 * builtins.c: Likewise.
11579 * calls.c: Likewise.
11580 * cfgexpand.c: Likewise.
11581 * cgraphbuild.c: Likewise.
11582 * cgraphclones.c: Likewise.
11583 * cgraphunit.c: Likewise.
11584 * combine.c: Likewise.
11585 * coverage.c: Likewise.
11586 * data-streamer-in.c: Likewise.
11587 * data-streamer-out.c: Likewise.
11588 * data-streamer.c: Likewise.
11589 * dbxout.c: Likewise.
11590 * dwarf2out.c: Likewise.
11591 * except.c: Likewise.
11592 * expr.c: Likewise.
11593 * final.c: Likewise.
11594 * fold-const.c: Likewise.
11595 * ggc-page.c: Likewise.
11596 * gimple-fold.c: Likewise.
11597 * gimple-iterator.c: Likewise.
11598 * gimple-pretty-print.c: Likewise.
11599 * gimple-streamer-in.c: Likewise.
11600 * gimple-streamer-out.c: Likewise.
11601 * gimple.c: Likewise.
11602 * gimplify.c: Likewise.
11603 * ipa-chkp.c: Likewise.
11604 * ipa-comdats.c: Likewise.
11605 * ipa-cp.c: Likewise.
11606 * ipa-devirt.c: Likewise.
11607 * ipa-icf-gimple.c: Likewise.
11608 * ipa-icf.c: Likewise.
11609 * ipa-inline-analysis.c: Likewise.
11610 * ipa-inline-transform.c: Likewise.
11611 * ipa-inline.c: Likewise.
11612 * ipa-polymorphic-call.c: Likewise.
11613 * ipa-profile.c: Likewise.
11614 * ipa-prop.c: Likewise.
11615 * ipa-pure-const.c: Likewise.
11616 * ipa-ref.c: Likewise.
11617 * ipa-reference.c: Likewise.
11618 * ipa-split.c: Likewise.
11619 * ipa-utils.c: Likewise.
11620 * ipa-visibility.c: Likewise.
11621 * ipa.c: Likewise.
11622 * langhooks.c: Likewise.
11623 * lto-cgraph.c: Likewise.
11624 * lto-compress.c: Likewise.
11625 * lto-opts.c: Likewise.
11626 * lto-section-in.c: Likewise.
11627 * lto-section-out.c: Likewise.
11628 * lto-streamer-in.c: Likewise.
11629 * lto-streamer-out.c: Likewise.
11630 * lto-streamer.c: Likewise.
11631 * omp-low.c: Likewise.
11632 * opts-global.c: Likewise.
11633 * passes.c: Likewise.
11634 * predict.c: Likewise.
11635 * print-tree.c: Likewise.
11636 * profile.c: Likewise.
11637 * ree.c: Likewise.
11638 * sanopt.c: Likewise.
11639 * stor-layout.c: Likewise.
11640 * symtab.c: Likewise.
11641 * toplev.c: Likewise.
11642 * trans-mem.c: Likewise.
11643 * tree-cfg.c: Likewise.
11644 * tree-chkp.c: Likewise.
11645 * tree-eh.c: Likewise.
11646 * tree-emutls.c: Likewise.
11647 * tree-inline.c: Likewise.
11648 * tree-nested.c: Likewise.
11649 * tree-parloops.c: Likewise.
11650 * tree-pretty-print.c: Likewise.
11651 * tree-profile.c: Likewise.
11652 * tree-sra.c: Likewise.
11653 * tree-ssa-alias.c: Likewise.
11654 * tree-ssa-live.c: Likewise.
11655 * tree-ssa-loop-ivcanon.c: Likewise.
11656 * tree-ssa-loop-ivopts.c: Likewise.
11657 * tree-ssa-pre.c: Likewise.
11658 * tree-ssa-sccvn.c: Likewise.
11659 * tree-ssa-strlen.c: Likewise.
11660 * tree-ssa-structalias.c: Likewise.
11661 * tree-streamer-in.c: Likewise.
11662 * tree-streamer-out.c: Likewise.
11663 * tree-streamer.c: Likewise.
11664 * tree-switch-conversion.c: Likewise.
11665 * tree-tailcall.c: Likewise.
11666 * tree-vect-data-refs.c: Likewise.
11667 * tree-vect-stmts.c: Likewise.
11668 * tree-vectorizer.c: Likewise.
11669 * tree.c: Likewise.
11670 * tsan.c: Likewise.
11671 * ubsan.c: Likewise.
11672 * value-prof.c: Likewise.
11673 * varasm.c: Likewise.
11674 * varpool.c: Likewise.
11675 * config/arm/arm.c: Likewise.
11676 * config/bfin/bfin.c: Likewise.
11677 * config/c6x/c6x.c: Likewise.
11678 * config/cris/cris.c: Likewise.
11679 * config/darwin-c.c: Likewise.
11680 * config/darwin.c: Likewise.
11681 * config/i386/i386.c: Likewise.
11682 * config/i386/winnt.c: Likewise.
11683 * config/microblaze/microblaze.c: Likewise.
11684 * config/mips/mips.c: Likewise.
11685 * config/rs6000/rs6000.c: Likewise.
11686 * config/rx/rx.c: Likewise.
11687 * config/s390/s390.c: Likewise.
11688 * config/tilegx/mul-tables.c: Likewise.
11689
11690 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11691
11692 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11693 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11694 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11695 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11696 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11697 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11698 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11699 config/microblaze/microblaze.c, config/mips/mips.c,
11700 config/mmix/mmix.c, config/mn10300/mn10300.c,
11701 config/moxie/moxie.c, config/msp430/msp430.c,
11702 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11703 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11704 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11705 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11706 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11707 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11708 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11709 target-def.h include.
11710 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11711
11712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11713
11714 * Makefile.in (TARGET_DEF): Add target-insns.def.
11715 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11716 (build/gentarget-def.o): New rule.
11717 (genprogrtl): Add target-def.
11718 * target-insns.def, gentarget-def.c: New files.
11719 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11720 based on the contents of target-insns.def.
11721 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11722 (HAVE_return, gen_return): Delete.
11723 * target-def.h: Include insn-target-def.h.
11724 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11725 instead of direct calls. Rely on them to do the appropriate assertions.
11726 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11727 (convert_jumps_to_returns): Use targetm interface instead of
11728 direct calls.
11729 (thread_prologue_and_epilogue_insns): Likewise.
11730 * reorg.c (find_end_label, dbr_schedule): Likewise.
11731 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11732 * shrink-wrap.c (convert_to_simple_return): Likewise.
11733 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11734
11735 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11736
11737 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11738 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11739 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11740 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11741 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11742 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11743 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11744 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11745 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11746 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11747 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11748 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11749 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11750 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11751 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11752 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11753 includes to end.
11754
11755 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11756
11757 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11758 (unbounded_int_hashmap_traits::key_type): Likewise.
11759 * hash-map.h (hash_map): Get the key type from the traits.
11760 * hash-traits.h (default_hash_traits): By default, inherit from the
11761 template parameter.
11762 * alias.c (alias_set_traits): Delete.
11763 (alias_set_entry_d::children): Use alias_set_hash as the first
11764 template parameter.
11765 (record_alias_subset): Update accordingly.
11766 * except.c (tree_hash_traits): Delete.
11767 (type_to_runtime_map): Use tree_hash as the first template parameter.
11768 (init_eh): Update accordingly.
11769 * genmatch.c (capture_id_map_hasher): Delete.
11770 (cid_map_t): Use nofree_string_hash as first template parameter.
11771 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11772 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11773 Use symbol_compare_hash as the first template parameter in
11774 subdivide_hash_map.
11775 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11776 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11777 template parameter.
11778 * passes.c (pass_registry_hasher): Delete.
11779 (name_to_pass_map): Use nofree_string_hash as the first template
11780 parameter.
11781 (register_pass_name): Update accordingly.
11782 * sanopt.c (sanopt_tree_map_traits): Delete.
11783 (sanopt_tree_triplet_map_traits): Delete.
11784 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11785 template parameter.
11786 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11787 the first template parameter.
11788 * sese.c (rename_map_hasher): Delete.
11789 (rename_map_type): Use tree_ssa_name_hash as the first template
11790 parameter.
11791 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11792 (function_summary::m_map): Use map_hash as the first template
11793 parameter.
11794 (function_summary::release): Update accordingly.
11795 * tree-if-conv.c (phi_args_hash_traits): Delete.
11796 (predicate_scalar_phi): Use tree_operand_hash as the first template
11797 parameter to phi_arg_map.
11798 * tree-inline.h (dependence_hasher): Delete.
11799 (copy_body_data::dependence_map): Use dependence_hash as the first
11800 template parameter.
11801 * tree-inline.c (remap_dependence_clique): Update accordingly.
11802 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11803 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11804 parameter.
11805 (addr_stridxptr): Update accordingly.
11806 * value-prof.c (profile_id_traits): Delete.
11807 (cgraph_node_map): Use profile_id_hash as the first template
11808 parameter.
11809 (init_node_map): Update accordingly.
11810 * config/alpha/alpha.c (string_traits): Delete.
11811 (machine_function::links): Use nofree_string_hash as the first
11812 template parameter.
11813 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11814 * config/m32c/m32c.c (pragma_traits): Delete.
11815 (pragma_htab): Use nofree_string_hash as the first template parameter.
11816 (m32c_note_pragma_address): Update accordingly.
11817 * config/mep/mep.c (pragma_traits): Delete.
11818 (pragma_htab): Use nofree_string_hash as the first template parameter.
11819 (mep_note_pragma_flag): Update accordingly.
11820 * config/mips/mips.c (mips16_flip_traits): Delete.
11821 (mflip_mips16_htab): Use nofree_string_hash as the first template
11822 parameter.
11823 (mflip_mips16_use_mips16_p): Update accordingly.
11824 (local_alias_traits): Delete.
11825 (mips16_local_aliases): Use nofree_string_hash as the first template
11826 parameter.
11827 (mips16_local_alias): Update accordingly.
11828
11829 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11830
11831 * hash-map-traits.h (default_hashmap_traits): Delete.
11832
11833 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11834
11835 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11836 (unbounded_int_hashmap_traits): Likewise.
11837 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11838
11839 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11840
11841 * ipa-icf.h (symbol_compare_hash): New class.
11842 (symbol_compare_hashmap_traits): Use it.
11843 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11844 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11845 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11846 default_hashmap_traits.
11847 * sanopt.c (sanopt_tree_triplet_hash): New class.
11848 (sanopt_tree_triplet_map_traits): Use it.
11849
11850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11851
11852 * gengtype-parse.c (require_template_declaration): Allow '+' in
11853 template parameters. Consolidate cases.
11854 * hash-traits.h (int_hash): New class.
11855 * alias.c (alias_set_hash): New structure.
11856 (alias_set_traits): Use it.
11857 * symbol-summary.h (function_summary::map_hash): New class.
11858 (function_summary::summary_hashmap_traits): Use it.
11859 * tree-inline.h (dependence_hash): New class.
11860 (dependence_hasher): Use it.
11861 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11862 * value-prof.c (profile_id_hash): New class.
11863 (profile_id_traits): Use it.
11864
11865 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11866
11867 * config/mips/mips.c (mips16_flip_traits): Use it.
11868 (local_alias_traits, mips16_local_aliases): Convert from a map of
11869 rtxes to a map of symbol names.
11870 (mips16_local_alias): Update accordingly.
11871
11872 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11873
11874 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11875 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11876 * passes.c (pass_registry_hasher): Likewise.
11877 * config/alpha/alpha.c (string_traits): Likewise.
11878 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11879 * config/m32c/m32c.c (pragma_traits): Likewise.
11880 * config/mep/mep.c (pragma_traits): Likewise.
11881
11882 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11883
11884 * tree-hash-traits.h (tree_hash): New class.
11885 * except.c: Include tree-hash-traits.h.
11886 (tree_hash_traits): Use tree_hash.
11887
11888 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11889
11890 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11891 * sese.c: Include tree-hash-traits.h.
11892 (rename_map_hasher): Use tree_ssa_name_hasher.
11893
11894 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11895
11896 * tree-hash-traits.h (tree_decl_hash): New class.
11897 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11898 (stridxlist_hash_traits): Use tree_decl_hash.
11899
11900 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11901
11902 * tree-hash-traits.h: New file.
11903 (tree_operand_hash): New class.
11904 * sanopt.c: Include tree-hash-traits.h.
11905 (sanopt_tree_map_traits): Use tree_operand_hash.
11906 * tree-if-conv.c: Include tree-hash-traits.h.
11907 (phi_args_hash_traits): Use tree_operand_hash.
11908 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11909 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11910
11911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11912
11913 * hash-map-traits.h: Include hash-traits.h.
11914 (simple_hashmap_traits): New class.
11915 * mem-stats.h (hash_map): Change the default traits to
11916 simple_hashmap_traits<default_hash_traits<Key> >.
11917
11918 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11919
11920 * hash-table.h: Update comments.
11921
11922 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11923
11924 * hash-traits.h (default_hash_traits): New structure.
11925 * hash-set.h (default_hashset_traits): Delete.
11926 (hash_set): Use default_hash_traits<Key> instead of
11927 default_hashset_traits. Delete hash_entry type and use Key directly.
11928 * ipa-devirt.c (pair_traits): Delete.
11929 (default_hash_traits <type_pair>): Override.
11930 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11931 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11932
11933 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11934
11935 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11936
11937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11938
11939 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11940 (has_is_empty, is_empty_helper): Delete.
11941 (has_mark_deleted, mark_deleted_helper): Delete.
11942 (has_mark_empty, mark_empty_helper): Delete.
11943 (hash_table::is_deleted): Call the Descriptor unconditionally.
11944 (hash_table::is_empty): Likewise.
11945 (hash_table::mark_deleted): Likewise.
11946 (hash_table::mark_empty): Likewise.
11947
11948 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11949
11950 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11951 redundant typedefs and members.
11952 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11953 redundant typedefs.
11954 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11955 * ipa-devirt.c (odr_name_hasher): Likewise.
11956 (polymorphic_call_target_hasher): Likewise.
11957 * ira-costs.c (cost_classes_hasher): Likewise.
11958 * statistics.c (stats_counter_hasher): Likewise.
11959 * trans-mem.c (log_entry_hasher): Likewise.
11960 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11961 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11962 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11963 * var-tracking.c (variable_hasher): Likewise.
11964 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11965 Remove redundant typedefs and members.
11966
11967 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11968
11969 * hash-traits.h (ggc_cache_hasher): Rename to...
11970 (ggc_cache_remove): ...this and remove typedefs.
11971 (ggc_cache_ptr_hash): New class.
11972 * hash-table.h: Update commentary.
11973 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11974 rather than ggc_cache_hasher.
11975 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11976 (const_double_hasher, const_fixed_hasher): Likewise.
11977 * function.c (insn_cache_hasher): Likewise.
11978 * trans-mem.c (tm_wrapper_hasher): Likewise.
11979 * tree.h (tree_decl_map_cache_hasher): Likewise.
11980 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11981 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11982 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11983 * varasm.c (tm_clone_hasher): Likewise.
11984 * config/i386/i386.c (dllimport_hasher): Likewise.
11985 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11986 (tree_hasher): Likewise.
11987
11988 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11989
11990 * hash-traits.h (ggc_hasher): Rename to...
11991 (ggc_remover): ...this and remove typedefs.
11992 (ggc_cache_hasher): Update accordingly. Add typedefs.
11993 (ggc_ptr_hash): New class.
11994 * hash-table.h: Update comment.
11995 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11996 ggc_hasher.
11997 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11998 (tree_descriptor_hasher): Likewise.
11999 * cgraph.c (function_version_hasher): Likewise.
12000 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12001 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12002 (dw_loc_list_hasher, addr_hasher): Likewise.
12003 * function.h (used_type_hasher): Likewise.
12004 * function.c (temp_address_hasher): Likewise.
12005 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12006 * libfuncs.h (libfunc_hasher): Likewise.
12007 * lto-streamer.h (decl_state_hasher): Likewise.
12008 * optabs.c (libfunc_decl_hasher): Likewise.
12009 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12010 * varasm.c (section_hasher, object_block_hasher): Likewise.
12011 (const_rtx_desc_hasher): Likewise.
12012 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12013 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12014
12015 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12016
12017 * hash-traits.h (free_ptr_hash): New class.
12018 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12019 rather than typed_free_remove. Remove redudant typedefs.
12020 (external_ref_hasher): Likewise.
12021 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12022 (ehspec_hasher): Likewise.
12023 * ggc-common.c (saving_hasher): Likewise.
12024 * gimplify.c (gimplify_hasher): Likewise.
12025 * haifa-sched.c (delay_i2_hasher): Likewise.
12026 * loop-invariant.c (invariant_expr_hasher): Likewise.
12027 * loop-iv.c (biv_entry_hasher): Likewise.
12028 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12029 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12030 * tree-cfg.c (locus_discrim_hasher): Likewise.
12031 * tree-eh.c (finally_tree_hasher): Likewise.
12032 * tree-into-ssa.c (var_info_hasher): Likewise.
12033 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12034 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12035 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12036 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12037 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12038 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12039 (shared_bitmap_hasher): Likewise.
12040 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12041 * tree-vectorizer.h (peel_info_hasher): Likewise.
12042 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12043 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12044
12045 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12046
12047 * hash-table.h: Update comments.
12048 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12049 (nofree_ptr_hash): New class.
12050 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12051 than typed_noop_remove. Remove redudant typedefs.
12052 * attribs.c (attribute_hasher): Likewise.
12053 * cfg.c (bb_copy_hasher): Likewise.
12054 * cselib.c (cselib_hasher): Likewise.
12055 * dse.c (invariant_group_base_hasher): Likewise.
12056 * dwarf2cfi.c (trace_info_hasher): Likewise.
12057 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12058 (comdat_type_hasher, loc_list_hasher): Likewise.
12059 * gcse.c (pre_ldst_expr_hasher): Likewise.
12060 * genmatch.c (id_base): Likewise.
12061 * genrecog.c (test_pattern_hasher): Likewise.
12062 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12063 * haifa-sched.c (delay_i1_hasher): Likewise.
12064 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12065 * ipa-icf.h (congruence_class_group_hash): Likewise.
12066 * ipa-profile.c (histogram_hash): Likewise.
12067 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12068 * lto-streamer.h (string_slot_hasher): Likewise.
12069 * lto-streamer.c (tree_entry_hasher): Likewise.
12070 * plugin.c (event_hasher): Likewise.
12071 * postreload-gcse.c (expr_hasher): Likewise.
12072 * store-motion.c (st_expr_hasher): Likewise.
12073 * tree-sra.c (uid_decl_hasher): Likewise.
12074 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12075 (ssa_name_var_hash): Likewise.
12076 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12077 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12078 * tree-ssa-pre.c (pre_expr_d): Likewise.
12079 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12080 * vtable-verify.h (registration_hasher): Likewise.
12081 * vtable-verify.c (vtbl_map_hasher): Likewise.
12082 * config/arm/arm.c (libcall_hasher): Likewise.
12083 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12084 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12085 * config/sol2.c (comdat_entry_hasher): Likewise.
12086 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12087 (print_fold_checksum, fold_checksum_tree): Likewise.
12088 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12089 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12090 (fold_build_call_array_loc): Likewise.
12091 * tree-ssa-ccp.c (gimple_htab): Likewise.
12092 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12093 rather than pointer_type.
12094
12095 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12096
12097 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12098 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12099
12100 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12101
12102 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12103 (ggc_hasher::ggc_mx): Likewise.
12104 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12105 that duplicate ggc_hasher ones.
12106
12107 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12108
12109 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12110 (gt_cleare_cache): Check here for deleted and empty entries.
12111 Replace handle_cache_entry with a call to keep_cache_entry.
12112 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12113 (ggc_cache_hasher::keep_cache_entry): New function.
12114 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12115 (tm_wrapper_hasher::keep_cache_entry): New function.
12116 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12117 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12118 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12119 (type_cache_hasher::keep_cache_entry): New function.
12120 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12121 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12122 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12123 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12124 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12125 (tm_clone_hasher::keep_cache_entry): New function.
12126 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12127 (dllimport_hasher::keep_cache_entry): New function.
12128
12129 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12130
12131 * hash-table.h: Include hash-traits.h.
12132 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12133 (ggc_cache_hasher): Move to...
12134 * hash-traits.h: ...this new file.
12135
12136 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12137
12138 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12139 struct cl_optimization.
12140 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12141 * tree.c (make_node_stat): Allocate cl_optimization struct.
12142 (copy_node_stat): Allocate and copy cl_optimization struct.
12143
12144 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12145
12146 * function.h (struct incoming_args): Move struct.
12147 (pass_by_reference, reference_callee_copied): Remove prototypes.
12148 * emit-rtl.h (struct incoming_args): Relocate struct here.
12149 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12150 prototypes here.
12151 * function.c (pass_by_reference, reference_callee_copied): Move.
12152 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12153 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12154 * ipa-chkp.c: Include calls.h.
12155
12156 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12157
12158 * alias.h (alias_set_type): Move typedef.
12159 * coretypes.h (alias_set_type): Relocate typedef here.
12160 * rtl.h: Don't include alias.h.
12161
12162 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12163
12164 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12165 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12166 and instance.
12167 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12168 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12169 doesn't exist.
12170 * calls.c: Include hard-reg-set.h before rtl.h.
12171 * ira.c: Likewise.
12172
12173 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12174 Vladimir Makarov <vmakarov@redhat.com>
12175
12176 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12177 Add assert.
12178
12179 2015-06-25 Richard Biener <rguenther@suse.de>
12180
12181 * fold-const.c (fold_binary_loc): Move simplification of
12182 (X <<>> C1) & C2 ...
12183 * match.pd: ... here.
12184
12185 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12186
12187 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12188
12189 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12190
12191 * match.pd: Add patterns for vec_conds between 1 and 0.
12192
12193 2015-06-25 Richard Biener <rguenther@suse.de>
12194
12195 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12196 STMT_VINFO_VEC_STMT for SLP.
12197 (vectorizable_store): Likewise.
12198 (vectorizable_load): Likewise.
12199 (vect_transform_stmt): Catch SLP vectorization clobbering
12200 STMT_VINFO_VEC_STMT.
12201
12202 2015-06-25 Richard Biener <rguenther@suse.de>
12203
12204 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12205 dumping.
12206 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12207 cleanup resulting dead code and parameters.
12208 (vect_transform_slp_perm_load): Adjust.
12209
12210 2015-06-25 Nick Clifton <nickc@redhat.com>
12211
12212 * config/bfin/bfin.c (bfin_expand_prologue): Set
12213 current_function_static_stack_size if flag_stack_usage_info is set.
12214 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12215 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12216 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12217 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12218
12219 2015-06-25 Tom de Vries <tom@codesourcery.com>
12220
12221 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12222 comment that the generated IV is unsigned.
12223
12224 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12225
12226 PR target/29693
12227 * config/arm/arm.c (arm_dbx_register_number): Return
12228 DWARF_FRAME_REGISTERS by default.
12229
12230 2015-06-25 Tom de Vries <tom@codesourcery.com>
12231
12232 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12233 argument. Call verify_dominator when reusing dominator info.
12234
12235 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12236
12237 PR target/66563
12238 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12239 an additional element of the unspec vector. Modify indices
12240 of operands.
12241 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12242 * config/sh/sh.c (prepare_move_operands): Pass incremented
12243 const_int to gen_GOTaddr2picreg.
12244 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12245
12246 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12247
12248 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12249 Condition on TARGET_FLOAT.
12250
12251 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12252
12253 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12254 and (no)crypto.
12255
12256 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12257
12258 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12259
12260 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12261 aarch64_err_no_fpadvsimd.
12262
12263 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12264 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12265 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12266 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12267 Turn error into assert, test TARGET_FLOAT.
12268 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12269 TARGET_FLOAT.
12270
12271 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12272
12273 PR debug/66482
12274 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12275
12276 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12277
12278 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12279
12280 2015-06-24 Renlin Li <renlin.li@arm.com>
12281
12282 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12283 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12284
12285 2015-06-24 Richard Biener <rguenther@suse.de>
12286
12287 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12288 (main): Likewise.
12289 (lower_opt_convert): Support lowering of conditional view_convert.
12290 (parser::parse_operation): Likewise.
12291 (parser::parse_for): Likewise.
12292
12293 2015-06-24 Renlin Li <renlin.li@arm.com>
12294
12295 * varasm.c (emit_local): Use unsigned int for align variable.
12296
12297 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12298
12299 PR target/63408
12300 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12301 for negative numbers.
12302
12303 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12304
12305 PR rtl-optimization/66306
12306 * reload.c (find_reloads): Swap the match_dup info for
12307 commutative operands.
12308
12309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12310
12311 * config/s390/vx-builtins.md
12312 ("vec_scatter_element<mode>_<non_vec_int>")
12313 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12314 attribute with bhfgq.
12315
12316 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12317
12318 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12319
12320 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12321
12322 * config/s390/s390-builtin-types.def: Add flag to indicate the
12323 options under which the function type is needed.
12324 * config/s390/s390-builtins.def: Add flag to indicate the options
12325 under which the builtin is enabled.
12326 * config/s390/s390-builtins.h: Add flags parameter to macro
12327 definitions.
12328 (bflags_for_builtin): New function.
12329 (flags_for_builtin): Renamed to ...
12330 (opflags_for_builtin): ... this.
12331 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12332 flags_for_builtin to bflags_for_builtin and
12333 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12334 * config/s390/s390.c: Add initialization of bflags_builtin and
12335 opflags_builtin arrays.
12336 Remove code for flags_builtin.
12337 (s390_init_builtins): Only create builtin function types if one of
12338 their flags is active.
12339 Only create builtins if all of their flags are active.
12340 (s390_expand_builtin): Rename flags_for_builtin to
12341 opflags_for_builtin.
12342
12343 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12344
12345 * config/s390/vecintrin.h: Remove internal builtins.
12346
12347 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12348
12349 * config/s390/s390.c (s390_secondary_reload): Fix check for
12350 GENERAL_REGS register class.
12351
12352 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12353
12354 * config/s390/s390.c (s390_support_vector_misalignment): Call
12355 default implementation for !TARGET_VX.
12356
12357 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12358
12359 * config/s390/s390.c (s390_legitimate_constant_p): Add
12360 TARGET_VX check.
12361
12362 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12363
12364 * config/s390/s390.c (s390_vector_abi): New variable definition.
12365 (s390_check_type_for_vector_abi): New function.
12366 (TARGET_ASM_FILE_END): New macro definition.
12367 (s390_asm_file_end): New function.
12368 (s390_function_arg): Call s390_check_type_for_vector_abi.
12369 (s390_gimplify_va_arg): Likewise.
12370 * configure: Regenerate.
12371 * configure.ac: Check for .gnu_attribute Binutils feature.
12372
12373 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12374
12375 PR target/65803
12376 * config/bfin/bfin.c (hwloop_optimize): Initialize
12377 JUMP_LABEL for newly created jump.
12378
12379 2015-06-23 Tristan Gingold <gingold@adacore.com>
12380
12381 * collect-utils.c (collect_wait): Unlink the response file here
12382 instead of...
12383 (do_wait): ...here.
12384 (utils_cleanup): ...and here.
12385
12386 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12387
12388 * df-scan.c: Don't include target-def.h.
12389 * targhooks.c: Likewise.
12390 * config/arm/arm-c.c: Likewise.
12391 * config/i386/i386-c.c: Likewise.
12392 * config/nds32/nds32-cost.c: Likewise.
12393 * config/nds32/nds32-fp-as-gp.c: Likewise.
12394 * config/nds32/nds32-intrinsic.c: Likewise.
12395 * config/nds32/nds32-isr.c: Likewise.
12396 * config/nds32/nds32-md-auxiliary.c: Likewise.
12397 * config/nds32/nds32-memory-manipulation.c: Likewise.
12398 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12399 * config/nds32/nds32-predicates.c: Likewise.
12400
12401 2015-06-23 Richard Biener <rguenther@suse.de>
12402
12403 PR tree-optimization/66636
12404 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12405 def type for further defs for strided stores.
12406
12407 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12408
12409 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12410 conditional selects.
12411 (setcc_int<mode>, setcc_float<mode>): Reformat.
12412
12413 2015-06-23 Marek Polacek <polacek@redhat.com>
12414
12415 * match.pd ((x + y) - (x | y) -> x & y,
12416 (x + y) - (x & y) -> x | y): New patterns.
12417
12418 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12419
12420 PR 65711
12421 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12422 '-dynamic-linker' within %{!shared: ...}.
12423
12424 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12425
12426 PR target/66560
12427 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12428 (addsub_vs_operator): Ditto.
12429 (addsub_vs_parallel): Ditto.
12430 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12431 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12432 Put minus RTX before plus and adjust vec_merge selector.
12433 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12434 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12435 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12436 (addsub vec_merge splitters): New combiner splitters.
12437 (addsub vec_select/vec_concat splitters): Ditto.
12438
12439 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12440
12441 PR tree-optimization/66449
12442 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12443 POINTER_PLUS_EXPR for pointers.
12444
12445 2015-06-23 Alan Modra <amodra@gmail.com>
12446
12447 * rtlanal.c (commutative_operand_precedence): Correct comments.
12448 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12449 declaration. Return an int. Distinguish REG,REG return from
12450 others.
12451 (struct simplify_plus_minus_op_data): Make local to function.
12452 (simplify_plus_minus): Don't set canonicalized if merely sorting
12453 registers. Avoid packing ops if nothing changes. White space fixes.
12454
12455 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12456
12457 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12458 -fdump-ada-spec is passed but not if -fsyntax-only is.
12459
12460 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12461
12462 PR bootstrap/63740
12463 * lra-lives.c (process_bb_lives): Check insn copying the same
12464 reload pseudo and don't create a copy for it.
12465
12466 2015-06-22 Tom de Vries <tom@codesourcery.com>
12467
12468 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12469 for cond_stmt.
12470
12471 2015-06-22 Tom de Vries <tom@codesourcery.com>
12472
12473 * builtins.def (DEF_GOMP_BUILTIN): Test
12474 'flag_tree_parallelize_loops > 1' instead of
12475 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12476
12477 2015-06-22 Tom de Vries <tom@codesourcery.com>
12478
12479 * dominance.c (calculate_dominance_info): Verify dominators if
12480 early-out.
12481
12482 2015-06-22 Marek Polacek <polacek@redhat.com>
12483
12484 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12485 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12486 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12487 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12488
12489 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12490
12491 PR target/65871
12492 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12493 cost of embedded comparison.
12494
12495 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12496
12497 PR target/65914
12498 * config/rs6000/predicates.md (altivec_register_operand): Permit
12499 virtual stack registers.
12500 (vsx_register_operand): Likewise.
12501 (vfloat_operand): Likewise.
12502 (vint_operand): Likewise.
12503 (vlogical_operand): Likewise.
12504
12505 2015-06-22 Richard Biener <rguenther@suse.de>
12506
12507 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12508 and single_scalar_iteration_cost members.
12509 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12510 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12511 (vect_get_single_scalar_iteration_cost): Remove.
12512 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12513 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12514 * tree-vect-loop.c (destroy_loop_vec_info): Free
12515 scalar_cost_vec.
12516 (vect_get_single_scalar_iteration_cost): Compute result into
12517 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12518 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12519 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12520 (vect_estimate_min_profitable_iters): Use them.
12521
12522 2015-06-22 Christian Bruel <christian.bruel@st.com>
12523
12524 PR target/52144
12525 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12526 (TARGET_INSERT_ATTRIBUTES): Define.
12527 (thumb_flipper): New var.
12528 * config/arm/arm.opt (-mflip-thumb): New switch.
12529
12530 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12531 Martin Liska <mliska@suse.cz>
12532
12533 PR ipa/65908
12534 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12535 construction of arg_types.
12536 (sem_function::sem_function): Likewise.
12537 (sem_function::~sem_function): Remove destruction of arg_types.
12538 (sem_function::compatible_parm_types_p): New function.
12539 (sem_function::equals_wpa): Reorg matching of return values
12540 and parameter types.
12541 (sem_function::equals_private): Reorg mathcing of argument types.
12542 (sem_function::parse_tree_args): Remove.
12543 * ipa-icf.h (init_wpa): Do not call it.
12544 (parse_tree_args): Remove.
12545 (compatible_parm_types_p): Declare.
12546 (result_type): Remove.
12547 (arg_types): Remove.
12548
12549 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12550
12551 PR ipa/66351
12552 * ipa-polymorphic-call.c
12553 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12554 initializing alias oracle; fix formating; set base_alias_set if it
12555 is known.
12556
12557 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12558
12559 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12560 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12561 (find_inc): Likewise.
12562 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12563 swapping.
12564 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12565 * df-scan.c (df_swap_refs): Remove.
12566 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12567 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12568 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12569 * fold-const.c (fold_relational_const): Likewise.
12570 * genattrtab.c (simplify_test_exp): Likewise.
12571 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12572 gimple_simplify): Likewise.
12573 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12574 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12575 * ipa-devirt.c (add_type_duplicate): Likewise.
12576 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12577 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12578 * lra.c (lra_create_copy): Likewise.
12579 * lto-streamer-out.c (DFS::DFS): Likewise.
12580 * modulo-sched.c (get_sched_window): Likewise.
12581 * omega.c (omega_pretty_print_problem): Likewise.
12582 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12583 * reload1.c (reloads_unique_chain_p): Likewise.
12584 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12585 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12586 use std::swap.
12587 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12588 manually swapping.
12589 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12590 predicate_mem_writes): Likewise.
12591 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12592 * tree-predcom.c (combine_chains): Likewise.
12593 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12594 refs_may_alias_p_1): Likewise.
12595 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12596 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12597 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12598 number_of_iterations_cond): Likewise.
12599 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12600 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12601 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12602 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12603 * tree-vrp.c (extract_range_from_binary_expr_1,
12604 extract_range_from_unary_expr_1): Likewise.
12605
12606 2015-06-20 Marek Polacek <polacek@redhat.com>
12607
12608 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12609
12610 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12611
12612 PR target/66591
12613 * config/sh/sh.c (prepare_move_operands): Replace subreg
12614 index term with R0 for base and index addressing.
12615
12616 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12617
12618 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12619 op1 is an fp zero.
12620 (movsf_aarch64): Change condition from register_operand to
12621 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12622 load1. Change type for alternative 7 to store1.
12623 (movdf_aarch64): Likewise.
12624
12625 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12626
12627 * config/vax/vax.md: Adjust sign/zero extend patterns to
12628 handle SUBREGs in operands[1].
12629
12630 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12631
12632 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12633 of manually swapping.
12634 (expand_vec_perm_interleave2): Likewise.
12635
12636 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12637
12638 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12639 reuse bounds created for abnormal ssa names.
12640
12641 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12642
12643 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12644 (allocate_stack_<mode>): ... this, and add :P on both
12645 match_operand and unspec.
12646 (allocate_stack): New expander.
12647
12648 2015-06-19 Christian Bruel <christian.bruel@st.com>
12649
12650 PR target/66541
12651 PR target/52144
12652 * config/arm/arm.c (arm_set_current_function): Handle
12653 explicit default options.
12654
12655 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12656
12657 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12658 (zero-extended cmove with mem peephole2): New pattern.
12659 (cmove with mem peephole2): Merge patterns.
12660
12661 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12662
12663 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12664
12665 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12666
12667 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12668 * config/mips/mips.md (*madd4<mode>): Ditto.
12669 (*nmadd3<mode>) Ditto.
12670 (*nmadd4<mode>_fastmath): Ditto.
12671 (*nmadd3<mode>_fastmath): Ditto.
12672 (*nmsub4<mode>): Ditto.
12673 (*nmsub3<mode>): Ditto.
12674 (*nmsub4<mode>_fastmath): Ditto.
12675 (*nmsub3<mode>_fastmath): Ditto.
12676
12677 2015-06-18 Michael Matz <matz@suse.de>
12678
12679 PR middle-end/66253
12680 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12681 grouped strided stores.
12682 (vectorizable_load): Don't use the DR from first_stmt in
12683 the non-SLP grouped strided case.
12684
12685 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12686
12687 PR target/66569
12688 * function.c (assign_bounds): Add arguments assign_regs,
12689 assign_special, assign_bt.
12690 (assign_parms): For vararg functions handle bounds in BT
12691 and special slots after incoming vararg bounds.
12692
12693 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12694
12695 PR middle-end/66568
12696 * cfgexpand.c (expand_return): Handle missing bounds.
12697 (expand_gimple_stmt_1): Likewise.
12698 * tree-chkp.c (chkp_expand_zero_bounds): New.
12699 * tree-chkp.h (chkp_expand_zero_bounds): New.
12700
12701 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12702
12703 PR middle-end/66567
12704 * ipa-chkp.c (chkp_maybe_create_clone): Require
12705 functions to be instrumentable.
12706 * tree-chkp.c (chkp_replace_function_pointer): Use
12707 chkp_instrumentable_p instead of attribute check.
12708
12709 2015-06-18 Richard Biener <rguenther@suse.de>
12710
12711 PR tree-optimization/66510
12712 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12713 number of vector loads for SLP permuted loads.
12714 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12715 check the stride for loop vectorization.
12716 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12717 vectorization factor.
12718 (vect_analyze_group_access): If the group size is not a power
12719 of two require a epilogue loop.
12720 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12721 compute and optimizing and alias test pruning after final
12722 vectorization factor computation.
12723 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12724 vector alignment.
12725 (vect_transform_slp_perm_load): Properly compute the original
12726 number of vector load stmts.
12727
12728 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12729
12730 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12731 "unlikely character , in @var" warning.
12732
12733 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12734
12735 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12736 (ix86_function_arg_advance): Ditto.
12737 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12738
12739 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12740
12741 * function.h (struct rtl_data): Remove struct and accessor macros.
12742 * emit-rtl.h (struct rtl_data): Relocate to here.
12743 * Makefile.in (GTFILES): Add emit-rtl.h.
12744 * df-core.c: Include emit-rtl.h.
12745 * genattrtab.c: Likewise.
12746 * genconditions.c: Likewise.
12747 * genpreds.c: Likewise.
12748 * genrecog.c: Likewise.
12749 * regcprop.c: Likewise.
12750 * resource.c: Likewise.
12751 * sched-rgn.c: Likewise.
12752 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12753 * config/i386/winnt.c: Likewise.
12754
12755 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12756
12757 PR middle-end/66429
12758 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12759 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12760 and has_force_vectorize_loops flags from cfun into
12761 child_cfun.
12762 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12763 if simduid is non-NULL.
12764 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12765 * passes.def (pass_simduid_cleanup): Add new pass after loop
12766 passes.
12767 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12768 indirection from htab argument's type.
12769 (shrink_simd_arrays): New function.
12770 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12771 Don't call adjust_simduid_builtins if there are no loops.
12772 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12773 (pass_simduid_cleanup::execute): New method.
12774 (make_pass_simduid_cleanup): New function.
12775
12776 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12777
12778 * tree-core.h (tree_target_option): Make opts field a pointer to a
12779 cl_target_option instead of an instance of the struct.
12780 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12781 the structure.
12782 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12783 TARGET_OPTION_NODE.
12784 (copy_node_stat): Allocate and copy struct cl_target_option.
12785
12786 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12787
12788 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12789 Remove conditional exposure of prototypes.
12790 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12791 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12792 definitions in tree.h with functions.
12793 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12794 anon_aggrname_p.
12795 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12796
12797 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12798
12799 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12800 (*cmp<mode>_signed): ... this.
12801 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12802 (*cmp<mode>_unsigned): ... this. Remove %b.
12803
12804 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12805
12806 * coretypes.h: Include input.h and as-a.h.
12807 * rtl.h: Include input.h and as-a.h for generator files.
12808 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12809 * vec.c: Don't include diagnostic-core.h.
12810 * alias.c: Do not include input.h, line-map.h or is-a.h.
12811 * asan.c: Likewise.
12812 * attribs.c: Likewise.
12813 * auto-inc-dec.c: Likewise.
12814 * auto-profile.c: Likewise.
12815 * bb-reorder.c: Likewise.
12816 * bt-load.c: Likewise.
12817 * builtins.c: Likewise.
12818 * caller-save.c: Likewise.
12819 * calls.c: Likewise.
12820 * ccmp.c: Likewise.
12821 * cfg.c: Likewise.
12822 * cfganal.c: Likewise.
12823 * cfgbuild.c: Likewise.
12824 * cfgcleanup.c: Likewise.
12825 * cfgexpand.c: Likewise.
12826 * cfghooks.c: Likewise.
12827 * cfgloop.c: Likewise.
12828 * cfgloop.h: Likewise.
12829 * cfgloopanal.c: Likewise.
12830 * cfgloopmanip.c: Likewise.
12831 * cfgrtl.c: Likewise.
12832 * cgraph.c: Likewise.
12833 * cgraphbuild.c: Likewise.
12834 * cgraphclones.c: Likewise.
12835 * cgraphunit.c: Likewise.
12836 * cilk-common.c: Likewise.
12837 * combine-stack-adj.c: Likewise.
12838 * combine.c: Likewise.
12839 * compare-elim.c: Likewise.
12840 * convert.c: Likewise.
12841 * coverage.c: Likewise.
12842 * cppbuiltin.c: Likewise.
12843 * cprop.c: Likewise.
12844 * cse.c: Likewise.
12845 * cselib.c: Likewise.
12846 * data-streamer-in.c: Likewise.
12847 * data-streamer-out.c: Likewise.
12848 * data-streamer.c: Likewise.
12849 * dbxout.c: Likewise.
12850 * dce.c: Likewise.
12851 * ddg.c: Likewise.
12852 * debug.c: Likewise.
12853 * df-core.c: Likewise.
12854 * df-problems.c: Likewise.
12855 * df-scan.c: Likewise.
12856 * df.h: Likewise.
12857 * dfp.c: Likewise.
12858 * diagnostic-core.h: Likewise.
12859 * diagnostic.c: Likewise.
12860 * dojump.c: Likewise.
12861 * dominance.c: Likewise.
12862 * domwalk.c: Likewise.
12863 * double-int.c: Likewise.
12864 * dse.c: Likewise.
12865 * dumpfile.c: Likewise.
12866 * dumpfile.h: Likewise.
12867 * dwarf2asm.c: Likewise.
12868 * dwarf2cfi.c: Likewise.
12869 * dwarf2out.c: Likewise.
12870 * emit-rtl.c: Likewise.
12871 * et-forest.c: Likewise.
12872 * except.c: Likewise.
12873 * explow.c: Likewise.
12874 * expmed.c: Likewise.
12875 * expr.c: Likewise.
12876 * final.c: Likewise.
12877 * fixed-value.c: Likewise.
12878 * fold-const.c: Likewise.
12879 * function.c: Likewise.
12880 * fwprop.c: Likewise.
12881 * gcc-plugin.h: Likewise.
12882 * gcse.c: Likewise.
12883 * generic-match-head.c: Likewise.
12884 * ggc-page.c: Likewise.
12885 * gimple-builder.c: Likewise.
12886 * gimple-expr.c: Likewise.
12887 * gimple-fold.c: Likewise.
12888 * gimple-iterator.c: Likewise.
12889 * gimple-low.c: Likewise.
12890 * gimple-match-head.c: Likewise.
12891 * gimple-pretty-print.c: Likewise.
12892 * gimple-ssa-isolate-paths.c: Likewise.
12893 * gimple-ssa-strength-reduction.c: Likewise.
12894 * gimple-streamer-in.c: Likewise.
12895 * gimple-streamer-out.c: Likewise.
12896 * gimple-streamer.h: Likewise.
12897 * gimple-walk.c: Likewise.
12898 * gimple.c: Likewise.
12899 * gimplify-me.c: Likewise.
12900 * gimplify.c: Likewise.
12901 * godump.c: Likewise.
12902 * graph.c: Likewise.
12903 * graphite-blocking.c: Likewise.
12904 * graphite-dependences.c: Likewise.
12905 * graphite-interchange.c: Likewise.
12906 * graphite-isl-ast-to-gimple.c: Likewise.
12907 * graphite-optimize-isl.c: Likewise.
12908 * graphite-poly.c: Likewise.
12909 * graphite-scop-detection.c: Likewise.
12910 * graphite-sese-to-poly.c: Likewise.
12911 * graphite.c: Likewise.
12912 * haifa-sched.c: Likewise.
12913 * hw-doloop.c: Likewise.
12914 * ifcvt.c: Likewise.
12915 * init-regs.c: Likewise.
12916 * input.c: Likewise.
12917 * internal-fn.c: Likewise.
12918 * ipa-chkp.c: Likewise.
12919 * ipa-comdats.c: Likewise.
12920 * ipa-cp.c: Likewise.
12921 * ipa-devirt.c: Likewise.
12922 * ipa-icf-gimple.c: Likewise.
12923 * ipa-icf.c: Likewise.
12924 * ipa-inline-analysis.c: Likewise.
12925 * ipa-inline-transform.c: Likewise.
12926 * ipa-inline.c: Likewise.
12927 * ipa-polymorphic-call.c: Likewise.
12928 * ipa-profile.c: Likewise.
12929 * ipa-prop.c: Likewise.
12930 * ipa-pure-const.c: Likewise.
12931 * ipa-ref.c: Likewise.
12932 * ipa-reference.c: Likewise.
12933 * ipa-split.c: Likewise.
12934 * ipa-utils.c: Likewise.
12935 * ipa-visibility.c: Likewise.
12936 * ipa.c: Likewise.
12937 * ira-build.c: Likewise.
12938 * ira-color.c: Likewise.
12939 * ira-conflicts.c: Likewise.
12940 * ira-costs.c: Likewise.
12941 * ira-emit.c: Likewise.
12942 * ira-lives.c: Likewise.
12943 * ira.c: Likewise.
12944 * jump.c: Likewise.
12945 * langhooks.c: Likewise.
12946 * lcm.c: Likewise.
12947 * loop-doloop.c: Likewise.
12948 * loop-init.c: Likewise.
12949 * loop-invariant.c: Likewise.
12950 * loop-iv.c: Likewise.
12951 * loop-unroll.c: Likewise.
12952 * lower-subreg.c: Likewise.
12953 * lra-assigns.c: Likewise.
12954 * lra-coalesce.c: Likewise.
12955 * lra-constraints.c: Likewise.
12956 * lra-eliminations.c: Likewise.
12957 * lra-lives.c: Likewise.
12958 * lra-remat.c: Likewise.
12959 * lra-spills.c: Likewise.
12960 * lra.c: Likewise.
12961 * lto-cgraph.c: Likewise.
12962 * lto-compress.c: Likewise.
12963 * lto-opts.c: Likewise.
12964 * lto-section-in.c: Likewise.
12965 * lto-section-out.c: Likewise.
12966 * lto-streamer-in.c: Likewise.
12967 * lto-streamer-out.c: Likewise.
12968 * lto-streamer.c: Likewise.
12969 * mcf.c: Likewise.
12970 * mode-switching.c: Likewise.
12971 * modulo-sched.c: Likewise.
12972 * omega.c: Likewise.
12973 * omp-low.c: Likewise.
12974 * optabs.c: Likewise.
12975 * opts-global.c: Likewise.
12976 * opts.h: Likewise.
12977 * passes.c: Likewise.
12978 * plugin.c: Likewise.
12979 * postreload-gcse.c: Likewise.
12980 * postreload.c: Likewise.
12981 * predict.c: Likewise.
12982 * pretty-print.h: Likewise.
12983 * print-rtl.c: Likewise.
12984 * print-tree.c: Likewise.
12985 * profile.c: Likewise.
12986 * real.c: Likewise.
12987 * realmpfr.c: Likewise.
12988 * recog.c: Likewise.
12989 * ree.c: Likewise.
12990 * reg-stack.c: Likewise.
12991 * regcprop.c: Likewise.
12992 * reginfo.c: Likewise.
12993 * regrename.c: Likewise.
12994 * regstat.c: Likewise.
12995 * reload.c: Likewise.
12996 * reload1.c: Likewise.
12997 * reorg.c: Likewise.
12998 * resource.c: Likewise.
12999 * rtl-chkp.c: Likewise.
13000 * rtl-error.c: Likewise.
13001 * rtlanal.c: Likewise.
13002 * rtlhooks.c: Likewise.
13003 * sanopt.c: Likewise.
13004 * sched-deps.c: Likewise.
13005 * sched-ebb.c: Likewise.
13006 * sched-rgn.c: Likewise.
13007 * sched-vis.c: Likewise.
13008 * sdbout.c: Likewise.
13009 * sel-sched-dump.c: Likewise.
13010 * sel-sched-ir.c: Likewise.
13011 * sel-sched.c: Likewise.
13012 * sese.c: Likewise.
13013 * shrink-wrap.c: Likewise.
13014 * simplify-rtx.c: Likewise.
13015 * stack-ptr-mod.c: Likewise.
13016 * statistics.c: Likewise.
13017 * stmt.c: Likewise.
13018 * stor-layout.c: Likewise.
13019 * store-motion.c: Likewise.
13020 * streamer-hooks.c: Likewise.
13021 * stringpool.c: Likewise.
13022 * symtab.c: Likewise.
13023 * target-globals.c: Likewise.
13024 * targhooks.c: Likewise.
13025 * toplev.c: Likewise.
13026 * tracer.c: Likewise.
13027 * trans-mem.c: Likewise.
13028 * tree-affine.c: Likewise.
13029 * tree-browser.c: Likewise.
13030 * tree-call-cdce.c: Likewise.
13031 * tree-cfg.c: Likewise.
13032 * tree-cfgcleanup.c: Likewise.
13033 * tree-chkp-opt.c: Likewise.
13034 * tree-chkp.c: Likewise.
13035 * tree-chrec.c: Likewise.
13036 * tree-complex.c: Likewise.
13037 * tree-data-ref.c: Likewise.
13038 * tree-dfa.c: Likewise.
13039 * tree-diagnostic.c: Likewise.
13040 * tree-dump.c: Likewise.
13041 * tree-eh.c: Likewise.
13042 * tree-emutls.c: Likewise.
13043 * tree-if-conv.c: Likewise.
13044 * tree-inline.c: Likewise.
13045 * tree-into-ssa.c: Likewise.
13046 * tree-iterator.c: Likewise.
13047 * tree-loop-distribution.c: Likewise.
13048 * tree-nested.c: Likewise.
13049 * tree-nrv.c: Likewise.
13050 * tree-object-size.c: Likewise.
13051 * tree-outof-ssa.c: Likewise.
13052 * tree-parloops.c: Likewise.
13053 * tree-phinodes.c: Likewise.
13054 * tree-predcom.c: Likewise.
13055 * tree-pretty-print.c: Likewise.
13056 * tree-profile.c: Likewise.
13057 * tree-scalar-evolution.c: Likewise.
13058 * tree-sra.c: Likewise.
13059 * tree-ssa-address.c: Likewise.
13060 * tree-ssa-alias.c: Likewise.
13061 * tree-ssa-ccp.c: Likewise.
13062 * tree-ssa-coalesce.c: Likewise.
13063 * tree-ssa-copy.c: Likewise.
13064 * tree-ssa-copyrename.c: Likewise.
13065 * tree-ssa-dce.c: Likewise.
13066 * tree-ssa-dom.c: Likewise.
13067 * tree-ssa-dse.c: Likewise.
13068 * tree-ssa-forwprop.c: Likewise.
13069 * tree-ssa-ifcombine.c: Likewise.
13070 * tree-ssa-live.c: Likewise.
13071 * tree-ssa-loop-ch.c: Likewise.
13072 * tree-ssa-loop-im.c: Likewise.
13073 * tree-ssa-loop-ivcanon.c: Likewise.
13074 * tree-ssa-loop-ivopts.c: Likewise.
13075 * tree-ssa-loop-manip.c: Likewise.
13076 * tree-ssa-loop-niter.c: Likewise.
13077 * tree-ssa-loop-prefetch.c: Likewise.
13078 * tree-ssa-loop-unswitch.c: Likewise.
13079 * tree-ssa-loop.c: Likewise.
13080 * tree-ssa-math-opts.c: Likewise.
13081 * tree-ssa-operands.c: Likewise.
13082 * tree-ssa-phiopt.c: Likewise.
13083 * tree-ssa-phiprop.c: Likewise.
13084 * tree-ssa-pre.c: Likewise.
13085 * tree-ssa-propagate.c: Likewise.
13086 * tree-ssa-reassoc.c: Likewise.
13087 * tree-ssa-sccvn.c: Likewise.
13088 * tree-ssa-scopedtables.c: Likewise.
13089 * tree-ssa-sink.c: Likewise.
13090 * tree-ssa-strlen.c: Likewise.
13091 * tree-ssa-structalias.c: Likewise.
13092 * tree-ssa-tail-merge.c: Likewise.
13093 * tree-ssa-ter.c: Likewise.
13094 * tree-ssa-threadedge.c: Likewise.
13095 * tree-ssa-threadupdate.c: Likewise.
13096 * tree-ssa-uncprop.c: Likewise.
13097 * tree-ssa-uninit.c: Likewise.
13098 * tree-ssa.c: Likewise.
13099 * tree-ssanames.c: Likewise.
13100 * tree-stdarg.c: Likewise.
13101 * tree-streamer-in.c: Likewise.
13102 * tree-streamer-out.c: Likewise.
13103 * tree-streamer.c: Likewise.
13104 * tree-switch-conversion.c: Likewise.
13105 * tree-tailcall.c: Likewise.
13106 * tree-vect-data-refs.c: Likewise.
13107 * tree-vect-generic.c: Likewise.
13108 * tree-vect-loop-manip.c: Likewise.
13109 * tree-vect-loop.c: Likewise.
13110 * tree-vect-patterns.c: Likewise.
13111 * tree-vect-slp.c: Likewise.
13112 * tree-vect-stmts.c: Likewise.
13113 * tree-vectorizer.c: Likewise.
13114 * tree-vrp.c: Likewise.
13115 * tree.c: Likewise.
13116 * tsan.c: Likewise.
13117 * ubsan.c: Likewise.
13118 * valtrack.c: Likewise.
13119 * value-prof.c: Likewise.
13120 * var-tracking.c: Likewise.
13121 * varasm.c: Likewise.
13122 * varpool.c: Likewise.
13123 * vmsdbgout.c: Likewise.
13124 * vtable-verify.c: Likewise.
13125 * web.c: Likewise.
13126 * wide-int.cc: Likewise.
13127 * xcoffout.c: Likewise.
13128 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13129 * common/common-targhooks.c: Likewise.
13130 * config/aarch64/aarch64-builtins.c: Likewise.
13131 * config/aarch64/aarch64.c: Likewise.
13132 * config/alpha/alpha.c: Likewise.
13133 * config/arc/arc.c: Likewise.
13134 * config/arm/aarch-common.c: Likewise.
13135 * config/arm/arm-builtins.c: Likewise.
13136 * config/arm/arm-c.c: Likewise.
13137 * config/arm/arm.c: Likewise.
13138 * config/avr/avr-c.c: Likewise.
13139 * config/avr/avr-log.c: Likewise.
13140 * config/avr/avr.c: Likewise.
13141 * config/bfin/bfin.c: Likewise.
13142 * config/c6x/c6x.c: Likewise.
13143 * config/cr16/cr16.c: Likewise.
13144 * config/cris/cris.c: Likewise.
13145 * config/darwin-c.c: Likewise.
13146 * config/darwin.c: Likewise.
13147 * config/default-c.c: Likewise.
13148 * config/epiphany/epiphany.c: Likewise.
13149 * config/epiphany/mode-switch-use.c: Likewise.
13150 * config/epiphany/resolve-sw-modes.c: Likewise.
13151 * config/fr30/fr30.c: Likewise.
13152 * config/frv/frv.c: Likewise.
13153 * config/ft32/ft32.c: Likewise.
13154 * config/glibc-c.c: Likewise.
13155 * config/h8300/h8300.c: Likewise.
13156 * config/i386/i386-c.c: Likewise.
13157 * config/i386/i386.c: Likewise.
13158 * config/i386/msformat-c.c: Likewise.
13159 * config/i386/winnt-cxx.c: Likewise.
13160 * config/i386/winnt-stubs.c: Likewise.
13161 * config/i386/winnt.c: Likewise.
13162 * config/ia64/ia64-c.c: Likewise.
13163 * config/ia64/ia64.c: Likewise.
13164 * config/iq2000/iq2000.c: Likewise.
13165 * config/lm32/lm32.c: Likewise.
13166 * config/m32c/m32c-pragma.c: Likewise.
13167 * config/m32c/m32c.c: Likewise.
13168 * config/m32r/m32r.c: Likewise.
13169 * config/m68k/m68k.c: Likewise.
13170 * config/mcore/mcore.c: Likewise.
13171 * config/mep/mep-pragma.c: Likewise.
13172 * config/mep/mep.c: Likewise.
13173 * config/microblaze/microblaze-c.c: Likewise.
13174 * config/microblaze/microblaze.c: Likewise.
13175 * config/mips/mips.c: Likewise.
13176 * config/mmix/mmix.c: Likewise.
13177 * config/mn10300/mn10300.c: Likewise.
13178 * config/moxie/moxie.c: Likewise.
13179 * config/msp430/msp430-c.c: Likewise.
13180 * config/msp430/msp430.c: Likewise.
13181 * config/nds32/nds32-cost.c: Likewise.
13182 * config/nds32/nds32-fp-as-gp.c: Likewise.
13183 * config/nds32/nds32-intrinsic.c: Likewise.
13184 * config/nds32/nds32-isr.c: Likewise.
13185 * config/nds32/nds32-md-auxiliary.c: Likewise.
13186 * config/nds32/nds32-memory-manipulation.c: Likewise.
13187 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13188 * config/nds32/nds32-predicates.c: Likewise.
13189 * config/nds32/nds32.c: Likewise.
13190 * config/nios2/nios2.c: Likewise.
13191 * config/nvptx/nvptx.c: Likewise.
13192 * config/pa/pa.c: Likewise.
13193 * config/pdp11/pdp11.c: Likewise.
13194 * config/rl78/rl78-c.c: Likewise.
13195 * config/rl78/rl78.c: Likewise.
13196 * config/rs6000/rs6000-c.c: Likewise.
13197 * config/rs6000/rs6000.c: Likewise.
13198 * config/rx/rx.c: Likewise.
13199 * config/s390/s390-c.c: Likewise.
13200 * config/s390/s390.c: Likewise.
13201 * config/sh/sh-c.c: Likewise.
13202 * config/sh/sh-mem.cc: Likewise.
13203 * config/sh/sh.c: Likewise.
13204 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13205 * config/sh/sh_treg_combine.cc: Likewise.
13206 * config/sol2-c.c: Likewise.
13207 * config/sol2-cxx.c: Likewise.
13208 * config/sol2-stubs.c: Likewise.
13209 * config/sol2.c: Likewise.
13210 * config/sparc/sparc-c.c: Likewise.
13211 * config/sparc/sparc.c: Likewise.
13212 * config/spu/spu-c.c: Likewise.
13213 * config/spu/spu.c: Likewise.
13214 * config/stormy16/stormy16.c: Likewise.
13215 * config/tilegx/mul-tables.c: Likewise.
13216 * config/tilegx/tilegx-c.c: Likewise.
13217 * config/tilegx/tilegx.c: Likewise.
13218 * config/tilepro/mul-tables.c: Likewise.
13219 * config/tilepro/tilepro-c.c: Likewise.
13220 * config/tilepro/tilepro.c: Likewise.
13221 * config/v850/v850-c.c: Likewise.
13222 * config/v850/v850.c: Likewise.
13223 * config/vax/vax.c: Likewise.
13224 * config/visium/visium.c: Likewise.
13225 * config/vms/vms-c.c: Likewise.
13226 * config/vms/vms.c: Likewise.
13227 * config/vxworks.c: Likewise.
13228 * config/winnt-c.c: Likewise.
13229 * config/xtensa/xtensa.c: Likewise.
13230
13231 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13232
13233 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13234 function.
13235 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13236
13237 2015-06-17 Richard Biener <rguenther@suse.de>
13238
13239 PR tree-optimization/66251
13240 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13241 stmts for SLP strided stores.
13242
13243 Revert
13244 2015-05-22 Richard Biener <rguenther@suse.de>
13245
13246 PR tree-optimization/66251
13247 * tree-vect-stmts.c (vectorizable_conversion): Properly
13248 set STMT_VINFO_VEC_STMT even for the SLP case.
13249
13250 2015-05-26 Michael Matz <matz@suse.de>
13251
13252 PR middle-end/66251
13253 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13254 STMT_VINFO_VEC_STMT, also with SLP.
13255
13256 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13257
13258 PR target/56766
13259 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13260 (*avx_addsubv4df3_1s): Ditto.
13261 (*sse3_addsubv2df3_1): Ditto.
13262 (*sse3_addsubv2df3_1s): Ditto.
13263 (*avx_addsubv8sf3_1): Ditto.
13264 (*avx_addsubv8sf3_1s): Ditto.
13265 (*sse3_addsubv4sf3_1): Ditto.
13266 (*sse3_addsubv4sf3_1s): Ditto.
13267
13268 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13269
13270 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13271 (SYSROOT_SUFFIX_SPEC): Update.
13272 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13273 (STARTFILE_PREFIX_SPEC): Update.
13274 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13275 (MULTILIB_REQUIRED): New.
13276 (MULTILIB_OSDIRNAMES): New.
13277 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13278 (MULTILIB_REQUIRED): New.
13279 (MULTILIB_OSDIRNAMES): New.
13280
13281 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13282
13283 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13284 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13285 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13286 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13287 (AARCH64_FL_PAN): New.
13288 (AARCH64_FL_LOR): New.
13289 (AARCH64_FL_RDMA): New.
13290 (AARCH64_FL_FOR_ARCH8_1): New.
13291 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13292 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13293
13294 2015-06-16 Martin Liska <mliska@suse.cz>
13295
13296 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13297 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13298 guard.
13299
13300 2015-06-16 Richard Biener <rguenther@suse.de>
13301
13302 * tree-vect-stmts.c (vectorizable_store): Adjust.
13303 (vectorizable_load): Likewise.
13304 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13305 Simplify.
13306 (vect_create_data_ref_ptr): Likewise.
13307 (bump_vector_ptr): Adjust.
13308
13309 2015-06-16 Richard Biener <rguenther@suse.de>
13310
13311 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13312 with the first element if this is grouped loads.
13313
13314 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13315
13316 * config/arm/arm-protos.h (struct tune_params): Rename
13317 log_op_non_sc to log_op_non_short_circuit, and rename enum
13318 values to expand SC to SHORT_CIRCUIT.
13319 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13320 to LOG_OP_NON_SHORT_CIRCUIT.
13321 (arm_fastmul_tune):Likewise
13322 (arm_strongarm_tune): Likewise.
13323 (arm_xscale_tune): Likewise.
13324 (arm_9e_tune): Likewise.
13325 (arm_marvell_pj4_tune): Likewise.
13326 (arm_v6t2_tune): Likewise.
13327 (arm_cortex_tune): Likewise.
13328 (arm_cortex_a8_tune): Likewise.
13329 (arm_cortex_a7_tune): Likewise.
13330 (arm_cortex_a15_tune): Likewise.
13331 (arm_cortex_a53_tune): Likewise.
13332 (arm_cortex_a57_tune): Likewise.
13333 (arm_xgene1_tune): Likewise.
13334 (arm_cortex_a5_tune): Likewise.
13335 (arm_cortex_a9_tune): Likewise.
13336 (arm_cortex_a12_tune): Likewise.
13337 (arm_v7m_tune): Likewise.
13338 (arm_cortex_m7_tune): Likewise.
13339 (arm_v6m_tune): Likewise.
13340 (arm_fa726te_tune): Likewise.
13341
13342 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13343
13344 * altivec.md: Delete UNSPEC_VMLADDUHM.
13345 (mulv4si3_p8): New pattern.
13346 (mulv4si3): Use it for POWER8.
13347 (mulv8hi3): Use vmladduhm with zero addend.
13348 (altivec_vmladduhm): Descriptive RTL.
13349
13350 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13351
13352 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13353 to use neon_move instead of mov_imm.
13354 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13355 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13356
13357 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13358 aarch64_float_const_zero_rtx_p check before TFmode check.
13359 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13360 an fp zero.
13361 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13362 code and attributes to match. Change condition from register_operand
13363 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13364 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13365 to store2.
13366
13367 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13368
13369 PR debug/66535
13370 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13371 there is no parent.
13372
13373 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13374
13375 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13376 HOST_WIDE_INT parameter.
13377
13378 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13379
13380 PR ipa/66181
13381 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13382 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13383 TYPE_NO_FORCE_BLK.
13384 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13385
13386 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13387
13388 * rtl.h (classify_insn): Declare.
13389 * emit-rtl.c (classify_insn): Move to...
13390 * rtl.c: ...here and add generator support.
13391 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13392 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13393 * genemit.c (gen_emit_seq): New function.
13394 (gen_expand, gen_split): Use it.
13395
13396 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13397
13398 * tree.c (make_vector_stat): Fix comment to state that the
13399 function returns a VECTOR_CST.
13400
13401 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13402
13403 * gensupport.h (add_implicit_parallel): Declare.
13404 * genrecog.c (add_implicit_parallel): Move to...
13405 * gensupport.c (add_implicit_parallel): ...here.
13406 (process_one_cond_exec): Use it.
13407 * genemit.c (gen_insn): Likewise.
13408
13409 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13410
13411 PR bootstrap/66448
13412 * passes.c (rest_of_decl_compilation): Do not register globals for
13413 early debug if they are declared in built-ins.
13414
13415 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13416
13417 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13418
13419 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13420
13421 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13422 manually swapping.
13423 (noce_try_cmove_arith): Likewise.
13424 (noce_get_alt_condition): Likewise.
13425
13426 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13427
13428 * common/config/i386/i386-common.c
13429 (OPTION_MASK_ISA_MWAITX_SET): New.
13430 (ix86_handle_option): Handle mwaitx.
13431 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13432 (x86_64-*-*): Likewise.
13433 * config/i386/mwaitxintrin.h: New header.
13434 * config/i386/cpuid.h (bit_MWAITX): Define.
13435 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13436 MWAITX support.
13437 * config/i386/i386.opt (mwaitx): New.
13438 * config/i386/i386-builtin-types.def
13439 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13440 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13441 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13442 (PTA_MWAITX): New.
13443 (ix86_option_override_internal): Handle new option.
13444 (processor_alias_table): Added PTA_MWAITX.
13445 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13446 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13447 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13448 IX86_BUILTIN_MONITORX built-ins.
13449 * config/i386/i386.h (TARGET_MWAITX): New.
13450 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13451 UNSPEC_MONITORX.
13452 (mwaitx): New pattern.
13453 (monitorx_<mode>): New pattern.
13454 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13455 * doc/extend.texi: Document monitorx and mwaitx builtins.
13456 * doc/invoke.texi: Document -mmwaitx option.
13457
13458 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13459
13460 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13461 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13462
13463 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13464
13465 * dbxout.c (xcoff_debug_hooks): Provide a function for
13466 register_main_translation_unit hook.
13467
13468 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13469
13470 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13471 variants cases from switch.
13472 (rs6000_post_atomic_barrier): Same.
13473 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13474 (rs6000_expand_atomic_exchange): Same.
13475 (rs6000_expand_atomic_op): Same.
13476 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13477 SYNC variants cases from switch.
13478 (atomic_load): Same.
13479 (atomic_store): Same.
13480
13481 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13482
13483 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13484 CONST_INT for goto.
13485
13486 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13487
13488 PR bootstrap/66448
13489 * dwarf2out.c (check_die): Check for common duplicate attributes.
13490 (add_location_or_const_value_attribute): Do not add duplicate
13491 attributes.
13492 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13493 time around.
13494 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13495 (gen_type_die_with_usage): Call check_die.
13496 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13497
13498 2015-06-11 Jason Merrill <jason@redhat.com>
13499
13500 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13501 dies.
13502
13503 2015-06-11 Marek Polacek <polacek@redhat.com>
13504
13505 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13506
13507 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13508
13509 PR bootstrap/66252
13510 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13511 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13512 (*addx_extend_sp32): Fix pasto.
13513 (*subx_extend): Rename into...
13514 (*subx_extend_sp32): ...this.
13515 (*adddi3_extend_sp32): Add earlyclobber.
13516 (*subdi3_insn_sp32): Likewise.
13517 (*subdi3_extend_sp32): Likewise.
13518 (*and_not_di_sp32): Likewise.
13519 (*or_not_di_sp32): Likewise.
13520 (*xor_not_di_sp32): Likewise.
13521 (*negdi2_sp32): Likewise.
13522 (*one_cmpldi2_sp32): Likewise.
13523
13524 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13525
13526 * debug.h (struct gcc_debug_hooks): Add a
13527 register_main_translation_unit hook.
13528 * debug.c (do_nothing_debug_hooks): Provide a function for this
13529 new hook.
13530 * dbxout.c (dbx_debug_hooks): Likewise.
13531 * sdbout.c (sdb_debug_hooks): Likewise.
13532 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13533 * dwarf2out.c (main_translation_unit): New global variable.
13534 (dwarf2out_register_main_translation_unit): New function
13535 implementing the new hook.
13536 (dwarf2_debug_hooks): Assign
13537 dwarf2out_register_main_translation_unit to this new hook.
13538 (dwarf2out_init): Associate any main translation unit to
13539 comp_unit_die ().
13540
13541 2015-06-11 Marek Polacek <polacek@redhat.com>
13542
13543 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13544
13545 2015-06-11 Marek Polacek <polacek@redhat.com>
13546
13547 * match.pd: Use single_use throughout.
13548
13549 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13550
13551 * config/arm/arm.c (arm_option_params_internal): When optimising
13552 for speed set max_insns_skipped when arm_restrict_it.
13553
13554 2015-06-11 Christian Bruel <christian.bruel@st.com>
13555
13556 PR target/52144
13557 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13558 macros in ...
13559 (arm_cpu_builtins): New function.
13560 (arm_pragma_target_parse): Call arm_cpu_builtins.
13561 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13562 (arm_register_target_pragmas): Likewise.
13563 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13564 Call arm_register_target_pragmas.
13565 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13566 (arm_pragma_target_parse): Likewise.
13567
13568 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13569
13570 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13571 of the second operand.
13572
13573 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13574
13575 PR target/66473
13576 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13577 to prepare mask operand for AVX512 modes.
13578
13579 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13580
13581 PR target/66474
13582 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13583 if you use a constraint that targets a VSX register, you must use
13584 %x<n> in the template.
13585
13586 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13587
13588 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13589 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13590 (define_insn "trap"): New definition.
13591
13592 2015-06-10 Richard Biener <rguenther@suse.de>
13593
13594 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13595 out from ...
13596 (vect_supported_load_permutation_p): ... here. Handle
13597 supportable permutations in reductions.
13598 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13599 for vectorizing strided group loads.
13600
13601 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13602
13603 PR target/66470
13604 * config/i386/i386.c (ix86_split_long_move): For collisions
13605 involving direct tls segment refs, move the UNSPEC_TP possibly
13606 wrapped in ZERO_EXTEND out of the address for lea, to each of
13607 the memory loads.
13608
13609 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13610
13611 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13612 dmb sy. Adjust tabs.
13613
13614 2015-06-10 Tom de Vries <tom@codesourcery.com>
13615
13616 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13617
13618 2015-06-10 Martin Liska <mliska@suse.cz>
13619
13620 PR bootstrap/66471
13621 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13622 all enum values in mem_alloc_origin.
13623 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13624 name.
13625 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13626 * bitmap.c (bitmap_register): Likewise.
13627 (dump_bitmap_statistics): Likewise.
13628 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13629 (ggc_record_overhead): Likewise.
13630 * hash-map.h: Likewise.
13631 * hash-set.h: Likewise.
13632 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13633 * hash-table.h: Likewise.
13634 * vec.c (vec_prefix::register_overhead): Likewise.
13635 (vec_prefix::release_overhead): Likewise.
13636 (dump_vec_loc_statistics): Likewise.
13637
13638 2015-06-09 Christian Bruel <christian.bruel@st.com>
13639
13640 PR target/52144
13641 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13642 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13643 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13644 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13645 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13646 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13647 (arm_valid_target_attribute_p): Likewise.
13648 (arm_set_current_function, arm_can_inline_p): Likewise.
13649 (arm_valid_target_attribute_rec): Likewise.
13650 (arm_previous_fndecl): New variable.
13651 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13652 (TARGET_CAN_INLINE_P): Define.
13653 (arm_asm_trampoline_template): Emit mode.
13654 (arm_file_start): Don't set unified syntax.
13655 (arm_declare_function_name): Set unified syntax and mode.
13656 (arm_option_override): Init target_option_default_node.
13657 and target_option_current_node.
13658 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13659 (*call_symbol): Likewise.
13660 * doc/extend.texi: Document ARM/Thumb target attribute.
13661 * doc/invoke.texi: Likewise.
13662
13663 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13664
13665 Revert:
13666 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13667 PR rtl-optimization/64164
13668 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13669 * tree-ssa-copyrename.c: Removed.
13670 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13671 -ftree-coalesce-vars.
13672 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13673 * common.opt (ftree-copyrename): Ignore.
13674 (ftree-coalesce-inlined-vars): Likewise.
13675 * doc/invoke.texi: Remove the ignored options above.
13676 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13677 * tree-ssa-coalesce.h: ... here.
13678 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13679 headers required by it.
13680 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13681 across variables when flag_tree_coalesce_vars. Check register
13682 use and promoted modes to allow coalescing. Moved to
13683 tree-ssa-coalesce.c.
13684 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13685 with its member functions to tree-ssa-coalesce.c.
13686 (var_map_base_init): Likewise. Renamed to
13687 compute_samebase_partition_bases.
13688 (partition_view_normal): Drop want_bases parameter.
13689 (partition_view_bitmap): Likewise.
13690 * tree-ssa-live.h: Adjust declarations.
13691 * tree-ssa-coalesce.c: Include explow.h.
13692 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13693 default defs at the entry point.
13694 (dump_part_var_map): New.
13695 (compute_optimized_partition_bases): New, called by...
13696 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13697 of compute_samebase_partition_bases. Adjust.
13698 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13699 * cfgexpand.c (leader_merge): New.
13700 (get_rtl_for_parm_ssa_default_def): New.
13701 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13702 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13703 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13704 redundant MEM attr setting.
13705 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13706 from...
13707 (expand_one_stack_var): ... this. New wrapper to check and
13708 skip already expanded SSA partitions.
13709 (record_alignment_for_reg_var): New, factored out of...
13710 (expand_one_var): ... this.
13711 (expand_one_ssa_partition): New.
13712 (adjust_one_expanded_partition_var): New.
13713 (expand_one_register_var): Check and skip already expanded SSA
13714 partitions.
13715 (expand_used_vars): Don't create DECLs for anonymous SSA
13716 names. Expand all SSA partitions, then adjust all SSA names.
13717 (pass::execute): Replace the loops that set
13718 SA.partition_to_pseudo from partition leaders and cleared
13719 DECL_RTL for multi-location variables, and that which used to
13720 rename vars and set attrs, with one that clears DECL_RTL and
13721 checks that PARMs and RESULTs default_defs match DECL_RTL.
13722 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13723 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13724 * explow.c (promote_ssa_mode): New.
13725 * explow.h (promote_ssa_mode): Declare.
13726 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13727 * function.c: Include cfgexpand.h.
13728 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13729 (use_register_for_parm_decl): Wrapper for the above to
13730 special-case the result_ptr.
13731 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13732 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13733 multiple locations.
13734 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13735 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13736 (assign_parm_setup_block): Prefer SSA-assigned location.
13737 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13738 if stack_parm is NULL.
13739 (assign_parm_setup_stack): Prefer SSA-assigned location.
13740 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13741 rtl before testing for pointer bounds. Special-case result_ptr.
13742 (expand_function_start): Maybe reset DECL_RTL of result.
13743 Prefer SSA-assigned location for result and static chain.
13744 Factor out DECL_RESULT and SET_DECL_RTL.
13745 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13746 anonymous SSA names. Use promote_ssa_mode.
13747 (get_temp_reg): Likewise.
13748 (remove_ssa_form): Adjust.
13749 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13750 and get its reg_usage for reg invalidation.
13751 (compute_bb_dataflow): Pass it insn.
13752 (emit_notes_in_bb): Likewise.
13753 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13754 fail assert on conversion between unsigned types.
13755
13756 2015-06-09 Tom de Vries <tom@codesourcery.com>
13757
13758 PR tree-optimization/65460
13759 * omp-low.c (expand_omp_target): Set parallelized_function on
13760 cgraph_node for child_fn.
13761
13762 2015-06-09 Tom de Vries <tom@codesourcery.com>
13763
13764 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13765 parallelized_function before add_new_function.
13766
13767 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13768
13769 * gcc-plugin.h: Move decls to plugin.h and include it.
13770 * plugin.h: Relocate decls from gcc-plugin.h
13771 * ggc-page.c: Include required header files.
13772 * passes.c: Likewise.
13773 * cgraphunit.c: Likewise.
13774
13775 2015-06-09 Tom de Vries <tom@codesourcery.com>
13776
13777 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13778
13779 2015-06-09 Jason Merrill <jason@redhat.com>
13780
13781 PR bootstrap/66448
13782 * toplev.c (check_global_declaration): Don't warn about a clone.
13783
13784 2015-06-09 Marek Polacek <polacek@redhat.com>
13785
13786 PR tree-optimization/66299
13787 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13788 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13789 patterns.
13790
13791 2015-06-09 Richard Biener <rguenther@suse.de>
13792
13793 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13794 (vect_analyze_slp_instance): Instead do not falsely drop
13795 load permutations.
13796
13797 2015-06-09 Richard Biener <rguenther@suse.de>
13798
13799 PR middle-end/66423
13800 * match.pd: Handle A % (unsigned)(1 << B).
13801
13802 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13803
13804 * varasm.c (output_object_block_htab): Remove.
13805 (output_object_block_compare): New.
13806 (output_object_blocks): Sort named object_blocks before outputting
13807 them.
13808
13809 2015-06-09 Richard Biener <rguenther@suse.de>
13810
13811 PR tree-optimization/66419
13812 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13813 consider GROUP_GAP when detecting a perfect subchain.
13814
13815 2015-06-09 Nick Clifton <nickc@redhat.com>
13816
13817 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13818 place read only data in the .frodata section.
13819
13820 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13821
13822 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13823 (atomic_store<mode>): Likewise.
13824
13825 2015-06-09 Richard Biener <rguenther@suse.de>
13826
13827 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13828
13829 2015-06-09 Richard Biener <rguenther@suse.de>
13830
13831 PR middle-end/66413
13832 * tree-inline.c (insert_init_debug_bind): Unshare value.
13833
13834 2015-06-09 Richard Biener <rguenther@suse.de>
13835
13836 PR tree-optimization/66396
13837 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13838 Rename virtual operands.
13839
13840 2015-06-09 Tom de Vries <tom@codesourcery.com>
13841
13842 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13843 always return false.
13844
13845 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13846
13847 PR rtl-optimization/64164
13848 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13849 * tree-ssa-copyrename.c: Removed.
13850 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13851 -ftree-coalesce-vars.
13852 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13853 * common.opt (ftree-copyrename): Ignore.
13854 (ftree-coalesce-inlined-vars): Likewise.
13855 * doc/invoke.texi: Remove the ignored options above.
13856 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13857 * tree-ssa-coalesce.h: ... here.
13858 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13859 headers required by it.
13860 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13861 across variables when flag_tree_coalesce_vars. Check register
13862 use and promoted modes to allow coalescing. Moved to
13863 tree-ssa-coalesce.c.
13864 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13865 with its member functions to tree-ssa-coalesce.c.
13866 (var_map_base_init): Likewise. Renamed to
13867 compute_samebase_partition_bases.
13868 (partition_view_normal): Drop want_bases parameter.
13869 (partition_view_bitmap): Likewise.
13870 * tree-ssa-live.h: Adjust declarations.
13871 * tree-ssa-coalesce.c: Include explow.h.
13872 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13873 default defs at the entry point.
13874 (dump_part_var_map): New.
13875 (compute_optimized_partition_bases): New, called by...
13876 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13877 of compute_samebase_partition_bases. Adjust.
13878 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13879 * cfgexpand.c (leader_merge): New.
13880 (get_rtl_for_parm_ssa_default_def): New.
13881 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13882 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13883 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13884 redundant MEM attr setting.
13885 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13886 from...
13887 (expand_one_stack_var): ... this. New wrapper to check and
13888 skip already expanded SSA partitions.
13889 (record_alignment_for_reg_var): New, factored out of...
13890 (expand_one_var): ... this.
13891 (expand_one_ssa_partition): New.
13892 (adjust_one_expanded_partition_var): New.
13893 (expand_one_register_var): Check and skip already expanded SSA
13894 partitions.
13895 (expand_used_vars): Don't create DECLs for anonymous SSA
13896 names. Expand all SSA partitions, then adjust all SSA names.
13897 (pass::execute): Replace the loops that set
13898 SA.partition_to_pseudo from partition leaders and cleared
13899 DECL_RTL for multi-location variables, and that which used to
13900 rename vars and set attrs, with one that clears DECL_RTL and
13901 checks that PARMs and RESULTs default_defs match DECL_RTL.
13902 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13903 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13904 * explow.c (promote_ssa_mode): New.
13905 * explow.h (promote_ssa_mode): Declare.
13906 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13907 * function.c: Include cfgexpand.h.
13908 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13909 (use_register_for_parm_decl): Wrapper for the above to
13910 special-case the result_ptr.
13911 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13912 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13913 multiple locations.
13914 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13915 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13916 (assign_parm_setup_block): Prefer SSA-assigned location.
13917 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13918 if stack_parm is NULL.
13919 (assign_parm_setup_stack): Prefer SSA-assigned location.
13920 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13921 rtl before testing for pointer bounds. Special-case result_ptr.
13922 (expand_function_start): Maybe reset DECL_RTL of result.
13923 Prefer SSA-assigned location for result and static chain.
13924 Factor out DECL_RESULT and SET_DECL_RTL.
13925 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13926 anonymous SSA names. Use promote_ssa_mode.
13927 (get_temp_reg): Likewise.
13928 (remove_ssa_form): Adjust.
13929 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13930 and get its reg_usage for reg invalidation.
13931 (compute_bb_dataflow): Pass it insn.
13932 (emit_notes_in_bb): Likewise.
13933 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13934 fail assert on conversion between unsigned types.
13935
13936 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13937
13938 PR debug/58315
13939 * tree-inline.c (reset_debug_binding): New.
13940 (reset_debug_bindings): Likewise.
13941 (expand_call_inline): Call it.
13942
13943 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13944
13945 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13946 TYPE_STRING_FLAG.
13947
13948 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13949
13950 * lto-streamer-out.c (lto_output_location): Stream
13951 reserved locations correctly.
13952 * lto-streamer-in.c (lto_output_location): Likewise.
13953
13954 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13955
13956 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13957 * ggc.h: Don't include statistics.h>
13958 * hash-map.h: Remove all includes.
13959 * hash-set.h: Likewise.
13960 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13961 the include list. Remove <new>.
13962 * inchash.h: Remove all includes.
13963 * mem-stats.h: Likewise.
13964 * vec.h: No special processing for generators or ggc.
13965 * alias.c : Adjust include files.
13966 * alloc-pool.c : Likewise.
13967 * alloc-pool.h : Likewise.
13968 * asan.c : Likewise.
13969 * attribs.c : Likewise.
13970 * auto-inc-dec.c : Likewise.
13971 * auto-profile.c : Likewise.
13972 * bb-reorder.c : Likewise.
13973 * bitmap.c : Likewise.
13974 * bitmap.h : Likewise.
13975 * bt-load.c : Likewise.
13976 * builtins.c : Likewise.
13977 * caller-save.c : Likewise.
13978 * calls.c : Likewise.
13979 * ccmp.c : Likewise.
13980 * cfg.c : Likewise.
13981 * cfganal.c : Likewise.
13982 * cfgbuild.c : Likewise.
13983 * cfgcleanup.c : Likewise.
13984 * cfgexpand.c : Likewise.
13985 * cfghooks.c : Likewise.
13986 * cfgloop.c : Likewise.
13987 * cfgloop.h : Likewise.
13988 * cfgloopanal.c : Likewise.
13989 * cfgloopmanip.c : Likewise.
13990 * cfgrtl.c : Likewise.
13991 * cgraph.c : Likewise.
13992 * cgraphbuild.c : Likewise.
13993 * cgraphclones.c : Likewise.
13994 * cgraphunit.c : Likewise.
13995 * cilk-common.c : Likewise.
13996 * combine-stack-adj.c : Likewise.
13997 * combine.c : Likewise.
13998 * compare-elim.c : Likewise.
13999 * context.c : Likewise.
14000 * convert.c : Likewise.
14001 * coverage.c : Likewise.
14002 * cppbuiltin.c : Likewise.
14003 * cprop.c : Likewise.
14004 * cse.c : Likewise.
14005 * cselib.c : Likewise.
14006 * data-streamer-in.c : Likewise.
14007 * data-streamer-out.c : Likewise.
14008 * data-streamer.c : Likewise.
14009 * data-streamer.h : Likewise.
14010 * dbxout.c : Likewise.
14011 * dce.c : Likewise.
14012 * ddg.c : Likewise.
14013 * debug.c : Likewise.
14014 * df-core.c : Likewise.
14015 * df-problems.c : Likewise.
14016 * df-scan.c : Likewise.
14017 * df.h : Likewise.
14018 * dfp.c : Likewise.
14019 * dojump.c : Likewise.
14020 * dominance.c : Likewise.
14021 * domwalk.c : Likewise.
14022 * double-int.c : Likewise.
14023 * dse.c : Likewise.
14024 * dumpfile.c : Likewise.
14025 * dwarf2asm.c : Likewise.
14026 * dwarf2cfi.c : Likewise.
14027 * dwarf2out.c : Likewise.
14028 * emit-rtl.c : Likewise.
14029 * et-forest.c : Likewise.
14030 * except.c : Likewise.
14031 * except.h : Likewise.
14032 * explow.c : Likewise.
14033 * expmed.c : Likewise.
14034 * expr.c : Likewise.
14035 * final.c : Likewise.
14036 * fixed-value.c : Likewise.
14037 * fold-const.c : Likewise.
14038 * function.c : Likewise.
14039 * fwprop.c : Likewise.
14040 * gcc-plugin.h : Likewise.
14041 * gcc.c : Likewise.
14042 * gcse-common.c : Likewise.
14043 * gcse.c : Likewise.
14044 * genattrtab.c : Likewise.
14045 * genautomata.c : Likewise.
14046 * genconditions.c : Likewise.
14047 * genemit.c : Likewise.
14048 * generic-match-head.c : Likewise.
14049 * genextract.c : Likewise.
14050 * gengtype-state.c : Likewise.
14051 * gengtype.c : Likewise.
14052 * genhooks.c : Likewise.
14053 * genmatch.c : Likewise.
14054 * genmodes.c : Likewise.
14055 * genrecog.c : Likewise.
14056 * gensupport.c : Likewise.
14057 * ggc-common.c : Likewise.
14058 * ggc-internal.h : Likewise.
14059 * ggc-none.c : Likewise.
14060 * ggc-page.c : Likewise.
14061 * gimple-builder.c : Likewise.
14062 * gimple-expr.c : Likewise.
14063 * gimple-fold.c : Likewise.
14064 * gimple-iterator.c : Likewise.
14065 * gimple-low.c : Likewise.
14066 * gimple-match-head.c : Likewise.
14067 * gimple-pretty-print.c : Likewise.
14068 * gimple-ssa-isolate-paths.c : Likewise.
14069 * gimple-ssa-strength-reduction.c : Likewise.
14070 * gimple-ssa.h : Likewise.
14071 * gimple-streamer-in.c : Likewise.
14072 * gimple-streamer-out.c : Likewise.
14073 * gimple-streamer.h : Likewise.
14074 * gimple-walk.c : Likewise.
14075 * gimple.c : Likewise.
14076 * gimplify-me.c : Likewise.
14077 * gimplify.c : Likewise.
14078 * godump.c : Likewise.
14079 * graph.c : Likewise.
14080 * graphds.c : Likewise.
14081 * graphite-blocking.c : Likewise.
14082 * graphite-dependences.c : Likewise.
14083 * graphite-interchange.c : Likewise.
14084 * graphite-isl-ast-to-gimple.c : Likewise.
14085 * graphite-optimize-isl.c : Likewise.
14086 * graphite-poly.c : Likewise.
14087 * graphite-scop-detection.c : Likewise.
14088 * graphite-sese-to-poly.c : Likewise.
14089 * graphite.c : Likewise.
14090 * haifa-sched.c : Likewise.
14091 * hard-reg-set.h : Likewise.
14092 * hw-doloop.c : Likewise.
14093 * ifcvt.c : Likewise.
14094 * inchash.c : Likewise.
14095 * incpath.c : Likewise.
14096 * init-regs.c : Likewise.
14097 * input.c : Likewise.
14098 * internal-fn.c : Likewise.
14099 * ipa-chkp.c : Likewise.
14100 * ipa-comdats.c : Likewise.
14101 * ipa-cp.c : Likewise.
14102 * ipa-devirt.c : Likewise.
14103 * ipa-icf-gimple.c : Likewise.
14104 * ipa-icf.c : Likewise.
14105 * ipa-inline-analysis.c : Likewise.
14106 * ipa-inline-transform.c : Likewise.
14107 * ipa-inline.c : Likewise.
14108 * ipa-polymorphic-call.c : Likewise.
14109 * ipa-profile.c : Likewise.
14110 * ipa-prop.c : Likewise.
14111 * ipa-pure-const.c : Likewise.
14112 * ipa-ref.c : Likewise.
14113 * ipa-reference.c : Likewise.
14114 * ipa-split.c : Likewise.
14115 * ipa-utils.c : Likewise.
14116 * ipa-visibility.c : Likewise.
14117 * ipa.c : Likewise.
14118 * ira-build.c : Likewise.
14119 * ira-color.c : Likewise.
14120 * ira-conflicts.c : Likewise.
14121 * ira-costs.c : Likewise.
14122 * ira-emit.c : Likewise.
14123 * ira-lives.c : Likewise.
14124 * ira.c : Likewise.
14125 * jump.c : Likewise.
14126 * langhooks.c : Likewise.
14127 * lcm.c : Likewise.
14128 * libfuncs.h : Likewise.
14129 * lists.c : Likewise.
14130 * loop-doloop.c : Likewise.
14131 * loop-init.c : Likewise.
14132 * loop-invariant.c : Likewise.
14133 * loop-iv.c : Likewise.
14134 * loop-unroll.c : Likewise.
14135 * lower-subreg.c : Likewise.
14136 * lra-assigns.c : Likewise.
14137 * lra-coalesce.c : Likewise.
14138 * lra-constraints.c : Likewise.
14139 * lra-eliminations.c : Likewise.
14140 * lra-lives.c : Likewise.
14141 * lra-remat.c : Likewise.
14142 * lra-spills.c : Likewise.
14143 * lra.c : Likewise.
14144 * lto-cgraph.c : Likewise.
14145 * lto-compress.c : Likewise.
14146 * lto-opts.c : Likewise.
14147 * lto-section-in.c : Likewise.
14148 * lto-section-out.c : Likewise.
14149 * lto-streamer-in.c : Likewise.
14150 * lto-streamer-out.c : Likewise.
14151 * lto-streamer.c : Likewise.
14152 * lto-streamer.h : Likewise.
14153 * mcf.c : Likewise.
14154 * mode-switching.c : Likewise.
14155 * modulo-sched.c : Likewise.
14156 * omega.c : Likewise.
14157 * omp-low.c : Likewise.
14158 * optabs.c : Likewise.
14159 * opts-global.c : Likewise.
14160 * opts.h : Likewise.
14161 * passes.c : Likewise.
14162 * plugin.c : Likewise.
14163 * postreload-gcse.c : Likewise.
14164 * postreload.c : Likewise.
14165 * predict.c : Likewise.
14166 * print-rtl.c : Likewise.
14167 * print-tree.c : Likewise.
14168 * profile.c : Likewise.
14169 * read-md.c : Likewise.
14170 * read-md.h : Likewise.
14171 * read-rtl.c : Likewise.
14172 * real.c : Likewise.
14173 * realmpfr.c : Likewise.
14174 * recog.c : Likewise.
14175 * ree.c : Likewise.
14176 * reg-stack.c : Likewise.
14177 * regcprop.c : Likewise.
14178 * reginfo.c : Likewise.
14179 * regrename.c : Likewise.
14180 * regstat.c : Likewise.
14181 * reload.c : Likewise.
14182 * reload1.c : Likewise.
14183 * reorg.c : Likewise.
14184 * resource.c : Likewise.
14185 * rtl-chkp.c : Likewise.
14186 * rtl.c : Likewise.
14187 * rtl.h : Likewise.
14188 * rtlanal.c : Likewise.
14189 * rtlhash.c : Likewise.
14190 * rtlhash.h : Likewise.
14191 * rtlhooks.c : Likewise.
14192 * sanopt.c : Likewise.
14193 * sched-deps.c : Likewise.
14194 * sched-ebb.c : Likewise.
14195 * sched-rgn.c : Likewise.
14196 * sched-vis.c : Likewise.
14197 * sdbout.c : Likewise.
14198 * sel-sched-dump.c : Likewise.
14199 * sel-sched-ir.c : Likewise.
14200 * sel-sched-ir.h : Likewise.
14201 * sel-sched.c : Likewise.
14202 * sese.c : Likewise.
14203 * shrink-wrap.c : Likewise.
14204 * shrink-wrap.h : Likewise.
14205 * simplify-rtx.c : Likewise.
14206 * stack-ptr-mod.c : Likewise.
14207 * statistics.c : Likewise.
14208 * stmt.c : Likewise.
14209 * stor-layout.c : Likewise.
14210 * store-motion.c : Likewise.
14211 * stringpool.c : Likewise.
14212 * symtab.c : Likewise.
14213 * target-globals.c : Likewise.
14214 * targhooks.c : Likewise.
14215 * tlink.c : Likewise.
14216 * toplev.c : Likewise.
14217 * tracer.c : Likewise.
14218 * trans-mem.c : Likewise.
14219 * tree-affine.c : Likewise.
14220 * tree-affine.h : Likewise.
14221 * tree-browser.c : Likewise.
14222 * tree-call-cdce.c : Likewise.
14223 * tree-cfg.c : Likewise.
14224 * tree-cfgcleanup.c : Likewise.
14225 * tree-chkp-opt.c : Likewise.
14226 * tree-chkp.c : Likewise.
14227 * tree-chrec.c : Likewise.
14228 * tree-complex.c : Likewise.
14229 * tree-data-ref.c : Likewise.
14230 * tree-dfa.c : Likewise.
14231 * tree-diagnostic.c : Likewise.
14232 * tree-dump.c : Likewise.
14233 * tree-eh.c : Likewise.
14234 * tree-eh.h : Likewise.
14235 * tree-emutls.c : Likewise.
14236 * tree-hasher.h : Likewise.
14237 * tree-if-conv.c : Likewise.
14238 * tree-inline.c : Likewise.
14239 * tree-inline.h : Likewise.
14240 * tree-into-ssa.c : Likewise.
14241 * tree-iterator.c : Likewise.
14242 * tree-loop-distribution.c : Likewise.
14243 * tree-nested.c : Likewise.
14244 * tree-nrv.c : Likewise.
14245 * tree-object-size.c : Likewise.
14246 * tree-outof-ssa.c : Likewise.
14247 * tree-parloops.c : Likewise.
14248 * tree-phinodes.c : Likewise.
14249 * tree-predcom.c : Likewise.
14250 * tree-pretty-print.c : Likewise.
14251 * tree-profile.c : Likewise.
14252 * tree-scalar-evolution.c : Likewise.
14253 * tree-sra.c : Likewise.
14254 * tree-ssa-address.c : Likewise.
14255 * tree-ssa-alias.c : Likewise.
14256 * tree-ssa-ccp.c : Likewise.
14257 * tree-ssa-coalesce.c : Likewise.
14258 * tree-ssa-copy.c : Likewise.
14259 * tree-ssa-copyrename.c : Likewise.
14260 * tree-ssa-dce.c : Likewise.
14261 * tree-ssa-dom.c : Likewise.
14262 * tree-ssa-dse.c : Likewise.
14263 * tree-ssa-forwprop.c : Likewise.
14264 * tree-ssa-ifcombine.c : Likewise.
14265 * tree-ssa-live.c : Likewise.
14266 * tree-ssa-loop-ch.c : Likewise.
14267 * tree-ssa-loop-im.c : Likewise.
14268 * tree-ssa-loop-ivcanon.c : Likewise.
14269 * tree-ssa-loop-ivopts.c : Likewise.
14270 * tree-ssa-loop-manip.c : Likewise.
14271 * tree-ssa-loop-niter.c : Likewise.
14272 * tree-ssa-loop-prefetch.c : Likewise.
14273 * tree-ssa-loop-unswitch.c : Likewise.
14274 * tree-ssa-loop.c : Likewise.
14275 * tree-ssa-math-opts.c : Likewise.
14276 * tree-ssa-operands.c : Likewise.
14277 * tree-ssa-phiopt.c : Likewise.
14278 * tree-ssa-phiprop.c : Likewise.
14279 * tree-ssa-pre.c : Likewise.
14280 * tree-ssa-propagate.c : Likewise.
14281 * tree-ssa-reassoc.c : Likewise.
14282 * tree-ssa-sccvn.c : Likewise.
14283 * tree-ssa-scopedtables.c : Likewise.
14284 * tree-ssa-sink.c : Likewise.
14285 * tree-ssa-strlen.c : Likewise.
14286 * tree-ssa-structalias.c : Likewise.
14287 * tree-ssa-tail-merge.c : Likewise.
14288 * tree-ssa-ter.c : Likewise.
14289 * tree-ssa-threadedge.c : Likewise.
14290 * tree-ssa-threadupdate.c : Likewise.
14291 * tree-ssa-uncprop.c : Likewise.
14292 * tree-ssa-uninit.c : Likewise.
14293 * tree-ssa.c : Likewise.
14294 * tree-ssanames.c : Likewise.
14295 * tree-stdarg.c : Likewise.
14296 * tree-streamer-in.c : Likewise.
14297 * tree-streamer-out.c : Likewise.
14298 * tree-streamer.c : Likewise.
14299 * tree-streamer.h : Likewise.
14300 * tree-switch-conversion.c : Likewise.
14301 * tree-tailcall.c : Likewise.
14302 * tree-vect-data-refs.c : Likewise.
14303 * tree-vect-generic.c : Likewise.
14304 * tree-vect-loop-manip.c : Likewise.
14305 * tree-vect-loop.c : Likewise.
14306 * tree-vect-patterns.c : Likewise.
14307 * tree-vect-slp.c : Likewise.
14308 * tree-vect-stmts.c : Likewise.
14309 * tree-vectorizer.c : Likewise.
14310 * tree-vectorizer.h : Likewise.
14311 * tree-vrp.c : Likewise.
14312 * tree.c : Likewise.
14313 * tsan.c : Likewise.
14314 * ubsan.c : Likewise.
14315 * valtrack.c : Likewise.
14316 * valtrack.h : Likewise.
14317 * value-prof.c : Likewise.
14318 * var-tracking.c : Likewise.
14319 * varasm.c : Likewise.
14320 * varpool.c : Likewise.
14321 * vec.c: Likewise.
14322 * vmsdbgout.c : Likewise.
14323 * vtable-verify.c : Likewise.
14324 * vtable-verify.h : Likewise.
14325 * web.c : Likewise.
14326 * wide-int.cc : Likewise.
14327 * xcoffout.c : Likewise.
14328 * config/aarch64/aarch64-builtins.c : Likewise.
14329 * config/aarch64/aarch64.c : Likewise.
14330 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14331 * config/alpha/alpha.c : Likewise.
14332 * config/arc/arc.c : Likewise.
14333 * config/arm/aarch-common.c : Likewise.
14334 * config/arm/arm-builtins.c : Likewise.
14335 * config/arm/arm-c.c : Likewise.
14336 * config/arm/arm.c : Likewise.
14337 * config/avr/avr-c.c : Likewise.
14338 * config/avr/avr-log.c : Likewise.
14339 * config/avr/avr.c : Likewise.
14340 * config/bfin/bfin.c : Likewise.
14341 * config/c6x/c6x.c : Likewise.
14342 * config/cr16/cr16.c : Likewise.
14343 * config/cris/cris.c : Likewise.
14344 * config/darwin-c.c : Likewise.
14345 * config/darwin.c : Likewise.
14346 * config/default-c.c : Likewise.
14347 * config/epiphany/epiphany.c : Likewise.
14348 * config/epiphany/mode-switch-use.c : Likewise.
14349 * config/epiphany/resolve-sw-modes.c : Likewise.
14350 * config/fr30/fr30.c : Likewise.
14351 * config/frv/frv.c : Likewise.
14352 * config/ft32/ft32.c : Likewise.
14353 * config/glibc-c.c : Likewise.
14354 * config/h8300/h8300.c : Likewise.
14355 * config/i386/i386-c.c : Likewise.
14356 * config/i386/i386.c : Likewise.
14357 * config/i386/msformat-c.c : Likewise.
14358 * config/i386/winnt-cxx.c : Likewise.
14359 * config/i386/winnt-stubs.c : Likewise.
14360 * config/i386/winnt.c : Likewise.
14361 * config/ia64/ia64-c.c : Likewise.
14362 * config/ia64/ia64.c : Likewise.
14363 * config/iq2000/iq2000.c : Likewise.
14364 * config/lm32/lm32.c : Likewise.
14365 * config/m32c/m32c-pragma.c : Likewise.
14366 * config/m32c/m32c.c : Likewise.
14367 * config/m32r/m32r.c : Likewise.
14368 * config/m68k/m68k.c : Likewise.
14369 * config/mcore/mcore.c : Likewise.
14370 * config/mep/mep-pragma.c : Likewise.
14371 * config/mep/mep.c : Likewise.
14372 * config/microblaze/microblaze-c.c : Likewise.
14373 * config/microblaze/microblaze.c : Likewise.
14374 * config/mips/mips.c : Likewise.
14375 * config/mmix/mmix.c : Likewise.
14376 * config/mn10300/mn10300.c : Likewise.
14377 * config/moxie/moxie.c : Likewise.
14378 * config/msp430/msp430-c.c : Likewise.
14379 * config/msp430/msp430.c : Likewise.
14380 * config/nds32/nds32-cost.c : Likewise.
14381 * config/nds32/nds32-fp-as-gp.c : Likewise.
14382 * config/nds32/nds32-intrinsic.c : Likewise.
14383 * config/nds32/nds32-isr.c : Likewise.
14384 * config/nds32/nds32-md-auxiliary.c : Likewise.
14385 * config/nds32/nds32-memory-manipulation.c : Likewise.
14386 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14387 * config/nds32/nds32-predicates.c : Likewise.
14388 * config/nds32/nds32.c : Likewise.
14389 * config/nios2/nios2.c : Likewise.
14390 * config/nvptx/nvptx.c : Likewise.
14391 * config/pa/pa.c : Likewise.
14392 * config/pdp11/pdp11.c : Likewise.
14393 * config/rl78/rl78-c.c : Likewise.
14394 * config/rl78/rl78.c : Likewise.
14395 * config/rs6000/rs6000-c.c : Likewise.
14396 * config/rs6000/rs6000.c : Likewise.
14397 * config/rx/rx.c : Likewise.
14398 * config/s390/s390-c.c : Likewise.
14399 * config/s390/s390.c : Likewise.
14400 * config/sh/sh-c.c : Likewise.
14401 * config/sh/sh-mem.cc : Likewise.
14402 * config/sh/sh.c : Likewise.
14403 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14404 * config/sh/sh_treg_combine.cc : Likewise.
14405 * config/sol2-c.c : Likewise.
14406 * config/sol2-cxx.c : Likewise.
14407 * config/sol2-stubs.c : Likewise.
14408 * config/sol2.c : Likewise.
14409 * config/sparc/sparc-c.c : Likewise.
14410 * config/sparc/sparc.c : Likewise.
14411 * config/spu/spu-c.c : Likewise.
14412 * config/spu/spu.c : Likewise.
14413 * config/stormy16/stormy16.c : Likewise.
14414 * config/tilegx/mul-tables.c : Likewise.
14415 * config/tilegx/tilegx-c.c : Likewise.
14416 * config/tilegx/tilegx.c : Likewise.
14417 * config/tilepro/mul-tables.c : Likewise.
14418 * config/tilepro/tilepro-c.c : Likewise.
14419 * config/tilepro/tilepro.c : Likewise.
14420 * config/v850/v850-c.c : Likewise.
14421 * config/v850/v850.c : Likewise.
14422 * config/vax/vax.c : Likewise.
14423 * config/visium/visium.c : Likewise.
14424 * config/vms/vms-c.c : Likewise.
14425 * config/vms/vms.c : Likewise.
14426 * config/vxworks.c : Likewise.
14427 * config/winnt-c.c : Likewise.
14428 * config/xtensa/xtensa.c : Likewise.
14429
14430 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14431
14432 PR lto/65378
14433 * ipa-utils.h (warn_types_mismatch): Update prototype.
14434 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14435 parameters.
14436 (type_mismatch_p): New function.
14437 (warn_types_mismatch): Reorg to work better on non-C++ types.
14438 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14439 (add_type_duplicate): Update.
14440
14441 2015-06-08 Tom de Vries <tom@codesourcery.com>
14442
14443 PR rtl-optimization/66444
14444 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14445 call_used_regs.
14446
14447 2015-06-08 Richard Biener <rguenther@suse.de>
14448
14449 PR tree-optimization/66422
14450 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14451 block after inserted gcc_unreachable.
14452
14453 2015-06-08 Nick Clifton <nickc@redhat.com>
14454
14455 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14456 (rx_promote_function_mode): Likewise.
14457 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14458
14459 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14460
14461 * genattrtab.c (insn_alternatives): Change type from int *
14462 to uint64_t *.
14463 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14464 (get_attr_value): Change type of num_alt to uint64_t.
14465 (compute_alternative_mask): Change return type from
14466 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14467 (make_alternative_compare, mk_attr_alt): Change argument type
14468 from int to uint64_t.
14469 (simplify_test_exp): Change type of i from int to uint64_t.
14470 Shift ((uint64_t) 1) instead of 1 up.
14471 (main): Adjust oballocvec first argument from int to uint64_t.
14472 Shift ((uint64_t) 1) instead of 1 up.
14473
14474 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14475
14476 PR other/65366
14477 * gdbhooks.py: Import sys.
14478 (intptr): New function. Replace int(...) by intptr(...).
14479
14480 2015-06-08 Richard Biener <rguenther@suse.de>
14481
14482 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14483 adjustment for gaps at the end of a SLP load group properly.
14484 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14485 all permutations we can generate.
14486 (vect_transform_slp_perm_load): Use the correct group-size.
14487
14488 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14489
14490 * genmatch.c (expr::gen_transform): For conditions, guess the type
14491 from the second operand.
14492
14493 2015-06-08 Tom de Vries <tom@codesourcery.com>
14494
14495 PR tree-optimization/66442
14496 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14497 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14498 if the loop latch is not a singleton. Use
14499 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14500
14501 2015-06-08 Marek Polacek <polacek@redhat.com>
14502
14503 PR sanitizer/66452
14504 * toplev.c (check_global_declaration): Don't warn about artificial
14505 decls.
14506
14507 2015-06-08 Tom de Vries <tom@codesourcery.com>
14508
14509 PR tree-optimization/66436
14510 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14511 dump file.
14512 * gimplify.c: Add tree-dump.h include.
14513 (gimplify_function_tree): Dump function to gimple dump file.
14514 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14515 dump file.
14516
14517 2015-06-08 Tom de Vries <tom@codesourcery.com>
14518
14519 PR tree-optimization/66435
14520 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14521 function.
14522
14523 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14524
14525 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14526 of ptr_type_node to not be ptr_to_node.
14527 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14528 TREE_TYPE of pointers.
14529 * gimple-expr.c (useless_type_conversion): Reorder the check for
14530 function pointers and TYPE_CANONICAL.
14531
14532 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14533
14534 PR bootstrap/66319
14535 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14536 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14537 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14538 later.
14539 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14540 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14541 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14542 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14543 and non iso if unix2003.
14544
14545 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14546
14547 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14548
14549 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14550
14551 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14552 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14553 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14554 except.c, final.c, function.c, gcse-common.c, genemit.c,
14555 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14556 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14557 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14558 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14559 more derived ones.
14560
14561 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14562
14563 * combine.c (combine_split_insns): Remove cast.
14564 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14565 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14566 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14567 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14568 * genemit.c (gen_split): Change return type of generated functions to
14569 rtx_insn.
14570 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14571 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14572 gen_peephole2_* functions.
14573 (print_subroutine, main): Likewise.
14574 * recog.c (peephole2_optimize): Remove cast.
14575 (peep2_next_insn): Promote return type to rtx_insn.
14576 * recog.h (peep2_next_insn): Fix prototype.
14577 * rtl.h (try_split, split_insns): Likewise.
14578
14579 2015-06-06 DJ Delorie <dj@redhat.com>
14580
14581 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14582 and subtraction too.
14583
14584 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14585
14586 PR target/66410
14587 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14588 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14589 instead of Snd. Disparage Sid/z alternative with '^'.
14590
14591 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14592
14593 * dwarf2out.c: Remove deferred_locations*.
14594 (dwarf2_debug_hooks): Add early_finish hook.
14595 Remove global_decl hook.
14596 Add early_global_decl and late_global_decl hook.
14597 New global early_dwarf.
14598 New structure set_early_dwarf.
14599 (output_die): Indicate whether a DIE was generated early
14600 when generating assembly with -dA.
14601 (struct limbo_die_struct): Document created_for field.
14602 Remove file_table_last_lookup.
14603 (remove_AT): Return TRUE if successful.
14604 (remove_child_TAG): Clear die_parent.
14605 (reparent_child): New function abstracted from...
14606 (splice_child_die): ...here.
14607 (new_die): ICE if a DIE ends up in limbo too late.
14608 (check_die): New.
14609 (defer_location): Remove.
14610 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14611 (fill_variable_array_bounds): New.
14612 (decl_start_label): Call fill_variable_array_bounds.
14613 (gen_formal_parameter_die): Rewrite to reuse previously generated
14614 DIEs.
14615 (gen_subprogram_die): Same.
14616 (gen_variable_die): Same.
14617 (gen_const_die): Same.
14618 (gen_label_die): Same.
14619 (gen_lexical_block_die): Same.
14620 (decl_will_get_specification_p): New.
14621 (local_function_static): New.
14622 (gen_struct_or_union_type_die): Fill in variable-length fields.
14623 (gen_typedef_die): Fill in variable-length typedefs.
14624 (gen_tagged_type_die): Gracefully return on error_mark_node.
14625 Handle re-entrancy.
14626 (gen_type_die_with_usage): Handle variable-length types.
14627 Remove duplicate code for ARRAY_TYPE case.
14628 (process_scope_var): Only process imported modules during early
14629 dwarf.
14630 (dwarf2out_early_global_decl): New.
14631 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14632 (dwarf2out_type_decl): Set early_dwarf while calling
14633 dwarf2out_decl.
14634 (dwarf2out_decl): Verify that we did not recreate a previously
14635 generated DIE.
14636 Do not return on DECL_EXTERNALs in VAR_DECLs.
14637 Abstract some code to local_function_static.
14638 (lookup_filename): Remove use of file_table_last_lookup.
14639 Gracefully exit on missing file_name.
14640 (dwarf2out_finish): Verify limbo list.
14641 Remove deferred_locations_list use.
14642 Move deferred_asm_name and limbo flushing to...
14643 (dwarf2out_early_finish): ...here. New.
14644 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14645 deferred_asm_name, and file_table_last_lookup.
14646 * cgraph.h (referred_to_p): Add default argument.
14647 * cgraphunit.c (referred_to_p): Add and handle include_self
14648 argument.
14649 (analyze_functions): Add first_time argument.
14650 Call check_global_declaration for all symbols.
14651 Call late_global_decl for nodes for moribund nodes.
14652 (finalize_compilation_unit): Add new argument to
14653 analyze_functions.
14654 Call early_global_decl for functions.
14655 Call early_finish debug hook.
14656 * dbxout.c (dbxout_early_global_decl): New.
14657 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14658 (dbx_debug_hooks): Add new hooks.
14659 (xcoff_debug_hooks): Same.
14660 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14661 Add early and late debug hooks.
14662 Remove global_decl hook.
14663 * debug.h (struct gcc_debug_hooks): Add early_finish,
14664 early_global_decl, and late_global_decl fields.
14665 Remove global_decl field.
14666 Document gcc_debug_hooks.
14667 * gengtype.c (output_typename): Remove.
14668 * godump.c (go_early_global_decl): New.
14669 (go_late_global_decl): New.
14670 (go_global_decl): Remove.
14671 (dump_go_spec_init): Remove global_decl. Add
14672 {early,late}_global_decl.
14673 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14674 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14675 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14676 (write_global_declarations): Remove.
14677 (global_decl_processing): New.
14678 * langhooks.h (struct lang_hooks_for_decls): Remove
14679 final_write_globals field.
14680 Add post_compilation_parsing_cleanups field.
14681 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14682 * sdbout.c: Add early and late_global_decl hooks. Remove
14683 sdbout_global_decl hook.
14684 Add early_finish field for sdb_debug_hooks.
14685 (sdbout_global_decl): Remove.
14686 (sdbout_early_global_decl): New.
14687 (sdbout_late_global_decl): New.
14688 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14689 * toplev.c (check_global_declaration): Rename from
14690 check_global_declaration_1.
14691 Adapt to use symtab infrastructure.
14692 (check_global_declarations): Remove.
14693 (emit_debug_global_declarations): Remove.
14694 (compile_file): Remove call to final_write_globals langhook.
14695 Run the actual compilation process.
14696 Perform any post compilation parser cleanups.
14697 Generate late debug info.
14698 * toplev.h (check_global_declaration): New.
14699 (check_global_declaration_1): Remove.
14700 (check_global_declarations): Remove.
14701 (write_global_declarations): Remove.
14702 (emit_debug_global_declarations): Remove.
14703 (global_decl_processing): New.
14704 * tree-core.h (struct tree_block): Add DIE field.
14705 * tree.h (BLOCK_DIE): New.
14706 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14707 throughout.
14708 (vmsdbgout_early_global_decl): New.
14709 (vmsdbgout_late_global_decl): New.
14710 Add early_finish debug hook field to vmsdbg_debug_hooks.
14711 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14712 Add early and late_global_decl debug hooks.
14713
14714 2015-06-05 Julian Brown <julian@codesourcery.com>
14715 Sandra Loosemore <sandra@codesourcery.com>
14716
14717 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14718 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14719 to print-sysroot-suffix.sh script.
14720
14721 2015-06-05 Tom de Vries <tom@codesourcery.com>
14722
14723 merge from gomp4 branch:
14724 2015-05-28 Tom de Vries <tom@codesourcery.com>
14725
14726 PR tree-optimization/65443
14727 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14728 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14729 (try_transform_to_exit_first_loop_alt): New function.
14730 (transform_to_exit_first_loop): Use
14731 try_transform_to_exit_first_loop_alt.
14732
14733 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14734
14735 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14736 emit_cmp_and_jump_insns with the mode of target.
14737
14738 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14739
14740 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14741
14742 2015-06-04 DJ Delorie <dj@redhat.com>
14743
14744 * config/msp430/msp430.md (movsi_s): New. Special case for
14745 storing a 20-bit symbol into a 32-bit register.
14746 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14747 * config/msp430/predicates.md (msp430_symbol_operand): New.
14748
14749 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14750
14751 * c-family/c-common.c (noplt): New attribute.
14752 (handle_noplt_attribute): New handler.
14753 * calls.c (prepare_call_address): Check for noplt
14754 attribute.
14755 * config/i386/i386.c (ix86_expand_call): Check
14756 for noplt attribute.
14757 (ix86_nopic_noplt_attribute_p): New function.
14758 (ix86_output_call_insn): Output indirect call for non-pic
14759 no plt calls.
14760 * doc/extend.texi (noplt): Document new attribute.
14761 * doc/invoke.texi: Document new attribute.
14762
14763 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14764
14765 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14766 real.h, and fixed-value.h when included in host source files.
14767 * double-int.h: Remove redundant #includes listed above.
14768 * fixed-value.h: Likewise.
14769 * real.h: Likewise.
14770 * wide-int.h: Likewise.
14771 * inchash.h: Likewise.
14772 * rtl.h: Add some include files When included from a generator file.
14773 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14774 * internal-fn.h: Don't include coretypes.h.
14775 * alias.c: Adjust includes for restructured coretypes.h.
14776 * asan.c: Likewise.
14777 * attribs.c: Likewise.
14778 * auto-inc-dec.c: Likewise.
14779 * auto-profile.c: Likewise.
14780 * bb-reorder.c: Likewise.
14781 * bt-load.c: Likewise.
14782 * builtins.c: Likewise.
14783 * caller-save.c: Likewise.
14784 * calls.c: Likewise.
14785 * ccmp.c: Likewise.
14786 * cfg.c: Likewise.
14787 * cfganal.c: Likewise.
14788 * cfgbuild.c: Likewise.
14789 * cfgcleanup.c: Likewise.
14790 * cfgexpand.c: Likewise.
14791 * cfghooks.c: Likewise.
14792 * cfgloop.c: Likewise.
14793 * cfgloop.h: Likewise.
14794 * cfgloopanal.c: Likewise.
14795 * cfgloopmanip.c: Likewise.
14796 * cfgrtl.c: Likewise.
14797 * cgraph.c: Likewise.
14798 * cgraphbuild.c: Likewise.
14799 * cgraphclones.c: Likewise.
14800 * cgraphunit.c: Likewise.
14801 * cilk-common.c: Likewise.
14802 * combine-stack-adj.c: Likewise.
14803 * combine.c: Likewise.
14804 * compare-elim.c: Likewise.
14805 * convert.c: Likewise.
14806 * coverage.c: Likewise.
14807 * cppbuiltin.c: Likewise.
14808 * cprop.c: Likewise.
14809 * cse.c: Likewise.
14810 * cselib.c: Likewise.
14811 * data-streamer-in.c: Likewise.
14812 * data-streamer-out.c: Likewise.
14813 * data-streamer.c: Likewise.
14814 * dbxout.c: Likewise.
14815 * dce.c: Likewise.
14816 * ddg.c: Likewise.
14817 * debug.c: Likewise.
14818 * df-core.c: Likewise.
14819 * df-problems.c: Likewise.
14820 * df-scan.c: Likewise.
14821 * df.h: Likewise.
14822 * dfp.c: Likewise.
14823 * dojump.c: Likewise.
14824 * dominance.c: Likewise.
14825 * domwalk.c: Likewise.
14826 * double-int.c: Likewise.
14827 * dse.c: Likewise.
14828 * dumpfile.c: Likewise.
14829 * dwarf2asm.c: Likewise.
14830 * dwarf2cfi.c: Likewise.
14831 * dwarf2out.c: Likewise.
14832 * dwarf2out.h: Likewise.
14833 * emit-rtl.c: Likewise.
14834 * et-forest.c: Likewise.
14835 * except.c: Likewise.
14836 * explow.c: Likewise.
14837 * expmed.c: Likewise.
14838 * expr.c: Likewise.
14839 * final.c: Likewise.
14840 * fixed-value.c: Likewise.
14841 * fold-const.c: Likewise.
14842 * function.c: Likewise.
14843 * fwprop.c: Likewise.
14844 * gcc-plugin.h: Likewise.
14845 * gcse.c: Likewise.
14846 * generic-match-head.c: Likewise.
14847 * ggc-page.c: Likewise.
14848 * gimple-builder.c: Likewise.
14849 * gimple-expr.c: Likewise.
14850 * gimple-fold.c: Likewise.
14851 * gimple-iterator.c: Likewise.
14852 * gimple-low.c: Likewise.
14853 * gimple-match-head.c: Likewise.
14854 * gimple-pretty-print.c: Likewise.
14855 * gimple-ssa-isolate-paths.c: Likewise.
14856 * gimple-ssa-strength-reduction.c: Likewise.
14857 * gimple-streamer-in.c: Likewise.
14858 * gimple-streamer-out.c: Likewise.
14859 * gimple-streamer.h: Likewise.
14860 * gimple-walk.c: Likewise.
14861 * gimple.c: Likewise.
14862 * gimplify-me.c: Likewise.
14863 * gimplify.c: Likewise.
14864 * godump.c: Likewise.
14865 * graph.c: Likewise.
14866 * graphite-blocking.c: Likewise.
14867 * graphite-dependences.c: Likewise.
14868 * graphite-interchange.c: Likewise.
14869 * graphite-isl-ast-to-gimple.c: Likewise.
14870 * graphite-optimize-isl.c: Likewise.
14871 * graphite-poly.c: Likewise.
14872 * graphite-scop-detection.c: Likewise.
14873 * graphite-sese-to-poly.c: Likewise.
14874 * graphite.c: Likewise.
14875 * haifa-sched.c: Likewise.
14876 * hooks.h: Likewise.
14877 * hw-doloop.c: Likewise.
14878 * ifcvt.c: Likewise.
14879 * incpath.c: Likewise.
14880 * init-regs.c: Likewise.
14881 * internal-fn.c: Likewise.
14882 * ipa-chkp.c: Likewise.
14883 * ipa-comdats.c: Likewise.
14884 * ipa-cp.c: Likewise.
14885 * ipa-devirt.c: Likewise.
14886 * ipa-icf-gimple.c: Likewise.
14887 * ipa-icf.c: Likewise.
14888 * ipa-inline-analysis.c: Likewise.
14889 * ipa-inline-transform.c: Likewise.
14890 * ipa-inline.c: Likewise.
14891 * ipa-polymorphic-call.c: Likewise.
14892 * ipa-profile.c: Likewise.
14893 * ipa-prop.c: Likewise.
14894 * ipa-pure-const.c: Likewise.
14895 * ipa-ref.c: Likewise.
14896 * ipa-reference.c: Likewise.
14897 * ipa-split.c: Likewise.
14898 * ipa-utils.c: Likewise.
14899 * ipa-visibility.c: Likewise.
14900 * ipa.c: Likewise.
14901 * ira-build.c: Likewise.
14902 * ira-color.c: Likewise.
14903 * ira-conflicts.c: Likewise.
14904 * ira-costs.c: Likewise.
14905 * ira-emit.c: Likewise.
14906 * ira-lives.c: Likewise.
14907 * ira.c: Likewise.
14908 * jump.c: Likewise.
14909 * langhooks.c: Likewise.
14910 * lcm.c: Likewise.
14911 * loop-doloop.c: Likewise.
14912 * loop-init.c: Likewise.
14913 * loop-invariant.c: Likewise.
14914 * loop-iv.c: Likewise.
14915 * loop-unroll.c: Likewise.
14916 * lower-subreg.c: Likewise.
14917 * lra-assigns.c: Likewise.
14918 * lra-coalesce.c: Likewise.
14919 * lra-constraints.c: Likewise.
14920 * lra-eliminations.c: Likewise.
14921 * lra-lives.c: Likewise.
14922 * lra-remat.c: Likewise.
14923 * lra-spills.c: Likewise.
14924 * lra.c: Likewise.
14925 * lto-cgraph.c: Likewise.
14926 * lto-compress.c: Likewise.
14927 * lto-opts.c: Likewise.
14928 * lto-section-in.c: Likewise.
14929 * lto-section-out.c: Likewise.
14930 * lto-streamer-in.c: Likewise.
14931 * lto-streamer-out.c: Likewise.
14932 * lto-streamer.c: Likewise.
14933 * mcf.c: Likewise.
14934 * mode-switching.c: Likewise.
14935 * modulo-sched.c: Likewise.
14936 * omega.c: Likewise.
14937 * omp-low.c: Likewise.
14938 * optabs.c: Likewise.
14939 * opts-global.c: Likewise.
14940 * passes.c: Likewise.
14941 * plugin.c: Likewise.
14942 * postreload-gcse.c: Likewise.
14943 * postreload.c: Likewise.
14944 * predict.c: Likewise.
14945 * print-rtl.c: Likewise.
14946 * print-tree.c: Likewise.
14947 * profile.c: Likewise.
14948 * real.c: Likewise.
14949 * realmpfr.c: Likewise.
14950 * realmpfr.h: Likewise.
14951 * recog.c: Likewise.
14952 * ree.c: Likewise.
14953 * reg-stack.c: Likewise.
14954 * regcprop.c: Likewise.
14955 * reginfo.c: Likewise.
14956 * regrename.c: Likewise.
14957 * regs.h: Likewise.
14958 * regstat.c: Likewise.
14959 * reload.c: Likewise.
14960 * reload1.c: Likewise.
14961 * reorg.c: Likewise.
14962 * resource.c: Likewise.
14963 * rtl-chkp.c: Likewise.
14964 * rtlanal.c: Likewise.
14965 * rtlhooks.c: Likewise.
14966 * sanopt.c: Likewise.
14967 * sched-deps.c: Likewise.
14968 * sched-ebb.c: Likewise.
14969 * sched-rgn.c: Likewise.
14970 * sched-vis.c: Likewise.
14971 * sdbout.c: Likewise.
14972 * sel-sched-dump.c: Likewise.
14973 * sel-sched-ir.c: Likewise.
14974 * sel-sched.c: Likewise.
14975 * sese.c: Likewise.
14976 * shrink-wrap.c: Likewise.
14977 * shrink-wrap.h: Likewise.
14978 * simplify-rtx.c: Likewise.
14979 * stack-ptr-mod.c: Likewise.
14980 * statistics.c: Likewise.
14981 * stmt.c: Likewise.
14982 * stor-layout.c: Likewise.
14983 * store-motion.c: Likewise.
14984 * stringpool.c: Likewise.
14985 * symtab.c: Likewise.
14986 * target-globals.c: Likewise.
14987 * targhooks.c: Likewise.
14988 * toplev.c: Likewise.
14989 * tracer.c: Likewise.
14990 * trans-mem.c: Likewise.
14991 * tree-affine.c: Likewise.
14992 * tree-affine.h: Likewise.
14993 * tree-browser.c: Likewise.
14994 * tree-call-cdce.c: Likewise.
14995 * tree-cfg.c: Likewise.
14996 * tree-cfgcleanup.c: Likewise.
14997 * tree-chkp-opt.c: Likewise.
14998 * tree-chkp.c: Likewise.
14999 * tree-chrec.c: Likewise.
15000 * tree-complex.c: Likewise.
15001 * tree-data-ref.c: Likewise.
15002 * tree-dfa.c: Likewise.
15003 * tree-diagnostic.c: Likewise.
15004 * tree-dump.c: Likewise.
15005 * tree-eh.c: Likewise.
15006 * tree-emutls.c: Likewise.
15007 * tree-if-conv.c: Likewise.
15008 * tree-inline.c: Likewise.
15009 * tree-into-ssa.c: Likewise.
15010 * tree-iterator.c: Likewise.
15011 * tree-loop-distribution.c: Likewise.
15012 * tree-nested.c: Likewise.
15013 * tree-nrv.c: Likewise.
15014 * tree-object-size.c: Likewise.
15015 * tree-outof-ssa.c: Likewise.
15016 * tree-parloops.c: Likewise.
15017 * tree-phinodes.c: Likewise.
15018 * tree-predcom.c: Likewise.
15019 * tree-pretty-print.c: Likewise.
15020 * tree-pretty-print.h: Likewise.
15021 * tree-profile.c: Likewise.
15022 * tree-scalar-evolution.c: Likewise.
15023 * tree-sra.c: Likewise.
15024 * tree-ssa-address.c: Likewise.
15025 * tree-ssa-alias.c: Likewise.
15026 * tree-ssa-ccp.c: Likewise.
15027 * tree-ssa-coalesce.c: Likewise.
15028 * tree-ssa-copy.c: Likewise.
15029 * tree-ssa-copyrename.c: Likewise.
15030 * tree-ssa-dce.c: Likewise.
15031 * tree-ssa-dom.c: Likewise.
15032 * tree-ssa-dse.c: Likewise.
15033 * tree-ssa-forwprop.c: Likewise.
15034 * tree-ssa-ifcombine.c: Likewise.
15035 * tree-ssa-live.c: Likewise.
15036 * tree-ssa-loop-ch.c: Likewise.
15037 * tree-ssa-loop-im.c: Likewise.
15038 * tree-ssa-loop-ivcanon.c: Likewise.
15039 * tree-ssa-loop-ivopts.c: Likewise.
15040 * tree-ssa-loop-manip.c: Likewise.
15041 * tree-ssa-loop-niter.c: Likewise.
15042 * tree-ssa-loop-prefetch.c: Likewise.
15043 * tree-ssa-loop-unswitch.c: Likewise.
15044 * tree-ssa-loop.c: Likewise.
15045 * tree-ssa-loop.h: Likewise.
15046 * tree-ssa-math-opts.c: Likewise.
15047 * tree-ssa-operands.c: Likewise.
15048 * tree-ssa-phiopt.c: Likewise.
15049 * tree-ssa-phiprop.c: Likewise.
15050 * tree-ssa-pre.c: Likewise.
15051 * tree-ssa-propagate.c: Likewise.
15052 * tree-ssa-reassoc.c: Likewise.
15053 * tree-ssa-sccvn.c: Likewise.
15054 * tree-ssa-scopedtables.c: Likewise.
15055 * tree-ssa-sink.c: Likewise.
15056 * tree-ssa-strlen.c: Likewise.
15057 * tree-ssa-structalias.c: Likewise.
15058 * tree-ssa-tail-merge.c: Likewise.
15059 * tree-ssa-ter.c: Likewise.
15060 * tree-ssa-threadedge.c: Likewise.
15061 * tree-ssa-threadupdate.c: Likewise.
15062 * tree-ssa-uncprop.c: Likewise.
15063 * tree-ssa-uninit.c: Likewise.
15064 * tree-ssa.c: Likewise.
15065 * tree-ssanames.c: Likewise.
15066 * tree-stdarg.c: Likewise.
15067 * tree-streamer-in.c: Likewise.
15068 * tree-streamer-out.c: Likewise.
15069 * tree-streamer.c: Likewise.
15070 * tree-switch-conversion.c: Likewise.
15071 * tree-tailcall.c: Likewise.
15072 * tree-vect-data-refs.c: Likewise.
15073 * tree-vect-generic.c: Likewise.
15074 * tree-vect-loop-manip.c: Likewise.
15075 * tree-vect-loop.c: Likewise.
15076 * tree-vect-patterns.c: Likewise.
15077 * tree-vect-slp.c: Likewise.
15078 * tree-vect-stmts.c: Likewise.
15079 * tree-vectorizer.c: Likewise.
15080 * tree-vrp.c: Likewise.
15081 * tree.c: Likewise.
15082 * tsan.c: Likewise.
15083 * ubsan.c: Likewise.
15084 * valtrack.c: Likewise.
15085 * value-prof.c: Likewise.
15086 * var-tracking.c: Likewise.
15087 * varasm.c: Likewise.
15088 * varpool.c: Likewise.
15089 * vmsdbgout.c: Likewise.
15090 * vtable-verify.c: Likewise.
15091 * web.c: Likewise.
15092 * wide-int-print.cc: Likewise.
15093 * wide-int-print.h: Likewise.
15094 * wide-int.cc: Likewise.
15095 * xcoffout.c: Likewise.
15096 * config/aarch64/aarch64-builtins.c: Likewise.
15097 * config/aarch64/aarch64.c: Likewise.
15098 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15099 * config/alpha/alpha.c: Likewise.
15100 * config/arc/arc.c: Likewise.
15101 * config/arm/aarch-common.c: Likewise.
15102 * config/arm/arm-builtins.c: Likewise.
15103 * config/arm/arm-c.c: Likewise.
15104 * config/arm/arm.c: Likewise.
15105 * config/avr/avr-c.c: Likewise.
15106 * config/avr/avr-log.c: Likewise.
15107 * config/avr/avr.c: Likewise.
15108 * config/bfin/bfin.c: Likewise.
15109 * config/c6x/c6x.c: Likewise.
15110 * config/cr16/cr16.c: Likewise.
15111 * config/cris/cris.c: Likewise.
15112 * config/darwin-c.c: Likewise.
15113 * config/darwin.c: Likewise.
15114 * config/default-c.c: Likewise.
15115 * config/epiphany/epiphany.c: Likewise.
15116 * config/epiphany/mode-switch-use.c: Likewise.
15117 * config/epiphany/resolve-sw-modes.c: Likewise.
15118 * config/fr30/fr30.c: Likewise.
15119 * config/frv/frv.c: Likewise.
15120 * config/ft32/ft32.c: Likewise.
15121 * config/glibc-c.c: Likewise.
15122 * config/h8300/h8300.c: Likewise.
15123 * config/i386/i386-c.c: Likewise.
15124 * config/i386/i386.c: Likewise.
15125 * config/i386/msformat-c.c: Likewise.
15126 * config/i386/winnt-cxx.c: Likewise.
15127 * config/i386/winnt-stubs.c: Likewise.
15128 * config/i386/winnt.c: Likewise.
15129 * config/ia64/ia64-c.c: Likewise.
15130 * config/ia64/ia64.c: Likewise.
15131 * config/iq2000/iq2000.c: Likewise.
15132 * config/lm32/lm32.c: Likewise.
15133 * config/m32c/m32c-pragma.c: Likewise.
15134 * config/m32c/m32c.c: Likewise.
15135 * config/m32r/m32r.c: Likewise.
15136 * config/m68k/m68k.c: Likewise.
15137 * config/mcore/mcore.c: Likewise.
15138 * config/mep/mep-pragma.c: Likewise.
15139 * config/mep/mep.c: Likewise.
15140 * config/microblaze/microblaze-c.c: Likewise.
15141 * config/microblaze/microblaze.c: Likewise.
15142 * config/mips/mips.c: Likewise.
15143 * config/mmix/mmix.c: Likewise.
15144 * config/mn10300/mn10300.c: Likewise.
15145 * config/moxie/moxie.c: Likewise.
15146 * config/msp430/msp430-c.c: Likewise.
15147 * config/msp430/msp430.c: Likewise.
15148 * config/nds32/nds32-cost.c: Likewise.
15149 * config/nds32/nds32-fp-as-gp.c: Likewise.
15150 * config/nds32/nds32-intrinsic.c: Likewise.
15151 * config/nds32/nds32-isr.c: Likewise.
15152 * config/nds32/nds32-md-auxiliary.c: Likewise.
15153 * config/nds32/nds32-memory-manipulation.c: Likewise.
15154 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15155 * config/nds32/nds32-predicates.c: Likewise.
15156 * config/nds32/nds32.c: Likewise.
15157 * config/nios2/nios2.c: Likewise.
15158 * config/nvptx/nvptx.c: Likewise.
15159 * config/pa/pa.c: Likewise.
15160 * config/pdp11/pdp11.c: Likewise.
15161 * config/rl78/rl78-c.c: Likewise.
15162 * config/rl78/rl78.c: Likewise.
15163 * config/rs6000/rs6000-c.c: Likewise.
15164 * config/rs6000/rs6000.c: Likewise.
15165 * config/rx/rx.c: Likewise.
15166 * config/s390/s390-c.c: Likewise.
15167 * config/s390/s390.c: Likewise.
15168 * config/sh/sh-c.c: Likewise.
15169 * config/sh/sh-mem.cc: Likewise.
15170 * config/sh/sh.c: Likewise.
15171 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15172 * config/sh/sh_treg_combine.cc: Likewise.
15173 * config/sol2-c.c: Likewise.
15174 * config/sol2-cxx.c: Likewise.
15175 * config/sol2-stubs.c: Likewise.
15176 * config/sol2.c: Likewise.
15177 * config/sparc/sparc-c.c: Likewise.
15178 * config/sparc/sparc.c: Likewise.
15179 * config/spu/spu-c.c: Likewise.
15180 * config/spu/spu.c: Likewise.
15181 * config/stormy16/stormy16.c: Likewise.
15182 * config/tilegx/mul-tables.c: Likewise.
15183 * config/tilegx/tilegx-c.c: Likewise.
15184 * config/tilegx/tilegx.c: Likewise.
15185 * config/tilepro/mul-tables.c: Likewise.
15186 * config/tilepro/tilepro-c.c: Likewise.
15187 * config/tilepro/tilepro.c: Likewise.
15188 * config/v850/v850-c.c: Likewise.
15189 * config/v850/v850.c: Likewise.
15190 * config/vax/vax.c: Likewise.
15191 * config/visium/visium.c: Likewise.
15192 * config/vms/vms-c.c: Likewise.
15193 * config/vms/vms.c: Likewise.
15194 * config/vxworks.c: Likewise.
15195 * config/winnt-c.c: Likewise.
15196 * config/xtensa/xtensa.c: Likewise.
15197 * common/config/bfin/bfin-common.c: Likewise.
15198
15199 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15200
15201 * tree.h (tree_code_for_canonical_type_merging): New function.
15202 * tree.c (gimple_canonical_types_compatible_p): Use
15203 tree_code_for_canonical_type_merging..
15204
15205 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15206
15207 PR c++/66192
15208 PR target/66200
15209 * doc/tm.texi: Regenerate.
15210 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15211 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15212 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15213 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15214 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15215 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15216 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15217 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15218 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15219
15220 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15221
15222 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15223 register fma steering pass.
15224 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15225 AARCH64_TUNE_FMA_STEERING.
15226
15227 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15228
15229 * tree.c (verify_type_variant): Verify that type and variant is
15230 compatible.
15231 (gimple_canonical_types_compatible_p): Look for main variants.
15232
15233 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15234
15235 * config.gcc (powerpc*-*-*): Add support for a new configure
15236 option --with-advance-toolchain=<xxx> which overrides using the
15237 default header files, libraries and dynamic linker.
15238
15239 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15240 specs to support the configure --with-advance-toolchain=<xxx>
15241 option.
15242 (INCLUDE_EXTRA_SPEC): Likewise.
15243 (LINK_OS_EXTRA_SPEC32): Likewise.
15244 (LINK_OK_EXTRA_SPEC64): Likewise.
15245 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15246 (DYNAMIC_LINKER_PREFIX): Likewise.
15247 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15248 toolchain support.
15249 (GLIBC_DYNAMIC_LINKER32): Likewise.
15250 (GLIBC_DYNAMIC_LINKER64): Likewise.
15251 (LINK_OS_LINUX_SPEC32): Likewise.
15252 (LINK_OS_LINUX_SPEC64): Likewise.
15253
15254 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15255 configuration option.
15256
15257 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15258
15259 PR target/66275
15260 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15261 to determine current function ABI.
15262 (ix86_function_value_regno_p): Ditto.
15263
15264 2015-06-03 Martin Liska <mliska@suse.cz>
15265
15266 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15267 * bitmap.h (struct bitmap_usage): Likewise.
15268 * ggc-common.c (struct ggc_usage): Likewise.
15269 * mem-stats.h (struct mem_location): Likewise.
15270 (struct mem_usage): Likewise.
15271 * vec.c (struct vec_usage): Likewise.
15272
15273 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15274
15275 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15276 -Bsymbolic.
15277
15278 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15279
15280 * doc/plugins.texi (enum plugin_event): New event.
15281 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15282 and PLUGIN_FINISH_FUNCTION.
15283 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15284 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15285
15286 2015-06-03 Richard Biener <rguenther@suse.de>
15287
15288 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15289 compute GROUP_GAP for the first element.
15290 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15291 on in-group gaps.
15292
15293 2015-06-03 Nick Clifton <nickc@redhat.com>
15294
15295 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15296 copy when calling a function.
15297 * config/rl78/rl78.c (need_to_save): Do not push the frame
15298 pointer in an interrupt handler prologue if it is never used.
15299
15300 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15301
15302 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15303
15304 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15305
15306 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15307 reference when cloning alias node.
15308
15309 2015-06-03 Martin Liska <mliska@suse.cz>
15310
15311 * alloc-pool.h (struct pool_usage): Correct space padding.
15312 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15313 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15314 * tree.c (dump_tree_statistics): Align columns in a report.
15315
15316 2015-06-03 Martin Liska <mliska@suse.cz>
15317
15318 * alloc-pool.c (allocate_pool_descriptor): Remove.
15319 (struct pool_output_info): Likewise.
15320 (print_alloc_pool_statistics): Likewise.
15321 (dump_alloc_pool_statistics): Likewise.
15322 * alloc-pool.h (struct pool_usage): New struct.
15323 (pool_allocator::initialize): Change usage of memory statistics
15324 to a new interface.
15325 (pool_allocator::release): Likewise.
15326 (pool_allocator::allocate): Likewise.
15327 (pool_allocator::remove): Likewise.
15328 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15329 for a pool allocator.
15330 * mem-stats.h (struct mem_location): Add new ctor.
15331 (struct mem_usage): Add counter for number of
15332 instances.
15333 (mem_alloc_description::register_descriptor): New overload of
15334 * mem-stats.h (mem_location::to_string): New function.
15335 * bitmap.h (struct bitmap_usage): Use this new function.
15336 * ggc-common.c (struct ggc_usage): Likewise.
15337 the function.
15338
15339 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15340
15341 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15342 of GCC_INSN_FLAGS_H block.
15343
15344 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15345
15346 * explow.c (plus_constant): Update check after force_const_mem call
15347 to see if the value returned is not a NULL_RTX.
15348
15349 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15350
15351 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15352 remove instumentation thunks calling reachable functions.
15353 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15354 * lto/lto-partition.c (privatize_symbol_name_1): New.
15355 (privatize_symbol_name): Privatize both decl and orig_decl
15356 names for instrumented functions.
15357 * cgraph.c (cgraph_node::verify_node): Add transparent
15358 alias chain check for instrumented node.
15359
15360 2015-06-03 Marek Polacek <polacek@redhat.com>
15361
15362 PR c/64223
15363 PR c/29358
15364 * tree.c (attribute_value_equal): Handle attribute format.
15365 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15366
15367 2015-06-03 Richard Biener <rguenther@suse.de>
15368
15369 PR tree-optimization/63916
15370 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15371 Forward-propagate non-invariant addresses by splicing their
15372 reference ops if the result isn't going to be used by PRE.
15373 (vn_reference_lookup_3): Remove pointless assert.
15374
15375 2015-06-03 Richard Biener <rguenther@suse.de>
15376
15377 PR tree-optimization/66375
15378 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15379 add to the evolution before following SSA edges.
15380
15381 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15382
15383 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15384 (dump_use, dump_cand, find_induction_variables): Pass new argument
15385 to dump_iv.
15386 (record_use): Preserve the ssa name information in IV.
15387
15388 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15389
15390 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15391 NO_MODE_TEST.
15392 (add_mode_tests): Don't add mode tests if the predicate only
15393 accepts scalar constant integers. Otherwise, allow the mode
15394 of "op" to be VOIDmode if the predicate does accept such integers.
15395
15396 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15397
15398 PR target/66258
15399 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15400 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15401 (aarch64_secondary_reload): Likewise
15402 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15403 to !TARGET_FLOAT.
15404 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15405 Likewise.
15406
15407 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15408 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15409
15410 PR target/65768
15411 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15412
15413 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15414
15415 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15416 provide access to the IBM extended double floating point mode if
15417 long double is IEEE 128-bit floating point.
15418 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15419 point if long double is the IBM extended double type.
15420
15421 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15422 enable adding IEEE 128-bit floating point support.
15423 (-mfloat128-software): Likewise.
15424 (-mfloat128-sw): Likewise.
15425
15426 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15427 128-bit floating point types to occupy any register if
15428 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15429 -mfloat128-software is enabled.
15430 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15431 support.
15432 (rs6000_option_override_internal): Add -mfloat128-* support.
15433 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15434
15435 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15436 and float128 type nodes.
15437 (ieee128_float_type_node): Likewise.
15438 (ibm128_float_type_node): Likewise.
15439
15440 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15441
15442 PR target/66136
15443 * config/aarch64/geniterators.sh: Rewrite in awk.
15444
15445 2015-06-02 Martin Liska <mliska@suse.cz>
15446
15447 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15448 values to avoid -Wmaybe-uninitialized errors.
15449
15450 2015-06-02 Richard Biener <rguenther@suse.de>
15451
15452 PR debug/65549
15453 * dwarf2out.c (lookup_context_die): New function.
15454 (resolve_addr): Avoid forcing a full DIE for the
15455 target of a DW_TAG_GNU_call_site during late compilation.
15456 Instead create a stub DIE without a type if we have a
15457 context DIE present.
15458
15459 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15460
15461 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15462
15463 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15464
15465 PR tree-optimization/48052
15466 * cfgloop.h (struct control_iv): New.
15467 (struct loop): New field control_ivs.
15468 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15469 (number_of_iterations_lt): Set no_overflow information.
15470 (number_of_iterations_exit): Init control iv in niter struct.
15471 (record_control_iv): New.
15472 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15473 (loop_exits_before_overflow): New. Interface factored out of
15474 scev_probably_wraps_p.
15475 (scev_probably_wraps_p): Factor loop niter related code into
15476 loop_exits_before_overflow.
15477 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15478 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15479
15480 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15481
15482 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15483 the target doesn't belong to the current function.
15484
15485 2015-06-02 Marek Polacek <polacek@redhat.com>
15486
15487 PR middle-end/66345
15488 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15489 get_maxval_strlen does not produce an INTEGER_CST.
15490
15491 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15492
15493 * config/arc/constraints.md: Use lower-case names in match_code.
15494 * config/mmix/constraints.md: Likewise.
15495
15496 2015-06-02 Richard Biener <rguenther@suse.de>
15497
15498 PR tree-optimization/65961
15499 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15500 check and clarify dump message.
15501 (vect_build_slp_tree): If all children are built up from scalars
15502 build up the parent from scalars instead.
15503 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15504
15505 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15506
15507 PR other/65366
15508 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15509 instead of print ... .
15510
15511 2015-06-02 Alan Modra <amodra@gmail.com>
15512
15513 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15514 2014-08-11 change.
15515
15516 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15517
15518 PR tree-optimization/52563
15519 PR tree-optimization/62173
15520 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15521 (alloc_iv, set_iv): New parameter.
15522 (determine_biv_step): Delete.
15523 (find_bivs): Inline original determine_biv_step. Pass new
15524 argument to set_iv.
15525 (idx_find_step): Use no_overflow information for conversion.
15526 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15527 resolve_mixers handle folded_casts.
15528 (instantiate_scev_name): Change bool parameter to bool pointer.
15529 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15530 (instantiate_array_ref, instantiate_scev_not): Ditto.
15531 (instantiate_scev_3, instantiate_scev_2): Ditto.
15532 (instantiate_scev_1, instantiate_scev_r): Ditto.
15533 (instantiate_scev_convert, ): Change parameter. Pass argument
15534 to chrec_convert_aggressive.
15535 (instantiate_scev): Change argument.
15536 (resolve_mixers): New parameter and set it.
15537 (scev_const_prop): New argument.
15538 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15539 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15540 of chrec_conert_1.
15541 (chrec_convert): New parameter. Move definition below.
15542 (chrec_convert_aggressive): New parameter and set it. Call
15543 convert_affine_scev.
15544 * tree-chrec.h (chrec_convert): New parameter.
15545 (chrec_convert_aggressive): Ditto.
15546
15547 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15548
15549 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15550 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15551 the LHS of a no-return call if its type has variable size.
15552 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15553 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15554
15555 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15556
15557 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15558 * config.in: Regenerate.
15559
15560 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15561
15562 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15563 consecutive accesses within outer-loop with force_vectorize
15564 for references with zero step in inner-loop.
15565
15566 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15567
15568 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15569 rather than from gcc/build directory.
15570
15571 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15572
15573 PR target/65697
15574 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15575 for __sync memory models, emit initial loads and final barriers as
15576 appropriate.
15577
15578 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15579
15580 PR target/65697
15581 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15582 (aarch64_split_atomic_op): Check for __sync memory models, emit
15583 appropriate initial loads and final barriers.
15584
15585 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15586
15587 * Makefile.in: Fix gcov dependencies that should
15588 not point to a build folder.
15589
15590 2015-06-01 Richard Biener <rguenther@suse.de>
15591
15592 Revert
15593 2015-05-29 Richard Biener <rguenther@suse.de>
15594
15595 PR tree-optimization/66314
15596 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15597 parameter that says which loop the new block belongs to.
15598 (ssa_create_duplicates): Blocks duplicated for the threaded
15599 path belong to the loop of the thread destination.
15600
15601 2015-06-01 Martin Liska <mliska@suse.cz>
15602
15603 * sched-deps.c: Include pool-alloc.h before
15604 cselib.h header file is included.
15605
15606 2015-06-01 Richard Biener <rguenther@suse.de>
15607
15608 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15609 functions.
15610
15611 2015-06-01 Martin Liska <mliska@suse.cz>
15612
15613 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15614 a function local variable.
15615
15616 2015-06-01 Martin Liska <mliska@suse.cz>
15617
15618 * alloc-pool.c (create_alloc_pool): Remove.
15619 (empty_alloc_pool): Likewise.
15620 (free_alloc_pool): Likewise.
15621 (free_alloc_pool_if_empty): Likewise.
15622 (pool_alloc): Likewise.
15623 (pool_free): Likewise.
15624 * alloc-pool.h: Remove old declarations.
15625
15626 2015-06-01 Martin Liska <mliska@suse.cz>
15627
15628 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15629 (ira_create_object): Likewise.
15630 (ira_create_allocno): Likewise.
15631 (ira_create_live_range): Likewise.
15632 (copy_live_range): Likewise.
15633 (ira_finish_live_range): Likewise.
15634 (ira_free_allocno_costs): Likewise.
15635 (finish_allocno): Likewise.
15636 (finish_allocnos): Likewise.
15637 (initiate_prefs): Likewise.
15638 (ira_create_pref): Likewise.
15639 (finish_pref): Likewise.
15640 (finish_prefs): Likewise.
15641 (initiate_copies): Likewise.
15642 (ira_create_copy): Likewise.
15643 (finish_copy): Likewise.
15644 (finish_copies): Likewise.
15645 (finish_prefs): Likewise.
15646
15647 2015-06-01 Martin Liska <mliska@suse.cz>
15648
15649 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15650 (allocate_and_init_ipcp_value): Likewise.
15651 (ipcp_lattice::add_value): Likewise.
15652 (merge_agg_lats_step): Likewise.
15653 (ipcp_driver): Likewise.
15654 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15655 (ipa_free_all_structures_after_iinln): Likewise.
15656 * ipa-prop.h: Likewise.
15657
15658 2015-06-01 Martin Liska <mliska@suse.cz>
15659
15660 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15661 pool allocator.
15662 (set_hint_predicate): Likewise.
15663 (inline_summary_alloc): Likewise.
15664 (reset_inline_edge_summary): Likewise.
15665 (reset_inline_summary): Likewise.
15666 (set_cond_stmt_execution_predicate): Likewise.
15667 (set_switch_stmt_execution_predicate): Likewise.
15668 (compute_bb_predicates): Likewise.
15669 (estimate_function_body_sizes): Likewise.
15670 (inline_free_summary): Likewise.
15671
15672 2015-06-01 Martin Liska <mliska@suse.cz>
15673
15674 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15675 (ipa_edge_duplication_hook): Likewise.
15676 (ipa_free_all_structures_after_ipa_cp): Likewise.
15677 (ipa_free_all_structures_after_iinln): Likewise.
15678
15679 2015-06-01 Martin Liska <mliska@suse.cz>
15680
15681 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15682 (ipa_profile_generate_summary): Likewise.
15683 (ipa_profile_read_summary): Likewise.
15684 (ipa_profile): Likewise.
15685
15686 2015-06-01 Martin Liska <mliska@suse.cz>
15687
15688 * tree-ssa-structalias.c (new_var_info): Use new type-based
15689 pool allocator.
15690 (new_constraint): Likewise.
15691 (init_alias_vars): Likewise.
15692 (delete_points_to_sets): Likewise.
15693
15694 2015-06-01 Martin Liska <mliska@suse.cz>
15695
15696 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15697 (free_strinfo): Likewise.
15698 (pass_strlen::execute): Likewise.
15699
15700 2015-06-01 Martin Liska <mliska@suse.cz>
15701
15702 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15703 pool allocator.
15704 (vn_reference_insert_pieces): Likewise.
15705 (vn_phi_insert): Likewise.
15706 (visit_reference_op_call): Likewise.
15707 (copy_phi): Likewise.
15708 (copy_reference): Likewise.
15709 (process_scc): Likewise.
15710 (allocate_vn_table): Likewise.
15711 (free_vn_table): Likewise.
15712
15713 2015-06-01 Martin Liska <mliska@suse.cz>
15714
15715 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15716 pool allocator.
15717 (add_repeat_to_ops_vec): Likewise.
15718 (get_ops): Likewise.
15719 (maybe_optimize_range_tests): Likewise.
15720 (init_reassoc): Likewise.
15721 (fini_reassoc): Likewise.
15722
15723 2015-06-01 Martin Liska <mliska@suse.cz>
15724
15725 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15726 pool allocator.
15727 (bitmap_set_new): Likewise.
15728 (get_or_alloc_expr_for_constant): Likewise.
15729 (get_or_alloc_expr_for): Likewise.
15730 (phi_translate_1): Likewise.
15731 (compute_avail): Likewise.
15732 (init_pre): Likewise.
15733 (fini_pre): Likewise.
15734
15735 2015-06-01 Martin Liska <mliska@suse.cz>
15736
15737 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15738 (delete_dep_node): Likewise.
15739 (create_deps_list): Likewise.
15740 (free_deps_list): Likewise.
15741 (sched_deps_init): Likewise.
15742 (sched_deps_finish): Likewise.
15743
15744 2015-06-01 Martin Liska <mliska@suse.cz>
15745
15746 * regcprop.c (free_debug_insn_changes): Use new type-based
15747 pool allocator.
15748 (replace_oldest_value_reg): Likewise.
15749 (pass_cprop_hardreg::execute): Likewise.
15750
15751 2015-06-01 Martin Liska <mliska@suse.cz>
15752
15753 * ira-build.c (initiate_cost_vectors): Use new type-based
15754 pool allocator.
15755 (ira_allocate_cost_vector): Likewise.
15756 (ira_free_cost_vector): Likewise.
15757 (finish_cost_vectors): Likewise.
15758
15759 2015-06-01 Martin Liska <mliska@suse.cz>
15760
15761 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15762 pool allocator.
15763 (free_sched_pools): Likewise.
15764 * sel-sched-ir.h (_list_alloc): Likewise.
15765 (_list_remove): Likewise.
15766
15767 2015-06-01 Martin Liska <mliska@suse.cz>
15768
15769 * stmt.c (add_case_node): Use new type-based pool allocator.
15770 (expand_case): Likewise.
15771 (expand_sjlj_dispatch_table): Likewise.
15772
15773 2015-06-01 Martin Liska <mliska@suse.cz>
15774
15775 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15776 (free_bb): Likewise.
15777 (pass_cse_reciprocals::execute): Likewise.
15778
15779 2015-06-01 Martin Liska <mliska@suse.cz>
15780
15781 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15782 (sra_deinitialize) Likewise.
15783 (create_access_1) Likewise.
15784 (build_accesses_from_assign) Likewise.
15785 (create_artificial_child_access) Likewise.
15786
15787 2015-06-01 Martin Liska <mliska@suse.cz>
15788
15789 * dse.c (get_group_info):Use new type-based pool allocator.
15790 (dse_step0) Likewise.
15791 (free_store_info) Likewise.
15792 (delete_dead_store_insn) Likewise.
15793 (free_read_records) Likewise.
15794 (record_store) Likewise.
15795 (replace_read) Likewise.
15796 (check_mem_read_rtx) Likewise.
15797 (scan_insn) Likewise.
15798 (dse_step1) Likewise.
15799 (dse_step7) Likewise.
15800
15801 2015-06-01 Martin Liska <mliska@suse.cz>
15802
15803 * df-scan.c (struct df_scan_problem_data):Use new type-based
15804 pool allocator.
15805 (df_scan_free_internal) Likewise.
15806 (df_scan_alloc) Likewise.
15807 (df_grow_reg_info) Likewise.
15808 (df_free_ref) Likewise.
15809 (df_insn_create_insn_record) Likewise.
15810 (df_mw_hardreg_chain_delete) Likewise.
15811 (df_insn_info_delete) Likewise.
15812 (df_free_collection_rec) Likewise.
15813 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15814 (df_sort_and_compress_mws) Likewise.
15815 (df_ref_create_structure) Likewise.
15816 (df_ref_record) Likewise.
15817
15818 2015-06-01 Martin Liska <mliska@suse.cz>
15819
15820 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15821 (df_chain_unlink_1) Likewise.
15822 (df_chain_unlink) Likewise.
15823 (df_chain_remove_problem) Likewise.
15824 (df_chain_alloc) Likewise.
15825 (df_chain_free) Likewise.
15826 * df.h (struct dataflow) Likewise.
15827
15828 2015-06-01 Martin Liska <mliska@suse.cz>
15829
15830 * cselib.c (new_elt_list):Use new type-based pool allocator.
15831 (new_elt_loc_list) Likewise.
15832 (unchain_one_elt_list) Likewise.
15833 (unchain_one_elt_loc_list) Likewise.
15834 (unchain_one_value) Likewise.
15835 (new_cselib_val) Likewise.
15836 (cselib_init) Likewise.
15837 (cselib_finish) Likewise.
15838
15839 2015-06-01 Martin Liska <mliska@suse.cz>
15840
15841 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15842 (sh_reorg) Likewise.
15843
15844 2015-06-01 Martin Liska <mliska@suse.cz>
15845
15846 * cfg.c (initialize_original_copy_tables):Use new type-based
15847 pool allocator.
15848 (free_original_copy_tables) Likewise.
15849 (copy_original_table_clear) Likewise.
15850 (copy_original_table_set) Likewise.
15851
15852 2015-06-01 Martin Liska <mliska@suse.cz>
15853
15854 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15855 pool allocator.
15856 (asan_mem_ref_new) Likewise.
15857 (free_mem_ref_resources) Likewise.
15858
15859 2015-06-01 Martin Liska <mliska@suse.cz>
15860
15861 * var-tracking.c (variable_htab_free):Use new type-based
15862 pool allocator.
15863 (attrs_list_clear) Likewise.
15864 (attrs_list_insert) Likewise.
15865 (attrs_list_copy) Likewise.
15866 (shared_hash_unshare) Likewise.
15867 (shared_hash_destroy) Likewise.
15868 (unshare_variable) Likewise.
15869 (var_reg_delete_and_set) Likewise.
15870 (var_reg_delete) Likewise.
15871 (var_regno_delete) Likewise.
15872 (drop_overlapping_mem_locs) Likewise.
15873 (variable_union) Likewise.
15874 (insert_into_intersection) Likewise.
15875 (canonicalize_values_star) Likewise.
15876 (variable_merge_over_cur) Likewise.
15877 (dataflow_set_merge) Likewise.
15878 (remove_duplicate_values) Likewise.
15879 (variable_post_merge_new_vals) Likewise.
15880 (dataflow_set_preserve_mem_locs) Likewise.
15881 (dataflow_set_remove_mem_locs) Likewise.
15882 (variable_from_dropped) Likewise.
15883 (variable_was_changed) Likewise.
15884 (set_slot_part) Likewise.
15885 (clobber_slot_part) Likewise.
15886 (delete_slot_part) Likewise.
15887 (loc_exp_insert_dep) Likewise.
15888 (notify_dependents_of_changed_value) Likewise.
15889 (emit_notes_for_differences_1) Likewise.
15890 (vt_emit_notes) Likewise.
15891 (vt_initialize) Likewise.
15892 (vt_finalize) Likewise.
15893
15894 2015-06-01 Martin Liska <mliska@suse.cz>
15895
15896 * ira-color.c (init_update_cost_records):Use new type-based
15897 pool allocator.
15898 (get_update_cost_record) Likewise.
15899 (free_update_cost_record_list) Likewise.
15900 (finish_update_cost_records) Likewise.
15901 (initiate_cost_update) Likewise.
15902
15903 2015-06-01 Martin Liska <mliska@suse.cz>
15904
15905 * lra.c (init_insn_regs): Use new type-based pool allocator.
15906 (new_insn_reg) Likewise.
15907 (free_insn_reg) Likewise.
15908 (free_insn_regs) Likewise.
15909 (finish_insn_regs) Likewise.
15910 (init_insn_recog_data) Likewise.
15911 (init_reg_info) Likewise.
15912 (finish_reg_info) Likewise.
15913 (lra_free_copies) Likewise.
15914 (lra_create_copy) Likewise.
15915 (invalidate_insn_data_regno_info) Likewise.
15916
15917 2015-06-01 Martin Liska <mliska@suse.cz>
15918
15919 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15920 (free_live_range_list) Likewise.
15921 (create_live_range) Likewise.
15922 (copy_live_range) Likewise.
15923 (lra_merge_live_ranges) Likewise.
15924 (remove_some_program_points_and_update_live_ranges) Likewise.
15925 (lra_live_ranges_init) Likewise.
15926 (lra_live_ranges_finish) Likewise.
15927
15928 2015-06-01 Martin Liska <mliska@suse.cz>
15929
15930 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15931 (et_new_tree): Likewise.
15932 (et_free_tree): Likewise.
15933 (et_free_tree_force): Likewise.
15934 (et_free_pools): Likewise.
15935 (et_split): Likewise.
15936
15937 2015-06-01 Martin Liska <mliska@suse.cz>
15938
15939 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15940 to header file.
15941 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15942 (pool_allocator::release): Likewise.
15943 (inline pool_allocator::release_if_empty): Likewise.
15944 (inline pool_allocator::~pool_allocator): Likewise.
15945 (pool_allocator::allocate): Likewise.
15946 (pool_allocator::remove): Likewise.
15947
15948 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15949
15950 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15951 in comment.
15952
15953 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15954
15955 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15956 to fusible_ops.
15957 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15958 (arm_macro_fusion_p): Likewise.
15959 (arm_macro_fusion_pair_p): Likewise.
15960
15961 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15962
15963 * config/aarch64/aarch64-protos.h (tune_params): Rename
15964 fuseable_ops to fusible_ops.
15965 * config/aarch64/aarch64.c (generic_tunings): Rename
15966 fuseable_ops to fusible_ops.
15967 (cortexa53_tunings): Likewise.
15968 (cortexa57_tunings): Likewise.
15969 (thunderx_tunings): Likewise.
15970 (xgene1_tunings): Likewise.
15971 (aarch64_macro_fusion_p): Likewise.
15972 (aarch64_macro_fusion_pair_p): Likewise.
15973
15974 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15975
15976 * config/s390/driver-native.c: New file.
15977 * config/s390/x-native: New file.
15978 * config.host: Add new files for s390.
15979 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15980 and -march=native
15981 * config.gcc: Likewise.
15982 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15983 * config/s390/s390-opts.h (enum processor_type): Ditto.
15984 * config/s390/s390.c (s390_option_override): Catch unhandled
15985 PROCESSOR_NATIVE
15986
15987 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15988
15989 PR target/65527
15990 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15991 redirection for instrumented calls.
15992 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15993 (append_compiler_options): Append -fcheck-pointer-bounds.
15994 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15995 (chkp_redirect_edge): New.
15996 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15997 (chkp_redirect_edge): New.
15998
15999 2015-06-01 Richard Biener <rguenther@suse.de>
16000
16001 PR tree-optimization/66280
16002 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16003 def-use walking.
16004
16005 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16006
16007 * config/aarch64/aarch64.md
16008 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16009 logic_shift_imm.
16010
16011 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16012
16013 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16014 Remove obsolete kludge.
16015
16016 2015-06-01 Richard Biener <rguenther@suse.de>
16017
16018 * tree-ssa-reassoc.c (get_rank): Simplify.
16019
16020 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16021
16022 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16023 * configure: Regenerated.
16024
16025 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16026
16027 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16028 issue (add space between string literal and macro).
16029 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16030
16031 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16032
16033 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16034 implict or explicit -fPIE or -fpie.
16035
16036 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16037
16038 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16039
16040 2015-05-28 DJ Delorie <dj@redhat.com>
16041
16042 * expmed.c (extract_bit_field_1): Avoid clobbering a
16043 yet-to-be-used base/index register.
16044
16045 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16046
16047 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16048 (alias_stats): Add num_universal.
16049 (alias_set_subset_of): Special case pointers; be ready for NULL
16050 children.
16051 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16052 children.
16053 (init_alias_set_entry): Break out from ...
16054 (record_alias_subset): ... here; propagate new fields;
16055 allocate children only when really needed.
16056 (get_alias_set): Do less generous pointer globbing.
16057 (dump_alias_stats_in_alias_c): Update statistics.
16058
16059 2015-05-30 Alan Modra <amodra@gmail.com>
16060
16061 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16062 correct block for use of r12.
16063 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16064
16065 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16066
16067 PR target/66215
16068 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16069 with -mhotpatch=.
16070
16071 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16072
16073 PR tree-optimization/66142
16074 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16075 virtual phis that feed themselves.
16076
16077 2015-05-29 Richard Biener <rguenther@suse.de>
16078
16079 PR tree-optimization/66314
16080 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16081 parameter that says which loop the new block belongs to.
16082 (ssa_create_duplicates): Blocks duplicated for the threaded
16083 path belong to the loop of the thread destination.
16084
16085 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16086
16087 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16088 to cleanup-saved-temps.
16089 * doc/sourcebuild.texi (Clean up generated test files): Expand
16090 introduction.
16091 (dg-keep-saved-temps): Document new proc.
16092 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16093 cleanup-saved-temps): Remove.
16094
16095 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16096
16097 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16098 gcc_AC_CHECK_DECLS.
16099 * configure: Regenerate.
16100
16101 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16102
16103 * config/nios2/linux.h (CPP_SPEC): Define.
16104
16105 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16106
16107 * config/microblaze/linux.h (CPP_SPEC): Define.
16108
16109 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16110
16111 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16112 -pthread is specified.
16113
16114 2015-05-28 Richard Biener <rguenther@suse.de>
16115
16116 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16117 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16118 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16119 after pattern recog.
16120 (vect_create_epilog_for_reduction): Properly handle reductions
16121 with patterns.
16122 (vectorizable_reduction): Likewise.
16123 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16124 reduction chains.
16125 (vect_get_constant_vectors): Create the correct number of
16126 initial values for reductions.
16127 (vect_schedule_slp_instance): Handle reduction chains that are
16128 type changing properly.
16129 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16130
16131 2015-05-28 Richard Biener <rguenther@suse.de>
16132
16133 PR tree-optimization/66142
16134 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16135 values better in memcpy destination handling. Handle non-aliasing
16136 we discover here.
16137
16138 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16139
16140 PR target/63810
16141 * config/darwin-c.c (version_components): New global enum.
16142 (parse_version, version_as_legacy_macro)
16143 (version_as_modern_macro, macosx_version_as_macro): New functions.
16144 (version_as_macro): Remove.
16145 (darwin_cpp_builtins): Use new function.
16146
16147 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16148
16149 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16150 with ATTRIBUTE_UNUSED.
16151
16152 2015-05-28 Julian Brown <julian@codesourcery.com>
16153
16154 PR libgomp/65742
16155
16156 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16157 sequence for !ACCEL_COMPILER.
16158
16159 2015-05-28 Nick Clifton <nickc@redhat.com>
16160
16161 * config/rx/rx.c (push_regs): New function. Extracts code from...
16162 (rx_expand_prologue): ... here. Use push_regs to push even small
16163 spans of registers.
16164 (pop_regs): New function.
16165 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16166 registers.
16167
16168 2015-05-28 Richard Biener <rguenther@suse.de>
16169
16170 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16171 member.
16172 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16173 (vect_update_slp_costs_according_to_vf): Likewise.
16174 (vect_slp_analyze_operations): Update prototype.
16175 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16176 vect_update_slp_costs_according_to_vf, adjust.
16177 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16178 (vect_analyze_slp_cost_1): Likewise.
16179 (vect_analyze_slp_cost): Likewise. Properly deal with
16180 widening reduction ops. Commit body costs.
16181 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16182 cost for loops from here.
16183 (vect_slp_analyze_operations): But do it from here when
16184 the vectorization factor is known and stmts are analyzed.
16185 (vect_bb_vectorization_profitable_p): Simplify.
16186 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16187 (vect_update_slp_costs_according_to_vf): Remove.
16188
16189 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16190 H.J. Lu <hongjiu.lu@intel.com>
16191
16192 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16193 (BUILD_CFLAGS): Likewise.
16194 (BUILD_CXXFLAGS): Likewise.
16195 (LINKER): Add @NO_PIE_FLAG@.
16196 (BUILD_LDFLAGS): Likewise.
16197 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16198 --enable-default-pie.
16199 * common.opt (fPIE): Initialize to -1.
16200 (fpie): Likewise.
16201 (no-pie): New option.
16202 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16203 * configure.ac: Add --enable-default-pie.
16204 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16205 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16206 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16207 * gcc.c (NO_PIE_SPEC): New.
16208 (PIE_SPEC): Likewise.
16209 (NO_FPIE1_SPEC): Likewise.
16210 (FPIE1_SPEC): Likewise.
16211 (NO_FPIE2_SPEC): Likewise.
16212 (FPIE2_SPEC): Likewise.
16213 (NO_FPIE2_SPEC): Likewise.
16214 (FPIE_SPEC): Likewise.
16215 (NO_FPIE_SPEC): Likewise.
16216 (NO_FPIC1_SPEC): Likewise.
16217 (FPIC1_SPEC): Likewise.
16218 (NO_FPIC2_SPEC): Likewise.
16219 (FPIC2_SPEC): Likewise.
16220 (NO_FPIC2_SPEC): Likewise.
16221 (FPIC_SPEC): Likewise.
16222 (NO_FPIC_SPEC): Likewise.
16223 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16224 (FPIE1_OR_FPIC1_SPEC): Likewise.
16225 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16226 (FPIE2_OR_FPIC2_SPEC): Likewise.
16227 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16228 (FPIE_OR_FPIC_SPEC): Likewise.
16229 (LD_PIE_SPEC): Likewise.
16230 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16231 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16232 * config/darwin.h (PIE_SPEC): Renamed to ...
16233 (DARWIN_PIE_SPEC): This.
16234 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16235 * config/darwin9.h (PIE_SPEC): Renamed to ...
16236 (DARWIN_PIE_SPEC): This.
16237 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16238 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16239 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16240 FPIE2_OR_FPIC2_SPEC.
16241 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16242 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16243 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16244 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16245 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16246 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16247 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16248 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16249 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16250 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16251 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16252 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16253 * config/sparc/linux.h (ASM_SPEC): Likewise.
16254 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16255 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16256 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16257 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16258 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16259 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16260 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16261 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16262 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16263 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16264 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16265 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16266 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16267 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16268 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16269 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16270 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16271 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16272 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16273 * config/vax/linux.h (ASM_SPEC): Likewise.
16274 * doc/install.texi: Document --enable-default-pie.
16275 * doc/invoke.texi: Document -no-pie.
16276 * config.in: Regenerated.
16277 * configure: Likewise.
16278
16279 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16280
16281 PR rtl-optimization/66168
16282 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16283 can_move_invariant_reg.
16284
16285 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16286
16287 PR target/66148
16288 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16289 REG_EQUAL note when doing insert.
16290
16291 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16292 instead of "%d" for 'o' operand.
16293
16294 2015-05-27 Nathan Sidwell <nathan@acm.org>
16295
16296 PR c++/66270
16297 * tree.c (build_pointer_type_for_mode): Canonical type does not
16298 inherit can_alias_all.
16299 (build_reference_type_for_mode): Likewise.
16300
16301 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16302
16303 * expr.h (array_at_struct_end_p): Move to...
16304 (array_ref_element_size): Likewise.
16305 (component_ref_field_offset): Likewise.
16306 * tree.h (array_ref_element_size): ...here.
16307 (array_at_struct_end_p): Likewise.
16308 (component_ref_field_offset): Likewise.
16309 * expr.c (array_ref_element_size): Move to...
16310 (array_ref_low_bound): Likewise.
16311 (array_at_struct_end_p): Likewise.
16312 (array_ref_up_bound): Likewise.
16313 (component_ref_field_offset): Likewise.
16314 * tree.c (array_ref_element_size): ...here.
16315 (array_ref_low_bound): Likewise.
16316 (array_ref_up_bound): Likewise.
16317 (array_at_struct_end_p): Likewise.
16318 (component_ref_field_offset): Likewise.
16319
16320 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16321 Szabolcs Nagy <szabolcs.nagy@arm.com>
16322
16323 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16324
16325 2015-05-27 Jason Merrill <jason@redhat.com>
16326
16327 PR bootstrap/66304
16328 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16329 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16330 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16331
16332 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16333
16334 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16335 is true.
16336
16337 * statistics.c (statistics_fini_pass): Print pass name.
16338
16339 2015-05-27 Richard Biener <rguenther@suse.de>
16340
16341 PR tree-optimization/66272
16342 Revert parts of
16343 2014-08-15 Richard Biener <rguenther@suse.de>
16344
16345 PR tree-optimization/62031
16346 * tree-data-ref.c (dr_analyze_indices): Do not set
16347 DR_UNCONSTRAINED_BASE.
16348 (dr_may_alias_p): All indirect accesses have to go the
16349 formerly DR_UNCONSTRAINED_BASE path.
16350 * tree-data-ref.h (struct indices): Remove
16351 unconstrained_base member.
16352 (DR_UNCONSTRAINED_BASE): Remove.
16353
16354 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16355
16356 * dwarf2out.c: Remove block_map.
16357 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16358 (gen_lexical_block_die): Same.
16359 (dwarf2out_function_decl): Remove block_map use.
16360 (dwarf2out_c_finalize): Same.
16361 * tree-core.h (struct tree_block): Add die field.
16362 * tree.h (BLOCK_DIE): New.
16363
16364 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16365
16366 PR target/65358
16367 * expr.c (memory_load_overlap): New function.
16368 (emit_push_insn): When pushing partial args to the stack would
16369 clobber the register part load the overlapping part into a pseudo
16370 and put it into the hard reg after pushing. Change return type
16371 to bool. Add bool argument.
16372 * expr.h (emit_push_insn): Change return type to bool.
16373 Add bool argument.
16374 * calls.c (expand_call): Cancel sibcall optimization when encountering
16375 partial argument on targets with ARGS_GROW_DOWNWARD and
16376 !STACK_GROWS_DOWNWARD.
16377 (emit_library_call_value_1): Update callsite of emit_push_insn.
16378 (store_one_arg): Likewise.
16379
16380 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16381
16382 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16383
16384 2015-05-27 Martin Liska <mliska@suse.cz>
16385
16386 * Makefile.in: Add additional dependencies related to memory report
16387 enhancement.
16388 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16389 * bitmap.c (struct bitmap_descriptor_d): Remove.
16390 (struct loc): Likewise.
16391 (struct bitmap_desc_hasher): Likewise.
16392 (bitmap_desc_hasher::hash): Likewise.
16393 (bitmap_desc_hasher::equal): Likewise.
16394 (get_bitmap_descriptor): Likewise.
16395 (bitmap_register): User new memory descriptor API.
16396 (register_overhead): Likewise.
16397 (bitmap_find_bit): Register nsearches and search_iter statistics.
16398 (struct bitmap_output_info): Remove.
16399 (print_statistics): Likewise.
16400 (dump_bitmap_statistics): Use new memory descriptor.
16401 * bitmap.h (struct bitmap_usage): New class.
16402 * genmatch.c: Extend header file inclusion.
16403 * genpreds.c: Likewise.
16404 * ggc-common.c (struct ggc_usage): New class.
16405 (struct ggc_loc_desc_hasher): Remove.
16406 (ggc_loc_desc_hasher::hash): Likewise.
16407 (ggc_loc_desc_hasher::equal): Likewise.
16408 (struct ggc_ptr_hash_entry): Likewise.
16409 (struct ptr_hash_hasher): Likewise.
16410 (ptr_hash_hasher::hash): Likewise.
16411 (ptr_hash_hasher::equal): Likewise.
16412 (make_loc_descriptor): Likewise.
16413 (ggc_prune_ptr): Likewise.
16414 (dump_ggc_loc_statistics): Use new memory descriptor.
16415 (ggc_record_overhead): Likewise.
16416 (ggc_free_overhead): Likewise.
16417 (final_cmp_statistic): Remove.
16418 (cmp_statistic): Likewise.
16419 (ggc_add_statistics): Liekwise.
16420 (ggc_prune_overhead_list): Likewise.
16421 * hash-map-traits.h: New file.
16422 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16423 separate header file.
16424 * hash-set.h: Pass memory statistics info to ctor.
16425 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16426 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16427 (hash_table::~hash_table): Register memory release operation.
16428 (hash_table::alloc_entries): Handle memory allocation operation.
16429 (hash_table::expand): Likewise.
16430 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16431 file.
16432 (iterative_hash_host_wide_int): Likewise.
16433 * inchash.h (class hash): Likewise.
16434 * mem-stats-traits.h: New file.
16435 * mem-stats.h: New file.
16436 (mem_location): Add new class.
16437 (mem_usage): Likewise.
16438 (mem_alloc_description): Likewise.
16439 * sese.c: Add new header file inclusision.
16440 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16441 and hash_set.
16442 * tree-sra.c: Add new header file inclusision.
16443 * vec.c (struct vec_descriptor): Remove.
16444 (hash_descriptor): Likewise.
16445 (struct vec_usage): Likewise.
16446 (struct ptr_hash_entry): Likewise.
16447 (hash_ptr): Likewise.
16448 (eq_ptr): Likewise.
16449 (vec_prefix::register_overhead): Use new memory descriptor API.
16450 (vec_prefix::release_overhead): Likewise.
16451 (add_statistics): Remove.
16452 (dump_vec_loc_statistics): Use new memory descriptor API.
16453 * vec.h (struct vec_prefix): Likewise.
16454 (va_heap::reserve): Likewise.
16455 (va_heap::release): Likewise.
16456 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16457
16458 2015-05-27 Richard Biener <rguenther@suse.de>
16459
16460 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16461 earlier and remove ??? comment.
16462 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16463 and got called from loop analysis bail out. Always pass the SLP
16464 node to the vectorizable_* functions.
16465 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16466 the premature SLP check here.
16467 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16468 detected SLP stmts.
16469 (vect_detect_hybrid_slp_1): Likewise.
16470
16471 2015-05-26 Jeff Law <law@redhat.com>
16472
16473 * combine.c (find_split_point): Verify that the shift count is a
16474 constant when choosing (plus (ashift ...)) as a split point.
16475
16476 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16477 No functional changes.
16478
16479 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16480
16481 * ipa-polymorphic-call.c
16482 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16483 case when call target is already known.
16484
16485 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16486
16487 PR target/65979
16488 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16489 take into account the case that operands[1] and operands[2]
16490 are the same register.
16491
16492 2015-05-26 Michael Matz <matz@suse.de>
16493
16494 PR middle-end/66251
16495
16496 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16497 stores.
16498 (vect_create_vectorized_demotion_stmts): Always set
16499 STMT_VINFO_VEC_STMT, also with SLP.
16500 (vectorizable_store): Handle strided group stores.
16501
16502 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16503
16504 PR target/66049
16505 * config/aarch64/aarch64.md
16506 (*adds_shift_imm_<mode>): New pattern.
16507 (*subs_shift_imm_<mode>): Likewise.
16508 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16509 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16510 (*add_uxt<mode>_shift2): Likewise.
16511 (*add_uxtsi_shift2_uxtw): Likewise.
16512 (*sub_uxt<mode>_shift2): Likewise.
16513 (*sub_uxtsi_shift2_uxtw): Likewise.
16514
16515 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16516
16517 * config/rs6000/constraints.md (Y, U): Use match_test.
16518
16519 2015-05-26 Christian Bruel <christian.bruel@st.com>
16520
16521 PR target/52144
16522 * config/arm/arm.c (arm_option_check_internal)
16523 (arm_option_params_internal): Check opts->target_flags to set macros.
16524 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16525 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16526 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16527 (builtin_define): Replaced with def_or_undef_macro.
16528 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16529 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16530 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16531 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16532 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16533 (TARGET_ARM_FEATURE_LDREX_P)
16534 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16535 * config/arm/arm-c.c (def_or_undef_macro): New function.
16536 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16537
16538 2015-05-26 Christian Bruel <christian.bruel@st.com>
16539
16540 * c-common.h (builtin_define_with_int_value)
16541 (builtin_define_type_sizeof): Declare.
16542 * c-cppbuiltin.c (builtin_define_with_int_value)
16543 (builtin_define_type_sizeof): Externalize.
16544 (builtin_define_std): Cleanup declaration.
16545 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16546 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16547 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16548 (builtin_define, builtin_assert): New macros.
16549
16550 2015-05-26 Richard Biener <rguenther@suse.de>
16551
16552 PR tree-optimization/66142
16553 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16554 MEM_REFs for the same base address.
16555
16556 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16557
16558 PR ipa/66181
16559 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16560
16561 2015-05-26 Jason Merrill <jason@redhat.com>
16562
16563 * configure.ac: Set CXXFLAGS for ISL test.
16564 * configure: Regenerate.
16565
16566 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16567 strstr and basename.
16568 * configure: Regenerate.
16569
16570 2015-05-26 Richard Biener <rguenther@suse.de>
16571
16572 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16573 X % C -> X & (C - 1) for C being a power-of two to ...
16574 * match.pd: ... patterns.
16575
16576 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16577
16578 * match.pd (swapped_tcc_comparison): New operator list.
16579 (-A CMP -B): New simplification.
16580 * fold-const.c (fold_comparison): Remove corresponding code.
16581
16582 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16583
16584 * caller-save.c (init_caller_save): Base temporary register numbers
16585 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16586 * cfgloopanal.c (init_set_costs): Likewise.
16587 * dojump.c (prefer_and_bit_test): Likewise.
16588 * expr.c (init_expr_target): Likewise.
16589 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16590 * lower-subreg.c (init_lower_subreg): Likewise.
16591 * postreload.c (reload_cse_regs_1): Likewise.
16592
16593 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16594
16595 * gensupport.h (compute_test_codes): Declare.
16596 * gensupport.c (compute_predicate_codes): Rename to...
16597 (compute_test_codes): ...this. Generalize error message.
16598 (process_define_predicate): Update accordingly.
16599 * genpreds.c (compute_maybe_allows): Delete.
16600 (add_constraint): Use compute_test_codes to determine whether
16601 something can accept a SUBREG, REG or MEM.
16602
16603 2015-05-26 Torvald Riegel <triegel@redhat.com>
16604
16605 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16606 'memory model' to align with C++11; fix description of memory orders;
16607 fix a few typos.
16608
16609 2015-05-26 Richard Biener <rguenther@suse.de>
16610
16611 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16612 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16613 detect whether we apply SLP. Remove call to
16614 vect_update_slp_costs_according_to_vf.
16615 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16616 vect_update_slp_costs_according_to_vf from here. Dispatch
16617 to vect_slp_analyze_operations to analyze SLP stmts.
16618 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16619 unused bb_vec_info parameter, adjust assert.
16620 (vect_slp_analyze_operations): Pass in the slp instance tree
16621 instead of bb_vec_info.
16622 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16623 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16624
16625 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16626
16627 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16628 Q_REGS. Expand comment.
16629 (REG_CLASS_NAMES): Ditto.
16630 (REG_CLASS_CONTENTS): Ditto.
16631
16632 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16633
16634 PR target/66274
16635 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16636 when LEGACY_INT_REGNO_P is processed.
16637
16638 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16639
16640 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16641
16642 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16643
16644 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16645 register if not marked dead/unused, before return.
16646
16647 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16648
16649 PR lto/66180
16650 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16651 is set; check for assembler name at LTO time.
16652 (type_in_anonymous_namespace): Remove hacks, check that all
16653 anonymous types are called "<anon>"
16654 (odr_type_p): Simplify; add check for "<anon>"
16655 (odr_subtypes_equivalent): Add odr_type_p check.
16656 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16657 assembler name.
16658
16659 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16660
16661 * ipa-utils.h (method_class_type): Remove.
16662 * cgraphunit.c (walk_polymorphic_call_targets): Use
16663 TYPE_METHOD_BASETYPE.
16664 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16665 on main variants only.
16666 (method_class_type): Remove.
16667 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16668 (build_type_inheritance_graph): Likewise.
16669 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16670 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16671 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16672
16673 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16674
16675 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16676 is_typedef_decl, typedef_variant_p): Constify.
16677 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16678 is_typedef_decl, typedef_variant_p): Constify.
16679
16680 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16681
16682 * defaults.h (gen_tablejump): New function.
16683 (HAVE_tablejump): Add default value.
16684 * expr.c: Adjust.
16685 * stmt.c: Likewise.
16686
16687 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16688
16689 * defaults.h (gen_store_multiple): New function.
16690 (HAVE_store_multiple): Add default value.
16691 * expr.c (move_block_from_reg): Adjust.
16692
16693 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16694
16695 * defaults.h (gen_load_multiple): New function.
16696 (HAVE_load_multiple): Add default value.
16697 * expr.c (move_block_to_reg): Adjust.
16698
16699 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16700
16701 * defaults.h (gen_mem_signal_fence): New function.
16702 (HAVE_mem_signal_fence): Add default value.
16703 * optabs.c: Adjust.
16704
16705 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16706
16707 * defaults.h (gen_memory_barrier): New function.
16708 (HAVE_memory_barrier): Add default value.
16709 * optabs.c: Adjust.
16710
16711 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16712
16713 * defaults.h (gen_mem_thread_fence): New function.
16714 (HAVE_mem_thread_fence): Add default definition.
16715 * optabs.c: Adjust.
16716
16717 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16718
16719 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16720 instead of if it is defined.
16721 (combine_simplify_rtx): Likewise.
16722 * lra-constraints.c (process_address_1): Likewise.
16723 * config/darwin.c: Adjust.
16724 * genconfig.c (main): Always define HAVE_lo_sum.
16725
16726 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16727
16728 * genmatch.c (parser::parse_operation): Reject expanding
16729 operator-list inside 'for'.
16730
16731 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16732
16733 * genmatch.c (parser::parse_for): Reject iterator if used as
16734 operator-list.
16735
16736 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16737
16738 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16739 after end of id-list.
16740
16741 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16742
16743 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16744 we do not try to compute canonical type for type that does not need
16745 alias set.
16746 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16747 FUNCITON_TYPE.
16748 * tree.h (type_with_alias_set_p): New.
16749
16750 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16751
16752 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16753 function attributes.
16754 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16755
16756 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16757
16758 * Makefile.in (check_gcc_parallelize): Delete.
16759 (lang_checks_parallelized): Update comment.
16760
16761 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16762
16763 PR rtl-optimization/66237
16764 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16765 location of an "as_a" cast.
16766
16767 2015-05-22 Jeff Law <law@redhat.com>
16768
16769 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16770 (peepholes with non-canonical RTL sources): Remove.
16771 (peepholes for indexed stores of FP regs in integer modes): Match and
16772 generate canonical RTL.
16773
16774 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16775
16776 PR tree-optimization/63387
16777 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16778 ((x ord x) & (y ord y) -> (x ord y),
16779 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16780 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16781 vectors like scalars.
16782
16783 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16784
16785 * convert.c (convert_to_integer, convert_to_vector): Include the
16786 types in the error message.
16787
16788 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16789
16790 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16791 simplifications.
16792
16793 2015-05-22 Jeff Law <law@redhat.com>
16794
16795 * config/pa/pa.md (integer_indexed_store splitters): Use
16796 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16797 insns -- adjusting the constant 2nd operand accordingly.
16798
16799 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16800 (plus (ashift X log2) Y) if it is a split point.
16801
16802 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16803 out of hppa_legitimize_address to handle both forms of a multiply
16804 by 2, 4 or 8.
16805 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16806 Always generate the ASHIFT variant as the result is not directly
16807 used in a MEM. Update comments and refactor slightly to improve
16808 readability.
16809
16810 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16811
16812 PR target/65491
16813 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16814 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16815 (aarch64_composite_type_p): Return false if given type and mode are
16816 for a short vector.
16817
16818 2015-05-22 Richard Biener <rguenther@suse.de>
16819
16820 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16821 member.
16822 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16823 patterns when determining whether SLP is pure.
16824 (vect_is_slp_reduction): Remove check for pattern stmts.
16825 (vect_is_simple_reduction_1): Remove dead code.
16826 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16827 (vect_get_and_check_slp_defs): Pass in the stmt number.
16828 Allow the first def in a reduction to be not a pattern stmt when
16829 the rest of the stmts def are patterns.
16830 (vect_build_slp_tree_1): Allow tcc_expression codes like
16831 SAD_EXPR and DOT_PROD_EXPR.
16832 (vect_build_slp_tree): Adjust.
16833 (vect_analyze_slp): Refactor and move BB vect error message ...
16834 (vect_slp_analyze_bb_1): ... here.
16835
16836 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16837
16838 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16839 for CSWTCH temporary.
16840
16841 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16842
16843 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16844 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16845 unknown unspecs.
16846
16847 2015-05-22 Richard Biener <rguenther@suse.de>
16848
16849 PR tree-optimization/66251
16850 * tree-vect-stmts.c (vectorizable_conversion): Properly
16851 set STMT_VINFO_VEC_STMT even for the SLP case.
16852
16853 2015-05-22 Marek Polacek <polacek@redhat.com>
16854
16855 * doc/extend.texi: Use @pxref instead of @xref.
16856
16857 2015-05-22 hiraditya <hiraditya@msn.com>
16858
16859 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16860 redundant if.
16861
16862 2015-05-22 Richard Biener <rguenther@suse.de>
16863
16864 PR tree-optimization/65701
16865 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16866 Move peeling cost models into one place. Peel for alignment
16867 for single loads only if an aligned load is cheaper than
16868 an unaligned load.
16869
16870 2015-05-22 Marek Polacek <polacek@redhat.com>
16871
16872 PR c/47043
16873 * doc/extend.texi (Enumerator Attributes): New section.
16874 Document syntax of enumerator attributes.
16875
16876 2015-05-22 Richard Biener <rguenther@suse.de>
16877
16878 * tree-vect-loop.c (get_reduction_op): New function.
16879 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16880 Make ready for BB reductions.
16881 (vect_create_epilog_for_reduction): Use get_reduction_op.
16882 (vectorizable_reduction): Init reduc_index to a valid value.
16883 Adjust vect_model_reduction_cost call.
16884 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16885 operand for reduction defaults. Add SAD_EXPR support.
16886 Assert we have a neutral op for SLP reductions.
16887 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16888 walking pattern stmt ops only recurse to SSA names.
16889
16890 2015-05-22 Richard Biener <rguenther@suse.de>
16891
16892 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16893 assert with guard, remove check on detected reduction.
16894 (vect_recog_sad_pattern): Likewise.
16895 (vect_recog_widen_sum_pattern): Likewise.
16896
16897 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16898
16899 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16900 __always_inline__ attribute.
16901 (vaesdq_u8): Likewise.
16902 (vaesmcq_u8): Likewise.
16903 (vaesimcq_u8): Likewise.
16904 (vsha1cq_u32): Likewise.
16905 (vsha1mq_u32): Likewise.
16906 (vsha1pq_u32): Likewise.
16907 (vsha1h_u32): Likewise.
16908 (vsha1su0q_u32): Likewise.
16909 (vsha1su1q_u32): Likewise.
16910 (vsha256hq_u32): Likewise.
16911 (vsha256h2q_u32): Likewise.
16912 (vsha256su0q_u32): Likewise.
16913 (vsha256su1q_u32): Likewise.
16914 (vmull_p64): Likewise.
16915 (vmull_high_p64): Likewise.
16916
16917 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16918
16919 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16920 preprocessor.
16921 * output.h: Likewise.
16922 * genconfig.c (main): Alwways define HAVE_peephole.
16923 * genpeep.c: Don't emit checks of HAVE_peephole.
16924
16925 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16926
16927 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16928 check HAVE_conditional_move with the preprocessor.
16929
16930 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16931
16932 * genconfig.c (main): Always define HAVE_conditional_move.
16933 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16934 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16935 is defined.
16936
16937 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16938
16939 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16940 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16941 and FRAME_POINTER_REGNUM with the preprocessor.
16942
16943 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16944
16945 * defaults.h: Add default for STACK_PUSH_CODE.
16946 * expr.c: Don't redefine STACK_PUSH_CODE.
16947 * recog.c: Likewise.
16948
16949 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16950
16951 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16952 sched-deps.c: Use if instead of preprocessor checks with
16953 STACK_GROWS_DOWNWARD.
16954
16955 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16956
16957 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16958 is defined.
16959 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16960 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16961 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16962 * doc/tm.texi: Regenerate.
16963
16964 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16965
16966 PR target/66232
16967 * config/i386/constraints.md (Bg): New constraint for GOT memory
16968 operand.
16969 * config/i386/i386.md (*call_got_x32): New pattern.
16970 (*call_value_got_x32): Likewise.
16971 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16972
16973 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16974
16975 PR tree-optimization/66233
16976 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16977 Simplify.
16978
16979 2015-05-21 Jeff Law <law@redhat.com>
16980
16981 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16982 than MULT for shadd sequences.
16983
16984 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16985
16986 * alias.c (alias_stats): New static var.
16987 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16988 (dump_alias_stats_in_alias_c): New function.
16989 * alias.h (dump_alias_stats_in_alias_c): Declare.
16990 * tree-ssa-alias.c (dump_alias_stats): Call it.
16991
16992 2015-05-08 Michael Matz <matz@suse.de>
16993
16994 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16995 to strided_p.
16996 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16997 (STMT_VINFO_STRIDED_P): ... this.
16998 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16999 (vect_verify_datarefs_alignment): Likewise.
17000 (vect_enhance_data_refs_alignment): Likewise.
17001 (vect_analyze_data_ref_access): Likewise.
17002 (vect_analyze_data_refs): Accept strided stores.
17003 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17004 (vect_model_load_cost): Adjust for macro rename.
17005 (vectorizable_mask_load_store): Likewise.
17006 (vectorizable_load): Likewise.
17007 (vectorizable_store): Open code strided stores.
17008
17009 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17010
17011 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17012 Document sqrt_insn.
17013
17014 2015-05-21 Richard Biener <rguenther@suse.de>
17015
17016 PR c++/66211
17017 * match.pd: Guard pattern optimzing (int)(float)int
17018 conversions to apply only on GIMPLE.
17019
17020 2015-05-21 Jeff Law <law@redhat.com>
17021
17022 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17023 multiply-accumulate/shift-add insn generation.
17024
17025 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17026
17027 PR target/54236
17028 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17029 operands[1] are the same.
17030
17031 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17032
17033 PR middle-end/66221
17034 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17035 build_distinct_type_copy to copy bounds.
17036
17037 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17038
17039 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17040 Change to unsigned int.
17041
17042 2015-05-20 Jeff Law <law@redhat.com>
17043
17044 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17045 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17046 (pa_shadd_constant_p): Allow constants for shadd insns rather
17047 than valid scaling constants for memory addresses.
17048 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17049 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17050 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17051 (shift-add insns using ASHIFT): New patterns.
17052
17053 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17054
17055 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17056 feasible.
17057 (fix_up_fall_thru_edges): Likewise.
17058 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17059 from to rtx_insn to rtx_code_label where feasible.
17060 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17061 gen_move_insn (returned type changed to rtx_insn).
17062 * builtins.c (expand_errno_check): Fix arguments of
17063 do_compare_rtx_and_jump (now expects rtx_code_label).
17064 (expand_builtin_acc_on_device): Likewise.
17065 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17066 invert_jump (now exprects rtx_jump_insn).
17067 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17068 (construct_init_block): Use rtx_code_label.
17069 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17070 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17071 calling redirect_jump.
17072 (patch_jump_insn): Likewise.
17073 (redirect_branch_edge): Likewise.
17074 (force_nonfallthru_and_redirect): Likewise.
17075 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17076 when suitable.
17077 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17078 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17079 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17080 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17081 to store the value retured by gen_label_rtx.
17082 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17083 rtx_jump_insn.
17084 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17085 (split_branches): Fix calls of redirect_jump.
17086 * dojump.c (jumpifnot): Promote argument type from rtx to
17087 rtx_code_label.
17088 (jumpifnot_1): Likewise.
17089 (jumpif): Likewise.
17090 (jumpif_1): Likewise.
17091 (do_jump_1): Likewise.
17092 (do_jump): Likewise. Use rtx_code_label when feasible.
17093 (do_jump_by_parts_greater_rtx): Likewise.
17094 (do_jump_by_parts_zero_rtx): Likewise.
17095 (do_jump_by_parts_equality_rtx): Likewise.
17096 (do_compare_rtx_and_jump): Likewise.
17097 * dojump.h: Update function prototypes.
17098 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17099 returns rtx_insn).
17100 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17101 rtx_jump_insn.
17102 (emit_label_before): Likewise.
17103 (emit_jump_insn_after_noloc): Likewise.
17104 (emit_jump_insn_after_setloc): Likewise.
17105 (emit_jump_insn_after): Likewise
17106 (emit_jump_insn_before_setloc): Likewise.
17107 (emit_jump_insn_before): Likewise.
17108 (emit_label_before): Promote return type to rtx_code_label.
17109 (emit_label): Likewise.
17110 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17111 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17112 gen_move_insn.
17113 (emit_stack_restore): Likewise.
17114 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17115 (do_cmp_and_jump): Likewise.
17116 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17117 from rtx to rtx_code_label.
17118 (gen_move_insn_uncast): New function.
17119 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17120 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17121 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17122 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17123 invert_jump_1 and redirect_jump_1.
17124 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17125 do_compare_rtx_and_jump.
17126 (expand_addsub_overflow): Likewise.
17127 (expand_neg_overflow): Likewise.
17128 (expand_mul_overflow): Likewise.
17129 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17130 return value of gen_move_insn.
17131 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17132 * loop-doloop.c (add_test): Use rtx_code_label.
17133 (doloop_modify): Likewise.
17134 (doloop_optimize): Likewise.
17135 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17136 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17137 by gen_move_insn.
17138 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17139 (split_reg): Likewise.
17140 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17141 gen_move_insn.
17142 * optabs.c (expand_binop_directly): Remove casts of values returned by
17143 maybe_gen_insn.
17144 (expand_unop_direct): Likewise.
17145 (expand_abs): Likewise.
17146 (maybe_emit_unop_insn): Likewise.
17147 (maybe_gen_insn): Promote return type to rtx_insn.
17148 * optabs.h: Update prototype of maybe_gen_insn.
17149 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17150 redundant cast.
17151 * recog.c (struct peep2_insn_data): Promote type of insn field to
17152 rtx_insn.
17153 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17154 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17155 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17156 * recog.h (struct insn_gen_fn): Promote return types of function
17157 pointers and operator ().from rtx to rtx_insn.
17158 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17159 (fill_eager_delay_slots): Likewise.
17160 (relax_delay_slots): Likewise.
17161 (make_return_insns): Likewise.
17162 (dbr_schedule): Likewise.
17163 (optimize_skips): Likewise.
17164 (reorg_redirect_jump): Likewise.
17165 (fill_slots_from_thread): Likewise.
17166 * reorg.h: Update prototypes.
17167 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17168 rtx_jump_insn instead of check. Use it's jump_target method.
17169 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17170 (rtx_jump_insn::jump_target): Define new method.
17171 (rtx_jump_insn::set_jump_target): Define new method.
17172 * rtlanal.c (tablejump_p): Promote type of one local variable.
17173 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17174 (sched_analyze_insn): Likewise.
17175 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17176 (print_insn): Likewise.
17177 * stmt.c (label_rtx): Promote return type to rtx_insn.
17178 (force_label_rtx): Likewise.
17179 (jump_target_rtx): Define new function.
17180 (expand_label): Use it, get rid of one cast.
17181 (expand_naked_return): Promote rtx to rtx_code_label.
17182 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17183 (expand_case): Use rtx_code_label instread of rtx where feasible.
17184 (expand_sjlj_dispatch_table): Likewise.
17185 (emit_case_nodes): Likewise.
17186 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17187 * store-motion.c (insert_store): Make use of new return type of
17188 gen_move_insn and remove a cast.
17189 (replace_store_insn): Likewise.
17190
17191 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17192
17193 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17194 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17195
17196 2015-05-20 Jeff Law <law@redhat.com>
17197
17198 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17199 dispose of the jump thread path when the jump threading
17200 opportunity is cancelled.
17201
17202 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17203
17204 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17205 when printing the caret character.
17206
17207 2015-05-20 Marek Polacek <polacek@redhat.com>
17208
17209 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17210
17211 2015-05-20 Marek Polacek <polacek@redhat.com>
17212
17213 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17214 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17215 * gimple-fold.c (canonicalize_bool): Likewise.
17216 (same_bool_result_p): Likewise.
17217 * tree-if-conv.c (parse_predicate): Likewise.
17218
17219 2015-05-20 Marek Polacek <polacek@redhat.com>
17220
17221 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17222 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17223
17224 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17225
17226 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17227 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17228 values.
17229
17230 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17231
17232 * config/mips/mips.h (micromips_globals): Declare.
17233
17234 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17235
17236 * timevar.def (TV_INITIALIZE_RTL): New.
17237 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17238 function's time to TV_INITIALIZE_RTL.
17239
17240 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17241
17242 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17243 gimple_build_nop calls.
17244 (chkp_find_bounds_for_elem): Likewise.
17245 (chkp_get_zero_bounds): Likewise.
17246 (chkp_get_none_bounds): Likewise.
17247 (chkp_get_bounds_by_definition): Likewise.
17248 (chkp_generate_extern_var_bounds): Likewise.
17249 (chkp_get_bounds_for_decl_addr): Likewise.
17250 (chkp_get_bounds_for_string_cst): Likewise.
17251
17252 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17253
17254 PR tree-optimization/65447
17255 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17256 (dump_use, dump_uses): Support to dump sub use.
17257 (record_use): New parameters to support sub use. Remove call to
17258 dump_use.
17259 (record_sub_use, record_group_use): New functions.
17260 (compute_max_addr_offset, split_all_small_groups): New functions.
17261 (group_address_uses, rewrite_use_address): New functions.
17262 (strip_offset): New declaration.
17263 (find_interesting_uses_address): Call record_group_use.
17264 (add_candidate): New assertion.
17265 (infinite_cost_p): Move definition forward.
17266 (add_costs): Check INFTY cost and return immediately.
17267 (get_computation_cost_at): Clear setup cost and dependent bitmap
17268 for sub uses.
17269 (determine_use_iv_cost_address): Compute cost for sub uses.
17270 (rewrite_use_address_1): Rename from old rewrite_use_address.
17271 (free_loop_data): Free sub uses.
17272 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17273
17274 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17275 Jim Wilson <jim.wilson@linaro.org>
17276
17277 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17278 new fields loadv and storev.
17279 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17280 Initialize loadv and storev.
17281 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17282 (cortexa53_extra_costs): Likewise.
17283 (cortexa57_extra_costs): Likewise.
17284 (xgene1_extra_costs): Likewise.
17285 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17286 rtx_costs.
17287
17288 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17289
17290 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17291 storev.
17292 (cortexa8_extra_costs): Likewise.
17293 (cortexa5_extra_costs): Likewise.
17294 (cortexa7_extra_costs): Likewise.
17295 (cortexa12_extra_costs): Likewise.
17296 (cortexa15_extra_costs): Likewise.
17297 (v7m_extra_costs): Likewise.
17298
17299 2015-05-20 Jeff Law <law@redhat.com>
17300
17301 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17302 instead of open-coded version. Also delete the jump thread created
17303 within this function.
17304
17305 2015-05-20 Alan Modra <amodra@gmail.com>
17306
17307 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17308 stack adjusting insn. Formatting.
17309 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17310 r12. If possible, emit first -fsplit-stack arg pointer insn
17311 before stack adjust. Don't use r12 to save cr if split-stack.
17312
17313 2015-05-20 Alan Modra <amodra@gmail.com>
17314
17315 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17316 Define.
17317 (rs6000_supports_split_stack): New function.
17318 * gcc/config/rs6000/rs6000.c (machine_function): Add
17319 split_stack_arg_pointer.
17320 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17321 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17322 rather than virtual_incoming_args_rtx.
17323 (rs6000_va_start): Likewise.
17324 (split_stack_arg_pointer_used_p): New function.
17325 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17326 (morestack_ref): New var.
17327 (gen_add3_const, rs6000_expand_split_stack_prologue,
17328 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17329 rs6000_split_stack_space_check): New functions.
17330 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17331 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17332 (UNSPECV_SPLIT_STACK_RETURN): Define.
17333 (split_stack_prologue, load_split_stack_limit,
17334 load_split_stack_limit_di, load_split_stack_limit_si,
17335 split_stack_return, split_stack_space_check): New expands and insns.
17336 * gcc/config/rs6000/rs6000-protos.h
17337 (rs6000_expand_split_stack_prologue): Declare.
17338 (rs6000_split_stack_space_check): Declare.
17339
17340 2015-05-20 Alan Modra <amodra@gmail.com>
17341
17342 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17343 (direct_return): Test vrsave_size rather than vrsave_mask.
17344 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17345 (rs6000_emit_epilogue): Likewise.
17346
17347 2015-05-20 Alan Modra <amodra@gmail.com>
17348
17349 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17350 when not saving registers.
17351 (debug_stack_info): Adjust to omit printing unused offsets,
17352 as before.
17353 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17354 expression.
17355
17356 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17357
17358 PR c++/65835
17359 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17360 value_type to const char *.
17361
17362 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17363
17364 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17365 to build a biarch toolchain again.
17366
17367 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17368
17369 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17370 or implicit declarations.
17371 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17372 into it.
17373 (get_odr_type): Check type has linkage before adding bases.
17374 (register_odr_type): Check that type has linkage before adding it.
17375 (type_known_to_have_no_deriavations_p): Rename to ..
17376 (type_known_to_have_no_derivations_p): This one.
17377 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17378 (type_known_to_have_no_derivations_p): This one.
17379 * ipa-polymorphic-call.c
17380 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17381 type has linkage.
17382
17383 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17384
17385 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17386 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17387
17388 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17389
17390 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17391 (s390_invalid_binary_op): New function.
17392 (TARGET_INVALID_BINARY_OP): Define macro.
17393
17394 2015-05-19 David Sherwood <david.sherwood@arm.com>
17395
17396 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17397 if mode is not a scalar integer.
17398 (get_inv_cost): Increase computational cost for unused invariants.
17399
17400 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17401
17402 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17403 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17404 * config/s390/s390-builtin-types.def: New file.
17405 * config/s390/s390-builtins.def: New file.
17406 * config/s390/s390-builtins.h: New file.
17407 * config/s390/s390-c.c: New file.
17408 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17409 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17410 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17411 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17412 prototypes.
17413 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17414 Include.
17415 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17416 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17417 variable definitions.
17418 (s390_const_operand_ok): New function.
17419 (s390_expand_builtin): Rewrite.
17420 (s390_init_builtins): New function.
17421 (s390_handle_vectorbool_attribute): New function.
17422 (s390_attribute_table): Add s390_vector_bool attribute.
17423 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17424 (s390_branch_condition_mask): Generate masks for new modes.
17425 (s390_expand_vec_compare_cc): New function.
17426 (s390_mangle_type): Add mangling for vector bool types.
17427 (enum s390_builtin): Remove.
17428 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17429 efpc builtins.
17430 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17431 s390_cpu_cpp_builtins.
17432 (REGISTER_TARGET_PRAGMAS): New macro.
17433 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17434 (insn_cmp mode attribute): Add new CC modes.
17435 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17436 (lcbb): New pattern definition.
17437 * config/s390/s390intrin.h: Include vecintrin.h.
17438 * config/s390/t-s390: New file.
17439 * config/s390/vecintrin.h: New file.
17440 * config/s390/vector.md: Include vx-builtins.md.
17441 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17442 support.
17443
17444 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17445
17446 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17447 CCVFHE.
17448 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17449 (s390_select_ccmode): Likewise.
17450 (s390_canonicalize_comparison): Swap operands if necessary.
17451 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17452 single element vector instructions.
17453 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17454 (s390_branch_condition_mask): Generate CC masks for the new modes.
17455 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17456 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17457 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17458 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17459 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17460 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17461 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17462 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17463 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17464 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17465 (sqrt<mode>2): Add vector instruction.
17466
17467 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17468
17469 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17470 constraints.
17471 * config/s390/predicates.md (const0_operand, constm1_operand)
17472 (constable_operand): Accept vector operands.
17473 * config/s390/s390-modes.def: Add supported vector modes.
17474 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17475 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17476 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17477 (s390_expand_vec_compare, s390_expand_vcond)
17478 (s390_expand_vec_init): Add prototypes.
17479 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17480 (s390_vector_mode_supported_p): New function.
17481 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17482 (s390_contiguous_bitmask_vector_p): New function.
17483 (s390_bytemask_vector_p): New function.
17484 (s390_split_ok_p): Vector regs don't work either.
17485 (regclass_map): Add VEC_REGS.
17486 (s390_legitimate_constant_p): Handle vector constants.
17487 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17488 (legitimate_reload_vector_constant_p): New function.
17489 (s390_preferred_reload_class): Handle CONST_VECTOR.
17490 (s390_reload_symref_address): Likewise.
17491 (s390_secondary_reload): Vector memory instructions only support
17492 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17493 (s390_emit_ccraw_jump): New function.
17494 (s390_expand_vec_strlen): New function.
17495 (s390_expand_vec_compare): New function.
17496 (s390_expand_vcond): New function.
17497 (s390_expand_vec_init): New function.
17498 (s390_dwarf_frame_reg_mode): New function.
17499 (print_operand): Handle addresses with 'O' and 'R' constraints.
17500 (NR_C_MODES, constant_modes): Add vector modes.
17501 (s390_output_pool_entry): Handle vector constants.
17502 (s390_hard_regno_mode_ok): Handle vector registers.
17503 (s390_class_max_nregs): Likewise.
17504 (s390_cannot_change_mode_class): New function.
17505 (s390_invalid_arg_for_unprototyped_fn): New function.
17506 (s390_function_arg_vector): New function.
17507 (s390_function_arg_float): Remove size variable.
17508 (s390_pass_by_reference): Handle vector arguments.
17509 (s390_function_arg_advance): Likewise.
17510 (s390_function_arg): Likewise.
17511 (s390_return_in_memory): Vector values are returned in a VR if
17512 possible.
17513 (s390_function_and_libcall_value): Handle vector arguments.
17514 (s390_gimplify_va_arg): Likewise.
17515 (s390_call_saved_register_used): Consider the arguments named.
17516 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17517 targets.
17518 (s390_preferred_simd_mode): New function.
17519 (s390_support_vector_misalignment): New function.
17520 (s390_vector_alignment): New function.
17521 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17522 (TARGET_VECTOR_MODE_SUPPORTED_P)
17523 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17524 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17525 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17526 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17527 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17528 (FIRST_PSEUDO_REGISTER): Increase value.
17529 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17530 (VECTOR_REG_P): Define macros.
17531 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17532 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17533 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17534 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17535 Add vector registers.
17536 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17537 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17538 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17539 memory.
17540 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17541 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17542 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17543 (VR*_REGNUM): New constants.
17544 (ALL): New mode iterator.
17545 (INTALL): Remove mode iterator.
17546 Include vector.md.
17547 (movti): Implement TImode moves for VRs.
17548 Disable TImode splitter for VR targets.
17549 Implement splitting TImode GPR<->VR moves.
17550 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17551 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17552 reload<mode>_la_in, reload<mode>_la_out.
17553 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17554 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17555 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17556 (mov<mode> SF SD): Prefer lder, lde for loading.
17557 Add lrl and strl instructions.
17558 Add vector instructions.
17559 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17560 Call s390_expand_vec_strlen on z13.
17561 (*cc_to_int): Change predicate to nonimmediate_operand.
17562 (addti3): Rename to *addti3. New expander.
17563 (subti3): Rename to *subti3. New expander.
17564 * config/s390/vector.md: New file.
17565
17566 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17567
17568 * common/config/s390/s390-common.c (processor_flags_table): Add
17569 z13.
17570 * config.gcc: Add z13.
17571 * config/s390/s390-opts.h (enum processor_type): Add
17572 PROCESSOR_2964_Z13.
17573 * config/s390/s390.c (s390_adjust_priority): Check for
17574 PROCESSOR_2964_Z13.
17575 (s390_reorg): Likewise.
17576 (s390_sched_reorder): Likewise.
17577 (s390_sched_variable_issue): Likewise.
17578 (s390_loop_unroll_adjust): Likewise.
17579 (s390_option_override): Likewise. Default to -mvx when available.
17580 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17581 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17582 (TARGET_VX_ABI): Define macros.
17583 macros.
17584 (TARGET_DEFAULT): Add MASK_OPT_VX.
17585 * config/s390/s390.md ("cpu" attribute): Add z13.
17586 ("cpu_facility" attribute): Add vec.
17587 * config/s390/s390.opt (processor_type): Add z13.
17588 (mvx): New options.
17589 * doc/invoke.texi: Add z13 option for -march.
17590
17591 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17592
17593 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17594 mode check to make sure that only scalar integer values are
17595 accepted.
17596
17597 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17598
17599 * tree.c (verify_type_variant): Fix #undef.
17600 (gimple_canonical_types_compatible_p): Move here from lto.c
17601 (verify_type): Verify TYPE_CANONICAL compatibility.
17602 * tree.h (gimple_canonical_types_compatible_p): Declare.
17603
17604 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17605
17606 PR middle-end/66199
17607 * tree.h (OMP_TEAMS_COMBINED): Define.
17608 * gimplify.c (enum gimplify_omp_var_data): Add
17609 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17610 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17611 (omp_notice_variable): Accept both ORT_TEAMS
17612 and ORT_COMBINED_TEAMS. Don't recurse if
17613 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17614 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17615 GOVD_FIRSTPRIVATE.
17616 (omp_no_lastprivate): New function.
17617 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17618 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17619 notice_outer and set appropriate bits, otherwise make
17620 sure default(none) combined constructs won't complain.
17621 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17622 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17623 omp_no_lastprivate either remove the clause or turn it
17624 into OMP_CLAUSE_PRIVATE.
17625 (gimplify_omp_for): Fix up handling of implicit
17626 lastprivate or linear iterators.
17627 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17628 ORT_COMBINED_TEAMS.
17629 * omp-low.c (lower_omp_for_lastprivate): For combined
17630 for simd use fd.loop.n2 from the for rather than simd.
17631
17632 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17633
17634 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17635 instead of gen_rtx_raw_REG.
17636 (cris_expand_epilogue): Likewise.
17637 * config/microblaze/microblaze.c (microblaze_classify_address):
17638 Likewise.
17639 * config/sparc/sparc.md: Likewise.
17640
17641 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17642
17643 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17644 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17645 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17646 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17647 Use CASE_CONST_SCALAR_INT.
17648 (print_operand) <case 'M'>: Use mode_width_operand to check the
17649 value of the constant.
17650 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17651 * config/alpha/predicates.md (input_operand): Use general_operand
17652 instead of match_code as operand check.
17653 (symbolic_operand): Use match_code with subexpression digits.
17654 * config/alpha/constraints.md (Q): Ditto.
17655
17656 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17657
17658 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17659
17660 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17661
17662 * config/s390/s390.c (s390_secondary_reload): Fix check for
17663 load/store relative.
17664
17665 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17666
17667 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17668 alternative_mask to uint64_t.
17669
17670 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17671
17672 PR tree-optimization/66187
17673 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17674 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17675 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17676
17677 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17678
17679 * diagnostic.c (diagnostic_report_current_module): Strengthen
17680 local "new_map" from const line_map * to
17681 const line_map_ordinary *.
17682 * genmatch.c (error_cb): Likewise for local "map".
17683 (output_line_directive): Likewise for local "map".
17684 * input.c (expand_location_1): Likewise for local "map".
17685 Pass NULL rather than &map to
17686 linemap_unwind_to_first_non_reserved_loc, since the value is never
17687 read from there, and the value written back not read from here.
17688 (is_location_from_builtin_token): Strengthen local "map" from
17689 const line_map * to const line_map_ordinary *.
17690 (dump_location_info): Strengthen locals "map" from
17691 line_map *, one to const line_map_ordinary *, the other
17692 to const line_map_macro *.
17693 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17694 const line_map * to const line_map_macro *.
17695 (maybe_unwind_expanded_macro_loc): Add a call to
17696 linemap_check_macro when writing to the "map" field of the
17697 loc_map_pair.
17698 Introduce local const line_map_ordinary * "ord_map", using it in
17699 place of "map" in the part of the function where we know we have
17700 an ordinary map. Strengthen local "m" from const line_map * to
17701 const line_map_ordinary *.
17702
17703 2015-05-19 Nick Clifton <nickc@redhat.com>
17704
17705 PR target/66156
17706 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17707 separate source and destination registers.
17708
17709 2015-05-19 Richard Biener <rguenther@suse.de>
17710
17711 PR tree-optimization/66165
17712 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17713 for no load permutation.
17714
17715 PR tree-optimization/66185
17716 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17717 when building the SLP node from scalars.
17718
17719 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17720 Tristan Gingold <gingold@adacore.com>
17721
17722 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17723 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17724 (expand_stack_restore): Call record_new_stack_level.
17725 (expand_stack_save): Do not call do_pending_stack_adjust.
17726 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17727 * calls.c (expand_call): Call record_new_stack_level for alloca.
17728 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17729 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17730 (update_sjlj_context): New global function.
17731 * except.h (update_sjlj_context): Declare.
17732 * explow.c (record_new_stack_level): New global function.
17733 (allocate_dynamic_stack_space): Call record_new_stack_level.
17734 * explow.h (record_new_stack_level): Declare.
17735 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17736 * cfgrtl.c (duplicate_insn_chain): Likewise.
17737
17738 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17739
17740 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17741 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17742 STACK_GROWS_DOWNWARD as normal if.
17743 (expand_call): Likewise.
17744
17745 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17746
17747 PR target/54236
17748 * config/sh/sh.md (*round_int_even): New insn_and_split and
17749 accompanying new unnamed split.
17750
17751 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17752
17753 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17754 (bitmap_clear_range): Likewise.
17755 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17756 bitmap_set_range unconditionally.
17757 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17758 * df-scan.c (df_mark_reg): Likewise.
17759 * haifa-sched.c (setup_ref_regs): Likewise.
17760 * sched-rgn.c (update_live_1): Likewise.
17761
17762 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17763
17764 * regs.h (END_HARD_REGNO): Delete.
17765 (END_REGNO): Move to...
17766 * rtl.h: ...here.
17767 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17768 * caller-save.c (mark_set_regs): Likewise.
17769 * combine.c (move_deaths, distribute_notes): Likewise.
17770 * cse.c (invalidate, invalidate_for_call): Likewise.
17771 * df-scan.c (df_ref_record): Likewise.
17772 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17773 (record_last_reg_set_info): Likewise.
17774 * reg-stack.c (convert_regs_exit): Likewise.
17775 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17776 * resource.c (update_live_status): Likewise.
17777 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17778
17779 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17780
17781 * rtl.h (reg_info): Add an nregs field.
17782 (REG_NREGS): Use it.
17783 (SET_REGNO_RAW): Delete.
17784 (set_regno_raw): New function.
17785 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17786 (END_REGNO): Redefine in terms of REG_NREGS.
17787 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17788 SET_REGNO_RAW.
17789 * emit-rtl.c (set_mode_and_regno): Likewise.
17790 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17791 instead of SET_REGNO_RAW.
17792
17793 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17794
17795 * rtl.h (PUT_MODE_RAW): New macro.
17796 (PUT_REG_NOTE_KIND): Use it.
17797 (set_mode_and_regno): Declare.
17798 (gen_raw_REG): Change regno to "unsigned int".
17799 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17800 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17801 use set_mode_and_regno to change the mode of registers.
17802 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17803 * emit-rtl.c (set_mode_and_regno): New function.
17804 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17805 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17806 * expr.c (init_expr_target): Likewise.
17807 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17808 * postreload.c (reload_cse_simplify_operands): Likewise.
17809
17810 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17811
17812 * caller-save.c (init_caller_save): Use word_mode and
17813 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17814 * expr.c (init_expr_target): Likewise.
17815 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17816 * postreload.c (reload_cse_regs_1): Likewise.
17817
17818 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17819
17820 * rtl.def (REG): Change format to "r".
17821 * rtl.h (rtunion): Remove rt_reg.
17822 (reg_info): New structure.
17823 (rtx_def): Add reg field to main union.
17824 (X0REGATTR): Delete.
17825 (REG_CHECK): New macro.
17826 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17827 * rtl.c (rtx_format): Document "r".
17828 (rtx_code_size): Handle REG specially.
17829 * gengenrtl.c (special_format): Return true for formats
17830 that include 'r'.
17831 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17832 Deal with REG_ATTRS after the field loop.
17833 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17834 * expmed.c (init_expmed): Call gen_raw_REG instead of
17835 gen_rtx_raw_REG.
17836 * expr.c (init_expr_target): Likewise.
17837 * regcprop.c (maybe_mode_change): Likewise.
17838 * varasm.c (make_decl_rtl): Likewise.
17839 * final.c (leaf_renumber_regs_insn): Return early after
17840 handling REGs.
17841 * genemit.c (gen_exp): Handle 'r' fields.
17842 * genpeep.c (match_rtx): Likewise.
17843 * gensupport.c (subst_pattern_match): Likewise.
17844 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17845 (alter_constraints, subst_dup): Likewise.
17846 * read-rtl.c (read_rtx_code): Likewise.
17847 * print-rtl.c (print_rtx): Likewise.
17848 * genrecog.c (find_operand, find_matching_operand): Likewise.
17849 (validate_pattern, match_pattern_2): Likewise.
17850 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17851 (rtx_test::regno_field): New function.
17852 (operator ==, safe_to_hoist_p, transition_parameter_type)
17853 (parameter_type_string, print_parameter_value)
17854 (print_nonbool_test, print_test): Handle new enum values.
17855 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17856 * lra-constraints.c (operands_match_p): Likewise.
17857
17858 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17859
17860 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17861 Change type of new_regno to unsigned int.
17862 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17863 new_regno to unsigned int.
17864 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17865 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17866 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17867 (SET_REGNO_RAW): Add space after ",".
17868
17869 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17870
17871 * rtl.h (REG_NREGS): New macro
17872 * alias.c (record_set): Use it.
17873 * cfgcleanup.c (mark_effect): Likewise.
17874 * combine.c (likely_spilled_retval_1): Likewise.
17875 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17876 (move_deaths, distribute_notes): Likewise.
17877 * cselib.c (cselib_record_set): Likewise.
17878 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17879 * df-scan.c (df_mark_reg): Likewise.
17880 * dse.c (look_for_hardregs): Likewise.
17881 * dwarf2out.c (reg_loc_descriptor): Likewise.
17882 (multiple_reg_loc_descriptor): Likewise.
17883 * expr.c (write_complex_part, read_complex_part): Likewise.
17884 (emit_move_complex): Likewise.
17885 * haifa-sched.c (setup_ref_regs): Likewise.
17886 * ira-lives.c (mark_hard_reg_live): Likewise.
17887 * lra.c (lra_set_insn_recog_data): Likewise.
17888 * mode-switching.c (create_pre_exit): Likewise.
17889 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17890 (reload_combine_recognize_pattern): Likewise.
17891 (reload_combine_note_use, move2add_record_mode): Likewise.
17892 (reload_cse_move2add): Likewise.
17893 * reg-stack.c (subst_stack_regs_pat): Likewise.
17894 * regcprop.c (kill_value, copy_value): Likewise.
17895 (copyprop_hardreg_forward_1): Likewise.
17896 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17897 (build_def_use): Likewise.
17898 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17899 (deps_analyze_insn): Likewise.
17900 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17901 * sel-sched.c (count_occurrences_equiv): Likewise.
17902 * valtrack.c (dead_debug_insert_temp): Likewise.
17903
17904 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17905
17906 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17907 * dse.c (note_add_store): Likewise.
17908 * ira-lives.c (mark_hard_reg_dead): Likewise.
17909 * loop-invariant.c (mark_reg_store): Likewise.
17910 (mark_reg_death): Likewise.
17911 * postreload.c (reload_combine): Likewise.
17912 (reload_combine_note_store): Likewise.
17913 (reload_combine_note_use): Likewise.
17914 * recog.c (peep2_reg_dead_p): Likewise.
17915
17916 2015-05-19 Alan Modra <amodra@gmail.com>
17917
17918 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17919 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17920 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17921 unused predicates.
17922 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17923 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17924 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17925 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17926
17927 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17928
17929 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17930 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17931 (join2_loadhi): Likewise.
17932 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17933 load-load and store-stores.
17934 * config/mips/mips.opt (mload-store-pairs): New option.
17935 (TARGET_LOAD_STORE_PAIRS): New macro.
17936 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17937 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17938 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17939
17940 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17941
17942 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17943 explicit swaps.
17944 * dojump.c (do_compare_rtx_and_jump): Likewise.
17945 * expmed.c (emit_store_flag_1): Likewise.
17946 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17947 * final.c (sprint_ul): Use std::reverse for reversing a string.
17948 * fold-const.c (extract_muldiv_1): Use std::swap.
17949 * genmodes.c (emit_mode_int_n): Likewise.
17950 * ifcvt.c (dead_or_predicable): Likewise.
17951 * ira-build.c (ira_merge_live_ranges): Likewise.
17952 (swap_allocno_copy_ends_if_necessary): Likewise.
17953 * ira.c (ira_setup_alts): Likewise.
17954 * loop-iv.c (iv_analyze_expr): Likewise.
17955 (implies_p): Likewise.
17956 (canon_condition): Likewise.
17957 * lra-constraints.c (swap_operands): Likewise.
17958 * lra-lives.c (lra_merge_live_ranges): Likewise.
17959 * omega.c (swap): Remove.
17960 (bswap): Remove.
17961 (omega_unprotect_1): Use std::swap.
17962 (omega_solve_geq): Likewise.
17963 * optabs.c (expand_binop_directly): Likewise.
17964 (expand_binop): Likewise.
17965 (emit_conditional_move): Likewise.
17966 (emit_conditional_add): Likewise.
17967 * postreload.c (reload_cse_simplify_operands): Likewise.
17968 * reg-stack.c (emit_swap_insn): Likewise.
17969 (swap_to_top): Likewise.
17970 (compare_for_stack_reg): Likewise.
17971 (subst_asm_stack_regs): Likewise.
17972 * reload.c (find_reloads): Likewise.
17973 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17974 * sel-sched.c (invoke_reorder_hooks): Likewise.
17975 (create_block_for_bookkeeping): Likewise.
17976 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17977 (lambda_matrix_right_hermite): Use std::swap.
17978 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17979 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17980 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17981 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17982 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17983 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17984 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17985 * tree-vrp.c (compare_ranges): Likewise.
17986 * var-tracking.c (add_with_sets): Likewise.
17987 (vt_find_locations): Likewise.
17988
17989 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17990
17991 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17992 pie executables.
17993 (FBSD_ENDFILE_SPEC): Likewise.
17994 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17995 config/freebsd-spec.h.
17996 (ENDFILE_SPEC): Likewise.
17997
17998 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17999 Richard Henderson <rth@redhat.com>
18000
18001 PR target/57032
18002 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18003 Check for a memory location that is not a reference (using an AND)
18004 to an unaligned location here.
18005 * config/alpha/predicates.md (normal_memory_operand): Remove.
18006
18007 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18008
18009 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18010 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18011
18012 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18013
18014 * config/mips/mips.c (micromips_globals): New variable.
18015 (mips_set_compression_mode): Save and reinitialize target-dependent
18016 state for microMIPS.
18017
18018 2015-05-18 Martin Liska <mliska@suse.cz>
18019
18020 * dbgcnt.def: Add new counter.
18021 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18022
18023 2015-05-18 Martin Liska <mliska@suse.cz>
18024
18025 * dbgcnt.def: Sort counters.
18026 * opts.c (common_handle_option): Do not compile if
18027 -fdbg-cnt-list is enabled.
18028
18029 2015-05-18 Tom de Vries <tom@codesourcery.com>
18030
18031 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18032 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18033 address operator to va_list operand.
18034 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18035 unconditionally.
18036 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18037 operand.
18038 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18039 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18040 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18041
18042 2015-05-18 Tom de Vries <tom@codesourcery.com>
18043
18044 * tree-ssa-tail-merge.c: Fix whitespace.
18045
18046 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18047
18048 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18049 cortex-a17, and cortex-a17.cortex-a7.
18050
18051 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18052
18053 PR target/54236
18054 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18055
18056 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18057
18058 PR target/66174
18059 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18060 QImode inner modes for TARGET_AVX512BW. Force mask operand
18061 to a register for AVX512F modes.
18062
18063 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18064
18065 * toplev.c (emit_debug_global_declarations): Do not output debug info
18066 when doing slim LTO objects.
18067
18068 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18069
18070 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18071 odr_types_equivalent_p): Declare.
18072 (odr_type_p): Use gcc_checking_assert.
18073 (type_in_anonymous_namespace_p) Declare.
18074 (type_with_linkage_p): Declare.
18075 * common.opt (Wlto-type-mismatch): New warning.
18076 * ipa-devirt.c (compound_type_base): New function.
18077 (odr_or_derived_type_p): New function.
18078 (odr_types_equivalent_p): New function.
18079 (add_type_duplicate): Simplify.
18080 (type_with_linkage_p): Add hack to prevent false positives on C types
18081 (type_in_anonymous_namespace_p): Likewise.
18082 * tree.c (need_assembler_name_p): Use type_with_linkage.
18083 * tree.h (type_in_anonymous_namespace_p): Remove.
18084 * doc/invoke.texi (-Wlto-type-mismatch): Document
18085
18086 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18087
18088 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18089 (verify_type): Verify STRING_FLAG.
18090
18091 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18092
18093 PR fortran/44054
18094 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18095 with accessor function.
18096 * tree-diagnostic.c (diagnostic_report_current_function): Use
18097 diagnostic_location function.
18098 (maybe_unwind_expanded_macro_loc): Likewise.
18099 (virt_loc_aware_diagnostic_finalizer): Likewise.
18100 (default_tree_printer): Replace locus pointer with accessor function.
18101 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18102 (diagnostic_set_info_translated): Initialize second location.
18103 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18104 (diagnostic_show_locus): Handle two locations. Call
18105 diagnostic_print_caret_line.
18106 (diagnostic_print_caret_line): New.
18107 (default_diagnostic_starter): Use diagnostic_location function.
18108 (diagnostic_report_diagnostic): Use diagnostic_location function.
18109 (verbatim): Do not set text.locus.
18110 * diagnostic.h (struct diagnostic_info): Remove location field.
18111 (struct diagnostic_context): Make caret_chars an array of two.
18112 (diagnostic_location): New inline.
18113 (diagnostic_expand_location): Handle two locations.
18114 (diagnostic_same_line): New inline.
18115 (diagnostic_print_caret_line): Declare.
18116 (CARET_LINE_MARGIN): New constant.
18117 * pretty-print.c (pp_printf): Do not set text.locus.
18118 (pp_verbatim): Do not set text.locus.
18119 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18120 (struct text_info): Replace locus pointer with locations
18121 array. Add accessor functions.
18122
18123 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18124 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18125
18126 PR target/65768
18127 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18128 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18129 large constants in register instead of splitting them.
18130
18131 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18132
18133 PR target/66140
18134 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18135 replacements in memory addresses.
18136 (get_unaligned_address): Ditto.
18137
18138 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18139
18140 * config/ft32/*: New files for FT32 port.
18141 * doc/install.texi: Add FT32 information.
18142 * doc/invoke.texi: Add FT32 information.
18143 * doc/md.texi: Add FT32 information.
18144 * doc/contrib.texi: Self added.
18145
18146 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18147
18148 PR tree-optimization/64454
18149 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18150 (-1 - A -> ~A): Remove unnecessary condition.
18151
18152 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18153
18154 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18155 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18156 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18157
18158 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18159
18160 * ipa-chkp.h (chkp_wrap_function): New.
18161 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18162 (chkp_wrap_function_name): New.
18163 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18164 to get wrapper name.
18165 * lto-cgraph.c: Include ipa-chkp.h.
18166 (input_cgraph_1): Avoid alias chain for wrappers.
18167
18168 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18169
18170 PR middle-end/66134
18171 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18172 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18173
18174 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18175
18176 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18177 (AARCH64_FL_SLOWMUL): Delete.
18178 (AARCH64_FL_CRC): Redefine to 1<<3.
18179 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18180
18181 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18182
18183 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18184 casting.
18185
18186 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18187
18188 * config/alpha/alpha.md (extendqidi2): Use general_operand
18189 instead of some_operand for operand[1] predicate.
18190 (extendhidi2): Ditto.
18191 (cbranchdi4): Use general_operand instead of some_operand
18192 for operand[1] and operands[2] predicates.
18193 (cstoredi4): Ditto.
18194 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18195 (some_ni_operand): Ditto.
18196
18197 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18198
18199 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18200 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18201 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18202 low part of the constant using alpha_emit_set_const_1.
18203 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18204
18205 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18206
18207 * varasm.c (output_constant_pool_1): Pass down alignment from
18208 constant pool entry's descriptor to output_constant_pool_2.
18209 (output_object_block): Add comment prior to call to
18210 output_constant_pool_1.
18211
18212 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18213
18214 PR rtl-optimization/65862
18215 * target.def (ira_change_pseudo_allocno_class): New hook.
18216 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18217 value of the hook.
18218 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18219 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18220 hook.
18221 * ira-costs.c (find_costs_and_classes): Call the hook and change
18222 classes when it is necessary.
18223 * doc/tm.texi: Update.
18224
18225 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18226
18227 * config/i386/i386.md (sibcall_memory): Check that register with
18228 callee address is not also used as one of the arguments, instead
18229 of checking that it is not live after the sibcall.
18230 (sibcall_pop_memory): Ditto.
18231 (sibcall_value_memory): Ditto.
18232 (sibcall_value_pop_memory): Ditto.
18233
18234 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18235
18236 * generic-match-head.c (types_match): Handle non-types.
18237 * gimple-match-head.c (types_match): Likewise.
18238 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18239
18240 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18241
18242 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18243 (csneg3<mode>_insn): Enable expansion of pattern.
18244
18245 2015-05-14 Nick Clifton <nickc@redhat.com>
18246
18247 * config/rl78/rl78.c (rl78_select_section): Select the correct
18248 default section based upon the category of the decl.
18249
18250 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18251
18252 PR rtl-optimization/30967
18253 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18254 destination mode for the cost of scc patterns.
18255
18256 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18257
18258 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18259 using SWIM248 mode iterator.
18260 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18261 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18262 for operand[2] constraint.
18263 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18264
18265 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18266
18267 PR middle-end/66133
18268 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18269 make sure it is never noreturn, even when the task body does not
18270 return.
18271 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18272 right before GIMPLE_OMP_RETURN.
18273 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18274 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18275 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18276
18277 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18278
18279 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18280 * tree-ssa-math-opts.c: Include params.h
18281 (pow_synth_sqrt_info): New struct.
18282 (representable_as_half_series_p): New function.
18283 (get_fn_chain): Likewise.
18284 (print_nested_fn): Likewise.
18285 (dump_fractional_sqrt_sequence): Likewise.
18286 (dump_integer_part): Likewise.
18287 (expand_pow_as_sqrts): Likewise.
18288 (gimple_expand_builtin_pow): Use above to attempt to expand
18289 pow as series of square roots. Removed now unused variables.
18290
18291 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18292
18293 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18294 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18295 Remove *p0 and *p1 arguments. Rewrite function.
18296 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18297 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18298 alpha_emit_set_long_const.
18299 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18300 (alpha_output_mi_thunk_osf): Ditto.
18301 * config/alpha/alpha.md (movti): Do not check operands[1]
18302 for CONST_DOUBLE.
18303
18304 2015-05-13 Richard Biener <rguenther@suse.de>
18305
18306 PR tree-optimization/66129
18307 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18308 commutative.
18309 (vect_schedule_slp_instance): Fix typo.
18310
18311 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18312
18313 * common.opt (fdump-internal-locations): New option.
18314 * input.c: Include diagnostic-core.h.
18315 (get_end_location): New function.
18316 (write_digit): New function.
18317 (write_digit_row): New function.
18318 (dump_location_range): New function.
18319 (dump_labelled_location_range): New function.
18320 (dump_location_info): New function.
18321 * input.h (dump_location_info): New prototype.
18322 * toplev.c (compile_file): Handle flag_dump_locations.
18323
18324 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18325
18326 * gimple-expr.h (is_gimple_constant): Reorder.
18327 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18328
18329 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18330
18331 * combine.c (simplify_set): When generating a CC set, if the
18332 source already is in the correct mode, do not wrap it in a
18333 compare. Simplify the rest of that code.
18334
18335 2015-05-13 Richard Biener <rguenther@suse.de>
18336
18337 PR tree-optimization/66123
18338 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18339 a taken edge.
18340
18341 2015-05-13 Richard Biener <rguenther@suse.de>
18342
18343 PR middle-end/66110
18344 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18345 specially.
18346 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18347
18348 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18349
18350 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18351 * aclocal.m4: Regenerated with automake-1.11.6.
18352
18353 2015-05-13 Tom de Vries <tom@codesourcery.com>
18354
18355 PR tree-optimization/66010
18356 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18357 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18358 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18359 and rval based on do_deref.
18360
18361 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18362
18363 PR target/65103
18364 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18365 link time constants into adress expressions and therefore set
18366 their cost to 0.
18367
18368 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18369
18370 PR target/66112
18371 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18372 Use SWI248 iterator instead of SWI.
18373 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18374 Use eq_attr "alternative" "0" instead of match_test in
18375 length_immediate attribute computation.
18376 (*mulvhi4, *mulvhi4_1): New define_insns.
18377
18378 PR target/66112
18379 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18380 SIGNED to get precision of non-negative value.
18381
18382 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18383
18384 PR target/66048
18385 * function.c (diddle_return_value_1): Process bounds first.
18386 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18387 register.
18388
18389 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18390
18391 PR rtl-optimization/64616
18392 * loop-invariant.c (can_move_invariant_reg): New.
18393 (move_invariant_reg): Call above new function to decide whether
18394 instruction can just be moved, skipping creation of temporary
18395 register.
18396
18397 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18398
18399 PR target/pr66047.c
18400 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18401 with implied regparm is called from -mno-sse function.
18402 (init_cumulative_args): Output error if ix86_function_sseregparm
18403 return -1 and SSE register would be needed.
18404 (function_arg_advance_32): Likewise.
18405 (function_arg_32): Likewise.
18406 * i386.h (ix86_args): Add decl field.
18407
18408 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18409
18410 PR ipa/65873
18411 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18412 inlines across optimization boundary.
18413
18414 2015-05-12 Jason Merrill <jason@redhat.com>
18415
18416 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18417 string literal and macro name.
18418
18419 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18420
18421 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18422 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18423 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18424
18425 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18426
18427 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18428 (-Wmisleading-indentation): New option.
18429 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18430
18431 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18432
18433 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18434 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18435 (alpha_extract_integer): Ditto.
18436 (alpha_legitimate_constant_p): Ditto.
18437 (alpha_split_tmode_pair): Ditto.
18438 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18439 (alpha_expand_mov): Ditto.
18440 (print_operand): Remove handling of 'H' modifier.
18441 <case 'm'>: Remove CONST_DOUBLE handling.
18442 (summarize_insn): Handle CONST_WIDE_INT.
18443 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18444 (anddi3): Ditto.
18445 (movti): Handle CONST_WIDE_INT.
18446 * config/alpha/constraints.md ('H'): Remove constraint definition.
18447 ('G'): Do not match MODE_FLOAT class.
18448 * config/alpha/predicates.md (const0_operand): Also match
18449 const_wide_int.
18450 (non_add_const_operand): Ditto.
18451 (non_zero_const_operand): Ditto.
18452 (some_operand): Ditto.
18453 (input_operand): Ditto. Handle CONST_WIDE_INT.
18454 (and_operand): Do not match const_double.
18455 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18456
18457 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18458
18459 PR target/65697
18460 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18461 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18462 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18463 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18464 is_mm_seq_cst, is_mm_sync): New accessor functions.
18465 * builtins.c (expand_builtin_sync_operation,
18466 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18467 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18468 (get_memmodel, expand_builtin_atomic_compare_exchange,
18469 expand_builtin_atomic_load, expand_builtin_atomic_store,
18470 expand_builtin_atomic_clear): Use new accessor routines.
18471 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18472 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18473 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18474 MEMMODEL_SYNC_ACQUIRE.
18475 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18476 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18477 expand_atomic_store): Use new accessors.
18478 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18479 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18480 final enum to use MEMMODEL_LAST.
18481 * c-family/c-common.c: Use new accessor for memmodel_base.
18482 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18483 accessors.
18484 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18485 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18486 mem_thread_fence, *dmb): Likewise.
18487 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18488 alpha_split_compare_and_swap_12): Likewise.
18489 * config/arm/arm.c (arm_expand_compare_and_swap,
18490 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18491 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18492 atomic_loaddi): Likewise.
18493 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18494 Likewise.
18495 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18496 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18497 use new accessors.
18498 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18499 atomic_store<mode>, atomic_compare_and_swap<mode>,
18500 atomic_exchange<mode>): Use new accessors.
18501 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18502 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18503 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18504 rs6000_post_atomic_barrier): Add new cases.
18505 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18506 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18507 (atomic_load<mode>): Add new cases and use new accessors.
18508 (store_quadpti): Add new cases.
18509 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18510 accessors.
18511 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18512 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18513 model, not 8.
18514
18515 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18516
18517 * ipa-devirt.c (type_with_linkage_p): New function.
18518 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18519 type has linkage.
18520 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18521 (can_be_name_hashed_p): Simplify.
18522 (hash_odr_name): Check that type has linkage before checking if it is
18523 anonymous.
18524 (types_same_for_odr): Likewise.
18525 (odr_name_hasher::equal): Likewise.
18526 (odr_subtypes_equivalent_p): Likewise.
18527 (warn_types_mismatch): Likewise.
18528 (get_odr_type): Likewise.
18529 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18530 * ipa-utils.h (odr_type_p): Move offline.
18531 * tree.c (need_assembler_name_p): Fix handling of types
18532 without linkages.
18533 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18534
18535 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18536
18537 * timevar.c (timevar_enable): Delete in favor of...
18538 (g_timer): New global.
18539 (struct timevar_def): Move to timevar.h inside class timer.
18540 (struct timevar_stack_def): Likewise.
18541 (timevars): Delete global in favor of field "m_timevars" within
18542 class timer in timevar.h
18543 (stack): Likewise, in favor of field "m_stack".
18544 (unused_stack_instances): Likewise, in favor of field
18545 "m_unused_stack_instances".
18546 (start_time): Likewise, in favor of field "m_start_time".
18547 (get_time): Eliminate check for timevar_enable.
18548 (timer::timer): New function, built from part of timevar_init.
18549 (timevar_init): Rewrite idempotency test from using
18550 "timevar_enable" bool to using dynamic allocation of "g_timer".
18551 Move rest of implementation into timer's constructor.
18552 (timevar_push_1): Rename to...
18553 (timer::push): ...this, adding "m_" prefixes to variables that
18554 are now fields of timer.
18555 (timevar_pop_1): Likewise, rename to...
18556 (timer::pop): ...this, and add "m_" prefixes.
18557 (timevar_start): Replace test for "timevar_enable" with one for
18558 "g_timer", and move bulk of implementation to...
18559 (timer::start): ...here, adding "m_" prefixes.
18560 (timevar_stop): Likewise, from here...
18561 (timer::stop): ...to here.
18562 (timevar_cond_start): Likewise, from here...
18563 (timer::cond_start): ...to here.
18564 (timevar_cond_stop): Likewise, from here...
18565 (timer::cond_stop): ...to here.
18566 (validate_phases): Rename to...
18567 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18568 locals "total" and "tv" const.
18569 (timevar_print): Rename to...
18570 (timer::print): ...this, and add "m_" prefixes. Make locals
18571 "total" and "tv" const. Eliminate test for timevar_enable.
18572 * timevar.h (timevar_enable): Eliminate.
18573 (g_timer): New declaration.
18574 (timevar_push_1): Eliminate.
18575 (timevar_pop_1): Eliminate.
18576 (timevar_print): Eliminate.
18577 (class timer): New class.
18578 (timevar_push): Rewrite to use g_timer.
18579 (timevar_pop): Likewise.
18580 * toplev.c (toplev::~toplev): Likewise.
18581
18582 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18583
18584 * arm-protos.h (arm_sched_autopref): Delete.
18585 (tune_params): Re-organize, use enums for flag values.
18586 (FUSE_OPS): New macro.
18587 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18588 (ARM_PREFETCH_BENEFICIAL): Likewise.
18589 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18590 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18591 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18592 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18593 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18594 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18595 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18596 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18597 format.
18598 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18599 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18600 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18601
18602 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18603
18604 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18605 "break".
18606
18607 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18608 Sandra Loosemore <sandra@codesourcery.com>
18609
18610 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18611 value.
18612 (REG_CLASS_NAMES): Add "IJMP_REGS".
18613 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18614 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18615 use new "c" register constraint.
18616 * config/nios2/constraint.md (c): New register constraint
18617 corresponding to IJMP_REGS.
18618
18619 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18620
18621 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18622 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18623 define_splits): Delete, revamp, transmogrify into ...
18624 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18625 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18626 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18627 New.
18628
18629 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18630
18631 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18632 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18633
18634 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18635
18636 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18637 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18638 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18639 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18640 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18641 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18642 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18643 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18644 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18645 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18646 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18647 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18648 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18649 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18650 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18651 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18652 and 30 corresponding splitters): Delete.
18653
18654 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18655
18656 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18657 zero_extract.
18658
18659 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18660
18661 * combine.c (recog_for_combine_1): New function, factored out
18662 from recog_for_combine.
18663 (change_zero_ext): New function.
18664 (recog_for_combine): If recog fails, try again with the pattern
18665 modified by change_zero_ext; if that still fails, restore the
18666 pattern.
18667
18668 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18669
18670 * combine.c (get_undo_marker): New function.
18671 (undo_to_marker): New function, largely factored out from ...
18672 (undo_all): ... this. Adjust.
18673
18674 2015-05-12 Richard Biener <rguenther@suse.de>
18675
18676 PR tree-optimization/66101
18677 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18678 fixup if we turn a loop exit edge to a fallthru edge.
18679
18680 2015-05-12 Richard Biener <rguenther@suse.de>
18681
18682 PR tree-optimization/37021
18683 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18684 (SLP_TREE_TWO_OPERATORS): New define.
18685 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18686 SLP_TREE_TWO_OPERATORS.
18687 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18688 SLP node.
18689 (vect_build_slp_tree): Adjust.
18690 (vect_analyze_slp_cost_1): Likewise.
18691 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18692 emitting two vector stmts and mixing the results.
18693
18694 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18695
18696 * call.c (print_z_candidates): Remove dead code.
18697
18698 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18699
18700 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18701 and zEC12_simple_fp.
18702 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18703 to 1.
18704
18705 2015-05-12 Tom de Vries <tom@codesourcery.com>
18706
18707 PR tree-optimization/66010
18708 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18709 ifn_va_arg.
18710 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18711 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18712 va_lists are passed, and remove corresponding handling.
18713 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18714 do_deref argument to ifn_va_arg.
18715 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18716 ifn_va_arg.
18717
18718 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18719
18720 PR target/65955
18721 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18722 REG before taking its REGNO.
18723
18724 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18725
18726 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18727 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18728 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18729 present to get more accurate information about the number of sign bit
18730 copies and non zero bits.
18731
18732 2015-05-12 Richard Biener <rguenther@suse.de>
18733
18734 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18735 do not allow unrolling.
18736
18737 2015-05-11 Richard Henderson <rth@redhat.com>
18738
18739 * config/i386/i386-modes.def (CCP): New.
18740 * config/i386/i386.c (put_condition_code): Handle it.
18741 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18742
18743 2015-05-11 Richard Henderson <rth@redhat.com>
18744
18745 * target.def (md_asm_clobbers): Replace with...
18746 (md_asm_adjust): this.
18747 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18748 (TARGET_MD_ASM_ADJUST): New.
18749 * tm.texi: Rebuild.
18750 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18751 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18752 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18753
18754 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18755 constraints instead of lists of outputs and inputs.
18756 (expand_asm_stmt): Save and restore input_location around the
18757 body of the function. Move asm data into vectors instead of
18758 building tree lists. Generate cleanup sequences as needed,
18759 rather than waiting til the end. Use new md_asm_adjust hook.
18760
18761 * config/vxworks.c: Include vec.h before target.h.
18762 * gimple.c: Likewise.
18763 * incpath.c: Likewise.
18764 * mode-switching.c: Likewise.
18765
18766 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18767 (cris_md_asm_adjust): this.
18768 (TARGET_MD_ASM_CLOBBERS): Remove.
18769 (TARGET_MD_ASM_ADJUST): New.
18770 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18771 (ix86_md_asm_adjust): this.
18772 (TARGET_MD_ASM_CLOBBERS): Remove.
18773 (TARGET_MD_ASM_ADJUST): New.
18774 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18775 (mn10300_md_asm_adjust): this.
18776 (TARGET_MD_ASM_CLOBBERS): Remove.
18777 (TARGET_MD_ASM_ADJUST): New.
18778 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18779 (rs6000_md_asm_adjust): this.
18780 (TARGET_MD_ASM_CLOBBERS): Remove.
18781 (TARGET_MD_ASM_ADJUST): New.
18782 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18783 (visium_md_asm_adjust): this.
18784 (TARGET_MD_ASM_CLOBBERS): Remove.
18785 (TARGET_MD_ASM_ADJUST): New.
18786
18787 2015-05-11 Richard Henderson <rth@redhat.com>
18788
18789 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18790 if noutputs is zero.
18791 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18792
18793 * cfgexpand.c (expand_asm_operands): Merge into...
18794 (expand_asm_stmt): ... here.
18795
18796 * cfgexpand.c (expand_asm_operands): Don't call
18797 resolve_asm_operand_names.
18798 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18799
18800 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18801
18802 * dwarf2out.c (gen_member_die): Sanity check that we access
18803 TYPE_MAIN_VARIANT for TYPE_METHODS.
18804 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18805 checking TYPE_METHODS.
18806 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18807 if non-null.
18808 (build_distinct_type_copy): Clear TYPE_METHODS.
18809 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18810 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18811 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18812
18813 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18814
18815 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18816 (emit_pattern_before_setloc): Likewise.
18817
18818 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18819
18820 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18821 for define_peephole2s.
18822 (get_peephole2_pattern): New function.
18823 (main): Use it. Call validate_pattern.
18824
18825 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18826
18827 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18828 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18829 (Last callee saved reg is different for AVR_TINY architecture)
18830
18831 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18832
18833 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18834 when looking for memory references.
18835
18836 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18837
18838 PR target/65753
18839 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18840 via function pointers.
18841
18842 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18843
18844 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18845 indirect call by forcing address into a pseudo with -fno-plt.
18846 * common.opt (flag_plt): New option.
18847 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18848 ([-fno-plt]): Document.
18849
18850 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18851
18852 PR bootstrap/66105
18853 * config/rs6000/option-defaults.h: Add space between string literal
18854 and macro name.
18855
18856 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18857
18858 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18859 accross ARM targets.
18860
18861 2015-05-11 Christian Bruel <christian.bruel@st.com>
18862
18863 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18864 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18865
18866 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18867
18868 PR rtl-optimization/66076
18869 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18870 Don't grow the heap array if it is already big enough from a
18871 previous iteration.
18872
18873 2015-05-11 Christian Bruel <christian.bruel@st.com>
18874
18875 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18876 (is_called_in_ARM_mode): Remove.
18877 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18878 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18879 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18880 arm_declare_function_name.
18881
18882 2015-05-11 Christian Bruel <christian.bruel@st.com>
18883
18884 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18885 (arm_option_params_internal); New function.
18886 (arm_option_check_internal): New function.
18887 (arm_option_override_internal): New function.
18888 (thumb_code, thumb1_code): Remove.
18889 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18890 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18891 (thumb_code, thumb1_code): Remove.
18892 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18893
18894 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18895
18896 * config/alpha/alpha.c (alpha_emit_set_const_1)
18897 (alpha_emit_set_long_const, alpha_extract_integer)
18898 (alpha_legitimate_constant_p, alpha_split_const_mov)
18899 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18900 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18901 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18902 HOST_WIDE_INT_1U.
18903 * config/alpha/predicates.md (mode_mask_operand): Do not match
18904 const_double RTX.
18905 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18906 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18907 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18908 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18909 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18910
18911 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18912
18913 PR target/65780
18914 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18915 default_binds_local_p_2.
18916 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18917 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18918
18919 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18920
18921 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18922
18923 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18924
18925 Patch by Richard Biener
18926 * coverage.c (coverage_obj_init): Delay building of type variant
18927 until the type is finished.
18928
18929 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18930
18931 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18932 mismatch between C and C++ type; compoare correctly ARG_TYPES
18933 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18934 (odr_types_equivalent_p): Fix wording of warning about attributes;
18935 it is OK to match prototype and non-prototype.
18936
18937 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18938
18939 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18940 TYPE_ARG_TYPES list.
18941 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18942 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18943
18944 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18945
18946 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18947 * tree.h (is_lang_specific): Constify.
18948
18949 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18950
18951 PR tree-optimization/64454
18952 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18953 Rewrite.
18954
18955 2015-05-08 Jason Merrill <jason@redhat.com>
18956
18957 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18958 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18959 config/darwin.h, config/darwin9.h, config/elfos.h,
18960 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18961 config/microblaze/microblaze.h, config/mips/mips.h,
18962 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18963 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18964 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18965 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18966 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18967 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18968 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18969 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18970 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18971 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18972 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18973 between string literal and macro name.
18974
18975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18976
18977 * jump.c: Change argument types to rtx_insn *.
18978 * rtl.h: Adjust.
18979
18980 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18981
18982 * lra-constraints.c: Change argument type to rtx_insn *.
18983
18984 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18985
18986 * df-problems.c: Change argument type to rtx_insn *.
18987
18988 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18989
18990 * combine.c: Change argument type to rtx_insn *.
18991
18992 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18993
18994 * rtl.h: Adjust.
18995 * rtlanal.c: Change argument type to rtx_insn *.
18996
18997 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18998
18999 * sched-deps.c: Change argument types to rtx_insn *.
19000 * sched-int.h: Adjust.
19001
19002 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19003
19004 * dwarf2cfi.c: Change argument type to rtx_insn *.
19005
19006 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19007
19008 * ira.c (decrease_live_ranges_number): Changetype of local
19009 variable to rtx_insn *.
19010 * recog.c: Change argument types to rtx_insn *.
19011 * recog.h: Adjust.
19012
19013 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19014
19015 * reorg.c: Change argument types to rtx_insn *.
19016
19017 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19018
19019 * ira-color.c: Change argument types to rtx_insn *.
19020 * lra-eliminations.c: Likewise.
19021 * ira.h: Adjust.
19022
19023 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19024
19025 * gcse.c: Change argument types to rtx_insn *.
19026
19027 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19028
19029 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19030
19031 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19032
19033 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19034 rtx_insn *.
19035 * rtl.h: Adjust.
19036
19037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19038
19039 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19040 * rtl.h: Adjust.
19041
19042 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19043
19044 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19045 * rtl.h: Adjust.
19046
19047 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19048
19049 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19050 * rtl.h: Adjust.
19051
19052 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19053
19054 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19055 * rtl.h: Adjust.
19056
19057 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19058
19059 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19060 to rtx_insn *.
19061 * rtl.h: Adjust.
19062
19063 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19064
19065 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19066 to rtx_insn *.
19067 * rtl.h: Likewise.
19068
19069 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19070
19071 * except.c (can_nonlocal_goto): Change type of argument to
19072 rtx_insn *.
19073 * rtl.h: Adjust.
19074
19075 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19076
19077 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19078 * rtl.h: Adjust.
19079
19080 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19081
19082 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19083 * cfgrtl.c (can_delete_label_p): Adjust.
19084 * rtl.h: likewise.
19085
19086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19087
19088 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19089
19090 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19091
19092 * except.c (make_reg_eh_region_note): Change argument to
19093 rtx_insn *.
19094 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19095 * except.h: Adjust.
19096
19097 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19098
19099 * mode-switching.c (commit_mode_sets): Change type of local
19100 variable from rtx to rtx_insn *.
19101
19102 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19103
19104 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19105 Add ^ to grep command.
19106 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19107 arg to last gimple_simplify declaration. Add missing gimple_build
19108 declaration for built-in function case with four tree args.
19109
19110 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19111 Szabolcs Nagy <szabolcs.nagy@arm.com>
19112
19113 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19114 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19115 (GNU_USER_DYNAMIC_LINKERN32): Update.
19116
19117 2015-05-08 Richard Biener <rguenther@suse.de>
19118
19119 PR tree-optimization/66036
19120 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19121 Handle strided group loads.
19122 (vect_verify_datarefs_alignment): Likewise.
19123 (vect_enhance_data_refs_alignment): Likewise.
19124 (vect_analyze_group_access): Likewise.
19125 (vect_analyze_data_ref_access): Likewise.
19126 (vect_analyze_data_ref_accesses): Likewise.
19127 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19128 (vectorizable_load): Likewise.
19129
19130 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19131
19132 * config/rs6000/rs6000.md: Require operand inequality in one
19133 of the peepholes.
19134
19135 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19136 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19137
19138 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19139 from (set ...).
19140 * config/rx/rx.md (movdi, movdf): Likewise.
19141 Likewise for define_peephole2s.
19142
19143 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19144
19145 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19146 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19147 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19148 vtst_u64): Rewrite using gcc vector extensions.
19149
19150 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19151
19152 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19153 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19154
19155 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19156
19157 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19158
19159 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19160
19161 * config/glibc-stdint.h (OPTION_MUSL): Define.
19162 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19163 Change the definition based on OPTION_MUSL for 64 bit targets.
19164 * config/linux.h (OPTION_MUSL): Redefine.
19165 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19166 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19167 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19168
19169 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19170 Szabolcs Nagy <szabolcs.nagy@arm.com>
19171
19172 * config.gcc (LIBC_MUSL): New tm_defines macro.
19173 * config/linux.h (OPTION_MUSL): Define.
19174 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19175 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19176 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19177 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19178 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19179 * config/linux.opt (mmusl): New option.
19180 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19181 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19182 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19183 * configure: Regenerate.
19184
19185 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19186 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19187
19188 PR target/48904
19189 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19190 * config/i386/knetbsd-gnu64.h: New file.
19191
19192 2015-05-08 Marek Polacek <polacek@redhat.com>
19193
19194 PR c/64918
19195 * doc/invoke.texi: Document -Woverride-init-side-effects.
19196
19197 2015-05-07 Marek Polacek <polacek@redhat.com>
19198
19199 PR c/65179
19200 * doc/invoke.texi: Document -Wshift-negative-value.
19201
19202 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19203
19204 * gcov-tool.c (do_merge): Refactore to remove int ret.
19205 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19206 !type == FUNC to type != FUNC.
19207 * reload.h (struct target_reload): Changee to type of
19208 x_spill_indirect_levels from bool to unsigned char.
19209
19210 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19211
19212 * rtl.h (always_void_p): New function.
19213 * gengenrtl.c (always_void_p): Likewise.
19214 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19215 with code foo are always VOIDmode.
19216 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19217 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19218 compare-elim.c, config/aarch64/aarch64.c,
19219 config/aarch64/aarch64.md, config/alpha/alpha.c,
19220 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19221 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19222 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19223 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19224 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19225 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19226 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19227 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19228 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19229 config/ia64/vect.md, config/iq2000/iq2000.c,
19230 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19231 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19232 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19233 config/mep/mep.c, config/microblaze/microblaze.c,
19234 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19235 config/mn10300/mn10300.c, config/msp430/msp430.c,
19236 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19237 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19238 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19239 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19240 config/rs6000/rs6000.md, config/rs6000/vector.md,
19241 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19242 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19243 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19244 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19245 config/spu/spu.md, config/stormy16/stormy16.c,
19246 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19247 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19248 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19249 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19250 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19251 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19252 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19253 var-tracking.c: Update calls accordingly.
19254
19255 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19256
19257 PR middle-end/192
19258 PR middle-end/54303
19259 * varasm.c (function_mergeable_rodata_prefix): New function.
19260 (mergeable_string_section): Use it.
19261 (mergeable_constant_section): Use it.
19262
19263 2015-05-07 Jeff Law <law@redhat.com>
19264
19265 PR target/39726
19266 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19267 simplifier to narrow arithmetic.
19268 * generic-match-head.c: (types_match, single_use): New functions.
19269 * gimple-match-head.c: (types_match, single_use): New functions.
19270
19271 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19272
19273 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19274 rtx type.
19275
19276 2015-05-07 Richard Biener <rguenther@suse.de>
19277
19278 PR tree-optimization/66002
19279 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19280 before phiopt.
19281
19282 2015-05-07 Marek Polacek <polacek@redhat.com>
19283 Martin Uecker <uecker@eecs.berkeley.edu>
19284
19285 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19286 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19287 into SANITIZE_NONDEFAULT.
19288 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19289
19290 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19291
19292 PR target/66015
19293 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19294 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19295 (alpha_override_options): Move align_loops, align_jumps and
19296 align_functions handling into alpha_override_options_after_change.
19297
19298 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19299 Chris Jones <chrisj@nvidia.com>
19300 Joshua Conner <jconner@nvidia.com>
19301
19302 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19303 linking of crtfastmath.o.
19304 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19305
19306 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19307
19308 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19309 (cstore<mode>4_unsigned_imm): New expander.
19310 (cstore<mode>4): Remove empty constraint strings. Use the new
19311 expanders.
19312
19313 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19314
19315 PR target/64208
19316 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19317 alternatives.
19318
19319 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19320
19321 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19322
19323 2015-05-06 Alan Modra <amodra@gmail.com>
19324
19325 PR target/66033
19326 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19327 (UNSPEC_NOP): Define.
19328 (reload_vsx_from_gpr<mode>): Add missing DONE.
19329 (reload_gpr_from_vsx<mode>): Likewise.
19330 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19331 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19332
19333 2015-05-06 Christian Bruel <christian.bruel@st.com>
19334
19335 PR target/66015
19336 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19337 align_jumps, align_functions into aarch64_override_options_after_change.
19338
19339 2015-05-06 Richard Biener <rguenther@suse.de>
19340
19341 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19342 vect_transform_slp_perm_load to check if we support a permutation
19343 for basic-block vectorization.
19344
19345 2015-05-06 Nick Clifton <nickc@redhat.com>
19346
19347 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19348 used, even if it is not being used as a frame pointer.
19349
19350 2015-05-05 Jason Merrill <jason@redhat.com>
19351
19352 * dwarf2out.c (gen_member_die): Don't emit anything for an
19353 anonymous class constructor.
19354
19355 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19356
19357 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19358 that it reflects the block structure.
19359 (afdo_propagate_edge): Likewise.
19360 (afdo_calculate_branch_prob): Likewise.
19361 (afdo_annotate_cfg): Likewise.
19362 * cfgcleanup.c (equal_different_set_p): Likewise.
19363 (try_crossjump_to_edge): Likewise.
19364 * cgraph.c (cgraph_node::verify_node): Likewise.
19365 * cgraphunit.c (expand_all_functions): Likewise.
19366 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19367 (exact_dependency_1): Likewise.
19368 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19369 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19370 * gensupport.c (process_define_subst): Likewise.
19371 * lto-wrapper.c (merge_and_complain): Likewise.
19372 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19373 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19374 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19375 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19376 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19377 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19378 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19379 * tree-vrp.c (vrp_finalize): Likewise.
19380 * tree.c (variably_modified_type_p): Likewise.
19381
19382 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19383
19384 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19385 on darwin12 and later.
19386 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19387 file to pass -rdynamic on darwin12 and later.
19388 * config/darwin.opt (rdynamic): Add.
19389
19390 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19391
19392 * doc/extend.texi (C Extensions): Update menu for moved Variable
19393 Attributes and Type Attributes sections.
19394
19395 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19396
19397 PR target/65990
19398 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19399 if rep_8byte stringop strategy was specified for 32-bit target.
19400
19401 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19402
19403 PR target/65915
19404 * config/i386/i386.md (vector convert to float spltiter): Check for
19405 xmm16+, when splitting scalar float conversion.
19406 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19407
19408 2015-05-05 Nick Clifton <nickc@redhat.com>
19409
19410 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19411 * config/msp430/msp430.c (msp430_override_options): Complain if
19412 -mcode-region or -mdata-region is used on a non MSP430X.
19413 (msp430_section_attr): New function. Checks lower, upper and
19414 either attributes.
19415 (msp430_attribute_table): Add lower, upper and either.
19416 (gen_prefix): New function. Generates a prefix for a section
19417 name.
19418 (msp430_select_section): New function - handles the choice of
19419 section for an object. Takes into account memory region
19420 attributes and options.
19421 (msp430_function_section): Use gen_prefix.
19422 (TARGET_SECTION_TYPE_FLAGS): Define.
19423 (msp430_section_type_flags): New function.
19424 (TARGET_ASM_UNIQUE_SECTION): Define.
19425 (msp430_unique_section): New function.
19426 (msp430_output_aligned_decl_common): New function.
19427 (msp430_do_not_relax_short_jumps): New function.
19428 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19429 Define.
19430 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19431 * config/msp430/msp430-protos.h
19432 (msp430_do_not_relax_short_jumps): New prototype.
19433 (msp430_output_aligned_decl_common): New prototype.
19434 * config/msp430/msp430.md (length): New attribute.
19435 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19436 then use a long code sequence for short jumps.
19437 * config/msp430/msp430.opt (mcode-region): New.
19438 (mdata-region): New.
19439 * doc/invoke.texi: Document new options.
19440 * doc/extend.texi: Document new attributes.
19441
19442 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19443
19444 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19445 (tune_params): Add field branch_costs.
19446 (aarch64_branch_cost): Declare.
19447 * gcc/config/aarch64.c (generic_branch_cost): New.
19448 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19449 (cortexa53_tunings): Likewise.
19450 (cortexa57_tunings): Likewise.
19451 (thunderx_tunings): Likewise.
19452 (xgene1_tunings): Likewise.
19453 (aarch64_branch_cost): Define.
19454 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19455
19456 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19457
19458 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19459 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19460 * config/i386/i386.md: Ditto.
19461 * config/i386/winnt.c: Ditto.
19462
19463 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19464
19465 * doc/extend.texi (__atomic Builtins): Move implementation details
19466 to the end of the description, rewrite opening paragraphs, state
19467 difference with __sync builtins, state C11/C++11 assumptions,
19468 weaken itemized descriptions, add explanation of memory model
19469 behaviour, expand description of compare-exchange, simplify text.
19470
19471 2015-05-05 Renlin Li <renlin.li@arm.com>
19472
19473 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19474
19475 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19476
19477 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19478 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19479 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19480 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19481 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19482 * configure: Regenerate.
19483 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19484 * doc/install.texi (aarch64*-*-*): Document new
19485 --enable-fix-cortex-a53-843419 option.
19486 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19487 and -mno-fix-cortex-a53-843419 options.
19488
19489 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19490
19491 PR target/65871
19492 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19493
19494 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19495
19496 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19497 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19498 compatibility problems.
19499
19500 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19501
19502 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19503 constraints.
19504 (cbranchsi4_reg): New.
19505 * config/microblaze/microblaze.c
19506 (microblaze_expand_conditional_branch_reg): New.
19507 * config/microblaze/microblaze-protos.h
19508 (microblaze_expand_conditional_branch_reg): New prototype.
19509
19510 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19511
19512 * config/microblaze/microblaze.md (peephole2): New.
19513
19514 2015-05-04 Jeff Law <law@redhat.com>
19515
19516 Revert:
19517 2015-05-04 Jeff Law <law@redhat.com>
19518
19519 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19520 simplifier to narrow arithmetic.
19521 * generic-match-head.c: (types_match, single_use): New functions.
19522 * gimple-match-head.c: (types_match, single_use): New functions.
19523
19524 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19525
19526 PR target/65987
19527 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19528 (split_branches): Likewise.
19529
19530 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19531
19532 * common.opt (fdelete-null-pointer-checks): Init to -1.
19533 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19534 override flag_delete_null_pointer_checks default.
19535 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19536 behavior re address zero. Better document target-specific behavior.
19537 (-fisolate-errneous-paths-dereference): Mention relationship to
19538 -fdelete-null-pointer-checks.
19539
19540 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19541
19542 PR tree-optimization/65984
19543 * ubsan.c: Include tree-cfg.h.
19544 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19545 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19546
19547 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19548
19549 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19550 to CONST_DOUBLE_P predicate.
19551 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19552 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19553 allow only operands that satisfy standard_sse_constant_p predicate.
19554 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19555 to CONST_DOUBLE_P predicate.
19556
19557 2015-05-04 Jeff Law <law@redhat.com>
19558
19559 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19560 simplifier to narrow arithmetic.
19561 * generic-match-head.c: (types_match, single_use): New functions.
19562 * gimple-match-head.c: (types_match, single_use): New functions.
19563
19564 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19565
19566 * config/arm/arm.c: Restore bootstrap.
19567
19568 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19569
19570 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19571 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19572 as CONST_WIDE_INT, not CONST_DOUBLE.
19573 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19574 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19575 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19576 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19577 (ix86_build_signbit_mask): Rewrite using wide ints.
19578 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19579 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19580 (find_constant): Ditto.
19581 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19582 using gen_int_mode.
19583 * config/i386/predicates.md (x86_64_immediate_operand)
19584 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19585 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19586 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19587 (const0_operand): Also match const_wide_int.
19588 (constm1_operand): Ditto.
19589 (const1_operand): Ditto.
19590
19591 2015-05-04 Richard Biener <rguenther@suse.de>
19592
19593 PR tree-optimization/65965
19594 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19595 store groups at gaps.
19596
19597 2015-05-04 Richard Biener <rguenther@suse.de>
19598
19599 PR tree-optimization/65935
19600 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19601 then make sure to apply that swapping to the IL.
19602
19603 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19604
19605 * Makefile.in (PATCHLEVEL_c): New variable.
19606 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19607 expand the same way as if DEVPHASE_c was non-empty.
19608
19609 2015-05-04 Kai Tietz <ktietz@redhat.com>
19610
19611 PR target/65559
19612 * lto-wrapper.c (run_gcc): Open filename
19613 in binary-mode.
19614
19615 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19616
19617 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19618 sections up in file, to immediately after the Function Attributes
19619 section.
19620
19621 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19622
19623 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19624
19625 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19626
19627 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19628 (insert_partition_copy_on_edge): Adjust.
19629 (insert_rtx_to_part_on_edge): Likewise.
19630 (insert_part_to_rtx_on_edge): Likewise.
19631
19632 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19633
19634 * function.c (set_return_jump_label): Change type of argument to
19635 rtx_insn *.
19636 * function.h (set_return_jump_label): Adjust.
19637
19638 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19639
19640 * reload.h (struct reg_equivs_t): Change type of init to
19641 rtx_insn *.
19642 * ira.c (fix_reg_equiv_init): Adjust.
19643 * reload1.c (eliminate_regs_1): Likewise.
19644 (init_eliminable_invariants): Likewise.
19645
19646 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19647
19648 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19649 * cselib.h (fp_setter_insn): Adjust.
19650
19651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19652
19653 * recog.c (struct validate_replace_src_data): Change type of
19654 insn field to rtx_insn *.
19655 (validate_replace_src_group): Change type of argument to rtx_insn *.
19656 * recog.h (validate_replace_src_group): Adjust.
19657
19658 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19659
19660 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19661 * sched-deps.c: Likewise.
19662 * sched-int.h: Likewise.
19663 * sched-rgn.c: Likewise.
19664 * sel-sched.c: Likewise.
19665
19666 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19667
19668 to rtx_insn *.
19669 * config/i386/i386.c: Change the type of some arguments to
19670 rtx_insn *.
19671 * config/arm/arm.c: Likewise.
19672
19673 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19674
19675 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19676
19677 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19678
19679 * regcprop.c (kill_autoinc_value): Change type of argument to
19680 rtx_insn *.
19681
19682 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19683
19684 * genrecog.c (print_subroutine): Adjust.
19685 * recog.c (get_bool_attr_mask_uncached): Likewise.
19686 * recog.h (struct recog_data_d): Change the type of insn to
19687 rtx_insn *.
19688
19689 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19690
19691 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19692
19693 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19694
19695 * df-problems.c (df_set_note): Change type of argument to
19696 rtx_insn *.
19697
19698 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19699
19700 * builtins.c (expand_builtin_trap): Change type of local
19701 variable to rtx_insn *.
19702 (add_sched_insns_for_speculation): Likewise.
19703 (ix86_emit_save_regs): Likewise.
19704 (get_scratch_register_on_entry): Likewise.
19705 (ix86_emit_restore_reg_using_pop): Likewise.
19706 (ix86_emit_leave): Likewise.
19707 (ix86_emit_restore_regs_using_mov): Likewise.
19708 (ix86_expand_epilogue): Likewise.
19709 Likewise.
19710 (rl78_alloc_physical_registers_umul): Likewise.
19711 * cselib.c (discard_useless_locs): Likewise.
19712 (cselib_invalidate_regno): Likewise.
19713 (cselib_invalidate_mem): Likewise.
19714 * function.c (expand_function_start): Likewise.
19715 (emit_use_return_register_into_block): Likewise.
19716 * gcse.c: Likewise.
19717 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19718 * ifcvt.c (noce_get_alt_condition): Likewise.
19719 * loop-doloop.c (doloop_condition_get): Likewise.
19720 * lra-constraints.c (inherit_in_ebb): Likewise.
19721 * modulo-sched.c (sms_schedule_by_order): Likewise.
19722 * recog.c (next_insn_tests_no_inequality): Likewise.
19723 * reorg.c (emit_delay_sequence): Likewise.
19724 (update_reg_dead_notes): Likewise.
19725 (fix_reg_dead_note): Likewise.
19726 (fill_slots_from_thread): Likewise.
19727 (delete_computation): Likewise.
19728
19729 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19730
19731 * doc/extend.texi (Variable Attributes): Add menu and proper
19732 @nodes to subsections. Move Microsoft Windows attributes to
19733 their own subsection.
19734 (Type Attributes): Reorganize introduction to remove duplicate
19735 list of attributes. Add menu and proper @nodes to subsections.
19736 Alphabetize the main table of common attributes.
19737
19738 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19739
19740 * match.pd: New simplification patterns.
19741 (x + (x & 1)) -> ((x + 1) & ~1)
19742 (x & ~(x & y)) -> ((x & ~y))
19743 (x | ~(x | y)) -> ((x | ~y))
19744
19745 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19746
19747 * target.def (attribute_table): Mention that struct attribute_spec
19748 is defined in tree-core.h rather than tree.h
19749 * doc/tm.texi: Regenerate.
19750
19751 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19752
19753 * genrecog.c (test): Rename to rtx_test. Update rest of file
19754 accordingly.
19755
19756 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19757
19758 PR translation/65959
19759 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19760
19761 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19762
19763 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19764 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19765 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19766 Return value depending on target.
19767 (generic_tunings): Initialize new target settings.
19768 (cortexa53_tunings): Likewise.
19769 (cortexa57_tunings): Likewise.
19770 (thunderx_tunings): Likewise.
19771 (xgene1_tunings): Likewise.
19772
19773 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19774
19775 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19776 Make Cortex-A53 shift costs more accurate.
19777
19778 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19779
19780 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19781 UNSIGNED_FLOAT.
19782
19783 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19784
19785 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19786 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19787
19788 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19789
19790 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19791 Add cost of op0 in the compare-with-fpzero case.
19792
19793 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19794
19795 * builtins.c (fold_builtin_1): Remove spurious second
19796 semicolon.
19797 * cgraph.h (symtab_node::get_availability): Likewise.
19798 * opts.c (common_handle_option): Remove spurious second semicolon.
19799 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19800 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19801
19802 2015-04-30 Caroline Tice <cmtice@google.com>
19803
19804 PR gcov-profile/65929
19805 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19806 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19807 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19808 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19809 * doc/tm.texi: Regenerate.
19810 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19811 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19812 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19813 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19814
19815 2015-04-30 Marek Polacek <polacek@redhat.com>
19816
19817 * varasm.c (handle_cache_entry): Fix logic.
19818
19819 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19820
19821 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19822 (*extrsi5_insn_uxtw_alt): Likewise.
19823 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19824 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19825 operations.
19826
19827 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19828
19829 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19830 fabd in ABS case.
19831
19832 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19833
19834 * config/aarch64/aarch64.md
19835 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19836 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19838 appropriately. Handle alternative EON form.
19839
19840 2015-04-30 Renlin Li <renlin.li@arm.com>
19841
19842 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19843 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19844
19845 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19846
19847 PR ipa/65873
19848 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19849 -fstrict-aliasing boundaries.
19850
19851 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19852
19853 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19854 and [SU]MNEGL patterns.
19855
19856 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19857
19858 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19859 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19860 combined arithmetic-shift ops. Properly handle all shift and extend
19861 operations that can occur in combination with PLUS/MINUS.
19862 Rename maybe_fma to compound_p.
19863 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19864 arithmetic and shift operations.
19865
19866 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19867
19868 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19869 rather than arith_shift cost when costing ADD/MINUS of an
19870 extended value.
19871
19872 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19873
19874 PR lto/65948
19875 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19876 to itself.
19877
19878 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19879
19880 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19881 are for the same position.
19882
19883 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19884
19885 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19886 vectorize_loops.
19887 (vectorize_loops): Use it.
19888
19889 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19890
19891 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19892 for aggregate types.
19893 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19894 type to be non_ODR.
19895 * tree.c (need_assembler_name_p): Compute mangled name for
19896 non-fundamental types and integer types.
19897
19898 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19899
19900 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19901 manual swaps.
19902 * expr.c (expand_expr_real_2): Likewise.
19903
19904 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19905
19906 * tree.c (build_common_builtin_nodes): Do not build
19907 __builtin_alloca_with_align as equivalent of library alloca.
19908
19909 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19910
19911 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19912 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19913 bugus variants.
19914 * tree.c: Include print-tree.h and ipa-utils.h
19915 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19916 (free_lang_data_in_cgraph): Call verify_type.
19917 (verify_type_variant): New function.
19918 (verify_type): New function.
19919 * tree.h (verify_type): Declare.
19920
19921 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19922
19923 * config/mips/mips-cpus.def: (mips4): Change default processor
19924 from PROCESSOR_R8000 to PROCESSOR_R10000.
19925
19926 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19927
19928 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19929 la/jalr instead of jal.
19930
19931 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19932
19933 PR target/65871
19934 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19935 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19936 (setcc+movzbl peephole2): Check also clobbered reg.
19937 (setcc+andl peephole2): Ditto.
19938
19939 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19940
19941 PR libgomp/65099
19942 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19943 (main): Set it depending on "-foffload-abi=[...]".
19944 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19945 compiler.
19946
19947 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19948
19949 PR target/65770
19950 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19951 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19952 Flip lane index back at assembly time for bigendian.
19953
19954 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19955
19956 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19957 * gimplify.c (gimplify_omp_workshare): Use it.
19958
19959 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19960
19961 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19962 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19963 build/inchash.o
19964 * genrecog.c: Rewrite most of the code except for the third page.
19965
19966 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19967
19968 * inchash.h, inchash.c: Include bconfig.h for build objects.
19969 * Makefile.in (build/inchash.o): New rule.
19970
19971 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19972
19973 PR target/65924
19974 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19975 number in type attribute expression.
19976
19977 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19978
19979 * loop-iv.c (canon_condition): Generalize to all types of integer
19980 constant.
19981
19982 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19983
19984 * gimple-walk.c: Prune duplicate or unneeded includes.
19985 (walk_gimple_asm): Only call parse_input_constraint or
19986 parse_output_constraint if their findings are used.
19987 Honour parse_input_constraint and parse_output_constraint
19988 result.
19989
19990 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19991
19992 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19993
19994 2015-04-29 Tom de Vries <tom@codesourcery.com>
19995
19996 PR tree-optimization/65893
19997 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19998 pass_dce.
19999
20000 2015-04-29 Richard Biener <rguenther@suse.de>
20001
20002 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20003 compute GROUP_SIZE for basic-block SLP.
20004 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20005 take into account gaps.
20006 (vect_get_mask_element): Properly reject references to previous
20007 vectors.
20008 (vect_transform_slp_perm_load): Likewise.
20009
20010 2015-04-29 Christian Bruel <christian.bruel@st.com>
20011
20012 PR target/64835
20013 * config/i386/i386.c (ix86_default_align): New function.
20014 (ix86_override_options_after_change): Call ix86_default_align.
20015 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20016 (ix86_override_options_after_change): New function.
20017
20018 2015-04-28 Jeff Law <law@redhat.com>
20019
20020 * tree-ssa-dom.c (record_equality); Fix comment typos.
20021
20022 2015-04-28 Tom de Vries <tom@codesourcery.com>
20023
20024 PR tree-optimization/65887
20025 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20026
20027 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20028
20029 * doc/extend.texi (Declaring Attributes of Functions): Split into
20030 subsections by target. Alphabetize the table of common attributes.
20031 Rewrite some of the introductory text to reflect the new structure.
20032 Update some cross-references to point to the new subsections.
20033 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20034 duplicate copies in the discussion of function, label, and type
20035 attributes.
20036
20037 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20038
20039 PR bootstrap/65910
20040 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20041
20042 2015-04-28 Jason Merrill <jason@redhat.com>
20043
20044 PR c++/65734
20045 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20046 (finalize_type_size): Respect TYPE_USER_ALIGN.
20047 (layout_type) [ARRAY_TYPE]: Likewise.
20048
20049 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20050
20051 * config/arm/arm.md (*arm_movt): Fix type attribute.
20052 (*cmpsi_shiftsi): Likewise.
20053 (*cmpsi_shiftsi_swp): Likewise.
20054 (*movsicc_insn): Likewise.
20055 (*cond_move): Likewise.
20056 (*if_plus_move): Likewise.
20057 (*if_move_plus): Likewise.
20058 (*if_arith_move): Likewise.
20059 (*if_move_arith): Likewise.
20060 (*if_shift_move): Likewise.
20061 (*if_move_shift): Likewise.
20062 (*arm_movtas_ze): Likewise.
20063 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20064 redundancy and type attribute.
20065 (*thumb2_movsi_insn): Fix type attribute.
20066 (*thumb2_addsi_short): Likewise.
20067 (thumb2_addsi3_compare0): Likewise.
20068 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20069 attributes accordingly.
20070
20071 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20072
20073 PR other/65911
20074 * function.c (pad_to_arg_alignment): Add parentheses.
20075
20076 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20077
20078 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20079 libgcc/config/frv/elf-lib.h.
20080
20081 2015-04-28 Tom de Vries <tom@codesourcery.com>
20082
20083 * tree-call-cdce.c: Fix example in header comment.
20084
20085 2015-04-28 Richard Biener <rguenther@suse.de>
20086
20087 PR tree-optimization/62283
20088 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20089 fails fatally and we are vectorizing a basic-block simply
20090 cause the child to be constructed piecewise.
20091 (vect_analyze_slp_cost_1): Adjust.
20092 (vect_detect_hybrid_slp_stmts): Likewise.
20093 (vect_bb_slp_scalar_cost): Likewise.
20094 (vect_get_constant_vectors): For piecewise constructed
20095 constants place them after the last def.
20096 (vect_get_slp_defs): Adjust.
20097 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20098 externals for basic-block vectorization.
20099
20100 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20101
20102 PR target/63503
20103 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20104 aarch64-*-*.
20105 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20106 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20107 (AARCH64_TUNE_FMA_STEERING): Likewise.
20108 * config/aarch64/aarch64-cores.def: Set
20109 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20110 FMUL/FMADD instructions.
20111 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20112 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20113 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20114 * config/aarch64/cortex-a57-fma-steering.h: New file.
20115 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20116
20117 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20118
20119 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20120
20121 2015-04-28 Richard Biener <rguenther@suse.de>
20122
20123 PR tree-optimization/65851
20124 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20125 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20126 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20127 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20128 (ccp_visit_phi_node): Adjust.
20129 (evaluate_stmt): For simplifications to SSA names return its
20130 lattice value if that isn't VARYING. Return immediately when
20131 simplified to a constant.
20132 (visit_assignment): Adjust.
20133 (ccp_visit_stmt): Likewise.
20134
20135 2015-04-28 Tom de Vries <tom@codesourcery.com>
20136
20137 PR tree-optimization/65818
20138 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20139 evaluated.
20140
20141 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20142
20143 * calls.c (save_fixed_argument_area): Don't check
20144 ARGS_GROW_DOWNWARD with the preprocessor.
20145 (restore_fixed_argument_area): Likewise.
20146 (mem_overlaps_already_clobbered_arg_p): Likewise.
20147 (check_sibcall_argument_overlap): Likewise.
20148 (expand_call): Likewise.
20149 (emit_library_call_value_1): Likewise.
20150 (store_one_arg): Likewise.
20151 * function.c (assign_parms): Likewise.
20152 (locate_and_pad_parm): Likewise.
20153 (pad_to_arg_alignment): Likewise.
20154 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20155
20156 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20157
20158 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20159 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20160 * calls.c (save_fixed_argument_area): Don't chekc if
20161 ARGS_GROW_DOWNWARD is defined.
20162 (restore_fixed_argument_area): Likewise.
20163 (mem_overlaps_already_clobbered_arg_p): Likewise.
20164 (check_sibcall_argument_overlap): Likewise.
20165 (expand_call): Likewise.
20166 (emit_library_call_value_1): Likewise.
20167 (store_one_arg): Likewise.
20168 * function.c (assign_parms): Likewise.
20169 (locate_and_pad_parm): Likewise.
20170 (pad_to_arg_alignment): Likewise.
20171 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20172
20173 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20174
20175 * defaults.h (gen_epilogue): New function.
20176 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20177 defined.
20178 * cfgrtl.c (cfg_layout_finalize): Likewise.
20179 * df-scan.c: Likewise.
20180 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20181 (reposition_prologue_and_epilogue_notes): Likewise.
20182 * reorg.c (find_end_label): Likewise.
20183 * toplev.c: Likewise.
20184
20185 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20186
20187 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20188 * defaults.h (gen_simple_return): New function.
20189 (gen_simple_return): Likewise.
20190 (HAVE_return): Add default definition to false.
20191 (HAVE_simple_return): Likewise.
20192 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20193 HAVE_return and HAVE_simple_return are defined.
20194 * function.c (gen_return_pattern): Likewise.
20195 (convert_jumps_to_returns): Likewise.
20196 (thread_prologue_and_epilogue_insns): Likewise.
20197 * reorg.c (find_end_label): Likewise.
20198 (dbr_schedule): Likewise.
20199 * shrink-wrap.c: Likewise.
20200 * shrink-wrap.h: Likewise.
20201
20202 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20203
20204 * defaults.h (EPILOGUE_USES): Add default definition of false.
20205 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20206 * resource.c (init_resource_info): Likewise.
20207
20208 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20209
20210 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20211 to false.
20212 * dwarf2out.c (field_byte_offset): REmove check if
20213 PCC_BITFIELD_TYPE_MATTERS is defined.
20214 * stor-layout.c (layout_decl): Likewise.
20215 (update_alignment_for_field): Likewise.
20216 (place_field): Likewise.
20217
20218 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20219
20220 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20221 true.
20222 * regrename.c (check_new_reg_p): Remove check if
20223 HARD_REGNO_RENAME_OK is defined.
20224 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20225
20226 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20227
20228 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20229 * cse.c (fold_rtx): Likewise.
20230 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20231 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20232 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20233 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20234 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20235 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20236 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20237 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20238 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20239 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20240 * Likewise.
20241 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20242 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20243 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20244 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20245 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20246 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20247 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20248 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20249 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20250 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20251 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20252 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20253 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20254 * doc/tm.texi: Regenerate.
20255 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20256 either true or false.
20257
20258 2015-04-27 Jeff Law <law@redhat.com>
20259
20260 PR tree-optimization/65217
20261 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20262 of them has a single use, make sure it is the LHS of the implied
20263 copy.
20264
20265 2015-04-28 Alan Modra <amodra@gmail.com>
20266
20267 PR target/65810
20268 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20269 (offsettable_ok_by_alignment): Use minimum of decl and toc
20270 pointer alignment. Replace dead code with assertion.
20271 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20272 case if size exceeds toc pointer alignment.
20273 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20274 (rs6000_emit_move): Likewise.
20275 * configure.ac: Add linker toc pointer alignment check.
20276 * configure: Regenerate.
20277 * config.in: Regenerate.
20278
20279 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20280
20281 * config.gcc: Add h8300-*-linux.
20282 * config/h8300/linux.h: New.
20283 * config/h8300/t-linux: New.
20284 * config/h8300/h8300.c (h8300_option_override): Normal mode
20285 is not supported for h8300-*-linux.
20286 (h8300_file_start): Target priority change.
20287 (get_shift_alg): Likewise.
20288 (h8300_shift_need_scratch_p): Likewise.
20289 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20290 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20291
20292 2015-04-27 Caroline Tice <cmtice@google.com>
20293
20294 * final.c (final_scan_insn): Output cold_function_name as function
20295 type.
20296 * varasm.c (cold_function_name): Make global.
20297 (assemble_start_function): Re-set cold_function_name.
20298 (assemble_end_function): Output cold partition size.
20299 * varasm.h (cold_function_name): Declare global.
20300
20301 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20302
20303 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20304 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20305 constraint.
20306 (*movxi_internal_avx512f): Ditto.
20307 (define_split): Check for xmm16+, when splitting scalar float_extend.
20308 (*extendsfdf2_mixed): Use "v" constraint.
20309 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20310 (*truncdfsf_fast_sse): Use "v" constraint.
20311 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20312 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20313 (define_peephole2): Check for xmm16+, when converting scalar
20314 float_truncate.
20315 (define_peephole2): Check for xmm16+, when converting scalar
20316 float_extend.
20317 (*fop_<mode>_comm_mixed): Use "v" constraint.
20318 (*fop_<mode>_comm_sse): Ditto.
20319 (*fop_<mode>_1_mixed): Ditto.
20320 (*sqrt<mode>2_sse): Ditto.
20321 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20322
20323 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20324
20325 * combine.c (simplify_if_then_else): Use std::swap instead
20326 of manually swapping.
20327 (known_cond): Likewise.
20328 (simplify_comparison): Likewise.
20329
20330 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20331
20332 PR target/64579
20333 * config/rs6000/htm.md: Remove all define_expands.
20334 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20335 UNSPECV_HTM_TABORTWCI): Remove.
20336 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20337 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20338 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20339 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20340 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20341 tabortwci_internal): Remove define_insns.
20342 (tabort<wd>c, tabort<wd>ci): New define_insns.
20343 (tabort): Use gpc_reg_operand.
20344 (tcheck): Remove operand.
20345 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20346 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20347 expected value.
20348 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20349 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20350 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20351 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20352 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20353 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20354 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20355 (tcheck): Remove builtin argument.
20356 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20357 not TARGET_64BIT.
20358 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20359 tabortdc and tabortdci builtins when not in 64-bit mode.
20360 Modify code to handle the loss of the HTM define_expands.
20361 Emit code to copy the CR register to TARGET.
20362 (htm_init_builtins): Modify code to handle the loss of the HTM
20363 define_expands.
20364 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20365 (RS6000_BTC_64BIT): Likewise.
20366 (RS6000_BTC_CR): New macro.
20367 * doc/extend.texi: Update documentation for htm builtins.
20368
20369 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20370
20371 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20372 of manually swapping.
20373 (simplify_associative_operation): Likewise.
20374 (simplify_binary_operation): Likewise.
20375 (simplify_plus_minus): Likewise.
20376 (simplify_relational_operation): Likewise.
20377 (simplify_ternary_operation): Likewise.
20378
20379 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20380
20381 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20382 (xs_hi_nonmemory_operand): Remove error.
20383 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20384 general_operand rather than xs_hi_general_operand.
20385
20386 2015-04-27 Richard Biener <rguenther@suse.de>
20387
20388 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20389 (record_equivalences_from_stmt): Valueize rhs.
20390 (record_equality): Canonicalize x and y order via
20391 tree_swap_operands_p. Do not swap operands for same loop depth.
20392
20393 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20394
20395 PR target/65296
20396 PR target/65895
20397 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20398 Add hint how to use own spec file.
20399
20400 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20401
20402 PR tree-optimization/65875
20403 * tree-vrp.c (update_value_range): If in is_new case setting
20404 old_vr to VR_VARYING, also set new_vr to it. Remove
20405 old_vr->type == VR_VARYING test.
20406 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20407 SSA_PROP_INTERESTING if update_value_range returned true,
20408 but new range is VR_VARYING.
20409
20410 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20411
20412 * combine.c (sign_extend_short_imm): New.
20413 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20414 extension of src short immediate.
20415 (reg_nonzero_bits_for_combine): Likewise for tem.
20416
20417 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20418
20419 * stor-layout.c (self_referential_component_ref_p): New predicate.
20420 (copy_self_referential_tree_r): Use it.
20421 (self_referential_size): Punt for simple operations directly involving
20422 self-referential component references.
20423 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20424
20425 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20426
20427 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20428
20429 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20430
20431 * vec.h (vec): Make splice arguments const. Update definitions
20432 accordingly.
20433
20434 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20435
20436 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20437 alternatives.
20438
20439 2015-04-26 Tom de Vries <tom@codesourcery.com>
20440
20441 PR tree-optimization/65826
20442 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20443
20444 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20445
20446 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20447 (*madd3<mode>): Ditto.
20448 (*msub4<mode>): Ditto.
20449 (*msub3<mode>): Ditto.
20450 (*nmadd4<mode>): Ditto.
20451 (*nmadd3<mode>): Ditto.
20452 (*nmadd4<mode>_fastmath): Ditto.
20453 (*nmadd3<mode>_fastmath): Ditto.
20454 (*nmsub4<mode>): Ditto.
20455 (*nmsub3<mode>): Ditto.
20456 (*nmsub4<mode>_fastmath): Ditto.
20457 (*nmsub3<mode>_fastmath): Ditto.
20458
20459 2015-04-24 Jason Merrill <jason@redhat.com>
20460
20461 PR c++/50800
20462 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20463 down when building TYPE_CANONICAL.
20464 (build_pointer_type_for_mode): Likewise.
20465
20466 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20467
20468 * genrecog.c (validate_pattern): Check matching constraint refers
20469 to a lower numbered operand.
20470
20471 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20472
20473 PR target/65849
20474 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20475 save to independent variables use the Save attribute. This will
20476 allow these options to be modified with the #pragma/attribute
20477 target support.
20478 (-mallow-movmisalign): Likewise.
20479 (-mallow-df-permute): Likewise.
20480 (-msched-groups): Likewise.
20481 (-malways-hint): Likewise.
20482 (-malign-branch-targets): Likewise.
20483 (-mvectorize-builtins): Likewise.
20484 (-msave-toc-indirect): Likewise.
20485
20486 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20487 can be set via the #pragma/attribute target support.
20488 (rs6000_opt_vars): Likewise.
20489 (rs6000_inner_target_options): If VSX was set, also set
20490 -mno-avoid-indexed-addresses.
20491
20492 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20493
20494 * config/arm/iterators.md (shiftable_ops): Rename to...
20495 (SHIFTABLE_OPS): ... This. Update use in comments.
20496 (ior_xor): Rename to...
20497 (IOR_XOR): ... This.
20498 (vqh_ops): Rename to...
20499 (VQH_OPS): ... This.
20500 (vqhs_ops): Rename to...
20501 (VQHS_OPS): ... This.
20502 (rshifts): Rename to...
20503 (RSHIFTS): ... This.
20504 (returns): Rename to...
20505 (RETURNS): ... This.
20506 * config/arm/arm.md: Update uses of the above.
20507 * config/arm/neon.md: Likewise.
20508
20509 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20510
20511 * config.host (case ${host}): Add aarch64*-*-linux case.
20512 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20513 fields to all the cores.
20514 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20515 Add MCPU_MTUNE_NATIVE_SPECS.
20516 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20517 field to all extensions.
20518 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20519 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20520 Adjust definition of AARCH64_OPT_EXTENSION.
20521 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20522 (MCPU_MTUNE_NATIVE_SPECS): Define.
20523 * config/aarch64/driver-aarch64.c: New file.
20524 * config/aarch64/x-arch64: New file.
20525 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20526 -mtune and -march.
20527
20528 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20529 Wei Mi <wmi@google.com>
20530
20531 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20532 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20533 (ix86_operands_ok_for_move_multiple): Ditto.
20534 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20535 (movlpd/movhpd to movupd peephole2): Ditto.
20536
20537 2015-04-24 Marek Polacek <polacek@redhat.com>
20538
20539 PR c/61534
20540 * input.h (from_macro_expansion_at): Define.
20541
20542 PR c/63357
20543 * doc/invoke.texi: Update description of -Wlogical-op.
20544
20545 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20546
20547 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20548 ternary operator in fprintf and harmonize spacing.
20549
20550 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20551
20552 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20553 Mark operand1 commutative.
20554
20555 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20556
20557 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20558 input operands in memory.
20559 (*vec_concatv2si_sse4_1): Ditto.
20560 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20561 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20562 register_operand.
20563 (vec_extract_hi_v32hi): Ditto.
20564 (vec_extract_hi_v64hi): Ditto.
20565 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20566
20567 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20568 Steven Bosscher <steven@gcc.gnu.org>
20569
20570 PR rtl-optimization/34503
20571 * cprop.c (cprop_reg_p): New.
20572 (hash_scan_set): Use above function to check if register can be
20573 propagated.
20574 (find_avail_set): Return up to two sets, one whose source is a
20575 register and one whose source is a constant. Sets are returned in an
20576 array passed as parameter rather than as a return value.
20577 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20578 sets returned by find_avail_set, starting with the one whose source is
20579 a constant. Use cprop_reg_p to check if register can be propagated.
20580 (do_local_cprop): Use cprop_reg_p to check if register can be
20581 propagated.
20582 (implicit_set_cond_p): Likewise.
20583
20584 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20585
20586 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20587 (sem_function::equals): IGNORED_NODES parameter is now unused;
20588 update call of equals_private.
20589 (sem_function::equals_private): Do not call equals_wpa; skip
20590 gimple body matching if there is no body.
20591 (sem_function::init): Add logic to hash tthunk info.
20592 (sem_function::parse): Also parse thunks.
20593 * ipa-icf.h (equals_private): Update declaration.
20594
20595 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20596
20597 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20598 asterisk from name so this can be generated directly.
20599 (*altivec_stvx_<mode>_internal): Likewise.
20600 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20601 that this is never called during or after reload/lra.
20602 (rs6000_frame_related): Remove split_reg
20603 argument and logic that references it.
20604 (emit_frame_save): Remove last parameter from call to
20605 rs6000_frame_related.
20606 (rs6000_emit_prologue): Remove last parameter from eight calls to
20607 rs6000_frame_related. Force generation of stvx instruction for
20608 Altivec register saves. Remove split_reg handling, which is no
20609 longer needed.
20610 (rs6000_emit_epilogue): Force generation of lvx instruction for
20611 Altivec register restores.
20612
20613 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20614
20615 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20616 match category changes in ISA 2.07B.
20617
20618 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20619
20620 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20621 iterators.
20622 (cmp_op, cmp_type): New code attributes.
20623 (NEON_VCMP, NEON_VACMP): New int iterators.
20624 (cmp_op_unsp): New int attribute.
20625 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20626 (neon_vceq<mode>): Delete.
20627 (neon_vc<cmp_op><mode>_insn): New pattern.
20628 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20629 (neon_vcgeu<mode>): Delete.
20630 (neon_vcle<mode>): Likewise.
20631 (neon_vclt<mode>: Likewise.
20632 (neon_vcage<mode>): Likewise.
20633 (neon_vcagt<mode>): Likewise.
20634 (neon_vca<cmp_op><mode>): New define_expand.
20635 (neon_vca<cmp_op><mode>_insn): New pattern.
20636 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20637
20638 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20639
20640 * tree.h (attribute_value_equal): Declare.
20641 * tree.c (attribute_value_equal): Export.
20642
20643 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20644
20645 * ipa-icf.c (sem_item::compare_attributes): New function.
20646 (sem_item::compare_referenced_symbol_properties): Compare variable
20647 attributes.
20648 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20649 (sem_function::param_used_p): New function.
20650 (sem_function::equals_wpa): Fix attribute comparsion; match
20651 parameter type codes; do not compare paremter flags when
20652 they are not used; compare edge flags; compare indirect calls.
20653 (sem_item::update_hash_by_addr_refs): Hash reference type.
20654 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20655 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20656 reference use type.
20657 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20658 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20659
20660 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20661
20662 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20663 cleanup.
20664 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20665 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20666 (sem_item::compare_referenced_symbol_properties): New.
20667 (sem_item::hash_referenced_symbol_properties): New.
20668 (sem_item::compare_cgraph_references): Rename to ...
20669 (sem_item::compare_symbol_references): ... this one; use
20670 compare_referenced_symbol_properties.
20671 (sem_function::equals_wpa): Do not compare
20672 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20673 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20674 (sem_item::update_hash_by_addr_refs): Call
20675 hash_referenced_symbol_properties.
20676 (sem_item::update_hash_by_local_refs): Cleanup.
20677 (sem_function::merge): Do not mix up symbol properties.
20678 (sem_variable::equals_wpa): Use compare_symbol_references.
20679 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20680 (sem_item::hash_referenced_symbol_properties): New.
20681 (sem_item::compare_symbol_references): New.
20682 (sem_item::compare_cgraph_references): Remove.
20683
20684 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20685
20686 PR target/26702
20687 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20688 Emit size of local.
20689
20690 2015-04-23 Nick Clifton <nickc@redhat.com>
20691
20692 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20693 ATTRIBUTE_UNUSED to x parameter.
20694 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20695
20696 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20697
20698 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20699 TARGET_CRYPTO to TARGET_P8_VECTOR>
20700 (crypto_vpermxor_<mode>): Likewise.
20701 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20702 (BU_CRYPTO_3A): Likewise.
20703 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20704 (BU_CRYPTO_OVERLOAD_3A): New #define.
20705 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20706 (VPMSUMH): Likewise.
20707 (VPMSUMW): Likewise.
20708 (VPMSUMD): Likewise.
20709 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20710 (VPERMXOR_V4SI): Likewise.
20711 (VPERMXOR_V8HI): Likewise.
20712 (VPERMXOR_V16QI): Likewise.
20713 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20714 BU_CRYPTO_OVERLOAD_2A.
20715 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20716 BU_CRYPTO_OVERLOAD_3A.
20717 * config/rs6000/rs6000.opt (mcrypto): Change description of
20718 option.
20719
20720 2015-04-23 Richard Biener <rguenther@suse.de>
20721
20722 * passes.def: Remove copy propagation passes run directly after CCP.
20723 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20724 SSA names.
20725 (ccp_visit_phi_node): Rework to handle first executable edge
20726 specially.
20727
20728 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20729
20730 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20731 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20732 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20733 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20734 (thumb_legimitimize_reload_address): Remove.
20735 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20736 Remove.
20737 (thumb_legimitimize_reload_address): Remove.
20738
20739 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20740
20741 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20742
20743 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20744
20745 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20746 MAX_LDM_STM_OPS.
20747 (store_multiple): Likewise.
20748
20749 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20750
20751 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20752 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20753 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20754 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20755 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20756 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20757 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20758 Specify issue_rate value.
20759 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20760 large switch statement.
20761 (arm_marvell_pj4_tune): New struct.
20762 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20763 struct.
20764
20765 2015-04-23 Richard Biener <rguenther@suse.de>
20766
20767 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20768 (vect_find_last_store_in_slp_instance): Rename to ...
20769 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20770 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20771 and vec_construct for external defs when estimating prologue cost.
20772 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20773 Compute costs here only when vectorizing loops.
20774 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20775 have been determined.
20776 (vect_schedule_slp_instance): Simplify vectorized code placement
20777 and prepare for in-BB external defs.
20778 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20779 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20780 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20781 guard.
20782 (vect_model_load_cost): Likewise.
20783 (vectorizable_store): Instead add it here.
20784 (vectorizable_load): Likewise.
20785 (vect_is_simple_use): Dump def type textually.
20786
20787 2015-04-23 Richard Biener <rguenther@suse.de>
20788
20789 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20790 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20791 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20792 instead of get_eh_region_from_lp_number.
20793 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20794 the SCEV cache.
20795
20796 2015-04-23 Anton Blanchard <anton@samba.org>
20797
20798 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20799 need for -mprofile-kernel to save LR to stack.
20800
20801 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20802
20803 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20804 adjustments.
20805 (insn_is_swappable_p): Return 1 for a convert from double to
20806 single precision when all of its uses are splats of BE element
20807 zero.
20808
20809 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20810
20811 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20812
20813 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20814
20815 PR target/65456
20816 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20817 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20818 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20819 option.
20820 (rs6000_builtin_mask_for_load): Return 0 for targets with
20821 efficient unaligned VSX accesses so that the vectorizer will use
20822 direct unaligned loads.
20823 (rs6000_builtin_support_vector_misalignment): Always return true
20824 for targets with efficient unaligned VSX accesses.
20825 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20826 stores on targets with efficient unaligned VSX accesses is almost
20827 always the same as the cost of an aligned load or store, so model
20828 it that way.
20829 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20830 unaligned vectors if we have efficient unaligned VSX accesses.
20831 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20832 undocumented option.
20833
20834 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20835
20836 Revert:
20837 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20838
20839 * config.gcc (LIBC_MUSL): New tm_defines macro.
20840 * config/linux.h (OPTION_MUSL): Define.
20841 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20842 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20843 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20844
20845 * config/linux.opt (mmusl): New option.
20846 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20847 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20848
20849 * configure: Regenerate.
20850
20851 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20852
20853 * config.gcc (LIBC_MUSL): New tm_defines macro.
20854 * config/linux.h (OPTION_MUSL): Define.
20855 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20856 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20857 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20858
20859 * config/linux.opt (mmusl): New option.
20860 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20861 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20862
20863 * configure: Regenerate.
20864
20865 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20866
20867 * doc/invoke.texi (-fsanitize-sections): Update description.
20868 * asan.c (set_sanitized_sections): Parse incoming arg.
20869 (section_sanitized_p): Support wildcards.
20870
20871 2015-04-22 Tom de Vries <tom@codesourcery.com>
20872
20873 PR tree-optimization/65823
20874 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20875 equality between ap_copy and ap.
20876
20877 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20878
20879 PR target/47098
20880 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20881
20882 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20883
20884 PR target/47122
20885 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20886
20887 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20888
20889 PR target/55144
20890 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20891 remove already contained t-files.
20892
20893 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20894
20895 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20896 Remove unneeded forward declarations.
20897 (suitable_for_tail_call_opt_p): Commentary typo fix.
20898
20899 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20900
20901 * varasm.c (emit_bss): Remove redundant guard.
20902
20903 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20904
20905 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20906
20907 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20908
20909 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20910
20911 2015-04-22 Hale Wang <hale.wang@arm.com>
20912 Terry Guo <terry.guo@arm.com>
20913
20914 PR rtl-optimization/64818
20915 * combine.c (can_combine_p): Don't combine user-specified
20916 register if it is in an asm input.
20917
20918 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20919
20920 PR ipa/65076
20921 * passes.def (early_optimizations): Add pass_dse.
20922
20923 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20924
20925 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20926 * reorg.c (redundant_insn): Remove ifdef
20927 INSN_REFERENCES_ARE_DELAYED.
20928 * resource.c (mark_referenced_resources): Likewise.
20929
20930 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20931
20932 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20933 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20934 * resource.c (mark_set_resources): Likewise.
20935
20936 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20937
20938 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20939 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20940 (flow_find_head_matching_sequence): Likewise.
20941 (try_head_merge_bb): Likewise.
20942 * combine.c (can_combine_p): Likewise.
20943 (try_combine): Likewise.
20944 (distribute_notes): Likewise.
20945 * df-problems.c (can_move_insns_across): Likewise.
20946 * final.c (final): Likewise.
20947 * gcse.c (insert_insn_end_basic_block): Likewise.
20948 * ira.c (find_moveable_pseudos): Likewise.
20949 * reorg.c (try_merge_delay_insns): Likewise.
20950 (fill_simple_delay_slots): Likewise.
20951 (fill_slots_from_thread): Likewise.
20952 * sched-deps.c (sched_analyze_2): Likewise.
20953
20954 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20955
20956 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20957 PIC_OFFSET_TABLE_REGNUM.
20958
20959 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20960
20961 * alias.c (init_alias_target): Remove ifdef
20962 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20963 * df-scan.c (df_insn_refs_collect): Likewise.
20964 (df_get_regular_block_artificial_uses): Likewise.
20965 (df_get_eh_block_artificial_uses): Likewise.
20966 (df_get_entry_block_def_set): Likewise.
20967 (df_get_exit_block_use_set): Likewise.
20968 * emit-rtl.c (gen_rtx_REG): Likewise.
20969 * ira.c (ira_setup_eliminable_regset): Likewise.
20970 * reginfo.c (init_reg_sets_1): Likewise.
20971 * regrename.c (rename_chains): Likewise.
20972 * reload1.c (reload): Likewise.
20973 (eliminate_regs_in_insn): Likewise.
20974 * resource.c (mark_referenced_resources): Likewise.
20975 (init_resource_info): Likewise.
20976
20977 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20978
20979 * defaults.h (MASK_RETURN_ADDR): New definition.
20980 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20981 MASK_RETURN_ADDR.
20982
20983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20984
20985 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20986 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20987 RETURN_ADDR_OFFSET.
20988 (expand_builtin_frob_return_addr): Likewise.
20989
20990 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20991
20992 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20993 (try_redirect_by_replacing_jump): Likewise.
20994 (rtl_tidy_fallthru_edge): Likewise.
20995 * combine.c (insn_a_feeds_b): Likewise.
20996 (find_split_point): Likewise.
20997 (simplify_set): Likewise.
20998 * cprop.c (cprop_jump): Likewise.
20999 * cse.c (cse_extended_basic_block): Likewise.
21000 * df-problems.c (can_move_insns_across): Likewise.
21001 * function.c (emit_use_return_register_into_block): Likewise.
21002 * haifa-sched.c (sched_init): Likewise.
21003 * ira.c (find_moveable_pseudos): Likewise.
21004 * loop-invariant.c (find_invariant_insn): Likewise.
21005 * lra-constraints.c (curr_insn_transform): Likewise.
21006 * postreload.c (reload_combine_recognize_const_pattern):
21007 * Likewise.
21008 * reload.c (find_reloads): Likewise.
21009 * reorg.c (delete_scheduled_jump): Likewise.
21010 (steal_delay_list_from_target): Likewise.
21011 (steal_delay_list_from_fallthrough): Likewise.
21012 (redundant_insn): Likewise.
21013 (fill_simple_delay_slots): Likewise.
21014 (fill_slots_from_thread): Likewise.
21015 (delete_computation): Likewise.
21016 * sched-rgn.c (add_branch_dependences): Likewise.
21017
21018 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21019
21020 * genconfig.c (main): Always define HAVE_cc0.
21021 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21022 HAVE_cc0.
21023 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21024 (flow_find_head_matching_sequence): Likewise.
21025 (try_head_merge_bb): Likewise.
21026 * cfgrtl.c (rtl_merge_blocks): Likewise.
21027 (try_redirect_by_replacing_jump): Likewise.
21028 (rtl_tidy_fallthru_edge): Likewise.
21029 * combine.c (do_SUBST_MODE): Likewise.
21030 (insn_a_feeds_b): Likewise.
21031 (combine_instructions): Likewise.
21032 (can_combine_p): Likewise.
21033 (try_combine): Likewise.
21034 (find_split_point): Likewise.
21035 (subst): Likewise.
21036 (simplify_set): Likewise.
21037 (distribute_notes): Likewise.
21038 * cprop.c (cprop_jump): Likewise.
21039 * cse.c (cse_extended_basic_block): Likewise.
21040 * df-problems.c (can_move_insns_across): Likewise.
21041 * final.c (final): Likewise.
21042 (final_scan_insn): Likewise.
21043 * function.c (emit_use_return_register_into_block): Likewise.
21044 * gcse.c (insert_insn_end_basic_block): Likewise.
21045 * haifa-sched.c (sched_init): Likewise.
21046 * ira.c (find_moveable_pseudos): Likewise.
21047 * loop-invariant.c (find_invariant_insn): Likewise.
21048 * lra-constraints.c (curr_insn_transform): Likewise.
21049 * optabs.c (prepare_cmp_insn): Likewise.
21050 * postreload.c (reload_combine_recognize_const_pattern):
21051 * Likewise.
21052 * reload.c (find_reloads): Likewise.
21053 (find_reloads_address_1): Likewise.
21054 * reorg.c (delete_scheduled_jump): Likewise.
21055 (steal_delay_list_from_target): Likewise.
21056 (steal_delay_list_from_fallthrough): Likewise.
21057 (try_merge_delay_insns): Likewise.
21058 (redundant_insn): Likewise.
21059 (fill_simple_delay_slots): Likewise.
21060 (fill_slots_from_thread): Likewise.
21061 (delete_computation): Likewise.
21062 (relax_delay_slots): Likewise.
21063 * sched-deps.c (sched_analyze_2): Likewise.
21064 * sched-rgn.c (add_branch_dependences): Likewise.
21065
21066 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21067
21068 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21069 that is trivially ded on non cc0 targets.
21070 (simplify_set): Likewise.
21071 (mark_used_regs_combine): Likewise.
21072 * cse.c (new_basic_block): Likewise.
21073 (fold_rtx): Likewise.
21074 (cse_insn): Likewise.
21075 (cse_extended_basic_block): Likewise.
21076 (set_live_p): Likewise.
21077 * rtlanal.c (canonicalize_condition): Likewise.
21078 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21079
21080 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21081
21082 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21083 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21084 * final.c: Likewise.
21085 * jump.c: Likewise.
21086 * recog.c: Likewise.
21087 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21088 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21089
21090 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21091
21092 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21093 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21094 * builtins.c (expand_builtin): Remove check if
21095 EH_RETURN_DATA_REGNO is defined.
21096 * df-scan.c (df_bb_refs_collect): Likewise.
21097 (df_get_exit_block_use_set): Likewise.
21098 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21099 * ira-lives.c (process_bb_node_lives): Likewise.
21100 * lra-lives.c (process_bb_lives): Likewise.
21101
21102 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21103
21104 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21105 FIRST_PSEUDO_REG): New.
21106 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21107 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21108 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21109 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21110 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21111 (FIRST_INT_REG): New.
21112 (LAST_INT_REG): New.
21113 (FIRST_*_REG): Define using *_REG.
21114 (LAST_*_REG): Ditto.
21115 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21116 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21117 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21118
21119 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21120
21121 * expmed.c: (synth_mult): Only assume overlapping
21122 shift with previous steps in alg_sub_t_m2 case.
21123
21124 2015-04-21 Richard Biener <rguenther@suse.de>
21125
21126 PR tree-optimization/65650
21127 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21128 transitions involving copies.
21129 (set_lattice_value): Adjust for copy lattice state.
21130 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21131 if that doesn't dominate the merge point.
21132 (bit_value_unop): Adjust what we treat as varying mask.
21133 (bit_value_binop): Likewise.
21134 (bit_value_assume_aligned): Likewise.
21135 (evaluate_stmt): When we simplified to a SSA name record a copy
21136 instead of dropping to varying.
21137 (visit_assignment): Simplify.
21138
21139 * gimple-match.h (gimple_simplify): Add another callback.
21140 * gimple-fold.c (fold_stmt_1): Adjust caller.
21141 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21142 for the 2nd callback.
21143 * gimple-match-head.c (gimple_simplify): Add a callback that is
21144 used to valueize the stmt operands and use it that way.
21145
21146 2015-04-21 Richard Biener <rguenther@suse.de>
21147
21148 PR tree-optimization/65788
21149 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21150
21151 2015-04-21 Richard Biener <rguenther@suse.de>
21152
21153 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21154 vec_construct cost by vec_stmt_cost.
21155
21156 2015-04-21 Richard Biener <rguenther@suse.de>
21157
21158 * cfghooks.h (create_basic_block): Replace with two overloads
21159 for RTL and GIMPLE.
21160 (split_block): Likewise.
21161 * cfghooks.c (split_block): Rename to ...
21162 (split_block_1): ... this.
21163 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21164 (split_block_after_labels): Call split_block_1.
21165 (create_basic_block): Rename to ...
21166 (create_basic_block_1): ... this.
21167 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21168 (create_empty_bb): Call create_basic_block_1.
21169 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21170 split_block_after_labels.
21171 * omp-low.c (expand_parallel_call): Likewise.
21172 (expand_omp_target): Likewise.
21173 (simd_clone_adjust): Likewise.
21174 * tree-chkp.c (chkp_get_entry_block): Likewise.
21175 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21176 create_basic_block overload.
21177 (cgraph_node::expand_thunk): Likewise.
21178 * tree-cfg.c (make_blocks): Likewise.
21179 (handle_abnormal_edges): Likewise.
21180 * tree-inline.c (copy_bb): Likewise.
21181
21182 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21183
21184 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21185 New pattern.
21186 (*xor_one_cmplsidi3_ze): Likewise.
21187
21188 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21189
21190 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21191 use df_remove_problem rather than manually removing problems, leaving
21192 holes in df->problems_in_order[].
21193
21194 2015-04-21 Tom de Vries <tom@codesourcery.com>
21195
21196 PR tree-optimization/65802
21197 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21198
21199 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21200
21201 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21202 Increase to 128.
21203 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21204 at '.'. Assert that there's enough space for everything.
21205
21206 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21207
21208 PR tree-optimization/64950
21209 Revert:
21210 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21211
21212 PR target/41089
21213 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21214 as volatile.
21215
21216 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21217
21218 PR rtl-optimization/64916
21219 * cfgcleanup.c (values_equal_p): New function.
21220 (can_replace_by): Use it.
21221
21222 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21223
21224 PR c++/65801
21225 * doc/invoke.texi ([-Wnarrowing]): Update.
21226
21227 2015-04-20 Jeff Law <law@redhat.com>
21228
21229 PR tree-optimization/65658
21230 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21231 redundant test for GIMPLE_ASSIGN in last change.
21232
21233 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21234
21235 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21236 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21237 (legitimize_tls_address): Ditto.
21238 (ix86_expand_move): Ditto.
21239 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21240 (ix86_expand_unary_operator): Ditto.
21241 * config/i386/predicates.md (index_register_operand): Ditto.
21242
21243 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21244
21245 * reorg.c (try_merge_delay_insns): Improve correctness checking
21246 for targets with multiple delay slots.
21247
21248 2015-04-20 Jeff Law <law@redhat.com>
21249
21250 PR tree-optimization/65658
21251 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21252 statements too.
21253
21254 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21255
21256 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21257 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21258 Delete.
21259
21260 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21261
21262 PR debug/65807
21263 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21264
21265 2015-04-20 Richard Biener <rguenther@suse.de>
21266
21267 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21268 * gimple-fold.c (gimple_build_valueize): New function.
21269 (gimple_build): Always use gimple_build_valueize as valueize hook.
21270
21271 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21272
21273 PR target/64134
21274 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21275 and overwrite variable parts if <= 1/2 the elements are variable.
21276
21277 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21278
21279 PR rtl-optimization/65805
21280 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21281 Don't use difference of offset and previous offset if
21282 update_sp_offset is non-zero.
21283 (eliminate_regs_in_insn): Ditto.
21284 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21285 lra_eliminate_regs_1 call.
21286 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21287
21288 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21289
21290 * hash-table.h: Remove version of hash_table that stored value_type *.
21291 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21292 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21293 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21294 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21295 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21296 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21297 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21298 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21299 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21300 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21301 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21302 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21303 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21304 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21305 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21306 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21307
21308 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21309 Jakub Jelinek <jakub@redhat.com>
21310
21311 PR target/65787
21312 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21313 subsequent SH_NONE operand does not overwrite an existing *special
21314 value.
21315 (adjust_extract): Handle case where a vec_extract operation is
21316 wrapped in a PARALLEL.
21317
21318 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21319
21320 PR target/65780
21321 * config/i386/i386.c (ix86_binds_local_p): Define only if
21322 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21323
21324 2015-04-17 Jeff Law <law@redhat.com>
21325
21326 PR tree-optimization/47679
21327 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21328 * tree-ssa-scopedtables.c: New file.
21329 * tree-ssa-scopedtables.h: New file.
21330 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21331 (const_and_copies): Change name/type.
21332 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21333 (record_const_or_copy_1): Similarly.
21334 (restore_vars_to_original_value): Similarly.
21335 (pass_dominator::execute): Create and destroy const_and_copies table.
21336 (thread_across_edge): Update passing of const_and_copies.
21337 (record_temporary_equivalence): Use method calls rather than
21338 manipulating const_and_copies directly.
21339 (record_equality, cprop_into_successor_phis): Similarly.
21340 (dom_opt_dom_walker::before_dom_children): Similarly.
21341 (dom_opt_dom_walker::after_dom_children): Similarly.
21342 (eliminate_redundant_computations): Similarly.
21343 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21344 (record_temporary_equivalence): Likewise.
21345 (invalidate_equivalences): Likewise.
21346 (record_temporary_equivalences_from_phis): Update due to type
21347 change of const_and_copies. Use method calls rather than
21348 manipulating the stack directly.
21349 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21350 (thread_through_normal_block, thread_across_edge): Likewise.
21351 (thread_across_edge): Likewise.
21352 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21353 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21354 of equiv_stack.
21355 (identify_jump_threads): Update due to type change of equiv_stack.
21356 (finalize_jump_threads): Delete the equiv_stack when complete.
21357
21358 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21359
21360 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21361 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21362 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21363
21364 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21365
21366 PR target/65535
21367 * config.gcc: Exit with a comment when we do not have a major version
21368 number for the FreeBSD target.
21369
21370 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21371
21372 PR target/65689
21373 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21374 maybe_allows_mem bitfields.
21375 (maybe_allows_none_start, maybe_allows_none_end,
21376 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21377 maybe_allows_mem_end): New variables.
21378 (compute_maybe_allows): New function.
21379 (add_constraint): Use it to initialize maybe_allows_reg and
21380 maybe_allows_mem fields.
21381 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21382 is_address constraints such that those that allow neither mem nor
21383 reg come first, then those that only allow reg but not mem, then
21384 those that only allow mem but not reg, then the rest.
21385 (write_allows_reg_mem_function): New function.
21386 (write_tm_preds_h): Call it.
21387 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21388 the generated insn_extra_constraint_allows_reg_mem function
21389 instead of always setting *allows_reg = true; *allows_mem = true;
21390 for unknown extra constraints.
21391
21392 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21393
21394 PR target/65780
21395 * output.h (default_binds_local_p_3): New.
21396 * varasm.c (default_binds_local_p_3): Make it public. Take an
21397 argument to indicate if common symbol may be local. If common
21398 symbol may be local, treat non-external variable as defined
21399 locally.
21400 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21401 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21402 * config/i386/i386.c (ix86_binds_local_p): New.
21403 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21404 ix86_binds_local_p.
21405
21406 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21407
21408 PR debug/65771
21409 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21410 trying mem_loc_descriptor on XEXP (rtl, 0).
21411
21412 2015-04-17 Martin Liska <mliska@suse.cz>
21413
21414 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21415 Release symbol_compare_collection.
21416 * ipa-reference.c: Add TODO that a vector should be released.
21417
21418 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21419
21420 PR target/65296
21421 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21422 to new AVR-LibC file layout (bug #44574).
21423 (*avrlibc_devicelib): Same.
21424 * config/avr/avr-mcus.def: Adjust comments.
21425 * config/avr/avr.opt (nodevicelib): Adjust help.
21426
21427 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21428
21429 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21430
21431 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21432
21433 PR c++/64527
21434 * gimplify.c (gimplify_init_constructor): Always emit a
21435 side-effecting constructor.
21436
21437 2015-04-17 Tom de Vries <tom@codesourcery.com>
21438
21439 PR tree-optimization/64950
21440 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21441 in cfun->curr_properties.
21442 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21443 if we generate an IFN_VA_ARG.
21444 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21445 function if PROP_gimple_lva is not set in src function.
21446
21447 2015-04-17 Tom de Vries <tom@codesourcery.com>
21448 Michael Matz <matz@suse.de>
21449
21450 PR tree-optimization/64950
21451 * gimple-iterator.c (update_modified_stmts): Remove static.
21452 * gimple-iterator.h (update_modified_stmts): Declare.
21453 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21454 (gimplify_va_arg_internal): New function.
21455 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21456 * gimplify.h (gimplify_va_arg_internal): Declare.
21457 * internal-fn.c (expand_VA_ARG): New unreachable function.
21458 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21459 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21460 (expand_ifn_va_arg): New function.
21461 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21462 (pass_stdarg::execute): Call expand_ifn_va_arg.
21463 (pass_data_lower_vaarg): New pass_data.
21464 (pass_lower_vaarg): New gimple_opt_pass.
21465 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21466 (make_pass_lower_vaarg): New function.
21467 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21468 properties_required field.
21469 * passes.def (all_passes): Add pass_lower_vaarg.
21470 * tree-pass.h (PROP_gimple_lva): Add define.
21471 (make_pass_lower_vaarg): Declare.
21472
21473 2015-04-17 Tom de Vries <tom@codesourcery.com>
21474
21475 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21476 * calls.c (call_expr_flags): Same.
21477
21478 2015-04-17 Tom de Vries <tom@codesourcery.com>
21479
21480 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21481 (pass_stdarg::execute): ... here.
21482
21483 2015-04-17 Tom de Vries <tom@codesourcery.com>
21484 Michael Matz <matz@suse.de>
21485
21486 * tree-cfg.c (make_blocks_1): Factor out of ...
21487 (make_blocks): ... here.
21488 (make_edges_bb): Factor out of ...
21489 (make_edges): ... here.
21490 (gimple_find_sub_bbs): New function.
21491 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21492
21493 2015-04-17 Tom de Vries <tom@codesourcery.com>
21494
21495 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21496
21497 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21498
21499 * asan.c (set_sanitized_sections): New function.
21500 (section_sanitized_p): Ditto.
21501 (asan_protect_global): Optionally sanitize user-defined
21502 sections.
21503 * asan.h (set_sanitized_sections): Declare new function.
21504 * common.opt (fsanitize-sections): New option.
21505 * doc/invoke.texi (-fsanitize-sections): Document new option.
21506 * opts-global.c (handle_common_deferred_options): Handle new
21507 option.
21508
21509 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21510
21511 PR debug/65771
21512 * dwarf2out.c (loc_list_from_tree): Return NULL
21513 for DEBUG_EXPR_DECL.
21514
21515 2015-04-17 Christian Bruel <christian.bruel@st.com>
21516
21517 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21518 same attributes.
21519
21520 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21521
21522 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21523 node itself when computing left conflict subnode size.
21524
21525 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21526
21527 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21528 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21529 *fop_<mode>_1_sse using enabled attribute. Use
21530 register_mixssei387nonimm_operand operand 1 predicate. Change
21531 alternative 3 constraints from "x" to "v".
21532
21533 2015-04-16 Richard Biener <rguenther@suse.de>
21534
21535 PR tree-optimization/65774
21536 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21537 bit-value tracking on.
21538
21539 2015-04-16 Richard Biener <rguenther@suse.de>
21540
21541 PR tree-optimization/64277
21542 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21543 simplify upper bound handling.
21544 (search_for_addr_array): Simplify.
21545 (check_array_bounds): Handle ADDR_EXPRs here.
21546 (check_all_array_refs): Simplify.
21547
21548 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21549
21550 * config/i386/i386.c (print_reg): Rewrite function.
21551
21552 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21553
21554 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21555 Invert the condition.
21556
21557 2015-04-16 Renlin Li <renlin.li@arm.com>
21558
21559 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21560 simplifications for UNSIGNED_FLOAT.
21561
21562 2015-04-16 Nick Clifton <nickc@redhat.com>
21563
21564 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21565 MUL_UNINIT.
21566 (enum rl78_cpu_type): New.
21567 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21568 (umulhi3_shift_virt): Remove m constraint from operand 1.
21569 (umulqihi3_virt): Likewise.
21570 * config/rl78/rl78.c (rl78_option_override): Add code to process
21571 -mcpu and -mmul options.
21572 (rl78_alloc_physical_registers): Add code to handle divhi and
21573 divsi valloc attributes.
21574 (set_origin): Likewise.
21575 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21576 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21577 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21578 __RL78_Gxx__.
21579 (ASM_SPEC): Pass -mcpu on to assembler.
21580 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21581 (mulqi3_rl78): Likewise.
21582 (mulhi3_g13): Likewise.
21583 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21584 (mulsi3): Likewise.
21585 (mulhi3_g14): Add clobbers of AX and BC.
21586 (mulsi3_g14): Likewise.
21587 (mulsi3_g13): Likewise.
21588 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21589 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21590 * config/rl78/rl78.opt (mmul): Initialise value to
21591 RL78_MUL_UNINIT.
21592 (mcpu): New option.
21593 (m13, m14, mrl78): New option aliases.
21594 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21595 (MULTILIB_DIRNAMES): Add g13 and g14.
21596 * doc/invoke.texi: Document -mcpu and -mmul options.
21597
21598 2015-04-16 Richard Biener <rguenther@suse.de>
21599
21600 * tree-ssa-ccp.c (likely_value): See if we have operands that
21601 are marked as never simulate again and return CONSTANT in this
21602 case.
21603 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21604 not have any operands that will be simulated again as
21605 not being simulated again.
21606
21607 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21608
21609 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21610 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21611 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21612 attribute.
21613 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21614 enabled attribute.
21615 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21616 *float<SWI48:mode><MODEF:mode>2_sse.
21617 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21618 enabled attribute.
21619 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21620 enabled attribute.
21621
21622 2015-04-15 Tom de Vries <tom@codesourcery.com>
21623
21624 PR other/65487
21625 * function.c (push_dummy_function): New function.
21626 (init_dummy_function_start): Use push_dummy_function.
21627 (pop_dummy_function): New function. Factored out of ...
21628 (expand_dummy_function_end): ... here.
21629 * function.h (push_dummy_function, pop_dummy_function): Declare.
21630 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21631 pop_dummy_function.
21632 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21633
21634 2015-04-15 Jeff Law <law@redhat.com>
21635
21636 PR tree-optimization/47679
21637 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21638 need for forward declaration in upcoming changes.
21639 (record_conditions, record_edge_info): Likewise.
21640
21641 PR rtl-optimization/42522
21642 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21643 SIGN_EXTRACT as a whole object rather than simplifying
21644 its operand.
21645
21646 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21647
21648 PR ipa/65765
21649 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21650 and GIMPLE_PREDICT use break instead of return true. For
21651 GIMPLE_EH_DISPATCH, compare dispatch region.
21652
21653 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21654
21655 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21656 details about the implementation. Make clear preference for
21657 __atomic builtins. Reduce possibility of future change.
21658
21659 2015-04-15 Nick Clifton <nickc@redhat.com>
21660
21661 * config/rx/rx.opt (mallow-string-insns): New option.
21662 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21663 builtin if string instructions are denied.
21664 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21665 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21666 appropriate.
21667 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21668 * config/rx/rx.md (movstr): Enable pattern only if string
21669 instructions are allowed.
21670 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21671 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21672 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21673 (MULTILIB_DIRNAMES): Add no-strings.
21674 * doc/invoke.texi: Document -mno-allow-string-insns.
21675
21676 2015-04-15 Alan Modra <amodra@gmail.com>
21677
21678 PR target/65408
21679 PR target/58744
21680 PR middle-end/36043
21681 * calls.c (load_register_parameters): Don't load past end of
21682 mem unless suitably aligned.
21683
21684 2015-04-15 Nick Clifton <nickc@redhat.com>
21685
21686 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21687 decrement instruction as being frame related.
21688 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21689 based addresses.
21690 If zero extending a function address enclose the operation in
21691 %code(...).
21692 (rl78_preferred_reload_class): New function.
21693 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21694 * config/rl78/rl78.md: Remove useless constraints in expanders.
21695 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21696 (mulhi3_rl78): Likewise.
21697 (mulhi3_g13): Likewise.
21698 (mulsi3_rl78): Likewise.
21699 (es_addr): Move to before the multiply patterns.
21700
21701 2015-04-15 Alan Modra <amodra@gmail.com>
21702
21703 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21704 and sequence_stack. Add seq.
21705 (seq_stack): Delete.
21706 * function.c (prepare_function_start): Don't access x_last_insn.
21707 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21708 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21709 * emit_rtl.c (start_sequence, push_topmost_sequence,
21710 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21711 sequence accessors.
21712 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21713 remove_insn): Likewise. Simplify.
21714 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21715 and pop_topmost_sequence.
21716 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21717 debug insns.
21718 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21719
21720 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21721
21722 PR target/65729
21723 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21724 the assertiion.
21725
21726 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21727
21728 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21729 (LEGACY_INT_REGNO_P): Ditto.
21730 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21731 (ANY_MASK_REG_P): Remove.
21732 (BND_REG_P): Rename from ANY_BND_REG_P.
21733 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21734 legacy integer registers. Do not handle MMX_REG_P in a special way.
21735 Merge 64byte and 32byte SSE handling.
21736
21737 2015-04-14 Nick Clifton <nickc@redhat.com>
21738
21739 * expr.c (expand_assignment): Force an address offset computation
21740 into a register before changing its mode.
21741 (expand_expr_real_1): Likewise.
21742
21743 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21744
21745 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21746 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21747 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21748 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21749 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21750 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21751 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21752 and __aarch64_vget_lane_any.
21753
21754 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21755
21756 PR rtl-optimization/65761
21757 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21758 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21759
21760 2015-04-14 Richard Biener <rguenther@suse.de>
21761
21762 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21763 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21764
21765 2015-04-14 Richard Biener <rguenther@suse.de>
21766
21767 PR tree-optimization/65758
21768 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21769 against -1.
21770 (ccp_lattice_meet): Likewise.
21771 (bit_value_unop): Likewise.
21772 (bit_value_binop): Likewise.
21773 (bit_value_assume_aligned): Likewise.
21774
21775 2015-04-14 Christian Bruel <christian.bruel@st.com>
21776
21777 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21778 function.
21779
21780 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21781
21782 PR tree-optimization/63387
21783 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21784 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21785
21786 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21787
21788 * config/i386/predicates.md (any_QIreg_operand): Rename from
21789 q_regs_operand. Do not process subregs.
21790 (QIreg_operand): Use QI_REGNO_P predicate.
21791 (ext_QIreg_operand): Ditto.
21792 (ext_register_operand): Ditto.
21793 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21794 (AND splitters): Ditto.
21795 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21796 (AND with -256 splitter): Use any_QIreg_operand predicate and
21797 SWI248 mode for operand 0.
21798 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21799 mode for operand 0.
21800 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21801
21802 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21803
21804 * doc/plugins.texi: Rewrite first introductory paragraph.
21805
21806 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21807
21808 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21809 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21810
21811 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21812
21813 * ipa-profie.c (ipa_profile): Check number of parameters
21814 and possible polymorphic call targets before
21815 devirtualizing.
21816
21817 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21818
21819 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21820 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21821
21822 2015-04-13 Richard Biener <rguenther@suse.de>
21823
21824 PR tree-optimization/65204
21825 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21826 takens for bit-CCP.
21827
21828 2015-04-13 Richard Biener <rguenther@suse.de>
21829
21830 PR target/65660
21831 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21832 and cond_not_taken_branch_cost to 4 and 2.
21833 (bdver2_cost): Likewise.
21834 (bdver3_cost): Likewise.
21835 (bdver4_cost): Likewise.
21836
21837 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21838
21839 * hash-table.h (hash_table constructor): Add mem stats.
21840 (alloc_entries): Likewise.
21841
21842 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21843
21844 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21845 * passes.c (execute_one_pass): Only add transform if pass has one.
21846
21847 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21848
21849 * config/i386/i386.c (ix86_option_override_internal): Don't set
21850 -fprefetch-loop-arrays if optimizing for size.
21851
21852 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21853 Gerald Pfeifer <gerald@pfeifer.com>
21854
21855 * doc/contrib.texi (Contributors): Add Martin Jambor and
21856 Michael Matz.
21857
21858 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21859
21860 * BASE-VER: Set to 6.0.0.
21861
21862 PR tree-optimization/65747
21863 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21864 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21865
21866 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21867
21868 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21869 sentence. Improve grammar.
21870
21871 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21872
21873 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21874
21875 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21876
21877 PR ipa/65743
21878 * ipa-inline-transform.c (speculation_removed): Remove static var.
21879 (check_speculations): New function.
21880 (clone_inlined_nodes): Do not check spculations.
21881 (inline_call): Call check_speculations.
21882 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21883 consider non-invariants.
21884
21885 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21886 Martin Liska <mliska@suse.cz>
21887
21888 PR ipa/65722
21889 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21890 variable can not match.
21891 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21892 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21893
21894 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21895
21896 PR tree-optimization/65735
21897 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21898 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21899 same bb rather than just into the same phi node.
21900 (thread_through_normal_block): Adjust caller.
21901
21902 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21903
21904 * doc/contrib.texi (Contributors): Add Ira Rosen.
21905
21906 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21907
21908 * gcov.c (find_source): Fix miswording in error message.
21909 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21910 (ix86_expand_sse_comi_round): Fix typo in error message.
21911
21912 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21913
21914 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21915
21916 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21917
21918 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21919
21920 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21921
21922 PR target/65710
21923 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21924 Print bad_spills_num and insn_pseudos_num.
21925
21926 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21927
21928 PR target/65694
21929 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21930 when creating +1 values for SImode.
21931
21932 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21933
21934 PR target/65729
21935 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21936 assert.
21937
21938 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21939 Iain Sandoe <iain@codesourcery.com>
21940
21941 PR target/65351
21942 * configure: Regenerate.
21943
21944 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21945
21946 PR target/65671
21947 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21948
21949 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21950
21951 * doc/contrib.texi (Contributors): Add John Marino.
21952
21953 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21954
21955 PR tree-optimization/65709
21956 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21957 TREE_TYPE (TREE_TYPE (t)).
21958
21959 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21960
21961 PR target/65710
21962 * lra-int.h (lra_bad_spill_regno_start): New.
21963 * lra.c (lra_bad_spill_regno_start): New.
21964 (lra): Set up lra_bad_spill_regno_start. Set up
21965 lra_constraint_new_regno_start unconditionally.
21966 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21967 spill preferences.
21968
21969 2015-04-09 Marek Polacek <polacek@redhat.com>
21970 Jakub Jelinek <jakub@redhat.com>
21971
21972 PR middle-end/65554
21973 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21974 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21975 of STRIP_NOPS.
21976
21977 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21978
21979 PR rtl-optimization/65693
21980 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21981 #ifndef HAVE_cc0.
21982
21983 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21984
21985 PR target/65296
21986 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21987 device specs file if "device-specs%s" didn't resolve to a path.
21988
21989 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21990
21991 PR target/65676
21992 * config/i386/i386.c (fixup_modeless_constant): New.
21993 (ix86_expand_args_builtin): Fixup modeless constant operand.
21994 (ix86_expand_round_builtin): Ditto.
21995 (ix86_expand_special_args_builtin): Ditto.
21996 (ix86_expand_builtin): Ditto.
21997
21998 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21999
22000 PR target/65693
22001 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22002 any pow2 integer in between 2 and 0x80000000U inclusive.
22003
22004 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
22005
22006 PR rtl-optimization/65693
22007 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22008 from an rtx_insn * to an rtx.
22009 (try_combine): Adjust both callers. Use it once more.
22010
22011 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22012
22013 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22014 (chkp_make_static_const_bounds): Search existing
22015 symbol by assembler name. Use make_decl_one_only.
22016 (chkp_get_zero_bounds_var): Remove node search which
22017 is now performed in chkp_make_static_const_bounds.
22018 (chkp_get_none_bounds_var): Likewise.
22019
22020 2015-04-08 Michael Witten <mfwitten@gmail.com>
22021
22022 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22023 to an example.
22024
22025 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22026
22027 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22028
22029 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22030
22031 * doc/extend.texi (__sync Builtins): Fix grammar.
22032
22033 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22034
22035 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22036
22037 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22038
22039 * varasm.c (emit_local): Move definition of align.
22040
22041 2015-04-08 Julian Brown <julian@codesourcery.com>
22042
22043 * config/nvptx/mkoffload.c (process): Support variable mapping.
22044
22045 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22046
22047 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22048 alpha_links **.
22049 (alpha_write_one_linkage): Correct typo.
22050
22051 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22052
22053 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22054
22055 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22056
22057 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22058
22059 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22060
22061 * tree-chkp.h (chkp_insert_retbnd_call): New.
22062 * tree-chkp.c (chkp_insert_retbnd_call): New.
22063 * ipa-split.c (insert_bndret_call_after): Remove.
22064 (split_function): Use chkp_insert_retbnd_call.
22065 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22066 bounds for instrumented functions.
22067
22068 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22069
22070 PR ipa/65540
22071 * calls.c (initialize_argument_information): When producing tail
22072 call also turn SSA_NAMES passed by references to original PARM_DECLs
22073
22074 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22075
22076 PR target/65648
22077 * lra-remat.c (do_remat): Process input and non-input insn
22078 registers separately.
22079
22080 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22081
22082 PR debug/65678
22083 * valtrack.c (debug_lowpart_subreg): New function.
22084 (dead_debug_insert_temp): Use it.
22085
22086 PR middle-end/65680
22087 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22088 into signed HOST_WIDE_INT the same as negative bit_offset.
22089
22090 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22091
22092 * ipa-comdats.c (ipa_comdats): Visit all thunks
22093 to set proper comdat group.
22094
22095 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22096
22097 PR target/65489
22098 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22099 on constants for NEON VSTRUCT modes.
22100
22101 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22102 Iain Sandoe <iain@codesourcery.com>
22103
22104 PR target/65351
22105 * configure: Regenerate.
22106
22107 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22108
22109 PR target/65614
22110 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22111 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22112 that LFD is used to load double constants instead of LFS. Add
22113 defaults for all costs structures. Add comments for missing
22114 initialization fields.
22115 (size32_cost): Likewise.
22116 (size64_cost): Likewise.
22117 (rs64a_cost): Likewise.
22118 (mpccore_cost): Likewise.
22119 (ppc403_cost): Likewise.
22120 (ppc405_cost): Likewise.
22121 (ppc440_cost): Likewise.
22122 (ppc476_cost): Likewise.
22123 (ppc601_cost): Likewise.
22124 (ppc603_cost): Likewise.
22125 (ppc604_cost): Likewise.
22126 (ppc604e_cost): Likewise.
22127 (ppc620_cost): Likewise.
22128 (ppc630_cost): Likewise.
22129 (ppccell_cost): Likewise.
22130 (ppc750_cost): Likewise.
22131 (ppc7450_cost): Likewise.
22132 (ppc8540_cost): Likewise.
22133 (ppce300c2c3_cost): Likewise.
22134 (ppce500mc_cost): Likewise.
22135 (ppce500mc64_cost): Likewise.
22136 (ppce5500_cost): Likewise.
22137 (ppce6500_cost): Likewise.
22138 (titan_cost): Likewise.
22139 (power4_cost): Likewise.
22140 (power6_cost): Likewise.
22141 (power7_cost): Likewise.
22142 (power8_cost): Likewise.
22143 (ppca2_cost): Likewise.
22144 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22145
22146 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22147 instead of XXLOR to copy SFmode to clear out dirty bits created
22148 when SFmode denormals are generated.
22149 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22150 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22151
22152 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22153
22154 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22155 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22156 * config/aarch64/aarch64-tune.md: Regenerate.
22157
22158 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22159
22160 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22161 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22162 * config/arm/arm-cores.def (exynos-m1): New core.
22163 * config/arm/arm-tune.md: Regenerate.
22164 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22165 * config/arm/bpabi.h: Likewise.
22166
22167 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22168
22169 * ipa-cp (set_single_call_flag): Remove too
22170 restrictive assert.
22171
22172 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22173
22174 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22175 GOMP_offload_unregister from the destructor.
22176
22177 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22178
22179 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22180 flags for instrumentation thunk.
22181 (chkp_produce_thunks): Likewise.
22182
22183 2015-04-05 Martin Liska <mliska@suse.cz>
22184
22185 PR ipa/65665
22186 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22187 has computed data structure.
22188 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22189
22190 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22191
22192 * invoke.texi (inline-unit-growth): Increase growth to 20%
22193 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22194
22195 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22196
22197 PR target/65647
22198 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22199 value checking.
22200 (lra_rematerialization_iter): New.
22201 * lra.c (lra): Initialize lra_rematerialization_iter.
22202 Stop updating lra_constraint_new_regno_start after switching of
22203 inheritance and rematerialization.
22204 * lra-remat.c (lra_rematerialization_iter): New.
22205 (lra_remat): Add printing pass iteration. Do rematerialization
22206 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22207
22208 2015-04-04 Richard Biener <rguenther@suse.de>
22209
22210 PR tree-optimization/64909
22211 PR tree-optimization/65660
22212 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22213 to take a cost vector for scalar iteration cost.
22214 (vect_get_single_scalar_iteration_cost): Likewise.
22215 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22216 Compute the scalar iteration cost into a cost vector.
22217 (vect_get_known_peeling_cost): Use the scalar cost vector to
22218 account for the cost of the peeled iterations.
22219 (vect_estimate_min_profitable_iters): Likewise.
22220 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22221 Likewise.
22222
22223 2015-04-04 Alan Modra <amodra@gmail.com>
22224
22225 PR target/65576
22226 PR target/65240
22227 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22228 0.0 constant unless TARGET_VSX.
22229 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22230 alternative.
22231
22232 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22233
22234 PR ipa/65654
22235 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22236 around the ICE
22237
22238 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22239
22240 PR ipa/65655
22241 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22242 speculative indirect edges to avoid ordering issue.
22243
22244 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22245
22246 PR ipa/65076
22247 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22248
22249 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22250
22251 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22252 TYPE_ARTIFICIAL on the .omp_data* types.
22253
22254 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22255
22256 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22257 instrumentation thunks.
22258
22259 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22260
22261 * config/i386/i386.c (ix86_expand_call): Avoid nested
22262 PARALLEL in returned call value.
22263
22264 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22265
22266 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22267 assembler name with original one.
22268
22269 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22270
22271 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22272
22273 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22274
22275 Revert parts of r216820.
22276 * config/i386/i386.md (movqi_internal): Correct type calculation
22277 for alternatives 3 and 5.
22278
22279 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22280
22281 PR preprocessor/61977
22282 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22283 predefine __vector/__bool/__pixel macros nor context sensitive
22284 macros for CLK_ASM.
22285 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22286
22287 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22288
22289 * config/pa/pa.c (pa_output_move_double): Directly handle register
22290 indexed memory operand. Simplify handling of scaled register indexed
22291 memory operands.
22292
22293 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22294
22295 PR driver/65444
22296 * config/i386/linux-common.h (MPX_SPEC): New.
22297 (CHKP_SPEC): Add MPX_SPEC.
22298 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22299 possible issues with '-z bndplt' support in linker.
22300
22301 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22302
22303 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22304 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22305 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22306 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22307 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22308
22309 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22310
22311 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22312 (atomic_load<mode>): Change operand 0 predicate to
22313 nonimmediate_operand and fix up the destination when needed.
22314 Use UNSPEC_LDA.
22315 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22316 (atomic_store<mode>): Change operand 1 predicate to
22317 nonimmendate_operand and move the source to register when needed.
22318 Use UNSPEC_STA.
22319 (atomic_store<mode>_1): Use UNSPEC_STA.
22320 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22321 Fix moves from memory operand. Use UNSPEC_STA.
22322
22323 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22324
22325 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22326 not cross a MODESIZE boundary.
22327 (store_bit_field, extract_bit_field): Added assertions in the
22328 strict volatile bitfields code path.
22329
22330 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22331
22332 PR target/65624
22333 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22334 Increase args array size by one to avoid buffer overflow.
22335
22336 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22337
22338 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22339 split_part.
22340 * ipa-inline.c (edge_badness): Add wrapper penalty.
22341 (sum_callers): Move up.
22342 (inline_small_functions): Set single_caller.
22343 * ipa-inline.h (inline_summary): Add single_caller.
22344 * ipa-split.c (split_function): Set split_part.
22345 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22346 * cgraph.h (cgraph_node): Add split_part.
22347
22348 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22349
22350 PR target/58945
22351 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22352 Do not split operands 0 and operands 2 to halfmode.
22353 (atomic_compare_and_swap<mode>): Update for
22354 atomic_compare_and_swap<dwi>_doubleword changes.
22355
22356 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22357
22358 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22359 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22360 no caching is done.
22361
22362 2015-03-31 Martin Liska <mliska@suse.cz>
22363
22364 PR ipa/65557
22365 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22366 has already filled up function summary.
22367 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22368
22369 2015-03-31 Richard Biener <rguenther@suse.de>
22370
22371 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22372 of types.
22373
22374 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22375
22376 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22377 nested functions.
22378 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22379 (s390_asm_output_function_label): Adapt to new signature of
22380 s390_function_num_hotpatch_hw
22381 Optimise the code generating assembler output.
22382 Add comments to assembler file.
22383
22384 2015-03-31 Richard Biener <rguenther@suse.de>
22385
22386 PR middle-end/65626
22387 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22388 of the noreturn call so it is last and cleanup_control_flow_bb
22389 can do the CFG part.
22390
22391 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22392
22393 PR target/65531
22394 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22395 same_comdat_group for external symbols.
22396 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22397 infinite same_comdat_group traversal loop.
22398
22399 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22400
22401 PR plugins/61176
22402 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22403 automatically to $headers.
22404
22405 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22406
22407 PR ipa/65610
22408 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22409 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22410 function.
22411 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22412 Use it.
22413 * ipa-prop.c (param_type_may_change_p): Likewise.
22414 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22415 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22416 argument. Before inlining, preserve
22417 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22418 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22419 recursive calls.
22420 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22421
22422 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22423
22424 PR ipa/65076
22425 * ipa-inline.c (edge_badness): Base denominator on callee's
22426 grwoth squared.
22427
22428 2015-03-27 Martin Jambor <mjambor@suse.cz>
22429
22430 PR ipa/65478
22431 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22432 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22433 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22434 node_calling_single_call.
22435 * ipa-cp.c (count_callers): New function.
22436 (set_single_call_flag): Likewise.
22437 (initialize_node_lattices): Count callers and set single_flag_call if
22438 necessary.
22439 (incorporate_penalties): New function.
22440 (good_cloning_opportunity_p): Use it, dump new flags.
22441 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22442 * doc/invoke.texi (ipa-cp-recursion-penalty,
22443 ipa-cp-single-call-pentalty): Document.
22444
22445 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22446
22447 PR ipa/65588
22448 * symtab.c (symtab_node::get_partitioning_class): Register vars
22449 are duplicated.
22450 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22451 decls for non-symbols.
22452
22453 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22454
22455 PR target/65248
22456 * output.h (default_binds_local_p_2): New.
22457 * varasm.c (default_binds_local_p_2): Renamed to ...
22458 (default_binds_local_p_3): This. Don't return true on protected
22459 data symbol if protected data may be external.
22460 (default_binds_local_p): Use default_binds_local_p_3.
22461 (default_binds_local_p_1): Likewise.
22462 (default_binds_local_p_2): New.
22463 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22464 default_binds_local_p_2 if TARGET_MACHO is undefined.
22465
22466 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22467
22468 PR target/65593
22469 * config/i386/i386.c (legitimize_pic_address): If base
22470 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22471 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22472
22473 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22474
22475 PR target/65531
22476 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22477 comdat groups.
22478
22479 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22480
22481 PR ipa/65600
22482 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22483 of optimized out indirect call.
22484 (redirect_to_unreachable): Always build symbol table node for
22485 BUILT_IN_UNREACHABLE
22486
22487 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22488
22489 PR target/65407
22490 * ira-costs.c (record_reg_classes): Process all constraint string
22491 containing 0-9.
22492
22493 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22494
22495 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22496 memory_operand.
22497
22498 PR target/65052
22499 * config/c6x/constraints.md (S3): New constraint.
22500 * config/c6x/c6x.md (real_jump): Use it.
22501
22502 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22503
22504 PR middle-end/65595
22505 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22506 do redirection if the call is not optimized out.
22507
22508 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22509
22510 PR target/65495
22511 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22512 (fchkp-check-incomplete-type): Add LTO.
22513 (fchkp-zero-input-bounds-for-main): Likewise.
22514 (fchkp-first-field-has-own-bounds): Likewise.
22515 (fchkp-narrow-bounds): Likewise.
22516 (fchkp-narrow-to-innermost-array): Likewise.
22517 (fchkp-use-static-bounds): Likewise.
22518 (fchkp-use-static-const-bounds): Likewise.
22519 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22520
22521 2015-03-27 Marek Polacek <polacek@redhat.com>
22522
22523 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22524
22525 2015-03-27 Marek Polacek <polacek@redhat.com>
22526
22527 PR sanitizer/65583
22528 * ubsan.c (ubsan_create_edge): New function.
22529 (instrument_bool_enum_load): Call it.
22530 (instrument_nonnull_arg): Likewise.
22531 (instrument_nonnull_return): Likewise.
22532 (instrument_object_size): Likewise.
22533
22534 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22535
22536 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22537 auto_vec.
22538
22539 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22540
22541 PR lto/65536
22542 * lto-streamer.h (class lto_location_cache): New.
22543 (struct data_in): Add location_cache.
22544 (lto_input_location): Update prototype.
22545 (stream_input_location_now): New.
22546 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22547 pointer to location.
22548 (stream_input_location): Update.
22549 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22550 (warn_odr): Apply location cache before warning.
22551 (lto_input_location): Update prototype.
22552 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22553 Use stream_input_location_now.
22554 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22555 variable.
22556 (lto_location_cache::cmp_loc): New function.
22557 (lto_location_cache::apply_location_cache): New function.
22558 (lto_location_cache::accept_location_cache): New function.
22559 (lto_location_cache::revert_location_cache): New function.
22560 (lto_location_cache::input_location): New function.
22561 (lto_input_location): Do location caching.
22562 (stream_input_location_now): New function.
22563 (input_eh_region, input_struct_function_base): Use
22564 stream_input_location_now.
22565 (lto_data_in_create): use new.
22566 (lto_data_in_delete): Use delete.
22567 * tree-streamer-in.c (unpack_ts_block_value_fields,
22568 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22569 lto_input_ts_exp_tree_pointers): Update for cached location api.
22570
22571 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22572
22573 PR ipa/65076
22574 * passes.def: Add pass_nothrow.
22575 * ipa-pure-const.c: (pass_data_nothrow): New.
22576 (pass_nothrow): New.
22577 (pass_nothrow::execute): New.
22578 (make_pass_nothrow): New.
22579 * tree-pass.h (make_pass_nothrow): Declare.
22580
22581 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22582
22583 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22584 edge to change by speculation resolution or redirection.
22585 (edge_set_predicate): Likewise.
22586 (inline_summary_t::duplicate): Likewise.
22587 (remap_edge_summaries): Likewise.
22588
22589 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22590
22591 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22592 New macros.
22593 (can_inline_edge_p): Relax option matching for always inline functions.
22594
22595 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22596
22597 PR target/65561
22598 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22599 Check operand 4 and operand 0 for equality.
22600 (avx512f_vextract<shuffletype>32x4_1_maskm):
22601 Check operand 6 and operand 0 for equality.
22602 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22603 for equality.
22604 (vec_extract_hi_<mode>_maskm): Ditto.
22605
22606 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22607
22608 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22609 dead calls back to live.
22610 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22611 cross check to ...
22612 (cgraph_node::verify_node): ... here; verify only callee edges,
22613 not caller.
22614 * cif-code.def (CILK_SPAWN): New code.
22615
22616 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22617
22618 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22619 (edge_set_predicate): Use it to mark unreachable edges.
22620 (inline_summary_t::duplicate): Remove unnecesary code.
22621 (remap_edge_summaries): Likewise.
22622 (dump_inline_summary): Report contains_cilk_spawn.
22623 (compute_inline_parameters): Compute contains_cilk_spawn.
22624 (inline_read_section, inline_write_summary): Stream
22625 contains_cilk_spawn.
22626 * ipa-inline.c (can_inline_edge_p): Do not touch
22627 DECL_STRUCT_FUNCTION that may not be available;
22628 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22629 remove check for callee_fun->can_throw_non_call_exceptions and
22630 replace it by optimization attribute check; check for flag_exceptions.
22631 * ipa-inline-transform.c (inline_call): Maintain
22632 DECL_FUNCTION_PERSONALITY
22633 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22634
22635 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22636
22637 PR tree-optimization/65551
22638 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22639 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22640
22641 2015-03-26 Richard Biener <rguenther@suse.de>
22642
22643 PR middle-end/65555
22644 * tree-cfg.c (verify_gimple_call): Do not require a call to
22645 have no LHS if it wasn't recognized as control altering yet.
22646
22647 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22648
22649 PR tree-optimization/64715
22650 * passes.def: Add another instance of pass_object_sizes before ccp1.
22651 * tree-object-size.c (pass_object_sizes::execute): In
22652 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22653 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22654 __bos result and the computed constant. Remove redundant
22655 checks, obsoleted by gimple_call_builtin_p test.
22656
22657 * var-tracking.c (variable_tracking_main_1): Don't track
22658 variables for targetm.no_register_allocation targets.
22659
22660 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22661
22662 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22663 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22664
22665 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22666
22667 PR target/65569
22668 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22669 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22670 0.0 is correctly setup.
22671 (extenddftf2_internal): Likewise.
22672
22673 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22674
22675 PR tree-optimization/65177
22676 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22677 (bb_in_bbs): New.
22678 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22679 edges not adjacent on the path to the original code.
22680
22681 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22682
22683 PR bootstrap/65537
22684 * doc/install.texi (Building a native compiler): Document new
22685 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22686 configuration assumes that the host supports the linker plugin.
22687
22688 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22689
22690 PR target/65508
22691 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22692 chain for generated call.
22693
22694 2015-03-25 Richard Biener <rguenther@suse.de>
22695
22696 * passes.c (pass_manager::execute_early_local_passes): Guard
22697 execution of pass_chkp_instrumentation_passes with
22698 flag_check_pointer_bounds.
22699 (pass_chkp_instrumentation_passes::gate): Likewise.
22700
22701 2015-03-25 Martin Liska <mliska@suse.cz>
22702
22703 PR tree-optimization/65538
22704 * symbol-summary.h (function_summary::~function_summary):
22705 Relese memory for allocated summaries.
22706 (function_summary::release): New function.
22707
22708 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22709
22710 PR lto/65515
22711 * lto-streamer-out.c (DFS::worklist): New struct.
22712 (DFS::worklist_vec): New data member.
22713 (DFS::next_dfs_num): Remove.
22714 (DFS::DFS): Rewritten using worklist instead of recursion,
22715 using most of code from DFS::DFS_write_tree.
22716 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22717 pass it to DFS_write_tree calls.
22718 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22719 quick initial checks push it into worklist_vec and return.
22720
22721 2015-03-25 Richard Biener <rguenther@suse.de>
22722
22723 PR middle-end/65519
22724 * genmatch.c (expr::gen_transform): Re-write to avoid
22725 using gimple_build.
22726
22727 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22728
22729 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22730
22731 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22732
22733 * config/arm/arm.opt (print_tune_info): New option.
22734 * config/arm/arm.c (arm_print_tune_info): New function.
22735 (arm_file_start): Call arm_print_tune_info.
22736 * config/arm/arm-protos.h (struct tune_params): Add comment.
22737 * doc/invoke.texi (@item -mprint-tune-info): New item.
22738 (-mtune): mention it in ARM Option Summary.
22739
22740 2015-03-25 DJ Delorie <dj@redhat.com>
22741
22742 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22743 correct clause.
22744
22745 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22746 Martin Liska <mliska@suse.cz>
22747
22748 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22749 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22750 (sem_item::add_type): New function.
22751 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22752 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22753 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22754 (sem_function::equals_wpa): Fix typo.
22755 * ipa-icf.h (sem_item::add_type): New function.
22756 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22757 order.
22758
22759 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22760
22761 PR tree-optimization/65533
22762 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22763 with swapped operands, call vect_free_slp_tree on
22764 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22765 vector.
22766
22767 2015-03-24 Richard Biener <rguenther@suse.de>
22768
22769 PR middle-end/65517
22770 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22771 for fixup if necessary.
22772
22773 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22774
22775 * doc/extend.texi (Function Attributes): Add @cindex entries
22776 for all attributes and regularize their format. Delete text
22777 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22778 information about "eightbit_data", "tiny_data", and "model"
22779 variable attributes to the Variable Attributes section. Fix
22780 some obvious typos and copy-editing issues.
22781 (Variable Attributes, Type Attributes): Likewise add/fix
22782 @cindex entries for all attributes.
22783
22784 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22785
22786 PR target/65523
22787 * tree-chkp.c (chkp_build_returned_bound): Ignore
22788 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22789
22790 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22791
22792 PR target/65505
22793 * config/sh/predicates.md (simple_mem_operand,
22794 displacement_mem_operand): Add test for reg.
22795 (short_displacement_mem_operand): Test for displacement_mem_operand
22796 before invoking sh_disp_addr_displacement.
22797 * config/sh/constraints.md (Sdd, Sra): Simplify.
22798 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22799 Remove redundant displacement_mem_operand tests.
22800
22801 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22802
22803 PR target/65296
22804 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22805 the same -mmcu=MCU more than once.
22806
22807 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22808
22809 PR bootstrap/65522
22810 * ipa-devirt.c: Remove duplicate demangle.h include.
22811
22812 PR target/65504
22813 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22814 on the pseudo.
22815 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22816 REG_POINTER on *destptr after adjusting it for prologue size.
22817
22818 PR ipa/65521
22819 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22820 ultimate_alias_target ()->order ints instead of
22821 ultimate_alias_target () pointers.
22822
22823 2015-03-23 Richard Biener <rguenther@suse.de>
22824
22825 PR tree-optimization/65518
22826 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22827 interleaving cases we generate absymal code for.
22828
22829 2015-03-23 Richard Biener <rguenther@suse.de>
22830
22831 PR tree-optimization/65494
22832 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22833 matches here.
22834 (vect_analyze_slp_instance): But do that here, always and once.
22835
22836 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22837
22838 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22839 adding T or multiplying by T+1 and subracting T.
22840
22841 2015-03-22 Jeff Law <law@redhat.com>
22842
22843 PR rtl-optimization/64317
22844 * Makefile.in (OBJS): Add gcse-common.c
22845 * gcse.c: Include gcse-common.h
22846 (struct modify_pair_s): Move structure definition to gcse-common.h
22847 (compute_transp): Move function to gcse-common.c.
22848 (canon_list_insert): Similarly.
22849 (record_last_mem_set_info): Break out some code and put it into
22850 gcse-common.c. Call into the new common code.
22851 (compute_local_properties): Pass additional arguments to compute_transp.
22852 * postreload-gcse.c: Include gcse-common.h and df.h
22853 (modify_mem_list_set, blocks_with_calls): New variables.
22854 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22855 (get_bb_avail_insn): Pass in the expression index too.
22856 (alloc_mem): Allocate memory for the new bitmaps and lists.
22857 (free_mem): Free memory for the new bitmaps and lists.
22858 (insert_expr_in_table): Record a bitmap index for each entry we
22859 add to the table.
22860 (record_last_mem_set_info): Call into common code in gcse-common.c.
22861 (get_bb_avail_insn): If no available insn was found in the requested
22862 BB. If BB has a single predecessor, see if the expression is
22863 transparent in BB and available in that single predecessor.
22864 (compute_expr_transp): New wrapper for compute_transp.
22865 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22866 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22867 (gcse_after_reload_main): If there are elements in the hash table,
22868 then compute transparency for all the elements in the hash table.
22869 * gcse-common.h: New file.
22870 * gcse-common.c: New file.
22871
22872 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22873
22874 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22875 as an adjective.
22876 (System Headers): Likewise.
22877 (Ifdef): Likewise.
22878 (Traditional macros): Likewise.
22879 (Invocation): Likewise.
22880 (Option Index): Likewise.
22881 * doc/cppopts.texi (-M): Likewise.
22882 (-finput-charset): Likewise.
22883 (--help): Likewise.
22884 * doc.invoke.texi (AVR Options): Likewise.
22885 (V850 Options): Likewise.
22886
22887 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22888
22889 PR ipa/65475
22890 * ipa-devirt.c: Include demangle.h
22891 (odr_type_d): Add field rtti_broken.
22892 (odr_subtypes_equivalent_p): Do not require name to match.
22893 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22894 bypass the tests; be ready for function referneces in vtables that are
22895 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22896 (warn_odr): Give up for nameless types.
22897 (warn_types_mismatch): Report mismatch in mangled names;
22898 report mismatch in anonymous namespaces; look into component types to
22899 give useful error; report when mismatch is dragged in from other ODR
22900 type.
22901 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22902 duplicated diagnostics.
22903 (add_type_duplicate): Reorder checks so more informative ones come
22904 first; fix typo; do not output "the extra base is defined here" when
22905 we did not warn.
22906 (BINFO_N_BASE_BINFOS): Relax sanity check.
22907
22908 2015-03-22 Martin Liska <mliska@suse.cz>
22909 Jakub Jelinek <jakub@redhat.com>
22910
22911 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22912 masks that can potentially include a builtin.
22913 (ix86_add_new_builtins): Introduce fast filter for isa values
22914 that cannot trigger builtin inclusion.
22915
22916 2015-03-22 Martin Liska <mliska@suse.cz>
22917
22918 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22919 (sem_item::update_hash_by_local_refs): Likewise.
22920 (sem_variable::get_hash): Empty line is fixed.
22921 (sem_item_optimizer::execute): Include adding of hash references.
22922 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22923 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22924 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22925 (sem_item::update_hash_by_local_refs): Likewise.
22926
22927 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22928
22929 PR ipa/65502
22930 * ipa-comdats.c (enqueue_references): Walk through thunks.
22931 (ipa_comdats): Likewise.
22932 (set_comdat_group_1): New function.
22933
22934 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22935
22936 PR ipa/65475
22937 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22938 non-polymorphic
22939
22940 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22941 Gerald Pfeifer <gerald@pfeifer.com>
22942
22943 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22944
22945 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22946 Sandra Loosemore <sandra@codesourcery.com>
22947
22948 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22949 function parameter declaration.
22950 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22951 Update arguments to nios2_adjust_call_address().
22952 (sibcall_internal): Rename from *sibcall.
22953 (sibcall_value_internal): Rename from *sibcall_value.
22954 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22955 (nios2_large_got_address): Add target temp reg parameter.
22956 (nios2_got_address): Adjust call to nios2_large_got_address, add
22957 force_reg around it.
22958 (nios2_load_pic_address): Add target temp reg parameter, replace call
22959 to nios2_got_address with corresponding code.
22960 (nios2_legitimize_constant_address): Update call to
22961 nios2_load_pic_address.
22962 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22963 to use temp reg for PIC loading purposes.
22964 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22965 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22966 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22967
22968 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22969
22970 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22971 usage of "the @option{...}".
22972 (-Wopenmp-simd): Likewise.
22973 (-fsanitize-recover): Likewise.
22974 (-fsanitize-undefined-trap-on-error): Likewise.
22975 (-flto): Likewise.
22976 (tracer-dynamic-coverage-feedback): Likewise.
22977 (reorder-block-duplicate-feedback): Likewise.
22978 (loop-unroll-jam-size): Likewise.
22979 (-B): Likewise.
22980 (-I-): Likewise.
22981 (-mabs=legacy): Likewise.
22982 (-mupper-regs-df): Likewise.
22983 (-mupper-regs-sf): Likewise.
22984 (-mpointers-to-nested-functions): Likewise.
22985
22986 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22987
22988 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22989
22990 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22991
22992 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22993 additional index entries and cross-references.
22994 (-fchkp-check-incomplete-type): Likewise.
22995 (-fchkp-first-field-has-own-bounds): Likewise.
22996 (-fchkp-narrow-to-innermost-array): Likewise.
22997 (-fchkp-use-fast-string-functions): Likewise.
22998 (-fchkp-use-nochk-string-functions): Likewise.
22999 (-fchkp-use-static-const-bounds): Likewise.
23000 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23001 (-fchkp-instrument-marked-only): Likewise.
23002 (-fchkp-use-wrappers): Likewise.
23003 (-static-libmpx): Likewise.
23004 (-static-libmpxwrappers): Likewise.
23005 * doc/extend.texi (bnd_legacy): Likewise.
23006 (bnd_instrument): Likewise.
23007 (bnd_variable_size): Likewise.
23008 (Pointer Bounds Checker builtins): Likewise.
23009
23010 2015-03-21 Tom de Vries <tom@codesourcery.com>
23011
23012 PR tree-optimization/65458
23013 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23014 * cgraph.h (cgraph_node): Add parallelized_function field.
23015 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23016 (input_overwrite_node): Read parallelized_function field.
23017 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23018 parallelized_function on cgraph_node for child_fn.
23019 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23020 Remove include of gt-tree-parloops.h.
23021 (parallelized_functions): Remove static variable.
23022 (parallelized_function_p): Rewrite using parallelized_function field of
23023 cgraph_node.
23024 (create_loop_fn): Remove adding to parallelized_functions.
23025 * Makefile.in (GTFILES): Remove tree-parloops.c
23026
23027 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23028
23029 PR rtl-optimization/64366
23030 * lra.c (lra_update_insn_regno_info): Consider regs in
23031 CALL_INSN_FUNCTION_USAGE memory.
23032
23033 2015-03-20 Richard Biener <rguenther@suse.de>
23034
23035 PR middle-end/64715
23036 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23037 for type comparison and gcc_checking_assert.
23038 (chrec_fold_plus_poly_poly): Likewise.
23039 (chrec_fold_multiply_poly_poly): Likewise.
23040 (chrec_convert_1): Likewise.
23041 * gimplify.c (gimplify_expr): Remove premature folding of
23042 &X + CST to &MEM[&X, CST].
23043
23044 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23045
23046 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23047 already is final.
23048 (ipa_inline): Recompute inline_failed codes.
23049 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23050 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23051 CIF_FINAL_ERROR.
23052
23053 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23054
23055 PR rtl-optimization/60851
23056 * recog.c (constrain_operands): Accept a pseudo register before reload
23057 for LRA enabled targets.
23058
23059 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23060
23061 PR target/65240
23062 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23063 -ffast-math handling that kept non-0 constants live in the RTL
23064 until reload. Remove logic testing the number of instructions it
23065 took to create a constant in a GPR that was never used, due to a
23066 test for soft-float earlier.
23067 (memory_fp_constant): Delete, no longer used.
23068
23069 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23070 alternatives for loading non-0 constants into GPRs for hard
23071 floating point that is no longer needed due to changes in
23072 easy_fp_constant. Add support for loading 0.0 into GPRs.
23073 (mov<mode>_hardfloat32): Likewise.
23074 (mov<mode>_hardfloat64): Likewise.
23075 (mov<mode>_64bit_dm): Likewise.
23076 (movtd_64bit_nodm): Likewise.
23077 (pre-reload move FP constant define_split): Delete define_split,
23078 since it is no longer used.
23079 (extenddftf2_internal): Remove GHF constraints that are not valid
23080 for extenddftf2.
23081
23082 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23083
23084 PR rtl-optimization/63491
23085 * lra-constraints.c (check_and_process_move): Use src instead of
23086 sreg. Remove some dead code.
23087
23088 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23089
23090 PR ipa/65380
23091 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23092 (sem_variable::merge): Likewise.
23093
23094 2015-03-19 Martin Liska <mliska@suse.cz>
23095
23096 PR ipa/65465
23097 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23098 all fields of cgraph_thunk_info.
23099
23100 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23101
23102 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23103 clone instrumented thunks.
23104
23105 2015-03-19 Richard Biener <rguenther@suse.de>
23106
23107 Revert
23108 2015-03-10 Richard Biener <rguenther@suse.de>
23109
23110 PR middle-end/63155
23111 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23112 * tree-ssa-coalesce.c: Include timevar.h.
23113 (attempt_coalesce): Handle graph being NULL.
23114 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23115 Split out abnormal coalescing to ...
23116 (perform_abnormal_coalescing): ... this function.
23117 (coalesce_ssa_name): Perform abnormal coalescing without computing
23118 live/conflict.
23119 (verify_ssa_coalescing_worker): New function.
23120 (verify_ssa_coalescing): Likewise.
23121
23122 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23123 Jakub Jelinek <jakub@redhat.com>
23124
23125 PR sanitizer/65400
23126 * tsan.c (instrument_gimple): Clear tail call flag on
23127 calls.
23128
23129 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23130
23131 PR sanitizer/65400
23132 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23133 call in the return bb.
23134 (find_split_points): Add RETURN_BB argument, don't call
23135 find_return_bb.
23136 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23137 if true append TSAN_FUNC_EXIT internal call after the call to
23138 the split off function.
23139 (execute_split_functions): Call find_return_bb here.
23140 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23141 Adjust find_split_points and split_function calls.
23142
23143 2015-03-18 DJ Delorie <dj@redhat.com>
23144
23145 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23146 (iorqi3_virt): Likewise.
23147
23148 2015-03-18 Tom de Vries <tom@codesourcery.com>
23149
23150 * tree-parloops.c (parallelize_loops): Make static.
23151 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23152
23153 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23154
23155 PR middle-end/64491
23156 Revert:
23157 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23158
23159 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23160 condition would be removed due to undefined behaviour.
23161
23162 2015-03-18 Martin Liska <mliska@suse.cz>
23163
23164 PR ipa/65432
23165 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23166 xstrdup_for_dump wrapper.
23167 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23168 sem_item::name.
23169 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23170 with xstrdup_for_dump.
23171 (sem_variable::equals): Likewise.
23172 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23173 sem_item::name.
23174 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23175 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23176 symtab_node::asm_name with xstrdup_for_dump.
23177 (congruence_class::dump): Use symtab_node::name instead of
23178 sem_item::name.
23179 * ipa-icf.h (symtab_node::name): Remove.
23180 (symtab_node::asm_name): Likewise.
23181
23182 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23183
23184 PR tree-optimization/65450
23185 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23186 function.
23187 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23188 it instead of duplicate_ssa_name_ptr_info.
23189
23190 PR target/65222
23191 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23192
23193 2015-03-18 Richard Biener <rguenther@suse.de>
23194
23195 * tree-data-ref.h (struct access_matrix): Remove.
23196 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23197 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23198 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23199 (am_vector_index_for_loop): Likewise.
23200 (struct data_reference): Remove access_matrix member.
23201 (DR_ACCESS_MATRIX): Remove.
23202 (lambda_vector_new): Add comment.
23203 (lambda_matrix_new): Use XOBNEWVEC.
23204
23205 2015-03-18 Richard Biener <rguenther@suse.de>
23206
23207 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23208 (pass_ch::execute): Cleanup the CFG only if we did sth.
23209 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23210
23211 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23212
23213 * expmed.c (synth_mult): Use std::swap instead of manually
23214 swapping algorithms.
23215
23216 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23217
23218 PR target/65078
23219 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23220
23221 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23222
23223 PR target/65296
23224 * config/avr/avr.opt (-nodevicelib): New option.
23225 * doc/invoke.texi (AVR Options): Document it.
23226 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23227 libgcc.a, libc.a, libm.a.
23228 * config/avr/specs.h: Same.
23229 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23230 which don't (directly) depend on the device. Print more help.
23231 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23232 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23233 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23234 case of an error.
23235 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23236 for specs file name.
23237 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23238 * config/avr/avr-mcus.def: Adjust initializers and comments.
23239
23240 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23241
23242 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23243 DECL_ONE_ONLY to check if decl is one only.
23244 * ipa-split.c (consider_split): Limit splitt of one only functions.
23245
23246 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23247
23248 PR tree-optimization/65427
23249 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23250 functions.
23251 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23252
23253 2015-03-16 Marek Polacek <polacek@redhat.com>
23254
23255 * cgraph.h (add_new_static_var): Remove declaration.
23256 * varpool.c (add_new_static_var): Remove function.
23257
23258 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23259
23260 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23261 instead of vec<tree> * with vec_alloc and release for args.
23262 Adjust all users.
23263
23264 PR middle-end/65431
23265 * omp-low.c (delete_omp_context): Only splay_tree_delete
23266 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23267 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23268
23269 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23270
23271 PR sanitizer/64820
23272 * cfgexpand.c (align_base): New function.
23273 (alloc_stack_frame_space): Call it.
23274 (expand_stack_vars): Align prev_frame to be sure
23275 data->asan_vec elements aligned properly.
23276
23277 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23278
23279 PR middle-end/65409
23280 * expr.c (store_field): Do not do a direct block copy if the source is
23281 a PARALLEL with BLKmode.
23282
23283 2015-03-16 Tom de Vries <tom@codesourcery.com>
23284
23285 PR middle-end/65414
23286 Revert:
23287 2015-03-12 Tom de Vries <tom@codesourcery.com>
23288
23289 PR rtl-optimization/64895
23290 * lra-lives.c (check_pseudos_live_through_calls): Use
23291 actual_call_used_reg_set instead of call_used_reg_set, if available.
23292
23293 2015-03-16 Alan Modra <amodra@gmail.com>
23294
23295 PR target/63150
23296 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23297 Modify Z->r bswapdi splitter to use dest in place of scratch.
23298 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23299 to word1, word2 and rearrange logic to suit.
23300 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23301 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23302 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23303 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23304 early clobber.
23305
23306 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23307
23308 PR tree-optimization/65369
23309 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23310 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23311 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23312
23313 PR tree-optimization/65418
23314 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23315 are casts in the first PLUS_EXPR operand, ensure tbias and
23316 *totallowp are in the inner type.
23317
23318 PR rtl-optimization/65401
23319 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23320 argument. If true, adjust_address_nv of x with big-endian
23321 correction for the mode widening to GET_MODE (y).
23322 (make_field_assignment): Don't do MEM mode widening here.
23323 Use MEM_P instead of GET_CODE == MEM.
23324
23325 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23326
23327 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23328 the external decls.
23329
23330 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23331
23332 PR target/64600
23333 * config/arm/arm.c (arm_gen_constant, AND case): Use
23334 ARM_SIGN_EXTEND when constructing AND mask.
23335
23336 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23337
23338 * graph.c (print_graph_cfg): Make function names visible and append
23339 parenthesis to it. Also make groups of basic blocks belonging to the
23340 same function visible.
23341
23342 2015-03-12 Richard Biener <rguenther@suse.de>
23343
23344 PR middle-end/44563
23345 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23346 to avoid quadratic behavior with inline expansion splitting blocks.
23347 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23348 with the successor if the predecessor will be merged with it.
23349 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23350 entry block with its successor.
23351
23352 2015-03-13 Richard Biener <rguenther@suse.de>
23353
23354 PR middle-end/44563
23355 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23356 (cleanup_tree_cfg_1): Do not call it.
23357 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23358 (fixup_noreturn_call): Mark the stmt as control altering.
23359 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23360 here.
23361 (pass_data_fixup_cfg): Produce a dump file.
23362 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23363 (need_noreturn_fixup): New global.
23364 (pass_dominator::execute): Fixup queued noreturn calls.
23365 (optimize_stmt): Queue calls that became noreturn for fixup.
23366 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23367 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23368 (el_to_fixup): New global.
23369 (eliminate_dom_walker::before_dom_childre): Queue calls that
23370 became noreturn for fixup.
23371 (eliminate): Fixup queued noreturn calls.
23372 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23373 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23374 (substitute_and_fold_dom_walker::before_dom_children): Queue
23375 alls that became noreturn for fixup.
23376 (substitute_and_fold): Fixup queued noreturn calls.
23377
23378 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23379
23380 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23381 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23382 are building; for methods check ODR type of class they belong to if
23383 they may lead to a polymorphic call.
23384 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23385 when function may lead to a polymorphic call.
23386 (sem_function::compare_type_list): Remove.
23387 (sem_variable::equals): Update use of compatible_types_p.
23388 (sem_variable::parse_tree_refs): Remove.
23389 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23390 cdtor.
23391 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23392 matching here.
23393 (func_checker::compatible_polymorphic_types_p): Break out from ...
23394 (unc_checker::compatible_types_p): ... here.
23395 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23396 Declare.
23397 (unc_checker::compatible_types_p): Update.
23398 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23399 Remove.
23400
23401 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23402
23403 PR rtl-optimization/65235
23404 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23405 When first element of vec_concat is const_int, calculate its size
23406 using second element.
23407
23408 2015-03-12 Richard Biener <rguenther@suse.de>
23409
23410 PR middle-end/65270
23411 * fold-const.c (operand_equal_p): Fix ordering of resetting
23412 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23413
23414 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23415
23416 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23417 to s390_reorg ().
23418 (s390_asm_output_function_label): Likewise.
23419 * config/s390/s390.c (s390_asm_output_function_label):
23420 Fix function label alignment with -mhtopatch.
23421 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23422 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23423 ("nop_2_byte"): New define_insn.
23424 ("nop_4_byte"): Likewise.
23425 ("nop_6_byte"): Likewise.
23426 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23427 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23428
23429 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23430
23431 PR target/65103
23432 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23433 register.
23434
23435 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23436
23437 PR target/65044
23438 * toplev.c (process_options): Restrict Pointer Bounds Checker
23439 usage with Address Sanitizer.
23440
23441 2015-03-12 Richard Biener <rguenther@suse.de>
23442
23443 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23444 to split on.
23445 * omp-low.c (expand_omp_taskreg): Split block before removing
23446 the stmt.
23447 (expand_omp_target): Likewise.
23448 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23449 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23450 stmt to split_block.
23451
23452 2015-03-12 Tom de Vries <tom@codesourcery.com>
23453
23454 PR rtl-optimization/64895
23455 * lra-lives.c (check_pseudos_live_through_calls): Use
23456 actual_call_used_reg_set instead of call_used_reg_set, if available.
23457
23458 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23459
23460 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23461 (cgraph_node::remove): Likewise.
23462 (cgraph_node::get_untransformed_body): Likewise.
23463 * varpool.c (varpool_node::remove): Likewise.
23464 (varpool_node::get_constructor): Add sanity check.
23465
23466 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23467
23468 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23469 old GCC versions.
23470 (-fabi-compat-version): Likewise.
23471 (-ffriend-injection): Likewise.
23472 (-Wdeclaration-after-statement): Likewise.
23473 (-fomit-frame-pointer): Likewise.
23474 (-ftree-coalesce-inlined-vars): Likewise.
23475 (-fvisibility=): Likewise.
23476 * doc/extend.texi (Typeof): Likewise.
23477 (Zero Length): Likewise.
23478 (Escaped Newlines): Likewise.
23479 (Compound Literals): Likewise.
23480 (Function Attributes): Likewise.
23481 (Label Attributes): Likewise.
23482 (Type Attributes): Likewise.
23483 (Function Names): Likewise.
23484 (Other Builtins): Likewise.
23485 (Function Specific Option Pragmas): Likewise.
23486 (C++ Interface): Likewise.
23487
23488 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23489
23490 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23491
23492 2015-03-11 Marek Polacek <polacek@redhat.com>
23493
23494 PR tree-optimization/65388
23495 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23496
23497 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23498
23499 PR target/65296
23500 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23501 * configure: Regenerate.
23502 * config.in: Regenerate.
23503 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23504 [-mn-flash]: Document it.
23505 [__AVR_ARCH__]: Document avrtiny.
23506
23507 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23508 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23509 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23510
23511 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23512
23513 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23514
23515 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23516
23517 PR target/65242
23518 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23519 allow reloads of PLUS in floating point/VSX registers.
23520
23521 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23522
23523 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23524 crypto_sha256_fast.
23525 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23526
23527 2015-03-11 Richard Biener <rguenther@suse.de>
23528
23529 PR tree-optimization/65310
23530 * tree-sra.c (build_ref_for_offset): Also preserve larger
23531 alignment.
23532
23533 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23534
23535 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23536
23537 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23538
23539 PR target/65368
23540 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23541 new define_expand.
23542 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23543
23544 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23545
23546 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23547 (sem_function::equals_wpa): ... here.
23548
23549 2015-03-10 Marek Polacek <polacek@redhat.com>
23550 Jakub Jelinek <jakub@redhat.com>
23551
23552 PR sanitizer/65367
23553 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23554 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23555 separately.
23556
23557 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23558
23559 PR target/65286
23560 * config/rs6000/t-linux: For powerpc64* target set
23561 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23562
23563 2015-03-10 Richard Biener <rguenther@suse.de>
23564
23565 PR middle-end/44563
23566 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23567 for redirect_all_calls.
23568
23569 2015-03-10 Marek Polacek <polacek@redhat.com>
23570
23571 * gdbinit.in (pcfun): Define and document.
23572
23573 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23574
23575 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23576 of libgomp-plugin.h.
23577 (find_target_compiler): Support a case when the path to gcc is
23578 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23579 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23580 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23581 libgomp-plugin.h.
23582 (main): Use GCC_INSTALL_NAME as target_driver_name.
23583 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23584 define.
23585 (mkoffload.o): Remove obsolete include path and defines.
23586 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23587
23588 2015-03-10 Richard Biener <rguenther@suse.de>
23589
23590 PR middle-end/63155
23591 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23592 * tree-ssa-coalesce.c: Include timevar.h.
23593 (attempt_coalesce): Handle graph being NULL.
23594 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23595 Split out abnormal coalescing to ...
23596 (perform_abnormal_coalescing): ... this function.
23597 (coalesce_ssa_name): Perform abnormal coalescing without computing
23598 live/conflict.
23599 (verify_ssa_coalescing_worker): New function.
23600 (verify_ssa_coalescing): Likewise.
23601
23602 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23603
23604 PR target/65296
23605 * config.gcc (extra_options) [avr]: Remove.
23606 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23607 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23608 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23609
23610 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23611 (-mmcu=): Add Var and MissingArgError properties.
23612 (-march=): Remove.
23613 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23614 * config/avr/t-multilib: Regenerate.
23615 * config/avr/specs.h: New file.
23616 * config/avr/driver-avr.c: New file.
23617 * config/avr/genopt.sh: Remove file.
23618 * config/avr/avr-tables.opt: Remove file.
23619 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23620 * config/avr/avr-c.c: Same.
23621 * avr-arch.h: Same.
23622 (avr_current_device): Remove proto.
23623 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23624 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23625 (EXTRA_SPEC_FUNCTIONS): Define.
23626 (avr_devicespecs_file): New specs function proto.
23627 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23628 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23629 (avr_current_device): Remove definition and usage.
23630 (avr_set_core_architecture): New static function.
23631 (avr_option_override): Use it.
23632 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23633 (mcu_name): New static array.
23634 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23635 (avr_inform_devices, avr_inform_core_architectures): New functions.
23636 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23637 (avrlibc.h) [WITH_AVRLIBC]: Include.
23638 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23639 (print_mcu): Rewrite from scratch.
23640 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23641 Forward to avr-specific specs defined in device-specs file.
23642 * config/avr/t-avr (driver-avr.o): New rule.
23643 (avr-devices.o): Depend on avr-arch.h.
23644 (avr-mcus): No more depend on avr-tables.opt.
23645 (avr-tables.opt): Remove rule.
23646 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23647
23648 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23649
23650 * c-family/c.opt (fchkp-use-wrappers): New.
23651 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23652 (chkp_wrap_function): New.
23653 (chkp_build_instrumented_fndecl): Support wrapped
23654 functions.
23655 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23656 (-fchkp-check-incomplete-type): New.
23657 (-fchkp-first-field-has-own-bounds): New.
23658 (-fchkp-narrow-bounds): New.
23659 (-fchkp-narrow-to-innermost-array): New.
23660 (-fchkp-optimize): New.
23661 (-fchkp-use-fast-string-functions): New.
23662 (-fchkp-use-nochk-string-functions): New.
23663 (-fchkp-use-static-bounds): New.
23664 (-fchkp-use-static-const-bounds): New.
23665 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23666 (-fchkp-check-read): New.
23667 (-fchkp-check-write): New.
23668 (-fchkp-store-bounds): New.
23669 (-fchkp-instrument-calls): New.
23670 (-fchkp-instrument-marked-only): New.
23671 (-fchkp-use-wrappers): New.
23672 (-static-libmpx): New.
23673 (-static-libmpxwrappers): New.
23674
23675 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23676
23677 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23678 (CHKP_SPEC): Add wrappers library.
23679 * c-family/c.opt (static-libmpxwrappers): New.
23680
23681 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23682
23683 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23684 (LIBMPX_SPEC): New.
23685 (CHKP_SPEC): New.
23686 * gcc.c (CHKP_SPEC): New.
23687 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23688 * c-family/c.opt (static-libmpx): New.
23689
23690 2015-03-10 Richard Biener <rguenther@suse.de>
23691
23692 PR middle-end/44563
23693 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23694 for compare_type.
23695 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23696 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23697 (cgraph_add_edge_to_call_site_hash): Likewise.
23698 (cgraph_node::get_edge): Likewise.
23699 (cgraph_edge::set_call_stmt): Likewise.
23700 (cgraph_edge::remove_caller): Likewise.
23701
23702 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23703
23704 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23705 (callee_saved_gpr_regs_size): ... this.
23706 (callee_saved_regs_first_regno): Rename to ...
23707 (callee_saved_first_gpr_regno): ... this.
23708 (callee_saved_regs_last_regno) Rename to ...
23709 (callee_saved_last_gpr_regno): ... this.
23710 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23711 variables.
23712 (nds32_initial_elimination_offset): Likewise.
23713 (nds32_expand_prologue): Likewise.
23714 (nds32_expand_epilogue): Likewise.
23715 (nds32_expand_prologue_v3push): Likewise.
23716 (nds32_expand_epilogue_v3pop): Likewise.
23717 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23718 Adjust renamed variables.
23719 (nds32_output_stack_pop): Likewise.
23720
23721 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23722
23723 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23724 code in comment.
23725
23726 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23727
23728 PR rtl-optimization/65321
23729 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23730 than shift mode.
23731 * var-tracking.c (use_narrower_mode): Likewise.
23732
23733 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23734
23735 PR tree-optimization/65355
23736 * varasm.c (notice_global_symbol): Do not produce RTL.
23737 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23738 anchor.
23739 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23740 check for section anchors.
23741
23742 2015-03-10 Alan Modra <amodra@gmail.com>
23743
23744 PR target/65286
23745 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23746 to be single-arch by default. Set cpu_is_64bit for powerpc64
23747 given --with-cpu=native.
23748 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23749 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23750 and powerpc64le.
23751 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23752 rs6000_isa_flags rather than TARGET_64BIT.
23753
23754 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23755 Kaz Kojima <kkojima@gcc.gnu.org>
23756
23757 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23758
23759 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23760
23761 PR lto/65361
23762 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23763 on a TREE_BINFO, instead use BINFO_TYPE.
23764
23765 2015-03-09 Richard Biener <rguenther@suse.de>
23766
23767 PR middle-end/65270
23768 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23769 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23770 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23771 of that. When comparing dereferences compare alignment.
23772 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23773
23774 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23775
23776 * ipa-inline-analysis.c (check_callers): Check
23777 node->can_remove_if_no_direct_calls_and_refs_p.
23778 (growth_likely_positive): Reorganize to call
23779 can_remove_if_no_direct_calls_p later.
23780 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23781 will_be_removed_from_program_if_no_direct_calls_p): Add
23782 will_inline parameter.
23783 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23784 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23785 Handle inliner case correctly.
23786
23787 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23788
23789 PR tree-optimization/63743
23790 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23791 had its definition forwarded by TER.
23792
23793 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23794
23795 PR lto/65316
23796 * ipa-utils.h (types_odr_comparable): Add strict argument.
23797 * ipa-devirt.c: Fix whitespace;
23798 (odr_hasher): Remove.
23799 (odr_name_hasher, odr_vtable_hasher): New hashers.
23800 (can_be_name_hashed_p): New predicate.
23801 (hash_type_name): remove.
23802 (hash_odr_name): New.
23803 (odr_name_hasher::hash): new.
23804 (can_be_vtable_hashed_p): New.
23805 (hash_odr_vtable): New.
23806 (odr_vtable_hasher::hash): New.
23807 (types_same_for_odr): Add strict parameter.
23808 (types_odr_comparable): Likewise.
23809 (odr_name_hasher::equal): New.
23810 (odr_vtable_hasher::equal): New.
23811 (odr_name_hasher::remove): New.
23812 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23813 (odr_vtable_hash_type): New.
23814 (odr_vtable_hash): New.
23815 (odr_subtypes_equivalent_p): Do strict comparsion.
23816 (add_type_duplicate): Merge type names; cleanup; avoid type
23817 duplicates.
23818 (register_odr_type): Initialize vtable hash.
23819 (build_type_inheritance_graph): Likewise
23820 (get_odr_type): Reorg to use two hashes.
23821 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23822 output.
23823 (ipa_devirt): Dump type_inheritance_graph.
23824 (types_same_for_odr): Add strict mode.
23825
23826 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23827
23828 PR ipa/65334
23829 * cgraph.h (symtab_node): Add definition_alignment,
23830 can_increase_alignment_p and increase_alignment.
23831 * symtab.c (symtab_node::can_increase_alignment_p,
23832 increase_alignment_1, symtab_node::increase_alignment,
23833 symtab_node::definition_alignment): New.
23834 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23835 can_increase_alignment_p.
23836 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23837 * tree-vect-stmts.c (ensure_base_align): Likewise.
23838 * varasm.c (function_section_1): Use definition_alignment.
23839 (assemble_start_function): Likewise.
23840 (emit_local): likewise.
23841 (build_constant_desc): Likewsie.
23842 (output_constant_def_contents): Likewise.
23843 (place_block_symbol): Likewise.
23844 (output_object_block): Likewise.
23845
23846 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23847
23848 PR ipa/65316
23849 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23850 when outputting debug.
23851
23852 2015-03-07 Marek Polacek <polacek@redhat.com>
23853 Martin Uecker <uecker@eecs.berkeley.edu>
23854
23855 PR sanitizer/65280
23856 * doc/invoke.texi: Update description of -fsanitize=bounds.
23857
23858 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23859
23860 * tree-ssa-phiopt.c (neg_replacement): Remove.
23861 (tree_ssa_phiopt_worker): Remove negate optimization.
23862
23863 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23864
23865 PR ipa/65302
23866 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23867
23868 2015-03-06 Richard Biener <rguenther@suse.de>
23869
23870 PR middle-end/64928
23871 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23872 and liveout_obstack members.
23873 (calculate_live_on_exit): Remove.
23874 (calculate_live_ranges): Change declaration.
23875 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23876 (new_tree_live_info): Adjust.
23877 (calculate_live_ranges): Delete livein when not wanted.
23878 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23879 Deal with partly deleted live info.
23880 (loe_visit_block): Remove temporary bitmap by using
23881 bitmap_ior_and_compl_into.
23882 (live_worklist): Adjust accordingly.
23883 (calculate_live_on_exit): Make static.
23884 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23885 we do not need livein.
23886
23887 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23888
23889 * real.c (real_from_string): Fix typo in assertion.
23890
23891 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23892
23893 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23894 the patch.
23895
23896 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23897
23898 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23899
23900 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23901
23902 PR target/64342
23903 * lra-assigns.c (find_hard_regno_for): Rename to
23904 find_hard_regno_for_1. Add a new parameter.
23905 (find_hard_regno_for): New function using find_hard_regno_for_1.
23906
23907 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23908
23909 PR rtl-optimization/65067
23910 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23911 strict volatile bitfield handling.
23912
23913 2015-03-05 Martin Liska <mliska@suse.cz>
23914
23915 PR ipa/65318
23916 * ipa-icf.c (sem_variable::equals): Compare variables types.
23917
23918 2015-03-05 Richard Henderson <rth@redhat.com>
23919
23920 PR target/65121
23921 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23922 correctly check weak symbol binding.
23923
23924 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23925
23926 PR middle-end/65315
23927 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23928 needed alignment.
23929
23930 2015-03-05 Martin Liska <mliska@suse.cz>
23931
23932 * ipa-inline.c (inline_small_functions): Set default value to
23933 prevent warning during bootstrap.
23934 * tree.h: Add pragma guard that ignores false positives during
23935 bootstrap.
23936
23937 2015-03-05 Richard Biener <rguenther@suse.de>
23938
23939 PR tree-optimization/65310
23940 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23941 Properly preserve alignment of the base of the access.
23942
23943 2015-03-05 Richard Biener <rguenther@suse.de>
23944
23945 PR ipa/65270
23946 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23947 Compare dependence info.
23948
23949 2015-03-05 Richard Biener <rguenther@suse.de>
23950
23951 PR middle-end/65233
23952 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23953 tree-into-ssa.h.
23954 (walk_ssa_copies): Revert last chage. Instead do not walk
23955 SSA names registered for SSA update.
23956
23957 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23958
23959 PR ipa/65270
23960 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23961 vtable references for their containing type.
23962 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23963 and type attributes.
23964
23965 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23966
23967 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23968 before negating it.
23969 * stor-layout.c (finalize_record_size): Revert latest change.
23970
23971 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23972
23973 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23974
23975 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23976
23977 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23978 for correct comdat handling.
23979 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23980 Likewise.
23981 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23982 (used_from_object_file_p_worker): Remove.
23983 (cgraph_node::only_called_directly_or_alised): Add
23984 used_from_object_file_p.
23985 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23986 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23987 can_remove_if_no_direct_calls_and_refs_p.
23988
23989 2015-03-04 Nick Clifton <nickc@redhat.com>
23990
23991 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23992 General register class.
23993 * config/rl78/rl78-real.md: Replace general register constraints
23994 with real+virtual register constraints.
23995
23996 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23997
23998 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23999 from checking for -mhtm option.
24000
24001 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24002
24003 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24004 (struct ipa_sra_check_caller_data): Add has_thunk field.
24005 (ipa_sra_check_caller): Check for thunk.
24006 (ipa_sra_preliminary_function_checks): Give up on function with
24007 thunks.
24008 (ipa_early_sra): Use call_for_symbol_and_aliases.
24009
24010 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24011
24012 PR target/65249
24013 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24014 called for __stack_chk_guard symbol.
24015
24016 2015-03-03 DJ Delorie <dj@redhat.com>
24017
24018 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24019 inc/dec.
24020 (*addhi3_real): Likewise.
24021 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24022 pattern to match incrementing memory.
24023 * config/rl78/predicates.md (rl78_1_2_operand): New.
24024 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24025 it's the same and only mem.
24026 (rl78_alloc_physical_registers_op2): If there's effectively only
24027 one MEM, transcode it into HL.
24028 (rl78_far_p): Reject addresses that aren't legitimate.
24029
24030 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24031
24032 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24033 negating it.
24034
24035 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24036
24037 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24038
24039 Implement call0 ABI for xtensa
24040 * config/xtensa/constraints.md ("a" constraint): Include stack
24041 pointer in case of call0 ABI.
24042 ("q" constraint): Make empty in case of call0 ABI.
24043 ("D" constraint): Include stack pointer in case of call0 ABI.
24044 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24045 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24046 prototypes.
24047 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24048 variable.
24049 (xtensa_regno_to_class): Make it a local variable in the
24050 function xtensa_regno_to_class.
24051 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24052 macro, function prototype and implementation.
24053 (reg_nonleaf_alloc_order): Make it a local variable in the
24054 function order_regs_for_local_alloc.
24055 (xtensa_conditional_register_usage): New function.
24056 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24057 (xtensa_valid_move): Allow direct moves to stack pointer
24058 register in call0 ABI.
24059 (xtensa_setup_frame_addresses): Only spill register windows in
24060 windowed ABI.
24061 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24062 call0 ABI respectively.
24063 (xtensa_function_arg_1): Only mark a7 register for copying in
24064 windowed ABI.
24065 (xtensa_call_save_reg): New function.
24066 (compute_frame_size): Add space for callee saved register
24067 storage to the frame size in call0 ABI.
24068 (xtensa_expand_prologue): Generate code to set up stack frame
24069 and save callee-saved registers in call0 ABI.
24070 (xtensa_expand_epilogue): New function.
24071 (xtensa_set_return_address): New function.
24072 (xtensa_return_addr): Calculate return address in call0 ABI.
24073 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24074 emit copying code in windowed ABI.
24075 (order_regs_for_local_alloc): Add preferred register allocation
24076 order for non-leaf function in call0 ABI.
24077 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24078 (xtensa_asm_trampoline_template): Add trampoline generation for
24079 call0 ABI.
24080 (xtensa_trampoline_init): Add trampoline initialization for
24081 call0 ABI.
24082 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24083 functions.
24084 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24085 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24086 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24087 ABI call-used registers.
24088 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24089 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24090 call0 ABI.
24091 (REG_CLASS_CONTENTS): Include all registers into the preferred
24092 reload registers set, adjust the set in the
24093 xtensa_conditional_register_usage.
24094 (xtensa_regno_to_class): Drop variable declaration.
24095 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24096 function.
24097 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24098 respectively.
24099 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24100 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24101 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24102 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24103 location in call0 ABI.
24104 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24105 stack adjustment size when handling exception.
24106 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24107 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24108 definitions.
24109 ("return" pattern): Generate ret.n/ret in call0 ABI.
24110 ("epilogue" pattern): Expand epilogue.
24111 ("nonlocal_goto" pattern): Use default in call0 ABI.
24112 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24113 emit eh_set_a0_* depending on ABI.
24114 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24115 ("eh_set_a0_call0", "blockage"): New patterns.
24116
24117 2015-03-03 Martin Liska <mliska@suse.cz>
24118
24119 PR ipa/65287
24120 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24121
24122 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24123
24124 PR 65138/target
24125 * config/rs6000/rs6000-tables.opt: Regenerate table.
24126
24127 2015-03-03 Renlin Li <renlin.li@arm.com>
24128
24129 * doc/md.texi (@item ^): Change ? into ^.
24130
24131 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24132
24133 * doc/tm.texi: Regenerated.
24134
24135 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24136
24137 * builtins.c (expand_builtin_return_addr): Add
24138 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24139 surrounding #ifdef.
24140 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24141 definition to 1.
24142 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24143 Likewise.
24144 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24145 undefined.
24146 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24147 paragraph.
24148
24149 2015-03-03 Martin Jambor <mjambor@suse.cz>
24150 Eric Botcazou <ebotcazou@adacore.com>
24151
24152 * tree-sra.c (ipa_sra_check_caller_data): New type.
24153 (has_caller_p): Removed.
24154 (ipa_sra_check_caller): New function.
24155 (ipa_sra_preliminary_function_checks): Use it.
24156
24157 2015-03-03 Martin Liska <mliska@suse.cz>
24158
24159 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24160 instead of if branch.
24161
24162 2015-03-03 Martin Liska <mliska@suse.cz>
24163
24164 PR ipa/65282
24165 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24166
24167 2015-03-23 Jeff Law <law@redhat.com>
24168
24169 PR tree-optimization/65241
24170 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24171 hash table if INSERT is true.
24172
24173 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24174
24175 PR target/65296
24176 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24177
24178 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24179
24180 PR target/64331
24181 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24182 (avr_pass_data_recompute_notes): New static variable.
24183 (avr_pass_recompute_notes): New class.
24184 (avr_register_passes): New static function.
24185 (avr_option_override): Call it.
24186
24187 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24188
24189 Fix various problems with specs file generation.
24190
24191 PR target/65296
24192 * config.gcc (extra_gcc_objs) [avr]: Remove.
24193 * config/avr/driver-avr.c: Remove file.
24194 * config/avr/t-avr (driver-avr.o): Remove rule.
24195 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24196 INCLUDES to build. Depend on TM_H.
24197 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24198 build warnings. Fix non-matching types and non-existing %-codes.
24199 (tm.h): Include.
24200 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24201 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24202 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24203 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24204 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24205 (LIBGCC_SPEC): Remove definitions.
24206
24207 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24208
24209 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24210 to create a register in testing mode.
24211
24212 2015-03-03 Martin Liska <mliska@suse.cz>
24213 Jan Hubicka <hubicka@ucw.cz>
24214
24215 PR ipa/65263
24216 * cgraph.c (cgraph_node::has_thunk_p): New function.
24217 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24218 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24219 (sem_function::merge): Assert is changed.
24220
24221 2015-03-03 Martin Liska <mliska@suse.cz>
24222 Martin Jambor <mjambor@suse.cz>
24223
24224 PR ipa/65087
24225 * ipa-icf.c (sem_item_optimizer::execute): Change function
24226 return value to boolean.
24227 (sem_item_optimizer::merge_classes): Likewise.
24228 (ipa_icf_driver): Return TODO_remove_functions in case there's
24229 a merge operation processed.
24230 * ipa-icf.h: Change function return value to boolean.
24231
24232 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24233
24234 PR 65138/target
24235 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24236 processor type for 64-bit little endian PowerPC.
24237
24238 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24239 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24240 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24241 printing built-in mask so it does not pass NULL pointers.
24242
24243 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24244 -mcpu=powerpc64le.
24245
24246 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24247
24248 PR target/58158
24249 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24250 !ISA_HAS_FP_CONDMOVE.
24251
24252 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24253
24254 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24255 reload_completed.
24256
24257 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24258
24259 * doc/invoke.texi (Options for Code Generation Conventions):
24260 Fix URL of DSO paper.
24261
24262 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24263
24264 PR ipa/65130
24265 * ipa-inline.c (check_callers): Looks for recursion.
24266 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24267 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24268 summary of inline clones.
24269 (do_estimate_growth_1): Fix recursion check.
24270
24271 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24272
24273 PR ipa/64988
24274 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24275 comdat groups.
24276
24277 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24278 Aldy Hernandez <aldyh@redhat.com>
24279
24280 PR lto/65276
24281 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24282 when checking TYPE_BINFO.
24283
24284 2015-03-02 Richard Biener <rguenther@suse.de>
24285
24286 PR ipa/65270
24287 * ipa-icf-gimple.c: Include builtins.h.
24288 (func_checker::compare_memory_operand): Compare base alignment.
24289
24290 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24291
24292 PR target/65184
24293 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24294 are never passed by reference.
24295
24296 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24297
24298 PR target/65183
24299 * tree-chkp.c (chkp_check_lower): Don't check against
24300 zero bounds for already instrumented functions.
24301 (chkp_check_upper): Likewise.
24302 (chkp_fini): Clean pass local data to avoid wrong reusage.
24303
24304 2015-02-28 Martin Liska <mliska@suse.cz>
24305 Jan Hubicka <hubicka@ucw.cz>
24306
24307 * ipa-icf.c (sem_variable::equals): Improve debug output;
24308 get variable constructor.
24309 (sem_variable::parse): Do not filter out too early; give up on
24310 volatile and register vars.
24311 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24312 variables.
24313 * ipa-icf.h (sem_variable::init): Do not set ctor.
24314 (sem_variable::ctor): Remove.
24315
24316 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24317
24318 PR middle-end/65233
24319 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24320
24321 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24322
24323 * ipa-icf.c: Include stor-layout.h
24324 (sem_function::compare_cgraph_references): Rename to ...
24325 (sem_item::compare_cgraph_references): ... this one.
24326 (sem_variable::equals_wpa): New function
24327 (sem_variable::equals): Do not check stuff already verified by
24328 equals_wpa.
24329 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24330 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24331 (sem_function): Remove compare_cgraph_references.
24332 (sem_variable): Turns equals_wpa into non-inline.
24333
24334 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24335
24336 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24337 (sem_item::add_expr): New function.
24338 (sem_function::hash_stmt): Handle operands of most statements.
24339 (sem_variable::get_hash): Hash the actual constructor.
24340 * ipa-icf.h (sem_item): Add add_expr.
24341 (sem_function): Update prototype of hash_stmt
24342
24343 2015-02-28 Martin Liska <mliska@suse.cz>
24344 Jan Hubicka <hubicka@ucw.cz>
24345
24346 PR ipa/65245
24347 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24348 Remove.
24349 (func_checker::compare_variable_decl): Skip symtab vars.
24350 (func_checker::compare_cst_or_decl): Update.
24351 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24352 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24353 use correct symtab predicates.
24354 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24355 (sem_variable::parse): Update comment.
24356 (sem_item_optimizer::build_graph): Consider ultimate aliases
24357 for references.
24358
24359 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24360
24361 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24362 of OBJ_TYPE_REF.
24363
24364 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24365
24366 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24367 (sem_variable::merge) Likewise.
24368
24369 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24370
24371 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24372 target; also match flag_ipa_devirt.
24373
24374 2015-03-01 Martin Liska <mliska@suse.cz>
24375 Jan Hubicka <hubicka@ucw.cz>
24376
24377 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24378 Validate variable alignment.
24379 * ipa-icf.c (sem_function::equals_private): Be more precise
24380 about non-common function attributes.
24381 (sem_variable::equals): Likewise.
24382
24383 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24384
24385 PR ipa/65237
24386 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24387 across COMDAT group boundary.
24388
24389 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24390
24391 PR ipa/65232
24392 * ipa-icf.c (clear_decl_rtl): New function.
24393 (sem_function::merge): Clear RTL before forming alias.
24394 (sem_variable::merge): Clear RTL before forming alias.
24395
24396 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24397
24398 PR ipa/65236
24399 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24400
24401 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24402
24403 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24404 to neon_to_gp<q>.
24405
24406 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24407
24408 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24409 a typo in the description.
24410
24411 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24412
24413 PR target/64317
24414 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24415 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24416 * lra-constraints.c: Include "params.h".
24417 (EBB_PROBABILITY_CUTOFF): Use
24418 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24419 (lra_inheritance): Use '<' instead of '<=' for
24420 EBB_PROBABILITY_CUTOFF.
24421 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24422 Document change.
24423
24424 2015-02-27 Martin Liska <mliska@suse.cz>
24425
24426 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24427 vector length condition.
24428
24429 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24430
24431 * doc/extend.texi (x86 transactional memory intrinsics):
24432 Reorganize discussion of _xbegin. Clarify that the return
24433 value is a bit mask. Expand example and move to end of section.
24434
24435 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24436 Aldy Hernandez <aldyh@redhat.com>
24437
24438 PR rtl-optimization/65220
24439 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24440
24441 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24442
24443 PR target/65032
24444 * lra-remat.c (update_scratch_ops): New.
24445 (do_remat): Call it.
24446 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24447 (remove_scratches): ... here.
24448 * lra-int.h (lra_register_new_scratch_op): New prototype.
24449
24450 2015-02-27 Marek Polacek <polacek@redhat.com>
24451
24452 PR c/65040
24453 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24454 -Wformat-signedness anymore.
24455
24456 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24457
24458 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24459 function.
24460 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24461
24462 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24463
24464 * config/s390/s390.c (enum s390_builtin):
24465 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24466 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24467 (s390_init_builtins): Generate new builtin functions.
24468 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24469 (s390_sfpc, s390_efpc): New pattern definitions.
24470
24471 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24472
24473 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24474 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24475 (s390_builtin_decls): New array.
24476 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24477 (s390_builtin_decl): New function.
24478 (TARGET_BUILTIN_DECL): Define macro.
24479
24480 2015-02-27 Richard Biener <rguenther@suse.de>
24481
24482 PR middle-end/63175
24483 * builtins.c (get_object_alignment_2): Make sure to re-apply
24484 the ANDed mask after recursing to its operand gets us a new
24485 misalignment bit position.
24486
24487 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24488 Martin Liska <mliska@suse.cz>
24489
24490 PR bootstrap/65150
24491 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24492 Use address_matters_p.
24493 (redirect_all_callers, set_addressable): New functions.
24494 (sem_function::merge): Reorganize and fix merging issues.
24495 (sem_variable::merge): Likewise.
24496 (sem_variable::compare_sections): Remove.
24497 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24498 Optimization flag.
24499 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24500 redirect them.
24501 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24502 decl is used.
24503 (address_matters_1): New function.
24504 (symtab_node::address_matters_p): New function.
24505 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24506 check for merged flag.
24507 * cgraph.h (address_matters_p): Declare.
24508 (symtab_node::address_taken_from_non_vtable_p): Remove.
24509 (symtab_node::address_can_be_compared_p): New method.
24510 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24511 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24512 Remove.
24513 (comdat_can_be_unshared_p_1) Use address_matters_p.
24514 (update_vtable_references): Fix formating.
24515 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24516 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24517 * cgraphclones.c: Preserve merged and icf_merged flags.
24518
24519 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24520
24521 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24522 (Label Attributes): Likewise.
24523 (Cilk Plus Builtins): Likewise.
24524 (ARC SIMD Built-in Functions): Likewise.
24525 (ARM C Language Extensions (ACLE)): Likewise.
24526 (PowerPC Built-in Functions): Likewise.
24527 (PowerPC Hardware Transactional Memory Built-in Functions):
24528 Likewise.
24529
24530 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24531
24532 PR tree-optimization/65216
24533 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24534 new stmt and new SSA_NAME for lhs whenever the arguments have
24535 changed and weren't just swapped. Fix comment typo.
24536
24537 PR tree-optimization/65215
24538 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24539 for PDP endian targets.
24540 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24541 Fix up formatting issues.
24542 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24543 size is smaller than the original, adjust MEM_REF offset by the
24544 difference of sizes. Use is_gimple_mem_ref_addr instead of
24545 is_gimple_min_invariant test to avoid adding address temporaries.
24546
24547 2015-02-26 Martin Liska <mliska@suse.cz>
24548 Jan Hubicka <hubicka@ucw.cz>
24549
24550 PR ipa/64693
24551 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24552 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24553 (sem_item_optimizer::process_cong_reduction): Include division by
24554 sensitive references.
24555 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24556 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24557 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24558
24559 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24560
24561 PR target/65192
24562 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24563 Remove.
24564 * config/avr/avr.c: Same.
24565 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24566 Refuse any constant address not in 0..0xbf.
24567 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24568 tiny_valid_direct_memory_access_range from insn conditions.
24569 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24570
24571 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24572
24573 PR target/61142
24574 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24575 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24576 * config/sh/predicates.md (const_logical_operand): New predicate.
24577 * config/sh/sh.md: Add new peephole2 patterns.
24578
24579 2015-02-26 Marek Polacek <polacek@redhat.com>
24580
24581 PR ipa/65008
24582 * ipa-inline.c (early_inliner): Recompute inline parameters.
24583
24584 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24585
24586 PR target/65171
24587 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24588 instructions with TImode operands are included in the analysis.
24589
24590 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24591
24592 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24593 of an EDGE_FSM_THREAD.
24594
24595 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24596
24597 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24598
24599 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24600
24601 PR debug/46102
24602 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24603
24604 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24605
24606 PR tree-optimization/65048
24607 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24608 (thread_through_all_blocks): Call valid_jump_thread_path.
24609 Remove invalid FSM jump-thread paths.
24610
24611 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24612
24613 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24614 (ipa_write_optimization_summaries): Likewise.
24615 * tree-streamer.h: Include data-streamer.h.
24616 (streamer_mode_table): Declare extern variable.
24617 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24618 * lto-streamer-out.c (lto_output_init_mode_table,
24619 lto_write_mode_table): New functions.
24620 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24621 offloading LTO.
24622 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24623 (lto_create_simple_input_block): Add mode_table argument to the
24624 lto_input_block constructors.
24625 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24626 Likewise.
24627 * data-streamer-in.c (string_for_index): Likewise.
24628 * ipa-inline-analysis.c (inline_read_section): Likewise.
24629 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24630 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24631 * lto-streamer-in.c (lto_read_body_or_constructor,
24632 lto_input_toplevel_asms): Likewise.
24633 (lto_input_mode_table): New function.
24634 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24635 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24636 Use bp_pack_machine_mode.
24637 * real.h (struct real_format): Add name field.
24638 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24639 (class lto_input_block): Add mode_table member.
24640 (lto_input_block::lto_input_block): Add mode_table_ argument,
24641 initialize mode_table.
24642 (struct lto_file_decl_data): Add mode_table field.
24643 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24644 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24645 unpack_ts_decl_common_value_fields,
24646 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24647 * tree-streamer.c (streamer_mode_table): New variable.
24648 * real.c (ieee_single_format, mips_single_format,
24649 motorola_single_format, spu_single_format, ieee_double_format,
24650 mips_double_format, motorola_double_format,
24651 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24652 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24653 ibm_extended_format, mips_extended_format, ieee_quad_format,
24654 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24655 decimal_single_format, decimal_double_format, decimal_quad_format,
24656 ieee_half_format, arm_half_format, real_internal_format): Add name
24657 field.
24658 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24659
24660 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24661
24662 PR target/65161
24663 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24664 reordering for selective scheduling.
24665
24666 2015-02-26 Terry Guo <terry.guo@arm.com>
24667
24668 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24669 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24670 (arm_arch_no_volatile_ce): Declare new global variable.
24671 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24672 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24673 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24674 (TARGET_NO_VOLATILE_CE): New macro.
24675 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24676 volatile memory access in IT block
24677
24678 2015-02-25 Kai Tietz <ktietz@redhat.com>
24679
24680 PR tree-optimization/61917
24681 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24682 that reduc_def_stmt is null.
24683
24684 2015-02-25 Martin Liska <mliska@suse.cz>
24685
24686 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24687 hard register variables.
24688
24689 2015-02-25 Kai Tietz <ktietz@redhat.com>
24690
24691 PR target/64212
24692 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24693 (symtab::noninterposable_alias): Likewise.
24694
24695 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24696
24697 PR target/65167
24698 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24699 bounds registers.
24700 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24701
24702 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24703
24704 PR target/64997
24705 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24706 as split condition; force split via '#' in output pattern.
24707
24708 2015-02-25 Richard Biener <rguenther@suse.de>
24709 Kai Tietz <ktietz@redhat.com>
24710
24711 PR tree-optimization/61917
24712 * tree-vect-loop.c (vectorizable_reduction): Allow
24713 vect_internal_def without reduction to exit graceful.
24714
24715 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24716
24717 PR target/65196
24718 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24719 only with NONDEBUG_INSN_P.
24720
24721 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24722
24723 Use variadic macros with avr-log.c.
24724
24725 * config/avr/avr-protos.h (avr_vdump): New prototype.
24726 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24727 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24728 * config/avr/avr-log.c: Adjust comments.
24729 (avr_vdump): New function.
24730 (avr_vadump): Pass caller as 2nd argument instead of format string.
24731 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24732 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24733
24734 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24735
24736 PR lto/64374
24737 * target.def (target_option_stream_in): New target hook.
24738 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24739 targetm.target_option.post_stream_in if non-NULL.
24740 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24741 * doc/tm.texi: Updated.
24742 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24743 function.
24744 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24745
24746 2015-02-24 Jeff Law <law@redhat.com>
24747
24748 PR target/65117
24749 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24750 of operand 0 and operand 2.
24751 (zero_cost_loop_end, loop_end): Similarly.
24752
24753 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24754
24755 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24756 CXX_MEM_STAT_INFO.
24757
24758 2015-02-24 DJ Delorie <dj@redhat.com>
24759
24760 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24761 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24762 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24763 instead of hardcoding SImode.
24764
24765 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24766
24767 * omp-low.c (create_omp_child_function): Tag entrypoint
24768 functions with a special attribute.
24769
24770 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24771
24772 PR target/65058
24773 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24774
24775 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24776
24777 PR rtl-optimization/65123
24778 * lra-remat.c (operand_to_remat): Check hard regs in insn
24779 definition too.
24780
24781 2015-02-24 Nick Clifton <nickc@redhat.com>
24782
24783 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24784 to the assembler.
24785
24786 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24787
24788 PR libgomp/64625
24789 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24790 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24791 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24792 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24793 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24794 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24795 (BUILT_IN_GOACC_PARALLEL): Specify as
24796 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24797 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24798 * builtin-types.def
24799 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24800 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24801 Remove function types.
24802 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24803 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24804 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24805 New function types.
24806
24807 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24808
24809 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24810
24811 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24812
24813 PR tree-optimization/65170
24814 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24815 if val[1] < 0, clear also val[2] and return 3.
24816
24817 2015-02-24 Alan Modra <amodra@gmail.com>
24818
24819 PR target/65172
24820 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24821 when *base is a reg. Handle nested plus addresses. Simplify
24822 pre_modify test.
24823
24824 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24825
24826 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24827 use natural alignment when optimizing for size.
24828
24829 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24830
24831 PR target/65153
24832 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24833 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24834 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24835
24836 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24837
24838 PR fortran/63427
24839 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24840 too big for a wide_int. Implement missing wrapping operation.
24841
24842 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24843
24844 PR target/65163
24845 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24846 instead of const_int 4294901760.
24847
24848 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24849
24850 * config/avr/t-avr: Fix typo in comment.
24851
24852 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24853
24854 * doc/rtl.texi (fma): Clarify documentation.
24855
24856 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24857
24858 PR debug/58123
24859 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24860 over input_location.
24861
24862 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24863
24864 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24865 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24866 restrict alignments to absolute_biggest_alignment.
24867 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24868 Define.
24869 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24870 * doc/tm.texi: Regenerate.
24871 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24872
24873 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24874
24875 PR target/64172
24876 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24877
24878 2015-02-20 Richard Biener <rguenther@suse.de>
24879
24880 PR tree-optimization/65136
24881 * tree-ssa-propagate.c: Include cfgloop.h.
24882 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24883 arguments with constants.
24884
24885 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24886 Martin Liska <mliska@suse.cz>
24887
24888 PR target/63892
24889 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24890 don't try to create_thunk if stdarg_p. If
24891 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24892 redirect_callers if possible.
24893 (sem_item_optimizer::execute): Call unregister_hooks here...
24894 (ipa_icf_driver): ... instead of here.
24895
24896 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24897
24898 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24899 Mark operand 0 as earlyclobber in 2nd alternative.
24900 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24901 Write negated shift amount into QI lowpart operand 0 and use it
24902 in the shift step.
24903 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24904
24905 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24906
24907 * cgraph.h (clone_function_name_1): Declare.
24908 * cgraphclones.c (clone_function_name_1): New function.
24909 (clone_function_name): Use it.
24910 * lto-partition.c: Include "stringpool.h".
24911 (must_not_rename, maybe_rewrite_identifier)
24912 (validize_symbol_for_target): New static functions.
24913 (privatize_symbol_name): Use must_not_rename.
24914 (promote_symbol): Call validize_symbol_for_target.
24915 (lto_promote_cross_file_statics): Likewise.
24916 (lto_promote_statics_nonwpa): Likewise.
24917
24918 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24919
24920 PR target/64452
24921 * config/avr/avr.md (pushhi_insn): New insn.
24922 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24923
24924 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24925 Jakub Jelinek <jakub@redhat.com>
24926
24927 * tree-streamer.c (preload_common_nodes): Don't preload
24928 TI_VA_LIST* for offloading.
24929 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24930 in_lto_p.
24931
24932 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24933
24934 * config/pa/pa.c (pa_emit_move_sequence): Always force
24935 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24936 note on insn.
24937
24938 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24939 (TARGET_ASM_RELOC_RW_MASK): Define.
24940 (pa_cannot_force_const_mem): Revert previous change.
24941
24942 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24943 Jan Hubicka <hubicka@ucw.cz>
24944
24945 PR ipa/65028
24946 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24947 across jump functions.
24948
24949 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24950
24951 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24952
24953 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24954
24955 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24956
24957 2015-02-19 Richard Henderson <rth@redhat.com>
24958
24959 PR middle-end/65074
24960 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24961 test DECL_EXTERNAL independent of symtab_node.
24962
24963 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24964
24965 PR lto/65012
24966 * varpool.c (varpool_node::get_constructor): Return early
24967 if this->lto_file_data is NULL.
24968
24969 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24970
24971 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24972 (rank_for_schedule_debug): Update.
24973 (ready_sort): Make static. Move sorting logic to ...
24974 (ready_sort_debug, ready_sort_real): New static functions.
24975 (schedule_block): Sort both debug insns and real insns in preparation
24976 for ready list trimming. Improve debug output.
24977 * sched-int.h (ready_sort): Remove global declaration.
24978
24979 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24980
24981 * ipa-icf.c (sem_function::equals_private): Adjust.
24982 (sem_function::bb_dict_test): Take a vec<int> * instead of
24983 auto_vec<int>.
24984 * ipa-icf.h (bb_dict_test): Likewise.
24985
24986 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24987
24988 PR gcov-profile/64634
24989 * tree-eh.c (frob_into_branch_around): Fix up typos
24990 in function comment.
24991 (lower_catch): Put eh_seq resulting from EH lowering of
24992 the cleanup sequence after the cleanup rather than before it.
24993
24994 2015-02-18 Tom de Vries <tom@codesourcery.com>
24995
24996 * common.opt (fstdarg-opt): New option.
24997 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24998 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24999 (@item -fstdarg-opt): New item.
25000
25001 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
25002
25003 PR target/65064
25004 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25005 for common symbols.
25006
25007 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25008
25009 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25010 insn-modes.h.
25011 (ALL_HOST_OBJS): Add mkoffload.o.
25012 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25013
25014 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25015
25016 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25017 (compare_virtual_tables): Be smarter about skipping typeinfos;
25018 do sane output on virtual table table mismatch.
25019 (warn_odr): Be ready for forward declarations of enums;
25020 output sane info on base mismatch and virtual table mismatch.
25021 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25022 when only one type is polymorphic.
25023 (get_odr_type): Fix hashtable corruption.
25024 (dump_odr_type): Dump mangled names.
25025
25026 2015-02-18 Richard Biener <rguenther@suse.de>
25027
25028 PR tree-optimization/65063
25029 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25030 have replaced looparound PHIs.
25031
25032 2015-02-18 Martin Liska <mliska@suse.cz>
25033
25034 * lto-streamer.c (lto_streamer_init): Encapsulate
25035 streamer_check_handled_ts_structures with checking macro.
25036
25037 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25038
25039 PR ipa/65087
25040 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25041 section if !implicit_section.
25042 (cgraph_node::create_version_clone_with_body): Likewise.
25043 * trans-mem.c (ipa_tm_create_version): Likewise.
25044
25045 2015-02-18 Richard Biener <rguenther@suse.de>
25046
25047 PR tree-optimization/62217
25048 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25049 into BIVs.
25050
25051 2015-02-18 Marek Polacek <polacek@redhat.com>
25052
25053 PR sanitizer/65081
25054 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25055 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25056 is in range [-16K, -1]. Don't issue run-time error if
25057 (ptr > ptr + offset).
25058
25059 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25060
25061 * doc/install.texi (nvptx-*-none): New section.
25062 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25063 * config/nvptx/nvptx.opt: Update.
25064
25065 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25066 (access_check): New functions, copied from
25067 config/i386/intelmic-mkoffload.c.
25068 (main): For non-installed testing, look in all COMPILER_PATHs for
25069 GCC_INSTALL_NAME.
25070
25071 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25072
25073 2015-02-18 Andrew Pinski <apinski@cavium.com>
25074 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25075
25076 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25077 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25078
25079 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25080
25081 * ipa-visibility.c (function_and_variable_visibility): Only
25082 check locality if node is not already local.
25083 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25084 call_for_symbol_and_aliases instead of
25085 call_for_symbol_thunks_and_aliases.
25086 (ipa_inline): Likewise.
25087 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25088 first walk aliases.
25089 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25090 call_for_symbol_and_aliases.
25091 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25092 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25093 (ipa_propagate_frequency): Update.
25094 (ipa_profile): Add opt_for_fn gueards.
25095
25096 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25097
25098 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25099 * doc/invoke.texi (SH options): Document it.
25100 * config/sh/sh.c (sh_insn_length_adjustment): Check
25101 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25102
25103 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25104
25105 * common.opt (fipa-cp-alignment): New.
25106 * ipa-cp.c (ipcp_store_alignment_results): Check
25107 flag_ipa_cp_alignment.
25108 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25109 -O2.
25110 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25111 * doc/invoke.texi: Document -fipa-cp-alignment.
25112
25113 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25114
25115 PR target/64793
25116 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25117 to nil. Adjust comments.
25118
25119 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25120
25121 * ipa-visibility.c (function_and_variable_visibility): Only
25122 check locality if node is not already local.
25123 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25124 call_for_symbol_and_aliases instead of
25125 call_for_symbol_thunks_and_aliases.
25126 (ipa_inline): Likewise.
25127 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25128 first walk aliases.
25129 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25130 call_for_symbol_and_aliases.
25131 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25132 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25133 (ipa_propagate_frequency): Update.
25134 (ipa_profile): Add opt_for_fn guards.
25135
25136 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25137
25138 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25139 skipping of "strange" tokens.
25140
25141 2015-02-17 Jeff Law <law@redhat.com>
25142
25143 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25144 obsolete comment.
25145
25146 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25147
25148 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25149 as forcing a HARD_DEP between instructions, thereby
25150 disallowing rewriting to break dependencies.
25151
25152 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25153
25154 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25155 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25156 variables in boundary that have no inlitalizer encoded and are
25157 not aliases.
25158 * varasm.c (default_binds_local_p_2): External definitions do not
25159 count as definitions here.
25160
25161 2015-02-16 Jeff Law <law@redhat.com>
25162
25163 PR tree-optimization/64823
25164 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25165 statements.
25166 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25167 threading through blocks with PHIs, but no statements.
25168 (thread_through_normal_block): Distinguish between blocks where
25169 we did not process all the statements and blocks with no statements.
25170
25171 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25172 James Greenhalgh <james.greenhalgh@arm.com>
25173
25174 PR ipa/64963
25175 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25176 section if not linkonce. Fix up formatting.
25177 (cgraph_node::create_version_clone_with_body): Copy section.
25178 * trans-mem.c (ipa_tm_create_version): Likewise.
25179
25180 2015-02-16 Richard Biener <rguenther@suse.de>
25181
25182 PR tree-optimization/65077
25183 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25184 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25185 (find_func_aliases): Allow float values to carry pointers again.
25186
25187 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25188
25189 * doc/install.texi (Specific): Reorder targets list to put
25190 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25191 from the top menu.
25192
25193 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25194 David Edelsohn <dje.gcc@gmail.com>
25195
25196 PR target/65058
25197 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25198 mapping class to external variable or function reference.
25199 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25200 mapping class.
25201
25202 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25203
25204 PR target/53348
25205 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25206 ASM_WEAKEN_DECL if defined.
25207
25208 2015-02-16 Richard Biener <rguenther@suse.de>
25209
25210 PR lto/65015
25211 * varasm.c (default_file_start): For LTO produced units
25212 emit <artificial> as file directive.
25213
25214 2015-02-16 Richard Biener <rguenther@suse.de>
25215
25216 PR tree-optimization/63593
25217 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25218 stmts and releasing SSA names until...
25219 (execute_pred_commoning): ... after processing all chains.
25220
25221 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25222
25223 PR ipa/65059
25224 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25225 external functions.
25226
25227 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25228
25229 * doc/bugreport.texi: Adjust section titles throughout the file
25230 to use "Title Case".
25231 * doc/extend.texi: Likewise.
25232 * doc/gcov.texi: Likewise.
25233 * doc/implement-c.texi: Likewise.
25234 * doc/implement-cxx.texi: Likewise.
25235 * doc/invoke.texi: Likewise.
25236 * doc/objc.texi: Likewise.
25237 * doc/standards.texi: Likewise.
25238 * doc/trouble.texi: Likewise.
25239
25240 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25241
25242 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25243 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25244 * tree.c (lookup_binfo_at_offset): Make static.
25245 (get_binfo_at_offset): Do not shadow offset; add explanatory
25246 comment.
25247
25248 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25249
25250 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25251 for all floading point loads and stores except those using a register
25252 index address.
25253 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25254 to a register.
25255
25256 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25257
25258 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25259 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25260 (estimate_growth): Handle uninlinable edges correctly.
25261 (check_callers): New.
25262 (growth_likely_positive): Handle aliases correctly.
25263
25264 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25265
25266 * ipa-chkp.c: Use iterate_direct_aliases.
25267 * symtab.c (resolution_used_from_other_file_p): Move inline.
25268 (symtab_node::create_reference): Fix formating.
25269 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25270 (symtab_node::iterate_reference): Move inline.
25271 (symtab_node::iterate_referring): Move inline.
25272 (symtab_node::iterate_direct_aliases): Move inline.
25273 (symtab_node::used_from_object_file_p_worker): Inline into ...
25274 (symtab_node::used_from_object_file_p): ... this one; move inline.
25275 (symtab_node::call_for_symbol_and_aliases): Move inline;
25276 use iterate_direct_aliases.
25277 (symtab_node::call_for_symbol_and_aliases_1): New method.
25278 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25279 use iterate_direct_aliases.
25280 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25281 (varpool_node::call_for_node_and_aliases): Rename to ...
25282 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25283 use iterate_direct_aliases.
25284 (varpool_node::call_for_symbol_and_aliases_1): New method.
25285 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25286 (ipa_discover_readonly_nonaddressable_var): Update.
25287 * ipa-devirt.c: Fix formating.
25288 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25289 Move inline.
25290 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25291 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25292 * cgraph.h (used_from_object_file_p_worker): Remove.
25293 (resolution_used_from_other_file_p): Move inline.
25294 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25295 (symtab_node::iterate_reference): Move inline.
25296 (symtab_node::iterate_referring): Move inline.
25297 (symtab_node::iterate_direct_aliases): Move inline.
25298 (symtab_node::used_from_object_file_p_worker): Inline into ...
25299 (symtab_node::used_from_object_file_p): Move inline.
25300 * tree-emutls.c (ipa_lower_emutls): Update.
25301 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25302 (varpool_node::call_for_node_and_aliases): Remove.
25303
25304 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25305
25306 PR tree-optimization/62209
25307 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25308 op == range->exp, insert seq and gimplified code after labels
25309 instead of after the phi.
25310
25311 2015-02-13 Jeff Law <law@redhat.com>
25312
25313 PR bootstrap/65060
25314 Revert my change for tree-optimization/64823.
25315
25316 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25317
25318 PR tree-optimization/65053
25319 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25320 cond, either reset VR on lhs or set it to phi result VR.
25321
25322 2015-02-13 Jeff Law <law@redhat.com>
25323
25324 PR tree-optimization/64823
25325 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25326 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25327 threading through blocks with PHIs, but no statements.
25328 (thread_through_normal_block): Distinguish between blocks where
25329 we did not process all the statements and blocks with no statements.
25330
25331 PR rtl-optimization/47477
25332 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25333 simplifier to narrow arithmetic.
25334
25335 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25336
25337 PR ipa/65028
25338 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25339 polymorphic call info when type is not known to be preserved.
25340
25341 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25342
25343 PR ipa/65028
25344 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25345 (inline_call): Use it.
25346
25347 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25348
25349 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25350 GOMP_DEVICE_NVIDIA_PTX.
25351
25352 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25353
25354 PR ipa/65034
25355 * stmt.c (emit_case_nodes): Use void_type_node instead of
25356 NULL_TREE as LABEL_DECL type.
25357
25358 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25359
25360 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25361 constraints.
25362 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25363 symbolic references to data to be forced to constant memory on the
25364 SOM target.
25365
25366 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25367
25368 PR tree-optimization/65002
25369 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25370 SSA on start.
25371 * tree-sra.c (some_callers_have_no_vuse_p): New.
25372 (ipa_early_sra): Reject functions whose callers
25373 assume function is read only.
25374
25375 2015-02-13 Richard Biener <rguenther@suse.de>
25376
25377 PR lto/65015
25378 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25379 for LTO produced CUs.
25380
25381 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25382
25383 PR tree-optimization/64705
25384 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25385 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25386 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25387 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25388 expand_simple_operations.
25389
25390 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25391 Richard Henderson <rth@redhat.com>
25392
25393 PR rtl/32219
25394 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25395 before notice_global_symbol.
25396 (varpool_node::finalize_decl): Likewise.
25397 * varasm.c (default_binds_local_p_2): Rename from
25398 default_binds_local_p_1, add weak_dominate argument. Use direct
25399 returns instead of assigning to local variable. Unify varpool and
25400 cgraph paths via symtab_node. Reject undef weak variables before
25401 testing visibility. Reorder tests for simplicity.
25402 (default_binds_local_p): Use default_binds_local_p_2.
25403 (default_binds_local_p_1): Likewise.
25404 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25405 via symtab_node.
25406 (default_elf_asm_output_external): Emit visibility when specified.
25407
25408 2015-02-13 Alan Modra <amodra@gmail.com>
25409
25410 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25411 code setting up r11 for out-of-line fp restore.
25412
25413 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25414
25415 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25416 (muser-mode): Likewise.
25417
25418 2015-02-13 Alan Modra <amodra@gmail.com>
25419
25420 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25421 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25422
25423 2015-02-12 David Howells <dhowells@redhat.com>
25424
25425 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25426 warning.
25427 * tree-ssa-uninit.c (dump_predicates): Likewise.
25428 * opts.c (print_filtered_help): Likewise.
25429
25430 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25431
25432 * dwarf2out.c (output_die): Use "%s", name instead of name to
25433 avoid -Wformat-security warning.
25434
25435 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25436 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25437 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25438 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25439
25440 2015-02-12 Jason Merrill <jason@redhat.com>
25441
25442 * common.opt (-flifetime-dse): New.
25443
25444 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25445
25446 PR sanitizer/65019
25447 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25448
25449 PR tree-optimization/65014
25450 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25451 use original second operand of arg0 or arg1 instead of
25452 that adjusted by STRIP_NOPS.
25453
25454 2015-02-11 Jeff Law <law@redhat.com>
25455
25456 PR target/63347
25457 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25458 that needs to be queued, just queue it for a single cycle.
25459
25460 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25461
25462 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25463 bodies of thunks; comment on why.
25464 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25465 symbols are extern.
25466
25467 2015-02-11 Richard Henderson <rth@redhat.com>
25468
25469 PR sanitize/65000
25470 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25471 regions of __builtin_eh_copy_values.
25472
25473 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25474
25475 PR middle-end/65003
25476 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25477 ultimate alias is MEM with SYMBOL_REF satisfying
25478 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25479 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25480
25481 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25482
25483 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25484 "diagnostic-core.h".
25485 (main): Initialize progname, and call diagnostic_initialize.
25486
25487 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25488 instead of __OPENMP_TARGET__.
25489
25490 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25491 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25492 hard-coding PTX_ID.
25493
25494 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25495
25496 * doc/sourcebuild.texi (pie_enabled): Document.
25497
25498 2015-02-11 Martin Liska <mliska@suse.cz>
25499
25500 PR ipa/64813
25501 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25502 a return value for call to a function that is noreturn.
25503
25504 2015-02-11 Richard Biener <rguenther@suse.de>
25505
25506 PR lto/65015
25507 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25508 and -fresolution.
25509
25510 2015-02-11 Andrew Pinski <apinski@cavium.com>
25511
25512 PR target/64893
25513 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25514 Change the first argument type to size_type_node and add another
25515 size_type_node.
25516 (aarch64_simd_expand_builtin): Handle the new argument to
25517 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25518 print an out when the first two arguments are not
25519 nonzero integer constants.
25520 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25521 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25522
25523 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25524
25525 PR target/61925
25526 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25527 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25528 (ix86_set_current_function): Rewritten.
25529 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25530 when creating builtin fndecls.
25531
25532 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25533
25534 PR ipa/65005
25535 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25536 function.
25537 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25538 have no comdat group.
25539 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25540 (lto_output_varpool_node): Always output alias info.
25541 (output_refs): Output refs of boundary aliases, too.
25542 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25543 (output_symtab): Output call eges in thunks in boundary.
25544 (get_alias_symbol): Remove.
25545 (input_node, input_varpool_node): Do not special case weakrefs.
25546 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25547 alias and thunks targets in the boundary; do not take removed symbols
25548 from their comdat groups.
25549 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25550 (cgraph_node::global_info): Remove.
25551 (cgraph_node::rtl_info): Look through aliases and thunks.
25552 * cgrpah.h (global_info): Remove.
25553 (non_local_p): Remove.
25554
25555 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25556 Sandra Loosemore <sandra@codesourcery.com>
25557
25558 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25559 to inline asm. List dialects in proper order.
25560
25561 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25562 Sandra Loosemore <sandra@codesourcery.com>
25563
25564 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25565
25566 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25567
25568 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25569 modified) reference to Solaris.
25570
25571 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25572
25573 * doc/extend.texi (Extended Asm): Fix typos.
25574
25575 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25576
25577 PR sanitizer/65004
25578 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25579
25580 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25581
25582 PR target/64661
25583 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25584 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25585 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25586 * config/sh/constraints.md (Ara, Add): New constraints.
25587 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25588 predicates.
25589 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25590 atomic_mem_operand_0. Don't use force_reg on the memory address.
25591 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25592 Sra constraint. Convert to insn_and_split. Add workaround for
25593 PR 64974.
25594 (atomic_compare_and_swap<mode>_hard): Copy to
25595 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25596 Use atomic_mem_operand_0 predicate.
25597 (atomic_compare_and_swap<mode>_soft_gusa,
25598 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25599 AraAdd constraints.
25600 (atomic_compare_and_swap<mode>_soft_tcb,
25601 atomic_compare_and_swap<mode>_soft_imask,
25602 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25603 atomic_mem_operand_0 predicate and SraSdd constraints.
25604 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25605 constraint.
25606 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25607 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25608 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25609 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25610 force_reg on the memory address.
25611 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25612 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25613 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25614 atomic_mem_operand_1 predicate and Sra constraint.
25615 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25616 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25617 Use atomic_mem_operand_1 predicate.
25618 (atomic_<fetchop_name><mode>_hard): Copy to
25619 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25620 Use atomic_mem_operand_1 predicate.
25621 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25622 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25623 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25624 insn_and_split. Use atomic_mem_operand_1 predicate.
25625 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25626 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25627 Use atomic_mem_operand_1 predicate.
25628 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25629 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25630 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25631 in generated insn with original mem operand before emitting the insn.
25632 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25633 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25634 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25635 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25636 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25637 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25638 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25639 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25640 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25641 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25642 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25643 atomic_not_fetch<mode>_soft_tcb,
25644 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25645 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25646 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25647 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25648
25649 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25650
25651 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25652 and 3 earlyclobber operands.
25653
25654 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25655
25656 * common.opt (fstack-reuse): Mark as optimization.
25657
25658 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25659
25660 PR ipa/64982
25661 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25662
25663 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25664
25665 PR tree-optimization/64326
25666 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25667
25668 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25669
25670 PR gcov-profile/61889
25671 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25672
25673 2015-02-10 Richard Biener <rguenther@suse.de>
25674
25675 PR tree-optimization/64995
25676 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25677 value we use is final.
25678 (visit_reference_op_store): Always valueize op.
25679 (visit_use): Properly valueize vuses.
25680
25681 2015-02-10 Richard Biener <rguenther@suse.de>
25682
25683 PR tree-optimization/64909
25684 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25685 pass a scalar-stmt count estimate to the cost model.
25686 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25687
25688 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25689
25690 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25691 enabled by default together with var-tracking.
25692
25693 2015-02-10 Nick Clifton <nickc@redhat.com>
25694
25695 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25696 included in previous rl78 commit.
25697
25698 2015-02-10 Richard Biener <rguenther@suse.de>
25699
25700 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25701 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25702 return the bitpack.
25703
25704 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25705
25706 PR gcov-profile/61889
25707 * config.in: regenerate.
25708 * configure.in: Likewise.
25709 * configure.ac: Check for ftw.h.
25710 * gcov-tool.c: Check for ftw.h before using nftw.
25711
25712 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25713
25714 PR lto/64076
25715 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25716 assert when not in lto mode.
25717
25718 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25719
25720 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25721 initialization/assignment of conflict_size.
25722
25723 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25724
25725 PR ipa/64978
25726 * ipa-cp.c (gather_caller_stats): Skip thunks.
25727 (propagate_constants_topo): Skip aliases.
25728
25729 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25730
25731 PR target/64761
25732 * config/sh/sh.c (sh_option_override): Don't change
25733 -freorder-blocks-and-partition to -freorder-blocks even when
25734 unwinding is enabled.
25735 (sh_can_follow_jump): Return false if the followee jump is
25736 a crossing jump when -freorder-blocks-and-partition is specified.
25737 * config/sh/sh.md (*jump_compact_crossing): New insn.
25738
25739 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25740 Kaz Kojima <kkojima@gcc.gnu.org>
25741
25742 PR target/64761
25743 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25744 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25745 (sh_can_redirect_branch): Rename to ...
25746 (sh_can_follow_jump): ... this. Constify argument types.
25747 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25748 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25749 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25750 * doc/tm.texi: Regenerate.
25751
25752 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25753
25754 PR sanitizer/64981
25755 * builtins.c (expand_builtin): Call targetm.expand_builtin
25756 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25757
25758 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25759
25760 PR ipa/61548
25761 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25762
25763 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25764
25765 PR ipa/63566
25766 * ipa-icf.c (set_local): New function.
25767 (sem_function::merge): Use it.
25768
25769 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25770
25771 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25772 (add_type_duplicate): Fix comparison of BINFOs.
25773
25774 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25775
25776 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25777 on getting VOID pointer.
25778
25779 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25780
25781 PR target/64979
25782 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25783 va_list escapes.
25784
25785 2015-02-09 Richard Biener <rguenther@suse.de>
25786
25787 * genmatch.c (replace_id): Copy expr_type.
25788
25789 2015-02-09 Richard Biener <rguenther@suse.de>
25790
25791 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25792 (streamer_write_tree_bitfields): Declare.
25793 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25794 properly unpack padding.
25795 (unpack_value_fields): Inline ...
25796 (streamer_read_tree_bitfields): ... here.
25797 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25798 and properly add padding bits.
25799 (streamer_pack_tree_bitfields): Fold into ...
25800 (streamer_write_tree_bitfields): ... this new function,
25801 exposing the bitpack object.
25802 * lto-streamer-out.c (lto_write_tree_1): Call
25803 streamer_write_tree_bitfields.
25804
25805 2015-02-09 Richard Biener <rguenther@suse.de>
25806
25807 PR tree-optimization/54000
25808 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25809 (struct ivopts_data): Add loop_loc member.
25810 (tree_ssa_iv_optimize_loop): Dump loop location.
25811 (create_new_ivs): Likewise, also dump number of IVs generated.
25812
25813 2015-02-09 Martin Liska <mliska@suse.cz>
25814
25815 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25816 just if not yet registered.
25817 (ipa_icf_generate_summary): Register callgraph hooks.
25818
25819 2015-02-08 Andrew Pinski <apinski@cavium.com>
25820
25821 * config/aarch64/aarch64.c (gty_dummy): Delete.
25822
25823 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25824
25825 PR ipa/63566
25826 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25827 (cgraph_node::local_p): Remove thunk related FIXME.
25828
25829 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25830
25831 PR ipa/63566
25832 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25833 is local and optimized.
25834 (ix86_function_sseregparm): Likewise; also use target's SSE math
25835 settings; error out instead of silently generating wrong code
25836 on mismatches.
25837 (init_cumulative_args): Look through aliases.
25838
25839 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25840
25841 PR ipa/63566
25842 * ipa-split.c (execute_split_functions): Split if function has aliases.
25843
25844 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25845
25846 PR ipa/63566
25847 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25848 aliases before trying to expand it.
25849 (cgraph_node::expand_thunk): Fix formating.
25850
25851 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25852
25853 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25854 (Using Assembly Language with C): Expand introduction.
25855 (Basic Asm): Copy-edit. Add more information about uses of
25856 basic asm.
25857 (Extended Asm): Copy-edit. Document new escape syntax and
25858 %l[label] syntax.
25859 (Global Reg Vars): Copy-edit.
25860 (Local Reg Vars): Likewise.
25861
25862 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25863
25864 PR debug/2714
25865 PR bootstrap/64256
25866 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25867 (DBX_CONTIN_CHAR): Define.
25868
25869 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25870 Brian Rzycki <b.rzycki@samsung.com>
25871
25872 PR tree-optimization/64878
25873 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25874 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25875 Stop recursion at loop phi nodes after having visited a loop phi node.
25876
25877 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25878
25879 * toplev.c (process_options): Change flag_ipa_ra before creating
25880 optimization_{default,current}_node.
25881
25882 PR ipa/64896
25883 * cgraphunit.c (cgraph_node::expand_thunk): If
25884 restype is not is_gimple_reg_type nor the thunk_fndecl
25885 returns aggregate_value_p, set restmp to a temporary variable
25886 instead of resdecl.
25887
25888 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25889
25890 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25891
25892 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25893
25894 PR target/64205
25895 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25896 add a general secondary reload handler for SDmode, unless we have
25897 both read/write support for SDmode.
25898
25899 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR middle-end/64937
25902 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25903 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25904 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25905 1 before, push it to abstract_vec.
25906 (dwarf2out_abstract_function): Adjust caller. Don't call
25907 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25908 DECL_ABSTRACT_P flags for all abstract_vec elts.
25909
25910 2015-02-06 Renlin Li <renlin.li@arm.com>
25911
25912 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25913 complex gimple.
25914 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25915
25916 2015-02-06 Jeff Law <law@redhat.com>
25917
25918 PR target/64889
25919 * config/h8300/h8300.c (push): New argument "in_prologue".
25920 Pass "in_prologue" along to "F".
25921 (h8300_push_pop): Corresponding changes.
25922 (h8300_expand_prologue): Likewise.
25923 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25924
25925 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25926
25927 PR rtl-optimization/64957
25928 PR debug/64817
25929 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25930 IOR rather than for AND.
25931
25932 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25933
25934 PR target/62631
25935 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25936 of shift-add and (add + shift) operations. Rename local variable.
25937
25938 2015-02-05 Jeff Law <law@redhat.com>
25939
25940 PR target/17306
25941 * config/h8300/constraints.md (U): Correctly dectect
25942 "eightbit_data" memory addresses.
25943 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25944 handle (const (plus (symbol_ref (x)))) where x is declared
25945 as an 8-bit data memory address.
25946 * config/h8300/h8300.md (call, call_value): Correctly detect
25947 "funcvec" functions.
25948
25949 PR target/43264
25950 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25951 24 to 28 bits for the H8/300.
25952
25953 2015-02-06 Alan Modra <amodra@gmail.com>
25954
25955 PR target/64876
25956 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25957 (rs6000_call_aix): Use it.
25958
25959 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25960
25961 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25962 check.
25963
25964 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25965
25966 * config/h8300/constraints.md ("U" constraint): Use strict
25967 variant of REG_OK_FOR_BASE_P after reload has started.
25968
25969 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25970
25971 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25972 define to zero if !TARGET_NEON.
25973 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25974
25975 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25976 Trevor Saunders <tsaunders@mozilla.com>
25977
25978 PR ipa/61548
25979 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25980
25981 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25982
25983 PR ipa/61548
25984 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25985 when removing varpool nodes.
25986
25987 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25988
25989 PR ipa/61548
25990 * varpool.c (varpool_node::remove): Fix order of variables.
25991
25992 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25993
25994 PR ipa/64686
25995 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25996 speculation resolution and key updates.
25997
25998 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25999
26000 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26001 about not letting any speculative edges unupdated.
26002
26003 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26004
26005 PR gcov/64123
26006 * gcov-io.c (gcov_var): Export.
26007
26008 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26009
26010 PR middle-end/64922
26011 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26012 edges that become speculative.
26013
26014 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26015
26016 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26017 or DW_LANG_Fortran08.
26018 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26019 DW_LANG_Fortran08.
26020 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26021 "GNU Fortran2008" language strings.
26022 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26023 * langhooks.h (lang_GNU_Fortran): New prototype.
26024 * langhooks.c (lang_GNU_Fortran): New function.
26025 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26026 lang_GNU_Fortran.
26027
26028 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26029
26030 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26031 (RTX_OK_FOR_OLO10_P): Likewise.
26032
26033 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26034
26035 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26036
26037 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26038
26039 PR middle-end/64922
26040 * gimple.c: Include gimple-ssa.h.
26041 (maybe_remove_unused_call_args): New function.
26042 * gimple.h (maybe_remove_unused_call_args): Declare.
26043 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26044 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26045 * gimple-fold.c (gimple_fold_call): Likewise.
26046
26047 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26048
26049 PR rtl-optimization/64905
26050 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26051 pointer alignment if it isn't needed.
26052
26053 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26054
26055 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26056 cortex-a72.cortex-a53.
26057 * config/aarch64/aarch64-tune.md: Regenerate.
26058 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26059
26060 2015-02-04 Nick Clifton <nickc@redhat.com>
26061
26062 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26063 inside a MEM.
26064
26065 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26066
26067 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26068 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26069 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26070 of DEF_BUILTIN.
26071 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26072 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26073 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26074 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26075 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26076 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26077 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26078 * tree-core.h (enum built_in_function): In between
26079 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26080 for builtins that use DEF_BUILTIN_CHKP macro.
26081
26082 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26083
26084 PR debug/64817
26085 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26086 operands for tcc_comparison exprs. Fix typos.
26087
26088 PR debug/64817
26089 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26090 of two XORs that have an intervening AND or IOR.
26091
26092 PR debug/64817
26093 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26094 simplification of XOR of AND to not allocate new rtx before
26095 committing to a simplification.
26096
26097 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26098
26099 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26100 manual swaps in all peepholes.
26101
26102 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26103
26104 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26105 of manual swapping implementation.
26106 (aarch64_expand_vec_perm_const_1): Likewise.
26107
26108 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26109
26110 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26111 (generic_addrcost_table): Remove NAMED_PARAM.
26112 (cortexa57_addrcost_table): Likewise.
26113 (xgene1_addrcost_table): Likewise.
26114 (generic_regmove_table): Likewise.
26115 (cortexa53_regmove_table): Likewise.
26116 (xgene1_regmove_table): Likewise.
26117 (generic_vector_table): Likewise.
26118 (cortexa57_vector_table): Likewise.
26119 (xgene1_vector_table): Likewise.
26120 (generic_tunings): Likewise.
26121 (cortexa53_tunings): Likewise.
26122 (cortexa57_tunings): Likewise.
26123 (xgene1_tunings): Likewise.
26124
26125 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26126
26127 * config/arm/arm-cores.def: Add cortex-a72 and
26128 cortex-a72.cortex-a53.
26129 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26130 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26131 * config/arm/arm-tune.md: Regenerate.
26132 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26133 "cortex-a72.cortex-a53".
26134 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26135
26136 2015-02-04 Nick Clifton <nickc@redhat.com>
26137
26138 PR target/64408
26139 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26140 of accepted codes.
26141 (nonimmediate_di_operand): Likewise.
26142
26143 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26144 prefixes of known F5 using MSP430 MCUs.
26145
26146 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26147
26148 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26149 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26150 instead of __builtin_sqrt.
26151
26152 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26153
26154 * varasm.c (do_assemble_alias): Follow transparent alias
26155 chain for target.
26156 (default_assemble_visibility): Follow transparent alias
26157 chain for decl name.
26158
26159 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26160
26161 PR middle-end/62103
26162 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26163 to compute size of referenced value in the constant case.
26164
26165 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26166
26167 PR rtl-optimization/64756
26168 * cse.c (invalidate_dest): New function.
26169 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26170 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26171 invalidate and do not record it.
26172
26173 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26174
26175 PR target/64660
26176 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26177 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26178 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26179 atomic_nand<mode>_soft_tcb): New insns.
26180 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26181 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26182 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26183 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26184 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26185 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26186 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26187 atomic_not<mode>_hard if operands[0] is unused.
26188 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26189 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26190 if operands[0] is unused.
26191 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26192 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26193 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26194 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26195 unused.
26196 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26197 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26198 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26199 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26200 if operands[0] is unused.
26201 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26202 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26203 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26204 atomic_nand_fetchsi_hard if operands[0] is unused.
26205 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26206 atomic_nand<mode>_hard if operands[0] is unused.
26207 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26208 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26209 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26210 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26211 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26212 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26213 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26214 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26215 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26216 atomic_not<mode>_hard if operands[0] is unused.
26217 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26218 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26219 unused.
26220 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26221 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26222 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26223 atomic_nand<mode>_hard if operands[0] is unused.
26224 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26225 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26226
26227 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26228
26229 PR jit/64810
26230 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26231 * gcc-main.c: New file, containing "main" taken from gcc.c.
26232 * gcc.c (do_self_spec): Free decoded_options.
26233 (class driver): Move declaration to gcc.h.
26234 (main): Move declaration and implementation to new file
26235 gcc-main.c.
26236 (driver_get_configure_time_options): New function.
26237 * gcc.h (class driver): Move this declaration here, from
26238 gcc.c.
26239 (driver_get_configure_time_options): New declaration.
26240
26241 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26242
26243 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26244 cross-module inlining.
26245 * cgraph.h (cgraph_node): Add flag merged.
26246 * ipa-icf.c (sem_function::merge): Maintain it.
26247
26248 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26249
26250 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26251 instead of OBJECT_P.
26252
26253 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26254
26255 PR target/62631
26256 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26257 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26258 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26259 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26260
26261 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26262
26263 PR other/63504
26264 * combine.c (reg_n_sets_max): New variable.
26265 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26266 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26267 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26268 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26269 (rest_of_handle_combine): Initialize reg_n_sets_max.
26270
26271 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26272
26273 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26274 if some always_inline was inlined, apply changes before inlining
26275 heuristically.
26276
26277 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26278
26279 PR jit/64810
26280 * config/arm/arm.c (arm_option_override): Set
26281 arm_selected_arch/cpu/tune to NULL on entry.
26282
26283 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26284 Andrew Pinski <pinskia@gcc.gnu.org>
26285 Jakub Jelinek <jakub@gcc.gnu.org>
26286
26287 PR target/64231
26288 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26289 integer typing for small model. Use IN_RANGE.
26290
26291 2015-02-02 Richard Biener <rguenther@suse.de>
26292
26293 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26294 * tree-vrp.c (vrp_valueize_1): Likewise.
26295
26296 2015-02-02 Alan Modra <amodra@gmail.com>
26297
26298 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26299 than mem for toc_restore.
26300 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26301 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26302 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26303
26304 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26305
26306 PR target/64047
26307 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26308 explicit default options.
26309
26310 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26311
26312 PR ipa/64872
26313 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26314 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26315 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26316
26317 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26318
26319 PR debug/64817
26320 * cfgexpand.c (deep_ter_debug_map): New variable.
26321 (avoid_deep_ter_for_debug): New function.
26322 (expand_debug_expr): If TERed SSA_NAME is in
26323 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26324 instead of trying to expand SSA_NAME's def stmt.
26325 (expand_debug_locations): When expanding debug bind
26326 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26327 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26328 value.
26329 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26330 all debug bind stmts. Delete deep_ter_debug_map after
26331 expand_debug_location if non-NULL and clear it.
26332
26333 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26334
26335 PR target/64851
26336 * config/sh/sync.md (atomic_fetch_notsi_hard,
26337 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26338 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26339 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26340 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26341 atomic_not_fetch<mode>_soft_imask): New insns.
26342
26343 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26344
26345 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26346 (rank_for_schedule_debug): Split from ...
26347 (rank_for_schedule): ... this.
26348 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26349 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26350
26351 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26352
26353 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26354 * doc/extend.texi (x86 Variable Attributes): Move section to
26355 correct alphabetization after renaming.
26356 (x86 Type Attributes): Likewise.
26357 (Target Builtins): Re-alphabetize menu.
26358 (x86 Built-in Functions): Move section to correct alphabetization
26359 after renaming.
26360 (x86 transactional memory intrinsics): Likewise.
26361 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26362 and x86 Windows Options in table and menu.
26363 (x86 Options): Move section to correct alphabetization after
26364 renaming.
26365 (x86 Windows Options): Likewise.
26366
26367 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26368
26369 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26370 preferred names of the architecture and its 32- and 64-bit
26371 variants.
26372 * doc/invoke.texi: Likewise.
26373 * doc/md.texi: Likewise.
26374
26375 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26376
26377 PR target/64882
26378 * config/i386/predicates.md (address_no_seg_operand): Reject
26379 non-CONST_INT_P operands in invalid mode.
26380
26381 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26382
26383 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26384 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26385 * config/i386/predicates.md (address_no_seg_operand): Call
26386 address_operand with VOIDmode.
26387 (vsib_address_operand): Ditto.
26388 (address_mpx_no_base_operand): Ditto.
26389 (address_mpx_no_index_operand): Ditto.
26390
26391 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26392
26393 PR target/64688
26394 * lra-constraints.c (original_subreg_reg_mode): New.
26395 (simplify_operand_subreg): Try to simplify subreg of const. Use
26396 original_subreg_reg_mode for it.
26397 (swap_operands): Update original_subreg_reg_mode.
26398 (curr_insn_transform): Set up original_subreg_reg_mode.
26399
26400 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26401
26402 PR target/64617
26403 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26404 function.
26405 (process_alt_operands): Use it.
26406 (curr_insn_transform): Check the optional reload pseudo class is
26407 ok for the mode.
26408
26409 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26410
26411 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26412 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26413 prototype.
26414 * toplev.h (init_asm_output): Update comment on use of
26415 UNKNOWN_LOCATION with fatal_error.
26416 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26417 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26418 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26419 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26420 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26421 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26422 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26423 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26424 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26425 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26426 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26427 fatal_error changed to pass input_location as first argument.
26428
26429 2015-01-30 Martin Liska <mliska@suse.cz>
26430
26431 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26432 in #pragma GCC diagnostic guards.
26433
26434 2015-01-30 Richard Biener <rguenther@suse.de>
26435
26436 PR tree-optimization/64829
26437 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26438 not add a widening conversion pattern but hand off extra
26439 widenings to callers.
26440 (vect_recog_widen_mult_pattern): Handle extra widening produced
26441 by vect_handle_widen_op_by_const.
26442 (vect_recog_widen_shift_pattern): Likewise.
26443 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26444 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26445 (vect_init_vector_1): Likewise.
26446 (vect_get_vec_def_for_operand): Likewise.
26447 (vect_finish_stmt_generation): Likewise.
26448 (vectorizable_load): Likewise.
26449 (vect_analyze_stmt): Likewise.
26450 (vect_is_simple_use): Likewise.
26451
26452 2015-01-29 Jeff Law <law@redhat.com>
26453
26454 * combine.c (try_combine): Fix typo in comment.
26455
26456 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26457
26458 PR target/64580
26459 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26460 (rs6000_stack_info): Add assert.
26461 (rs6000_output_savres_externs): New function, split off from...
26462 (rs6000_output_function_prologue): ... here. Do not call it for
26463 thunks.
26464
26465 2015-01-29 Jeff Law <law@redhat.com>
26466
26467 PR target/15184
26468 * combine.c (try_combine): If I0 is a memory load and I3 a store
26469 to a related address, increase the "goodness" of doing a 4-insn
26470 combination with I0-I3.
26471 (make_field_assignment): Handle SUBREGs in the ior+and case.
26472
26473 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26474
26475 PR tree-optimization/64746
26476 * tree-if-conv.c (mask_exists): New function.
26477 (predicate_mem_writes): Save created mask with given size for further
26478 use.
26479 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26480 (ifcvt_repair_bool_pattern): Collect all statements that are root
26481 of bool pattern and use iterative algorithm to remove multiple uses
26482 of predicates, display number of required iterations.
26483
26484 2015-01-29 Richard Biener <rguenther@suse.de>
26485
26486 PR tree-optimization/64853
26487 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26488 stmt will get simulated again.
26489 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26490
26491 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26492
26493 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26494 return_in_pc. Remove redundant assignments.
26495 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26496 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26497
26498 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26499
26500 * config/i386/i386.c (ix86_mode_after): Make static.
26501
26502 2015-01-29 Richard Biener <rguenther@suse.de>
26503
26504 PR tree-optimization/64844
26505 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26506 dump cost model analysis.
26507 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26508 Do not register adjusted load/store costs here.
26509
26510 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26511 Uros Bizjak <ubizjak@gmail.com>
26512
26513 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26514 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26515 using x86_use_pseudo_pic_reg.
26516 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26517 support for fixed PIC register.
26518 (ix86_use_pseudo_pic_reg): Not static any more.
26519
26520 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26521
26522 PR middle-end/64805
26523 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26524 to avoid error in cgraph node verification.
26525
26526 2015-01-29 Marek Polacek <polacek@redhat.com>
26527
26528 * doc/standards.texi: Reflect that the default for C is gnu11.
26529
26530 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26531
26532 PR target/64761
26533 * reorg.c (switch_text_sections_between_p): New function.
26534 (relax_delay_slots): Call it when testing if the jump insn
26535 is removable. Use targetm.can_follow_jump when testing if
26536 the conditional branch can follow an unconditional jump.
26537
26538 2015-01-27 Caroline Tice <cmtice@google.com>
26539
26540 Committing VTV Cywin/Ming patch for Patrick Wollgast
26541 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26542 if -fvtable-verify=preinit/std is used.
26543 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26544 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26545 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26546 if -fvtable-verify=preinit/std is used.
26547 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26548 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26549 if -fvtable-verify=preinit/std is used.
26550 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26551 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26552 * varasm.c (assemble_variable): Add code to properly set the comdat
26553 section and name for the .vtable_map_vars section in case the
26554 target is PE or COFF.
26555
26556 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26557
26558 PR ipa/64801
26559 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26560 make sane BB profile.
26561 (cgraph_node::expand_thunk): Make sane BB profile.
26562 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26563 * cgraph.h (init_lowered_empty_function): Update prototype.
26564 * config/i386/i386.c (make_resolver_func): Update call.
26565 * predict.c (gate): Disable branch prediction pass if
26566 profile is already there.
26567
26568 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26569
26570 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26571 * opth-gen.awk: Likewise.
26572 * common.opt: Mark flag_fp_contract_mode as Optimization.
26573
26574 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26575
26576 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26577 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26578
26579 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26580
26581 PR target/64659
26582 * config/sh/predicates.md (atomic_arith_operand,
26583 atomic_logical_operand): Remove.
26584 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26585 (atomic_arith_operand_0): New predicate.
26586 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26587 Use atomic_arith_operand_0 for input values.
26588 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26589 atomic_compare_and_swap<mode>_soft_gusa,
26590 atomic_compare_and_swap<mode>_soft_tcb,
26591 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26592 arith_reg_operand instead of register_operand.
26593 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26594 atomic_arith_operand_0 for newval input.
26595 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26596 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26597 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26598 arith_reg_operand instead of register_operand.
26599 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26600 fetchop_predicate_1, fetchop_constraint_1_llcs,
26601 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26602 fetchop_constraint_1_imask): New code iterator attributes.
26603 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26604 register_operand. Use fetchop_predicate_1.
26605 (atomic_fetch_<fetchop_name>si_hard,
26606 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26607 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26608 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26609 and arith_reg_operand instead of register_operand. Use
26610 fetchop_predicate_1, fetchop_constraint_1_gusa.
26611 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26612 and arith_reg_operand instead of register_operand. Use
26613 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26614 to allow R0 usage.
26615 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26616 and arith_reg_operand instead of register_operand. Use
26617 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26618 to allow R0 usage.
26619 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26620 register_operand. Use atomic_logical_operand_1.
26621 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26622 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26623 arith_reg_operand instead of register_operand.
26624 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26625 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26626 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26627 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26628 register_operand. Use fetchop_predicate_1.
26629 (atomic_<fetchop_name>_fetchsi_hard,
26630 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26631 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26632 fetchop_constraint_1_llcs.
26633 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26634 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26635 fetchop_constraint_1_gusa.
26636 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26637 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26638 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26639 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26640 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26641 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26642 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26643 register_operand. Use atomic_logical_operand_1.
26644 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26645 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26646 arith_reg_operand instead of register_operand.
26647 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26648 arith_reg_operand instead of register_operand. Use logical_operand
26649 and K08. Adjust asm sequence to allow R0 usage.
26650 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26651 arith_reg_operand instead of register_operand. Use logical_operand
26652 and K08.
26653
26654 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26655
26656 PR other/63504
26657 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26658 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26659 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26660 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26661 all bits in *val_wide.
26662
26663 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26664
26665 * varpool.c (tls_model_names): Fix names.
26666 (varpool_node::dump): Dump tls- prefix for tls models.
26667
26668 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26669 Bernd Schmidt <bernds@codesourcery.com>
26670 Nathan Sidwell <nathan@codesourcery.com>
26671
26672 * config/nvptx/mkoffload.c: New file.
26673 * config/nvptx/t-nvptx: Add build rules for it.
26674 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26675 (extra_programs): Add mkoffload.
26676 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26677 function.
26678 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26679
26680 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26681
26682 PR middle-end/64809
26683 * cfgexpand.c (reorder_operands): Skip debug gimples.
26684
26685 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26686
26687 PR tree-optimization/64277
26688 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26689 range info when possible to refine estimation.
26690
26691 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26692
26693 PR tree-optimization/64718
26694 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26695 be a 16bit unsigned integer when n->range is 16.
26696 (bswap_replace): Convert src to that type if necessary for all bswap
26697 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26698 set in pass_optimize_bswap::execute ().
26699
26700 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26701
26702 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26703 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26704 integer and floating point variants.
26705 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26706
26707 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26708
26709 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26710 for all vector modes.
26711
26712 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26713
26714 PR bootstrap/64612
26715 * doc/sourcebuild.texi (comdat_group): Document.
26716
26717 2015-01-28 Terry Guo <terry.guo@arm.com>
26718
26719 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26720
26721 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26722
26723 * toplev.c (print_version): Add param "show_global_state", and
26724 only print GGC and plugin information if it is true.
26725 (init_asm_output): Pass in "true" for the new param when calling
26726 print_version.
26727 (process_options): Likewise.
26728 (toplev::main): Likewise.
26729 * toplev.h (print_version): Add new param to decl.
26730
26731 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26732
26733 PR ipa/60871
26734 PR ipa/64139
26735 * tree.c (lookup_binfo_at_offset): New function.
26736 (get_binfo_at_offset): Use it.
26737
26738 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26739
26740 PR ipa/64282
26741 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26742 on vtable being vtable.
26743
26744 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26745
26746 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26747 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26748 -mhotpatch= option.
26749 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26750 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26751 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26752 Renamed.
26753 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26754 (s390_hotpatch_hw_max): New name.
26755 (s390_hotpatch_trampoline_halfwords): Renamed.
26756 (s390_hotpatch_hw_before_label): New name.
26757 (get_hotpatch_attribute): Removed.
26758 (s390_hotpatch_hw_after_label): New name.
26759 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26760 attribute.
26761 (s390_attribute_table): Ditto.
26762 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26763 (s390_function_num_hotpatch_hw): New name.
26764 Remove special handling of inline functions and hotpatching.
26765 Return number of nops before and after the function label.
26766 (s390_can_inline_p): Removed.
26767 (s390_asm_output_function_label): Emit a configurable number of nops
26768 after the function label.
26769 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26770 (TARGET_CAN_INLINE_P) Removed.
26771 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26772
26773 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26774 Jiong Wang <jiong.wang@arm.com>
26775
26776 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26777 of scratch reg.
26778 (cb<optab><mode>1): Likewise.
26779 * config/aarch64/iterators.md (bcond): New define_code_attr.
26780
26781 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26782
26783 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26784 memory accesses.
26785
26786 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26787
26788 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26789 FPR->GPR moves.
26790
26791 2015-01-27 Richard Biener <rguenther@suse.de>
26792
26793 * tree-vrp.c (update_value_range): Intersect the range with
26794 old recorded SSA name range information.
26795
26796 2015-01-27 Nick Clifton <nickc@redhat.com>
26797
26798 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26799 BC, DE and HL registers directly, not via AX.
26800 When decrementing the stack pointer by a large amount, transfer SP
26801 into AX and perform the subtraction there.
26802 (rl78_expand_epilogue): Perform the inverse of the above
26803 enhancements.
26804
26805 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26806
26807 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26808
26809 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26810 Yury Gribov <y.gribov@samsung.com>
26811
26812 PR ubsan/64741
26813 * ubsan.c (ubsan_source_location): Refactor code.
26814 (ubsan_type_descriptor): Update type size. Refactor code.
26815
26816 2015-01-27 Richard Biener <rguenther@suse.de>
26817
26818 PR tree-optimization/56273
26819 PR tree-optimization/59124
26820 PR tree-optimization/64277
26821 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26822 from the first VRP pass.
26823
26824 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26825
26826 PR ipa/64776
26827 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26828 handle the first argument in the same loop as all the other arguments.
26829
26830 PR rtl-optimization/61058
26831 * jump.c (cleanup_barriers): Update basic block boundaries
26832 if BLOCK_FOR_INSN is non-NULL on PREV.
26833
26834 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26835
26836 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26837 bounds narrowing, already instrumented calls and calls to
26838 not instrumentable functions.
26839
26840 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26841
26842 PR tree-optimization/64807
26843 * wide-int.cc (wi::divmod_internal): Clear
26844 b_dividend[dividend_blocks_needed].
26845
26846 2015-01-26 DJ Delorie <dj@redhat.com>
26847
26848 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26849 volatile memory references.
26850
26851 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26852
26853 PR target/49263
26854 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26855 remove_insn.
26856 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26857 shifts if it already fits into K08.
26858
26859 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26860
26861 PR ipa/64730
26862 * ipa-inline.c (inline_small_functions): Print "unknown" even
26863 if edge->call_stmt is non-NULL, but has builtins or unknown
26864 location.
26865
26866 PR middle-end/64421
26867 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26868 with asterisk, skip the first character.
26869
26870 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26871
26872 PR target/64806
26873 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26874 order change.
26875
26876 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26877
26878 PR target/64795
26879 * config/i386/i386.md (*movdi_internal): Also check operand 0
26880 to determine TYPE_LEA operand.
26881 (*movsi_internal): Ditto.
26882
26883 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26884
26885 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26886 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26887
26888 2015-01-26 Renlin Li <renlin.li@arm.com>
26889
26890 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26891 the comment.
26892 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26893 for higher part.
26894
26895 2015-01-26 Richard Biener <rguenther@suse.de>
26896
26897 PR middle-end/64764
26898 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26899 combining two BIT_AND_EXPR predicates.
26900
26901 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26902
26903 PR bootstrap/64754
26904 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26905
26906 2015-01-26 Terry Guo <terry.guo@arm.com>
26907
26908 * config/arm/arm.c (arm_file_start): Update the assignment of
26909 Tag_ABI_HardFP_use.
26910
26911 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26912
26913 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26914 pipeline model.
26915 config/arm/arm.md: Include the new Cortex-A57 model.
26916 (generic_sched): Don't use generic_sched when tuning for
26917 Cortex-A57.
26918
26919 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26920 Uros Bizjak <ubizjak@gmail.com>
26921
26922 * config/i386/i386.c (get_builtin_code_for_version): Add
26923 support for BMI and BMI2 multiversion functions.
26924
26925 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26926
26927 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26928 (extract_bit_field): Likewise.
26929 (extract_low_bits): Likewise.
26930 (expand_mult): Likewise.
26931 (expand_mult_highpart_adjust): Likewise.
26932
26933 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26934
26935 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26936 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26937 * config/i386/i386.c (processor_model): Add
26938 M_INTEL_COREI7_BROADWELL.
26939 (arch_names_table): Add "broadwell".
26940
26941 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26942
26943 PR target/49263
26944 PR target/53987
26945 PR target/64345
26946 PR target/59533
26947 PR target/52933
26948 PR target/54236
26949 PR target/51244
26950 * config/sh/sh-protos.h
26951 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26952 sh_extending_set_of_reg::use_as_unextended_reg,
26953 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26954 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26955 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26956 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26957 (sh_treg_insns): New class.
26958 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26959 (scope_counter): New class.
26960 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26961 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26962 sh_extending_set_of_reg::can_use_as_unextended_reg,
26963 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26964 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26965 sh_split_treg_set_expr): New functions.
26966 (addsubcosts): Handle treg_set_expr.
26967 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26968 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26969 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26970 (sh_insn_operands_modified_between_p): Make non-static.
26971 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26972 simple_mem_operand in addition to displacement_mem_operand.
26973 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26974 (treg_set_expr, treg_set_expr_not_const01,
26975 arith_reg_or_treg_set_expr): New predicates.
26976 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26977 arith_or_int_operand instead of logical_operand. Convert to
26978 insn_and_split. Try to optimize constant operand in splitter.
26979 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26980 (*tstqi_t_zero): Delete.
26981 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26982 (tstsi_t_and_not): Delete.
26983 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26984 Convert to insn_and_split.
26985 (unnamed split, tstsi_t_zero_extract_xor,
26986 tstsi_t_zero_extract_subreg_xor_little,
26987 tstsi_t_zero_extract_subreg_xor_big): Delete.
26988 (*tstsi_t_shift_mask): New insn_and_split.
26989 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26990 to recombine with surrounding insns when splitting.
26991 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26992 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26993 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26994 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26995 (*cbranch_div0s: Delete.
26996 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26997 Try to recombine with surrounding insns when splitting. Add operand
26998 order variants.
26999 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27000 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27001 *addc_r_r_msb, *addc_2r_msb): Delete.
27002 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
27003 order variant.
27004 (*addc_negreg_t): New insn_and_split.
27005 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27006 Try to recombine with surrounding insns when splitting.
27007 Add operand order variants.
27008 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27009 insn_and_split patterns.
27010 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27011 surrounding insns when splitting.
27012 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27013 (*rotcl): Likewise. Add zero_extract variant.
27014 (*ashrsi2_31): New insn_and_split.
27015 (*negc): Convert to insn_and_split. Use treg_set_expr.
27016 (*zero_extend<mode>si2_disp_mem): Update comment.
27017 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27018 condition.
27019 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27020 with surrounding insns when splitting.
27021 (any_treg_expr_to_reg): New insn_and_split.
27022 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27023 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27024 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27025 *zero_extract_2): New single bit zero extract patterns.
27026 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27027 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27028 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27029 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27030 set destination.
27031 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27032 register_operand for set source.
27033
27034 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27035
27036 * i386.opt (prefetch_sse): New targetsave.
27037 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27038 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27039 ix86_cost/ix86_tune_cost.
27040
27041 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27042
27043 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27044 Support the JIT by using 0 as the language type.
27045
27046 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27047
27048 PR target/64317
27049 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27050 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27051 (mark_regno_live, process_bb_lives): Pass new parameter value to
27052 make_hard_regno_born.
27053
27054 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27055
27056 PR rtl-optimization/63637
27057 PR rtl-optimization/60663
27058 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27059 if elt->cost is MAX_COST for ASM_OPERANDS.
27060 (find_sets_in_insn): Fix up comment typo.
27061 (cse_insn): Don't set src_volatile for all non-volatile
27062 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27063 or with "memory" clobber. Set elt->cost to MAX_COST
27064 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27065 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27066
27067 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27068
27069 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27070 alternative 1.
27071
27072 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27073
27074 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27075 libgcc/config/i386/elf-lib.h.
27076
27077 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27078
27079 PR driver/64737
27080 * gcc.c (print_configuration): Don't print a blank line at the end
27081 here...
27082 (run_attempt): ... but here unstead.
27083
27084 PR middle-end/64734
27085 * omp-low.c (scan_sharing_clauses): Don't ignore
27086 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27087 on target data/update constructs.
27088
27089 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27090
27091 PR target/50928
27092 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27093 (DEBUG_RELOAD): Removed define.
27094 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27095 (m32c_function_arg): Added a type cast.
27096 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27097 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27098 * config/m32c/bitops.md (andqi3_16): Likewise.
27099 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27100 (push_a01_l): Likewise.
27101
27102 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27103
27104 PR jit/64721
27105 * main.c (main): Construct toplev instances with init_signals=true.
27106 * toplev.c (general_init): Add param "init_signals", and use it to
27107 conditionalize the calls to signal and host_hooks.extra_signals.
27108 (toplev::toplev): Add param "init_signals".
27109 (toplev::main): When invoking general_init, pass m_init_signals
27110 to control whether signal-handlers are installed.
27111 * toplev.h (toplev::toplev): Add param "init_signals".
27112 (toplev::m_init_signals): New field.
27113
27114 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27115
27116 PR jit/64722
27117 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27118 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27119 latter may be affected by the former (e.g. on i686).
27120
27121 2015-01-23 Martin Liska <mliska@suse.cz>
27122
27123 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27124 false positive during profiledbootstrap.
27125
27126 2015-01-23 Tom de Vries <tom@codesourcery.com>
27127
27128 PR libgomp/64672
27129 * lto-opts.c (lto_write_options): Output non-explicit conservative
27130 -fno-openacc.
27131 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27132 (append_compiler_options): Pass -fopenacc through.
27133
27134 2015-01-23 Tom de Vries <tom@codesourcery.com>
27135
27136 PR libgomp/64707
27137 * lto-opts.c (lto_write_options): Output non-explicit conservative
27138 -fno-openmp.
27139 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27140 (append_compiler_options): Pass -fopenmp through.
27141
27142 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27143
27144 PR debug/64511
27145 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27146 GTY markup.
27147
27148 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27149 * diagnostic.def (DK_ICE_NOBT): New kind.
27150 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27151 like DK_ICE, but never print backtrace.
27152 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27153 (internal_error_no_backtrace): New function.
27154 * gcc.c (execute): Use internal_error_no_backtrace instead of
27155 internal_error.
27156
27157 2015-01-22 Jeff Law <law@redhat.com>
27158
27159 PR target/52076
27160 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27161 improve code density for small immediate to memory case.
27162 (insv): Better handle bitfield assignments when the field is
27163 being set to all ones.
27164 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27165 operand predicate.
27166
27167 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27168 Jakub Jelinek <jakub@redhat.com>
27169
27170 PR middle-end/64729
27171 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27172 for !TARGET_LIBC_PROVIDES_SSP version and
27173 -fstack-protector-{all,strong,explicit} otherwise.
27174 * config/freebsd.h (LINK_SSP_SPEC): Handle
27175 -fstack-protector-{strong,explicit}.
27176
27177 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27178 H.J. Lu <hongjiu.lu@intel.com>
27179
27180 PR ipa/64694
27181 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27182 heap.
27183
27184 2015-01-22 Wei Mi <wmi@google.com>
27185
27186 PR rtl-optimization/64557
27187 * dse.c (record_store): Call get_addr for mem_addr.
27188 (check_mem_read_rtx): Likewise.
27189
27190 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27191
27192 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27193
27194 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27195
27196 * toplev.c (init_local_tick): Process the failure when read
27197 fails for random_seed.
27198
27199 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27200 'pretty_name' to avoid memory overflow.
27201
27202 2015-01-22 Richard Biener <rguenther@suse.de>
27203
27204 PR middle-end/64728
27205 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27206 abnormal coalescing on undefined SSA names.
27207
27208 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27209
27210 PR target/64688
27211 PR target/64477
27212 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27213 for alternative 3.
27214 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27215
27216 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27217
27218 PR middle-end/63325
27219 * fold-const.c (fold_checksum_tree): Don't include value of
27220 expr->decl_with_vis.symtab_node in the checksum.
27221
27222 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27223
27224 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27225
27226 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27227
27228 PR driver/64690
27229 * gcc.c (insert_comments): New function.
27230 (try_generate_repro): Call it.
27231 (append_text): Removed.
27232
27233 2015-01-22 Richard Biener <rguenther@suse.de>
27234
27235 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27236 with IL incompatible options. Properly honor user optimize
27237 attributes.
27238
27239 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27240
27241 PR rtl-optimization/64682
27242 * combine.c (distribute_notes): When moving a death note for
27243 a register that is set in the new I2, make sure to put it
27244 before that new I2.
27245
27246 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27247
27248 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27249 not TARGET_DEFAULT.
27250
27251 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27252
27253 PR debug/64511
27254 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27255 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27256 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27257
27258 PR sanitizer/64706
27259 * doc/invoke.texi (-fsanitize=vptr): Document.
27260
27261 PR rtl-optimization/62078
27262 * dse.c: Include cfgcleanup.h.
27263 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27264 anything call purge_all_dead_edges and cleanup_cfg at the end
27265 of the pass.
27266
27267 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27268
27269 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27270 edges.
27271
27272 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27273
27274 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27275 decl attribute.
27276
27277 2015-01-21 David Sherwood <david.sherwood@arm.com>
27278 Tejas Belagod <Tejas.Belagod@arm.com>
27279
27280 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27281 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27282 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27283 Removed.
27284
27285 2015-01-21 David Sherwood <david.sherwood@arm.com>
27286 Tejas Belagod <Tejas.Belagod@arm.com>
27287
27288 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27289 (aarch64_reverse_mask): New decls.
27290 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27291 (insn_count): New mode_attr.
27292 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27293 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27294 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27295 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27296 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27297 (aarch64_simd_st4): New patterns.
27298 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27299 (aarch64_reverse_mask): New functions.
27300
27301 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27302
27303 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27304 Declare.
27305 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27306 addressing modes for BE.
27307 (aarch64_print_operand): Add 'R' specifier.
27308 (aarch64_simd_disambiguate_copy): Delete.
27309 (aarch64_simd_emit_reg_reg_move): New function.
27310 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27311 in define_splits for structural moves.
27312 (mov<mode>): Use less restrictive predicates.
27313 (*aarch64_mov<mode>): Simplify and only allow for LE.
27314 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27315
27316 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27317
27318 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27319
27320 2015-01-21 Richard Henderson <rth@redhat.com>
27321
27322 PR target/64669
27323 * ccmp.c (used_in_cond_stmt_p): Remove.
27324 (expand_ccmp_expr): Don't use it.
27325
27326 2015-01-21 Nick Clifton <nickc@redhat.com>
27327
27328 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27329 PARALLELs.
27330
27331 2015-01-21 Richard Biener <rguenther@suse.de>
27332
27333 PR middle-end/64313
27334 * tree-core.h (builtin_info, builtin_info_type): Turn from
27335 an object with two arrays into an array of an object with
27336 decl and two flags, implicit_p and declared_p.
27337 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27338 set_builtin_decl, set_builtin_decl_implicit_p,
27339 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27340 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27341 * builtins.c (builtin_info): Adjust.
27342 * gimplify.c (gimplify_addr_expr): References to builtins
27343 that have been declared by the user makes them eligible for
27344 use by the compiler. Call set_builtin_decl_implicit_p on them.
27345
27346 2015-01-20 Jeff Law <law@redhat.com>
27347
27348 PR target/59946
27349 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27350 allow pc-relative addresses in operand predicates or constraints.
27351
27352 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27353
27354 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27355 neon on aarch32 processors for stringops.
27356
27357 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27358
27359 PR ipa/63576
27360 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27361
27362 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27363
27364 PR lto/45375
27365 * ipa-inline.c: Include lto-streamer.h
27366 (report_inline_failed_reason): Output source file differences and
27367 flags on optimization/target node mismatch.
27368 (can_inline_edge_p): Consider caller to be the outer inline function;
27369 be less restrictive about matching opimize and optimize_size attributes.
27370 (inline_account_function_p): Break out from ...
27371 (inline_small_functions): ... here.
27372 * ipa-inline-transform.c (clone_inlined_nodes): Use
27373 inline_account_function_p.
27374 (inline_call): Use optimize attribution; use inline_account_function_p.
27375 (inline_transform): Use opt_for_fn.
27376 * ipa-inline.h (inline_account_function_p): Declare.
27377
27378 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27379
27380 PR debug/64663
27381 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27382 mode if bitsize <= 0.
27383 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27384 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27385 sizes and positions.
27386
27387 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27388
27389 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27390 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27391 needed.
27392 (TARGET_ASM_FILE_END): Define.
27393
27394 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27395
27396 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27397 (struct tune_params): Use the enum.
27398 * arm.c (arm_*_tune): Update.
27399 (arm_option_override): Update.
27400
27401 2015-01-20 Richard Biener <rguenther@suse.de>
27402
27403 PR ipa/64684
27404 * ipa-reference.c (add_static_var): Inline ...
27405 (analyze_function): ... here after splitting out from ...
27406 (is_proper_for_analysis): ... this.
27407
27408 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27409
27410 PR target/64149
27411 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27412 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27413 replace the conditional with it's true branch.
27414 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27415 (arm_lra_p): Remove.
27416
27417 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27418
27419 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27420
27421 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27422
27423 * config/tilegx/mul-tables.c: Move symtab.h include after
27424 coretypes.h include.
27425 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27426 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27427 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27428 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27429 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27430
27431 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27432
27433 PR bootstrap/64676
27434 Revert:
27435 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27436
27437 PR rtl-optimization/64081
27438 * loop-iv.c (def_pred_latch_p): New function.
27439 (latch_dominating_def): Allow specific cases with non-single
27440 definitions.
27441 (iv_get_reaching_def): Likewise.
27442 (check_complex_exit_p): New function.
27443 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27444 with exits not executing on any iteration.
27445
27446 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27447
27448 PR lto/45375
27449 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27450 to set branch cost.
27451
27452 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27453
27454 PR lto/45375
27455 * i386.c (gate): Check flag_expensive_optimizations and
27456 optimize_size.
27457 (ix86_option_override_internal): Drop optimize_size condition
27458 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27459 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27460 MASK_PREFER_AVX128.
27461 (ix86_avx256_split_vector_move_misalign,
27462 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27463 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27464 optimize_insn_for_speed_p check.
27465
27466 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27467
27468 * config/mips/mips.h (FP_ASM_SPEC): New define.
27469 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27470 instead.
27471
27472 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27473
27474 PR target/53988
27475 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27476 nullptr for insn when reaching the first insn.
27477 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27478 (sh_insn_operands_modified_between_p): Add nullptr check.
27479 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27480 sign extending mem load if the insn contains any UNSPEC or
27481 UNSPEC_VOLATILE.
27482
27483 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27484
27485 * params.def (inline-unit-growth): Drop to 15%.
27486 * invoke.texi (inline-unit-growth): Document change.
27487
27488 2015-01-19 Martin Liska <mliska@suse.cz>
27489
27490 PR ipa/64668
27491 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27492 function for second argument of OBJ_TYPE_REF.
27493
27494 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27495
27496 PR ipa/64218
27497 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27498 whether function is an alias.
27499
27500 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27501
27502 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27503 cases.
27504
27505 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27506
27507 PR rtl-optimization/64671
27508 * lra-remat.c (operand_to_remat): Don't consider jump and call
27509 insns.
27510
27511 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27512
27513 PR target/59828
27514 * config/rs6000/default64.h: Include rs6000-cpus.def.
27515 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27516 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27517 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27518 and POWER8.
27519 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27520 POWER8.
27521 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27522 pseudo-op to specify assembler dialect.
27523
27524 2015-01-19 Martin Liska <mliska@suse.cz>
27525
27526 PR ipa/64664
27527 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27528 Handle safe potentially removed nodes during filtering.
27529
27530 2015-01-19 Martin Liska <mliska@suse.cz>
27531
27532 * doc/extend.texi (no_icf): Add new attribute description.
27533 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27534 where the pass attempts to merge a function with no_icf attribute.
27535
27536 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27537
27538 PR target/64532
27539 * doc/md.texi (ARM Options): Document register constraints.
27540
27541 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27542 Andrew Pinski <apinski@cavium.com>
27543
27544 PR target/64304
27545 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27546 (ashl<mode>3): Don't expand if operands[2] is not constant.
27547
27548 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27549
27550 PR target/64448
27551 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27552 Match xor-and-xor RTL pattern.
27553
27554 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27555
27556 PR rtl-optimization/64081
27557 * loop-iv.c (def_pred_latch_p): New function.
27558 (latch_dominating_def): Allow specific cases with non-single
27559 definitions.
27560 (iv_get_reaching_def): Likewise.
27561 (check_complex_exit_p): New function.
27562 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27563 with exits not executing on any iteration.
27564
27565 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27566
27567 * common.opt (fgraphite): Fix a typo.
27568
27569 2015-01-19 Felix Yang <felix.yang@huawei.com>
27570
27571 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27572 pattern.
27573 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27574 uminp, smax_nanp, smin_nanp): New builtins.
27575 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27576 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27577 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27578 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27579 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27580 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27581 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27582 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27583 vpminnms_f32): Rewrite using builtin functions.
27584
27585 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27586
27587 PR libgomp/64625
27588 * omp-low.c (offload_symbol_decl): Remove variable.
27589 (get_offload_symbol_decl): Remove function.
27590 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27591 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27592 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27593 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27594 BUILT_IN_GOACC_UPDATE don't pass it at all.
27595
27596 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27597
27598 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27599 callers.
27600
27601 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27602
27603 * ipa-chkp.c (chkp_produce_thunks): Add early param
27604 to split thunks production into two passes. Keep
27605 'always_inline' function bodies after the first pass.
27606 (pass_data_ipa_chkp_early_produce_thunks): New.
27607 (pass_ipa_chkp_early_produce_thunks): New.
27608 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27609 chkp_produce_thunks signature.
27610 (make_pass_ipa_chkp_early_produce_thunks): New.
27611 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27612 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27613 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27614
27615 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27616
27617 * cgraph.c (cgraph_node::dump): Dump profile flags.
27618
27619 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27620
27621 PR target/64652
27622 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27623 reg appear first in the parallel.
27624
27625 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27626
27627 * ipa-reference.c (set_reference_optimization_summary,
27628 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27629 disabled.
27630 (ignore_module_statics): New static var.
27631 (propagate_bits): If ipa-reference is disabled, do not look into local
27632 properties.
27633 (analyze_function): Disable analysis when ipa_reference is disabled.
27634 (generate_summary): Do not dump when reference is disabled;
27635 collect vars accessed from functions with ipa-reference disabled.
27636 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27637 node flags.
27638 (gate): Enable for LTO.
27639 (ignore_edge_p): New function.
27640 (propagate): Skip functions w/o ipa-reference analysis.
27641 * optc-save-gen.awk: Handle optimize_debug correctly.
27642 * opth-gen.awk: Likewise.
27643 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27644 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27645 fira-share-save-slots, fira-share-spill-slots,
27646 fmodulo-sched-allow-regmoves, fpartial-inlining,
27647 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27648 ftracer, ftree-parallelize-loops, fassociative-math,
27649 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27650 Optimization
27651 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27652 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27653 Optimization.
27654 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27655 Fix for IPA.
27656
27657 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27658
27659 PR ipa/64378
27660 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27661 flag correctly.
27662 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27663
27664 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27665
27666 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27667 Remove duplicate option listings.
27668
27669 2015-01-18 Felix Yang <felix.yang@huawei.com>
27670
27671 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27672 (autofdo_source_profile::get_callsite_total_count,
27673 function_instance::get_function_instance_by_decl,
27674 string_table::get_index, string_table::get_index_by_decl,
27675 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27676 Fix comment typos. Reformatting and minor code rearrangement.
27677
27678 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27679
27680 * config/rs6000/rs6000.md (probe_stack): Delete.
27681 (probe_stack_address): New.
27682
27683 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27684
27685 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27686 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27687
27688 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27689
27690 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27691 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27692 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27693 snafu.
27694 (rs6000_libcall_value): Use the new function.
27695
27696 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27697
27698 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27699
27700 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27701
27702 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27703 implement a more precise life analysis for it during backward scan.
27704
27705 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27706
27707 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27708
27709 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27710
27711 PR rtl-optimization/52773
27712 * calls.c (emit_library_call_value): When pushing arguments use
27713 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27714 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27715 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27716
27717 2015-01-17 Jeff Law <law@redhat.com>
27718
27719 PR rtl-optimization/32790
27720 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27721 not ZERO_EXTEND in SET_DESTs.
27722
27723 2015-01-17 Alan Modra <amodra@gmail.com>
27724
27725 * cprop.c (do_local_cprop): Revert last change.
27726
27727 2015-01-16 DJ Delorie <dj@redhat.com>
27728 Nick Clifton <nickc@redhat.com>
27729
27730 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27731 (addhi3_real): Likewise. Fix [HL+0] syntax.
27732 (subqi3_real): Likewise.
27733 (subhi3_real): Likewise.
27734 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27735 (cbranchhi4_real): Likewise.
27736 (cbranchhi4_real_inverted): Likewise.
27737 (cbranchsi4_real_lt): Likewise.
27738 (cbranchsi4_real_ge): Likewise.
27739 (cbranchsi4_real_ge): Likewise.
27740 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27741 (sub<mode>3_virt): Likewise.
27742 (cbranchqi4_virt): Likewise.
27743 (cbranchhi4_virt): Likewise.
27744 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27745 always use '[reg+imm]' even when imm is zero.
27746 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27747 (rl78_general_operand): New.
27748 (rl78_nonimmediate_operand): New.
27749 (rl78_nonfar_operand): Use them.
27750 (rl78_nonfar_nonimm_operand): Likewise.
27751 (rl78_stack_based_mem): Fix.
27752 * config/rl78/constraints.md (Ibqi): New.
27753 (IBqi): New.
27754 (Wsa): New.
27755 (Wsf): New.
27756 (Cs1): Fix.
27757 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27758 (iorqi3): Likewise.
27759 (xorqi3): Likewise.
27760 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27761
27762 * config/rl78/constrains (Qs8): New constraint.
27763 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27764 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27765 * config/rl78/rl78-real.md (update_Z): New attribute.
27766 Update patterns to set it.
27767 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27768 shorter compare and branch sequence can be used.
27769 (cbranchhi4_real): Likewise.
27770 (cbranchhi4_real_inverted): Likewise.
27771
27772 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27773 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27774 address space.
27775 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27776 (rl78_option_override): Allow -mes0 only if C.
27777 (characterize_address): Support subregs of symbol_refs.
27778 (rl78_addr_space_address_mode): Move. Add __near.
27779 (rl78_far_p): Likewise.
27780 (rl78_addr_space_pointer_mode): Likewise.
27781 (rl78_as_legitimate_address): Likewise.
27782 (rl78_addr_space_subset_p): Likewise.
27783 (rl78_addr_space_convert): Likewise.
27784 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27785 symbols with -mes0.
27786 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27787 addressing.
27788 (rl78_alloc_physical_registers_op1): Change logic to prefer
27789 symbol[BC] addressing.
27790 (frodata_section): New.
27791 (rl78_asm_init_sections): Initialize it.
27792 (rl78_select_section): Put __far readonly symbols in .frodata.
27793 (rl78_make_type_far): New.
27794 (rl78_insert_attributes): Force all readonly symbols to be
27795 __far when -mes0.
27796 (rl78_asm_out_integer): New.
27797 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27798 * config/rl78/rl78.opt (-mes0): New.
27799
27800 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27801 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27802 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27803 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27804 (rl78_saddr_p): New.
27805 (rl78_output_aligned_common): New.
27806 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27807 (rl78_handle_saddr_attribute): New.
27808 (rl78_handle_naked_attribute): New.
27809 (rl78_attribute_table): Add saddr.
27810 (rl78_print_operand_1): Don't print '!' on saddr operands.
27811 (rl78_print_operand_1): Strip encodings.
27812 (rl78_sfr_p): New.
27813 (rl78_strip_name_encoding): New.
27814 (rl78_attrlist_to_encoding): New.
27815 (rl78_encode_section_info): New.
27816 (rl78_asm_init_sections): New.
27817 (rl78_select_section): New.
27818 (rl78_output_labelref): New.
27819 (rl78_output_aligned_common): New.
27820 (rl78_asm_out_integer): New.
27821 (rl78_asm_ctor_dtor): New.
27822 (rl78_asm_constructor): New.
27823 (rl78_asm_destructor): New.
27824
27825 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27826 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27827 (transcode_memory_rtx): Update.
27828 (rl78_expand_epilogue): Use A_REG instead of 0.
27829
27830 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27831
27832 * config/arm/arm-protos.h (struct tune_params): New field
27833 sched_autopref_queue_depth.
27834 * config/arm/arm.c (sched-int.h): Include header.
27835 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27836 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27837 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27838 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27839 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27840 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27841 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27842 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27843 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27844 * config/arm/t-arm (arm.o): Update.
27845 * haifa-sched.c (update_insn_after_change): Update.
27846 (rank_for_schedule): Use auto-prefetcher model, if requested.
27847 (autopref_multipass_init): New static function.
27848 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27849 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27850 variable for debug dumps.
27851 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27852 (autopref_multipass_dfa_lookahead_guard): New global function that
27853 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27854 (init_h_i_d): Update.
27855 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27856 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27857 (autopref_multipass_data_): Structure for auto-prefetcher data.
27858 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27859 (struct _haifa_insn_data:autopref_multipass_data): New field.
27860 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27861 (autopref_multipass_dfa_lookahead_guard): Declare.
27862
27863 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27864
27865 * rtlanal.c (get_base_term): Handle SCRATCH.
27866
27867 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27868
27869 * config/aarch64/aarch64.c
27870 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27871 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27872 * config/arm/arm.c
27873 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27874 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27875
27876 2015-01-17 Alan Modra <amodra@gmail.com>
27877
27878 * cprop.c (do_local_cprop): Disallow replacement of fixed
27879 hard registers.
27880
27881 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27882
27883 PR target/62066
27884 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27885 early return 0.
27886
27887 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27888
27889 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27890 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27891
27892 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27893
27894 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27895 * config/arm/thumb1.md: ... Here.
27896
27897 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27898
27899 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27900 TImode for TARGET_32BIT.
27901
27902 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27903
27904 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27905 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27906 as ...
27907 (rs6000_abi_word_mode): New function.
27908
27909 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27910
27911 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27912 instead of UNITS_PER_WORD to describe the size of stack slots.
27913
27914 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27915
27916 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27917 as rs6000_promote_function_mode. Move comment to there.
27918 (rs6000_promote_function_mode): New function.
27919
27920 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27921
27922 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27923 -mpowerpc64 is active.
27924
27925 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27926
27927 PR middle-end/64353
27928 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27929 virtuals on start.
27930
27931 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27932
27933 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27934 introduced in revision 219724.
27935
27936 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27937 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27938
27939 PR target/64263
27940 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27941 destination is not a GP reg.
27942 (*movdi_aarch64): Likewise.
27943
27944 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27945
27946 PR target/64623
27947 * config/rs6000/default64.h: Revert ISA change.
27948
27949 2015-01-16 Richard Biener <rguenther@suse.de>
27950
27951 PR middle-end/64614
27952 * tree-ssa-uninit.c: Include tree-cfg.h.
27953 (MAX_SWITCH_CASES): New define.
27954 (convert_control_dep_chain_into_preds): Handle switch statements.
27955 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27956 (normalize_one_pred_1): Do not split bit-manipulations.
27957 Record (x & CST).
27958
27959 2015-01-16 Richard Biener <rguenther@suse.de>
27960
27961 PR tree-optimization/64568
27962 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27963 complex load rewriting for TARGET_MEM_REFs.
27964
27965 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27966
27967 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27968
27969 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27970
27971 PR target/64149
27972 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27973 variable.
27974 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27975 (aarch64_lra_p): Remove.
27976
27977 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27978
27979 PR target/64363
27980 * ipa-chkp.h (chkp_instrumentable_p): New.
27981 * ipa-chkp.c: Include tree-inline.h.
27982 (chkp_instrumentable_p): New.
27983 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27984 Fix processing of not instrumentable functions.
27985 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27986 not instrumentable functions.
27987 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27988 chkp_instrumentable_p.
27989 * tree-inline.h (copy_forbidden): New.
27990 * tree-inline.c (copy_forbidden): Not static anymore.
27991
27992 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27993
27994 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27995 ptr1, ptr2 unused.
27996
27997 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27998
27999 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28000 type OP_OUT to OP_INOUT.
28001
28002 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28003
28004 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28005 (high x) y) to y if x and y have the same base.
28006
28007 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28008
28009 * config/arm/cortex-a57.md: New.
28010 * config/aarch64/aarch64.md: Include it.
28011 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28012 * config/aarch64/aarch64-tune.md: Regenerate.
28013
28014 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28015
28016 PR target/64015
28017 * ccmp.c (expand_ccmp_next): New function.
28018 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28019 and compare insn sequence.
28020 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28021 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28022 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28023 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28024 (*ccmp_ior): Changed to ccmp_ior<mode>.
28025 (cmp<mode>): New pattern.
28026 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28027 parameters.
28028 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28029
28030 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28031
28032 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28033 _mm256_bsrli_epi128): New.
28034 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28035
28036 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28037
28038 * expmed.c (store_bit_field_using_insv): Improve warning message.
28039 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28040
28041 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28042
28043 PR rtl-optimization/64011
28044 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28045 there is partial overflow.
28046
28047 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28048
28049 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28050 prototype.
28051 (nds32_expand_epilogue_v3pop): Likewise.
28052 * config/nds32/nds32.md (sibcall): Define this for sibling call
28053 optimization.
28054 (sibcall_register): Likewise.
28055 (sibcall_immediate): Likewise.
28056 (sibcall_value): Likewise.
28057 (sibcall_value_register): Likewise.
28058 (sibcall_value_immediate): Likewise.
28059 (sibcall_epilogue): Likewise.
28060 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28061 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28062 (nds32_expand_epilogue_v3pop): Likewise.
28063
28064 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28065
28066 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28067 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28068 (return_internal): New.
28069 (return): Define this named pattern.
28070 (simple_return): Define this named pattern.
28071 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28072 pattern instead of unspec_volatile_func_return.
28073 (nds32_expand_epilogue_v3pop): Likewise.
28074 (nds32_can_use_return_insn): New function.
28075
28076 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28077
28078 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28079 * config/nds32/nds32.md (pop25return): New.
28080 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28081 pop25return pattern.
28082
28083 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28084
28085 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28086 -mforbid-fp-as-gp, and -mex9 options.
28087
28088 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28089
28090 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28091 remove -mgp-direct option.
28092
28093 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28094
28095 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28096 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28097
28098 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28099
28100 * ipa-inline.c (inline_small_functions): Work around hints
28101 cache issue.
28102
28103 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28104
28105 PR target/59710
28106 * doc/invoke.texi (Option Summary): Document new Nios II
28107 -mgpopt= syntax.
28108 (Nios II Options): Likewise.
28109 * config/nios2/nios2.opt: Add -mgpopt= option support.
28110 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28111 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28112 * config/nios2/nios2.c (nios2_option_override): Adjust
28113 -mgpopt defaulting.
28114 (nios2_in_small_data_p): Return true for explicit small data
28115 sections even with -G0.
28116 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28117 option choices.
28118
28119 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28120
28121 PR ipa/64612
28122 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28123 of comdat locals.
28124 (inline_call): Fix removal of aliases.
28125
28126 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28127
28128 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28129 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28130 * opts.c (common_handle_option): Add -fsanitize=vptr.
28131 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28132 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28133 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28134 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28135 (ubsan_expand_vptr_ifn): New prototype.
28136 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28137 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28138 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28139 expand_LOOP_VECTORIZED): Make argument nameless, remove
28140 ATTRIBUTE_UNUSED.
28141 (expand_UBSAN_VPTR): New function.
28142 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28143 in fn spec.
28144 (UBSAN_VPTR): New internal function.
28145 * sanopt.c (tree_map_traits): Renamed to ...
28146 (sanopt_tree_map_traits): ... this.
28147 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28148 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28149 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28150 (maybe_optimize_ubsan_vptr_ifn): New function.
28151 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28152 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28153 -fsanitize=vptr.
28154 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28155 internal calls like pure functions for aliasing, even when they
28156 have other side-effects that prevent making them ECF_PURE.
28157 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28158 (ubsan_expand_vptr_ifn): New function.
28159
28160 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28161
28162 PR rtl-optimization/64110
28163 * stmt.c (parse_output_constraint): Process '^' and '$'.
28164 (parse_input_constraint): Ditto.
28165 * lra-constraints.c (process_alt_operands): Process the new
28166 constraints.
28167 * ira-costs.c (record_reg_classes): Process the new constraint
28168 '^'.
28169 * genoutput.c (indep_constraints): Add '^' and '$'.
28170 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28171 * doc/md.texi: Add description of the new constraints.
28172
28173 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28174 Bernd Schmidt <bernds@codesourcery.com>
28175 Cesar Philippidis <cesar@codesourcery.com>
28176 James Norris <jnorris@codesourcery.com>
28177 Tom de Vries <tom@codesourcery.com>
28178 Ilmir Usmanov <i.usmanov@samsung.com>
28179 Dmitry Bocharnikov <dmitry.b@samsung.com>
28180 Evgeny Gavrin <e.gavrin@samsung.com>
28181 Jakub Jelinek <jakub@redhat.com>
28182
28183 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28184 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28185 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28186 New function types.
28187 * builtins.c: Include "gomp-constants.h".
28188 (expand_builtin_acc_on_device): New function.
28189 (expand_builtin, is_inexpensive_builtin): Handle
28190 BUILT_IN_ACC_ON_DEVICE.
28191 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28192 New macros.
28193 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28194 flag_openmp.
28195 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28196 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28197 i386/intelmic-offload.h.
28198 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28199 to libgomp and its dependencies.
28200 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28201 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28202 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28203 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28204 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28205 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28206 * doc/generic.texi: Update for OpenACC changes.
28207 * doc/gimple.texi: Likewise.
28208 * doc/invoke.texi: Likewise.
28209 * doc/sourcebuild.texi: Likewise.
28210 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28211 GF_OMP_FOR_KIND_OACC_LOOP.
28212 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28213 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28214 GF_OMP_TARGET_KIND_OACC_UPDATE,
28215 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28216 Dump more data.
28217 * gimple.c: Update comments for OpenACC changes.
28218 * gimple.def: Likewise.
28219 * gimple.h: Likewise.
28220 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28221 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28222 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28223 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28224 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28225 appropriate place.
28226 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28227 * gimplify.c: Include "gomp-constants.h".
28228 Update comments for OpenACC changes.
28229 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28230 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28231 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28232 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28233 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28234 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28235 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28236 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28237 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28238 OMP_CLAUSE_SEQ.
28239 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28240 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28241 OMP_CLAUSE_SET_MAP_KIND.
28242 (gimplify_oacc_cache): New function.
28243 (gimplify_omp_for): Handle OACC_LOOP.
28244 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28245 OACC_DATA.
28246 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28247 OACC_EXIT_DATA, OACC_UPDATE.
28248 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28249 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28250 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28251 (gimplify_body): Consider flag_openacc next to flag_openmp.
28252 * lto-streamer-out.c: Include "gomp-constants.h".
28253 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28254 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28255 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28256 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28257 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28258 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28259 * omp-low.c: Include "gomp-constants.h".
28260 Update comments for OpenACC changes.
28261 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28262 members.
28263 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28264 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28265 (create_omp_child_function, scan_omp_for, scan_omp_target)
28266 (check_omp_nesting_restrictions, lower_reduction_clauses)
28267 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28268 Update for OpenACC changes.
28269 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28270 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28271 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28272 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28273 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28274 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28275 OMP_CLAUSE_MAP_*.
28276 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28277 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28278 (expand_omp_target, lower_omp_target): Handle
28279 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28280 GF_OMP_TARGET_KIND_OACC_UPDATE,
28281 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28282 GF_OMP_TARGET_KIND_OACC_DATA.
28283 (pass_expand_omp::execute, execute_lower_omp)
28284 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28285 flag_openmp.
28286 (offload_symbol_decl): New variable.
28287 (oacc_get_reduction_array_id, oacc_max_threads)
28288 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28289 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28290 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28291 (oacc_gimple_assign, oacc_initialize_reduction_data)
28292 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28293 functions.
28294 (is_targetreg_ctx): Remove function.
28295 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28296 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28297 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28298 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28299 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28300 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28301 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28302 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28303 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28304 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28305 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28306 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28307 * tree-core.h: Update comments for OpenACC changes.
28308 (enum omp_clause_map_kind): Remove.
28309 (struct tree_omp_clause): Change type of map_kind member from enum
28310 omp_clause_map_kind to unsigned char.
28311 * tree-inline.c: Update comments for OpenACC changes.
28312 * tree-nested.c: Likewise. Include "gomp-constants.h".
28313 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28314 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28315 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28316 OMP_CLAUSE_SET_MAP_KIND.
28317 * tree-pretty-print.c: Include "gomp-constants.h".
28318 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28319 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28320 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28321 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28322 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28323 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28324 instead of OMP_CLAUSE_MAP_*.
28325 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28326 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28327 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28328 * tree-streamer-in.c: Include "gomp-constants.h".
28329 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28330 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28331 * tree-streamer-out.c: Include "gomp-constants.h".
28332 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28333 OMP_CLAUSE_MAP_*.
28334 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28335 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28336 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28337 * tree.c (omp_clause_num_ops): Update accordingly.
28338 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28339 Likewise.
28340 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28341 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28342 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28343 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28344 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28345 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28346 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28347 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28348 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28349 to flag_openmp.
28350 * config/i386/intelmic-offload.h: New file.
28351 * config/nvptx/offload.h: Likewise.
28352
28353 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28354
28355 * explow.h: Remove duplicate contents.
28356 * dojump.h: Likewise.
28357
28358 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28359
28360 * arm.c (arm_xgene_tune): Add default initializer for instruction
28361 fusion.
28362
28363 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28364
28365 PR ipa/64068
28366 PR ipa/64559
28367 * ipa.c (symbol_table::remove_unreachable_nodes):
28368 Do not put abstract origins into boundary.
28369
28370 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28371
28372 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28373 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28374
28375 2015-01-15 Steve Ellcey <sellcey@mips.com>
28376
28377 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28378 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28379 builtins.def, and chkp-builtins.def.
28380
28381 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28382
28383 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28384 ISA 2.7 (POWER8).
28385
28386 2015-01-15 Richard Biener <rguenther@suse.de>
28387
28388 PR tree-optimization/61743
28389 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28390 information on PHIs for some simple cases.
28391
28392 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28393
28394 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28395 Include xgene1.md.
28396 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28397 * config/arm/arm-cores.def (xgene1): New entry.
28398 * config/arm/arm-tables.opt: Regenerate.
28399 * config/arm/arm-tune.md: Regenerate.
28400 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28401
28402 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28403
28404 * tree-if-conv.c: Include hash-map.h.
28405 (aggressive_if_conv): New variable.
28406 (fold_build_cond_expr): Add simplification of non-zero condition.
28407 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28408 destination block is not always executed.
28409 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28410 than two predecessors if AGGRESSIVE_IF_CONV is true.
28411 (if_convertible_stmt_p): Fix commentary.
28412 (all_preds_critical_p): New function.
28413 (has_pred_critical_p): New function.
28414 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28415 BB can have more than two predecessors and all incoming edges can be
28416 critical.
28417 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28418 to compute predicate for true edge.
28419 (find_phi_replacement_condition): Delete this function.
28420 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28421 Allow interchange PHI arguments if EXTENDED is false.
28422 Change check that block containing reduction statement candidate
28423 is predecessor of phi-block since phi may have more than two arguments.
28424 (phi_args_hash_traits): New helper structure.
28425 (struct phi_args_hash_traits): New type.
28426 (phi_args_hash_traits::hash): New function.
28427 (phi_args_hash_traits::equal_keys): New function.
28428 (gen_phi_arg_condition): New function.
28429 (predicate_scalar_phi): Add handling of phi nodes with more than two
28430 arguments, delete COND and TRUE_BB arguments, insert body of
28431 find_phi_replacement_condition to predicate ordinary phi nodes.
28432 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28433 delete call of find_phi_replacement_condition and invoke
28434 predicate_scalar_phi with two arguments.
28435 (insert_gimplified_predicates): Add assert that non-predicated block
28436 don't have statements to insert.
28437 (ifcvt_split_critical_edges): New function.
28438 (ifcvt_split_def_stmt): Likewise.
28439 (ifcvt_walk_pattern_tree): Likewise.
28440 (stmt_is_root_of_bool_pattern): Likewise.
28441 (ifcvt_repair_bool_pattern): Likewise.
28442 (ifcvt_local_dce): Likewise.
28443 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28444 is copy of inner or outer loop force_vectorize field, invoke
28445 ifcvt_split_critical_edges, ifcvt_local_dce and
28446 ifcvt_repair_bool_pattern for aggressive if-conversion.
28447
28448 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28449
28450 * config/aarch64/aarch64.md: Include xgene1.md.
28451 * config/aarch64/xgene1.md: New file.
28452
28453 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28454
28455 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28456 xgene1 (APM XGene-1) core definition.
28457 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28458 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28459 * doc/invoke.texi: Document -mcpu=xgene1.
28460
28461 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28462
28463 * dojump.h: New header file.
28464 * explow.h: Likewise.
28465 * expr.h: Remove includes.
28466 Move expmed.c prototypes to expmed.h.
28467 Move dojump.c prototypes to dojump.h.
28468 Move alias.c prototypes to alias.h.
28469 Move explow.c prototypes to explow.h.
28470 Move calls.c prototypes to calls.h.
28471 Move emit-rtl.c prototypes to emit-rtl.h.
28472 Move varasm.c prototypes to varasm.h.
28473 Move stmt.c prototypes to stmt.h.
28474 (saved_pending_stack_adjust): Move to dojump.h.
28475 (adjust_address): Move to explow.h.
28476 (adjust_address_nv): Move to emit-rtl.h.
28477 (adjust_bitfield_address): Likewise.
28478 (adjust_bitfield_address_size): Likewise.
28479 (adjust_bitfield_address_nv): Likewise.
28480 (adjust_automodify_address_nv): Likewise.
28481 * explow.c (expr_size): Move to expr.c.
28482 (int_expr_size): Likewise.
28483 (tree_expr_size): Likewise.
28484 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28485 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28486 * genemit.c (main): Generate includes statistics.h, real.h,
28487 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28488 stmt.h.
28489 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28490 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28491 explow.h, emit-rtl.h, stmt.h.
28492 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28493 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28494 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28495 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28496 emit-rtl.h, varasm.h, stmt.h.
28497 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28498 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28499 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28500 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28501 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28502 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28503 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28504 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28505 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28506 tm.h tree.h varasm.h vec.h wide-int.h.
28507 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28508 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28509 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28510 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28511 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28512 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28513 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28514 * loop-iv.c: Likewise.
28515 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28516 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28517 statistics.h stmt.h tree.h varasm.h wide-int.h.
28518 * lra-constraints.c: Likewise.
28519 * lra-eliminations.c: Likewise.
28520 * lra-lives.c: Likewise.
28521 * lra-remat.c: Likewise.
28522 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28523 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28524 statistics.h stmt.h tree.h varasm.h wide-int.h.
28525 * hw-doloop.c: Likewise.
28526 * ira-color.c: Likewise.
28527 * ira-emit.c: Likewise.
28528 * loop-doloop.c: Likewise.
28529 * loop-invariant.c: Likewise.
28530 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28531 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28532 statistics.h stmt.h tree.h varasm.h wide-int.h.
28533 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28534 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28535 statistics.h stmt.h tree.h varasm.h wide-int.h.
28536 * combine-stack-adj.c: Likewise.
28537 * cse.c: Likewise.
28538 * ddg.c: Likewise.
28539 * ifcvt.c: Likewise.
28540 * ira-costs.c: Likewise.
28541 * jump.c: Likewise.
28542 * lra-coalesce.c: Likewise.
28543 * lra-spills.c: Likewise.
28544 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28545 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28546 stmt.h varasm.h wide-int.h.
28547 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28548 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28549 varasm.h.
28550 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28551 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28552 statistics.h stmt.h varasm.h wide-int.h.
28553 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28554 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28555 varasm.h wide-int.h.
28556 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28557 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28558 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28559 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28560 statistics.h stmt.h.
28561 * config/tilepro/tilepro.c: Likewise.
28562 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28563 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28564 * config/pdp11/pdp11.c: Likewise.
28565 * config/xtensa/xtensa.c: Likewise.
28566 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28567 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28568 varasm.h.
28569 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28570 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28571 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28572 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28573 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28574 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28575 * rtl-chkp.c: Likewise.
28576 * tree-chkp-opt.c: Likewise.
28577 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28578 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28579 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28580 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28581 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28582 statistics.h stmt.h.
28583 * tree-vect-data-refs.c: Likewise.
28584 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28585 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28586 rtl.h statistics.h stmt.h varasm.h.
28587 * internal-fn.c: Likewise.
28588 * ipa-icf-gimple.c: Likewise.
28589 * lto-section-out.c: Likewise.
28590 * tree-data-ref.c: Likewise.
28591 * tree-nested.c: Likewise.
28592 * tree-outof-ssa.c: Likewise.
28593 * tree-predcom.c: Likewise.
28594 * tree-pretty-print.c: Likewise.
28595 * tree-scalar-evolution.c: Likewise.
28596 * tree-ssa-strlen.c: Likewise.
28597 * tree-vect-loop.c: Likewise.
28598 * tree-vect-patterns.c: Likewise.
28599 * tree-vect-slp.c: Likewise.
28600 * tree-vect-stmts.c: Likewise.
28601 * tsan.c: Likewise.
28602 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28603 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28604 stmt.h.
28605 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28606 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28607 statistics.h stmt.h varasm.h.
28608 * loop-unroll.c: Likewise.
28609 * ubsan.c: Likewise.
28610 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28611 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28612 stmt.h varasm.h.
28613 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28614 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28615 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28616 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28617 statistics.h stmt.h.
28618 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28619 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28620 statistics.h stmt.h varasm.h.
28621 * gimple-match-head.c: Likewise.
28622 * lto-cgraph.c: Likewise.
28623 * lto-section-in.c: Likewise.
28624 * lto-streamer-in.c: Likewise.
28625 * lto-streamer-out.c: Likewise.
28626 * tree-affine.c: Likewise.
28627 * tree-cfg.c: Likewise.
28628 * tree-cfgcleanup.c: Likewise.
28629 * tree-if-conv.c: Likewise.
28630 * tree-into-ssa.c: Likewise.
28631 * tree-ssa-alias.c: Likewise.
28632 * tree-ssa-copyrename.c: Likewise.
28633 * tree-ssa-dse.c: Likewise.
28634 * tree-ssa-forwprop.c: Likewise.
28635 * tree-ssa-live.c: Likewise.
28636 * tree-ssa-math-opts.c: Likewise.
28637 * tree-ssa-pre.c: Likewise.
28638 * tree-ssa-sccvn.c: Likewise.
28639 * tree-tailcall.c: Likewise.
28640 * tree-vect-generic.c: Likewise.
28641 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28642 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28643 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28644 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28645 * varasm.c: Likewise.
28646 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28647 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28648 varasm.h.
28649 * init-regs.c: Likewise.
28650 * ira.c: Likewise.
28651 * omp-low.c: Likewise.
28652 * stack-ptr-mod.c: Likewise.
28653 * tree-ssa-reassoc.c: Likewise.
28654 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28655 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28656 varasm.h.
28657 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28658 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28659 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28660 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28661 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28662 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28663 * tree-ssa-phiopt.c: Likewise.
28664 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28665 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28666 * config/fr30/fr30.c: Likewise.
28667 * config/frv/frv.c: Likewise.
28668 * expr.c: Likewise.
28669 * final.c: Likewise.
28670 * optabs.c: Likewise.
28671 * passes.c: Likewise.
28672 * simplify-rtx.c: Likewise.
28673 * stmt.c: Likewise.
28674 * toplev.c: Likewise.
28675 * var-tracking.c: Likewise.
28676 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28677 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28678 * lower-subreg.c: Likewise.
28679 * postreload-gcse.c: Likewise.
28680 * ree.c: Likewise.
28681 * reginfo.c: Likewise.
28682 * store-motion.c: Likewise.
28683 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28684 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28685 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28686 fixed-value.h hashtab.h statistics.h stmt.h.
28687 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28688 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28689 * except.c: Likewise.
28690 * explow.c: Likewise.
28691 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28692 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28693 varasm.h.
28694 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28695 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28696 * tree-ssa-structalias.c: Likewise.
28697 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28698 fixed-value.h insn-config.h real.h statistics.h.
28699 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28700 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28701 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28702 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28703 * cfgbuild.c: Likewise.
28704 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28705 fixed-value.h real.h rtl.h statistics.h stmt.h.
28706 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28707 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28708 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28709 fixed-value.h real.h statistics.h stmt.h.
28710 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28711 fixed-value.h real.h statistics.h stmt.h varasm.h.
28712 * cprop.c: Likewise.
28713 * modulo-sched.c: Likewise.
28714 * postreload.c: Likewise.
28715 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28716 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28717 statistics.h stmt.h varasm.h.
28718 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28719 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28720 rtl.h statistics.h stmt.h varasm.h.
28721 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28722 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28723 varasm.h.
28724 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28725 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28726 varasm.h.
28727 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28728 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28729 varasm.h.
28730 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28731 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28732 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28733 function.h real.h statistics.h stmt.h varasm.h.
28734 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28735 insn-config.h real.h statistics.h stmt.h.
28736 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28737 statistics.h stmt.h.
28738 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28739 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28740 statistics.h stmt.h varasm.h.
28741 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28742 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28743 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28744 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28745 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28746 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28747 statistics.h stmt.h varasm.h.
28748 * ipa-polymorphic-call.c: Likewise.
28749 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28750 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28751 statistics.h stmt.h.
28752 * config/c6x/c6x.c: Likewise.
28753 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28754 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28755 statistics.h stmt.h varasm.h.
28756 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28757 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28758 stmt.h varasm.h.
28759 * ipa-split.c: Likewise.
28760 * tree-eh.c: Likewise.
28761 * tree-ssa-dce.c: Likewise.
28762 * tree-ssa-loop-niter.c: Likewise.
28763 * tree-vrp.c: Likewise.
28764 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28765 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28766 stmt.h.
28767 * config/nds32/nds32-fp-as-gp.c: Likewise.
28768 * config/nds32/nds32-intrinsic.c: Likewise.
28769 * config/nds32/nds32-isr.c: Likewise.
28770 * config/nds32/nds32-md-auxiliary.c: Likewise.
28771 * config/nds32/nds32-memory-manipulation.c: Likewise.
28772 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28773 * config/nds32/nds32-predicates.c: Likewise.
28774 * config/nds32/nds32.c: Likewise.
28775 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28776 fixed-value.h hashtab.h real.h statistics.h.
28777 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28778 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28779 * config/arm/arm.c: Likewise.
28780 * config/avr/avr.c: Likewise.
28781 * config/bfin/bfin.c: Likewise.
28782 * config/h8300/h8300.c: Likewise.
28783 * config/i386/i386.c: Likewise.
28784 * config/ia64/ia64.c: Likewise.
28785 * config/iq2000/iq2000.c: Likewise.
28786 * config/m32c/m32c.c: Likewise.
28787 * config/m32r/m32r.c: Likewise.
28788 * config/m68k/m68k.c: Likewise.
28789 * config/mcore/mcore.c: Likewise.
28790 * config/mep/mep.c: Likewise.
28791 * config/mips/mips.c: Likewise.
28792 * config/mn10300/mn10300.c: Likewise.
28793 * config/moxie/moxie.c: Likewise.
28794 * config/pa/pa.c: Likewise.
28795 * config/rl78/rl78.c: Likewise.
28796 * config/rx/rx.c: Likewise.
28797 * config/s390/s390.c: Likewise.
28798 * config/sh/sh.c: Likewise.
28799 * config/sparc/sparc.c: Likewise.
28800 * config/spu/spu.c: Likewise.
28801 * config/stormy16/stormy16.c: Likewise.
28802 * config/v850/v850.c: Likewise.
28803 * config/vax/vax.c: Likewise.
28804 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28805 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28806 * config/msp430/msp430.c: Likewise.
28807 * predict.c: Likewise.
28808 * value-prof.c: Likewise.
28809 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28810 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28811 * config/microblaze/microblaze.c: Likewise.
28812 * config/nios2/nios2.c: Likewise.
28813 * config/rs6000/rs6000.c: Likewise.
28814 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28815 insn-config.h real.h rtl.h statistics.h stmt.h.
28816 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28817 insn-config.h real.h statistics.h stmt.h.
28818 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28819 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28820 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28821 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28822 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28823 fixed-value.h real.h statistics.h stmt.h.
28824 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28825 fixed-value.h statistics.h stmt.h.
28826 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28827 stmt.h.
28828
28829 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28830
28831 * gengtype.c (create_user_defined_type): Workaround
28832 -Wmaybe-uninitialized false positives.
28833 * cse.c (fold_rtx): Likewise.
28834 * loop-invariant.c (gain_for_invariant): Likewise.
28835
28836 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28837
28838 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28839 set the memory attributes in all cases but clear MEM_EXPR if need be.
28840
28841 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28842
28843 PR tree-optimization/64434
28844 * cfgexpand.c (reorder_operands): New function.
28845 (expand_gimple_basic_block): Insert call of reorder_operands if
28846 optimized is true.
28847
28848 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28849
28850 * config/mips/micromips.md (*swp): Remove explicit parallel.
28851 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28852 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28853 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28854 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28855 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28856 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28857 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28858 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28859 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28860 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28861 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28862 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28863 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28864 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28865 (mips_wrdsp): Likewise.
28866 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28867 parallel.
28868 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28869 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28870 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28871 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28872 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28873 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28874 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28875 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28876 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28877
28878 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28879
28880 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28881 (mips_print_operand): Support 'y' to print exact log2 in decimal
28882 of a const_int.
28883 * config/mips/mips.h (ISA_HAS_LSA): New define.
28884 (ISA_HAS_DLSA): Likewise.
28885 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28886 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28887
28888 2015-01-15 Martin Liska <mliska@suse.cz>
28889
28890 PR target/64377
28891 * optc-save-gen.awk: Add support for array types.
28892
28893 2015-01-15 Richard Biener <rguenther@suse.de>
28894
28895 PR middle-end/64365
28896 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28897 for MEM_REF access functions with the same base can never partially
28898 overlap.
28899
28900 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28901
28902 * common.opt: New option -fstack-protector-explicit.
28903 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28904 (stack_protect_decl_phase): Handle stack_protect attribute for
28905 explicit stack protection requests.
28906 (expand_used_vars): Similarly.
28907 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28908 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28909 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28910
28911 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28912
28913 PR target/53988
28914 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28915 reg-reg copies.
28916 (sh_extending_set_of_reg): New struct.
28917 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28918 sh_remove_reg_dead_or_unused_notes): New Declarations.
28919 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28920 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28921 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28922 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28923 convert to insn_and_split and use new function sh_split_tst_subregs.
28924
28925 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28926
28927 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28928 option.
28929 (Optimization Options): Move -fuse-ld documentation to...
28930 (Link Options): ...here.
28931
28932 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28933
28934 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28935 offsets.
28936 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28937 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28938 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28939 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28940 instead of ZR for the memory operand of LL/SC.
28941 (compare_and_swap_12, sync_add<mode>): Likewise.
28942 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28943 (sync_new_<optab>_12, sync_nand_12): Likewise.
28944 (sync_old_nand_12, sync_new_nand_12): Likewise.
28945 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28946 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28947 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28948 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28949 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28950 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28951 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28952 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28953 * doc/md.texi (ZC): Update description.
28954
28955 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28956
28957 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28958 memory model is CONSUME.
28959 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28960 expand_builtin_atomic_store): Change invalid memory model errors to
28961 warnings.
28962 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28963 and issue warning for CONSUME.
28964
28965 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28966
28967 * lto-cgraph: Update function comments for
28968 lto_symtab_encoder_encode_*.
28969
28970 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28971
28972 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28973
28974 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28975
28976 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28977 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28978 lto_stream_offload_p instead.
28979 * lto-streamer.h (select_what_to_stream): Remove argument.
28980 * passes.c (ipa_write_summaries): Likewise.
28981 * tree-pass.h (ipa_write_summaries): Likewise.
28982
28983 2015-01-14 Richard Biener <rguenther@suse.de>
28984
28985 PR tree-optimization/59354
28986 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28987 groups larger than the slp group size as having gaps.
28988
28989 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28990
28991 PR middle-end/59448
28992 * builtins.c (get_memmodel): Promote consume to acquire always.
28993
28994 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28995
28996 PR target/64386
28997 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28998 V32HImode.
28999
29000 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29001
29002 PR target/64393
29003 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29004 Enable AVX512BW.
29005 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29006 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29007 AVX512VBMI, as it implies AVX512BW.
29008
29009 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29010
29011 PR target/64387
29012 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29013 (vec_unpacks_hi_v16sf): Ditto.
29014
29015 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29016
29017 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29018 is not available.
29019
29020 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29021
29022 * doc/invoke.texi (mapcs): Mention deprecation.
29023 (mapcs-frame): Likewise.
29024
29025 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29026
29027 PR target/64453
29028 * config/arm/arm.c (callee_saved_reg_p): Define.
29029 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29030 register is callee saved instead of !call_used_regs[reg].
29031 (thumb1_compute_save_reg_mask): Likewise.
29032
29033 2015-01-14 Hale Wang <hale.wang@arm.com>
29034
29035 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29036 Cortex-M7.
29037
29038 2015-01-14 Richard Biener <rguenther@suse.de>
29039
29040 PR lto/64415
29041 * tree-inline.c (insert_debug_decl_map): Check destination
29042 function MAY_HAVE_DEBUG_STMTS.
29043 (insert_init_debug_bind): Likewise.
29044 (insert_init_stmt): Remove redundant check.
29045 (remap_gimple_stmt): Drop debug stmts if the destination
29046 function has var-tracking assignments disabled.
29047
29048 2015-01-14 Martin Liska <mliska@suse.cz>
29049
29050 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29051 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29052
29053 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29054
29055 PR target/64460
29056 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29057 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29058
29059 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29060
29061 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29062 level from an ARCH; do not inject the default.
29063 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29064 MIPS_ISA_LEVEL_SPEC.
29065 (MIPS_ISA_NAN2008_SPEC): Update comment.
29066 (BASE_DRIVER_SELF_SPECS): Likewise.
29067 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29068 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29069 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29070 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29071 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29072
29073 2015-01-14 Richard Biener <rguenther@suse.de>
29074
29075 PR tree-optimization/64493
29076 PR tree-optimization/64495
29077 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29078 assign the proper vectorized PHI to the inner loop exit PHIs.
29079
29080 2015-01-14 Joey Ye <joey.ye@arm.com>
29081
29082 * config/arm/arm.c (arm_compute_save_reg_mask):
29083 Do not save lr in case of tail call.
29084 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29085
29086 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29087
29088 * tree-vrp.c (check_array_ref): Emit more warnings
29089 for warn_array_bounds >= 2.
29090 * common.opt: New option -Warray-bounds=.
29091 * doc/invoke.texi: Document -Warray-bounds=.
29092
29093 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29094
29095 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29096 (mforbid-fp-as-gp): Remove.
29097 (mex9): Remove.
29098 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29099 (nds32_symbol_load_store_p): Remove.
29100 (nds32_fp_as_gp_check_available): Clean up implementation.
29101 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29102 cases.
29103 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29104 fp-as-gp and ex9 cases.
29105
29106 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29107
29108 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29109 for bintuils bug 14342.
29110 (init_ic_make_global_vars): Likewise.
29111 (gimple_init_edge_profiler): Likewise.
29112 (gimple_gen_ic_func_profiler): Likewise.
29113
29114 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29115
29116 * ipa-inline.c (inline_small_functions): Swap the operands in
29117 enum.
29118
29119 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29120
29121 PR ipa/64481
29122 * ipa-inline-analysis.c (node_growth_cache): Remove.
29123 (initialize_growth_caches): Do not initialize it.
29124 (free_growth_caches): Do not free it.
29125 (do_estimate_growth): Rename to ...
29126 (estimate_growth): ... this one; drop growth cache code.
29127 (growth_likely_positive): Always go the heuristics way.
29128 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29129 (reset_edge_caches): Do not reset node growth.
29130 (heap_edge_removal_hook): Do not maintain cache.
29131 (inline_small_functions): Likewise; strenghten sanity check.
29132 (ipa_inline): Do not maintain caches.
29133 * ipa-inline.h (node_growth_cache): Remove.
29134 (do_estimate_growth): Remove to ...
29135 (estimate_growth): this one; remove inline version.
29136 (reset_node_growth_cache): Remove.
29137
29138 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29139
29140 PR ipa/64565
29141 * ipa-inline.c (inline_small_functions): Update callee keys after
29142 resolving speculation
29143 (inline_small_functions): Always check monotonicity of the queue.
29144
29145 2015-01-13 Marek Polacek <polacek@redhat.com>
29146
29147 PR middle-end/64391
29148 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29149
29150 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29151
29152 PR rtl-optimization/64286
29153 * ree.c (combine_reaching_defs): Move part of comment earlier,
29154 remove !SCALAR_INT_MODE_P check.
29155 (add_removable_extension): Don't add vector mode
29156 extensions if all uses of the source register aren't the same
29157 vector extensions.
29158
29159 2015-01-13 Renlin Li <renlin.li@arm.com>
29160
29161 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29162 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29163
29164 2015-01-13 Martin Liska <mliska@suse.cz>
29165
29166 * ipa-icf.c (sem_function::equals_private): Call new functions
29167 cl_target_option_print_diff and cl_optimization_print_diff.
29168 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29169 (cl_optimization_print_diff): Likewise.
29170 * opth-gen.awk: Likewise.
29171
29172 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29173
29174 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29175 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29176 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29177 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29178 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29179 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29180
29181 2015-01-13 Andrew Pinski <apinski@cavium.com>
29182
29183 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29184 instead of src mode.
29185
29186 2015-01-13 Richard Biener <rguenther@suse.de>
29187
29188 PR lto/64373
29189 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29190 DECL_CONTEXT.
29191
29192 2015-01-13 Andrew Pinski <apinski@cavium.com>
29193
29194 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29195 volatile mems.
29196 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29197
29198 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29199
29200 PR middle-end/63974
29201 * cfgexpand.c (expand_computed_goto): Don't call
29202 convert_memory_address here.
29203
29204 2015-01-13 Richard Biener <rguenther@suse.de>
29205
29206 PR tree-optimization/64406
29207 * tree-loop-distibution.c (pass_loop_distribution::execute):
29208 Reset the SCEV hashtable if we distributed anything.
29209
29210 2015-01-13 Richard Biener <rguenther@suse.de>
29211
29212 PR tree-optimization/64404
29213 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29214 SLP types for CSEd loads.
29215
29216 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29217
29218 PR tree-optimization/64436
29219 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29220 merge of two symbolic numbers for a bitwise OR to ...
29221 (perform_symbolic_merge): This. Also fix computation of the range and
29222 end of the symbolic number corresponding to the result of a bitwise OR.
29223
29224 2015-01-13 Richard Biener <rguenther@suse.de>
29225
29226 PR tree-optimization/64568
29227 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29228 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29229
29230 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29231
29232 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29233 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29234
29235 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29236
29237 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29238 target-specific symbol_ref flag.
29239 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29240 resides in rodata section.
29241 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29242 (nds32_encode_section_info): New function.
29243
29244 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29245
29246 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29247 clobbers TA_REGNUM if large code model is specified.
29248 (call_register): Likewise.
29249 (call_immediate): Likewise.
29250 (call_value): Likewise.
29251 (call_value_register): Likewise.
29252 (call_value_immediate): Likewise.
29253
29254 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29255
29256 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29257 (TARGET_CMODEL_MEDIUM): New macro.
29258 (TARGET_CMODEL_LARGE): New macro.
29259 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29260 code model setting in assembly code.
29261
29262 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29263
29264 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29265 Remove MASK_GP_DIRECT flag.
29266 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29267 one of the multilib default options.
29268 * config/nds32/nds32.opt (mgp-direct): Remove.
29269 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29270 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29271
29272 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29273
29274 * config/nds32/nds32.opt (mcmodel): Add new option.
29275 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29276 to describe code model.
29277
29278 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29279
29280 PR target/64479
29281 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29282
29283 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29284
29285 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29286 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29287 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29288 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29289 __builtin_sh_set_fpscr.
29290
29291 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29292
29293 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29294 after a funtion name just to indicate it is a function.
29295 ([-fsanitize-undefined-trap-on-error]): Likewise.
29296 ([-fdbg-cnt=]): Likewise.
29297 ([-mmemcpy]): Likewise.
29298 ([-mflush-func]): Likewise.
29299 ([-msynci]): Likewise.
29300
29301 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29302
29303 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29304 example.
29305
29306 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29307
29308 PR tree-optimization/64563
29309 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29310 instead of != VR_VARYING.
29311
29312 PR target/64513
29313 * config/i386/i386.c (ix86_expand_prologue): Add
29314 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29315
29316 PR tree-optimization/64454
29317 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29318 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29319 for signed or [0, op1 - 1] for unsigned modulo.
29320 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29321 even if op1 does not satisfy integer_pow2p.
29322
29323 PR other/64370
29324 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29325
29326 2015-01-12 Jeff Law <law@redhat.com>
29327
29328 PR target/64461
29329 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29330 (trunchiqi2, truncsihi2): Similarly.
29331
29332 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29333 rather than calling F.
29334
29335 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29336
29337 * tsan.c (instrument_expr): Use force_gimple_operand.
29338 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29339
29340 2015-01-12 Richard Biener <rguenther@suse.de>
29341
29342 PR tree-optimization/64530
29343 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29344 back dr1.
29345
29346 2015-01-12 Richard Biener <rguenther@suse.de>
29347
29348 PR middle-end/64357
29349 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29350 latches properly.
29351
29352 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29353
29354 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29355 Cortex-A17 tuning parameters.
29356 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29357
29358 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29359
29360 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29361 * config/arm/arm.c (arm_macro_fusion_p): New function.
29362 (arm_macro_fusion_pair_p): Likewise.
29363 (TARGET_SCHED_MACRO_FUSION_P): Define.
29364 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29365 (ARM_FUSE_NOTHING): Likewise.
29366 (ARM_FUSE_MOVW_MOVT): Likewise.
29367 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29368 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29369 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29370 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29371 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29372 arm_cortex_a5_tune): Specify fuseable_ops value.
29373
29374 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29375
29376 PR bootstrap/64561
29377 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29378 test for PIE with copy reloc.
29379 * configure: Regenerated.
29380
29381 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29382
29383 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29384 in gen_rtx_REG.
29385 (arm_tls_descseq_addr): Likewise.
29386 (arm_gen_movmemqi): Likewise.
29387 (arm_expand_epilogue_apcs_frame): Likewise.
29388 (arm_expand_epilogue): Likewise.
29389 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29390 in gen_rtx_REG.
29391
29392 2015-01-12 Martin Liska <mliska@suse.cz>
29393
29394 PR ipa/64550
29395 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29396 volatility for correct operands.
29397
29398 2015-01-12 Martin Liska <mliska@suse.cz>
29399
29400 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29401 indication that a function is not leaf.
29402 (sem_function::compare_polymorphic_p): Likewise.
29403
29404 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29405
29406 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29407 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29408 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29409 fold-const.h, tree-check.h.
29410
29411 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29412
29413 PR ipa/63967
29414 PR ipa/64425
29415 * ipa-inline.c (compute_uninlined_call_time,
29416 compute_inlined_call_time): Use counts for extra precision when
29417 needed possible.
29418 (big_speedup_p): Fix formating.
29419 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29420 (relative_time_benefit): Remove.
29421 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29422 merge guessed and read profile paths.
29423 (inline_small_functions): Count only !optimize_size functions into
29424 initial size; be more lax about sanity check when profile is used;
29425 be sure to update inlined function profile when profile is read.
29426
29427 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29428
29429 PR ipa/63470
29430 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29431 cost when edge becomes direct.
29432 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29433 is resolved or when introducing new speculation.
29434
29435 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29436
29437 PR ipa/64551
29438 PR ipa/64552
29439 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29440 '||' to fix typo issue.
29441
29442 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29443 accept and return NULL.
29444
29445 2015-01-12 Martin Liska <mliska@suse.cz>
29446
29447 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29448 file for being inlined.
29449 (cgraph_set_edge_callee): Delete.
29450 (cgraph_edge::redirect_callee): Move function to header file
29451 for being inlined.
29452 (cgraph_edge::make_direct): Use new function.
29453 (cgraph_edge::dump_edge_flags): New function created from
29454 static dump_edge_flags function.
29455 (cgraph_node::dump): Use new function.
29456 (cgraph_edge::verify_count_and_frequency): New function created
29457 from verify_edge_count_and_frequency.
29458 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29459 from verify_edge_corresponds_to_fndecl.
29460 (verify_edge_corresponds_to_fndecl): Delete.
29461 (cgraph_node::verify_node): Use new function.
29462 * cgraph.h (cgraph_edge::set_callee): New function.
29463 (cgraph_edge::dump_edge_flags): Likewise.
29464 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29465
29466 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29467
29468 * ipa-utils.c (estimate_function_body_sizes): Do not
29469 free node params when called late with early=true.
29470
29471 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29472
29473 * doc/md.texi (Instruction Patterns): Rewrite text for
29474 clarity.
29475 (Example): Likewise.
29476
29477 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29478
29479 * doc/invoke.texi (Option Summary): Break long lines.
29480 [(-fdiagnostics-color)]: Put long literal in @smallexample
29481 instead of inline.
29482 [(-fsanitize-recover)]: Likewise.
29483 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29484 [(-ffast-math)]: Likewise.
29485 [(--param max-inline-insns-recursive)]: Likewise.
29486 [(--param max-inline-recursive-depth)]: Likewise.
29487 [(-mno-text-section-literals)]: Likewise.
29488
29489 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29490
29491 * doc/install.texi: Update for libgomp being renamed from "GNU
29492 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29493 Runtime Library".
29494 * doc/sourcebuild.texi: Likewise.
29495
29496 2015-01-10 Anthony Green <green@moxielogic.com>
29497
29498 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29499 mul.x availability for moxiebox configuration.
29500
29501 2015-01-09 Anthony Green <green@moxielogic.com>
29502
29503 * config/moxie/moxie.md: Tabify assembly output.
29504
29505 2015-01-09 Anthony Green <green@moxielogic.com>
29506
29507 * config/moxie/moxie.md (CC_REG): Correct register definition.
29508
29509 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29510
29511 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29512 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29513 of log files.
29514
29515 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29516
29517 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29518
29519 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29520 Jakub Jelinek <jakub@redhat.com>
29521
29522 PR middle-end/64412
29523 * lto-streamer.h (lto_stream_offload_p): New declaration.
29524 * lto-streamer.c (lto_stream_offload_p): New variable.
29525 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29526 at the same time as section_name_prefix.
29527 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29528 if lto_stream_offload_p.
29529 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29530 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29531 (write_ts_function_decl_tree_pointers): Don't
29532 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29533 * tree-streamer-in.c (unpack_value_fields): Don't stream
29534 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29535 (lto_input_ts_function_decl_tree_pointers): Don't stream
29536 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29537 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29538 instead of section_name_prefix string comparisons.
29539
29540 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29541
29542 PR rtl-optimization/64536
29543 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29544 tablejumps.
29545
29546 2015-01-09 Michael Collison <michael.collison@linaro.org>
29547
29548 PR tree-optimization/64322
29549 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29550 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29551
29552 2015-01-09 Tom de Vries <tom@codesourcery.com>
29553
29554 PR rtl-optimization/64539
29555 * regcprop.c (kill_clobbered_values): Factor out of ...
29556 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29557 instead of note_stores with kill_clobbered_value.
29558
29559 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29560
29561 * ginclude/unwind-arm-common.h: Revert previous commit.
29562
29563 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29564
29565 * config.gcc (arm*-*-freebsd*): New configuration.
29566 * config/arm/freebsd.h: New file.
29567 * config.host: Add extra components for arm*-*-freebsd*.
29568 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29569 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29570
29571 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29572
29573 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29574 for -mcpu=e6500.
29575 * config/rs6000/t-rtems: Add e6500 multilibs.
29576
29577 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29578
29579 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29580 MPC8540.
29581
29582 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29583
29584 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29585 MULTILIB_EXCEPTIONS.
29586
29587 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29588
29589 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29590 MULTILIB_EXCEPTIONS.
29591
29592 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29593
29594 * config/arm/t-rtems-eabi: Rename to...
29595 * config/arm/t-rtems: ...this.
29596 * config/arm/rtems-eabi.h: Rename to...
29597 * config/arm/rtems.h: ...this.
29598 * config.gcc (arm*-*-rtems*): Reflect changes above.
29599
29600 2015-01-09 Richard Biener <rguenther@suse.de>
29601
29602 PR tree-optimization/64410
29603 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29604 on the LHS.
29605 (execute_update_addresses_taken): Deal with that.
29606 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29607 loads/stores for complex variables.
29608
29609 2015-01-09 Martin Liska <mliska@suse.cz>
29610
29611 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29612 name comparison.
29613 (func_checker::compare_memory_operand): New function.
29614 (func_checker::compare_operand): Split case to newly
29615 added functions.
29616 (func_checker::compare_cst_or_decl): New function.
29617 (func_checker::compare_gimple_call): Identify
29618 memory operands.
29619 (func_checker::compare_gimple_assign): Likewise.
29620 * ipa-icf-gimple.h: New function.
29621
29622 2015-01-09 Martin Liska <mliska@suse.cz>
29623
29624 PR ipa/64503
29625 * sreal.c (sreal::dump): Change unsigned format to signed for
29626 m_exp value.
29627 (sreal::to_double): Replace exp2 with scalbln.
29628
29629 2015-01-09 Martin Liska <mliska@suse.cz>
29630
29631 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29632 * ipa-icf.c (sem_function::equals_private): Add support for target and
29633 (sem_item_optimizer::merge_classes): Remove redundant function
29634 optimization flags comparison.
29635 * tree.h (target_opts_for_fn): New function.
29636
29637 2015-01-09 Tom de Vries <tom@codesourcery.com>
29638
29639 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29640
29641 2015-01-09 Kito Cheng <kito@0xlab.org>
29642
29643 PR rtl-optimization/64348
29644 * lra-constraints.c (split_reg): Fix caller-save store/restore
29645 instruction generation.
29646
29647 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29648
29649 PR gcov-profile/61790
29650 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29651 long long. Fallback to int64_t if host doesn't have long long and
29652 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29653
29654 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29655
29656 PR tree-optimization/63989
29657 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29658 from 1000 to 10000.
29659 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29660 (get_stridx): If we don't have a record for certain SSA_NAME,
29661 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29662 constant offset, call get_stridx_plus_constant.
29663 (get_stridx_plus_constant): New function.
29664 (zero_length_string): Don't use get_stridx here.
29665
29666 PR target/55023
29667 PR middle-end/64388
29668 * dse.c (struct insn_info): Mention frame_read set also
29669 before reload for tail calls on some targets.
29670 (scan_insn): Revert 2014-12-22 change. Set frame_read
29671 also before reload for tail calls if
29672 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29673 instead of add_non_frame_wild_read for non-const/memset
29674 tail calls after reload.
29675
29676 2015-01-08 Jason Merrill <jason@redhat.com>
29677
29678 * ubsan.c (do_ubsan_in_current_function): New.
29679 (pass_ubsan::gate): Use it.
29680 * ubsan.h: Declare it.
29681 * convert.c (convert_to_integer): Use it.
29682
29683 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29684
29685 PR target/64338
29686 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29687 compare_code when it is unconditionally overwritten afterwards.
29688 Use ix86_reverse_condition instead of reverse_condition. Don't
29689 change code if *reverse_condition* returned UNKNOWN and don't
29690 swap ct/cf and negate diff in that case.
29691
29692 2015-01-08 Mike Stump <mikestump@comcast.net>
29693
29694 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29695 (pass_tsan_O0::gate): Likewise.
29696 * extend.texi (Function Attributes): Add no_sanitize_thread
29697 documentation.
29698
29699 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29700
29701 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29702 for registering builtins.
29703 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29704 add -fopenmp to the argv_obstack used when invoking
29705 compile_for_target.
29706
29707 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29708 add "-m32" or "-m64" to argv_obstack.
29709 (generate_host_descr_file): Likewise, when invoking host_compiler.
29710 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29711 ld.
29712
29713 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29714
29715 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29716 tstsi_t insns.
29717
29718 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29719
29720 PR target/55212
29721 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29722 constant load if constant operand fits into I08.
29723
29724 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29725
29726 PR sanitizer/64336
29727 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29728 and TREE_THIS_VOLATILE for MEM_REFs.
29729 (build5_stat): Fix up initialization of TREE_READONLY and
29730 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29731
29732 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29733
29734 PR target/64533
29735 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29736 of r for the second alternative of the destination operand.
29737
29738 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29739
29740 PR target/36557
29741 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29742
29743 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29744
29745 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29746 keywords.
29747 ([-fivar-visibility], [-fvisibility]): Likewise.
29748
29749 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29750
29751 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29752 the file where @code, @command, etc is more appropriate.
29753
29754 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29755
29756 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29757 of -mrecip= documentation.
29758
29759 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29760
29761 PR target/64505
29762 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29763 correct reload handler if -m32 -mpowerpc64 is used.
29764
29765 2015-01-06 Tom de Vries <tom@codesourcery.com>
29766
29767 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29768
29769 2015-01-08 Christian Bruel <christian.bruel@st.com>
29770
29771 PR target/64507
29772 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29773
29774 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29775
29776 PR tree-optimization/63259
29777 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29778 if optab exists for 16bit byteswap.
29779
29780 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29781
29782 * opts.c (common_handle_option): Add support for
29783 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29784 * doc/invoke.texi: Document -fno-sanitize=all,
29785 -f{,no-}sanitize-recover=all. Document that
29786 -fsanitize=float-cast-overflow is not enabled
29787 by -fsanitize=undefined. Fix up documentation
29788 of -f{,no-}sanitize-recover.
29789
29790 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29791
29792 * config.gcc: Add Visium support.
29793 * configure.ac: Likewise.
29794 * configure: Regenerate.
29795 * doc/extend.texi (interrupt attribute): Add Visium.
29796 * doc/invoke.texi: Document Visium options.
29797 * doc/install.texi: Document Visium target.
29798 * doc/md.texi: Document Visium constraints.
29799 * common/config/visium: New directory.
29800 * config/visium: Likewise.
29801
29802 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29803
29804 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29805 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29806
29807 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29808
29809 * combine.c (combine_validate_cost): Do not count the cost of a
29810 split I2 twice. Do not display it twice in the dump, either.
29811
29812 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29813
29814 Revert parts of r219199.
29815 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29816 <inttypes.h>.
29817 ([-Wtraditional]): Restore markup on <limits.h>.
29818
29819 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29820
29821 PR c++/31397
29822 * doc/invoke.texi: Document -Wsuggest-override.
29823
29824 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29825
29826 PR rtl-optimization/64287
29827 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29828 (process_options): Disable flag_ipa_ra if profiling.
29829
29830 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29831
29832 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29833
29834 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29835
29836 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29837 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29838 put under #if TARGET_LOOPS guard.
29839
29840 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29841
29842 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29843
29844 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29845
29846 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29847 * rtl.h (refers_to_regno_p): Add overload.
29848 * cse.c: Use it.
29849 * bt-load.c: Likewise.
29850 * combine.c: Likewise.
29851 * df-scan.c: Likewise.
29852 * sched-deps.c: Likewise.
29853 * config/s390/s390.c: Likewise.
29854 * config/m32r/m32r.c: Likewise.
29855 * config/rs6000/spe.md: Likewise.
29856 * config/rs6000/rs6000.c: Likewise.
29857 * config/pa/pa.c: Likewise.
29858 * config/stormy16/stormy16.c: Likewise.
29859 * config/cris/cris.c: Likewise.
29860 * config/arc/arc.md: Likewise.
29861 * config/arc/arc.c: Likewise.
29862 * config/sh/sh.md: Likewise.
29863 * config/sh/sh.c: Likewise.
29864 * config/frv/frv.c: Likewise.
29865
29866 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29867
29868 PR sanitizer/64265
29869 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29870 call as cleanup of the whole body.
29871 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29872 * tsan.c (replace_func_exit): New function.
29873 (instrument_func_exit): Moved earlier.
29874 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29875 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29876 been found.
29877 (tsan_pass): Don't call instrument_func_exit.
29878 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29879 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29880 inlining.
29881
29882 PR sanitizer/64344
29883 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29884 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29885 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29886 if the result is integer_zerop, return NULL_TREE.
29887 * convert.c (convert_to_integer): Pass expr as ARG.
29888
29889 PR tree-optimization/64465
29890 * tree-inline.c (redirect_all_calls): During inlining
29891 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29892 changed the stmt to a non-throwing call.
29893
29894 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29895
29896 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29897 etc markup throughout the file.
29898
29899 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29900
29901 Enable experimental TSAN support for Ada.
29902 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29903
29904 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29905
29906 PR tree-optimization/64494
29907 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29908 clear SSA_NAME_ANTI_RANGE_P flag.
29909
29910 2015-01-05 Marek Polacek <polacek@redhat.com>
29911
29912 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29913
29914 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29915
29916 Update copyright years.
29917
29918 * gcc.c (process_command): Update copyright notice dates.
29919 * gcov-dump.c: Ditto.
29920 * gcov.c: Ditto.
29921 * doc/cpp.texi: Bump @copying's copyright year.
29922 * doc/cppinternals.texi: Ditto.
29923 * doc/gcc.texi: Ditto.
29924 * doc/gccint.texi: Ditto.
29925 * doc/gcov.texi: Ditto.
29926 * doc/install.texi: Ditto.
29927 * doc/invoke.texi: Ditto.
29928
29929 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29930
29931 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29932
29933 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29934 verb tense, etc.
29935 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29936 ([-Wabi]): Likewise.
29937 ([-fmessage-length]): Likewise.
29938 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29939 ([-Wno-discarded-qualifiers]): Likewise.
29940 ([-Wnodiscarded-array-qualifiers]): Likewise.
29941 ([-Wno-virtual-move-assign]): Likewise.
29942 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29943 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29944 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29945 ([-fsanitize-undefined-trap-on-error]): Likewise.
29946 ([-floop-interchange]): Likewise.
29947 ([-ftree-coalesce-inlined-vars]): Likewise.
29948 ([-fvect-cost-model]): Likewise.
29949 ([-flto]): Likewise.
29950 ([--param]): Likewise.
29951 (Spec Files): Likewise.
29952 ([-mstrict-align]): Likewise.
29953 ([-mfix-cortex-a53-835769]): Likewise.
29954 ([-march], [-mtune]): Likewise.
29955 ([-mpic-register]): Likewise.
29956 ([-munaligned-access]): Likewise.
29957 ([-msp8]): Likewise.
29958 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29959 (AVR Built-in Macros): Likewise.
29960 ([-mpreferred-stack-boundary]): Likewise.
29961 ([-mtune-crtl]): Likewise.
29962 ([-mashf]): Likewise.
29963 ([-mmcu=]): Likewise.
29964 ([-minrt]): Likewise.
29965 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29966 ([-mupper-regs]): Likewise.
29967 ([-matomic-model]): Likewise.
29968 ([-mdiv]): Likewise.
29969 ([-mzdcbranch]): Likewise.
29970 ([-mdisable-callt]): Likewise.
29971 ([-msoft-float]): Likewise.
29972 ([-m8byte-align]): Likewise.
29973 ([-fstack-reuse]): Likewise.
29974
29975 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29976
29977 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29978 Fix markup, light copy-editing.
29979 ([-fauto-profile]): Rewrite to fix formatting and content
29980 problems.
29981
29982 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29983
29984 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29985 Copy-edit description.
29986 ([-fisolate-erroneous-paths-attribute]): Likewise.
29987 * common.opt (fisolate-erroneous-paths-dereference):
29988 Copy-edit description.
29989 (fisolate-erroneous-paths-attribute): Likewise.
29990
29991 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29992
29993 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29994 tidy grammar.
29995
29996 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29997
29998 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29999 ([-fvtv-debug]): Likewise.
30000 ([-Wc++-compat]): Likewise.
30001 ([-Wc++11-compat]): Likewise.
30002 ([-Wc++14-compat]): Likewise.
30003 ([-Wno-sized-deallocation]): Likewise.
30004 ([-femit-class-debug-always]): Likewise.
30005 ([-femit-struct-debug-detailed]): Likewise.
30006 ([-fno-keep-inline-dllexport]): Likewise.
30007 ([-fira-algorithm]): Likewise.
30008 ([-fira-region]): Likewise.
30009 ([-flra-remat]): Likewise.
30010 ([-fipa-ra]): Likewise.
30011 ([-fhoist-adjacent-loads]): Likewise.
30012 ([-fisolate-erroneous-paths-dereference]): Likewise.
30013 ([-fisolate-erroneous-paths-attribute]): Likewise.
30014 ([-ftree-switch-conversion]): Likewise.
30015 ([-ftree-tail-merge]): Likewise.
30016 ([-ftree-loop-if-convert]): Likewise.
30017 ([-ftree-loop-if-convert-stores]): Likewise.
30018 ([-ftree-loop-distribution]): Likewise.
30019 ([-ftree-loop-distribute-patterns]): Likewise.
30020 ([-flto-compression-level]): Likewise.
30021 ([-flto-report]): Likewise.
30022 ([-flto-report-wpa]): Likewise.
30023 ([-fuse-linker-plugin]): Likewise.
30024 ([-mfix-cortex-a53-835769]): Likewise.
30025 ([-mno-fix-cortex-a53-835769]): Likewise.
30026 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30027 explicit listing; add a note to the discussion indicating they
30028 exist. Reorder table to group similar options. Add missing
30029 @opindex entries. Add @need commands throughout the table to
30030 allow it to be split across multiple pages.
30031 ([-m8bit-idiv]): Fix @opindex.
30032 ([-mavx256-split-unaligned-load]): Likewise.
30033 ([-mavx256-split-unaligned-store]): Likewise.
30034 ([-mstack-protector-guard]): Likewise.
30035 ([-mcpu=]): Likewise.
30036 ([-mcpu]): Likewise.
30037 ([-mpointer-size=]): Likewise.
30038
30039 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30040
30041 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30042 instead of `m' constraint. Likewise for unnamed movb comparison
30043 patterns using reg_before_reload_operand predicate.
30044 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30045 predicate to reject register index and LO_SUM DLT memory forms
30046 after reload.
30047
30048 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30049
30050 * doc/invoke.texi (Option Summary): Fix spelling of
30051 -fdevirtualize-at-ltrans.
30052 ([-fdevirtualize]): Fix markup.
30053 ([-fdevirtualize-speculatively]): Fix typo.
30054 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30055 implementor-speaky.
30056 * common.opt (fdevirtualize-at-ltrans): Likewise.
30057 * ipa-devirt.c: Fix typos in comments throughout the file.
30058 (ipa_devirt): Fix typos in format strings for dump output.
30059
30060 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30061
30062 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30063 discussion of defaults, light copy-editing.
30064
30065 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30066
30067 * tsan.c (instrument_expr): corrected previous checkin.
30068
30069 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30070
30071 Instrument bit field and unaligned accesses for TSAN.
30072 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30073 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30074 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30075 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30076 unaligned memory regions.
30077
30078 2015-01-01 Anthony Green <green@moxielogic.com>
30079
30080 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30081 Restrict move source register offsets to 16 bits.
30082 \f
30083 Copyright (C) 2015 Free Software Foundation, Inc.
30084
30085 Copying and distribution of this file, with or without modification,
30086 are permitted in any medium without royalty provided the copyright
30087 notice and this notice are preserved.