re PR lto/66752 (spec2000 255.vortex performance compiled with GCC is ~20% lower...
[gcc.git] / gcc / ChangeLog
1 2015-01-12 Jeff Law <law@redhat.com>
2
3 PR lto/66752
4 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5 unable to find X NE 0 in the tables, return X as the simplified
6 condition.
7 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9 to VISISTED_BBS. */
10 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11 after removing the control flow statement and unnecessary edges.
12
13 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
14
15 * tree-pass.h (get_current_pass_name): Removed.
16
17 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18
19 PR rtl-optimization/64164
20 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21 * tree-ssa-copyrename.c: Removed.
22 * opts.c (default_options_table): Drop -ftree-copyrename. Add
23 -ftree-coalesce-vars.
24 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25 * common.opt (ftree-copyrename): Ignore.
26 (ftree-coalesce-inlined-vars): Likewise.
27 * doc/invoke.texi: Remove the ignored options above.
28 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
29 * tree-ssa-coalesce.h: ... here.
30 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
31 headers required by it.
32 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
33 across variables when flag_tree_coalesce_vars. Check register
34 use and promoted modes to allow coalescing. Moved to
35 tree-ssa-coalesce.c.
36 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
37 with its member functions to tree-ssa-coalesce.c.
38 (var_map_base_init): Likewise. Renamed to
39 compute_samebase_partition_bases.
40 (partition_view_normal): Drop want_bases parameter.
41 (partition_view_bitmap): Likewise.
42 * tree-ssa-live.h: Adjust declarations.
43 * tree-ssa-coalesce.c: Include explow.h.
44 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
45 default defs at the entry point.
46 (dump_part_var_map): New.
47 (compute_optimized_partition_bases): New, called by...
48 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
49 of compute_samebase_partition_bases. Adjust.
50 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
51 * cfgexpand.c (leader_merge): New.
52 (get_rtl_for_parm_ssa_default_def): New.
53 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
54 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
55 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
56 redundant MEM attr setting.
57 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
58 from...
59 (expand_one_stack_var): ... this. New wrapper to check and
60 skip already expanded SSA partitions.
61 (record_alignment_for_reg_var): New, factored out of...
62 (expand_one_var): ... this.
63 (expand_one_ssa_partition): New.
64 (adjust_one_expanded_partition_var): New.
65 (expand_one_register_var): Check and skip already expanded SSA
66 partitions.
67 (expand_used_vars): Don't create DECLs for anonymous SSA
68 names. Expand all SSA partitions, then adjust all SSA names.
69 (pass::execute): Replace the loops that set
70 SA.partition_to_pseudo from partition leaders and cleared
71 DECL_RTL for multi-location variables, and that which used to
72 rename vars and set attrs, with one that clears DECL_RTL and
73 checks that PARMs and RESULTs default_defs match DECL_RTL.
74 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
75 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
76 * explow.c (promote_ssa_mode): New.
77 * explow.h (promote_ssa_mode): Declare.
78 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
79 * function.c: Include cfgexpand.h.
80 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
81 (use_register_for_parm_decl): Wrapper for the above to
82 special-case the result_ptr.
83 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
84 (split_complex_args): Take assign_parm_data_all argument.
85 Pass it to rtl_for_parm. Set up rtl and context for split
86 args.
87 (assign_parms_augmented_arg_list): Adjust.
88 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
89 multiple locations. Recognize split complex args.
90 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
91 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
92 (assign_parm_setup_block): Prefer SSA-assigned location.
93 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
94 if stack_parm is NULL.
95 (assign_parm_setup_stack): Prefer SSA-assigned location.
96 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
97 rtl before testing for pointer bounds. Special-case result_ptr.
98 (expand_function_start): Maybe reset DECL_RTL of result.
99 Prefer SSA-assigned location for result and static chain.
100 Factor out DECL_RESULT and SET_DECL_RTL.
101 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
102 anonymous SSA names. Use promote_ssa_mode.
103 (get_temp_reg): Likewise.
104 (remove_ssa_form): Adjust.
105 * stor-layout.c (layout_decl): Don't set mem attributes of
106 non-MEMs.
107 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
108 and get its reg_usage for reg invalidation.
109 (compute_bb_dataflow): Pass it insn.
110 (emit_notes_in_bb): Likewise.
111
112 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
113
114 PR target/66217
115 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
116 prototype.
117 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
118 (rs6000_emit_2insn_and): Handle dot forms.
119 * config/rs6000/rs6000.md (and<mode>3): Adjust.
120 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
121 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
122
123 2015-07-23 Richard Biener <rguenther@suse.de>
124
125 * generic-match-head.c: Include cgraph.h.
126 * gimple-match-head.c: Likewise.
127 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
128 SSA names.
129 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
130 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
131 pattern.
132
133 2015-07-23 Richard Biener <rguenther@suse.de>
134
135 * gimple-fold.c (fold_gimple_cond): Do not require folding
136 results to pass valid_gimple_rhs_p.
137 * tree-cfg.h (fold_cond_expr_cond): Remove.
138 * tree-cfg.c (fold_cond_expr_cond): Likewise.
139 (make_edges): Do not call it.
140 * tree-inline.c (tree_function_versioning): Likewise.
141
142 2015-07-23 Tom de Vries <tom@codesourcery.com>
143
144 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
145 vect_force_simple_reduction.
146 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
147 (vect_is_simple_reduction_1): Add and handle
148 need_wrapping_integral_overflow parameter.
149 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
150 need_wrapping_integral_overflow parameter.
151 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
152 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
153 decl.
154
155 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
156
157 PR tree-optimization/66926,66951
158 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
159 INNER_LOOP and fix up condition for renaming virtual operands.
160
161 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
162
163 * combine.c (try_combine): Use std::swap instead of manually
164 swapping.
165
166 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
167
168 * config/mips/i6400.md: New file.
169 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
170 (mips64r6): Likewise.
171 (i6400): Define.
172 * config/mips/mips-tables.opt: Regenerate.
173 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
174 (mips_issue_rate): Add support for i6400.
175 (mips_multipass_dfa_lookahead): Likewise.
176 * config/mips/mips.h (TUNE_I6400): Define.
177 * config/mips/mips.md: Include i6400.md.
178 (processor): Add i6400.
179 * doc/invoke.texi (-march=@var{arch}): Add i6400.
180
181 2015-07-23 Richard Biener <rguenther@suse.de>
182
183 PR middle-end/66916
184 * match.pd: Guard widen and sign-change comparison simplification
185 with single_use.
186
187 2015-07-23 Richard Biener <rguenther@suse.de>
188
189 PR tree-optimization/66945
190 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
191 ::before_dom_children): Force the propagators idea of
192 non-executable edges to materialize, not what the folder
193 chooses.
194
195 2015-07-23 Richard Biener <rguenther@suse.de>
196
197 * gimple.h (gimple_cond_make_false): Use 0 != 0.
198 (gimple_cond_make_true): Use 1 != 0.
199
200 2015-07-22 DJ Delorie <dj@redhat.com>
201
202 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
203 slashes.
204
205 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
206 (ashrhi3): Likewise.
207 (lshrhi3): Likewise.
208 (movhi): Take advantage of zero-extend to load small constants.
209 (movpsi): Likewise.
210 (and<mode>3): Likewise.
211 (zero_extendqihi2): Likewise.
212 (zero_extendqisi2): New.
213 * config/msp430/constraints.md (N,O): New.
214 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
215
216 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
217
218 PR target/66954
219 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
220 to enum feature_priority and feature_list.
221 (fold_builtin_cpu): Add F_AES to enum processor_features
222 and isa_names_table.
223
224 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
225
226 PR driver/66737
227 * config/i386/linux-common.h (MPX_SPEC): Use linker option
228 for 64bit target only.
229
230 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
231
232 * config/nvptx/nvptx.c: Expand some comments.
233
234 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
235
236 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
237 (cortex_a53_advsimd): ...This.
238
239 2015-07-22 Richard Biener <rguenther@suse.de>
240
241 * genmatch.c (expr::gen_transform): Clarify error message
242 and display location.
243
244 2015-07-22 Richard Biener <rguenther@suse.de>
245
246 * genmatch.c (struct operand): Add location member.
247 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
248 constructors.
249 (struct simplify): Remove match_location and result_location
250 members.
251 (elsehwere): Adjust.
252
253 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
254
255 * config/mips/m5100.md: New file.
256 * config/mips/mips-cpus.def (m5100, m5101): Define.
257 * config/mips/mips-tables.opt: Regenerate.
258 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
259 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
260 -march=m5101 to -mips32r5.
261 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
262 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
263 !-msoft-float.
264 * config/mips/mips.md: Include m5100.md.
265 (processor): Add m5100.
266 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
267
268 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
269
270 * config/mips/mips-cpus.def (interaptiv): Define.
271 * config/mips/mips-tables.opt: Regenerate.
272 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
273 -mips32r2.
274 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
275 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
276
277 2015-07-22 Jiong Wang <jiong.wang@arm.com>
278
279 PR target/63521
280 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
281 (HONOR_REG_ALLOC_ORDER): Define.
282
283 2015-07-22 Richard Biener <rguenther@suse.de>
284
285 PR tree-optimization/66952
286 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
287 blocks we end up executing unconditionally reset all SSA
288 info such as range and alignment.
289 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
290 * tree-ssanames.c (reset_flow_sensitive_info): New function.
291
292 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
293
294 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
295 typo in attribute.
296
297 2015-07-22 Richard Biener <rguenther@suse.de>
298
299 * genmatch.c (parser::parse_result): Properly handle
300 match with result operands and conditions.
301
302 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
303
304 PR target/63870
305 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
306 Add qualifier_struct_load_store_lane_index.
307 (aarch64_types_loadstruct_lane_qualifiers): Use
308 qualifier_struct_load_store_lane_index for lane index argument for
309 last argument.
310 (aarch64_types_storestruct_lane_qualifiers): Ditto.
311 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
312 (aarch64_simd_expand_args): Add new argument describing mode of
313 builtin. Check lane bounds for arguments with
314 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
315 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
316 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
317 (aarch64_simd_expand_builtin): Handle arguments with
318 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
319 aarch64_simd_expand_args.
320 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
321 vst[234]_lane with BUILTIN_VALLDIF.
322 * config/aarch64/aarch64-simd.md:
323 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
324 endianness reversal on lane index.
325 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
326 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
327 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
328 (vec_store_lanesci_lane<mode>): Ditto.
329 (vec_store_lanesxi_lane<mode>): Ditto.
330 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
331 reversal of lane index.
332 (aarch64_ld3_lane<mode>): Ditto.
333 (aarch64_ld4_lane<mode>): Ditto.
334 (aarch64_st2_lane<mode>): Ditto.
335 (aarch64_st3_lane<mode>): Ditto.
336 (aarch64_st4_lane<mode>): Ditto.
337 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
338 to qmode. Add new mode parameter. Update uses.
339 (__LD3_LANE_FUNC): Ditto.
340 (__LD4_LANE_FUNC): Ditto.
341 (__ST2_LANE_FUNC): Ditto.
342 (__ST3_LANE_FUNC): Ditto.
343 (__ST4_LANE_FUNC): Ditto.
344
345 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
346
347 * doc/invoke.texi (Language Independent Options): Rename node to
348 Diagnostic Message Formatting Options.
349
350 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
351
352 PR ipa/66424.
353 * lra-remat.c (operand_to_remat): Prevent using insns with input
354 subregs processed separately by IRA.
355
356 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
357
358 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
359 straight loops.
360 (single_imm_use): Check for iterator node.
361 (num_imm_uses): Likewise.
362 * tree-ssa-operands.c (has_zero_uses_1): Delete.
363 (single_imm_use_1): Check for iterator node.
364
365 2015-07-21 Mike Frysinger <vapier@gentoo.org>
366 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
367
368 * configure.ac: Add check for new options in isl-0.15.
369 * config.in, configure: Rebuilt.
370 * graphite-blocking.c: Include <isl/constraint.h>
371 * graphite-interchange.c, graphite-poly.c: Likewise.
372 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
373 * graphite.c: Likewise.
374 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
375 <isl/union_set.h>.
376 * graphite-dependences.c: Include <isl/constraint.h>.
377 (max_number_of_out_dimensions): Returns isl_stat.
378 (extend_schedule_1): Likewise
379 (extend_schedule): Corresponding changes.
380 * graphite-optimize-isl.c: Include <isl/constraint.h> and
381 <isl/union_set.h>.
382 (getSingleMap): Change return type of isl_stat.
383 (optimize_isl): Conditionally use
384 isl_options_set_schedule_serialize_sccs.
385 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
386 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
387
388 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
389
390 PR target/66956
391 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
392 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
393
394 2015-07-21 Richard Biener <rguenther@suse.de>
395
396 PR tree-optimization/66948
397 * genmatch.c (capture_info::walk_match): Also recurse to
398 captures. Properly compute expr state from captures of
399 captures.
400 * match.pd: Add single-use guards to
401 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
402
403 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
404
405 * config/nvptx/mkoffload.c (process): Add static destructor call.
406
407 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
408
409 PR middle-end/66915
410 * match.pd (A - B -> A + (-B)): Don't allow folding
411 when type if a fixed-point type.
412
413 2015-07-20 DJ Delorie <dj@redhat.com>
414
415 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
416 (iorqi3_real): Likewise for set1.
417
418 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
419
420 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
421 for !TARGET_64BIT.
422
423 2015-07-20 Aditya Kumar <hiraditya@msn.com>
424
425 * graphite-isl-ast-to-gimple.c:
426 Refactor so that each function can access 'region'. This will help
427 maintain a parameter rename_map within a region.
428
429 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
430
431 * config/rs6000/rs6000.md (*lt0_disi): New.
432
433 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
434
435 PR target/66217
436 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
437 "available letters" comment.
438 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
439 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
440 and_2rld_operand): Delete.
441 (and_operand): Adjust.
442 (rotate_mask_operator): New.
443 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
444 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
445 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
446 extract_ME): Delete.
447 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
448 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
449 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
450 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
451 rs6000_emit_2insn_and): New.
452 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
453 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
454 includes_rldic_lshift_p, includes_rldicr_lshift_p,
455 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
456 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
457 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
458 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
459 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
460 rs6000_emit_2insn_and): New.
461 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
462 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
463 handling.
464 <NOT>: Don't fall through to next case.
465 <AND>: Handle the various rotate-and-mask cases directly.
466 <IOR>: Always cost as one insn.
467 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
468 (and<mode>3): Adjust expander for the new patterns.
469 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
470 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
471 (*and<mode>3_imm_dot_shifted): New.
472 (*and<mode>3_mask): Delete, rewrite as ...
473 (and<mode>3_mask): ... New.
474 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
475 (andsi3_internal0_nomc): Delete.
476 (*andsi3_internal6): Delete.
477 (*and<mode>3_2insn): New.
478 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
479 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
480 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
481 *insvdi_internal3): Delete.
482 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
483 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
484 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
485 *ior<mode>_mask): New.
486 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
487 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
488 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
489 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
490 Delete.
491 (ashr<mode>3): Delete expander.
492 (*ashr<mode>3): Rename to ...
493 (ashr<mode>3): ... This.
494 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
495 (*rotldi3_internal4, *rotldi3_internal5 and split,
496 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
497 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
498 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
499 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
500 (splitter for loading a mask): Adjust.
501 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
502
503 2015-07-20 Marek Polacek <polacek@redhat.com>
504
505 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
506 output_add_clobbers, output_added_clobbers_hard_reg_p,
507 gen_rtx_scratch): Remove declarations.
508
509 2015-07-20 Marek Polacek <polacek@redhat.com>
510
511 PR c++/55095
512 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
513
514 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
515
516 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
517 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
518
519 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
520
521 * combine.c (combine_simplify_rtx): Move simplification step
522 before various transformations/substitutions.
523
524 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
525
526 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
527 (struct int_traits): Likewise.
528
529 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
530
531 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
532 function to vmsdbgout_function_decl.
533
534 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
535
536 PR target/66922
537 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
538 from misaligned positions.
539 (ix86_expand_pinsr): Reject insertions to misaligned positions.
540
541 2015-07-18 Sebastian Pop <s.pop@samsung.com>
542
543 PR middle-end/46851
544 PR middle-end/60340
545 * Makefile.in: Removed omega.o.
546 * common.opt: Document flag fcheck-data-deps as deprecated.
547 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
548 its associated params: omega-max-vars, omega-max-geqs,
549 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
550 omega-max-keys, omega-eliminate-redundant-constraints.
551 * doc/loop.texi: Remove all the section on Omega.
552 * graphite-blocking.c: Include missing params.h: it used to be
553 included through tree-data-ref.h and omega.h.
554 * graphite-isl-ast-to-gimple.c: Same.
555 * graphite-optimize-isl.c: Same.
556 * graphite-sese-to-poly.c: Same.
557 * graphite.c: Same.
558 * omega.c: Remove.
559 * omega.h: Remove.
560 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
561 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
562 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
563 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
564 * passes.def: Remove pass_check_data_deps.
565 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
566 (dump_conflict_function): Same.
567 (dump_subscript): Same.
568 (print_direction_vector): Same.
569 (print_dir_vectors): Same.
570 (print_lambda_vector): Same.
571 (print_dist_vectors): Same.
572 (dump_data_dependence_relation): Same.
573 (dump_data_dependence_relations): Same.
574 (dump_dist_dir_vectors): Same.
575 (dump_ddrs): Same.
576 (init_omega_eq_with_af): Removed.
577 (omega_extract_distance_vectors): Removed.
578 (omega_setup_subscript): Removed.
579 (init_omega_for_ddr_1): Removed.
580 (init_omega_for_ddr): Removed.
581 (ddr_consistent_p): Removed.
582 (compute_affine_dependence): Do not use omega to check data
583 dependences.
584 (compute_data_dependences_for_bb): Removed.
585 (analyze_all_data_dependences): Removed.
586 (tree_check_data_deps): Removed.
587 * tree-data-ref.h: Do not include omega.h.
588 (compute_data_dependences_for_bb): Removed.
589 (tree_check_data_deps): Removed.
590 * tree-ssa-loop.c (pass_check_data_deps): Removed.
591 (make_pass_check_data_deps): Removed.
592 * tree-ssa-phiopt.c: Include params.h.
593 * tree-vect-data-refs.c: Same.
594 * tree-vect-slp.c: Same.
595
596 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
597
598 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
599 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
600 (mem->fpreg splitters): Ditto.
601 (general_operand->nonimmediate_operand splitter): Use explicit modes.
602 Disable DFmode for TARGET_64BIT.
603
604 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
605
606 PR target/66906
607 * config/i386/i386.c (ix86_expand_prologue): Replicate static
608 chain on the stack.
609
610 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
611
612 * config/nvptx/mkoffload.c (process): Constify host data.
613 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
614 Constify host data.
615 (generate_host_descr_file): Likewise.
616
617 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
618 Sebastian Pop <s.pop@samsung.com>
619
620 PR middle-end/61929
621 * graphite-dependences.c (add_pdr_constraints): Renamed
622 pdr->extent to pdr->subscript_sizes.
623 * graphite-interchange.c (build_linearized_memory_access): Add
624 back all gcc_assert's that the "isl_int to isl_val conversion"
625 patch has removed. Refactored.
626 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
627 * graphite-poly.c (new_poly_dr): Same.
628 (free_poly_dr): Same.
629 * graphite-poly.h (struct poly_dr): Same.
630 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
631 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
632 * graphite-scop-detection.h: Fix space.
633 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
634 back all gcc_assert's removed by a previous patch.
635 (wrap): Remove the_isl_ctx global variable that the same patch has
636 added.
637 (build_loop_iteration_domains): Same.
638 (add_param_constraints): Same.
639 (pdr_add_data_dimensions): Same. Refactored.
640 (build_poly_dr): Renamed extent to subscript_sizes.
641
642 2015-07-17 Marek Polacek <polacek@redhat.com>
643
644 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
645 * match.pd: ... here.
646
647 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
648
649 * config/nvptx/mkoffload.c (process): Constify target data.
650 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
651 Constify target data.
652 (generate_target_offloadend_file): Likewise.
653
654 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
655
656 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
657 to allow renaming of PHI arguments on edges incoming from outer
658 loop header, add corresponding check before start PHI iterator.
659 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
660 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
661 with true force_vectorize. Set-up dominator for outer loop too.
662 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
663 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
664 was marked with force_vectorize and has restricted cfg.
665 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
666 inner loop.
667 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
668 do peeling for outer loops.
669
670 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
671 Matthias Klose <doko@ubuntu.com>
672
673 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
674 build-sysroot, sysroot from the `Miscenalleous configure options' to
675 the `Directories' section and strip trailing `/' from with_sysroot.
676 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
677 * configure: Regenerated.
678
679 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
680
681 PR target/66824
682 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
683 (TARGET_HARD_DF_REGS): Ditto.
684 (TARGET_HARD_XF_REGS): Ditto.
685 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
686 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
687 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
688 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
689 (*movsf_internal): Add alternatives 16 and 17. Enable
690 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
691
692 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
693
694 PR rtl-optimization/66891
695 * calls.c (expand_call): Wrap precompute_register_parameters with
696 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
697
698 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
699
700 * config/nvptx/mkoffload.c (process): Constify mapping variables.
701 Define target data struct and initialize it.
702
703 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
704
705 PR rtl-optimization/66626
706 * ira.h (emit-rtl.h): Include.
707 (non_spilled_static_chain_regno_p): New.
708 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
709 unless it is non spilled static chain pseudo.
710 (assign_hard_rego): Spill memory profitable allocno unless it is
711 non spilled static chain pseudo.
712 (allocno_spill_priority_compare): Put non spilled static chain
713 pseudo at the end of sorted array.
714 (improve_allocation): Do nothing if we have static chain and
715 non-local goto.
716 (allocno__priority_compare_func): Put non spilled static chain
717 pseudo at the beginning of sorted array.
718 (move_spill_restore): Ignore non spilled static chain pseudo.
719 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
720 to non spilled static chain pseudo.
721 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
722 pseudo at the beginning of sorted array.
723 (spill_for): Spill non spilled static chain pseudo last.
724 * lra-constraints.c (lra_constraints): Remove static chain pseudo
725 check for equivalence.
726
727 2015-07-16 Martin Liska <mliska@suse.cz>
728
729 PR ipa/66896.
730 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
731 dst_ctx if it does not exist.
732
733 2015-07-16 Martin Liska <mliska@suse.cz>
734
735 * hash-set.h (remove): New function.
736 (iterator): New iteration class for hash_set.
737
738 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
739
740 * genattrtab.c (make_canonical): Add a file_location parameter.
741 Use fatal_at rather than fatal.
742 (get_attr_value): Likewise. Update call to make_canonical.
743 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
744 (make_internal_attr): Update calls accordingly.
745
746 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
747
748 * read-md.h (message_with_line, error_with_line): Delete.
749 * read-md.c (message_with_line, error_with_line): Delete.
750 * gensupport.h: Include read-md.h.
751 (md_rtx_info): New structure.
752 (read_md_rtx): Use it. Return a bool success value.
753 * gensupport.c (read_md_rtx): Likewise.
754 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
755 (main): Update after interface changes.
756 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
757 (main): Update after interface changes.
758 * genattrtab.c (insn_code_number): Delete.
759 (optimize_attrs): Add a max_insn_code parameter and use it instead
760 of insn_code_number.
761 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
762 Use *_at rather than *_with_line functions.
763 (gen_insn): Likewise.
764 (gen_delay): Likewise.
765 (gen_insn_reserv): Likewise.
766 (gen_bypass): Take an md_rtx_info rather than an rtx.
767 (main): Update after interface changes. Use a local max_insn_code
768 variable instead of insn_code_number.
769 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
770 an rtx. Use fatal_at rather than fatal.
771 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
772 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
773 (gen_absence_set, gen_final_absence_set, gen_automaton)
774 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
775 (main): Update after interface changes.
776 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
777 and code number.
778 (main): Update after interface changes.
779 * genconditions.c (main): Use new read_md_rtx interface.
780 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
781 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
782 (main): Update after interface changes.
783 * genemit.c (insn_code_number, insn_index_number): Delete.
784 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
785 Use fatal_at rather than fatal.
786 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
787 rather than fatal.
788 (gen_split): Likewise.
789 (main): Update after interface changes.
790 * genextract.c (line_no): Delete.
791 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
792 Update call to walk_rtx.
793 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
794 rather than message_with_line.
795 (walk_rtx): Add an md_rtx_info argument. Update call to
796 VEC_safe_set_locstr.
797 (main): Update after interface changes.
798 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
799 and lineno. Use error_at rather than separate message_with_line
800 calls and have_error assignments.
801 (main): Update after interface changes.
802 * genmddump.c (main): Use new read_md_rtx interface.
803 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
804 (main): Update after interface changes.
805 * genoutput.c (next_code_number): Delete.
806 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
807 (gen_peephole, gen_expand, gen_split): Likewise.
808 (note_constraint): Likewise. Use *_at rather than *_with_line
809 functions.
810 (main): Update after interface changes.
811 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
812 rtx and lineno.
813 (main): Update after interface changes.
814 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
815 than an rtx and lineno.
816 (process_define_constraint): Likewise.
817 (process_define_register_constraint): Likewise.
818 (main): Update after interface changes.
819 * genrecog.c (next_insn_code, pattern_lineno): Delete.
820 (validate_pattern): Replace top-level rtx with an md_rtx_info.
821 Use *_at rather than *_with_line functions.
822 (match_pattern_2): Likewise.
823 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
824 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
825 Use *_at rather than *_with_line functions.
826 * gentarget-def.c (add_insn): New function.
827 (main): Use it. Use new read_md_rtx interface.
828
829 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
830
831 * gensupport.h (compute_test_codes): Take a file_location rather
832 than a line number.
833 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
834 rather than *_with_line functions.
835 (process_define_predicate): Update call to compute_test_codes.
836 * genpreds.c (validate_exp): Take a file_location rather than a
837 line number. Use *_at functions rather than *_with_line functions.
838 (process_define_predicate): Update call to validate_exp.
839 (constraint_data): Replace lineno field with a file_location.
840 (add_constraint): Take a file_location rather than a line number.
841 Use *_at functions rather than *_with_line functions. Fix error
842 message for address constraints. Update after changes to
843 validate_exp, constraint_data and compute_test_codes.
844 (process_define_constraint): Update accordingly.
845 (process_define_register_constraint): Likewise.
846
847 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
848
849 * genoutput.c (data): Use a file_location to record the source
850 position.
851 (nothing): Delete.
852 (idata, idata_end): Remove initialization.
853 (constraint_data): Replace lineno with a file_location.
854 (output_insn_data): Update after changes to data.
855 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
856 (scan_operands): Likewise, using *_at rather than *_with_line
857 functions.
858 (process_template): Likewise.
859 (validate_insn_alternatives): Likewise.
860 (validate_insn_operands): Likewise.
861 (validate_optab_operands): Likewise.
862 (init_insn_for_nothing): Initialize idata and idata_end.
863 (note_constraint): Update after changes to constraint_data,
864 using at rather than with_line functions.
865 (mdep_constraint_len): Take a file_location rather than a
866 line number. Use at rather than with_line functions.
867
868 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
869
870 * read-md.h (fatal_at): Declare.
871 * read-md.c (fatal_at): New function.
872 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
873 to record the source position.
874 (check_attr_test): Take a file_location instead of a line number.
875 Use fatal_at instead of fatal.
876 (check_attr_value): Update after above changes, using "at"
877 rather than "with_line" reporting functions.
878 (convert_set_attr_alternative): Likewise.
879 (gen_attr): Likewise.
880 (check_defs): Likewise. Don't assign to read_md_filename.
881 (gen_insn): Update initialization after above changes.
882 (gen_delay): Likewise.
883 (write_insn_cases): Print the filename for a define_peephole.
884 (gen_insn_reserv): Take a line number as argument and update
885 the call to check_attr_test.
886 (main): Pass a line number to gen_insn_reserv.
887
888 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
889
890 * read-md.h (file_location): New structure.
891 (directive_handler_t): Take a file_location rather than a line number.
892 (message_at, error_at): Declare.
893 (read_skip_construct): Delete.
894 * read-md.c (message_with_line_1): Replace with...
895 (message_at_1): ...this new function.
896 (message_at, error_at): New functions.
897 (message_with_line, error_with_line): Update to use message_at_1.
898 (handle_enum): Take a file_location rather than a line number
899 and use error_at for error reporting.
900 (handle_include): Likewise.
901 (read_skip_construct): Likewise. Make static.
902 (handle_file): Update after above changes. Pass a file_location
903 rather than a line number to handle_directive.
904 * gensupport.c (queue_elem): Replace separate filename and lineno
905 with a file_location.
906 (queue_pattern): Replace filename and lineno arguments with a
907 file_location. Update after change to queue_elem.
908 (process_define_predicate): Replace lineno argument with a
909 file_location and use error_at for error reporting. Update
910 after above changes.
911 (process_rtx): Likewise.
912 (subst_pattern_match): Likewise.
913 (get_alternatives_number): Likewise.
914 (alter_predicate_for_insn): Likewise.
915 (rtx_handle_directive): Likewise.
916 (is_predicable): Update after above changes, using error_at rather
917 than error_with_line.
918 (has_subst_attribute): Likewise.
919 (identify_predicable_attribute): Likewise.
920 (alter_attrs_for_subst_insn): Likewise.
921 (process_one_cond_exec): Likewise.
922 (process_substs_on_one_elem): Likewise.
923 (process_define_subst): Likewise.
924 (check_define_attr_duplicates): Likewise.
925 (read_md_rtx): Update after change to queue_elem.
926
927 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
928
929 * genoutput.c (next_index_number): Delete.
930 (data): Remove index_number.
931 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
932 (main): Remove manipulation of next_index_number.
933
934 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
935
936 * genattrtab.c (check_attr_value): Remove handling of null attrs.
937 (make_canonical): Likewise.
938
939 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
940
941 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
942 instead of adjust_address_nv.
943 (restore_stack_nonlocal): Likewise.
944 (nonlocal_goto): Likewise.
945
946 2015-07-16 Tom de Vries <tom@codesourcery.com>
947
948 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
949 not have a corresponding loop header phi.
950
951 2015-07-16 Tom de Vries <tom@codesourcery.com>
952
953 * tree-parloops.c (create_loads_for_reductions): Handle case that
954 reduction is unused.
955
956 2015-07-16 Richard Biener <rguenther@suse.de>
957
958 PR tree-optimization/66894
959 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
960 about deriving NE_EXPR from truncated values.
961
962 2015-07-16 Martin Liska <mliska@suse.cz>
963
964 * alloc-pool.h
965 (object_allocator): Add new class.
966 (pool_allocator::initialize): Use the underlying class.
967 (pool_allocator::allocate): Likewise.
968 (pool_allocator::remove): Likewise.
969 (operator new): A new generic allocator.
970 * asan.c (struct asan_mem_ref): Remove unused members.
971 (asan_mem_ref_new): Replace new operator with
972 object_allocator::allocate.
973 (free_mem_ref_resources): Change deallocation.
974 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
975 with object_allocator.
976 * config/sh/sh.c (add_constant): Replace new operator with
977 object_allocator::allocate.
978 (sh_reorg): Change call to a release method.
979 * cselib.c (struct elt_list): Remove unused members.
980 (new_elt_list): Replace new operator with
981 object_allocator::allocate.
982 (new_elt_loc_list): Likewise.
983 (new_cselib_val): Likewise.
984 (unchain_one_elt_list): Change delete operator with remove method.
985 (unchain_one_elt_loc_list): Likewise.
986 (unchain_one_value): Likewise.
987 (cselib_finish): Release newly added static allocators.
988 * cselib.h (struct cselib_val): Remove unused members.
989 (struct elt_loc_list): Likewise.
990 * df-problems.c (df_chain_alloc): Replace pool_allocator with
991 object_allocator.
992 * df-scan.c (struct df_scan_problem_data): Likewise.
993 (df_scan_alloc): Likewise.
994 * df.h (struct dataflow): Likewise.
995 * dse.c (struct read_info_type): Likewise.
996 (struct insn_info_type): Likewise.
997 (struct dse_bb_info_type): Likewise.
998 (struct group_info): Likewise.
999 (struct deferred_change): Likewise.
1000 (get_group_info): Likewise.
1001 (delete_dead_store_insn): Likewise.
1002 (free_read_records): Likewise.
1003 (replace_read): Likewise.
1004 (check_mem_read_rtx): Likewise.
1005 (scan_insn): Likewise.
1006 (dse_step1): Likewise.
1007 (dse_step7): Likewise.
1008 * et-forest.c (struct et_occ): Remove unused members.
1009 (et_new_occ): Use allocate instead of new operator.
1010 (et_new_tree): Likewise.
1011 (et_free_tree): Call release method explicitly.
1012 (et_free_tree_force): Likewise.
1013 (et_free_pools): Likewise.
1014 (et_split): Use remove instead of delete operator.
1015 * et-forest.h (struct et_node): Remove unused members.
1016 * ipa-cp.c: Change pool_allocator to object_allocator.
1017 * ipa-inline-analysis.c: Likewise.
1018 * ipa-profile.c: Likewise.
1019 * ipa-prop.c: Likewise.
1020 * ipa-prop.h: Likewise.
1021 * ira-build.c (initiate_cost_vectors): Cast return value.
1022 (ira_allocate_cost_vector): Likewise.
1023 * ira-color.c (struct update_cost_record): Remove unused members.
1024 * lra-int.h (struct lra_live_range): Likewise.
1025 (struct lra_copy): Likewise.
1026 (struct lra_insn_reg): Likewise.
1027 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1028 * lra.c (new_insn_reg): Replace new operator with allocate method.
1029 (free_insn_regs): Same for operator delete.
1030 (finish_insn_regs): Release new static allocator.
1031 (finish_insn_recog_data): Likewise.
1032 (lra_free_copies): Replace delete operator with remove method.
1033 (lra_create_copy): Replace operator new with allocate method.
1034 (invalidate_insn_data_regno_info): Same for remove method.
1035 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1036 (free_debug_insn_changes): Replace delete operator with remove method.
1037 (replace_oldest_value_reg): Replace operator new with allocate method.
1038 (pass_cprop_hardreg::execute): Release new static variable.
1039 * sched-deps.c (sched_deps_init): Change pool_allocator to
1040 object_allocator.
1041 * sel-sched-ir.c: Likewise.
1042 * sel-sched-ir.h: Likewise.
1043 * stmt.c (expand_case): Likewise.
1044 (expand_sjlj_dispatch_table): Likewise.
1045 * tree-sra.c (struct access): Remove unused members.
1046 (struct assign_link): Likewise.
1047 (sra_deinitialize): Release newly added static pools.
1048 (create_access_1):Replace operator new with allocate method.
1049 (build_accesses_from_assign): Likewise.
1050 (create_artificial_child_access): Likewise.
1051 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1052 pool_allocator to object_allocator.
1053 * tree-ssa-pre.c: Likewise.
1054 * tree-ssa-reassoc.c: Likewise.
1055 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1056 * tree-ssa-strlen.c: Likewise.
1057 * tree-ssa-structalias.c: Likewise.
1058 * var-tracking.c (onepart_pool_allocate): New function.
1059 (unshare_variable): Use the newly added function.
1060 (variable_merge_over_cur): Likewise.
1061 (variable_from_dropped): Likewise.
1062 (variable_was_changed): Likewise.
1063 (set_slot_part): Likewise.
1064 (emit_notes_for_differences_1): Likewise.
1065 (vt_finalize): Release newly added static pools.
1066
1067 2015-07-16 Martin Jambor <mjambor@suse.cz>
1068
1069 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1070 all uses. Fix two typos in its general comment.
1071 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1072
1073 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
1074
1075 * config/i386/linux-common.h (LINK_MPX): New.
1076 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1077 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1078 indicating '-z bndplt' support by linker.
1079 * configure: Regenerate.
1080 * config.in: Regenerate.
1081
1082 2015-07-16 Richard Biener <rguenther@suse.de>
1083
1084 * fold-const.c (fold_widened_comparison): Remove.
1085 (fold_sign_changed_comparison): Likewise.
1086 (fold_comparison): Move widened and sign-changed comparison
1087 simplification ...
1088 * match.pd: ... to patterns here.
1089 * generic-match-head.c: Include target.h.
1090 * gimple-match-head.c: Likewise.
1091
1092 2015-07-16 Richard Biener <rguenther@suse.de>
1093
1094 * tree-ssa-dom.c (dom_valueize): New function.
1095 (record_temporary_equivalences): Also record equivalences
1096 for dominating stmts that have uses of equivalences we are
1097 about to record.
1098
1099 2015-07-16 Bin Cheng <bin.cheng@arm.com>
1100
1101 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1102 add_autoinc_candidates.
1103 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1104 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1105 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1106 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1107 Call new function.
1108 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1109 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1110 Remove parameter struct iv*. Call add_autoinc_candidates here.
1111 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1112 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1113 Call new function.
1114 (find_iv_candidates): Call new functions.
1115
1116 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
1117
1118 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1119 uninitialized-variable warning.
1120
1121 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1122
1123 PR target/65249
1124 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1125 when the destination is R0.
1126
1127 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
1128
1129 PR target/66866
1130 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1131 * config/i386/i386.c (ix86_expand_pextr): New function.
1132 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1133 for non-lowpart subregs.
1134 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1135 (insv<mode>): Use SWI248 mode iterator.
1136 (insv<mode>_1): Ditto.
1137
1138 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1139 Sebastian Pop <s.pop@samsung.com>
1140
1141 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1142 iterator to use_stmt.
1143
1144 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1145 Sebastian Pop <s.pop@samsung.com>
1146
1147 * graphite-scop-detection.c (build_scops_1): Discard scops for
1148 which entry==exit.
1149
1150 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1151 Sebastian Pop <s.pop@samsung.com>
1152
1153 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1154 case of a return statement in scop.
1155
1156 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1157 Sebastian Pop <s.pop@samsung.com>
1158
1159 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1160 INTEGER_TYPE parameters.
1161 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1162 VECTOR_CST in scan_tree_for_params.
1163 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1164
1165 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1166
1167 * gimple-pretty-print.h: Don't include pretty-print.h.
1168 * tree-streamer.h: Don't include lto-streamer.h.
1169 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1170 * gimple-streamer-in.c: Remove redundant includes.
1171 * gimple-streamer-out.c: Likewise.
1172 * ipa-devirt.c: Likewise.
1173 * ipa-icf.c: Likewise.
1174 * ipa-inline-analysis.c: Likewise.
1175 * ipa-polymorphic-call.c: Likewise.
1176 * ipa-profile.c: Likewise.
1177 * ipa-prop.c: Likewise.
1178 * ipa-pure-const.c: Likewise.
1179 * lto-cgraph.c: Likewise.
1180 * lto-streamer-in.c: Likewise.
1181 * lto-streamer-out.c: Likewise.
1182 * lto-streamer.c: Likewise.
1183 * tree-streamer-in.c: Likewise.
1184 * tree-streamer-out.c: Likewise.
1185 * tree-streamer.c: Likewise.
1186
1187 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1188
1189 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1190 include input.h.
1191 * opts.c: Remove multiline #include comment.
1192
1193 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1194
1195 * config/nvptx/mkoffload.c (process): Add C++ protection to
1196 emitted code.
1197
1198 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1199
1200 PR target/66854
1201 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1202 null before IEEE 128-bit floating point support patch.
1203
1204 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1205
1206 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1207 for (!c) != {0,...,0} ? a : b for vector modes.
1208
1209 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1210 Martin Jambor <mjambor@suse.cz>
1211
1212 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1213 struct func_body_info* instead of struct ipa_node_params*, expecting
1214 fbi->info to be filled in. Replace throughout. Adjust call to
1215 ipa_load_from_parm_agg.
1216 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1217 instead of struct ipa_node_params*. Adjust calls to other functions
1218 so that they pass either fbi or fbi->info.
1219 (set_switch_stmt_execution_predicate): Likewise.
1220 (will_be_nonconstant_predicate): Likewise.
1221 (compute_bb_predicates): Likewise.
1222 (estimate_function_body_sizes): Move asserts earlier. Fill in
1223 struct func_body_info, replace parms_info with fbi.info. Adjust
1224 calls to functions that now accept struct func_body_info.
1225 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1226 (struct func_body_info): Likewise.
1227 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1228 remove static. Adjust callers.
1229 (ipa_load_from_parm_agg): Remove.
1230 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1231 (func_body_info): Likewise.
1232 (ipa_load_from_parm_agg): Adjust prototype.
1233
1234 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1235
1236 * gensupport.c (rtx_handle_directive): Adjust.
1237 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1238 instead of expr list rtx.
1239 (add_define_attr_for_define_subst): Likewise.
1240 (add_define_subst_attr): Likewise.
1241 (read_subst_mapping): Likewise.
1242 (read_rtx): Likewise.
1243 * rtl.h (read_rtx): Adjust.
1244
1245 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1246
1247 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1248
1249 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1250
1251 PR target/58066
1252 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1253 (*tls_local_dynamic_base_64_<mode>): Ditto.
1254 (*tls_local_dynamic_base_64_largepic): Ditto.
1255 (tls_global_dynamic_64_<mode>): Update expander pattern.
1256 (tls_local_dynamic_base_64_<mode>): Ditto.
1257
1258 2015-07-15 Richard Biener <rguenther@suse.de>
1259
1260 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1261 and bool_var == 1 -> bool_var simplifications ...
1262 * match.pd: ... to patterns here. Factor out negate_expr_p
1263 cases from the A - B -> A + (-B) patterns as negate_expr_p
1264 predicate and add a -(A + B) -> (-B) - A pattern.
1265
1266 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1267
1268 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1269
1270 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1271 Robert Suchanek <robert.suchanek@imgtec.com>
1272
1273 * config/mips/mips.c (mips_int_mask): New enum.
1274 (mips_shadow_set): Likewise.
1275 (int_mask): New variable.
1276 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1277 (machine_function): Add int_mask and use_shadow_register_set.
1278 (mips_attribute_table): Add attribute handlers for interrupt and
1279 use_shadow_register_set.
1280 (mips_interrupt_mask): New static function.
1281 (mips_handle_interrupt_attr): Likewise.
1282 (mips_handle_use_shadow_register_set_attr): Likewise.
1283 (mips_use_shadow_register_set): Change return type to enum
1284 mips_shadow_set. Add argument handling for use_shadow_register_set
1285 attribute.
1286 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1287 compare with mips_shadow_set enum.
1288 (mips_compute_frame_info): Add interrupt mask and
1289 use_shadow_register_set to per-function information structure.
1290 Add a stack slot for EPC unconditionally.
1291 (mips_expand_prologue): Compare use_shadow_register_set value
1292 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1293 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1294 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1295 copying the stack pointer from the shadow register set.
1296 * config/mips/mips.h (SR_IM0): New define.
1297 * config/mips/mips.md (mips_rdpgpr): Rename to...
1298 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1299 * doc/extend.texi (Declaring Attributes of Functions): Document
1300 optional arguments for interrupt and use_shadow_register_set
1301 attributes.
1302
1303 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1304
1305 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1306 interrupt attribute.
1307 (mips_expand_prologue): Disable the floating point unit in an ISR.
1308 * config/mips/mips.h (SR_COP1): New define.
1309
1310 2015-07-15 Richard Biener <rguenther@suse.de>
1311
1312 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1313 to tell how many tokens to peek ahead (default 1).
1314 (parser::eat_token, parser::eat_ident): Return token consumed.
1315 (parser::parse_result): Parse new switch statement.
1316 * match.pd: Use case statements where appropriate.
1317
1318 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1319
1320 PR rtl-optimization/58066
1321 * calls.c (expand_call): Precompute register parameters before stack
1322 alignment is performed.
1323
1324 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1325
1326 PR rtl-optimization/66838
1327 * postreload.c (reload_cse_move2add): Also process
1328 CALL_INSN_FUNCTION_USAGE when resetting information of
1329 call-clobbered registers.
1330
1331 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1332 Cesar Philippidis <cesar@codesourcery.com>
1333 Chung-Lin Tang <cltang@codesourcery.com>
1334
1335 * config/nios2/constraints.md (U, v): New constraints.
1336 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1337 (ldstex_memory_operand): New.
1338 * config/nios2/sync.md: New file.
1339 * config/nios2/nios2.md (unspecv): Add new builtin function
1340 UNSPECV codes.
1341 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1342 (top-level): Include sync.md.
1343 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1344 new builtins.
1345 (N2_BUILTINS): Add arch field setting, add new builtins.
1346 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1347 for arch field.
1348 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1349 Also handle ldex/stex/ldsex/stsex builtins.
1350 (nios2_expand_rdprs_builtin): New function.
1351 (nios2_expand_cache_builtin): New function.
1352 (nios2_expand_wrpie_builtin): New function.
1353 (nios2_expand_eni_builtin): New function.
1354 (nios2_expand_builtin): Add arch field handling and new builtin
1355 cases.
1356 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1357 new builtins.
1358 * doc/md.texi (Machine Constraints): Document U and v constraints.
1359
1360 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1361 Cesar Philippidis <cesar@codesourcery.com>
1362 Chung-Lin Tang <cltang@codesourcery.com>
1363
1364 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1365 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1366 callee_save_reg_size and uses_anonymous_args fields.
1367 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1368 (nios2_create_cfa_notes): New function.
1369 (nios2_adjust_stack): New function for adjusting stack.
1370 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1371 Use nios2_adjust_stack.
1372 (nios2_expand_epilogue): Likewise.
1373 (nios2_expand_return): New function.
1374 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1375 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1376 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1377 * config/nios2/nios2.md (return): Use nios2_expand_return.
1378
1379 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1380 Cesar Philippidis <cesar@codesourcery.com>
1381 Chung-Lin Tang <cltang@codesourcery.com>
1382
1383 * config/nios2/predicates.md (pop_operation): New.
1384 (ldwm_operation, stwm_operation): New.
1385 (nios2_hard_register_operand): New.
1386 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1387 (ldstwm_operation_p): Declare.
1388 (gen_ldstwm_peep): Declare.
1389 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1390 (base_reg_adjustment_p): New.
1391 (pop_operation_p): New.
1392 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1393 (nios2_ldstwm_regset_p): New.
1394 (ldstwm_operation_p): New.
1395 (gen_ldst): New.
1396 (nios2_ldst_parallel): New.
1397 (struct ldswm_operand): Declare.
1398 (compare_ldstwm_operands): New.
1399 (can_use_cdx_ldstw): New.
1400 (gen_ldstwm_peep): New.
1401 * config/nios2/nios2-ldstwm.sml: New.
1402 * config/nios2/nios2.md: Include ldstwm.md.
1403 * config/nios2/ldstwm.md: Generated.
1404
1405 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1406 Cesar Philippidis <cesar@codesourcery.com>
1407 Chung-Lin Tang <cltang@codesourcery.com>
1408
1409 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1410 (REG_ALLOC_ORDER): Define.
1411 (ADJUST_REG_ALLOC_ORDER): Define.
1412 (HONOR_REG_ALLOC_ORDER): Define.
1413 (CDX_REG_P): Define.
1414 (ANDCLEAR_INT): Define.
1415 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1416 (nios2_label_align): Declare.
1417 (nios2_cdx_narrow_form_p): Declare.
1418 (nios2_adjust_reg_alloc_order): Declare.
1419 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1420 operation.
1421 (nios2_large_unspec_reloc_p): New function, split from...
1422 (nios2_legitimate_pic_operand_p): ...here.
1423 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1424 (nios2_print_operand_punct_valid_p): New.
1425 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1426 (split_mem_address): New.
1427 (split_alu_insn): New.
1428 (cdxreg): New.
1429 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1430 (enum nios2_add_insn_kind): New.
1431 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1432 (nios2_add_insn_classify): New.
1433 (nios2_add_insn_asm): New.
1434 (nios2_cdx_narrow_form_p): New.
1435 (label_align, min_labelno, max_labelno): New.
1436 (nios2_reorg): New.
1437 (nios2_label_align): New.
1438 (nios2_adjust_reg_alloc_order): New.
1439 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1440 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1441 * config/nios2/constraints.md (P): New constraint.
1442 * config/nios2/predicates.md (const_and_operand): New.
1443 (and_operand): New.
1444 (stack_memory_operand): New.
1445 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1446 (length): Update to use nios2_cdx_narrow_form_p().
1447 (type): Add new insn type values.
1448 (control, alu, st, ld, shift): Update insn reservations with
1449 new insn type values.
1450 (*high, *lo_sum): Define new insn patterns for constant generation.
1451 (movqi_internal, movhi_internal, movsi_internal): Reduce
1452 alternatives, update asm template to handle CDX variants, update
1453 type attributes.
1454 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1455 template, update type attributes.
1456 (extendhisi2, extendqi<mode>2): Likewise.
1457 (addsi3): Change to use function for asm string.
1458 (subsi3): Add CDX notation to asm template, update type attributes.
1459 (negsi3, one_cmplsi3): Likewise.
1460 (andsi3): New pattern, specialized from logical patterns.
1461 (<code>si3): Remove and case, combine alternatives, update asm
1462 template.
1463 (<shift_op>si3): Add CDX notation, update type attributes.
1464 (rotrsi3): Update type attribute.
1465 (*merge, extzv, insv): New insn patterns.
1466 (return): Change to define_expand.
1467 (simple_return): Add CDX notation, update type attributes.
1468 (indirect_jump): Add CDX notation.
1469 (jump): Update asm cases, update length attribute expression.
1470 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1471 (nios2_cbranch): Update asm cases and length attribute expression
1472 to handle CDX variants.
1473 (nios2_cmp<code>): Update asm template.
1474 (nop): Add CDX notation, update type attributes.
1475 (trap): Add CDX notation.
1476 (ctrapsi4): Update asm cases and length attribute expression to
1477 handle CDX variant.
1478 * doc/md.texi (Machine Constraints): Document P constraint.
1479
1480 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1481 Cesar Philippidis <cesar@codesourcery.com>
1482 Chung-Lin Tang <cltang@codesourcery.com>
1483
1484 * config/nios2/nios2.h (SMALL_INT12): New macro.
1485 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1486 (nios2_valid_addr_expr_p): Use it.
1487 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1488 with implicit "io" instructions on R2.
1489 * config/nios2/constraints.md (w): New constraint.
1490 * config/nios2/predicates.md (ldstio_memory_operand): New.
1491 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1492 operand predicate and constraint.
1493 (ld<bh>io_signed, st<bhw>io>): Likewise.
1494 * doc/md.texi (Machine Constraints): Document w constraint.
1495
1496 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1497 Cesar Philippidis <cesar@codesourcery.com>
1498 Chung-Lin Tang <cltang@codesourcery.com>
1499
1500 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1501 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1502 Nios II architecture level.
1503 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1504 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1505 (OPTION_DEFAULT_SPECS): Define.
1506 (ASM_SPEC): Add -march= spec strings.
1507 * config/nios2/nios2.c (nios2_option_override): Check for
1508 conflicts involving new options.
1509 * config.gcc (nios2*-*-*): Support --with-arch=.
1510 * doc/invoke.texi (Option Summary, Nios II Options): Document
1511 -march=, -mbmx, and -mcdx.
1512
1513 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1514
1515 PR rtl-optimization/66626
1516 * lra-constraints.c (lra_constraints): Prevent equivalence
1517 substitution for static chain pseudo in functions with nonlocal
1518 goto.
1519
1520 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1521
1522 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1523 (nios2_emit_stack_limit_check): Add size parameter. Handle
1524 -fstack-limit-symbol as well as -fstack-limit-register.
1525 (nios2_expand_prologue): Emit only a single stack limit check,
1526 even if multiple stack adjustments are required.
1527 (nios2_option_override): Diagnose unsupported combination of -fpic
1528 and -stack-limit-symbol.
1529
1530 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1531
1532 * Makefile.in (top_srcdir): New.
1533 * configure.ac: Use AM_ZLIB.
1534 * configure: Regeneated.
1535
1536 2015-07-14 Matthias Klose <doko@ubuntu.com>
1537
1538 PR target/66840
1539 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1540
1541 2015-07-14 Richard Biener <rguenther@suse.de>
1542
1543 PR tree-optimization/66863
1544 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1545 what we record for conversion use stmt lhs inequalities.
1546
1547 2015-07-14 Richard Biener <rguenther@suse.de>
1548
1549 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1550 (decision_tree::gen_gimple): Likewise.
1551
1552 2015-07-14 Tom de Vries <tom@codesourcery.com>
1553
1554 * gcc.c (greater_than_spec_func): Declare forward.
1555 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1556 -ftree-parallelize-loops={0,1}.
1557 (static_spec_functions): Add greater_than_spec_func function with name
1558 "gt".
1559 (greater_than_spec_func): New function.
1560
1561 2015-07-14 Richard Biener <rguenther@suse.de>
1562
1563 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1564 wideing type conversion case from record_equivalences_from_incoming_edge
1565 and use record_equality to record equivalences.
1566 (record_equivalences_from_incoming_edge): Call
1567 record_temporary_equivalences.
1568
1569 2015-07-14 Richard Biener <rguenther@suse.de>
1570
1571 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1572 (struct if_expr): New.
1573 (struct with_expr): Likewise.
1574 (is_a_helper): Add helpers for if_expr and with_expr.
1575 (struct simplify): Add simplify_kind enum and member. Remove
1576 ifexpr_vec member.
1577 (simplify::simplify): Adjust.
1578 (lower_commutative): Adjust.
1579 (lower_opt_convert): Likewise.
1580 (lower_cond): Likewise.
1581 (replace_id): Handle with_expr and if_expr.
1582 (lower_for): Adjust.
1583 (dt_simplify::gen_1): New recursive worker, split out from ...
1584 (dt_simplify::gen): ... here. Deal with if and with expansion
1585 recursively.
1586 (capture_info::capture_info): Take context argument
1587 (capture_info::walk_result): Only analyze specific result.
1588 (parser::parse_result): New function.
1589 (parser::parse_simplify): Adjust to parse ifs with then end
1590 else case.
1591 (parser::parse_if): Simplify.
1592 (parser::parse_pattern): Pass down simplify kind.
1593 * match.pd: Convert if structure to new syntax.
1594
1595 2015-07-13 Marek Polacek <polacek@redhat.com>
1596
1597 * rtl.c (rtx_equal_p_cb): Fix typo.
1598
1599 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1600
1601 * omega.h: Don't include config.h, don't include params.h again if
1602 omega.h has already been included.
1603 * graphite-poly.h: Include sese.h.
1604 * graphite.c: Don't include sese.h, remove needless includes and
1605 minimize includes outside #ifdef HAVE_isl block.
1606 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1607 and wrap entire file in #ifdef HAVE_isl
1608 * graphite-dependences.c: Likewise.
1609 * graphite-interchange.c: Likewise.
1610 * graphite-isl-ast-to-gimple.c: Likewise.
1611 * graphite-optimize-isl.c: Likewise.
1612 * graphite-poly.c: Likewise.
1613 * graphite-scop-detection.c: Likewise.
1614 * graphite-sese-to-poly.c: Likewise.
1615
1616 2015-07-13 Tom de Vries <tom@codesourcery.com>
1617
1618 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1619
1620 2015-07-13 Renlin Li <renlin.li@arm.com>
1621
1622 PR rtl/66556
1623 * simplify-rtx.c (simplify_const_relational_operation): Add
1624 side_effects_p checks.
1625
1626 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1627
1628 * bitmap.h: Fix double word typos.
1629 * builtins.c: Same.
1630 * calls.c: Same.
1631 * cfgloopmanip.c: Same.
1632 * cgraph.c: Same.
1633 * cgraph.h: Same.
1634 * cgraphclones.c: Same.
1635 * combine.c: Same.
1636 * config/aarch64/aarch64-protos.h: Same.
1637 * config/aarch64/aarch64.c: Same.
1638 * config/aarch64/aarch64.md: Same.
1639 * config/arm/arm.md: Same.
1640 * config/arm/arm1020e.md: Same.
1641 * config/arm/arm1026ejs.md: Same.
1642 * config/arm/arm926ejs.md: Same.
1643 * config/arm/fa526.md: Same.
1644 * config/arm/fa606te.md: Same.
1645 * config/arm/fa626te.md: Same.
1646 * config/arm/fa726te.md: Same.
1647 * config/arm/fmp626.md: Same.
1648 * config/darwin.c: Same.
1649 * config/epiphany/epiphany.c: Same.
1650 * config/frv/frv.c: Same.
1651 * config/ft32/ft32.c: Same.
1652 * config/gnu-user.h: Same.
1653 * config/h8300/constraints.md: Same.
1654 * config/i386/i386.c: Same.
1655 * config/i386/i386.md: Same.
1656 * config/iq2000/iq2000.md: Same.
1657 * config/mips/mips.c: Same.
1658 * config/mmix/mmix.md: Same.
1659 * config/moxie/moxie.c: Same.
1660 * config/nds32/nds32.md: Same.
1661 * config/pa/pa.h: Same.
1662 * config/rs6000/aix.h: Same.
1663 * config/rs6000/rs6000.h: Same.
1664 * config/sh/sh.c: Same.
1665 * config/tilegx/tilegx.md: Same.
1666 * config/tilepro/gen-mul-tables.cc: Same.
1667 * cse.c: Same.
1668 * dbxout.c: Same.
1669 * doc/invoke.texi: Same.
1670 * dse.c: Same.
1671 * dwarf2out.c: Same.
1672 * final.c: Same.
1673 * gcc.c: Same.
1674 * genmatch.c: Same.
1675 * gimplify.c: Same.
1676 * hash-table.h: Same.
1677 * internal-fn.c: Same.
1678 * ipa-cp.c: Same.
1679 * ipa-devirt.c: Same.
1680 * ipa-icf.c: Same.
1681 * ipa-icf.h: Same.
1682 * ipa-profile.c: Same.
1683 * ipa-prop.c: Same.
1684 * ipa-prop.h: Same.
1685 * ira.c: Same.
1686 * omp-low.c: Same.
1687 * reg-stack.c: Same.
1688 * regcprop.c: Same.
1689 * reorg.c: Same.
1690 * rtl.h: Same.
1691 * sbitmap.h: Same.
1692 * tree-eh.c: Same.
1693 * tree-inline.c: Same.
1694 * tree-sra.c: Same.
1695 * tree-ssa-dom.c: Same.
1696 * tree-ssa-loop-ivopts.c: Same.
1697 * tree-ssa-structalias.c: Same.
1698 * tree-ssa-tail-merge.c: Same.
1699 * tree-ssa-ter.c: Same.
1700 * tree-ssa-threadupdate.c: Same.
1701 * tree-ssa-uninit.c: Same.
1702 * tree-ssanames.c: Same.
1703 * tree-vect-loop-manip.c: Same.
1704 * tree-vrp.c: Same.
1705 * tree.c: Same.
1706 * valtrack.c: Same.
1707 * vec.h: Same.
1708
1709 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1710
1711 PR middle-end/66726
1712 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1713 tree_ssa_phiopt_worker): Call it.
1714
1715 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1716
1717 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1718 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1719 REG_EQUAL note.
1720
1721 2015-07-11 Marek Polacek <polacek@redhat.com>
1722
1723 PR middle-end/66353
1724 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1725 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1726 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1727 rather than bb_has_abnormal_call_pred.
1728 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1729 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1730 rather than bb_has_abnormal_call_pred.
1731
1732 2015-07-10 Anatoly Sokolov <aesok@post.ru>
1733
1734 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1735 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1736 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1737 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1738 v850_legitimate_address_p): New functions.
1739 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1740
1741 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
1742
1743 PR target/66819
1744 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1745 indirect sibcall with register arguments if register available
1746 for argument passing.
1747 (init_cumulative_args): Set cfun->machine->arg_reg_available
1748 to (cum->nregs > 0) or to true if function has a variable
1749 argument list.
1750 (function_arg_advance_32): Set cfun->machine->arg_reg_available
1751 to false if cum->nregs <= 0.
1752 * config/i386/i386.h (machine_function): Add arg_reg_available.
1753
1754 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1755
1756 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1757 and gen_higpart instead of gen_rtx_SUBREG.
1758 * config/i386/i386.md
1759 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1760 (read-modify peephole2): Use gen_lowpart instead of
1761 gen_rtx_SUBREG for operand 5.
1762
1763 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1764
1765 * config/tilepro/gen-mul-tables.cc (main): Change include list for
1766 generated files.
1767 * config/tilepro/mul-tables.c: Regenerate.
1768 * config/tilegx/mul-tables.c: Regenerate.
1769
1770 2015-07-10 Richard Biener <rguenther@suse.de>
1771
1772 * fold-const.c (distribute_bit_expr): Remove.
1773 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1774 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1775 to A & (B | C) and simplifying A << C1 << C2 to ...
1776 * match.pd: ... patterns here.
1777
1778 2015-07-10 Jiong Wang <jiong.wang@arm.com>
1779
1780 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1781 Mark mem as READONLY and NOTRAP for PIC symbol.
1782
1783 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1784
1785 * gimple-predict.h: New file.
1786 (gimple_predict_predictor, gimple_predict_set_predictor,
1787 gimple_predict_outcome, gimple_predict_set_outcome,
1788 gimple_build_predict): Relocate here.
1789 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1790 gimple_predict_outcome, gimple_predict_set_outcome): Move to
1791 gimple-predict.h.
1792 * gimple.c (gimple_build_predict): Move to gimple-predict.h
1793 * basic-block.h: Don't include cfghooks.h.
1794 * backend.h: Don't include predict.h.
1795 * cfghooks.h: Include predict.h.
1796 * gimple-pretty-print.c: Include gimple-predict.h.
1797 * gimplify.c: Likwise.
1798 * predict.c: Adjust includes.
1799 * tree-inline.c: Likewise.
1800 * asan.c: Likewise.
1801 * auto-inc-dec.c: Likewise.
1802 * auto-profile.c: Likewise.
1803 * bb-reorder.c: Likewise.
1804 * builtins.c: Likewise.
1805 * caller-save.c: Likewise.
1806 * calls.c: Likewise.
1807 * cfganal.c: Likewise.
1808 * cfgbuild.c: Likewise.
1809 * cfg.c: Likewise.
1810 * cfgcleanup.c: Likewise.
1811 * cfgexpand.c: Likewise.
1812 * cfghooks.c: Likewise.
1813 * cfgloopanal.c: Likewise.
1814 * cfgloop.c: Likewise.
1815 * cfgloopmanip.c: Likewise.
1816 * cfgrtl.c: Likewise.
1817 * cgraph.c: Likewise.
1818 * cgraphunit.c: Likewise.
1819 * combine.c: Likewise.
1820 * cprop.c: Likewise.
1821 * cse.c: Likewise.
1822 * dce.c: Likewise.
1823 * dojump.c: Likewise.
1824 * dse.c: Likewise.
1825 * except.c: Likewise.
1826 * expmed.c: Likewise.
1827 * expr.c: Likewise.
1828 * final.c: Likewise.
1829 * fold-const.c: Likewise.
1830 * function.c: Likewise.
1831 * fwprop.c: Likewise.
1832 * gcc-plugin.h: Likewise.
1833 * gcse.c: Likewise.
1834 * genattrtab.c: Likewise.
1835 * genemit.c: Likewise.
1836 * gengtype.c: Likewise.
1837 * genopinit.c: Likewise.
1838 * genoutput.c: Likewise.
1839 * genpreds.c: Likewise.
1840 * genrecog.c: Likewise.
1841 * gimple-fold.c: Likewise.
1842 * gimple-iterator.c: Likewise.
1843 * gimple-ssa-isolate-paths.c: Likewise.
1844 * gimple-ssa-strength-reduction.c: Likewise.
1845 * graph.c: Likewise.
1846 * graphite-blocking.c: Likewise.
1847 * graphite.c: Likewise.
1848 * graphite-dependences.c: Likewise.
1849 * graphite-interchange.c: Likewise.
1850 * graphite-isl-ast-to-gimple.c: Likewise.
1851 * graphite-optimize-isl.c: Likewise.
1852 * graphite-poly.c: Likewise.
1853 * graphite-scop-detection.c: Likewise.
1854 * graphite-sese-to-poly.c: Likewise.
1855 * haifa-sched.c: Likewise.
1856 * ifcvt.c: Likewise.
1857 * internal-fn.c: Likewise.
1858 * ipa-cp.c: Likewise.
1859 * ipa-profile.c: Likewise.
1860 * ipa-split.c: Likewise.
1861 * ipa-utils.c: Likewise.
1862 * ira-build.c: Likewise.
1863 * ira-color.c: Likewise.
1864 * ira-conflicts.c: Likewise.
1865 * ira-costs.c: Likewise.
1866 * ira-emit.c: Likewise.
1867 * ira-lives.c: Likewise.
1868 * jump.c: Likewise.
1869 * loop-doloop.c: Likewise.
1870 * loop-init.c: Likewise.
1871 * loop-invariant.c: Likewise.
1872 * loop-unroll.c: Likewise.
1873 * lower-subreg.c: Likewise.
1874 * lra-assigns.c: Likewise.
1875 * lra.c: Likewise.
1876 * lra-coalesce.c: Likewise.
1877 * lra-constraints.c: Likewise.
1878 * lra-lives.c: Likewise.
1879 * lto-cgraph.c: Likewise.
1880 * lto-streamer-in.c: Likewise.
1881 * mode-switching.c: Likewise.
1882 * modulo-sched.c: Likewise.
1883 * omp-low.c: Likewise.
1884 * optabs.c: Likewise.
1885 * passes.c: Likewise.
1886 * postreload.c: Likewise.
1887 * postreload-gcse.c: Likewise.
1888 * profile.c: Likewise.
1889 * recog.c: Likewise.
1890 * regstat.c: Likewise.
1891 * reload1.c: Likewise.
1892 * reorg.c: Likewise.
1893 * rtlanal.c: Likewise.
1894 * sched-ebb.c: Likewise.
1895 * sel-sched-ir.c: Likewise.
1896 * sese.c: Likewise.
1897 * shrink-wrap.c: Likewise.
1898 * simplify-rtx.c: Likewise.
1899 * stmt.c: Likewise.
1900 * store-motion.c: Likewise.
1901 * tracer.c: Likewise.
1902 * trans-mem.c: Likewise.
1903 * tree-call-cdce.c: Likewise.
1904 * tree-cfg.c: Likewise.
1905 * tree-cfgcleanup.c: Likewise.
1906 * tree-chkp.c: Likewise.
1907 * tree-complex.c: Likewise.
1908 * tree-eh.c: Likewise.
1909 * tree-if-conv.c: Likewise.
1910 * tree-loop-distribution.c: Likewise.
1911 * tree-outof-ssa.c: Likewise.
1912 * tree-parloops.c: Likewise.
1913 * tree-predcom.c: Likewise.
1914 * tree-pretty-print.c: Likewise.
1915 * tree-profile.c: Likewise.
1916 * tree-sra.c: Likewise.
1917 * tree-ssa.c: Likewise.
1918 * tree-ssa-coalesce.c: Likewise.
1919 * tree-ssa-dce.c: Likewise.
1920 * tree-ssa-dom.c: Likewise.
1921 * tree-ssa-forwprop.c: Likewise.
1922 * tree-ssa-ifcombine.c: Likewise.
1923 * tree-ssa-loop-ch.c: Likewise.
1924 * tree-ssa-loop-im.c: Likewise.
1925 * tree-ssa-loop-ivcanon.c: Likewise.
1926 * tree-ssa-loop-ivopts.c: Likewise.
1927 * tree-ssa-loop-manip.c: Likewise.
1928 * tree-ssa-loop-prefetch.c: Likewise.
1929 * tree-ssa-loop-unswitch.c: Likewise.
1930 * tree-ssa-math-opts.c: Likewise.
1931 * tree-ssa-phiopt.c: Likewise.
1932 * tree-ssa-pre.c: Likewise.
1933 * tree-ssa-reassoc.c: Likewise.
1934 * tree-ssa-sink.c: Likewise.
1935 * tree-ssa-tail-merge.c: Likewise.
1936 * tree-ssa-threadedge.c: Likewise.
1937 * tree-ssa-threadupdate.c: Likewise.
1938 * tree-switch-conversion.c: Likewise.
1939 * tree-tailcall.c: Likewise.
1940 * tree-vect-data-refs.c: Likewise.
1941 * tree-vect-loop.c: Likewise.
1942 * tree-vect-loop-manip.c: Likewise.
1943 * tree-vectorizer.c: Likewise.
1944 * tree-vrp.c: Likewise.
1945 * ubsan.c: Likewise.
1946 * value-prof.c: Likewise.
1947 * varasm.c: Likewise.
1948 * var-tracking.c: Likewise.
1949 * config/aarch64/aarch64-builtins.c: Likewise.
1950 * config/aarch64/aarch64.c: Likewise.
1951 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1952 * config/alpha/alpha.c: Likewise.
1953 * config/arc/arc.c: Likewise.
1954 * config/arm/arm.c: Likewise.
1955 * config/avr/avr.c: Likewise.
1956 * config/bfin/bfin.c: Likewise.
1957 * config/c6x/c6x.c: Likewise.
1958 * config/cr16/cr16.c: Likewise.
1959 * config/cris/cris.c: Likewise.
1960 * config/darwin.c: Likewise.
1961 * config/darwin-c.c: Likewise.
1962 * config/epiphany/epiphany.c: Likewise.
1963 * config/epiphany/mode-switch-use.c: Likewise.
1964 * config/epiphany/resolve-sw-modes.c: Likewise.
1965 * config/fr30/fr30.c: Likewise.
1966 * config/frv/frv.c: Likewise.
1967 * config/ft32/ft32.c: Likewise.
1968 * config/h8300/h8300.c: Likewise.
1969 * config/i386/i386.c: Likewise.
1970 * config/i386/winnt.c: Likewise.
1971 * config/ia64/ia64.c: Likewise.
1972 * config/iq2000/iq2000.c: Likewise.
1973 * config/lm32/lm32.c: Likewise.
1974 * config/m32c/m32c.c: Likewise.
1975 * config/m32r/m32r.c: Likewise.
1976 * config/m68k/m68k.c: Likewise.
1977 * config/mcore/mcore.c: Likewise.
1978 * config/mep/mep.c: Likewise.
1979 * config/microblaze/microblaze.c: Likewise.
1980 * config/mips/mips.c: Likewise.
1981 * config/mmix/mmix.c: Likewise.
1982 * config/mn10300/mn10300.c: Likewise.
1983 * config/moxie/moxie.c: Likewise.
1984 * config/msp430/msp430.c: Likewise.
1985 * config/nds32/nds32.c: Likewise.
1986 * config/nds32/nds32-cost.c: Likewise.
1987 * config/nds32/nds32-fp-as-gp.c: Likewise.
1988 * config/nds32/nds32-intrinsic.c: Likewise.
1989 * config/nds32/nds32-isr.c: Likewise.
1990 * config/nds32/nds32-md-auxiliary.c: Likewise.
1991 * config/nds32/nds32-memory-manipulation.c: Likewise.
1992 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1993 * config/nds32/nds32-predicates.c: Likewise.
1994 * config/nios2/nios2.c: Likewise.
1995 * config/nvptx/nvptx.c: Likewise.
1996 * config/pa/pa.c: Likewise.
1997 * config/pdp11/pdp11.c: Likewise.
1998 * config/rl78/rl78.c: Likewise.
1999 * config/rs6000/rs6000.c: Likewise.
2000 * config/rx/rx.c: Likewise.
2001 * config/s390/s390.c: Likewise.
2002 * config/sh/sh.c: Likewise.
2003 * config/sh/sh-mem.cc: Likewise.
2004 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2005 * config/sh/sh_treg_combine.cc: Likewise.
2006 * config/sparc/sparc.c: Likewise.
2007 * config/spu/spu.c: Likewise.
2008 * config/stormy16/stormy16.c: Likewise.
2009 * config/tilegx/tilegx.c: Likewise.
2010 * config/tilepro/tilepro.c: Likewise.
2011 * config/v850/v850.c: Likewise.
2012 * config/vax/vax.c: Likewise.
2013 * config/visium/visium.c: Likewise.
2014 * config/xtensa/xtensa.c: Likewise.
2015
2016 2015-07-10 Richard Biener <rguenther@suse.de>
2017
2018 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2019 (decision_tree::gen_gimple): Likewise.
2020 (decision_tree::gen_generic): Likewise.
2021
2022 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2023
2024 PR target/66813
2025 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2026 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2027
2028 2015-07-10 Jakub Jelinek <jakub@redhat.com>
2029
2030 PR middle-end/66820
2031 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2032 or ORT_TASK contexts.
2033 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2034 is non-zero.
2035
2036 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2037
2038 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2039 above function.
2040
2041 2015-07-10 Tom de Vries <tom@codesourcery.com>
2042
2043 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2044 insert nit + 1 bound.
2045
2046 2015-07-10 Richard Biener <rguenther@suse.de>
2047
2048 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2049 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2050 (if_convertible_loop_p_1): For this always compute bb predicates.
2051 (if_convertible_loop_p): And free them.
2052
2053 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2054
2055 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2056 in dump message.
2057
2058 2015-07-10 Richard Biener <rguenther@suse.de>
2059
2060 PR tree-optimization/66823
2061 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2062 inverted predicate.
2063
2064 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
2065
2066 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2067 to handle mips[32|64]r3 and mips[32|64]r5.
2068
2069 2015-07-09 Jakub Jelinek <jakub@redhat.com>
2070
2071 PR middle-end/66633
2072 * tree-nested.c (get_static_chain): Or in a flag into
2073 info->static_chain_added.
2074 (get_frame_field, get_nonlocal_debug_decl): Likewise.
2075 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2076 2015-07-01 changes.
2077 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2078 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2079 add it to clauses.
2080
2081 PR tree-optimization/66718
2082 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2083 field.
2084 (vect_simd_lane_linear): New function.
2085 (vectorizable_simd_clone_call): Support using linear arguments for
2086 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2087
2088 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2089
2090 PR target/66821
2091 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2092
2093 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2094
2095 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2096 Use machine mode, not enum machine_mode in the prototype.
2097
2098 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2099 classify 128-bit floating point support.
2100 (FLOAT128_IBM_P): Likewise.
2101 (FLOAT128_VECTOR_P): Likewise.
2102 (FLOAT128_2REG_P): Likewise.
2103 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2104 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2105 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2106 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2107
2108 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2109 tests against TFmode/TDmode, since those modes do not use VSX
2110 addresses.
2111 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2112 support.
2113 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2114 tests against TFmode, etc.
2115 (invalid_e500_subreg): Add tests against IFmode/KFmode.
2116 (reg_offset_addressing_ok_p): Likewise.
2117 (rs6000_legitimate_offset_address_p): Likewise.
2118 (rs6000_legitimize_address): Likewise.
2119 (rs6000_legitimize_reload_address): Likewise.
2120 (rs6000_legitimate_address_p): Clean up tests against TFmode and
2121 TDmode to use the new helper macros, which will include IFmode and
2122 KFmode.
2123 (rs6000_emit_move): Likewise.
2124 (rs6000_darwin64_record_arg_recurse): Likewise.
2125 (print_operand): Likewise.
2126 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2127 that uses a single vector register as a vector and not as a
2128 floating point register in terms of the calling sequence.
2129 (rs6000_discover_homogeneous_aggregate): Likewise.
2130 (rs6000_return_in_memory): Likewise.
2131 (init_cumulative_args): Likewise.
2132 (rs6000_function_arg_boundary): Likewise.
2133 (rs6000_function_arg_advance_1): Likewise.
2134 (rs6000_function_arg): Likewise.
2135 (rs6000_pass_by_reference): Likewise.
2136 (rs6000_gimplify_va_arg): Likewise.
2137 (rs6000_secondary_reload_memory): Use machine_mode not enum
2138 machine mode.
2139 (rs6000_split_multireg_move): Use new helper macros.
2140 (spe_func_has_64bit_regs_p): Likewise.
2141 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2142 (output_toc): Use new helper macros.
2143 (rs6000_register_move_cost): Likewise.
2144 (rs6000_function_value): Add IEEE 128-bit floating point calling
2145 sequence support.
2146 (rs6000_libcall_value): Likewise.
2147 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2148 floating point support.
2149 (rs6000_vector_mode_supported_p): Likewise.
2150
2151 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2152
2153 PR rtl-optimization/66782
2154 * lra-int.h (struct lra_insn_recog_data): Add comment about
2155 clobbered hard regs for arg_hard_regs.
2156 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2157 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2158 Add condition for processing used hard regs.
2159 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2160 Process clobbered hard regs.
2161
2162 2015-07-09 Michael Matz <matz@suse.de>
2163
2164 * genmatch.c (fprintf_indent): New function.
2165 (operand::gen_transform): Add indent parameter.
2166 (expr::gen_transform, c_expr::gen_transform,
2167 capture::gen_transform): Ditto and use fprintf_indent.
2168 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2169 (dt_operand::gen, dt_operand::gen_predicate,
2170 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2171 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2172 (decision_tree::gen_gimple): Adjust calls and indent generated
2173 code.
2174 (decision_tree::gen_generic): Ditto.
2175 (write_predicate): Ditto.
2176
2177 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2178
2179 PR target/66814
2180 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2181 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2182 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2183 {GENERAL,SSE,MMX}_REG_P where appropriate.
2184
2185 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2186
2187 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2188 * builtins.c: Adjust includes.
2189 * gimple.c: Likewise.
2190 * ipa-icf.c: Likewise.
2191 * lto-opts.c: Likewise.
2192 * ipa-reference.c: Likewise.
2193 * lto-section-out.c: Likewise.
2194 * lto-streamer-in.c: Likewise.
2195 * lto-streamer-out.c: Likewise.
2196 * opts-global.c: Likewise.
2197 * symtab.c: Likewise.
2198 * tree-chkp.c: Likewise.
2199 * tree-ssa-live.c: Likewise.
2200 * tree-streamer-in.c: Likewise.
2201 * tree-streamer-out.c: Likewise.
2202 * config/darwin.c: Likewise.
2203 * config/i386/winnt.c: Likewise.
2204
2205 2015-07-09 Richard Biener <rguenther@suse.de>
2206
2207 * genmatch.c (struct expr): Add force_single_use flag.
2208 (expr::expr): Add copy constructor.
2209 (capture_info::walk_match): Gather force_single_use captures.
2210 (expr::gen_transform): Use possibly NULLified sequence.
2211 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2212 seq if any constrained expr is not single-use.
2213 (parser::parse_expr): Refactor to allow multiple flags. Handle
2214 's' flag to force an expression have a single-use if the pattern
2215 simplifies to more than one statement.
2216 * match.pd: Convert most single_use conditionals to :s flags.
2217
2218 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2219
2220 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2221 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2222 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2223
2224 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2225
2226 * flags.h: Don't include flag-types.h or options.h.
2227 * opts-common.c: Adjust includes.
2228 * opts-global.c: Likewise.
2229 * common/config/epiphany/epiphany-common.c: Likewise.
2230
2231 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2232
2233 PR target/66818
2234 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2235 for IA MCU.
2236
2237 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2238
2239 PR target/66817
2240 * config/i386/i386.c (ix86_return_in_memory): Return true
2241 if int_size_in_bytes returns negative for IA MCU.
2242
2243 2015-07-09 Marek Polacek <polacek@redhat.com>
2244
2245 PR tree-optimization/66718
2246 * Makefile.in (OBJS): Add gimple-laddress.o.
2247 * passes.def: Schedule pass_laddress.
2248 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2249 * tree-pass.h (make_pass_laddress): Declare.
2250 * gimple-laddress.c: New file.
2251
2252 2015-07-09 Richard Biener <rguenther@suse.de>
2253
2254 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2255
2256 2015-07-09 Richard Biener <rguenther@suse.de>
2257
2258 PR tree-optimization/66807
2259 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2260
2261 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2262
2263 * function.c (stack_protect_epilogue): Use if rather than switch for
2264 check targetm.have_stack_protect_test.
2265
2266 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2267
2268 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2269 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2270 * config/arc/arc.h: Likewise.
2271 * config/arm/arm.h: Likewise.
2272 * config/bfin/bfin.h: Likewise.
2273 * config/epiphany/epiphany.h: Likewise.
2274 * config/frv/frv.h: Likewise.
2275 * config/ia64/ia64.h: Likewise.
2276 * config/iq2000/iq2000.h: Likewise.
2277 * config/lm32/lm32.h: Likewise.
2278 * config/m32r/m32r.h: Likewise.
2279 * config/mcore/mcore.h: Likewise.
2280 * config/mep/mep.h: Likewise.
2281 * config/microblaze/microblaze.h: Likewise.
2282 * config/mips/mips.h: Likewise.
2283 * config/mmix/mmix.h: Likewise.
2284 * config/mn10300/mn10300.h: Likewise.
2285 * config/nds32/nds32.h: Likewise.
2286 * config/nios2/nios2.h: Likewise.
2287 * config/pa/pa.h: Likewise.
2288 * config/rl78/rl78.h: Likewise.
2289 * config/sh/sh.h: Likewise.
2290 * config/sparc/sparc.h: Likewise.
2291 * config/stormy16/stormy16.h: Likewise.
2292 * config/tilegx/tilegx.h: Likewise.
2293 * config/tilepro/tilepro.h: Likewise.
2294 * config/v850/v850.h: Likewise.
2295 * config/xtensa/xtensa.h: Likewise.
2296 * doc/tm.texi: Regenerate.
2297 * doc/tm.texi.in: Adjust.
2298 * combine.c (simplify_set): Likewise.
2299 (simplify_comparison): Likewise.
2300 * expr.c (store_constructor): Likewise.
2301 * internal-fn.c (expand_arith_overflow): Likewise.
2302 * reload.c (push_reload): Likewise.
2303 (find_reloads): Likewise.
2304 (find_reloads_subreg_address): Likewise.
2305 * reload1.c (eliminate_regs_1): Likewise.
2306 * rtlanal.c (nonzero_bits1): Likewise.
2307 (num_sign_bit_copies1): Likewise.
2308 * simplify-rtx.c (simplify_truncation): Likewise.
2309
2310 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2311
2312 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2313 of AUTO_INC_DEC with the preprocessor.
2314 * combine.c (combine_instructions): Likewise.
2315 (can_combine_p): Likewise.
2316 (try_combine): Likewise.
2317 * emit-rtl.c (try_split): Likewise.
2318 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2319 * lower-subreg.c (resolve_simple_move): Likewise.
2320 * lra.c (update_inc_notes): Likewise.
2321 * recog.c (asm_operand_ok): Likewise.
2322 (constrain_operands): Likewise.
2323 * regrename.c (scan_rtx_address): Likewise.
2324 * reload.c (update_auto_inc_notes): Likewise.
2325 (reg_inc_found_and_valid_p): Likewise.
2326 * reload1.c (reload): Likewise.
2327 (emit_input_reload_insns): Likewise.
2328 (delete_output_reload): Likewise.
2329 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2330 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2331
2332 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2333
2334 * rtl.h: Always define AUTO_INC_DEC.
2335 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2336 * combine.c (combine_instructions): Likewise.
2337 (can_combine_p): Likewise.
2338 (try_combine): Likewise.
2339 * emit-rtl.c (try_split): Likewise.
2340 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2341 * lower-subreg.c (resolve_simple_move): Likewise.
2342 * lra.c (update_inc_notes): Likewise.
2343 * recog.c (asm_operand_ok): Likewise.
2344 (constrain_operands): Likewise.
2345 * regrename.c (scan_rtx_address): Likewise.
2346 * reload.c (update_auto_inc_notes): Likewise.
2347 (find_equiv_reg): Likewise.
2348 * reload1.c (reload): Likewise.
2349 (reload_as_needed): Likewise.
2350 (choose_reload_regs): Likewise.
2351 (emit_input_reload_insns): Likewise.
2352 (delete_output_reload): Likewise.
2353 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2354 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2355
2356 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2357
2358 * combine.c (can_combine_def_p): Don't check the value of
2359 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2360 (combinable_i3pat): Likewise.
2361 (mark_used_regs_combine): Likewise.
2362 * regrename.c (rename_chains): Likewise.
2363 * reload.c (find_reloads_address): Likewise.
2364 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2365
2366 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2367
2368 * combine.c (update_rsp_from_reg_equal): Don't check if
2369 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2370 (reg_nonzero_bits_for_combine): Likewise.
2371 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2372 1.
2373 * config/frv/frv.h: Likewise.
2374 * config/lm32/lm32.h: Likewise.
2375 * config/mep/mep.h: Likewise.
2376 * config/mips/mips.h: Likewise.
2377 * config/rs6000/rs6000.h: Likewise.
2378 * config/sh/sh.h: Likewise.
2379 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2380 * config/tilepro/tilepro.h: Likewise.
2381 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2382 * doc/tm.texi: Regenerate.
2383 * doc/tm.texi.in: Adjust.
2384 * rtlanal.c (nonzero_bits1): Likewise.
2385
2386 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2387
2388 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2389 with the preprocessor.
2390 (combine_instructions): Likewise.
2391 (try_combine): Likewise.
2392 (subst): Likewise.
2393 (distribute_notes): Likewise.
2394
2395 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2396
2397 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2398 defined.
2399 (simplify_set): Likewise.
2400 * cse.c (cse_insn): Likewise.
2401 * fold-const.c (fold_single_bit_test): Likewise.
2402 (fold_unary_loc): Likewise.
2403 * postreload.c (reload_cse_simplify_set): Likewise.
2404 (reload_cse_simplify_operands): Likewise.
2405
2406 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2407
2408 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2409 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2410
2411 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2412
2413 PR target/66746
2414 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2415 __iamcu__ is defined.
2416
2417 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2418
2419 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2420
2421 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2422
2423 PR target/66523
2424 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2425 names from preservation.
2426
2427 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2428
2429 PR target/66806
2430 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2431 change for IAMCU.
2432 (function_arg_advance_32): Don't pass vectors in registers for
2433 IAMCU.
2434 (function_arg_32): Likewise.
2435 (ix86_return_in_memory): Don't return vectors in registers for
2436 IAMCU.
2437
2438 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2439
2440 PR middle-end/66334
2441 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2442 hard regno live at the start of BB with incoming abnormal edges.
2443 * lra-lives.c (process_bb_lives): Ditto.
2444
2445 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2446
2447 PR libgomp/65099
2448 * config/nvptx/mkoffload.c (main): Create an offload image only in
2449 64-bit configurations.
2450
2451 2015-07-08 Martin Liska <mliska@suse.cz>
2452
2453 PR bootstrap/66744
2454 * tree-sra.c (create_access_1): Call ctor without brackets.
2455 (create_artificial_child_access): Likewise.
2456
2457 2015-07-08 Richard Biener <rguenther@suse.de>
2458
2459 PR tree-optimization/66793
2460 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2461 Properly split the block after stmts ending it.
2462
2463 2015-07-08 Richard Biener <rguenther@suse.de>
2464
2465 PR tree-optimization/66794
2466 * passes.c (execute_function_todo): Assert that post-dominators
2467 are not computed.
2468 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2469 Free post-dominators.
2470
2471 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2472
2473 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2474 with early exit.
2475
2476 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2477
2478 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2479 more than or equal 8 and less than 32 when optimizing for size.
2480
2481 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2482
2483 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2484 COSTS_N_INSNS (1) and increment it appropriately throughout the
2485 function.
2486
2487 2015-07-08 Richard Biener <rguenther@suse.de>
2488
2489 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2490
2491 2015-07-08 Alan Modra <amodra@gmail.com>
2492
2493 * target.def (rtx_costs): Remove "code" param, add "mode".
2494 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2495 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2496 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2497 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2498 call. Track mode when given in rtx.
2499 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2500 (default_address_cost): Pass Pmode to rtx_cost.
2501 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2502 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2503 with NULL set.
2504 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2505 (notreg_cost): Add mode param. Use it.
2506 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2507 mode param and pass to set_src_cost. Update all calls.
2508 (hash_scan_set): Formatting.
2509 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2510 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2511 * hooks.h: Ditto.
2512 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2513 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2514 emit_store_flag): Update set_src_cost and rtx_cost calls.
2515 * auto-inc-dec.c (attempt_change): Likewise.
2516 * calls.c (precompute_register_parameters): Likewise.
2517 * combine.c (expand_compound_operation, make_extraction,
2518 force_to_mode, distribute_and_simplify_rtx): Likewise.
2519 * dojump.c (prefer_and_bit_test): Likewise.
2520 * dse.c (find_shift_sequence): Likewise.
2521 * expr.c (compress_float_constant): Likewise.
2522 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2523 * ifcvt.c (noce_try_sign_mask): Likewise.
2524 * loop-doloop.c (doloop_optimize): Likewise.
2525 * loop-invariant.c (create_new_invariant): Likewise.
2526 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2527 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2528 lshift_cheap_p): Likewise.
2529 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2530 try_replace_in_use, reload_cse_move2add): Likewise.
2531 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2532 Likewise.
2533 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2534 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2535 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2536 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2538 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2539 to rtx_cost calls.
2540 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2541 * config/arc/arc.c (arc_rtx_costs): Likewise.
2542 * config/arm/arm.c (arm_rtx_costs): Likewise.
2543 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2544 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2545 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2546 * config/cris/cris.c (cris_rtx_costs): Likewise.
2547 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2548 * config/frv/frv.c (frv_rtx_costs): Likewise.
2549 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2550 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2551 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2552 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2553 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2554 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2555 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2556 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2557 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2558 * config/mep/mep.c (mep_rtx_cost): Likewise.
2559 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2560 * config/mips/mips.c (mips_rtx_costs): Likewise.
2561 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2562 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2563 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2564 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2565 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2566 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2567 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2568 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2569 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2570 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2571 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2572 * config/s390/s390.c (s390_rtx_costs): Likewise.
2573 * config/sh/sh.c (sh_rtx_costs): Likewise.
2574 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2575 * config/spu/spu.c (spu_rtx_costs): Likewise.
2576 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2577 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2578 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2579 * config/v850/v850.c (v850_rtx_costs): Likewise.
2580 * config/vax/vax.c (vax_rtx_costs): Likewise.
2581 * config/visium/visium.c (visium_rtx_costs): Likewise.
2582 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2583 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2584 "code" param, and pass as outer_code to first rtx_cost call. Pass
2585 mode to rtx_cost calls.
2586 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2587 calls.
2588 (aarch64_rtx_costs_wrapper): Update.
2589 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2590 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2591 rtx_cost calls.
2592 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2593 and rtx_cost calls.
2594 (avr_operand_rtx_cost): Similarly.
2595 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2596 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2597 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2598 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2599 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2600 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2601 rtx_cost.
2602 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2603 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2604 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2605 * doc/tm.texi: Regenerate.
2606
2607 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2608
2609 * tree-core.h: Include symtab.h.
2610 * rtl.h: Include hard-reg-set.h but not flags.h.
2611 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2612 hard-reg-set.h is always included.
2613 * regs.h: Don't include hard-reg-set.h or rtl.h.
2614 * cfg.h: Include dominance.h.
2615 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2616 * backend.h: New. Aggregate commonly used backend header files.
2617 * gimple-ssa.h: Don't include tree-hasher.h.
2618 * ssa.h: New. Aggregate commonly used SSA header files.
2619 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2620 * sel-sched-ir.h: Flatten includes.
2621 * lra-int.h: Flatten completely.
2622 * sel-sched-dump.h: Flatten includes.
2623 * ira-int.h: Flatten includes.
2624 * gimple-streamer.h: Remove all includes.
2625 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2626 * resource.h: Flatten hard-reg-set.h and df.h.
2627 * sched-int.h: Flatten insn-arrt.h and df.h.
2628 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2629 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2630 * genattrtab.c (write_header): Adjust generated includes.
2631 * genautomata.c (main): Likewise.
2632 * genconditions.c (write-header): Likewise.
2633 * genemit.c (main): Likewise.
2634 * gengtype.c (open_base_files): Likewise.
2635 * genopinit.c (main): Likewise.
2636 * genoutput.c (output_prologue): Likewise.
2637 * genpeep.c (main): Likewise.
2638 * genpreds.c (write_insn_preds_c): Likewise.
2639 * genrecog.c (write_header): Likewise.
2640 * alias.c: Adjust includes.
2641 * asan.c: Likewise.
2642 * attribs.c: Likewise.
2643 * auto-inc-dec.c: Likewise.
2644 * auto-profile.c: Likewise.
2645 * bb-reorder.c: Likewise.
2646 * bt-load.c: Likewise.
2647 * builtins.c: Likewise.
2648 * caller-save.c: Likewise.
2649 * calls.c: Likewise.
2650 * ccmp.c: Likewise.
2651 * cfg.c: Likewise.
2652 * cfganal.c: Likewise.
2653 * cfgbuild.c: Likewise.
2654 * cfgcleanup.c: Likewise.
2655 * cfgexpand.c: Likewise.
2656 * cfghooks.c: Likewise.
2657 * cfgloop.c: Likewise.
2658 * cfgloopanal.c: Likewise.
2659 * cfgloopmanip.c: Likewise.
2660 * cfgrtl.c: Likewise.
2661 * cgraph.c: Likewise.
2662 * cgraphbuild.c: Likewise.
2663 * cgraphclones.c: Likewise.
2664 * cgraphunit.c: Likewise.
2665 * cilk-common.c: Likewise.
2666 * combine-stack-adj.c: Likewise.
2667 * combine.c: Likewise.
2668 * compare-elim.c: Likewise.
2669 * convert.c: Likewise.
2670 * coverage.c: Likewise.
2671 * cppbuiltin.c: Likewise.
2672 * cprop.c: Likewise.
2673 * cse.c: Likewise.
2674 * cselib.c: Likewise.
2675 * data-streamer-in.c: Likewise.
2676 * data-streamer-out.c: Likewise.
2677 * data-streamer.c: Likewise.
2678 * dbxout.c: Likewise.
2679 * dce.c: Likewise.
2680 * ddg.c: Likewise.
2681 * debug.c: Likewise.
2682 * df-core.c: Likewise.
2683 * df-problems.c: Likewise.
2684 * df-scan.c: Likewise.
2685 * dfp.c: Likewise.
2686 * dojump.c: Likewise.
2687 * dominance.c: Likewise.
2688 * domwalk.c: Likewise.
2689 * double-int.c: Likewise.
2690 * dse.c: Likewise.
2691 * dumpfile.c: Likewise.
2692 * dwarf2asm.c: Likewise.
2693 * dwarf2cfi.c: Likewise.
2694 * dwarf2out.c: Likewise.
2695 * emit-rtl.c: Likewise.
2696 * et-forest.c: Likewise.
2697 * except.c: Likewise.
2698 * explow.c: Likewise.
2699 * expmed.c: Likewise.
2700 * expr.c: Likewise.
2701 * final.c: Likewise.
2702 * fixed-value.c: Likewise.
2703 * fold-const.c: Likewise.
2704 * function.c: Likewise.
2705 * fwprop.c: Likewise.
2706 * gcc-plugin.h: Likewise.
2707 * gcse-common.c: Likewise.
2708 * gcse.c: Likewise.
2709 * generic-match-head.c: Likewise.
2710 * ggc-page.c: Likewise.
2711 * gimple-builder.c: Likewise.
2712 * gimple-expr.c: Likewise.
2713 * gimple-fold.c: Likewise.
2714 * gimple-iterator.c: Likewise.
2715 * gimple-low.c: Likewise.
2716 * gimple-match-head.c: Likewise.
2717 * gimple-pretty-print.c: Likewise.
2718 * gimple-ssa-isolate-paths.c: Likewise.
2719 * gimple-ssa-strength-reduction.c: Likewise.
2720 * gimple-streamer-in.c: Likewise.
2721 * gimple-streamer-out.c: Likewise.
2722 * gimple-walk.c: Likewise.
2723 * gimple.c: Likewise.
2724 * gimplify-me.c: Likewise.
2725 * gimplify.c: Likewise.
2726 * godump.c: Likewise.
2727 * graph.c: Likewise.
2728 * graphite-blocking.c: Likewise.
2729 * graphite-dependences.c: Likewise.
2730 * graphite-interchange.c: Likewise.
2731 * graphite-isl-ast-to-gimple.c: Likewise.
2732 * graphite-optimize-isl.c: Likewise.
2733 * graphite-poly.c: Likewise.
2734 * graphite-scop-detection.c: Likewise.
2735 * graphite-sese-to-poly.c: Likewise.
2736 * graphite.c: Likewise.
2737 * haifa-sched.c: Likewise.
2738 * hw-doloop.c: Likewise.
2739 * ifcvt.c: Likewise.
2740 * init-regs.c: Likewise.
2741 * internal-fn.c: Likewise.
2742 * ipa-chkp.c: Likewise.
2743 * ipa-comdats.c: Likewise.
2744 * ipa-cp.c: Likewise.
2745 * ipa-devirt.c: Likewise.
2746 * ipa-icf-gimple.c: Likewise.
2747 * ipa-icf.c: Likewise.
2748 * ipa-inline-analysis.c: Likewise.
2749 * ipa-inline-transform.c: Likewise.
2750 * ipa-inline.c: Likewise.
2751 * ipa-polymorphic-call.c: Likewise.
2752 * ipa-profile.c: Likewise.
2753 * ipa-prop.c: Likewise.
2754 * ipa-pure-const.c: Likewise.
2755 * ipa-ref.c: Likewise.
2756 * ipa-reference.c: Likewise.
2757 * ipa-split.c: Likewise.
2758 * ipa-utils.c: Likewise.
2759 * ipa-visibility.c: Likewise.
2760 * ipa.c: Likewise.
2761 * ira-build.c: Likewise.
2762 * ira-color.c: Likewise.
2763 * ira-conflicts.c: Likewise.
2764 * ira-costs.c: Likewise.
2765 * ira-emit.c: Likewise.
2766 * ira-lives.c: Likewise.
2767 * ira.c: Likewise.
2768 * jump.c: Likewise.
2769 * langhooks.c: Likewise.
2770 * lcm.c: Likewise.
2771 * loop-doloop.c: Likewise.
2772 * loop-init.c: Likewise.
2773 * loop-invariant.c: Likewise.
2774 * loop-iv.c: Likewise.
2775 * loop-unroll.c: Likewise.
2776 * lower-subreg.c: Likewise.
2777 * lra-assigns.c: Likewise.
2778 * lra-coalesce.c: Likewise.
2779 * lra-constraints.c: Likewise.
2780 * lra-eliminations.c: Likewise.
2781 * lra-lives.c: Likewise.
2782 * lra-remat.c: Likewise.
2783 * lra-spills.c: Likewise.
2784 * lra.c: Likewise.
2785 * lto-cgraph.c: Likewise.
2786 * lto-compress.c: Likewise.
2787 * lto-opts.c: Likewise.
2788 * lto-section-in.c: Likewise.
2789 * lto-section-out.c: Likewise.
2790 * lto-streamer-in.c: Likewise.
2791 * lto-streamer-out.c: Likewise.
2792 * lto-streamer.c: Likewise.
2793 * mcf.c: Likewise.
2794 * mode-switching.c: Likewise.
2795 * modulo-sched.c: Likewise.
2796 * omega.c: Likewise.
2797 * omp-low.c: Likewise.
2798 * optabs.c: Likewise.
2799 * opts-global.c: Likewise.
2800 * passes.c: Likewise.
2801 * plugin.c: Likewise.
2802 * postreload-gcse.c: Likewise.
2803 * postreload.c: Likewise.
2804 * predict.c: Likewise.
2805 * print-rtl.c: Likewise.
2806 * print-tree.c: Likewise.
2807 * profile.c: Likewise.
2808 * real.c: Likewise.
2809 * realmpfr.c: Likewise.
2810 * recog.c: Likewise.
2811 * ree.c: Likewise.
2812 * reg-stack.c: Likewise.
2813 * regcprop.c: Likewise.
2814 * reginfo.c: Likewise.
2815 * regrename.c: Likewise.
2816 * regstat.c: Likewise.
2817 * reload.c: Likewise.
2818 * reload1.c: Likewise.
2819 * reorg.c: Likewise.
2820 * resource.c: Likewise.
2821 * rtl-chkp.c: Likewise.
2822 * rtlanal.c: Likewise.
2823 * rtlhooks.c: Likewise.
2824 * sanopt.c: Likewise.
2825 * sched-deps.c: Likewise.
2826 * sched-ebb.c: Likewise.
2827 * sched-rgn.c: Likewise.
2828 * sched-vis.c: Likewise.
2829 * sdbout.c: Likewise.
2830 * sel-sched-dump.c: Likewise.
2831 * sel-sched-ir.c: Likewise.
2832 * sel-sched.c: Likewise.
2833 * sese.c: Likewise.
2834 * shrink-wrap.c: Likewise.
2835 * simplify-rtx.c: Likewise.
2836 * stack-ptr-mod.c: Likewise.
2837 * stmt.c: Likewise.
2838 * stor-layout.c: Likewise.
2839 * store-motion.c: Likewise.
2840 * stringpool.c: Likewise.
2841 * symtab.c: Likewise.
2842 * target-globals.c: Likewise.
2843 * targhooks.c: Likewise.
2844 * toplev.c: Likewise.
2845 * tracer.c: Likewise.
2846 * trans-mem.c: Likewise.
2847 * tree-affine.c: Likewise.
2848 * tree-browser.c: Likewise.
2849 * tree-call-cdce.c: Likewise.
2850 * tree-cfg.c: Likewise.
2851 * tree-cfgcleanup.c: Likewise.
2852 * tree-chkp-opt.c: Likewise.
2853 * tree-chkp.c: Likewise.
2854 * tree-chrec.c: Likewise.
2855 * tree-complex.c: Likewise.
2856 * tree-data-ref.c: Likewise.
2857 * tree-dfa.c: Likewise.
2858 * tree-diagnostic.c: Likewise.
2859 * tree-dump.c: Likewise.
2860 * tree-eh.c: Likewise.
2861 * tree-emutls.c: Likewise.
2862 * tree-if-conv.c: Likewise.
2863 * tree-inline.c: Likewise.
2864 * tree-into-ssa.c: Likewise.
2865 * tree-iterator.c: Likewise.
2866 * tree-loop-distribution.c: Likewise.
2867 * tree-nested.c: Likewise.
2868 * tree-nrv.c: Likewise.
2869 * tree-object-size.c: Likewise.
2870 * tree-outof-ssa.c: Likewise.
2871 * tree-parloops.c: Likewise.
2872 * tree-phinodes.c: Likewise.
2873 * tree-predcom.c: Likewise.
2874 * tree-pretty-print.c: Likewise.
2875 * tree-profile.c: Likewise.
2876 * tree-scalar-evolution.c: Likewise.
2877 * tree-sra.c: Likewise.
2878 * tree-ssa-address.c: Likewise.
2879 * tree-ssa-alias.c: Likewise.
2880 * tree-ssa-ccp.c: Likewise.
2881 * tree-ssa-coalesce.c: Likewise.
2882 * tree-ssa-copy.c: Likewise.
2883 * tree-ssa-copyrename.c: Likewise.
2884 * tree-ssa-dce.c: Likewise.
2885 * tree-ssa-dom.c: Likewise.
2886 * tree-ssa-dse.c: Likewise.
2887 * tree-ssa-forwprop.c: Likewise.
2888 * tree-ssa-ifcombine.c: Likewise.
2889 * tree-ssa-live.c: Likewise.
2890 * tree-ssa-loop-ch.c: Likewise.
2891 * tree-ssa-loop-im.c: Likewise.
2892 * tree-ssa-loop-ivcanon.c: Likewise.
2893 * tree-ssa-loop-ivopts.c: Likewise.
2894 * tree-ssa-loop-manip.c: Likewise.
2895 * tree-ssa-loop-niter.c: Likewise.
2896 * tree-ssa-loop-prefetch.c: Likewise.
2897 * tree-ssa-loop-unswitch.c: Likewise.
2898 * tree-ssa-loop.c: Likewise.
2899 * tree-ssa-math-opts.c: Likewise.
2900 * tree-ssa-operands.c: Likewise.
2901 * tree-ssa-phiopt.c: Likewise.
2902 * tree-ssa-phiprop.c: Likewise.
2903 * tree-ssa-pre.c: Likewise.
2904 * tree-ssa-propagate.c: Likewise.
2905 * tree-ssa-reassoc.c: Likewise.
2906 * tree-ssa-sccvn.c: Likewise.
2907 * tree-ssa-scopedtables.c: Likewise.
2908 * tree-ssa-sink.c: Likewise.
2909 * tree-ssa-strlen.c: Likewise.
2910 * tree-ssa-structalias.c: Likewise.
2911 * tree-ssa-tail-merge.c: Likewise.
2912 * tree-ssa-ter.c: Likewise.
2913 * tree-ssa-threadedge.c: Likewise.
2914 * tree-ssa-threadupdate.c: Likewise.
2915 * tree-ssa-uncprop.c: Likewise.
2916 * tree-ssa-uninit.c: Likewise.
2917 * tree-ssa.c: Likewise.
2918 * tree-ssanames.c: Likewise.
2919 * tree-stdarg.c: Likewise.
2920 * tree-streamer-in.c: Likewise.
2921 * tree-streamer-out.c: Likewise.
2922 * tree-streamer.c: Likewise.
2923 * tree-switch-conversion.c: Likewise.
2924 * tree-tailcall.c: Likewise.
2925 * tree-vect-data-refs.c: Likewise.
2926 * tree-vect-generic.c: Likewise.
2927 * tree-vect-loop-manip.c: Likewise.
2928 * tree-vect-loop.c: Likewise.
2929 * tree-vect-patterns.c: Likewise.
2930 * tree-vect-slp.c: Likewise.
2931 * tree-vect-stmts.c: Likewise.
2932 * tree-vectorizer.c: Likewise.
2933 * tree-vrp.c: Likewise.
2934 * tree.c: Likewise.
2935 * tsan.c: Likewise.
2936 * ubsan.c: Likewise.
2937 * valtrack.c: Likewise.
2938 * value-prof.c: Likewise.
2939 * var-tracking.c: Likewise.
2940 * varasm.c: Likewise.
2941 * varpool.c: Likewise.
2942 * vmsdbgout.c: Likewise.
2943 * vtable-verify.c: Likewise.
2944 * web.c: Likewise.
2945 * wide-int.cc: Likewise.
2946 * xcoffout.c: Likewise.
2947 * config/aarch64/aarch64-builtins.c: Likewise.
2948 * config/aarch64/aarch64.c: Likewise.
2949 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2950 * config/alpha/alpha.c: Likewise.
2951 * config/arc/arc.c: Likewise.
2952 * config/arm/aarch-common.c: Likewise.
2953 * config/arm/arm-builtins.c: Likewise.
2954 * config/arm/arm-c.c: Likewise.
2955 * config/arm/arm.c: Likewise.
2956 * config/avr/avr-c.c: Likewise.
2957 * config/avr/avr-log.c: Likewise.
2958 * config/avr/avr.c: Likewise.
2959 * config/bfin/bfin.c: Likewise.
2960 * config/c6x/c6x.c: Likewise.
2961 * config/cr16/cr16.c: Likewise.
2962 * config/cris/cris.c: Likewise.
2963 * config/darwin-c.c: Likewise.
2964 * config/darwin.c: Likewise.
2965 * config/epiphany/epiphany.c: Likewise.
2966 * config/epiphany/mode-switch-use.c: Likewise.
2967 * config/epiphany/resolve-sw-modes.c: Likewise.
2968 * config/fr30/fr30.c: Likewise.
2969 * config/frv/frv.c: Likewise.
2970 * config/ft32/ft32.c: Likewise.
2971 * config/h8300/h8300.c: Likewise.
2972 * config/i386/i386-c.c: Likewise.
2973 * config/i386/i386.c: Likewise.
2974 * config/i386/msformat-c.c: Likewise.
2975 * config/i386/winnt-cxx.c: Likewise.
2976 * config/i386/winnt-stubs.c: Likewise.
2977 * config/i386/winnt.c: Likewise.
2978 * config/ia64/ia64-c.c: Likewise.
2979 * config/ia64/ia64.c: Likewise.
2980 * config/iq2000/iq2000.c: Likewise.
2981 * config/lm32/lm32.c: Likewise.
2982 * config/m32c/m32c-pragma.c: Likewise.
2983 * config/m32c/m32c.c: Likewise.
2984 * config/m32r/m32r.c: Likewise.
2985 * config/m68k/m68k.c: Likewise.
2986 * config/mcore/mcore.c: Likewise.
2987 * config/mep/mep-pragma.c: Likewise.
2988 * config/mep/mep.c: Likewise.
2989 * config/microblaze/microblaze-c.c: Likewise.
2990 * config/microblaze/microblaze.c: Likewise.
2991 * config/mips/mips.c: Likewise.
2992 * config/mmix/mmix.c: Likewise.
2993 * config/mn10300/mn10300.c: Likewise.
2994 * config/moxie/moxie.c: Likewise.
2995 * config/msp430/msp430-c.c: Likewise.
2996 * config/msp430/msp430.c: Likewise.
2997 * config/nds32/nds32-cost.c: Likewise.
2998 * config/nds32/nds32-fp-as-gp.c: Likewise.
2999 * config/nds32/nds32-intrinsic.c: Likewise.
3000 * config/nds32/nds32-isr.c: Likewise.
3001 * config/nds32/nds32-md-auxiliary.c: Likewise.
3002 * config/nds32/nds32-memory-manipulation.c: Likewise.
3003 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3004 * config/nds32/nds32-predicates.c: Likewise.
3005 * config/nds32/nds32.c: Likewise.
3006 * config/nios2/nios2.c: Likewise.
3007 * config/nvptx/nvptx.c: Likewise.
3008 * config/pa/pa.c: Likewise.
3009 * config/pdp11/pdp11.c: Likewise.
3010 * config/rl78/rl78-c.c: Likewise.
3011 * config/rl78/rl78.c: Likewise.
3012 * config/rs6000/rs6000-c.c: Likewise.
3013 * config/rs6000/rs6000.c: Likewise.
3014 * config/rx/rx.c: Likewise.
3015 * config/s390/s390-c.c: Likewise.
3016 * config/s390/s390.c: Likewise.
3017 * config/sh/sh-c.c: Likewise.
3018 * config/sh/sh-mem.cc: Likewise.
3019 * config/sh/sh.c: Likewise.
3020 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3021 * config/sh/sh_treg_combine.cc: Likewise.
3022 * config/sol2-c.c: Likewise.
3023 * config/sol2-cxx.c: Likewise.
3024 * config/sol2-stubs.c: Likewise.
3025 * config/sol2.c: Likewise.
3026 * config/sparc/sparc-c.c: Likewise.
3027 * config/sparc/sparc.c: Likewise.
3028 * config/spu/spu-c.c: Likewise.
3029 * config/spu/spu.c: Likewise.
3030 * config/stormy16/stormy16.c: Likewise.
3031 * config/tilegx/mul-tables.c: Likewise.
3032 * config/tilegx/tilegx-c.c: Likewise.
3033 * config/tilegx/tilegx.c: Likewise.
3034 * config/tilepro/mul-tables.c: Likewise.
3035 * config/tilepro/tilepro-c.c: Likewise.
3036 * config/tilepro/tilepro.c: Likewise.
3037 * config/v850/v850-c.c: Likewise.
3038 * config/v850/v850.c: Likewise.
3039 * config/vax/vax.c: Likewise.
3040 * config/visium/visium.c: Likewise.
3041 * config/vms/vms-c.c: Likewise.
3042 * config/vms/vms.c: Likewise.
3043 * config/vxworks.c: Likewise.
3044 * config/xtensa/xtensa.c: Likewise.
3045
3046 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
3047
3048 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3049 Remove operand constraints. Change operand 2 predicate to
3050 nonmemory operand. Limit const_int values to mode bitsize. Only
3051 allow const_int values less than 32 when optimizing for size.
3052 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3053 Remove operand constraints.
3054 (*bt<mode>): Use SImode for const_int values less than 32.
3055 (regmode): Remove mode attribute.
3056
3057 2015-07-07 Anatoly Sokolov <aesok@post.ru>
3058
3059 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3060 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3061 moxie_legitimate_address_p): New functions.
3062 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3063
3064 2015-07-07 Tom de Vries <tom@codesourcery.com>
3065
3066 PR tree-optimization/66642
3067 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3068 header comment. Rename split_edge variable to edge_at_split. Split
3069 exit edge to create new loop exit bb. Insert loop exit phis in new
3070 loop exit bb.
3071
3072 2015-07-07 Tom de Vries <tom@codesourcery.com>
3073
3074 * tree-cfg.c (get_virtual_phi): New function.
3075 * tree-cfg.h (get_virtual_phi): Declare.
3076 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3077 (rewrite_virtuals_into_loop_closed_ssa): New function.
3078 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3079 Declare.
3080 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3081 (transform_to_exit_first_loop_alt): Use
3082 rewrite_virtuals_into_loop_closed_ssa.
3083
3084 2015-07-07 Richard Biener <rguenther@suse.de>
3085
3086 * fold-const.c (fold_binary_loc): Move
3087 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3088 * match.pd: ... here.
3089 Add (X * C1) % C2 -> 0 simplification pattern derived from
3090 extract_muldiv_1.
3091
3092 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
3093
3094 PR target/66780
3095 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3096 change for target/65249.
3097
3098 2015-07-07 Paulo Matos <pmatos@broadcom.com>
3099
3100 * symtab.c (address_matters_1): Fix typo in comment above.
3101 (can_increase_alignment_p): Likewise.
3102
3103 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3104
3105 * function.c (free_after_compilation): Clear PROP_cfg in
3106 f->curr_properties.
3107
3108 2015-07-07 Richard Biener <rguenther@suse.de>
3109
3110 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3111 add which use to.
3112 (add_control_edge): Remove excessive vertical space in dumping.
3113 (process_ssa_edge_worklist): Simulate at most one statement and
3114 return whether we did. Do not simulate PHIs if they are in a
3115 BB not yet simulated.
3116 (ssa_propagate): Adjust to always drain the BB worklist whenever
3117 a BB is available there, likewise the VARYING edges list before
3118 the interesting edge list.
3119
3120 2015-07-07 Christian Bruel <christian.bruel@st.com>
3121
3122 PR target/52144
3123 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3124
3125 2015-07-07 Richard Biener <rguenther@suse.de>
3126
3127 PR middle-end/66739
3128 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3129 A - B.
3130
3131 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3132
3133 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3134 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3135 Copy operand 0 to a temporary if !ext_register_operand. Remove
3136 ancient extract_bit_field workaround.
3137 (insv<mode>_1): Rename from mov<mode>_insv_1.
3138 (*insvqi): Rename from *movqi_insv_2.
3139 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3140 for renamed insvsi_1.
3141 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3142
3143 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3144
3145 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3146 call to nvptx_reorg_subreg.
3147
3148 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3149
3150 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3151 * graphite-dependencies.c, graphite-interchange.c,
3152 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3153 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3154 Likewise.
3155
3156 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3157
3158 * match.pd: Remove element_mode inside HONOR_*.
3159 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3160 (~X | X -> -1, ~X ^ X -> -1): Merge.
3161 * tree.c (build_each_one_cst): New function.
3162 * tree.h (build_each_one_cst): Likewise.
3163
3164 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3167 PROCESSOR_IAMCU.
3168
3169 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3170
3171 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3172 * config/mips/mips.opt (mfused-madd): Remove.
3173 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3174 * config/mips/mips.h (TARGET_MIPS8000): New.
3175 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3176 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3177 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3178 (ISA_HAS_NMADD4_NMSUB4): Remove.
3179 (ISA_HAS_NMADD3_NMSUB3): Remove.
3180 (ISA_HAS_FUSED_MADD4): New.
3181 (ISA_HAS_UNFUSED_MADD4): New.
3182 (ISA_HAS_FUSED_MADDF): New.
3183 (ISA_HAS_FUSED_MADD3): New.
3184 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3185 (*fma<mode>4_madd3) New.
3186 (*fma<mode>4_madd4) New.
3187 (*fma<mode>4_maddf) New.
3188 (fms<mode>4) New.
3189 (*fms<mode>4_msub3) New.
3190 (*fms<mode>4_msub4) New.
3191 (fnma<mode>4) New.
3192 (*fnma<mode>4_nmadd3) New.
3193 (*fnma<mode>4_nmadd4) New.
3194 (fnms<mode>4) New.
3195 (*fnms<mode>4_nmsub3) New.
3196 (*fnms<mode>4_nmsub4) New.
3197 (*madd4<mode>) Modify to be unfused only.
3198 (*msub4<mode>) Modify to be unfused only.
3199 (*nmadd4<mode>) Modify to be unfused only.
3200 (*nmsub4<mode>) Modify to be unfused only.
3201 (*madd3<mode>) Remove.
3202 (*msub3<mode>) Remove.
3203 (*nmadd3<mode>) Remove.
3204 (*nmsub3<mode>) Remove.
3205 (*nmadd3<mode>_fastmath) Remove.
3206 (*nmsub3<mode>_fastmath) Remove.
3207 (*nmadd4<mode>_fastmath) Update condition.
3208 (*nmsub4<mode>_fastmath) Update condition.
3209
3210 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3211
3212 PR target/65956
3213 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3214 alignment attribute, exploring one level down for records and arrays.
3215
3216 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3217
3218 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3219 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3220 Copy operand 1 to a temporary if !ext_register_operand. Remove
3221 ancient extract_bit_field workaround.
3222 (*extv<mode>): Rename from *mov<mode>_extv_1.
3223 (*extvqi): Rename from *movqi_extv_1.
3224 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3225 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3226 to a temporary if !ext_register_operand. Remove ancient
3227 extract_bit_field workaround.
3228 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3229 (*extzvqi): Rename from *movqi_extzv_2.
3230 (*testqi_ext_3): Remove modes from const_int_operand predicated
3231 operands. Add "n" constraint.
3232 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3233 operand. Add "J" constraint.
3234 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3235 const_0_to_63 predicated operand.
3236 (regmode): New insn attribute.
3237 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3238 to nonmemory_operand. Use regmode insn attribute.
3239 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3240 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3241 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3242 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3243 operands. Use "N" constraint instead of "n".
3244
3245 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3246
3247 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3248
3249 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3250
3251 PR target/66749
3252 * config/i386/i386.c (iamcu_cost): New.
3253 (m_IAMCU): Likewise.
3254 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3255 (processor_target_table): Add an entry for "iamcu".
3256 (processor_alias_table): Likewise.
3257 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3258 (ix86_adjust_cost): Likewise.
3259 (ia32_multipass_dfa_lookahead): Likewise.
3260 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3261 * config/i386/x86-tune.def: Updated for m_IAMCU.
3262
3263 2015-07-06 Richard Biener <rguenther@suse.de>
3264
3265 PR tree-optimization/66772
3266 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3267 values are available in the PHI node BB when there are
3268 still unexecutable edges.
3269
3270 2015-07-06 Richard Biener <rguenther@suse.de>
3271
3272 PR tree-optimization/66767
3273 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3274 Make sure to build the alignment test on a SSA name without
3275 final alignment info valid only if the alignment test
3276 evaluates to true.
3277
3278 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3279
3280 PR target/66620
3281 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3282 loop start when inserting LSETUP.
3283
3284 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3285
3286 PR target/53383
3287 * config/i386/i386.c (ix86_option_override_internal): Allow
3288 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3289
3290 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3291
3292 * read-md.c (decimal_string): Rename to ...
3293 (md_decimal_string): ... this.
3294 (handle_enum): Reflect this.
3295
3296 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3297
3298 PR target/66731
3299 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3300
3301 2015-07-06 Richard Biener <rguenther@suse.de>
3302
3303 PR middle-end/66759
3304 * match.pd: Add missing constraint of y to REAL_CST in
3305 REAL_CST - x CMP y to y - CST CMP x simplification.
3306
3307 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3308
3309 PR tree-optimization/66757
3310 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3311
3312 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3313 Sandra Loosemore <sandra@codesourcery.com>
3314
3315 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3316 Delete extern declaration.
3317 (gprel_constant_p): Add extern declaration.
3318 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3319 instead of nios2_symbol_ref_in_small_data_p.
3320 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3321 (nios2_symbol_ref_in_small_data_p): Make static.
3322 (gprel_constant_p): Make non-static.
3323
3324 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3325
3326 * doc/fragments.texi (Target Fragment): Convert debian.org
3327 link to use https.
3328 * doc/install.texi (Configuration): Ditto.
3329
3330 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3331
3332 PR tree-optimization/66718
3333 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3334 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3335
3336 PR tree-optimization/66718
3337 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3338 vectorizable_load, vectorizable_condition): Move vectype,
3339 nunits, ncopies computation after checking what kind of statement
3340 stmt is.
3341
3342 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3343
3344 * target-insns.def (extv, extzv, insv): New targetm instruction
3345 patterns.
3346 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3347 interface.
3348 * recog.c (simplify_while_replacing): Likewise.
3349
3350 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3351
3352 * target-insns.def (doloop_begin, doloop_end): New targetm
3353 instruction patterns.
3354 * loop-init.c: Include target.h.
3355 (pass_loop2::gate): Use the new targetm patterns instead of
3356 HAVE_*/gen_* interface.
3357 (pass_rtl_doloop::gate): Likewise.
3358 (pass_rtl_doloop::execute): Remove preprocessor condition.
3359 * hw-doloop.c: Build unconditionally.
3360 * loop-doloop.c: Likewise.
3361 (doloop_optimize): Use the new targetm patterns instead of
3362 HAVE_*/gen_* interface.
3363 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3364 * modulo-sched.c (doloop_register_get): Likewise.
3365
3366 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3367
3368 * target-insns.def (clear_cache): New targetm instruction pattern.
3369 * builtins.c (expand_builtin___clear_cache): Use it instead of
3370 HAVE_*/gen_* interface.
3371
3372 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3373
3374 * target-insns.def (allocate_stack, check_stack, probe_stack)
3375 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3376 New targetm instruction patterns.
3377 * explow.c (allocate_dynamic_stack_space): Use them instead of
3378 HAVE_*/gen_* interface.
3379 (emit_stack_probe): Likewise.
3380 (probe_stack_range): Likewise.
3381 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3382
3383 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3384
3385 * target-insns.def (stack_protect_set, stack_protect_test): New
3386 targetm instruction patterns.
3387 * cfgexpand.c (stack_protect_prologue): Use them instead of
3388 HAVE_*/gen_* interface.
3389 * function.c (stack_protect_epilogue): Likewise.
3390
3391 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3392
3393 * expr.h (gen_move_insn_uncast): Delete.
3394 * expr.c (gen_move_insn_uncast): Delete.
3395
3396 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3397
3398 * target-insns.def (restore_stack_block, restore_stack_function)
3399 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3400 (save_stack_nonlocal): New targetm instruction patterns.
3401 * builtins.c (expand_builtin_apply): Use them instead of
3402 HAVE_*/gen_* interface.
3403 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3404
3405 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 * target-insns.def (trap): New targetm instruction pattern.
3408 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3409 interface.
3410 * explow.c (allocate_dynamic_stack_space): Likewise.
3411 * ifcvt.c (find_if_header): Likewise.
3412
3413 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3414
3415 * target-insns.def (prefetch): New targetm instruction pattern.
3416 * tree-ssa-loop-prefetch.c: Include targeth.
3417 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3418 of HAVE_*/gen_* interface.
3419 * builtins.c (expand_builtin_prefetch): Likewise.
3420 * toplev.c (process_options): Likewise.
3421
3422 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3423
3424 * target-insns.def (untyped_call, untyped_return): New targetm
3425 instruction patterns.
3426 * builtins.c (expand_builtin_apply): Use them instead of
3427 HAVE_*/gen_* interface.
3428 (result_vector): Define unconditionally.
3429
3430 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3431
3432 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3433 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3434 (nonlocal_goto_receiver): New targetm instruction patterns.
3435 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3436 of HAVE_*/gen_* interface.
3437 (expand_builtin_setjmp_receiver): Likewise.
3438 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3439 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3440
3441 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3442
3443 * target.def: Add code_for_* hooks.
3444 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3445 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3446 * target-insns.def (casesi, tablejump): New targetm instruction
3447 patterns.
3448 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3449 (do_tablejump): Likewise.
3450 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3451 (expand_sjlj_dispatch_table): Likewise.
3452 * targhooks.c (default_case_values_threshold): Likewise.
3453
3454 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3455
3456 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3457 Use rtx_insn * instead of rtx.
3458 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3459 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3460 (nios2_call_tls_get_addr): Likewise.
3461 (nios2_emit_expensive_div): Likewise.
3462 (nios2_emit_move_sequence): Change return type to bool.
3463 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3464 Change return type to bool.
3465
3466 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3467
3468 PR target/66747
3469 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3470
3471 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3472
3473 PR target/66114
3474 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3475 of register_operand. Remove constraint.
3476
3477 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3478
3479 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3480 the first argument.
3481
3482 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3483
3484 * attribs.c (decl_attributes): Guard inform with the return value
3485 of the preceding warning.
3486
3487 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3488
3489 * doc/invoke.texi (moverride): Move to correct section.
3490
3491 2015-07-03 Richard Biener <rguenther@suse.de>
3492
3493 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3494 Copy from tree.c
3495 (dt_operand::gen_gimple_expr): After valueizing operands
3496 re-canonicalize operand order for commutative tree codes.
3497
3498 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3499
3500 PR target/66746.
3501 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3502 is defined.
3503 (__crc32w): Likewise.
3504 (__crc32d): Likewise.
3505 (__rdpmc): Likewise.
3506 (__rdtscp): Likewise.
3507 (_rdpmc): Likewise.
3508 (_rdtscp): Likewise.
3509 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3510 is defined.
3511
3512 2015-07-03 Richard Biener <rguenther@suse.de>
3513
3514 * fold-const.c (fold_mathfn_compare): Remove.
3515 (fold_inf_compare): Likewise.
3516 (fold_comparison): Move floating point comparison simplifications...
3517 * match.pd: ... to patterns here. Introduce simple_comparisons
3518 operator list and use it for patterns formerly in fold_comparison.
3519
3520 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3521
3522 PR tree-optimization/66119
3523 * toplev.c (process_options): Don't set up default values for
3524 the sra_max_scalarization_size_{speed,size} parameters.
3525 * tree-sra (analyze_all_variable_accesses): If no values
3526 have been set for the sra_max_scalarization_size_{speed,size}
3527 parameters, call get_move_ratio to get target defaults.
3528
3529 2015-07-03 Richard Biener <rguenther@suse.de>
3530
3531 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3532 * match.pd: ... here.
3533
3534 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3535
3536 PR target/37072
3537 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3538 is not actually the default on FreeBSD.
3539
3540 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3541
3542 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3543 definition.
3544 (CMPGE_8HI): Likewise.
3545 (CMPGE_4SI): Likewise.
3546 (CMPGE_2DI): Likewise.
3547 (CMPGE_U16QI): Likewise.
3548 (CMPGE_U8HI): Likewise.
3549 (CMPGE_U4SI): Likewise.
3550 (CMPGE_U2DI): Likewise.
3551 (CMPLE_16QI): Likewise.
3552 (CMPLE_8HI): Likewise.
3553 (CMPLE_4SI): Likewise.
3554 (CMPLE_2DI): Likewise.
3555 (CMPLE_U16QI): Likewise.
3556 (CMPLE_U8HI): Likewise.
3557 (CMPLE_U4SI): Likewise.
3558 (CMPLE_U2DI): Likewise.
3559 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3560 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3561 ALTIVEC_BUILTIN_VEC_CMPLE.
3562 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3563 floating-point vector modes.
3564 (vector_nlt<mode>): New define_expand.
3565 (vector_nltu<mode>): Likewise.
3566 (vector_ngt<mode>): Likewise.
3567 (vector_ngtu<mode>): Likewise.
3568
3569 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3570
3571 PR rtl-optimization/66706
3572 * combine.c (make_compound_operation): If an AND of SUBREG of
3573 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3574
3575 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3576
3577 * tree-pass.h (make_pass_ch_vect): New.
3578 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3579
3580 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3581 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3582 make_pass_ch_vect): New.
3583 (pass_ch): Extend ch_base.
3584
3585 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3586 (ch_base::copy_headers): ...here.
3587
3588 2015-07-02 Richard Biener <rguenther@suse.de>
3589
3590 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3591 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3592 (fold_binary_loc): Implement (T)ptr & CST in terms of
3593 get_pointer_alignment_1.
3594 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3595 Make sure to build the alignment test on a SSA name without
3596 final alignment info valid only after the prologue.
3597
3598 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3599
3600 * config/cris/cris.md ("epilogue"): Remove condition.
3601 ("prologue"): Ditto.
3602
3603 2015-07-02 Richard Biener <rguenther@suse.de>
3604
3605 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3606 parameter to record a condition that is false.
3607 (record_conditions): When recording an extra NE_EXPR that is
3608 true also record a EQ_EXPR that is false.
3609
3610 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3611
3612 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3613 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3614 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3615 (set_iv, find_interesting_uses_address, add_candidate_1): New
3616 argument to alloc_iv.
3617 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3618 duplicate struct iv.
3619 (free_loop_data): Don't free struct iv explicitly.
3620 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3621
3622 2015-07-01 DJ Delorie <dj@redhat.com>
3623
3624 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3625 (LIB_SPEC): Add.
3626 (SUPPORTS_DISCRIMINATOR): Define.
3627
3628 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3629
3630 PR bootstrap/66685
3631 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3632 there are no CALLs in the same pattern.
3633
3634 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3635
3636 PR rtl-optimization/61047
3637 * rtlanal.c (get_initial_register_offset): New function.
3638 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3639
3640 2015-07-01 Richard Biener <rguenther@suse.de>
3641
3642 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3643 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3644 ~X CMP C -> X CMP' ~C to ...
3645 * match.pd: ... patterns here.
3646
3647 2015-07-01 Nick Clifton <nickc@redhat.com>
3648
3649 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3650 a 16-bit value into a 20-bit memory slot.
3651
3652 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3653
3654 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3655 "aarch64_tiny", "aarch64_small", "aarch64_large",
3656 "aarch64_little_endian", "aarch64_big_endian".
3657
3658 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3659
3660 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3661 Document "aarch64_small_fpic".
3662
3663 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3664
3665 * configure.ac: Add check for aarch64 assembler -fpic relocation
3666 modifier support.
3667 * configure: Regenerate.
3668 * config.in: Regenerate.
3669 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3670 to -fPIC if not support of -fpic relocation modifier in assembler.
3671
3672 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3673
3674 PR bootstrap/66685
3675 * rtl.c (classify_insn): Handle returns in PARALLELs.
3676
3677 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
3678
3679 PR middle-end/66633
3680 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3681 to true if the function is nested and if not optimizing.
3682 (convert_local_omp_clauses): Initialize need_frame to true if the
3683 function contains nested functions and if not optimizing.
3684
3685 2015-07-01 Richard Biener <rguenther@suse.de>
3686
3687 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3688 (X & Y) ^ Y -> ~X & Y transforms to ...
3689 * match.pd: ... here.
3690
3691 2015-07-01 Richard Biener <rguenther@suse.de>
3692
3693 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3694 of converts to avoid uninteresting noise from the conversion
3695 simplifying patterns.
3696
3697 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
3698
3699 * config/c6x/c6x.c (try_rename_operands): Do not depend on
3700 gcc_assert evaluating its argument for side-effect.
3701
3702 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
3703
3704 PR target/64833
3705 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3706 flag_pic is set.
3707
3708 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3709
3710 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3711 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3712 (hash_scc): Add this_ref_p and ref_p parameters and pass them
3713 to the inner DFS walk.
3714
3715 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3716
3717 * target-insns.def (jump): New targetm instruction pattern.
3718 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3719 instead of gen_jump.
3720 (fix_up_crossing_landing_pad): Likewise.
3721 (add_labels_and_missing_jumps): Likewise.
3722 (fix_crossing_conditional_branches): Likewise.
3723 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3724 (force_nonfallthru_and_redirect): Likewise.
3725 * cse.c (cse_insn): Likewise.
3726 * expmed.c (expand_divmod): Likewise.
3727 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3728 * haifa-sched.c (init_before_recovery): Likewise.
3729 (sched_create_recovery_edges): Likewise.
3730 * ifcvt.c (find_cond_trap): Likewise.
3731 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3732 (expand_float, expand_fix): Likewise.
3733 * stmt.c (emit_jump): Likewise.
3734
3735 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3736
3737 * defaults.h (HAVE_load_multiple, gen_load_multiple)
3738 (HAVE_store_multiple, gen_store_multiple): Delete.
3739 * target-insns.def (load_multiple, store_multiple): New targetm
3740 instruction patterns.
3741 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3742 of HAVE_*/gen_* interface.
3743
3744 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3745
3746 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3747 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3748 (gen_mem_signal_fence): Delete.
3749 * target-insns.def (mem_signal_fence, mem_thread_fence)
3750 (memory_barrier): New targetm instruction patterns.
3751 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3752 interface.
3753 (expand_mem_signal_fence): Likewise.
3754
3755 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3756
3757 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3758 * target-insns.def (epilogue, prologue, sibcall_prologue): New
3759 targetm instruction patterns.
3760 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3761 interface.
3762 * calls.c (expand_call): Likewise.
3763 * cfgrtl.c (cfg_layout_finalize): Likewise.
3764 * df-scan.c (df_get_entry_block_def_set): Likewise.
3765 (df_get_exit_block_use_set): Likewise.
3766 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3767 * final.c (final_start_function): Likewise.
3768 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3769 (reposition_prologue_and_epilogue_notes): Likewise.
3770 * reorg.c (find_end_label): Likewise.
3771 * toplev.c (process_options): Likewise.
3772
3773 2015-06-30 David Malcolm <dmalcolm@redhat.com>
3774
3775 * typed-splay-tree.h: New file.
3776
3777 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
3778
3779 PR debug/66691
3780 * lra-int.h (lra_substitute_pseudo): Add a parameter.
3781 (lra_substitute_pseudo_within_insn): Ditto.
3782 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
3783 of constant.
3784 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
3785 to lra_substitute_pseudo.
3786 * lra-lives.c (process_bb_lives): Add an argument to
3787 lra_substitute_pseudo_within_insn call.
3788 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3789 argument to lra_substitute_pseudo and
3790 lra_substitute_pseudo_within_insn calls.
3791 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3792
3793 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3794
3795 * configure: Regenerated.
3796
3797 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3798
3799 * config.gcc: Support i[34567]86-*-elfiamcu target.
3800 * config/i386/iamcu.h: New.
3801 * config/i386/i386.opt: Add -miamcu.
3802 * doc/invoke.texi: Document -miamcu.
3803 * common/config/i386/i386-common.c (ix86_handle_option): Turn
3804 off x87/MMX/SSE/AVX codegen for -miamcu.
3805 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3806 __iamcu/__iamcu__ for -miamcu.
3807 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3808 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3809 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3810 * config/i386/i386.c (ix86_option_override_internal): Ignore and
3811 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
3812 MCU by default. Default long double to 64-bit for Intel MCU.
3813 Turn on -freg-struct-return for Intel MCU. Issue an error when
3814 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3815 AVX is turned on.
3816 (function_arg_advance_32): Pass value whose size is no larger
3817 than 8 bytes in registers for Intel MCU.
3818 (function_arg_32): Likewise.
3819 (ix86_return_in_memory): Return value whose size is no larger
3820 than 8 bytes in registers for Intel MCU.
3821 (iamcu_alignment): New function.
3822 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3823 true.
3824 (ix86_local_alignment): Don't increase alignment for Intel MCU.
3825 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3826 true.
3827
3828 2015-06-30 Marek Polacek <polacek@redhat.com>
3829
3830 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
3831 both operands of the resulting expression.
3832
3833 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
3834 the final expression with the operand's type and then convert
3835 it to the type of the expression.
3836
3837 2015-06-30 Richard Biener <rguenther@suse.de>
3838
3839 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3840 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3841 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3842 * match.pd: ... to patterns here.
3843
3844 2015-06-30 Richard Biener <rguenther@suse.de>
3845
3846 PR tree-optimization/66704
3847 * tree-vect-data-refs.c (vect_setup_realignment): Use
3848 make_ssa_name for non-SSA name source.
3849
3850 2015-06-30 Jakub Jelinek <jakub@redhat.com>
3851
3852 PR middle-end/66702
3853 * omp-low.c (simd_clone_adjust): Handle addressable linear
3854 or uniform parameters or non-gimple type uniform parameters.
3855
3856 2015-06-30 Richard Biener <rguenther@suse.de>
3857
3858 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
3859 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
3860 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
3861 * match.pd: ... here.
3862 Add a few cases of A - B -> A + (-B) when B "easily" negates.
3863 Move (x & y) | x -> x and friends before
3864 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
3865
3866 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3867
3868 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
3869 -mfix-ut699 is not specified.
3870 (leon3_load): Rename into...
3871 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
3872 is specified.
3873
3874 2015-06-30 Marek Polacek <polacek@redhat.com>
3875
3876 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
3877 * match.pd: ... here.
3878
3879 2015-06-30 Richard Biener <rguenther@suse.de>
3880
3881 * target-insns.def (canonicalize_funcptr_for_compare): Add.
3882 * fold-const.c (build_range_check): Replace uses of
3883 HAVE_canonicalize_funcptr_for_compare.
3884 (fold_widened_comparison): Likewise.
3885 (fold_sign_changed_comparison): Likewise.
3886 * dojump.c: Include "target.h".
3887 (do_compare_and_jump): Replace uses of
3888 HAVE_canonicalize_funcptr_for_compare and
3889 gen_canonicalize_funcptr_for_compare.
3890 * expr.c (do_store_flag): Likewise.
3891
3892 2015-06-30 Tom de Vries <tom@codesourcery.com>
3893
3894 PR tree-optimization/66652
3895 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
3896 max_loop_iterations to determine if nit + 1 overflows.
3897
3898 2015-06-30 Richard Biener <rguenther@suse.de>
3899
3900 * tree-vrp.c (register_edge_assert_for_2): Also register
3901 asserts for dominating conversion results.
3902
3903 2015-06-30 Bin Cheng <bin.cheng@arm.com>
3904
3905 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
3906 field in struct iv.
3907
3908 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
3909
3910 PR target/66509
3911 * configure.ac: Fix filds and fildq test for 64-bit.
3912 * configure: Regenerated.
3913
3914 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
3915
3916 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
3917 (nvptx_reorg): Here. Keep the non-subreg pieces.
3918
3919 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
3920
3921 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
3922 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
3923
3924 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
3925
3926 * config/i386/i386.md (*jcc_1): Use %! in asm template.
3927 Set attribute "length_nobnd" instead of "length".
3928 (*jcc_2): Ditto.
3929 (jump): Ditto.
3930 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
3931
3932 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
3933
3934 * config/nios2/nios2.c (nios2_delegitimize_address): Make
3935 assert less restrictive.
3936
3937 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3938
3939 PR fortran/66605
3940 * cgraphunit.c (cgraph_node::finalize_function): Do not call
3941 do_warn_unused_parameter.
3942 * function.c (do_warn_unused_parameter): Move from here.
3943 * function.h (do_warn_unused_parameter): Do not declare.
3944
3945 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3946
3947 PR target/65697
3948 * gcc.target/arm/armv-sync-comp-swap.c: New.
3949 * gcc.target/arm/armv-sync-op-acquire.c: New.
3950 * gcc.target/arm/armv-sync-op-full.c: New.
3951 * gcc.target/arm/armv-sync-op-release.c: New.
3952
3953 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3954
3955 PR target/65697
3956 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
3957 initial acquire barrier with final barrier.
3958
3959 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3960
3961 PR target/65697
3962 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
3963 initial acquire barrier with final barrier.
3964
3965 2015-06-29 Richard Henderson <rth@redhat.com>
3966
3967 * config/i386/constraints.md (Bf): New constraint.
3968 * config/i386/i386-c.c (ix86_target_macros): Define
3969 __GCC_ASM_FLAG_OUTPUTS__.
3970 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
3971 as flags outputs.
3972 * doc/extend.texi (FlagOutputOperands): Document them.
3973
3974 2015-06-29 Jiong Wang <jiong.wang@arm.com>
3975
3976 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
3977 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
3978 unspec name.
3979 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
3980 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
3981 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
3982 (aarch64_symbol_context): Ditto.
3983 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
3984 and use new pattern name.
3985 (aarch64_expand_mov_immediate): Ditto.
3986 (aarch64_print_operand): Ditto.
3987 (aarch64_classify_tls_symbol): Ditto.
3988
3989 2015-06-29 Marek Polacek <polacek@redhat.com>
3990 Marc Glisse <marc.glisse@inria.fr>
3991
3992 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
3993 * match.pd: ... pattern here.
3994
3995 2015-06-29 Tom de Vries <tom@codesourcery.com>
3996
3997 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
3998 function structure.
3999
4000 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4001
4002 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4003 feature description, split out the native option, add a link to
4004 the feature documentation, rearrange and slightly rewrite text.
4005 (Aarch64 options, -mcpu): Likewise.
4006 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
4007 +rdma implies Adv. SIMD.
4008
4009 2015-06-29 Marek Polacek <polacek@redhat.com>
4010
4011 PR c/66322
4012 * function.c (stack_protect_epilogue): Remove a cast to int.
4013 * doc/invoke.texi: Update -Wswitch-bool description.
4014
4015 2015-06-29 Richard Biener <rguenther@suse.de>
4016
4017 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4018 * fold-const.c (fold_binary_loc): Move &A - &B simplification
4019 via ptr_difference_const ...
4020 * match.pd: ... here.
4021 When matching (X ^ Y) == Y also match with swapped operands.
4022
4023 2015-06-29 Richard Biener <rguenther@suse.de>
4024
4025 * lto-streamer.h (LTO_major_version): Bump to 5.
4026
4027 2015-06-29 Richard Biener <rguenther@suse.de>
4028
4029 PR tree-optimization/66677
4030 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4031 STMT_VINFO_VEC_STMT clobbering less strict.
4032
4033 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4034
4035 PR middle-end/64130
4036 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4037 division, compute max and min when value ranges for dividend and
4038 divisor are available.
4039
4040 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
4041 Sandra Loosemore <sandra@codesourcery.com>
4042
4043 * regrename.h (regrename_do_replace): Change to return bool.
4044 * regrename.c (rename_chains): Check return value of
4045 regname_do_replace.
4046 (regrename_do_replace): Re-validate the modified insns and
4047 return bool status.
4048 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4049 Update to match rename_chains changes.
4050 * config/c6x/c6x.c (try_rename_operands): Assert that
4051 regrename_do_replace returns true.
4052
4053 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
4054
4055 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4056 operand 2 here. Use copy_addr_to_reg to copy non-index
4057 register operand 2 to a temporary.
4058 (<mode>_stx): Ditto for operand 1.
4059 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4060 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4061 (ix86_store_bounds): Ditto.
4062
4063 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
4064
4065 * print-tree.c (print_node) [TREE_VEC]: Print its length.
4066
4067 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
4068
4069 * gimple.c (gimple_call_set_fndecl): Remove.
4070 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4071 build1_loc directly instead of build_fold_addr_expr_loc.
4072
4073 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4074
4075 * hash-map.h (hash_map::traverse): Use the definition of the
4076 Key typedef rather than the typedef itself.
4077
4078 2015-06-26 Martin Jambor <mjambor@suse.cz>
4079
4080 PR debug/66301
4081 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4082 NULL instead of calling dump_enabled_p.
4083
4084 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4085
4086 * config/aarch64/aarch64.opt: (override): New.
4087 * doc/invoke.texi (override): Document.
4088 * config/aarch64/aarch64.c (aarch64_flag_desc): New
4089 (aarch64_fusible_pairs): Likewise.
4090 (aarch64_tuning_flags): Likewise.
4091 (aarch64_tuning_override_function): Likewise.
4092 (aarch64_tuning_override_functions): Likewise.
4093 (aarch64_parse_one_option_token): Likewise.
4094 (aarch64_parse_boolean_options): Likewise.
4095 (aarch64_parse_fuse_string): Likewise.
4096 (aarch64_parse_tune_string): Likewise.
4097 (aarch64_parse_one_override_token): Likewise.
4098 (aarch64_parse_override_string): Likewise.
4099 (aarch64_override_options): Parse the -override string if it
4100 is present.
4101
4102 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4103
4104 * config/aarch64/aarch64-protos.h (tune_params): Remove
4105 const from members.
4106 (aarch64_tune_params): Remove const, change to no longer be
4107 a pointer.
4108 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4109 change to no longer be a pointer, initialize to generic_tunings.
4110 (aarch64_min_divisions_for_recip_mul): Change dereference of
4111 aarch64_tune_params to member access.
4112 (aarch64_reassociation_width): Likewise.
4113 (aarch64_rtx_mult_cost): Likewise.
4114 (aarch64_address_cost): Likewise.
4115 (aarch64_branch_cost): Likewise.
4116 (aarch64_rtx_costs): Likewise.
4117 (aarch64_register_move_cost): Likewise.
4118 (aarch64_memory_move_cost): Likewise.
4119 (aarch64_sched_issue_rate): Likewise.
4120 (aarch64_builtin_vectorization_cost): Likewise.
4121 (aarch64_override_options): Take a copy of the selected tuning
4122 struct in to aarch64_tune_params, rather than just setting
4123 a pointer, change dereferences of aarch64_tune_params to member
4124 accesses.
4125 (aarch64_override_options_after_change): Change dereferences of
4126 aarch64_tune_params to member access.
4127 (aarch64_macro_fusion_p): Likewise.
4128 (aarch_macro_fusion_pair_p): Likewise.
4129 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4130
4131 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4132
4133 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4134 (aarch64_tune_flags): Likewise.
4135 (AARCH64_TUNE_FMA_STEERING): Likewise.
4136 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4137 to AARCH64_FL_USE_FMA_STEERING_PASS.
4138 (cortex-a57.cortex-a53): Likewise.
4139 (cortex-a72): Use cortexa72_tunings.
4140 (cortex-a72.cortex-a53): Likewise.
4141 (exynos-m1): Likewise.
4142 * config/aarch64/aarch64-protos.h (tune_params): Add
4143 a field: extra_tuning_flags.
4144 * config/aarch64/aarch64-tuning-flags.def: New.
4145 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4146 (aarch64_extra_tuning_flags): Likewise.
4147 (aarch64_tune_params): Declare here.
4148 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4149 (cortexa53_tunings): Likewise.
4150 (cortexa57_tunings): Likewise.
4151 (thunderx_tunings): Likewise.
4152 (xgene1_tunings): Likewise.
4153 (cortexa72_tunings): New.
4154 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4155 (gate): Check against aarch64_tune_params.
4156 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4157 aarch64-protos.h.
4158
4159 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4160
4161 * config/aarch64/aarch64-fusion-pairs.def: New.
4162 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4163 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4164 aarch64_fusion_pairs.
4165 (AARCH64_FUSE_MOV_MOVK): Likewise.
4166 (AARCH64_FUSE_ADRP_ADD): Likewise.
4167 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4168 (AARCH64_FUSE_ADRP_LDR): Likewise.
4169 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4170
4171 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4172
4173 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4174 SYMBOL_SMALL_GOT_28K.
4175 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4176 relocation modifiers.
4177 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4178 (ldr_got_small_28k_<mode>): New.
4179 (ldr_got_small_28k_sidi): New.
4180 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4181 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4182 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4183 SYMBOL_SMALL_GOT_28K.
4184 (aarch64_rtx_costs): Add costs for new instruction sequences.
4185 (initialize_aarch64_code_model): Initialize new model.
4186 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4187 (aarch64_asm_preferred_eh_data_format): Support new model.
4188 (aarch64_load_symref_appropriately): Generate new instruction
4189 sequences for -fpic.
4190 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4191 (aarch64_use_pseudo_pic_reg): New function.
4192
4193 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4194
4195 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4196 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4197 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4198 (aarch64_expand_mov_immediate): Ditto.
4199 (aarch64_print_operand): Ditto.
4200 (aarch64_classify_symbol): Ditto.
4201
4202 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4203
4204 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4205
4206 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4207
4208 PR bootstrap/66638
4209 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4210 assertion failed. Remove assertion itself.
4211
4212 2015-06-26 Richard Biener <rguenther@suse.de>
4213
4214 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4215 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4216 in match.pd.
4217 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4218 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4219 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4220 * match.pd: ... patterns here.
4221
4222 2015-06-26 Marek Polacek <polacek@redhat.com>
4223
4224 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4225 (x | y) & (~x ^ y) -> x & y): New patterns.
4226
4227 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4228
4229 * rtl.h (emit): Add an optional boolean parameter to control
4230 whether barriers are emitted.
4231 * emit-rtl.c (emit): Likewise.
4232 * gensupport.c (get_emit_function): Return null rather than "emit".
4233 * genemit.c (gen_emit_seq): Handle the null return value.
4234 Don't emit barriers after the final instruction in the sequence.
4235 * gentarget-def.c (main): Don't emit barriers after the instruction.
4236
4237 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4238
4239 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4240 TARGET_UNIFIED_ASM.
4241
4242 2015-06-26 Richard Biener <rguenther@suse.de>
4243
4244 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4245
4246 2015-06-26 Richard Biener <rguenther@suse.de>
4247
4248 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4249 irrespective on whether the inner operation has a single use
4250 of both off are constant.
4251
4252 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4253 Segher Boessenkool <segher@kernel.crashing.org>
4254
4255 PR target/66412
4256 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4257 before doing PUT_MODE or PUT_CODE on operands to avoid
4258 in-place RTX modification.
4259
4260 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4261
4262 * gentarget-def.c (def_target_insn): Cast return of strtol to
4263 unsigned int.
4264
4265 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4266
4267 * gimple.h (gimple_call_set_fn): Move inline function.
4268 * gimple.c (gimple_call_set_fn): Relocate here.
4269
4270 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4271
4272 PR target/65979
4273 PR target/66611
4274 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4275 the replacement insn will work.
4276
4277 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4278
4279 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4280 by default.
4281
4282 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4283
4284 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4285 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4286 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4287 (symtab_node::address_can_be_compared_p): Move function.
4288 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4289 definition here.
4290 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4291 * auto-profile.c: Likewise.
4292 * bb-reorder.c: Likewise.
4293 * builtins.c: Likewise.
4294 * calls.c: Likewise.
4295 * cfgexpand.c: Likewise.
4296 * cgraphbuild.c: Likewise.
4297 * cgraphclones.c: Likewise.
4298 * cgraphunit.c: Likewise.
4299 * combine.c: Likewise.
4300 * coverage.c: Likewise.
4301 * data-streamer-in.c: Likewise.
4302 * data-streamer-out.c: Likewise.
4303 * data-streamer.c: Likewise.
4304 * dbxout.c: Likewise.
4305 * dwarf2out.c: Likewise.
4306 * except.c: Likewise.
4307 * expr.c: Likewise.
4308 * final.c: Likewise.
4309 * fold-const.c: Likewise.
4310 * ggc-page.c: Likewise.
4311 * gimple-fold.c: Likewise.
4312 * gimple-iterator.c: Likewise.
4313 * gimple-pretty-print.c: Likewise.
4314 * gimple-streamer-in.c: Likewise.
4315 * gimple-streamer-out.c: Likewise.
4316 * gimple.c: Likewise.
4317 * gimplify.c: Likewise.
4318 * ipa-chkp.c: Likewise.
4319 * ipa-comdats.c: Likewise.
4320 * ipa-cp.c: Likewise.
4321 * ipa-devirt.c: Likewise.
4322 * ipa-icf-gimple.c: Likewise.
4323 * ipa-icf.c: Likewise.
4324 * ipa-inline-analysis.c: Likewise.
4325 * ipa-inline-transform.c: Likewise.
4326 * ipa-inline.c: Likewise.
4327 * ipa-polymorphic-call.c: Likewise.
4328 * ipa-profile.c: Likewise.
4329 * ipa-prop.c: Likewise.
4330 * ipa-pure-const.c: Likewise.
4331 * ipa-ref.c: Likewise.
4332 * ipa-reference.c: Likewise.
4333 * ipa-split.c: Likewise.
4334 * ipa-utils.c: Likewise.
4335 * ipa-visibility.c: Likewise.
4336 * ipa.c: Likewise.
4337 * langhooks.c: Likewise.
4338 * lto-cgraph.c: Likewise.
4339 * lto-compress.c: Likewise.
4340 * lto-opts.c: Likewise.
4341 * lto-section-in.c: Likewise.
4342 * lto-section-out.c: Likewise.
4343 * lto-streamer-in.c: Likewise.
4344 * lto-streamer-out.c: Likewise.
4345 * lto-streamer.c: Likewise.
4346 * omp-low.c: Likewise.
4347 * opts-global.c: Likewise.
4348 * passes.c: Likewise.
4349 * predict.c: Likewise.
4350 * print-tree.c: Likewise.
4351 * profile.c: Likewise.
4352 * ree.c: Likewise.
4353 * sanopt.c: Likewise.
4354 * stor-layout.c: Likewise.
4355 * symtab.c: Likewise.
4356 * toplev.c: Likewise.
4357 * trans-mem.c: Likewise.
4358 * tree-cfg.c: Likewise.
4359 * tree-chkp.c: Likewise.
4360 * tree-eh.c: Likewise.
4361 * tree-emutls.c: Likewise.
4362 * tree-inline.c: Likewise.
4363 * tree-nested.c: Likewise.
4364 * tree-parloops.c: Likewise.
4365 * tree-pretty-print.c: Likewise.
4366 * tree-profile.c: Likewise.
4367 * tree-sra.c: Likewise.
4368 * tree-ssa-alias.c: Likewise.
4369 * tree-ssa-live.c: Likewise.
4370 * tree-ssa-loop-ivcanon.c: Likewise.
4371 * tree-ssa-loop-ivopts.c: Likewise.
4372 * tree-ssa-pre.c: Likewise.
4373 * tree-ssa-sccvn.c: Likewise.
4374 * tree-ssa-strlen.c: Likewise.
4375 * tree-ssa-structalias.c: Likewise.
4376 * tree-streamer-in.c: Likewise.
4377 * tree-streamer-out.c: Likewise.
4378 * tree-streamer.c: Likewise.
4379 * tree-switch-conversion.c: Likewise.
4380 * tree-tailcall.c: Likewise.
4381 * tree-vect-data-refs.c: Likewise.
4382 * tree-vect-stmts.c: Likewise.
4383 * tree-vectorizer.c: Likewise.
4384 * tree.c: Likewise.
4385 * tsan.c: Likewise.
4386 * ubsan.c: Likewise.
4387 * value-prof.c: Likewise.
4388 * varasm.c: Likewise.
4389 * varpool.c: Likewise.
4390 * config/arm/arm.c: Likewise.
4391 * config/bfin/bfin.c: Likewise.
4392 * config/c6x/c6x.c: Likewise.
4393 * config/cris/cris.c: Likewise.
4394 * config/darwin-c.c: Likewise.
4395 * config/darwin.c: Likewise.
4396 * config/i386/i386.c: Likewise.
4397 * config/i386/winnt.c: Likewise.
4398 * config/microblaze/microblaze.c: Likewise.
4399 * config/mips/mips.c: Likewise.
4400 * config/rs6000/rs6000.c: Likewise.
4401 * config/rx/rx.c: Likewise.
4402 * config/s390/s390.c: Likewise.
4403 * config/tilegx/mul-tables.c: Likewise.
4404
4405 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4406
4407 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4408 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4409 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4410 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4411 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4412 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4413 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4414 config/microblaze/microblaze.c, config/mips/mips.c,
4415 config/mmix/mmix.c, config/mn10300/mn10300.c,
4416 config/moxie/moxie.c, config/msp430/msp430.c,
4417 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4418 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4419 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4420 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4421 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4422 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4423 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4424 target-def.h include.
4425 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4426
4427 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4428
4429 * Makefile.in (TARGET_DEF): Add target-insns.def.
4430 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4431 (build/gentarget-def.o): New rule.
4432 (genprogrtl): Add target-def.
4433 * target-insns.def, gentarget-def.c: New files.
4434 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4435 based on the contents of target-insns.def.
4436 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4437 (HAVE_return, gen_return): Delete.
4438 * target-def.h: Include insn-target-def.h.
4439 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4440 instead of direct calls. Rely on them to do the appropriate assertions.
4441 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4442 (convert_jumps_to_returns): Use targetm interface instead of
4443 direct calls.
4444 (thread_prologue_and_epilogue_insns): Likewise.
4445 * reorg.c (find_end_label, dbr_schedule): Likewise.
4446 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4447 * shrink-wrap.c (convert_to_simple_return): Likewise.
4448 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4449
4450 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4451
4452 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4453 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4454 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4455 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4456 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4457 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4458 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4459 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4460 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4461 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4462 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4463 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4464 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4465 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4466 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4467 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4468 includes to end.
4469
4470 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4471
4472 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4473 (unbounded_int_hashmap_traits::key_type): Likewise.
4474 * hash-map.h (hash_map): Get the key type from the traits.
4475 * hash-traits.h (default_hash_traits): By default, inherit from the
4476 template parameter.
4477 * alias.c (alias_set_traits): Delete.
4478 (alias_set_entry_d::children): Use alias_set_hash as the first
4479 template parameter.
4480 (record_alias_subset): Update accordingly.
4481 * except.c (tree_hash_traits): Delete.
4482 (type_to_runtime_map): Use tree_hash as the first template parameter.
4483 (init_eh): Update accordingly.
4484 * genmatch.c (capture_id_map_hasher): Delete.
4485 (cid_map_t): Use nofree_string_hash as first template parameter.
4486 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4487 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4488 Use symbol_compare_hash as the first template parameter in
4489 subdivide_hash_map.
4490 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4491 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4492 template parameter.
4493 * passes.c (pass_registry_hasher): Delete.
4494 (name_to_pass_map): Use nofree_string_hash as the first template
4495 parameter.
4496 (register_pass_name): Update accordingly.
4497 * sanopt.c (sanopt_tree_map_traits): Delete.
4498 (sanopt_tree_triplet_map_traits): Delete.
4499 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4500 template parameter.
4501 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4502 the first template parameter.
4503 * sese.c (rename_map_hasher): Delete.
4504 (rename_map_type): Use tree_ssa_name_hash as the first template
4505 parameter.
4506 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4507 (function_summary::m_map): Use map_hash as the first template
4508 parameter.
4509 (function_summary::release): Update accordingly.
4510 * tree-if-conv.c (phi_args_hash_traits): Delete.
4511 (predicate_scalar_phi): Use tree_operand_hash as the first template
4512 parameter to phi_arg_map.
4513 * tree-inline.h (dependence_hasher): Delete.
4514 (copy_body_data::dependence_map): Use dependence_hash as the first
4515 template parameter.
4516 * tree-inline.c (remap_dependence_clique): Update accordingly.
4517 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4518 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4519 parameter.
4520 (addr_stridxptr): Update accordingly.
4521 * value-prof.c (profile_id_traits): Delete.
4522 (cgraph_node_map): Use profile_id_hash as the first template
4523 parameter.
4524 (init_node_map): Update accordingly.
4525 * config/alpha/alpha.c (string_traits): Delete.
4526 (machine_function::links): Use nofree_string_hash as the first
4527 template parameter.
4528 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4529 * config/m32c/m32c.c (pragma_traits): Delete.
4530 (pragma_htab): Use nofree_string_hash as the first template parameter.
4531 (m32c_note_pragma_address): Update accordingly.
4532 * config/mep/mep.c (pragma_traits): Delete.
4533 (pragma_htab): Use nofree_string_hash as the first template parameter.
4534 (mep_note_pragma_flag): Update accordingly.
4535 * config/mips/mips.c (mips16_flip_traits): Delete.
4536 (mflip_mips16_htab): Use nofree_string_hash as the first template
4537 parameter.
4538 (mflip_mips16_use_mips16_p): Update accordingly.
4539 (local_alias_traits): Delete.
4540 (mips16_local_aliases): Use nofree_string_hash as the first template
4541 parameter.
4542 (mips16_local_alias): Update accordingly.
4543
4544 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4545
4546 * hash-map-traits.h (default_hashmap_traits): Delete.
4547
4548 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4549
4550 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4551 (unbounded_int_hashmap_traits): Likewise.
4552 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4553
4554 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4555
4556 * ipa-icf.h (symbol_compare_hash): New class.
4557 (symbol_compare_hashmap_traits): Use it.
4558 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4559 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4560 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4561 default_hashmap_traits.
4562 * sanopt.c (sanopt_tree_triplet_hash): New class.
4563 (sanopt_tree_triplet_map_traits): Use it.
4564
4565 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4566
4567 * gengtype-parse.c (require_template_declaration): Allow '+' in
4568 template parameters. Consolidate cases.
4569 * hash-traits.h (int_hash): New class.
4570 * alias.c (alias_set_hash): New structure.
4571 (alias_set_traits): Use it.
4572 * symbol-summary.h (function_summary::map_hash): New class.
4573 (function_summary::summary_hashmap_traits): Use it.
4574 * tree-inline.h (dependence_hash): New class.
4575 (dependence_hasher): Use it.
4576 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4577 * value-prof.c (profile_id_hash): New class.
4578 (profile_id_traits): Use it.
4579
4580 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4581
4582 * config/mips/mips.c (mips16_flip_traits): Use it.
4583 (local_alias_traits, mips16_local_aliases): Convert from a map of
4584 rtxes to a map of symbol names.
4585 (mips16_local_alias): Update accordingly.
4586
4587 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4588
4589 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4590 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4591 * passes.c (pass_registry_hasher): Likewise.
4592 * config/alpha/alpha.c (string_traits): Likewise.
4593 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4594 * config/m32c/m32c.c (pragma_traits): Likewise.
4595 * config/mep/mep.c (pragma_traits): Likewise.
4596
4597 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4598
4599 * tree-hash-traits.h (tree_hash): New class.
4600 * except.c: Include tree-hash-traits.h.
4601 (tree_hash_traits): Use tree_hash.
4602
4603 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4604
4605 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4606 * sese.c: Include tree-hash-traits.h.
4607 (rename_map_hasher): Use tree_ssa_name_hasher.
4608
4609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4610
4611 * tree-hash-traits.h (tree_decl_hash): New class.
4612 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4613 (stridxlist_hash_traits): Use tree_decl_hash.
4614
4615 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4616
4617 * tree-hash-traits.h: New file.
4618 (tree_operand_hash): New class.
4619 * sanopt.c: Include tree-hash-traits.h.
4620 (sanopt_tree_map_traits): Use tree_operand_hash.
4621 * tree-if-conv.c: Include tree-hash-traits.h.
4622 (phi_args_hash_traits): Use tree_operand_hash.
4623 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4624 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4625
4626 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4627
4628 * hash-map-traits.h: Include hash-traits.h.
4629 (simple_hashmap_traits): New class.
4630 * mem-stats.h (hash_map): Change the default traits to
4631 simple_hashmap_traits<default_hash_traits<Key> >.
4632
4633 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4634
4635 * hash-table.h: Update comments.
4636
4637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4638
4639 * hash-traits.h (default_hash_traits): New structure.
4640 * hash-set.h (default_hashset_traits): Delete.
4641 (hash_set): Use default_hash_traits<Key> instead of
4642 default_hashset_traits. Delete hash_entry type and use Key directly.
4643 * ipa-devirt.c (pair_traits): Delete.
4644 (default_hash_traits <type_pair>): Override.
4645 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4646 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4647
4648 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4649
4650 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4651
4652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4653
4654 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4655 (has_is_empty, is_empty_helper): Delete.
4656 (has_mark_deleted, mark_deleted_helper): Delete.
4657 (has_mark_empty, mark_empty_helper): Delete.
4658 (hash_table::is_deleted): Call the Descriptor unconditionally.
4659 (hash_table::is_empty): Likewise.
4660 (hash_table::mark_deleted): Likewise.
4661 (hash_table::mark_empty): Likewise.
4662
4663 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4664
4665 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
4666 redundant typedefs and members.
4667 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
4668 redundant typedefs.
4669 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4670 * ipa-devirt.c (odr_name_hasher): Likewise.
4671 (polymorphic_call_target_hasher): Likewise.
4672 * ira-costs.c (cost_classes_hasher): Likewise.
4673 * statistics.c (stats_counter_hasher): Likewise.
4674 * trans-mem.c (log_entry_hasher): Likewise.
4675 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4676 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4677 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4678 * var-tracking.c (variable_hasher): Likewise.
4679 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4680 Remove redundant typedefs and members.
4681
4682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4683
4684 * hash-traits.h (ggc_cache_hasher): Rename to...
4685 (ggc_cache_remove): ...this and remove typedefs.
4686 (ggc_cache_ptr_hash): New class.
4687 * hash-table.h: Update commentary.
4688 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4689 rather than ggc_cache_hasher.
4690 (const_wide_int_hasher, reg_attr_hasher): Likewise.
4691 (const_double_hasher, const_fixed_hasher): Likewise.
4692 * function.c (insn_cache_hasher): Likewise.
4693 * trans-mem.c (tm_wrapper_hasher): Likewise.
4694 * tree.h (tree_decl_map_cache_hasher): Likewise.
4695 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4696 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4697 * ubsan.c (tree_type_map_cache_hasher): Likewise.
4698 * varasm.c (tm_clone_hasher): Likewise.
4699 * config/i386/i386.c (dllimport_hasher): Likewise.
4700 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4701 (tree_hasher): Likewise.
4702
4703 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4704
4705 * hash-traits.h (ggc_hasher): Rename to...
4706 (ggc_remover): ...this and remove typedefs.
4707 (ggc_cache_hasher): Update accordingly. Add typedefs.
4708 (ggc_ptr_hash): New class.
4709 * hash-table.h: Update comment.
4710 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4711 ggc_hasher.
4712 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4713 (tree_descriptor_hasher): Likewise.
4714 * cgraph.c (function_version_hasher): Likewise.
4715 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4716 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4717 (dw_loc_list_hasher, addr_hasher): Likewise.
4718 * function.h (used_type_hasher): Likewise.
4719 * function.c (temp_address_hasher): Likewise.
4720 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4721 * libfuncs.h (libfunc_hasher): Likewise.
4722 * lto-streamer.h (decl_state_hasher): Likewise.
4723 * optabs.c (libfunc_decl_hasher): Likewise.
4724 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4725 * varasm.c (section_hasher, object_block_hasher): Likewise.
4726 (const_rtx_desc_hasher): Likewise.
4727 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4728 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4729
4730 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4731
4732 * hash-traits.h (free_ptr_hash): New class.
4733 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4734 rather than typed_free_remove. Remove redudant typedefs.
4735 (external_ref_hasher): Likewise.
4736 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4737 (ehspec_hasher): Likewise.
4738 * ggc-common.c (saving_hasher): Likewise.
4739 * gimplify.c (gimplify_hasher): Likewise.
4740 * haifa-sched.c (delay_i2_hasher): Likewise.
4741 * loop-invariant.c (invariant_expr_hasher): Likewise.
4742 * loop-iv.c (biv_entry_hasher): Likewise.
4743 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4744 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4745 * tree-cfg.c (locus_discrim_hasher): Likewise.
4746 * tree-eh.c (finally_tree_hasher): Likewise.
4747 * tree-into-ssa.c (var_info_hasher): Likewise.
4748 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4749 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4750 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4751 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4752 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4753 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4754 (shared_bitmap_hasher): Likewise.
4755 * tree-ssa-threadupdate.c (redirection_data): Likewise.
4756 * tree-vectorizer.h (peel_info_hasher): Likewise.
4757 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4758 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4759
4760 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4761
4762 * hash-table.h: Update comments.
4763 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4764 (nofree_ptr_hash): New class.
4765 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4766 than typed_noop_remove. Remove redudant typedefs.
4767 * attribs.c (attribute_hasher): Likewise.
4768 * cfg.c (bb_copy_hasher): Likewise.
4769 * cselib.c (cselib_hasher): Likewise.
4770 * dse.c (invariant_group_base_hasher): Likewise.
4771 * dwarf2cfi.c (trace_info_hasher): Likewise.
4772 * dwarf2out.c (macinfo_entry_hasher): Likewise.
4773 (comdat_type_hasher, loc_list_hasher): Likewise.
4774 * gcse.c (pre_ldst_expr_hasher): Likewise.
4775 * genmatch.c (id_base): Likewise.
4776 * genrecog.c (test_pattern_hasher): Likewise.
4777 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4778 * haifa-sched.c (delay_i1_hasher): Likewise.
4779 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4780 * ipa-icf.h (congruence_class_group_hash): Likewise.
4781 * ipa-profile.c (histogram_hash): Likewise.
4782 * ira-color.c (allocno_hard_regs_hasher): Likewise.
4783 * lto-streamer.h (string_slot_hasher): Likewise.
4784 * lto-streamer.c (tree_entry_hasher): Likewise.
4785 * plugin.c (event_hasher): Likewise.
4786 * postreload-gcse.c (expr_hasher): Likewise.
4787 * store-motion.c (st_expr_hasher): Likewise.
4788 * tree-sra.c (uid_decl_hasher): Likewise.
4789 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4790 (ssa_name_var_hash): Likewise.
4791 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4792 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4793 * tree-ssa-pre.c (pre_expr_d): Likewise.
4794 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4795 * vtable-verify.h (registration_hasher): Likewise.
4796 * vtable-verify.c (vtbl_map_hasher): Likewise.
4797 * config/arm/arm.c (libcall_hasher): Likewise.
4798 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4799 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4800 * config/sol2.c (comdat_entry_hasher): Likewise.
4801 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4802 (print_fold_checksum, fold_checksum_tree): Likewise.
4803 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4804 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4805 (fold_build_call_array_loc): Likewise.
4806 * tree-ssa-ccp.c (gimple_htab): Likewise.
4807 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4808 rather than pointer_type.
4809
4810 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4811
4812 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4813 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4814
4815 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4816
4817 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4818 (ggc_hasher::ggc_mx): Likewise.
4819 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
4820 that duplicate ggc_hasher ones.
4821
4822 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4823
4824 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4825 (gt_cleare_cache): Check here for deleted and empty entries.
4826 Replace handle_cache_entry with a call to keep_cache_entry.
4827 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4828 (ggc_cache_hasher::keep_cache_entry): New function.
4829 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4830 (tm_wrapper_hasher::keep_cache_entry): New function.
4831 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4832 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4833 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4834 (type_cache_hasher::keep_cache_entry): New function.
4835 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4836 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4837 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4838 (tree_type_map_cache_hasher::keep_cache_entry): New function.
4839 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4840 (tm_clone_hasher::keep_cache_entry): New function.
4841 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4842 (dllimport_hasher::keep_cache_entry): New function.
4843
4844 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4845
4846 * hash-table.h: Include hash-traits.h.
4847 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4848 (ggc_cache_hasher): Move to...
4849 * hash-traits.h: ...this new file.
4850
4851 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4852
4853 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4854 struct cl_optimization.
4855 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4856 * tree.c (make_node_stat): Allocate cl_optimization struct.
4857 (copy_node_stat): Allocate and copy cl_optimization struct.
4858
4859 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4860
4861 * function.h (struct incoming_args): Move struct.
4862 (pass_by_reference, reference_callee_copied): Remove prototypes.
4863 * emit-rtl.h (struct incoming_args): Relocate struct here.
4864 * calls.h (pass_by_reference, reference_callee_copied): Relocate
4865 prototypes here.
4866 * function.c (pass_by_reference, reference_callee_copied): Move.
4867 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
4868 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
4869 * ipa-chkp.c: Include calls.h.
4870
4871 2015-06-25 Andrew Macleod <amacleod@redhat.com>
4872
4873 * alias.h (alias_set_type): Move typedef.
4874 * coretypes.h (alias_set_type): Relocate typedef here.
4875 * rtl.h: Don't include alias.h.
4876
4877 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4878
4879 * cgraph.h (cgraph_rtl_info): Move to rtl.h
4880 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
4881 and instance.
4882 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
4883 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
4884 doesn't exist.
4885 * calls.c: Include hard-reg-set.h before rtl.h.
4886 * ira.c: Likewise.
4887
4888 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4889 Vladimir Makarov <vmakarov@redhat.com>
4890
4891 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
4892 Add assert.
4893
4894 2015-06-25 Richard Biener <rguenther@suse.de>
4895
4896 * fold-const.c (fold_binary_loc): Move simplification of
4897 (X <<>> C1) & C2 ...
4898 * match.pd: ... here.
4899
4900 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
4901
4902 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
4903
4904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4905
4906 * match.pd: Add patterns for vec_conds between 1 and 0.
4907
4908 2015-06-25 Richard Biener <rguenther@suse.de>
4909
4910 * tree-vect-stmts.c (vectorizable_conversion): Do not set
4911 STMT_VINFO_VEC_STMT for SLP.
4912 (vectorizable_store): Likewise.
4913 (vectorizable_load): Likewise.
4914 (vect_transform_stmt): Catch SLP vectorization clobbering
4915 STMT_VINFO_VEC_STMT.
4916
4917 2015-06-25 Richard Biener <rguenther@suse.de>
4918
4919 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
4920 dumping.
4921 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
4922 cleanup resulting dead code and parameters.
4923 (vect_transform_slp_perm_load): Adjust.
4924
4925 2015-06-25 Nick Clifton <nickc@redhat.com>
4926
4927 * config/bfin/bfin.c (bfin_expand_prologue): Set
4928 current_function_static_stack_size if flag_stack_usage_info is set.
4929 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4930 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
4931 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4932 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
4933
4934 2015-06-25 Tom de Vries <tom@codesourcery.com>
4935
4936 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
4937 comment that the generated IV is unsigned.
4938
4939 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4940
4941 PR target/29693
4942 * config/arm/arm.c (arm_dbx_register_number): Return
4943 DWARF_FRAME_REGISTERS by default.
4944
4945 2015-06-25 Tom de Vries <tom@codesourcery.com>
4946
4947 * dominance.c (calculate_dominance_info): Fix verify_dominators call
4948 argument. Call verify_dominator when reusing dominator info.
4949
4950 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
4951
4952 PR target/66563
4953 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
4954 an additional element of the unspec vector. Modify indices
4955 of operands.
4956 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
4957 * config/sh/sh.c (prepare_move_operands): Pass incremented
4958 const_int to gen_GOTaddr2picreg.
4959 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
4960
4961 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4962
4963 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
4964 Condition on TARGET_FLOAT.
4965
4966 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4967
4968 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
4969 and (no)crypto.
4970
4971 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4972
4973 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
4974
4975 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
4976 aarch64_err_no_fpadvsimd.
4977
4978 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
4979 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
4980 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
4981 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
4982 Turn error into assert, test TARGET_FLOAT.
4983 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
4984 TARGET_FLOAT.
4985
4986 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
4987
4988 PR debug/66482
4989 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
4990
4991 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4992
4993 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
4994
4995 2015-06-24 Renlin Li <renlin.li@arm.com>
4996
4997 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
4998 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
4999
5000 2015-06-24 Richard Biener <rguenther@suse.de>
5001
5002 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5003 (main): Likewise.
5004 (lower_opt_convert): Support lowering of conditional view_convert.
5005 (parser::parse_operation): Likewise.
5006 (parser::parse_for): Likewise.
5007
5008 2015-06-24 Renlin Li <renlin.li@arm.com>
5009
5010 * varasm.c (emit_local): Use unsigned int for align variable.
5011
5012 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5013
5014 PR target/63408
5015 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5016 for negative numbers.
5017
5018 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5019
5020 PR rtl-optimization/66306
5021 * reload.c (find_reloads): Swap the match_dup info for
5022 commutative operands.
5023
5024 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5025
5026 * config/s390/vx-builtins.md
5027 ("vec_scatter_element<mode>_<non_vec_int>")
5028 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5029 attribute with bhfgq.
5030
5031 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5032
5033 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5034
5035 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5036
5037 * config/s390/s390-builtin-types.def: Add flag to indicate the
5038 options under which the function type is needed.
5039 * config/s390/s390-builtins.def: Add flag to indicate the options
5040 under which the builtin is enabled.
5041 * config/s390/s390-builtins.h: Add flags parameter to macro
5042 definitions.
5043 (bflags_for_builtin): New function.
5044 (flags_for_builtin): Renamed to ...
5045 (opflags_for_builtin): ... this.
5046 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5047 flags_for_builtin to bflags_for_builtin and
5048 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5049 * config/s390/s390.c: Add initialization of bflags_builtin and
5050 opflags_builtin arrays.
5051 Remove code for flags_builtin.
5052 (s390_init_builtins): Only create builtin function types if one of
5053 their flags is active.
5054 Only create builtins if all of their flags are active.
5055 (s390_expand_builtin): Rename flags_for_builtin to
5056 opflags_for_builtin.
5057
5058 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5059
5060 * config/s390/vecintrin.h: Remove internal builtins.
5061
5062 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5063
5064 * config/s390/s390.c (s390_secondary_reload): Fix check for
5065 GENERAL_REGS register class.
5066
5067 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5068
5069 * config/s390/s390.c (s390_support_vector_misalignment): Call
5070 default implementation for !TARGET_VX.
5071
5072 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5073
5074 * config/s390/s390.c (s390_legitimate_constant_p): Add
5075 TARGET_VX check.
5076
5077 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5078
5079 * config/s390/s390.c (s390_vector_abi): New variable definition.
5080 (s390_check_type_for_vector_abi): New function.
5081 (TARGET_ASM_FILE_END): New macro definition.
5082 (s390_asm_file_end): New function.
5083 (s390_function_arg): Call s390_check_type_for_vector_abi.
5084 (s390_gimplify_va_arg): Likewise.
5085 * configure: Regenerate.
5086 * configure.ac: Check for .gnu_attribute Binutils feature.
5087
5088 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
5089
5090 PR target/65803
5091 * config/bfin/bfin.c (hwloop_optimize): Initialize
5092 JUMP_LABEL for newly created jump.
5093
5094 2015-06-23 Tristan Gingold <gingold@adacore.com>
5095
5096 * collect-utils.c (collect_wait): Unlink the response file here
5097 instead of...
5098 (do_wait): ...here.
5099 (utils_cleanup): ...and here.
5100
5101 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5102
5103 * df-scan.c: Don't include target-def.h.
5104 * targhooks.c: Likewise.
5105 * config/arm/arm-c.c: Likewise.
5106 * config/i386/i386-c.c: Likewise.
5107 * config/nds32/nds32-cost.c: Likewise.
5108 * config/nds32/nds32-fp-as-gp.c: Likewise.
5109 * config/nds32/nds32-intrinsic.c: Likewise.
5110 * config/nds32/nds32-isr.c: Likewise.
5111 * config/nds32/nds32-md-auxiliary.c: Likewise.
5112 * config/nds32/nds32-memory-manipulation.c: Likewise.
5113 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5114 * config/nds32/nds32-predicates.c: Likewise.
5115
5116 2015-06-23 Richard Biener <rguenther@suse.de>
5117
5118 PR tree-optimization/66636
5119 * tree-vect-stmts.c (vectorizable_store): Properly compute the
5120 def type for further defs for strided stores.
5121
5122 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
5123
5124 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5125 conditional selects.
5126 (setcc_int<mode>, setcc_float<mode>): Reformat.
5127
5128 2015-06-23 Marek Polacek <polacek@redhat.com>
5129
5130 * match.pd ((x + y) - (x | y) -> x & y,
5131 (x + y) - (x & y) -> x | y): New patterns.
5132
5133 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5134
5135 PR 65711
5136 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5137 '-dynamic-linker' within %{!shared: ...}.
5138
5139 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5140
5141 PR target/66560
5142 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5143 (addsub_vs_operator): Ditto.
5144 (addsub_vs_parallel): Ditto.
5145 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5146 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5147 Put minus RTX before plus and adjust vec_merge selector.
5148 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5149 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5150 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5151 (addsub vec_merge splitters): New combiner splitters.
5152 (addsub vec_select/vec_concat splitters): Ditto.
5153
5154 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5155
5156 PR tree-optimization/66449
5157 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5158 POINTER_PLUS_EXPR for pointers.
5159
5160 2015-06-23 Alan Modra <amodra@gmail.com>
5161
5162 * rtlanal.c (commutative_operand_precedence): Correct comments.
5163 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5164 declaration. Return an int. Distinguish REG,REG return from
5165 others.
5166 (struct simplify_plus_minus_op_data): Make local to function.
5167 (simplify_plus_minus): Don't set canonicalized if merely sorting
5168 registers. Avoid packing ops if nothing changes. White space fixes.
5169
5170 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5171
5172 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5173 -fdump-ada-spec is passed but not if -fsyntax-only is.
5174
5175 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5176
5177 PR bootstrap/63740
5178 * lra-lives.c (process_bb_lives): Check insn copying the same
5179 reload pseudo and don't create a copy for it.
5180
5181 2015-06-22 Tom de Vries <tom@codesourcery.com>
5182
5183 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5184 for cond_stmt.
5185
5186 2015-06-22 Tom de Vries <tom@codesourcery.com>
5187
5188 * builtins.def (DEF_GOMP_BUILTIN): Test
5189 'flag_tree_parallelize_loops > 1' instead of
5190 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5191
5192 2015-06-22 Tom de Vries <tom@codesourcery.com>
5193
5194 * dominance.c (calculate_dominance_info): Verify dominators if
5195 early-out.
5196
5197 2015-06-22 Marek Polacek <polacek@redhat.com>
5198
5199 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5200 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5201 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5202 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5203
5204 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5205
5206 PR target/65871
5207 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5208 cost of embedded comparison.
5209
5210 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5211
5212 PR target/65914
5213 * config/rs6000/predicates.md (altivec_register_operand): Permit
5214 virtual stack registers.
5215 (vsx_register_operand): Likewise.
5216 (vfloat_operand): Likewise.
5217 (vint_operand): Likewise.
5218 (vlogical_operand): Likewise.
5219
5220 2015-06-22 Richard Biener <rguenther@suse.de>
5221
5222 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5223 and single_scalar_iteration_cost members.
5224 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5225 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5226 (vect_get_single_scalar_iteration_cost): Remove.
5227 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5228 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5229 * tree-vect-loop.c (destroy_loop_vec_info): Free
5230 scalar_cost_vec.
5231 (vect_get_single_scalar_iteration_cost): Compute result into
5232 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5233 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5234 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5235 (vect_estimate_min_profitable_iters): Use them.
5236
5237 2015-06-22 Christian Bruel <christian.bruel@st.com>
5238
5239 PR target/52144
5240 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5241 (TARGET_INSERT_ATTRIBUTES): Define.
5242 (thumb_flipper): New var.
5243 * config/arm/arm.opt (-mflip-thumb): New switch.
5244
5245 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5246 Martin Liska <mliska@suse.cz>
5247
5248 PR ipa/65908
5249 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5250 construction of arg_types.
5251 (sem_function::sem_function): Likewise.
5252 (sem_function::~sem_function): Remove destruction of arg_types.
5253 (sem_function::compatible_parm_types_p): New function.
5254 (sem_function::equals_wpa): Reorg matching of return values
5255 and parameter types.
5256 (sem_function::equals_private): Reorg mathcing of argument types.
5257 (sem_function::parse_tree_args): Remove.
5258 * ipa-icf.h (init_wpa): Do not call it.
5259 (parse_tree_args): Remove.
5260 (compatible_parm_types_p): Declare.
5261 (result_type): Remove.
5262 (arg_types): Remove.
5263
5264 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5265
5266 PR ipa/66351
5267 * ipa-polymorphic-call.c
5268 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5269 initializing alias oracle; fix formating; set base_alias_set if it
5270 is known.
5271
5272 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5273
5274 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5275 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5276 (find_inc): Likewise.
5277 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5278 swapping.
5279 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5280 * df-scan.c (df_swap_refs): Remove.
5281 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5282 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5283 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5284 * fold-const.c (fold_relational_const): Likewise.
5285 * genattrtab.c (simplify_test_exp): Likewise.
5286 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5287 gimple_simplify): Likewise.
5288 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5289 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5290 * ipa-devirt.c (add_type_duplicate): Likewise.
5291 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5292 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5293 * lra.c (lra_create_copy): Likewise.
5294 * lto-streamer-out.c (DFS::DFS): Likewise.
5295 * modulo-sched.c (get_sched_window): Likewise.
5296 * omega.c (omega_pretty_print_problem): Likewise.
5297 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5298 * reload1.c (reloads_unique_chain_p): Likewise.
5299 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5300 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5301 use std::swap.
5302 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5303 manually swapping.
5304 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5305 predicate_mem_writes): Likewise.
5306 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5307 * tree-predcom.c (combine_chains): Likewise.
5308 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5309 refs_may_alias_p_1): Likewise.
5310 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5311 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5312 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5313 number_of_iterations_cond): Likewise.
5314 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5315 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5316 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5317 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5318 * tree-vrp.c (extract_range_from_binary_expr_1,
5319 extract_range_from_unary_expr_1): Likewise.
5320
5321 2015-06-20 Marek Polacek <polacek@redhat.com>
5322
5323 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5324
5325 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5326
5327 PR target/66591
5328 * config/sh/sh.c (prepare_move_operands): Replace subreg
5329 index term with R0 for base and index addressing.
5330
5331 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5332
5333 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5334 op1 is an fp zero.
5335 (movsf_aarch64): Change condition from register_operand to
5336 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5337 load1. Change type for alternative 7 to store1.
5338 (movdf_aarch64): Likewise.
5339
5340 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5341
5342 * config/vax/vax.md: Adjust sign/zero extend patterns to
5343 handle SUBREGs in operands[1].
5344
5345 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5346
5347 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5348 of manually swapping.
5349 (expand_vec_perm_interleave2): Likewise.
5350
5351 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5352
5353 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5354 reuse bounds created for abnormal ssa names.
5355
5356 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5357
5358 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5359 (allocate_stack_<mode>): ... this, and add :P on both
5360 match_operand and unspec.
5361 (allocate_stack): New expander.
5362
5363 2015-06-19 Christian Bruel <christian.bruel@st.com>
5364
5365 PR target/66541
5366 PR target/52144
5367 * config/arm/arm.c (arm_set_current_function): Handle
5368 explicit default options.
5369
5370 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5371
5372 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5373 (zero-extended cmove with mem peephole2): New pattern.
5374 (cmove with mem peephole2): Merge patterns.
5375
5376 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5377
5378 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5379
5380 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5381
5382 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5383 * config/mips/mips.md (*madd4<mode>): Ditto.
5384 (*nmadd3<mode>) Ditto.
5385 (*nmadd4<mode>_fastmath): Ditto.
5386 (*nmadd3<mode>_fastmath): Ditto.
5387 (*nmsub4<mode>): Ditto.
5388 (*nmsub3<mode>): Ditto.
5389 (*nmsub4<mode>_fastmath): Ditto.
5390 (*nmsub3<mode>_fastmath): Ditto.
5391
5392 2015-06-18 Michael Matz <matz@suse.de>
5393
5394 PR middle-end/66253
5395 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5396 grouped strided stores.
5397 (vectorizable_load): Don't use the DR from first_stmt in
5398 the non-SLP grouped strided case.
5399
5400 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5401
5402 PR target/66569
5403 * function.c (assign_bounds): Add arguments assign_regs,
5404 assign_special, assign_bt.
5405 (assign_parms): For vararg functions handle bounds in BT
5406 and special slots after incoming vararg bounds.
5407
5408 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5409
5410 PR middle-end/66568
5411 * cfgexpand.c (expand_return): Handle missing bounds.
5412 (expand_gimple_stmt_1): Likewise.
5413 * tree-chkp.c (chkp_expand_zero_bounds): New.
5414 * tree-chkp.h (chkp_expand_zero_bounds): New.
5415
5416 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5417
5418 PR middle-end/66567
5419 * ipa-chkp.c (chkp_maybe_create_clone): Require
5420 functions to be instrumentable.
5421 * tree-chkp.c (chkp_replace_function_pointer): Use
5422 chkp_instrumentable_p instead of attribute check.
5423
5424 2015-06-18 Richard Biener <rguenther@suse.de>
5425
5426 PR tree-optimization/66510
5427 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5428 number of vector loads for SLP permuted loads.
5429 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5430 check the stride for loop vectorization.
5431 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5432 vectorization factor.
5433 (vect_analyze_group_access): If the group size is not a power
5434 of two require a epilogue loop.
5435 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5436 compute and optimizing and alias test pruning after final
5437 vectorization factor computation.
5438 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5439 vector alignment.
5440 (vect_transform_slp_perm_load): Properly compute the original
5441 number of vector load stmts.
5442
5443 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5444
5445 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5446 "unlikely character , in @var" warning.
5447
5448 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5449
5450 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5451 (ix86_function_arg_advance): Ditto.
5452 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5453
5454 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5455
5456 * function.h (struct rtl_data): Remove struct and accessor macros.
5457 * emit-rtl.h (struct rtl_data): Relocate to here.
5458 * Makefile.in (GTFILES): Add emit-rtl.h.
5459 * df-core.c: Include emit-rtl.h.
5460 * genattrtab.c: Likewise.
5461 * genconditions.c: Likewise.
5462 * genpreds.c: Likewise.
5463 * genrecog.c: Likewise.
5464 * regcprop.c: Likewise.
5465 * resource.c: Likewise.
5466 * sched-rgn.c: Likewise.
5467 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5468 * config/i386/winnt.c: Likewise.
5469
5470 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5471
5472 PR middle-end/66429
5473 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5474 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5475 and has_force_vectorize_loops flags from cfun into
5476 child_cfun.
5477 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5478 if simduid is non-NULL.
5479 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5480 * passes.def (pass_simduid_cleanup): Add new pass after loop
5481 passes.
5482 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5483 indirection from htab argument's type.
5484 (shrink_simd_arrays): New function.
5485 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5486 Don't call adjust_simduid_builtins if there are no loops.
5487 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5488 (pass_simduid_cleanup::execute): New method.
5489 (make_pass_simduid_cleanup): New function.
5490
5491 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5492
5493 * tree-core.h (tree_target_option): Make opts field a pointer to a
5494 cl_target_option instead of an instance of the struct.
5495 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5496 the structure.
5497 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5498 TARGET_OPTION_NODE.
5499 (copy_node_stat): Allocate and copy struct cl_target_option.
5500
5501 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5502
5503 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5504 Remove conditional exposure of prototypes.
5505 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5506 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5507 definitions in tree.h with functions.
5508 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5509 anon_aggrname_p.
5510 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5511
5512 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5513
5514 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5515 (*cmp<mode>_signed): ... this.
5516 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5517 (*cmp<mode>_unsigned): ... this. Remove %b.
5518
5519 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5520
5521 * coretypes.h: Include input.h and as-a.h.
5522 * rtl.h: Include input.h and as-a.h for generator files.
5523 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5524 * vec.c: Don't include diagnostic-core.h.
5525 * alias.c: Do not include input.h, line-map.h or is-a.h.
5526 * asan.c: Likewise.
5527 * attribs.c: Likewise.
5528 * auto-inc-dec.c: Likewise.
5529 * auto-profile.c: Likewise.
5530 * bb-reorder.c: Likewise.
5531 * bt-load.c: Likewise.
5532 * builtins.c: Likewise.
5533 * caller-save.c: Likewise.
5534 * calls.c: Likewise.
5535 * ccmp.c: Likewise.
5536 * cfg.c: Likewise.
5537 * cfganal.c: Likewise.
5538 * cfgbuild.c: Likewise.
5539 * cfgcleanup.c: Likewise.
5540 * cfgexpand.c: Likewise.
5541 * cfghooks.c: Likewise.
5542 * cfgloop.c: Likewise.
5543 * cfgloop.h: Likewise.
5544 * cfgloopanal.c: Likewise.
5545 * cfgloopmanip.c: Likewise.
5546 * cfgrtl.c: Likewise.
5547 * cgraph.c: Likewise.
5548 * cgraphbuild.c: Likewise.
5549 * cgraphclones.c: Likewise.
5550 * cgraphunit.c: Likewise.
5551 * cilk-common.c: Likewise.
5552 * combine-stack-adj.c: Likewise.
5553 * combine.c: Likewise.
5554 * compare-elim.c: Likewise.
5555 * convert.c: Likewise.
5556 * coverage.c: Likewise.
5557 * cppbuiltin.c: Likewise.
5558 * cprop.c: Likewise.
5559 * cse.c: Likewise.
5560 * cselib.c: Likewise.
5561 * data-streamer-in.c: Likewise.
5562 * data-streamer-out.c: Likewise.
5563 * data-streamer.c: Likewise.
5564 * dbxout.c: Likewise.
5565 * dce.c: Likewise.
5566 * ddg.c: Likewise.
5567 * debug.c: Likewise.
5568 * df-core.c: Likewise.
5569 * df-problems.c: Likewise.
5570 * df-scan.c: Likewise.
5571 * df.h: Likewise.
5572 * dfp.c: Likewise.
5573 * diagnostic-core.h: Likewise.
5574 * diagnostic.c: Likewise.
5575 * dojump.c: Likewise.
5576 * dominance.c: Likewise.
5577 * domwalk.c: Likewise.
5578 * double-int.c: Likewise.
5579 * dse.c: Likewise.
5580 * dumpfile.c: Likewise.
5581 * dumpfile.h: Likewise.
5582 * dwarf2asm.c: Likewise.
5583 * dwarf2cfi.c: Likewise.
5584 * dwarf2out.c: Likewise.
5585 * emit-rtl.c: Likewise.
5586 * et-forest.c: Likewise.
5587 * except.c: Likewise.
5588 * explow.c: Likewise.
5589 * expmed.c: Likewise.
5590 * expr.c: Likewise.
5591 * final.c: Likewise.
5592 * fixed-value.c: Likewise.
5593 * fold-const.c: Likewise.
5594 * function.c: Likewise.
5595 * fwprop.c: Likewise.
5596 * gcc-plugin.h: Likewise.
5597 * gcse.c: Likewise.
5598 * generic-match-head.c: Likewise.
5599 * ggc-page.c: Likewise.
5600 * gimple-builder.c: Likewise.
5601 * gimple-expr.c: Likewise.
5602 * gimple-fold.c: Likewise.
5603 * gimple-iterator.c: Likewise.
5604 * gimple-low.c: Likewise.
5605 * gimple-match-head.c: Likewise.
5606 * gimple-pretty-print.c: Likewise.
5607 * gimple-ssa-isolate-paths.c: Likewise.
5608 * gimple-ssa-strength-reduction.c: Likewise.
5609 * gimple-streamer-in.c: Likewise.
5610 * gimple-streamer-out.c: Likewise.
5611 * gimple-streamer.h: Likewise.
5612 * gimple-walk.c: Likewise.
5613 * gimple.c: Likewise.
5614 * gimplify-me.c: Likewise.
5615 * gimplify.c: Likewise.
5616 * godump.c: Likewise.
5617 * graph.c: Likewise.
5618 * graphite-blocking.c: Likewise.
5619 * graphite-dependences.c: Likewise.
5620 * graphite-interchange.c: Likewise.
5621 * graphite-isl-ast-to-gimple.c: Likewise.
5622 * graphite-optimize-isl.c: Likewise.
5623 * graphite-poly.c: Likewise.
5624 * graphite-scop-detection.c: Likewise.
5625 * graphite-sese-to-poly.c: Likewise.
5626 * graphite.c: Likewise.
5627 * haifa-sched.c: Likewise.
5628 * hw-doloop.c: Likewise.
5629 * ifcvt.c: Likewise.
5630 * init-regs.c: Likewise.
5631 * input.c: Likewise.
5632 * internal-fn.c: Likewise.
5633 * ipa-chkp.c: Likewise.
5634 * ipa-comdats.c: Likewise.
5635 * ipa-cp.c: Likewise.
5636 * ipa-devirt.c: Likewise.
5637 * ipa-icf-gimple.c: Likewise.
5638 * ipa-icf.c: Likewise.
5639 * ipa-inline-analysis.c: Likewise.
5640 * ipa-inline-transform.c: Likewise.
5641 * ipa-inline.c: Likewise.
5642 * ipa-polymorphic-call.c: Likewise.
5643 * ipa-profile.c: Likewise.
5644 * ipa-prop.c: Likewise.
5645 * ipa-pure-const.c: Likewise.
5646 * ipa-ref.c: Likewise.
5647 * ipa-reference.c: Likewise.
5648 * ipa-split.c: Likewise.
5649 * ipa-utils.c: Likewise.
5650 * ipa-visibility.c: Likewise.
5651 * ipa.c: Likewise.
5652 * ira-build.c: Likewise.
5653 * ira-color.c: Likewise.
5654 * ira-conflicts.c: Likewise.
5655 * ira-costs.c: Likewise.
5656 * ira-emit.c: Likewise.
5657 * ira-lives.c: Likewise.
5658 * ira.c: Likewise.
5659 * jump.c: Likewise.
5660 * langhooks.c: Likewise.
5661 * lcm.c: Likewise.
5662 * loop-doloop.c: Likewise.
5663 * loop-init.c: Likewise.
5664 * loop-invariant.c: Likewise.
5665 * loop-iv.c: Likewise.
5666 * loop-unroll.c: Likewise.
5667 * lower-subreg.c: Likewise.
5668 * lra-assigns.c: Likewise.
5669 * lra-coalesce.c: Likewise.
5670 * lra-constraints.c: Likewise.
5671 * lra-eliminations.c: Likewise.
5672 * lra-lives.c: Likewise.
5673 * lra-remat.c: Likewise.
5674 * lra-spills.c: Likewise.
5675 * lra.c: Likewise.
5676 * lto-cgraph.c: Likewise.
5677 * lto-compress.c: Likewise.
5678 * lto-opts.c: Likewise.
5679 * lto-section-in.c: Likewise.
5680 * lto-section-out.c: Likewise.
5681 * lto-streamer-in.c: Likewise.
5682 * lto-streamer-out.c: Likewise.
5683 * lto-streamer.c: Likewise.
5684 * mcf.c: Likewise.
5685 * mode-switching.c: Likewise.
5686 * modulo-sched.c: Likewise.
5687 * omega.c: Likewise.
5688 * omp-low.c: Likewise.
5689 * optabs.c: Likewise.
5690 * opts-global.c: Likewise.
5691 * opts.h: Likewise.
5692 * passes.c: Likewise.
5693 * plugin.c: Likewise.
5694 * postreload-gcse.c: Likewise.
5695 * postreload.c: Likewise.
5696 * predict.c: Likewise.
5697 * pretty-print.h: Likewise.
5698 * print-rtl.c: Likewise.
5699 * print-tree.c: Likewise.
5700 * profile.c: Likewise.
5701 * real.c: Likewise.
5702 * realmpfr.c: Likewise.
5703 * recog.c: Likewise.
5704 * ree.c: Likewise.
5705 * reg-stack.c: Likewise.
5706 * regcprop.c: Likewise.
5707 * reginfo.c: Likewise.
5708 * regrename.c: Likewise.
5709 * regstat.c: Likewise.
5710 * reload.c: Likewise.
5711 * reload1.c: Likewise.
5712 * reorg.c: Likewise.
5713 * resource.c: Likewise.
5714 * rtl-chkp.c: Likewise.
5715 * rtl-error.c: Likewise.
5716 * rtlanal.c: Likewise.
5717 * rtlhooks.c: Likewise.
5718 * sanopt.c: Likewise.
5719 * sched-deps.c: Likewise.
5720 * sched-ebb.c: Likewise.
5721 * sched-rgn.c: Likewise.
5722 * sched-vis.c: Likewise.
5723 * sdbout.c: Likewise.
5724 * sel-sched-dump.c: Likewise.
5725 * sel-sched-ir.c: Likewise.
5726 * sel-sched.c: Likewise.
5727 * sese.c: Likewise.
5728 * shrink-wrap.c: Likewise.
5729 * simplify-rtx.c: Likewise.
5730 * stack-ptr-mod.c: Likewise.
5731 * statistics.c: Likewise.
5732 * stmt.c: Likewise.
5733 * stor-layout.c: Likewise.
5734 * store-motion.c: Likewise.
5735 * streamer-hooks.c: Likewise.
5736 * stringpool.c: Likewise.
5737 * symtab.c: Likewise.
5738 * target-globals.c: Likewise.
5739 * targhooks.c: Likewise.
5740 * toplev.c: Likewise.
5741 * tracer.c: Likewise.
5742 * trans-mem.c: Likewise.
5743 * tree-affine.c: Likewise.
5744 * tree-browser.c: Likewise.
5745 * tree-call-cdce.c: Likewise.
5746 * tree-cfg.c: Likewise.
5747 * tree-cfgcleanup.c: Likewise.
5748 * tree-chkp-opt.c: Likewise.
5749 * tree-chkp.c: Likewise.
5750 * tree-chrec.c: Likewise.
5751 * tree-complex.c: Likewise.
5752 * tree-data-ref.c: Likewise.
5753 * tree-dfa.c: Likewise.
5754 * tree-diagnostic.c: Likewise.
5755 * tree-dump.c: Likewise.
5756 * tree-eh.c: Likewise.
5757 * tree-emutls.c: Likewise.
5758 * tree-if-conv.c: Likewise.
5759 * tree-inline.c: Likewise.
5760 * tree-into-ssa.c: Likewise.
5761 * tree-iterator.c: Likewise.
5762 * tree-loop-distribution.c: Likewise.
5763 * tree-nested.c: Likewise.
5764 * tree-nrv.c: Likewise.
5765 * tree-object-size.c: Likewise.
5766 * tree-outof-ssa.c: Likewise.
5767 * tree-parloops.c: Likewise.
5768 * tree-phinodes.c: Likewise.
5769 * tree-predcom.c: Likewise.
5770 * tree-pretty-print.c: Likewise.
5771 * tree-profile.c: Likewise.
5772 * tree-scalar-evolution.c: Likewise.
5773 * tree-sra.c: Likewise.
5774 * tree-ssa-address.c: Likewise.
5775 * tree-ssa-alias.c: Likewise.
5776 * tree-ssa-ccp.c: Likewise.
5777 * tree-ssa-coalesce.c: Likewise.
5778 * tree-ssa-copy.c: Likewise.
5779 * tree-ssa-copyrename.c: Likewise.
5780 * tree-ssa-dce.c: Likewise.
5781 * tree-ssa-dom.c: Likewise.
5782 * tree-ssa-dse.c: Likewise.
5783 * tree-ssa-forwprop.c: Likewise.
5784 * tree-ssa-ifcombine.c: Likewise.
5785 * tree-ssa-live.c: Likewise.
5786 * tree-ssa-loop-ch.c: Likewise.
5787 * tree-ssa-loop-im.c: Likewise.
5788 * tree-ssa-loop-ivcanon.c: Likewise.
5789 * tree-ssa-loop-ivopts.c: Likewise.
5790 * tree-ssa-loop-manip.c: Likewise.
5791 * tree-ssa-loop-niter.c: Likewise.
5792 * tree-ssa-loop-prefetch.c: Likewise.
5793 * tree-ssa-loop-unswitch.c: Likewise.
5794 * tree-ssa-loop.c: Likewise.
5795 * tree-ssa-math-opts.c: Likewise.
5796 * tree-ssa-operands.c: Likewise.
5797 * tree-ssa-phiopt.c: Likewise.
5798 * tree-ssa-phiprop.c: Likewise.
5799 * tree-ssa-pre.c: Likewise.
5800 * tree-ssa-propagate.c: Likewise.
5801 * tree-ssa-reassoc.c: Likewise.
5802 * tree-ssa-sccvn.c: Likewise.
5803 * tree-ssa-scopedtables.c: Likewise.
5804 * tree-ssa-sink.c: Likewise.
5805 * tree-ssa-strlen.c: Likewise.
5806 * tree-ssa-structalias.c: Likewise.
5807 * tree-ssa-tail-merge.c: Likewise.
5808 * tree-ssa-ter.c: Likewise.
5809 * tree-ssa-threadedge.c: Likewise.
5810 * tree-ssa-threadupdate.c: Likewise.
5811 * tree-ssa-uncprop.c: Likewise.
5812 * tree-ssa-uninit.c: Likewise.
5813 * tree-ssa.c: Likewise.
5814 * tree-ssanames.c: Likewise.
5815 * tree-stdarg.c: Likewise.
5816 * tree-streamer-in.c: Likewise.
5817 * tree-streamer-out.c: Likewise.
5818 * tree-streamer.c: Likewise.
5819 * tree-switch-conversion.c: Likewise.
5820 * tree-tailcall.c: Likewise.
5821 * tree-vect-data-refs.c: Likewise.
5822 * tree-vect-generic.c: Likewise.
5823 * tree-vect-loop-manip.c: Likewise.
5824 * tree-vect-loop.c: Likewise.
5825 * tree-vect-patterns.c: Likewise.
5826 * tree-vect-slp.c: Likewise.
5827 * tree-vect-stmts.c: Likewise.
5828 * tree-vectorizer.c: Likewise.
5829 * tree-vrp.c: Likewise.
5830 * tree.c: Likewise.
5831 * tsan.c: Likewise.
5832 * ubsan.c: Likewise.
5833 * valtrack.c: Likewise.
5834 * value-prof.c: Likewise.
5835 * var-tracking.c: Likewise.
5836 * varasm.c: Likewise.
5837 * varpool.c: Likewise.
5838 * vmsdbgout.c: Likewise.
5839 * vtable-verify.c: Likewise.
5840 * web.c: Likewise.
5841 * wide-int.cc: Likewise.
5842 * xcoffout.c: Likewise.
5843 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5844 * common/common-targhooks.c: Likewise.
5845 * config/aarch64/aarch64-builtins.c: Likewise.
5846 * config/aarch64/aarch64.c: Likewise.
5847 * config/alpha/alpha.c: Likewise.
5848 * config/arc/arc.c: Likewise.
5849 * config/arm/aarch-common.c: Likewise.
5850 * config/arm/arm-builtins.c: Likewise.
5851 * config/arm/arm-c.c: Likewise.
5852 * config/arm/arm.c: Likewise.
5853 * config/avr/avr-c.c: Likewise.
5854 * config/avr/avr-log.c: Likewise.
5855 * config/avr/avr.c: Likewise.
5856 * config/bfin/bfin.c: Likewise.
5857 * config/c6x/c6x.c: Likewise.
5858 * config/cr16/cr16.c: Likewise.
5859 * config/cris/cris.c: Likewise.
5860 * config/darwin-c.c: Likewise.
5861 * config/darwin.c: Likewise.
5862 * config/default-c.c: Likewise.
5863 * config/epiphany/epiphany.c: Likewise.
5864 * config/epiphany/mode-switch-use.c: Likewise.
5865 * config/epiphany/resolve-sw-modes.c: Likewise.
5866 * config/fr30/fr30.c: Likewise.
5867 * config/frv/frv.c: Likewise.
5868 * config/ft32/ft32.c: Likewise.
5869 * config/glibc-c.c: Likewise.
5870 * config/h8300/h8300.c: Likewise.
5871 * config/i386/i386-c.c: Likewise.
5872 * config/i386/i386.c: Likewise.
5873 * config/i386/msformat-c.c: Likewise.
5874 * config/i386/winnt-cxx.c: Likewise.
5875 * config/i386/winnt-stubs.c: Likewise.
5876 * config/i386/winnt.c: Likewise.
5877 * config/ia64/ia64-c.c: Likewise.
5878 * config/ia64/ia64.c: Likewise.
5879 * config/iq2000/iq2000.c: Likewise.
5880 * config/lm32/lm32.c: Likewise.
5881 * config/m32c/m32c-pragma.c: Likewise.
5882 * config/m32c/m32c.c: Likewise.
5883 * config/m32r/m32r.c: Likewise.
5884 * config/m68k/m68k.c: Likewise.
5885 * config/mcore/mcore.c: Likewise.
5886 * config/mep/mep-pragma.c: Likewise.
5887 * config/mep/mep.c: Likewise.
5888 * config/microblaze/microblaze-c.c: Likewise.
5889 * config/microblaze/microblaze.c: Likewise.
5890 * config/mips/mips.c: Likewise.
5891 * config/mmix/mmix.c: Likewise.
5892 * config/mn10300/mn10300.c: Likewise.
5893 * config/moxie/moxie.c: Likewise.
5894 * config/msp430/msp430-c.c: Likewise.
5895 * config/msp430/msp430.c: Likewise.
5896 * config/nds32/nds32-cost.c: Likewise.
5897 * config/nds32/nds32-fp-as-gp.c: Likewise.
5898 * config/nds32/nds32-intrinsic.c: Likewise.
5899 * config/nds32/nds32-isr.c: Likewise.
5900 * config/nds32/nds32-md-auxiliary.c: Likewise.
5901 * config/nds32/nds32-memory-manipulation.c: Likewise.
5902 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5903 * config/nds32/nds32-predicates.c: Likewise.
5904 * config/nds32/nds32.c: Likewise.
5905 * config/nios2/nios2.c: Likewise.
5906 * config/nvptx/nvptx.c: Likewise.
5907 * config/pa/pa.c: Likewise.
5908 * config/pdp11/pdp11.c: Likewise.
5909 * config/rl78/rl78-c.c: Likewise.
5910 * config/rl78/rl78.c: Likewise.
5911 * config/rs6000/rs6000-c.c: Likewise.
5912 * config/rs6000/rs6000.c: Likewise.
5913 * config/rx/rx.c: Likewise.
5914 * config/s390/s390-c.c: Likewise.
5915 * config/s390/s390.c: Likewise.
5916 * config/sh/sh-c.c: Likewise.
5917 * config/sh/sh-mem.cc: Likewise.
5918 * config/sh/sh.c: Likewise.
5919 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5920 * config/sh/sh_treg_combine.cc: Likewise.
5921 * config/sol2-c.c: Likewise.
5922 * config/sol2-cxx.c: Likewise.
5923 * config/sol2-stubs.c: Likewise.
5924 * config/sol2.c: Likewise.
5925 * config/sparc/sparc-c.c: Likewise.
5926 * config/sparc/sparc.c: Likewise.
5927 * config/spu/spu-c.c: Likewise.
5928 * config/spu/spu.c: Likewise.
5929 * config/stormy16/stormy16.c: Likewise.
5930 * config/tilegx/mul-tables.c: Likewise.
5931 * config/tilegx/tilegx-c.c: Likewise.
5932 * config/tilegx/tilegx.c: Likewise.
5933 * config/tilepro/mul-tables.c: Likewise.
5934 * config/tilepro/tilepro-c.c: Likewise.
5935 * config/tilepro/tilepro.c: Likewise.
5936 * config/v850/v850-c.c: Likewise.
5937 * config/v850/v850.c: Likewise.
5938 * config/vax/vax.c: Likewise.
5939 * config/visium/visium.c: Likewise.
5940 * config/vms/vms-c.c: Likewise.
5941 * config/vms/vms.c: Likewise.
5942 * config/vxworks.c: Likewise.
5943 * config/winnt-c.c: Likewise.
5944 * config/xtensa/xtensa.c: Likewise.
5945
5946 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
5947
5948 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
5949 function.
5950 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
5951
5952 2015-06-17 Richard Biener <rguenther@suse.de>
5953
5954 PR tree-optimization/66251
5955 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
5956 stmts for SLP strided stores.
5957
5958 Revert
5959 2015-05-22 Richard Biener <rguenther@suse.de>
5960
5961 PR tree-optimization/66251
5962 * tree-vect-stmts.c (vectorizable_conversion): Properly
5963 set STMT_VINFO_VEC_STMT even for the SLP case.
5964
5965 2015-05-26 Michael Matz <matz@suse.de>
5966
5967 PR middle-end/66251
5968 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
5969 STMT_VINFO_VEC_STMT, also with SLP.
5970
5971 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
5972
5973 PR target/56766
5974 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
5975 (*avx_addsubv4df3_1s): Ditto.
5976 (*sse3_addsubv2df3_1): Ditto.
5977 (*sse3_addsubv2df3_1s): Ditto.
5978 (*avx_addsubv8sf3_1): Ditto.
5979 (*avx_addsubv8sf3_1s): Ditto.
5980 (*sse3_addsubv4sf3_1): Ditto.
5981 (*sse3_addsubv4sf3_1s): Ditto.
5982
5983 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
5984
5985 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
5986 (SYSROOT_SUFFIX_SPEC): Update.
5987 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
5988 (STARTFILE_PREFIX_SPEC): Update.
5989 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
5990 (MULTILIB_REQUIRED): New.
5991 (MULTILIB_OSDIRNAMES): New.
5992 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
5993 (MULTILIB_REQUIRED): New.
5994 (MULTILIB_OSDIRNAMES): New.
5995
5996 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
5997
5998 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
5999 * config/aarch64/aarch64-options-extensions.def: Update "fP",
6000 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
6001 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6002 (AARCH64_FL_PAN): New.
6003 (AARCH64_FL_LOR): New.
6004 (AARCH64_FL_RDMA): New.
6005 (AARCH64_FL_FOR_ARCH8_1): New.
6006 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6007 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6008
6009 2015-06-16 Martin Liska <mliska@suse.cz>
6010
6011 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6012 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6013 guard.
6014
6015 2015-06-16 Richard Biener <rguenther@suse.de>
6016
6017 * tree-vect-stmts.c (vectorizable_store): Adjust.
6018 (vectorizable_load): Likewise.
6019 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6020 Simplify.
6021 (vect_create_data_ref_ptr): Likewise.
6022 (bump_vector_ptr): Adjust.
6023
6024 2015-06-16 Richard Biener <rguenther@suse.de>
6025
6026 * tree-vect-stmts.c (vectorizable_load): Properly start loads
6027 with the first element if this is grouped loads.
6028
6029 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
6030
6031 * config/arm/arm-protos.h (struct tune_params): Rename
6032 log_op_non_sc to log_op_non_short_circuit, and rename enum
6033 values to expand SC to SHORT_CIRCUIT.
6034 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6035 to LOG_OP_NON_SHORT_CIRCUIT.
6036 (arm_fastmul_tune):Likewise
6037 (arm_strongarm_tune): Likewise.
6038 (arm_xscale_tune): Likewise.
6039 (arm_9e_tune): Likewise.
6040 (arm_marvell_pj4_tune): Likewise.
6041 (arm_v6t2_tune): Likewise.
6042 (arm_cortex_tune): Likewise.
6043 (arm_cortex_a8_tune): Likewise.
6044 (arm_cortex_a7_tune): Likewise.
6045 (arm_cortex_a15_tune): Likewise.
6046 (arm_cortex_a53_tune): Likewise.
6047 (arm_cortex_a57_tune): Likewise.
6048 (arm_xgene1_tune): Likewise.
6049 (arm_cortex_a5_tune): Likewise.
6050 (arm_cortex_a9_tune): Likewise.
6051 (arm_cortex_a12_tune): Likewise.
6052 (arm_v7m_tune): Likewise.
6053 (arm_cortex_m7_tune): Likewise.
6054 (arm_v6m_tune): Likewise.
6055 (arm_fa726te_tune): Likewise.
6056
6057 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
6058
6059 * altivec.md: Delete UNSPEC_VMLADDUHM.
6060 (mulv4si3_p8): New pattern.
6061 (mulv4si3): Use it for POWER8.
6062 (mulv8hi3): Use vmladduhm with zero addend.
6063 (altivec_vmladduhm): Descriptive RTL.
6064
6065 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
6066
6067 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6068 to use neon_move instead of mov_imm.
6069 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6070 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6071
6072 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6073 aarch64_float_const_zero_rtx_p check before TFmode check.
6074 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6075 an fp zero.
6076 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
6077 code and attributes to match. Change condition from register_operand
6078 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
6079 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
6080 to store2.
6081
6082 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
6083
6084 PR debug/66535
6085 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6086 there is no parent.
6087
6088 2015-06-14 Shiva Chen <shiva0217@gmail.com>
6089
6090 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6091 HOST_WIDE_INT parameter.
6092
6093 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
6094
6095 PR ipa/66181
6096 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6097 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6098 TYPE_NO_FORCE_BLK.
6099 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6100
6101 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
6102
6103 * rtl.h (classify_insn): Declare.
6104 * emit-rtl.c (classify_insn): Move to...
6105 * rtl.c: ...here and add generator support.
6106 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6107 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6108 * genemit.c (gen_emit_seq): New function.
6109 (gen_expand, gen_split): Use it.
6110
6111 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
6112
6113 * tree.c (make_vector_stat): Fix comment to state that the
6114 function returns a VECTOR_CST.
6115
6116 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
6117
6118 * gensupport.h (add_implicit_parallel): Declare.
6119 * genrecog.c (add_implicit_parallel): Move to...
6120 * gensupport.c (add_implicit_parallel): ...here.
6121 (process_one_cond_exec): Use it.
6122 * genemit.c (gen_insn): Likewise.
6123
6124 2015-06-13 Iain Sandoe <iain@codesourcery.com>
6125
6126 PR bootstrap/66448
6127 * passes.c (rest_of_decl_compilation): Do not register globals for
6128 early debug if they are declared in built-ins.
6129
6130 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
6131
6132 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6133
6134 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6135
6136 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6137 manually swapping.
6138 (noce_try_cmove_arith): Likewise.
6139 (noce_get_alt_condition): Likewise.
6140
6141 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6142
6143 * common/config/i386/i386-common.c
6144 (OPTION_MASK_ISA_MWAITX_SET): New.
6145 (ix86_handle_option): Handle mwaitx.
6146 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6147 (x86_64-*-*): Likewise.
6148 * config/i386/mwaitxintrin.h: New header.
6149 * config/i386/cpuid.h (bit_MWAITX): Define.
6150 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6151 MWAITX support.
6152 * config/i386/i386.opt (mwaitx): New.
6153 * config/i386/i386-builtin-types.def
6154 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6155 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6156 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6157 (PTA_MWAITX): New.
6158 (ix86_option_override_internal): Handle new option.
6159 (processor_alias_table): Added PTA_MWAITX.
6160 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6161 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6162 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6163 IX86_BUILTIN_MONITORX built-ins.
6164 * config/i386/i386.h (TARGET_MWAITX): New.
6165 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6166 UNSPEC_MONITORX.
6167 (mwaitx): New pattern.
6168 (monitorx_<mode>): New pattern.
6169 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6170 * doc/extend.texi: Document monitorx and mwaitx builtins.
6171 * doc/invoke.texi: Document -mmwaitx option.
6172
6173 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6174
6175 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6176 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6177
6178 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6179
6180 * dbxout.c (xcoff_debug_hooks): Provide a function for
6181 register_main_translation_unit hook.
6182
6183 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6184
6185 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6186 variants cases from switch.
6187 (rs6000_post_atomic_barrier): Same.
6188 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6189 (rs6000_expand_atomic_exchange): Same.
6190 (rs6000_expand_atomic_op): Same.
6191 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6192 SYNC variants cases from switch.
6193 (atomic_load): Same.
6194 (atomic_store): Same.
6195
6196 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6197
6198 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6199 CONST_INT for goto.
6200
6201 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6202
6203 PR bootstrap/66448
6204 * dwarf2out.c (check_die): Check for common duplicate attributes.
6205 (add_location_or_const_value_attribute): Do not add duplicate
6206 attributes.
6207 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6208 time around.
6209 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6210 (gen_type_die_with_usage): Call check_die.
6211 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6212
6213 2015-06-11 Jason Merrill <jason@redhat.com>
6214
6215 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6216 dies.
6217
6218 2015-06-11 Marek Polacek <polacek@redhat.com>
6219
6220 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6221
6222 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6223
6224 PR bootstrap/66252
6225 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6226 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6227 (*addx_extend_sp32): Fix pasto.
6228 (*subx_extend): Rename into...
6229 (*subx_extend_sp32): ...this.
6230 (*adddi3_extend_sp32): Add earlyclobber.
6231 (*subdi3_insn_sp32): Likewise.
6232 (*subdi3_extend_sp32): Likewise.
6233 (*and_not_di_sp32): Likewise.
6234 (*or_not_di_sp32): Likewise.
6235 (*xor_not_di_sp32): Likewise.
6236 (*negdi2_sp32): Likewise.
6237 (*one_cmpldi2_sp32): Likewise.
6238
6239 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6240
6241 * debug.h (struct gcc_debug_hooks): Add a
6242 register_main_translation_unit hook.
6243 * debug.c (do_nothing_debug_hooks): Provide a function for this
6244 new hook.
6245 * dbxout.c (dbx_debug_hooks): Likewise.
6246 * sdbout.c (sdb_debug_hooks): Likewise.
6247 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6248 * dwarf2out.c (main_translation_unit): New global variable.
6249 (dwarf2out_register_main_translation_unit): New function
6250 implementing the new hook.
6251 (dwarf2_debug_hooks): Assign
6252 dwarf2out_register_main_translation_unit to this new hook.
6253 (dwarf2out_init): Associate any main translation unit to
6254 comp_unit_die ().
6255
6256 2015-06-11 Marek Polacek <polacek@redhat.com>
6257
6258 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6259
6260 2015-06-11 Marek Polacek <polacek@redhat.com>
6261
6262 * match.pd: Use single_use throughout.
6263
6264 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6265
6266 * config/arm/arm.c (arm_option_params_internal): When optimising
6267 for speed set max_insns_skipped when arm_restrict_it.
6268
6269 2015-06-11 Christian Bruel <christian.bruel@st.com>
6270
6271 PR target/52144
6272 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6273 macros in ...
6274 (arm_cpu_builtins): New function.
6275 (arm_pragma_target_parse): Call arm_cpu_builtins.
6276 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6277 (arm_register_target_pragmas): Likewise.
6278 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6279 Call arm_register_target_pragmas.
6280 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6281 (arm_pragma_target_parse): Likewise.
6282
6283 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6284
6285 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6286 of the second operand.
6287
6288 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6289
6290 PR target/66473
6291 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6292 to prepare mask operand for AVX512 modes.
6293
6294 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6295
6296 PR target/66474
6297 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6298 if you use a constraint that targets a VSX register, you must use
6299 %x<n> in the template.
6300
6301 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6302
6303 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6304 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6305 (define_insn "trap"): New definition.
6306
6307 2015-06-10 Richard Biener <rguenther@suse.de>
6308
6309 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6310 out from ...
6311 (vect_supported_load_permutation_p): ... here. Handle
6312 supportable permutations in reductions.
6313 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6314 for vectorizing strided group loads.
6315
6316 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6317
6318 PR target/66470
6319 * config/i386/i386.c (ix86_split_long_move): For collisions
6320 involving direct tls segment refs, move the UNSPEC_TP possibly
6321 wrapped in ZERO_EXTEND out of the address for lea, to each of
6322 the memory loads.
6323
6324 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6325
6326 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6327 dmb sy. Adjust tabs.
6328
6329 2015-06-10 Tom de Vries <tom@codesourcery.com>
6330
6331 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6332
6333 2015-06-10 Martin Liska <mliska@suse.cz>
6334
6335 PR bootstrap/66471
6336 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6337 all enum values in mem_alloc_origin.
6338 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6339 name.
6340 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6341 * bitmap.c (bitmap_register): Likewise.
6342 (dump_bitmap_statistics): Likewise.
6343 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6344 (ggc_record_overhead): Likewise.
6345 * hash-map.h: Likewise.
6346 * hash-set.h: Likewise.
6347 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6348 * hash-table.h: Likewise.
6349 * vec.c (vec_prefix::register_overhead): Likewise.
6350 (vec_prefix::release_overhead): Likewise.
6351 (dump_vec_loc_statistics): Likewise.
6352
6353 2015-06-09 Christian Bruel <christian.bruel@st.com>
6354
6355 PR target/52144
6356 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6357 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6358 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6359 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6360 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6361 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6362 (arm_valid_target_attribute_p): Likewise.
6363 (arm_set_current_function, arm_can_inline_p): Likewise.
6364 (arm_valid_target_attribute_rec): Likewise.
6365 (arm_previous_fndecl): New variable.
6366 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6367 (TARGET_CAN_INLINE_P): Define.
6368 (arm_asm_trampoline_template): Emit mode.
6369 (arm_file_start): Don't set unified syntax.
6370 (arm_declare_function_name): Set unified syntax and mode.
6371 (arm_option_override): Init target_option_default_node.
6372 and target_option_current_node.
6373 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6374 (*call_symbol): Likewise.
6375 * doc/extend.texi: Document ARM/Thumb target attribute.
6376 * doc/invoke.texi: Likewise.
6377
6378 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6379
6380 Revert:
6381 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6382 PR rtl-optimization/64164
6383 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6384 * tree-ssa-copyrename.c: Removed.
6385 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6386 -ftree-coalesce-vars.
6387 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6388 * common.opt (ftree-copyrename): Ignore.
6389 (ftree-coalesce-inlined-vars): Likewise.
6390 * doc/invoke.texi: Remove the ignored options above.
6391 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6392 * tree-ssa-coalesce.h: ... here.
6393 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6394 headers required by it.
6395 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6396 across variables when flag_tree_coalesce_vars. Check register
6397 use and promoted modes to allow coalescing. Moved to
6398 tree-ssa-coalesce.c.
6399 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6400 with its member functions to tree-ssa-coalesce.c.
6401 (var_map_base_init): Likewise. Renamed to
6402 compute_samebase_partition_bases.
6403 (partition_view_normal): Drop want_bases parameter.
6404 (partition_view_bitmap): Likewise.
6405 * tree-ssa-live.h: Adjust declarations.
6406 * tree-ssa-coalesce.c: Include explow.h.
6407 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6408 default defs at the entry point.
6409 (dump_part_var_map): New.
6410 (compute_optimized_partition_bases): New, called by...
6411 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6412 of compute_samebase_partition_bases. Adjust.
6413 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6414 * cfgexpand.c (leader_merge): New.
6415 (get_rtl_for_parm_ssa_default_def): New.
6416 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6417 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6418 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6419 redundant MEM attr setting.
6420 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6421 from...
6422 (expand_one_stack_var): ... this. New wrapper to check and
6423 skip already expanded SSA partitions.
6424 (record_alignment_for_reg_var): New, factored out of...
6425 (expand_one_var): ... this.
6426 (expand_one_ssa_partition): New.
6427 (adjust_one_expanded_partition_var): New.
6428 (expand_one_register_var): Check and skip already expanded SSA
6429 partitions.
6430 (expand_used_vars): Don't create DECLs for anonymous SSA
6431 names. Expand all SSA partitions, then adjust all SSA names.
6432 (pass::execute): Replace the loops that set
6433 SA.partition_to_pseudo from partition leaders and cleared
6434 DECL_RTL for multi-location variables, and that which used to
6435 rename vars and set attrs, with one that clears DECL_RTL and
6436 checks that PARMs and RESULTs default_defs match DECL_RTL.
6437 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6438 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6439 * explow.c (promote_ssa_mode): New.
6440 * explow.h (promote_ssa_mode): Declare.
6441 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6442 * function.c: Include cfgexpand.h.
6443 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6444 (use_register_for_parm_decl): Wrapper for the above to
6445 special-case the result_ptr.
6446 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6447 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6448 multiple locations.
6449 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6450 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6451 (assign_parm_setup_block): Prefer SSA-assigned location.
6452 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6453 if stack_parm is NULL.
6454 (assign_parm_setup_stack): Prefer SSA-assigned location.
6455 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6456 rtl before testing for pointer bounds. Special-case result_ptr.
6457 (expand_function_start): Maybe reset DECL_RTL of result.
6458 Prefer SSA-assigned location for result and static chain.
6459 Factor out DECL_RESULT and SET_DECL_RTL.
6460 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6461 anonymous SSA names. Use promote_ssa_mode.
6462 (get_temp_reg): Likewise.
6463 (remove_ssa_form): Adjust.
6464 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6465 and get its reg_usage for reg invalidation.
6466 (compute_bb_dataflow): Pass it insn.
6467 (emit_notes_in_bb): Likewise.
6468 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6469 fail assert on conversion between unsigned types.
6470
6471 2015-06-09 Tom de Vries <tom@codesourcery.com>
6472
6473 PR tree-optimization/65460
6474 * omp-low.c (expand_omp_target): Set parallelized_function on
6475 cgraph_node for child_fn.
6476
6477 2015-06-09 Tom de Vries <tom@codesourcery.com>
6478
6479 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6480 parallelized_function before add_new_function.
6481
6482 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6483
6484 * gcc-plugin.h: Move decls to plugin.h and include it.
6485 * plugin.h: Relocate decls from gcc-plugin.h
6486 * ggc-page.c: Include required header files.
6487 * passes.c: Likewise.
6488 * cgraphunit.c: Likewise.
6489
6490 2015-06-09 Tom de Vries <tom@codesourcery.com>
6491
6492 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6493
6494 2015-06-09 Jason Merrill <jason@redhat.com>
6495
6496 PR bootstrap/66448
6497 * toplev.c (check_global_declaration): Don't warn about a clone.
6498
6499 2015-06-09 Marek Polacek <polacek@redhat.com>
6500
6501 PR tree-optimization/66299
6502 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6503 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6504 patterns.
6505
6506 2015-06-09 Richard Biener <rguenther@suse.de>
6507
6508 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6509 (vect_analyze_slp_instance): Instead do not falsely drop
6510 load permutations.
6511
6512 2015-06-09 Richard Biener <rguenther@suse.de>
6513
6514 PR middle-end/66423
6515 * match.pd: Handle A % (unsigned)(1 << B).
6516
6517 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6518
6519 * varasm.c (output_object_block_htab): Remove.
6520 (output_object_block_compare): New.
6521 (output_object_blocks): Sort named object_blocks before outputting
6522 them.
6523
6524 2015-06-09 Richard Biener <rguenther@suse.de>
6525
6526 PR tree-optimization/66419
6527 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6528 consider GROUP_GAP when detecting a perfect subchain.
6529
6530 2015-06-09 Nick Clifton <nickc@redhat.com>
6531
6532 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6533 place read only data in the .frodata section.
6534
6535 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6536
6537 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6538 (atomic_store<mode>): Likewise.
6539
6540 2015-06-09 Richard Biener <rguenther@suse.de>
6541
6542 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6543
6544 2015-06-09 Richard Biener <rguenther@suse.de>
6545
6546 PR middle-end/66413
6547 * tree-inline.c (insert_init_debug_bind): Unshare value.
6548
6549 2015-06-09 Richard Biener <rguenther@suse.de>
6550
6551 PR tree-optimization/66396
6552 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6553 Rename virtual operands.
6554
6555 2015-06-09 Tom de Vries <tom@codesourcery.com>
6556
6557 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6558 always return false.
6559
6560 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6561
6562 PR rtl-optimization/64164
6563 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6564 * tree-ssa-copyrename.c: Removed.
6565 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6566 -ftree-coalesce-vars.
6567 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6568 * common.opt (ftree-copyrename): Ignore.
6569 (ftree-coalesce-inlined-vars): Likewise.
6570 * doc/invoke.texi: Remove the ignored options above.
6571 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6572 * tree-ssa-coalesce.h: ... here.
6573 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6574 headers required by it.
6575 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6576 across variables when flag_tree_coalesce_vars. Check register
6577 use and promoted modes to allow coalescing. Moved to
6578 tree-ssa-coalesce.c.
6579 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6580 with its member functions to tree-ssa-coalesce.c.
6581 (var_map_base_init): Likewise. Renamed to
6582 compute_samebase_partition_bases.
6583 (partition_view_normal): Drop want_bases parameter.
6584 (partition_view_bitmap): Likewise.
6585 * tree-ssa-live.h: Adjust declarations.
6586 * tree-ssa-coalesce.c: Include explow.h.
6587 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6588 default defs at the entry point.
6589 (dump_part_var_map): New.
6590 (compute_optimized_partition_bases): New, called by...
6591 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6592 of compute_samebase_partition_bases. Adjust.
6593 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6594 * cfgexpand.c (leader_merge): New.
6595 (get_rtl_for_parm_ssa_default_def): New.
6596 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6597 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6598 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6599 redundant MEM attr setting.
6600 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6601 from...
6602 (expand_one_stack_var): ... this. New wrapper to check and
6603 skip already expanded SSA partitions.
6604 (record_alignment_for_reg_var): New, factored out of...
6605 (expand_one_var): ... this.
6606 (expand_one_ssa_partition): New.
6607 (adjust_one_expanded_partition_var): New.
6608 (expand_one_register_var): Check and skip already expanded SSA
6609 partitions.
6610 (expand_used_vars): Don't create DECLs for anonymous SSA
6611 names. Expand all SSA partitions, then adjust all SSA names.
6612 (pass::execute): Replace the loops that set
6613 SA.partition_to_pseudo from partition leaders and cleared
6614 DECL_RTL for multi-location variables, and that which used to
6615 rename vars and set attrs, with one that clears DECL_RTL and
6616 checks that PARMs and RESULTs default_defs match DECL_RTL.
6617 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6618 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6619 * explow.c (promote_ssa_mode): New.
6620 * explow.h (promote_ssa_mode): Declare.
6621 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6622 * function.c: Include cfgexpand.h.
6623 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6624 (use_register_for_parm_decl): Wrapper for the above to
6625 special-case the result_ptr.
6626 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6627 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6628 multiple locations.
6629 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6630 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6631 (assign_parm_setup_block): Prefer SSA-assigned location.
6632 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6633 if stack_parm is NULL.
6634 (assign_parm_setup_stack): Prefer SSA-assigned location.
6635 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6636 rtl before testing for pointer bounds. Special-case result_ptr.
6637 (expand_function_start): Maybe reset DECL_RTL of result.
6638 Prefer SSA-assigned location for result and static chain.
6639 Factor out DECL_RESULT and SET_DECL_RTL.
6640 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6641 anonymous SSA names. Use promote_ssa_mode.
6642 (get_temp_reg): Likewise.
6643 (remove_ssa_form): Adjust.
6644 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6645 and get its reg_usage for reg invalidation.
6646 (compute_bb_dataflow): Pass it insn.
6647 (emit_notes_in_bb): Likewise.
6648 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6649 fail assert on conversion between unsigned types.
6650
6651 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6652
6653 PR debug/58315
6654 * tree-inline.c (reset_debug_binding): New.
6655 (reset_debug_bindings): Likewise.
6656 (expand_call_inline): Call it.
6657
6658 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6659
6660 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6661 TYPE_STRING_FLAG.
6662
6663 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6664
6665 * lto-streamer-out.c (lto_output_location): Stream
6666 reserved locations correctly.
6667 * lto-streamer-in.c (lto_output_location): Likewise.
6668
6669 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
6670
6671 * coretypes.h: Include hash-table.h and hash-set.h for host files.
6672 * ggc.h: Don't include statistics.h>
6673 * hash-map.h: Remove all includes.
6674 * hash-set.h: Likewise.
6675 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6676 the include list. Remove <new>.
6677 * inchash.h: Remove all includes.
6678 * mem-stats.h: Likewise.
6679 * vec.h: No special processing for generators or ggc.
6680 * alias.c : Adjust include files.
6681 * alloc-pool.c : Likewise.
6682 * alloc-pool.h : Likewise.
6683 * asan.c : Likewise.
6684 * attribs.c : Likewise.
6685 * auto-inc-dec.c : Likewise.
6686 * auto-profile.c : Likewise.
6687 * bb-reorder.c : Likewise.
6688 * bitmap.c : Likewise.
6689 * bitmap.h : Likewise.
6690 * bt-load.c : Likewise.
6691 * builtins.c : Likewise.
6692 * caller-save.c : Likewise.
6693 * calls.c : Likewise.
6694 * ccmp.c : Likewise.
6695 * cfg.c : Likewise.
6696 * cfganal.c : Likewise.
6697 * cfgbuild.c : Likewise.
6698 * cfgcleanup.c : Likewise.
6699 * cfgexpand.c : Likewise.
6700 * cfghooks.c : Likewise.
6701 * cfgloop.c : Likewise.
6702 * cfgloop.h : Likewise.
6703 * cfgloopanal.c : Likewise.
6704 * cfgloopmanip.c : Likewise.
6705 * cfgrtl.c : Likewise.
6706 * cgraph.c : Likewise.
6707 * cgraphbuild.c : Likewise.
6708 * cgraphclones.c : Likewise.
6709 * cgraphunit.c : Likewise.
6710 * cilk-common.c : Likewise.
6711 * combine-stack-adj.c : Likewise.
6712 * combine.c : Likewise.
6713 * compare-elim.c : Likewise.
6714 * context.c : Likewise.
6715 * convert.c : Likewise.
6716 * coverage.c : Likewise.
6717 * cppbuiltin.c : Likewise.
6718 * cprop.c : Likewise.
6719 * cse.c : Likewise.
6720 * cselib.c : Likewise.
6721 * data-streamer-in.c : Likewise.
6722 * data-streamer-out.c : Likewise.
6723 * data-streamer.c : Likewise.
6724 * data-streamer.h : Likewise.
6725 * dbxout.c : Likewise.
6726 * dce.c : Likewise.
6727 * ddg.c : Likewise.
6728 * debug.c : Likewise.
6729 * df-core.c : Likewise.
6730 * df-problems.c : Likewise.
6731 * df-scan.c : Likewise.
6732 * df.h : Likewise.
6733 * dfp.c : Likewise.
6734 * dojump.c : Likewise.
6735 * dominance.c : Likewise.
6736 * domwalk.c : Likewise.
6737 * double-int.c : Likewise.
6738 * dse.c : Likewise.
6739 * dumpfile.c : Likewise.
6740 * dwarf2asm.c : Likewise.
6741 * dwarf2cfi.c : Likewise.
6742 * dwarf2out.c : Likewise.
6743 * emit-rtl.c : Likewise.
6744 * et-forest.c : Likewise.
6745 * except.c : Likewise.
6746 * except.h : Likewise.
6747 * explow.c : Likewise.
6748 * expmed.c : Likewise.
6749 * expr.c : Likewise.
6750 * final.c : Likewise.
6751 * fixed-value.c : Likewise.
6752 * fold-const.c : Likewise.
6753 * function.c : Likewise.
6754 * fwprop.c : Likewise.
6755 * gcc-plugin.h : Likewise.
6756 * gcc.c : Likewise.
6757 * gcse-common.c : Likewise.
6758 * gcse.c : Likewise.
6759 * genattrtab.c : Likewise.
6760 * genautomata.c : Likewise.
6761 * genconditions.c : Likewise.
6762 * genemit.c : Likewise.
6763 * generic-match-head.c : Likewise.
6764 * genextract.c : Likewise.
6765 * gengtype-state.c : Likewise.
6766 * gengtype.c : Likewise.
6767 * genhooks.c : Likewise.
6768 * genmatch.c : Likewise.
6769 * genmodes.c : Likewise.
6770 * genrecog.c : Likewise.
6771 * gensupport.c : Likewise.
6772 * ggc-common.c : Likewise.
6773 * ggc-internal.h : Likewise.
6774 * ggc-none.c : Likewise.
6775 * ggc-page.c : Likewise.
6776 * gimple-builder.c : Likewise.
6777 * gimple-expr.c : Likewise.
6778 * gimple-fold.c : Likewise.
6779 * gimple-iterator.c : Likewise.
6780 * gimple-low.c : Likewise.
6781 * gimple-match-head.c : Likewise.
6782 * gimple-pretty-print.c : Likewise.
6783 * gimple-ssa-isolate-paths.c : Likewise.
6784 * gimple-ssa-strength-reduction.c : Likewise.
6785 * gimple-ssa.h : Likewise.
6786 * gimple-streamer-in.c : Likewise.
6787 * gimple-streamer-out.c : Likewise.
6788 * gimple-streamer.h : Likewise.
6789 * gimple-walk.c : Likewise.
6790 * gimple.c : Likewise.
6791 * gimplify-me.c : Likewise.
6792 * gimplify.c : Likewise.
6793 * godump.c : Likewise.
6794 * graph.c : Likewise.
6795 * graphds.c : Likewise.
6796 * graphite-blocking.c : Likewise.
6797 * graphite-dependences.c : Likewise.
6798 * graphite-interchange.c : Likewise.
6799 * graphite-isl-ast-to-gimple.c : Likewise.
6800 * graphite-optimize-isl.c : Likewise.
6801 * graphite-poly.c : Likewise.
6802 * graphite-scop-detection.c : Likewise.
6803 * graphite-sese-to-poly.c : Likewise.
6804 * graphite.c : Likewise.
6805 * haifa-sched.c : Likewise.
6806 * hard-reg-set.h : Likewise.
6807 * hw-doloop.c : Likewise.
6808 * ifcvt.c : Likewise.
6809 * inchash.c : Likewise.
6810 * incpath.c : Likewise.
6811 * init-regs.c : Likewise.
6812 * input.c : Likewise.
6813 * internal-fn.c : Likewise.
6814 * ipa-chkp.c : Likewise.
6815 * ipa-comdats.c : Likewise.
6816 * ipa-cp.c : Likewise.
6817 * ipa-devirt.c : Likewise.
6818 * ipa-icf-gimple.c : Likewise.
6819 * ipa-icf.c : Likewise.
6820 * ipa-inline-analysis.c : Likewise.
6821 * ipa-inline-transform.c : Likewise.
6822 * ipa-inline.c : Likewise.
6823 * ipa-polymorphic-call.c : Likewise.
6824 * ipa-profile.c : Likewise.
6825 * ipa-prop.c : Likewise.
6826 * ipa-pure-const.c : Likewise.
6827 * ipa-ref.c : Likewise.
6828 * ipa-reference.c : Likewise.
6829 * ipa-split.c : Likewise.
6830 * ipa-utils.c : Likewise.
6831 * ipa-visibility.c : Likewise.
6832 * ipa.c : Likewise.
6833 * ira-build.c : Likewise.
6834 * ira-color.c : Likewise.
6835 * ira-conflicts.c : Likewise.
6836 * ira-costs.c : Likewise.
6837 * ira-emit.c : Likewise.
6838 * ira-lives.c : Likewise.
6839 * ira.c : Likewise.
6840 * jump.c : Likewise.
6841 * langhooks.c : Likewise.
6842 * lcm.c : Likewise.
6843 * libfuncs.h : Likewise.
6844 * lists.c : Likewise.
6845 * loop-doloop.c : Likewise.
6846 * loop-init.c : Likewise.
6847 * loop-invariant.c : Likewise.
6848 * loop-iv.c : Likewise.
6849 * loop-unroll.c : Likewise.
6850 * lower-subreg.c : Likewise.
6851 * lra-assigns.c : Likewise.
6852 * lra-coalesce.c : Likewise.
6853 * lra-constraints.c : Likewise.
6854 * lra-eliminations.c : Likewise.
6855 * lra-lives.c : Likewise.
6856 * lra-remat.c : Likewise.
6857 * lra-spills.c : Likewise.
6858 * lra.c : Likewise.
6859 * lto-cgraph.c : Likewise.
6860 * lto-compress.c : Likewise.
6861 * lto-opts.c : Likewise.
6862 * lto-section-in.c : Likewise.
6863 * lto-section-out.c : Likewise.
6864 * lto-streamer-in.c : Likewise.
6865 * lto-streamer-out.c : Likewise.
6866 * lto-streamer.c : Likewise.
6867 * lto-streamer.h : Likewise.
6868 * mcf.c : Likewise.
6869 * mode-switching.c : Likewise.
6870 * modulo-sched.c : Likewise.
6871 * omega.c : Likewise.
6872 * omp-low.c : Likewise.
6873 * optabs.c : Likewise.
6874 * opts-global.c : Likewise.
6875 * opts.h : Likewise.
6876 * passes.c : Likewise.
6877 * plugin.c : Likewise.
6878 * postreload-gcse.c : Likewise.
6879 * postreload.c : Likewise.
6880 * predict.c : Likewise.
6881 * print-rtl.c : Likewise.
6882 * print-tree.c : Likewise.
6883 * profile.c : Likewise.
6884 * read-md.c : Likewise.
6885 * read-md.h : Likewise.
6886 * read-rtl.c : Likewise.
6887 * real.c : Likewise.
6888 * realmpfr.c : Likewise.
6889 * recog.c : Likewise.
6890 * ree.c : Likewise.
6891 * reg-stack.c : Likewise.
6892 * regcprop.c : Likewise.
6893 * reginfo.c : Likewise.
6894 * regrename.c : Likewise.
6895 * regstat.c : Likewise.
6896 * reload.c : Likewise.
6897 * reload1.c : Likewise.
6898 * reorg.c : Likewise.
6899 * resource.c : Likewise.
6900 * rtl-chkp.c : Likewise.
6901 * rtl.c : Likewise.
6902 * rtl.h : Likewise.
6903 * rtlanal.c : Likewise.
6904 * rtlhash.c : Likewise.
6905 * rtlhash.h : Likewise.
6906 * rtlhooks.c : Likewise.
6907 * sanopt.c : Likewise.
6908 * sched-deps.c : Likewise.
6909 * sched-ebb.c : Likewise.
6910 * sched-rgn.c : Likewise.
6911 * sched-vis.c : Likewise.
6912 * sdbout.c : Likewise.
6913 * sel-sched-dump.c : Likewise.
6914 * sel-sched-ir.c : Likewise.
6915 * sel-sched-ir.h : Likewise.
6916 * sel-sched.c : Likewise.
6917 * sese.c : Likewise.
6918 * shrink-wrap.c : Likewise.
6919 * shrink-wrap.h : Likewise.
6920 * simplify-rtx.c : Likewise.
6921 * stack-ptr-mod.c : Likewise.
6922 * statistics.c : Likewise.
6923 * stmt.c : Likewise.
6924 * stor-layout.c : Likewise.
6925 * store-motion.c : Likewise.
6926 * stringpool.c : Likewise.
6927 * symtab.c : Likewise.
6928 * target-globals.c : Likewise.
6929 * targhooks.c : Likewise.
6930 * tlink.c : Likewise.
6931 * toplev.c : Likewise.
6932 * tracer.c : Likewise.
6933 * trans-mem.c : Likewise.
6934 * tree-affine.c : Likewise.
6935 * tree-affine.h : Likewise.
6936 * tree-browser.c : Likewise.
6937 * tree-call-cdce.c : Likewise.
6938 * tree-cfg.c : Likewise.
6939 * tree-cfgcleanup.c : Likewise.
6940 * tree-chkp-opt.c : Likewise.
6941 * tree-chkp.c : Likewise.
6942 * tree-chrec.c : Likewise.
6943 * tree-complex.c : Likewise.
6944 * tree-data-ref.c : Likewise.
6945 * tree-dfa.c : Likewise.
6946 * tree-diagnostic.c : Likewise.
6947 * tree-dump.c : Likewise.
6948 * tree-eh.c : Likewise.
6949 * tree-eh.h : Likewise.
6950 * tree-emutls.c : Likewise.
6951 * tree-hasher.h : Likewise.
6952 * tree-if-conv.c : Likewise.
6953 * tree-inline.c : Likewise.
6954 * tree-inline.h : Likewise.
6955 * tree-into-ssa.c : Likewise.
6956 * tree-iterator.c : Likewise.
6957 * tree-loop-distribution.c : Likewise.
6958 * tree-nested.c : Likewise.
6959 * tree-nrv.c : Likewise.
6960 * tree-object-size.c : Likewise.
6961 * tree-outof-ssa.c : Likewise.
6962 * tree-parloops.c : Likewise.
6963 * tree-phinodes.c : Likewise.
6964 * tree-predcom.c : Likewise.
6965 * tree-pretty-print.c : Likewise.
6966 * tree-profile.c : Likewise.
6967 * tree-scalar-evolution.c : Likewise.
6968 * tree-sra.c : Likewise.
6969 * tree-ssa-address.c : Likewise.
6970 * tree-ssa-alias.c : Likewise.
6971 * tree-ssa-ccp.c : Likewise.
6972 * tree-ssa-coalesce.c : Likewise.
6973 * tree-ssa-copy.c : Likewise.
6974 * tree-ssa-copyrename.c : Likewise.
6975 * tree-ssa-dce.c : Likewise.
6976 * tree-ssa-dom.c : Likewise.
6977 * tree-ssa-dse.c : Likewise.
6978 * tree-ssa-forwprop.c : Likewise.
6979 * tree-ssa-ifcombine.c : Likewise.
6980 * tree-ssa-live.c : Likewise.
6981 * tree-ssa-loop-ch.c : Likewise.
6982 * tree-ssa-loop-im.c : Likewise.
6983 * tree-ssa-loop-ivcanon.c : Likewise.
6984 * tree-ssa-loop-ivopts.c : Likewise.
6985 * tree-ssa-loop-manip.c : Likewise.
6986 * tree-ssa-loop-niter.c : Likewise.
6987 * tree-ssa-loop-prefetch.c : Likewise.
6988 * tree-ssa-loop-unswitch.c : Likewise.
6989 * tree-ssa-loop.c : Likewise.
6990 * tree-ssa-math-opts.c : Likewise.
6991 * tree-ssa-operands.c : Likewise.
6992 * tree-ssa-phiopt.c : Likewise.
6993 * tree-ssa-phiprop.c : Likewise.
6994 * tree-ssa-pre.c : Likewise.
6995 * tree-ssa-propagate.c : Likewise.
6996 * tree-ssa-reassoc.c : Likewise.
6997 * tree-ssa-sccvn.c : Likewise.
6998 * tree-ssa-scopedtables.c : Likewise.
6999 * tree-ssa-sink.c : Likewise.
7000 * tree-ssa-strlen.c : Likewise.
7001 * tree-ssa-structalias.c : Likewise.
7002 * tree-ssa-tail-merge.c : Likewise.
7003 * tree-ssa-ter.c : Likewise.
7004 * tree-ssa-threadedge.c : Likewise.
7005 * tree-ssa-threadupdate.c : Likewise.
7006 * tree-ssa-uncprop.c : Likewise.
7007 * tree-ssa-uninit.c : Likewise.
7008 * tree-ssa.c : Likewise.
7009 * tree-ssanames.c : Likewise.
7010 * tree-stdarg.c : Likewise.
7011 * tree-streamer-in.c : Likewise.
7012 * tree-streamer-out.c : Likewise.
7013 * tree-streamer.c : Likewise.
7014 * tree-streamer.h : Likewise.
7015 * tree-switch-conversion.c : Likewise.
7016 * tree-tailcall.c : Likewise.
7017 * tree-vect-data-refs.c : Likewise.
7018 * tree-vect-generic.c : Likewise.
7019 * tree-vect-loop-manip.c : Likewise.
7020 * tree-vect-loop.c : Likewise.
7021 * tree-vect-patterns.c : Likewise.
7022 * tree-vect-slp.c : Likewise.
7023 * tree-vect-stmts.c : Likewise.
7024 * tree-vectorizer.c : Likewise.
7025 * tree-vectorizer.h : Likewise.
7026 * tree-vrp.c : Likewise.
7027 * tree.c : Likewise.
7028 * tsan.c : Likewise.
7029 * ubsan.c : Likewise.
7030 * valtrack.c : Likewise.
7031 * valtrack.h : Likewise.
7032 * value-prof.c : Likewise.
7033 * var-tracking.c : Likewise.
7034 * varasm.c : Likewise.
7035 * varpool.c : Likewise.
7036 * vec.c: Likewise.
7037 * vmsdbgout.c : Likewise.
7038 * vtable-verify.c : Likewise.
7039 * vtable-verify.h : Likewise.
7040 * web.c : Likewise.
7041 * wide-int.cc : Likewise.
7042 * xcoffout.c : Likewise.
7043 * config/aarch64/aarch64-builtins.c : Likewise.
7044 * config/aarch64/aarch64.c : Likewise.
7045 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7046 * config/alpha/alpha.c : Likewise.
7047 * config/arc/arc.c : Likewise.
7048 * config/arm/aarch-common.c : Likewise.
7049 * config/arm/arm-builtins.c : Likewise.
7050 * config/arm/arm-c.c : Likewise.
7051 * config/arm/arm.c : Likewise.
7052 * config/avr/avr-c.c : Likewise.
7053 * config/avr/avr-log.c : Likewise.
7054 * config/avr/avr.c : Likewise.
7055 * config/bfin/bfin.c : Likewise.
7056 * config/c6x/c6x.c : Likewise.
7057 * config/cr16/cr16.c : Likewise.
7058 * config/cris/cris.c : Likewise.
7059 * config/darwin-c.c : Likewise.
7060 * config/darwin.c : Likewise.
7061 * config/default-c.c : Likewise.
7062 * config/epiphany/epiphany.c : Likewise.
7063 * config/epiphany/mode-switch-use.c : Likewise.
7064 * config/epiphany/resolve-sw-modes.c : Likewise.
7065 * config/fr30/fr30.c : Likewise.
7066 * config/frv/frv.c : Likewise.
7067 * config/ft32/ft32.c : Likewise.
7068 * config/glibc-c.c : Likewise.
7069 * config/h8300/h8300.c : Likewise.
7070 * config/i386/i386-c.c : Likewise.
7071 * config/i386/i386.c : Likewise.
7072 * config/i386/msformat-c.c : Likewise.
7073 * config/i386/winnt-cxx.c : Likewise.
7074 * config/i386/winnt-stubs.c : Likewise.
7075 * config/i386/winnt.c : Likewise.
7076 * config/ia64/ia64-c.c : Likewise.
7077 * config/ia64/ia64.c : Likewise.
7078 * config/iq2000/iq2000.c : Likewise.
7079 * config/lm32/lm32.c : Likewise.
7080 * config/m32c/m32c-pragma.c : Likewise.
7081 * config/m32c/m32c.c : Likewise.
7082 * config/m32r/m32r.c : Likewise.
7083 * config/m68k/m68k.c : Likewise.
7084 * config/mcore/mcore.c : Likewise.
7085 * config/mep/mep-pragma.c : Likewise.
7086 * config/mep/mep.c : Likewise.
7087 * config/microblaze/microblaze-c.c : Likewise.
7088 * config/microblaze/microblaze.c : Likewise.
7089 * config/mips/mips.c : Likewise.
7090 * config/mmix/mmix.c : Likewise.
7091 * config/mn10300/mn10300.c : Likewise.
7092 * config/moxie/moxie.c : Likewise.
7093 * config/msp430/msp430-c.c : Likewise.
7094 * config/msp430/msp430.c : Likewise.
7095 * config/nds32/nds32-cost.c : Likewise.
7096 * config/nds32/nds32-fp-as-gp.c : Likewise.
7097 * config/nds32/nds32-intrinsic.c : Likewise.
7098 * config/nds32/nds32-isr.c : Likewise.
7099 * config/nds32/nds32-md-auxiliary.c : Likewise.
7100 * config/nds32/nds32-memory-manipulation.c : Likewise.
7101 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7102 * config/nds32/nds32-predicates.c : Likewise.
7103 * config/nds32/nds32.c : Likewise.
7104 * config/nios2/nios2.c : Likewise.
7105 * config/nvptx/nvptx.c : Likewise.
7106 * config/pa/pa.c : Likewise.
7107 * config/pdp11/pdp11.c : Likewise.
7108 * config/rl78/rl78-c.c : Likewise.
7109 * config/rl78/rl78.c : Likewise.
7110 * config/rs6000/rs6000-c.c : Likewise.
7111 * config/rs6000/rs6000.c : Likewise.
7112 * config/rx/rx.c : Likewise.
7113 * config/s390/s390-c.c : Likewise.
7114 * config/s390/s390.c : Likewise.
7115 * config/sh/sh-c.c : Likewise.
7116 * config/sh/sh-mem.cc : Likewise.
7117 * config/sh/sh.c : Likewise.
7118 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7119 * config/sh/sh_treg_combine.cc : Likewise.
7120 * config/sol2-c.c : Likewise.
7121 * config/sol2-cxx.c : Likewise.
7122 * config/sol2-stubs.c : Likewise.
7123 * config/sol2.c : Likewise.
7124 * config/sparc/sparc-c.c : Likewise.
7125 * config/sparc/sparc.c : Likewise.
7126 * config/spu/spu-c.c : Likewise.
7127 * config/spu/spu.c : Likewise.
7128 * config/stormy16/stormy16.c : Likewise.
7129 * config/tilegx/mul-tables.c : Likewise.
7130 * config/tilegx/tilegx-c.c : Likewise.
7131 * config/tilegx/tilegx.c : Likewise.
7132 * config/tilepro/mul-tables.c : Likewise.
7133 * config/tilepro/tilepro-c.c : Likewise.
7134 * config/tilepro/tilepro.c : Likewise.
7135 * config/v850/v850-c.c : Likewise.
7136 * config/v850/v850.c : Likewise.
7137 * config/vax/vax.c : Likewise.
7138 * config/visium/visium.c : Likewise.
7139 * config/vms/vms-c.c : Likewise.
7140 * config/vms/vms.c : Likewise.
7141 * config/vxworks.c : Likewise.
7142 * config/winnt-c.c : Likewise.
7143 * config/xtensa/xtensa.c : Likewise.
7144
7145 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7146
7147 PR lto/65378
7148 * ipa-utils.h (warn_types_mismatch): Update prototype.
7149 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7150 parameters.
7151 (type_mismatch_p): New function.
7152 (warn_types_mismatch): Reorg to work better on non-C++ types.
7153 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7154 (add_type_duplicate): Update.
7155
7156 2015-06-08 Tom de Vries <tom@codesourcery.com>
7157
7158 PR rtl-optimization/66444
7159 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7160 call_used_regs.
7161
7162 2015-06-08 Richard Biener <rguenther@suse.de>
7163
7164 PR tree-optimization/66422
7165 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7166 block after inserted gcc_unreachable.
7167
7168 2015-06-08 Nick Clifton <nickc@redhat.com>
7169
7170 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7171 (rx_promote_function_mode): Likewise.
7172 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7173
7174 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7175
7176 * genattrtab.c (insn_alternatives): Change type from int *
7177 to uint64_t *.
7178 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7179 (get_attr_value): Change type of num_alt to uint64_t.
7180 (compute_alternative_mask): Change return type from
7181 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7182 (make_alternative_compare, mk_attr_alt): Change argument type
7183 from int to uint64_t.
7184 (simplify_test_exp): Change type of i from int to uint64_t.
7185 Shift ((uint64_t) 1) instead of 1 up.
7186 (main): Adjust oballocvec first argument from int to uint64_t.
7187 Shift ((uint64_t) 1) instead of 1 up.
7188
7189 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7190
7191 PR other/65366
7192 * gdbhooks.py: Import sys.
7193 (intptr): New function. Replace int(...) by intptr(...).
7194
7195 2015-06-08 Richard Biener <rguenther@suse.de>
7196
7197 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7198 adjustment for gaps at the end of a SLP load group properly.
7199 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7200 all permutations we can generate.
7201 (vect_transform_slp_perm_load): Use the correct group-size.
7202
7203 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7204
7205 * genmatch.c (expr::gen_transform): For conditions, guess the type
7206 from the second operand.
7207
7208 2015-06-08 Tom de Vries <tom@codesourcery.com>
7209
7210 PR tree-optimization/66442
7211 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7212 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7213 if the loop latch is not a singleton. Use
7214 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7215
7216 2015-06-08 Marek Polacek <polacek@redhat.com>
7217
7218 PR sanitizer/66452
7219 * toplev.c (check_global_declaration): Don't warn about artificial
7220 decls.
7221
7222 2015-06-08 Tom de Vries <tom@codesourcery.com>
7223
7224 PR tree-optimization/66436
7225 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7226 dump file.
7227 * gimplify.c: Add tree-dump.h include.
7228 (gimplify_function_tree): Dump function to gimple dump file.
7229 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7230 dump file.
7231
7232 2015-06-08 Tom de Vries <tom@codesourcery.com>
7233
7234 PR tree-optimization/66435
7235 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7236 function.
7237
7238 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7239
7240 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7241 of ptr_type_node to not be ptr_to_node.
7242 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7243 TREE_TYPE of pointers.
7244 * gimple-expr.c (useless_type_conversion): Reorder the check for
7245 function pointers and TYPE_CANONICAL.
7246
7247 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7248
7249 PR bootstrap/66319
7250 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7251 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7252 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7253 later.
7254 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7255 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7256 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7257 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7258 and non iso if unix2003.
7259
7260 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7261
7262 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7263
7264 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7265
7266 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7267 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7268 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7269 except.c, final.c, function.c, gcse-common.c, genemit.c,
7270 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7271 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7272 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7273 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7274 more derived ones.
7275
7276 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7277
7278 * combine.c (combine_split_insns): Remove cast.
7279 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7280 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7281 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7282 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7283 * genemit.c (gen_split): Change return type of generated functions to
7284 rtx_insn.
7285 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7286 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7287 gen_peephole2_* functions.
7288 (print_subroutine, main): Likewise.
7289 * recog.c (peephole2_optimize): Remove cast.
7290 (peep2_next_insn): Promote return type to rtx_insn.
7291 * recog.h (peep2_next_insn): Fix prototype.
7292 * rtl.h (try_split, split_insns): Likewise.
7293
7294 2015-06-06 DJ Delorie <dj@redhat.com>
7295
7296 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7297 and subtraction too.
7298
7299 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7300
7301 PR target/66410
7302 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7303 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7304 instead of Snd. Disparage Sid/z alternative with '^'.
7305
7306 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7307
7308 * dwarf2out.c: Remove deferred_locations*.
7309 (dwarf2_debug_hooks): Add early_finish hook.
7310 Remove global_decl hook.
7311 Add early_global_decl and late_global_decl hook.
7312 New global early_dwarf.
7313 New structure set_early_dwarf.
7314 (output_die): Indicate whether a DIE was generated early
7315 when generating assembly with -dA.
7316 (struct limbo_die_struct): Document created_for field.
7317 Remove file_table_last_lookup.
7318 (remove_AT): Return TRUE if successful.
7319 (remove_child_TAG): Clear die_parent.
7320 (reparent_child): New function abstracted from...
7321 (splice_child_die): ...here.
7322 (new_die): ICE if a DIE ends up in limbo too late.
7323 (check_die): New.
7324 (defer_location): Remove.
7325 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7326 (fill_variable_array_bounds): New.
7327 (decl_start_label): Call fill_variable_array_bounds.
7328 (gen_formal_parameter_die): Rewrite to reuse previously generated
7329 DIEs.
7330 (gen_subprogram_die): Same.
7331 (gen_variable_die): Same.
7332 (gen_const_die): Same.
7333 (gen_label_die): Same.
7334 (gen_lexical_block_die): Same.
7335 (decl_will_get_specification_p): New.
7336 (local_function_static): New.
7337 (gen_struct_or_union_type_die): Fill in variable-length fields.
7338 (gen_typedef_die): Fill in variable-length typedefs.
7339 (gen_tagged_type_die): Gracefully return on error_mark_node.
7340 Handle re-entrancy.
7341 (gen_type_die_with_usage): Handle variable-length types.
7342 Remove duplicate code for ARRAY_TYPE case.
7343 (process_scope_var): Only process imported modules during early
7344 dwarf.
7345 (dwarf2out_early_global_decl): New.
7346 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7347 (dwarf2out_type_decl): Set early_dwarf while calling
7348 dwarf2out_decl.
7349 (dwarf2out_decl): Verify that we did not recreate a previously
7350 generated DIE.
7351 Do not return on DECL_EXTERNALs in VAR_DECLs.
7352 Abstract some code to local_function_static.
7353 (lookup_filename): Remove use of file_table_last_lookup.
7354 Gracefully exit on missing file_name.
7355 (dwarf2out_finish): Verify limbo list.
7356 Remove deferred_locations_list use.
7357 Move deferred_asm_name and limbo flushing to...
7358 (dwarf2out_early_finish): ...here. New.
7359 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7360 deferred_asm_name, and file_table_last_lookup.
7361 * cgraph.h (referred_to_p): Add default argument.
7362 * cgraphunit.c (referred_to_p): Add and handle include_self
7363 argument.
7364 (analyze_functions): Add first_time argument.
7365 Call check_global_declaration for all symbols.
7366 Call late_global_decl for nodes for moribund nodes.
7367 (finalize_compilation_unit): Add new argument to
7368 analyze_functions.
7369 Call early_global_decl for functions.
7370 Call early_finish debug hook.
7371 * dbxout.c (dbxout_early_global_decl): New.
7372 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7373 (dbx_debug_hooks): Add new hooks.
7374 (xcoff_debug_hooks): Same.
7375 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7376 Add early and late debug hooks.
7377 Remove global_decl hook.
7378 * debug.h (struct gcc_debug_hooks): Add early_finish,
7379 early_global_decl, and late_global_decl fields.
7380 Remove global_decl field.
7381 Document gcc_debug_hooks.
7382 * gengtype.c (output_typename): Remove.
7383 * godump.c (go_early_global_decl): New.
7384 (go_late_global_decl): New.
7385 (go_global_decl): Remove.
7386 (dump_go_spec_init): Remove global_decl. Add
7387 {early,late}_global_decl.
7388 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7389 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7390 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7391 (write_global_declarations): Remove.
7392 (global_decl_processing): New.
7393 * langhooks.h (struct lang_hooks_for_decls): Remove
7394 final_write_globals field.
7395 Add post_compilation_parsing_cleanups field.
7396 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7397 * sdbout.c: Add early and late_global_decl hooks. Remove
7398 sdbout_global_decl hook.
7399 Add early_finish field for sdb_debug_hooks.
7400 (sdbout_global_decl): Remove.
7401 (sdbout_early_global_decl): New.
7402 (sdbout_late_global_decl): New.
7403 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7404 * toplev.c (check_global_declaration): Rename from
7405 check_global_declaration_1.
7406 Adapt to use symtab infrastructure.
7407 (check_global_declarations): Remove.
7408 (emit_debug_global_declarations): Remove.
7409 (compile_file): Remove call to final_write_globals langhook.
7410 Run the actual compilation process.
7411 Perform any post compilation parser cleanups.
7412 Generate late debug info.
7413 * toplev.h (check_global_declaration): New.
7414 (check_global_declaration_1): Remove.
7415 (check_global_declarations): Remove.
7416 (write_global_declarations): Remove.
7417 (emit_debug_global_declarations): Remove.
7418 (global_decl_processing): New.
7419 * tree-core.h (struct tree_block): Add DIE field.
7420 * tree.h (BLOCK_DIE): New.
7421 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7422 throughout.
7423 (vmsdbgout_early_global_decl): New.
7424 (vmsdbgout_late_global_decl): New.
7425 Add early_finish debug hook field to vmsdbg_debug_hooks.
7426 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7427 Add early and late_global_decl debug hooks.
7428
7429 2015-06-05 Julian Brown <julian@codesourcery.com>
7430 Sandra Loosemore <sandra@codesourcery.com>
7431
7432 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7433 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7434 to print-sysroot-suffix.sh script.
7435
7436 2015-06-05 Tom de Vries <tom@codesourcery.com>
7437
7438 merge from gomp4 branch:
7439 2015-05-28 Tom de Vries <tom@codesourcery.com>
7440
7441 PR tree-optimization/65443
7442 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7443 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7444 (try_transform_to_exit_first_loop_alt): New function.
7445 (transform_to_exit_first_loop): Use
7446 try_transform_to_exit_first_loop_alt.
7447
7448 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7449
7450 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7451 emit_cmp_and_jump_insns with the mode of target.
7452
7453 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7454
7455 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7456
7457 2015-06-04 DJ Delorie <dj@redhat.com>
7458
7459 * config/msp430/msp430.md (movsi_s): New. Special case for
7460 storing a 20-bit symbol into a 32-bit register.
7461 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7462 * config/msp430/predicates.md (msp430_symbol_operand): New.
7463
7464 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7465
7466 * c-family/c-common.c (noplt): New attribute.
7467 (handle_noplt_attribute): New handler.
7468 * calls.c (prepare_call_address): Check for noplt
7469 attribute.
7470 * config/i386/i386.c (ix86_expand_call): Check
7471 for noplt attribute.
7472 (ix86_nopic_noplt_attribute_p): New function.
7473 (ix86_output_call_insn): Output indirect call for non-pic
7474 no plt calls.
7475 * doc/extend.texi (noplt): Document new attribute.
7476 * doc/invoke.texi: Document new attribute.
7477
7478 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7479
7480 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7481 real.h, and fixed-value.h when included in host source files.
7482 * double-int.h: Remove redundant #includes listed above.
7483 * fixed-value.h: Likewise.
7484 * real.h: Likewise.
7485 * wide-int.h: Likewise.
7486 * inchash.h: Likewise.
7487 * rtl.h: Add some include files When included from a generator file.
7488 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7489 * internal-fn.h: Don't include coretypes.h.
7490 * alias.c: Adjust includes for restructured coretypes.h.
7491 * asan.c: Likewise.
7492 * attribs.c: Likewise.
7493 * auto-inc-dec.c: Likewise.
7494 * auto-profile.c: Likewise.
7495 * bb-reorder.c: Likewise.
7496 * bt-load.c: Likewise.
7497 * builtins.c: Likewise.
7498 * caller-save.c: Likewise.
7499 * calls.c: Likewise.
7500 * ccmp.c: Likewise.
7501 * cfg.c: Likewise.
7502 * cfganal.c: Likewise.
7503 * cfgbuild.c: Likewise.
7504 * cfgcleanup.c: Likewise.
7505 * cfgexpand.c: Likewise.
7506 * cfghooks.c: Likewise.
7507 * cfgloop.c: Likewise.
7508 * cfgloop.h: Likewise.
7509 * cfgloopanal.c: Likewise.
7510 * cfgloopmanip.c: Likewise.
7511 * cfgrtl.c: Likewise.
7512 * cgraph.c: Likewise.
7513 * cgraphbuild.c: Likewise.
7514 * cgraphclones.c: Likewise.
7515 * cgraphunit.c: Likewise.
7516 * cilk-common.c: Likewise.
7517 * combine-stack-adj.c: Likewise.
7518 * combine.c: Likewise.
7519 * compare-elim.c: Likewise.
7520 * convert.c: Likewise.
7521 * coverage.c: Likewise.
7522 * cppbuiltin.c: Likewise.
7523 * cprop.c: Likewise.
7524 * cse.c: Likewise.
7525 * cselib.c: Likewise.
7526 * data-streamer-in.c: Likewise.
7527 * data-streamer-out.c: Likewise.
7528 * data-streamer.c: Likewise.
7529 * dbxout.c: Likewise.
7530 * dce.c: Likewise.
7531 * ddg.c: Likewise.
7532 * debug.c: Likewise.
7533 * df-core.c: Likewise.
7534 * df-problems.c: Likewise.
7535 * df-scan.c: Likewise.
7536 * df.h: Likewise.
7537 * dfp.c: Likewise.
7538 * dojump.c: Likewise.
7539 * dominance.c: Likewise.
7540 * domwalk.c: Likewise.
7541 * double-int.c: Likewise.
7542 * dse.c: Likewise.
7543 * dumpfile.c: Likewise.
7544 * dwarf2asm.c: Likewise.
7545 * dwarf2cfi.c: Likewise.
7546 * dwarf2out.c: Likewise.
7547 * dwarf2out.h: Likewise.
7548 * emit-rtl.c: Likewise.
7549 * et-forest.c: Likewise.
7550 * except.c: Likewise.
7551 * explow.c: Likewise.
7552 * expmed.c: Likewise.
7553 * expr.c: Likewise.
7554 * final.c: Likewise.
7555 * fixed-value.c: Likewise.
7556 * fold-const.c: Likewise.
7557 * function.c: Likewise.
7558 * fwprop.c: Likewise.
7559 * gcc-plugin.h: Likewise.
7560 * gcse.c: Likewise.
7561 * generic-match-head.c: Likewise.
7562 * ggc-page.c: Likewise.
7563 * gimple-builder.c: Likewise.
7564 * gimple-expr.c: Likewise.
7565 * gimple-fold.c: Likewise.
7566 * gimple-iterator.c: Likewise.
7567 * gimple-low.c: Likewise.
7568 * gimple-match-head.c: Likewise.
7569 * gimple-pretty-print.c: Likewise.
7570 * gimple-ssa-isolate-paths.c: Likewise.
7571 * gimple-ssa-strength-reduction.c: Likewise.
7572 * gimple-streamer-in.c: Likewise.
7573 * gimple-streamer-out.c: Likewise.
7574 * gimple-streamer.h: Likewise.
7575 * gimple-walk.c: Likewise.
7576 * gimple.c: Likewise.
7577 * gimplify-me.c: Likewise.
7578 * gimplify.c: Likewise.
7579 * godump.c: Likewise.
7580 * graph.c: Likewise.
7581 * graphite-blocking.c: Likewise.
7582 * graphite-dependences.c: Likewise.
7583 * graphite-interchange.c: Likewise.
7584 * graphite-isl-ast-to-gimple.c: Likewise.
7585 * graphite-optimize-isl.c: Likewise.
7586 * graphite-poly.c: Likewise.
7587 * graphite-scop-detection.c: Likewise.
7588 * graphite-sese-to-poly.c: Likewise.
7589 * graphite.c: Likewise.
7590 * haifa-sched.c: Likewise.
7591 * hooks.h: Likewise.
7592 * hw-doloop.c: Likewise.
7593 * ifcvt.c: Likewise.
7594 * incpath.c: Likewise.
7595 * init-regs.c: Likewise.
7596 * internal-fn.c: Likewise.
7597 * ipa-chkp.c: Likewise.
7598 * ipa-comdats.c: Likewise.
7599 * ipa-cp.c: Likewise.
7600 * ipa-devirt.c: Likewise.
7601 * ipa-icf-gimple.c: Likewise.
7602 * ipa-icf.c: Likewise.
7603 * ipa-inline-analysis.c: Likewise.
7604 * ipa-inline-transform.c: Likewise.
7605 * ipa-inline.c: Likewise.
7606 * ipa-polymorphic-call.c: Likewise.
7607 * ipa-profile.c: Likewise.
7608 * ipa-prop.c: Likewise.
7609 * ipa-pure-const.c: Likewise.
7610 * ipa-ref.c: Likewise.
7611 * ipa-reference.c: Likewise.
7612 * ipa-split.c: Likewise.
7613 * ipa-utils.c: Likewise.
7614 * ipa-visibility.c: Likewise.
7615 * ipa.c: Likewise.
7616 * ira-build.c: Likewise.
7617 * ira-color.c: Likewise.
7618 * ira-conflicts.c: Likewise.
7619 * ira-costs.c: Likewise.
7620 * ira-emit.c: Likewise.
7621 * ira-lives.c: Likewise.
7622 * ira.c: Likewise.
7623 * jump.c: Likewise.
7624 * langhooks.c: Likewise.
7625 * lcm.c: Likewise.
7626 * loop-doloop.c: Likewise.
7627 * loop-init.c: Likewise.
7628 * loop-invariant.c: Likewise.
7629 * loop-iv.c: Likewise.
7630 * loop-unroll.c: Likewise.
7631 * lower-subreg.c: Likewise.
7632 * lra-assigns.c: Likewise.
7633 * lra-coalesce.c: Likewise.
7634 * lra-constraints.c: Likewise.
7635 * lra-eliminations.c: Likewise.
7636 * lra-lives.c: Likewise.
7637 * lra-remat.c: Likewise.
7638 * lra-spills.c: Likewise.
7639 * lra.c: Likewise.
7640 * lto-cgraph.c: Likewise.
7641 * lto-compress.c: Likewise.
7642 * lto-opts.c: Likewise.
7643 * lto-section-in.c: Likewise.
7644 * lto-section-out.c: Likewise.
7645 * lto-streamer-in.c: Likewise.
7646 * lto-streamer-out.c: Likewise.
7647 * lto-streamer.c: Likewise.
7648 * mcf.c: Likewise.
7649 * mode-switching.c: Likewise.
7650 * modulo-sched.c: Likewise.
7651 * omega.c: Likewise.
7652 * omp-low.c: Likewise.
7653 * optabs.c: Likewise.
7654 * opts-global.c: Likewise.
7655 * passes.c: Likewise.
7656 * plugin.c: Likewise.
7657 * postreload-gcse.c: Likewise.
7658 * postreload.c: Likewise.
7659 * predict.c: Likewise.
7660 * print-rtl.c: Likewise.
7661 * print-tree.c: Likewise.
7662 * profile.c: Likewise.
7663 * real.c: Likewise.
7664 * realmpfr.c: Likewise.
7665 * realmpfr.h: Likewise.
7666 * recog.c: Likewise.
7667 * ree.c: Likewise.
7668 * reg-stack.c: Likewise.
7669 * regcprop.c: Likewise.
7670 * reginfo.c: Likewise.
7671 * regrename.c: Likewise.
7672 * regs.h: Likewise.
7673 * regstat.c: Likewise.
7674 * reload.c: Likewise.
7675 * reload1.c: Likewise.
7676 * reorg.c: Likewise.
7677 * resource.c: Likewise.
7678 * rtl-chkp.c: Likewise.
7679 * rtlanal.c: Likewise.
7680 * rtlhooks.c: Likewise.
7681 * sanopt.c: Likewise.
7682 * sched-deps.c: Likewise.
7683 * sched-ebb.c: Likewise.
7684 * sched-rgn.c: Likewise.
7685 * sched-vis.c: Likewise.
7686 * sdbout.c: Likewise.
7687 * sel-sched-dump.c: Likewise.
7688 * sel-sched-ir.c: Likewise.
7689 * sel-sched.c: Likewise.
7690 * sese.c: Likewise.
7691 * shrink-wrap.c: Likewise.
7692 * shrink-wrap.h: Likewise.
7693 * simplify-rtx.c: Likewise.
7694 * stack-ptr-mod.c: Likewise.
7695 * statistics.c: Likewise.
7696 * stmt.c: Likewise.
7697 * stor-layout.c: Likewise.
7698 * store-motion.c: Likewise.
7699 * stringpool.c: Likewise.
7700 * symtab.c: Likewise.
7701 * target-globals.c: Likewise.
7702 * targhooks.c: Likewise.
7703 * toplev.c: Likewise.
7704 * tracer.c: Likewise.
7705 * trans-mem.c: Likewise.
7706 * tree-affine.c: Likewise.
7707 * tree-affine.h: Likewise.
7708 * tree-browser.c: Likewise.
7709 * tree-call-cdce.c: Likewise.
7710 * tree-cfg.c: Likewise.
7711 * tree-cfgcleanup.c: Likewise.
7712 * tree-chkp-opt.c: Likewise.
7713 * tree-chkp.c: Likewise.
7714 * tree-chrec.c: Likewise.
7715 * tree-complex.c: Likewise.
7716 * tree-data-ref.c: Likewise.
7717 * tree-dfa.c: Likewise.
7718 * tree-diagnostic.c: Likewise.
7719 * tree-dump.c: Likewise.
7720 * tree-eh.c: Likewise.
7721 * tree-emutls.c: Likewise.
7722 * tree-if-conv.c: Likewise.
7723 * tree-inline.c: Likewise.
7724 * tree-into-ssa.c: Likewise.
7725 * tree-iterator.c: Likewise.
7726 * tree-loop-distribution.c: Likewise.
7727 * tree-nested.c: Likewise.
7728 * tree-nrv.c: Likewise.
7729 * tree-object-size.c: Likewise.
7730 * tree-outof-ssa.c: Likewise.
7731 * tree-parloops.c: Likewise.
7732 * tree-phinodes.c: Likewise.
7733 * tree-predcom.c: Likewise.
7734 * tree-pretty-print.c: Likewise.
7735 * tree-pretty-print.h: Likewise.
7736 * tree-profile.c: Likewise.
7737 * tree-scalar-evolution.c: Likewise.
7738 * tree-sra.c: Likewise.
7739 * tree-ssa-address.c: Likewise.
7740 * tree-ssa-alias.c: Likewise.
7741 * tree-ssa-ccp.c: Likewise.
7742 * tree-ssa-coalesce.c: Likewise.
7743 * tree-ssa-copy.c: Likewise.
7744 * tree-ssa-copyrename.c: Likewise.
7745 * tree-ssa-dce.c: Likewise.
7746 * tree-ssa-dom.c: Likewise.
7747 * tree-ssa-dse.c: Likewise.
7748 * tree-ssa-forwprop.c: Likewise.
7749 * tree-ssa-ifcombine.c: Likewise.
7750 * tree-ssa-live.c: Likewise.
7751 * tree-ssa-loop-ch.c: Likewise.
7752 * tree-ssa-loop-im.c: Likewise.
7753 * tree-ssa-loop-ivcanon.c: Likewise.
7754 * tree-ssa-loop-ivopts.c: Likewise.
7755 * tree-ssa-loop-manip.c: Likewise.
7756 * tree-ssa-loop-niter.c: Likewise.
7757 * tree-ssa-loop-prefetch.c: Likewise.
7758 * tree-ssa-loop-unswitch.c: Likewise.
7759 * tree-ssa-loop.c: Likewise.
7760 * tree-ssa-loop.h: Likewise.
7761 * tree-ssa-math-opts.c: Likewise.
7762 * tree-ssa-operands.c: Likewise.
7763 * tree-ssa-phiopt.c: Likewise.
7764 * tree-ssa-phiprop.c: Likewise.
7765 * tree-ssa-pre.c: Likewise.
7766 * tree-ssa-propagate.c: Likewise.
7767 * tree-ssa-reassoc.c: Likewise.
7768 * tree-ssa-sccvn.c: Likewise.
7769 * tree-ssa-scopedtables.c: Likewise.
7770 * tree-ssa-sink.c: Likewise.
7771 * tree-ssa-strlen.c: Likewise.
7772 * tree-ssa-structalias.c: Likewise.
7773 * tree-ssa-tail-merge.c: Likewise.
7774 * tree-ssa-ter.c: Likewise.
7775 * tree-ssa-threadedge.c: Likewise.
7776 * tree-ssa-threadupdate.c: Likewise.
7777 * tree-ssa-uncprop.c: Likewise.
7778 * tree-ssa-uninit.c: Likewise.
7779 * tree-ssa.c: Likewise.
7780 * tree-ssanames.c: Likewise.
7781 * tree-stdarg.c: Likewise.
7782 * tree-streamer-in.c: Likewise.
7783 * tree-streamer-out.c: Likewise.
7784 * tree-streamer.c: Likewise.
7785 * tree-switch-conversion.c: Likewise.
7786 * tree-tailcall.c: Likewise.
7787 * tree-vect-data-refs.c: Likewise.
7788 * tree-vect-generic.c: Likewise.
7789 * tree-vect-loop-manip.c: Likewise.
7790 * tree-vect-loop.c: Likewise.
7791 * tree-vect-patterns.c: Likewise.
7792 * tree-vect-slp.c: Likewise.
7793 * tree-vect-stmts.c: Likewise.
7794 * tree-vectorizer.c: Likewise.
7795 * tree-vrp.c: Likewise.
7796 * tree.c: Likewise.
7797 * tsan.c: Likewise.
7798 * ubsan.c: Likewise.
7799 * valtrack.c: Likewise.
7800 * value-prof.c: Likewise.
7801 * var-tracking.c: Likewise.
7802 * varasm.c: Likewise.
7803 * varpool.c: Likewise.
7804 * vmsdbgout.c: Likewise.
7805 * vtable-verify.c: Likewise.
7806 * web.c: Likewise.
7807 * wide-int-print.cc: Likewise.
7808 * wide-int-print.h: Likewise.
7809 * wide-int.cc: Likewise.
7810 * xcoffout.c: Likewise.
7811 * config/aarch64/aarch64-builtins.c: Likewise.
7812 * config/aarch64/aarch64.c: Likewise.
7813 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7814 * config/alpha/alpha.c: Likewise.
7815 * config/arc/arc.c: Likewise.
7816 * config/arm/aarch-common.c: Likewise.
7817 * config/arm/arm-builtins.c: Likewise.
7818 * config/arm/arm-c.c: Likewise.
7819 * config/arm/arm.c: Likewise.
7820 * config/avr/avr-c.c: Likewise.
7821 * config/avr/avr-log.c: Likewise.
7822 * config/avr/avr.c: Likewise.
7823 * config/bfin/bfin.c: Likewise.
7824 * config/c6x/c6x.c: Likewise.
7825 * config/cr16/cr16.c: Likewise.
7826 * config/cris/cris.c: Likewise.
7827 * config/darwin-c.c: Likewise.
7828 * config/darwin.c: Likewise.
7829 * config/default-c.c: Likewise.
7830 * config/epiphany/epiphany.c: Likewise.
7831 * config/epiphany/mode-switch-use.c: Likewise.
7832 * config/epiphany/resolve-sw-modes.c: Likewise.
7833 * config/fr30/fr30.c: Likewise.
7834 * config/frv/frv.c: Likewise.
7835 * config/ft32/ft32.c: Likewise.
7836 * config/glibc-c.c: Likewise.
7837 * config/h8300/h8300.c: Likewise.
7838 * config/i386/i386-c.c: Likewise.
7839 * config/i386/i386.c: Likewise.
7840 * config/i386/msformat-c.c: Likewise.
7841 * config/i386/winnt-cxx.c: Likewise.
7842 * config/i386/winnt-stubs.c: Likewise.
7843 * config/i386/winnt.c: Likewise.
7844 * config/ia64/ia64-c.c: Likewise.
7845 * config/ia64/ia64.c: Likewise.
7846 * config/iq2000/iq2000.c: Likewise.
7847 * config/lm32/lm32.c: Likewise.
7848 * config/m32c/m32c-pragma.c: Likewise.
7849 * config/m32c/m32c.c: Likewise.
7850 * config/m32r/m32r.c: Likewise.
7851 * config/m68k/m68k.c: Likewise.
7852 * config/mcore/mcore.c: Likewise.
7853 * config/mep/mep-pragma.c: Likewise.
7854 * config/mep/mep.c: Likewise.
7855 * config/microblaze/microblaze-c.c: Likewise.
7856 * config/microblaze/microblaze.c: Likewise.
7857 * config/mips/mips.c: Likewise.
7858 * config/mmix/mmix.c: Likewise.
7859 * config/mn10300/mn10300.c: Likewise.
7860 * config/moxie/moxie.c: Likewise.
7861 * config/msp430/msp430-c.c: Likewise.
7862 * config/msp430/msp430.c: Likewise.
7863 * config/nds32/nds32-cost.c: Likewise.
7864 * config/nds32/nds32-fp-as-gp.c: Likewise.
7865 * config/nds32/nds32-intrinsic.c: Likewise.
7866 * config/nds32/nds32-isr.c: Likewise.
7867 * config/nds32/nds32-md-auxiliary.c: Likewise.
7868 * config/nds32/nds32-memory-manipulation.c: Likewise.
7869 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7870 * config/nds32/nds32-predicates.c: Likewise.
7871 * config/nds32/nds32.c: Likewise.
7872 * config/nios2/nios2.c: Likewise.
7873 * config/nvptx/nvptx.c: Likewise.
7874 * config/pa/pa.c: Likewise.
7875 * config/pdp11/pdp11.c: Likewise.
7876 * config/rl78/rl78-c.c: Likewise.
7877 * config/rl78/rl78.c: Likewise.
7878 * config/rs6000/rs6000-c.c: Likewise.
7879 * config/rs6000/rs6000.c: Likewise.
7880 * config/rx/rx.c: Likewise.
7881 * config/s390/s390-c.c: Likewise.
7882 * config/s390/s390.c: Likewise.
7883 * config/sh/sh-c.c: Likewise.
7884 * config/sh/sh-mem.cc: Likewise.
7885 * config/sh/sh.c: Likewise.
7886 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7887 * config/sh/sh_treg_combine.cc: Likewise.
7888 * config/sol2-c.c: Likewise.
7889 * config/sol2-cxx.c: Likewise.
7890 * config/sol2-stubs.c: Likewise.
7891 * config/sol2.c: Likewise.
7892 * config/sparc/sparc-c.c: Likewise.
7893 * config/sparc/sparc.c: Likewise.
7894 * config/spu/spu-c.c: Likewise.
7895 * config/spu/spu.c: Likewise.
7896 * config/stormy16/stormy16.c: Likewise.
7897 * config/tilegx/mul-tables.c: Likewise.
7898 * config/tilegx/tilegx-c.c: Likewise.
7899 * config/tilegx/tilegx.c: Likewise.
7900 * config/tilepro/mul-tables.c: Likewise.
7901 * config/tilepro/tilepro-c.c: Likewise.
7902 * config/tilepro/tilepro.c: Likewise.
7903 * config/v850/v850-c.c: Likewise.
7904 * config/v850/v850.c: Likewise.
7905 * config/vax/vax.c: Likewise.
7906 * config/visium/visium.c: Likewise.
7907 * config/vms/vms-c.c: Likewise.
7908 * config/vms/vms.c: Likewise.
7909 * config/vxworks.c: Likewise.
7910 * config/winnt-c.c: Likewise.
7911 * config/xtensa/xtensa.c: Likewise.
7912 * common/config/bfin/bfin-common.c: Likewise.
7913
7914 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
7915
7916 * tree.h (tree_code_for_canonical_type_merging): New function.
7917 * tree.c (gimple_canonical_types_compatible_p): Use
7918 tree_code_for_canonical_type_merging..
7919
7920 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7921
7922 PR c++/66192
7923 PR target/66200
7924 * doc/tm.texi: Regenerate.
7925 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
7926 * target.def (TARGET_RELAXED_ORDERING): Likewise.
7927 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
7928 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
7929 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
7930 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
7931 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
7932 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
7933 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
7934
7935 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7936
7937 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
7938 register fma steering pass.
7939 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
7940 AARCH64_TUNE_FMA_STEERING.
7941
7942 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
7943
7944 * tree.c (verify_type_variant): Verify that type and variant is
7945 compatible.
7946 (gimple_canonical_types_compatible_p): Look for main variants.
7947
7948 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7949
7950 * config.gcc (powerpc*-*-*): Add support for a new configure
7951 option --with-advance-toolchain=<xxx> which overrides using the
7952 default header files, libraries and dynamic linker.
7953
7954 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
7955 specs to support the configure --with-advance-toolchain=<xxx>
7956 option.
7957 (INCLUDE_EXTRA_SPEC): Likewise.
7958 (LINK_OS_EXTRA_SPEC32): Likewise.
7959 (LINK_OK_EXTRA_SPEC64): Likewise.
7960 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
7961 (DYNAMIC_LINKER_PREFIX): Likewise.
7962 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
7963 toolchain support.
7964 (GLIBC_DYNAMIC_LINKER32): Likewise.
7965 (GLIBC_DYNAMIC_LINKER64): Likewise.
7966 (LINK_OS_LINUX_SPEC32): Likewise.
7967 (LINK_OS_LINUX_SPEC64): Likewise.
7968
7969 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
7970 configuration option.
7971
7972 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
7973
7974 PR target/66275
7975 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
7976 to determine current function ABI.
7977 (ix86_function_value_regno_p): Ditto.
7978
7979 2015-06-03 Martin Liska <mliska@suse.cz>
7980
7981 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
7982 * bitmap.h (struct bitmap_usage): Likewise.
7983 * ggc-common.c (struct ggc_usage): Likewise.
7984 * mem-stats.h (struct mem_location): Likewise.
7985 (struct mem_usage): Likewise.
7986 * vec.c (struct vec_usage): Likewise.
7987
7988 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
7989
7990 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
7991 -Bsymbolic.
7992
7993 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
7994
7995 * doc/plugins.texi (enum plugin_event): New event.
7996 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
7997 and PLUGIN_FINISH_FUNCTION.
7998 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
7999 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8000
8001 2015-06-03 Richard Biener <rguenther@suse.de>
8002
8003 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8004 compute GROUP_GAP for the first element.
8005 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8006 on in-group gaps.
8007
8008 2015-06-03 Nick Clifton <nickc@redhat.com>
8009
8010 * config/rl78/rl78-real.md: Add peepholes to avoid a register
8011 copy when calling a function.
8012 * config/rl78/rl78.c (need_to_save): Do not push the frame
8013 pointer in an interrupt handler prologue if it is never used.
8014
8015 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8016
8017 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8018
8019 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8020
8021 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8022 reference when cloning alias node.
8023
8024 2015-06-03 Martin Liska <mliska@suse.cz>
8025
8026 * alloc-pool.h (struct pool_usage): Correct space padding.
8027 * ggc-page.c (ggc_print_statistics): Align columns in a report.
8028 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8029 * tree.c (dump_tree_statistics): Align columns in a report.
8030
8031 2015-06-03 Martin Liska <mliska@suse.cz>
8032
8033 * alloc-pool.c (allocate_pool_descriptor): Remove.
8034 (struct pool_output_info): Likewise.
8035 (print_alloc_pool_statistics): Likewise.
8036 (dump_alloc_pool_statistics): Likewise.
8037 * alloc-pool.h (struct pool_usage): New struct.
8038 (pool_allocator::initialize): Change usage of memory statistics
8039 to a new interface.
8040 (pool_allocator::release): Likewise.
8041 (pool_allocator::allocate): Likewise.
8042 (pool_allocator::remove): Likewise.
8043 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8044 for a pool allocator.
8045 * mem-stats.h (struct mem_location): Add new ctor.
8046 (struct mem_usage): Add counter for number of
8047 instances.
8048 (mem_alloc_description::register_descriptor): New overload of
8049 * mem-stats.h (mem_location::to_string): New function.
8050 * bitmap.h (struct bitmap_usage): Use this new function.
8051 * ggc-common.c (struct ggc_usage): Likewise.
8052 the function.
8053
8054 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8055
8056 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8057 of GCC_INSN_FLAGS_H block.
8058
8059 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8060
8061 * explow.c (plus_constant): Update check after force_const_mem call
8062 to see if the value returned is not a NULL_RTX.
8063
8064 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8065
8066 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8067 remove instumentation thunks calling reachable functions.
8068 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8069 * lto/lto-partition.c (privatize_symbol_name_1): New.
8070 (privatize_symbol_name): Privatize both decl and orig_decl
8071 names for instrumented functions.
8072 * cgraph.c (cgraph_node::verify_node): Add transparent
8073 alias chain check for instrumented node.
8074
8075 2015-06-03 Marek Polacek <polacek@redhat.com>
8076
8077 PR c/64223
8078 PR c/29358
8079 * tree.c (attribute_value_equal): Handle attribute format.
8080 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8081
8082 2015-06-03 Richard Biener <rguenther@suse.de>
8083
8084 PR tree-optimization/63916
8085 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8086 Forward-propagate non-invariant addresses by splicing their
8087 reference ops if the result isn't going to be used by PRE.
8088 (vn_reference_lookup_3): Remove pointless assert.
8089
8090 2015-06-03 Richard Biener <rguenther@suse.de>
8091
8092 PR tree-optimization/66375
8093 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8094 add to the evolution before following SSA edges.
8095
8096 2015-06-03 Bin Cheng <bin.cheng@arm.com>
8097
8098 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8099 (dump_use, dump_cand, find_induction_variables): Pass new argument
8100 to dump_iv.
8101 (record_use): Preserve the ssa name information in IV.
8102
8103 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8104
8105 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8106 NO_MODE_TEST.
8107 (add_mode_tests): Don't add mode tests if the predicate only
8108 accepts scalar constant integers. Otherwise, allow the mode
8109 of "op" to be VOIDmode if the predicate does accept such integers.
8110
8111 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
8112
8113 PR target/66258
8114 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8115 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8116 (aarch64_secondary_reload): Likewise
8117 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8118 to !TARGET_FLOAT.
8119 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8120 Likewise.
8121
8122 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
8123 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8124
8125 PR target/65768
8126 * cprop.c (try_replace_reg): Check cost of constants before propagating.
8127
8128 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8129
8130 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8131 provide access to the IBM extended double floating point mode if
8132 long double is IEEE 128-bit floating point.
8133 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8134 point if long double is the IBM extended double type.
8135
8136 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8137 enable adding IEEE 128-bit floating point support.
8138 (-mfloat128-software): Likewise.
8139 (-mfloat128-sw): Likewise.
8140
8141 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8142 128-bit floating point types to occupy any register if
8143 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8144 -mfloat128-software is enabled.
8145 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8146 support.
8147 (rs6000_option_override_internal): Add -mfloat128-* support.
8148 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8149
8150 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8151 and float128 type nodes.
8152 (ieee128_float_type_node): Likewise.
8153 (ibm128_float_type_node): Likewise.
8154
8155 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8156
8157 PR target/66136
8158 * config/aarch64/geniterators.sh: Rewrite in awk.
8159
8160 2015-06-02 Martin Liska <mliska@suse.cz>
8161
8162 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8163 values to avoid -Wmaybe-uninitialized errors.
8164
8165 2015-06-02 Richard Biener <rguenther@suse.de>
8166
8167 PR debug/65549
8168 * dwarf2out.c (lookup_context_die): New function.
8169 (resolve_addr): Avoid forcing a full DIE for the
8170 target of a DW_TAG_GNU_call_site during late compilation.
8171 Instead create a stub DIE without a type if we have a
8172 context DIE present.
8173
8174 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8175
8176 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8177
8178 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8179
8180 PR tree-optimization/48052
8181 * cfgloop.h (struct control_iv): New.
8182 (struct loop): New field control_ivs.
8183 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8184 (number_of_iterations_lt): Set no_overflow information.
8185 (number_of_iterations_exit): Init control iv in niter struct.
8186 (record_control_iv): New.
8187 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8188 (loop_exits_before_overflow): New. Interface factored out of
8189 scev_probably_wraps_p.
8190 (scev_probably_wraps_p): Factor loop niter related code into
8191 loop_exits_before_overflow.
8192 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8193 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8194
8195 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8196
8197 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8198 the target doesn't belong to the current function.
8199
8200 2015-06-02 Marek Polacek <polacek@redhat.com>
8201
8202 PR middle-end/66345
8203 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8204 get_maxval_strlen does not produce an INTEGER_CST.
8205
8206 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8207
8208 * config/arc/constraints.md: Use lower-case names in match_code.
8209 * config/mmix/constraints.md: Likewise.
8210
8211 2015-06-02 Richard Biener <rguenther@suse.de>
8212
8213 PR tree-optimization/65961
8214 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8215 check and clarify dump message.
8216 (vect_build_slp_tree): If all children are built up from scalars
8217 build up the parent from scalars instead.
8218 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8219
8220 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8221
8222 PR other/65366
8223 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8224 instead of print ... .
8225
8226 2015-06-02 Alan Modra <amodra@gmail.com>
8227
8228 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8229 2014-08-11 change.
8230
8231 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8232
8233 PR tree-optimization/52563
8234 PR tree-optimization/62173
8235 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8236 (alloc_iv, set_iv): New parameter.
8237 (determine_biv_step): Delete.
8238 (find_bivs): Inline original determine_biv_step. Pass new
8239 argument to set_iv.
8240 (idx_find_step): Use no_overflow information for conversion.
8241 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8242 resolve_mixers handle folded_casts.
8243 (instantiate_scev_name): Change bool parameter to bool pointer.
8244 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8245 (instantiate_array_ref, instantiate_scev_not): Ditto.
8246 (instantiate_scev_3, instantiate_scev_2): Ditto.
8247 (instantiate_scev_1, instantiate_scev_r): Ditto.
8248 (instantiate_scev_convert, ): Change parameter. Pass argument
8249 to chrec_convert_aggressive.
8250 (instantiate_scev): Change argument.
8251 (resolve_mixers): New parameter and set it.
8252 (scev_const_prop): New argument.
8253 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8254 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8255 of chrec_conert_1.
8256 (chrec_convert): New parameter. Move definition below.
8257 (chrec_convert_aggressive): New parameter and set it. Call
8258 convert_affine_scev.
8259 * tree-chrec.h (chrec_convert): New parameter.
8260 (chrec_convert_aggressive): Ditto.
8261
8262 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8263
8264 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8265 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8266 the LHS of a no-return call if its type has variable size.
8267 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8268 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8269
8270 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8271
8272 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8273 * config.in: Regenerate.
8274
8275 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8276
8277 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8278 consecutive accesses within outer-loop with force_vectorize
8279 for references with zero step in inner-loop.
8280
8281 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8282
8283 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8284 rather than from gcc/build directory.
8285
8286 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8287
8288 PR target/65697
8289 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8290 for __sync memory models, emit initial loads and final barriers as
8291 appropriate.
8292
8293 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8294
8295 PR target/65697
8296 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8297 (aarch64_split_atomic_op): Check for __sync memory models, emit
8298 appropriate initial loads and final barriers.
8299
8300 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8301
8302 * Makefile.in: Fix gcov dependencies that should
8303 not point to a build folder.
8304
8305 2015-06-01 Richard Biener <rguenther@suse.de>
8306
8307 Revert
8308 2015-05-29 Richard Biener <rguenther@suse.de>
8309
8310 PR tree-optimization/66314
8311 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8312 parameter that says which loop the new block belongs to.
8313 (ssa_create_duplicates): Blocks duplicated for the threaded
8314 path belong to the loop of the thread destination.
8315
8316 2015-06-01 Martin Liska <mliska@suse.cz>
8317
8318 * sched-deps.c: Include pool-alloc.h before
8319 cselib.h header file is included.
8320
8321 2015-06-01 Richard Biener <rguenther@suse.de>
8322
8323 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8324 functions.
8325
8326 2015-06-01 Martin Liska <mliska@suse.cz>
8327
8328 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8329 a function local variable.
8330
8331 2015-06-01 Martin Liska <mliska@suse.cz>
8332
8333 * alloc-pool.c (create_alloc_pool): Remove.
8334 (empty_alloc_pool): Likewise.
8335 (free_alloc_pool): Likewise.
8336 (free_alloc_pool_if_empty): Likewise.
8337 (pool_alloc): Likewise.
8338 (pool_free): Likewise.
8339 * alloc-pool.h: Remove old declarations.
8340
8341 2015-06-01 Martin Liska <mliska@suse.cz>
8342
8343 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8344 (ira_create_object): Likewise.
8345 (ira_create_allocno): Likewise.
8346 (ira_create_live_range): Likewise.
8347 (copy_live_range): Likewise.
8348 (ira_finish_live_range): Likewise.
8349 (ira_free_allocno_costs): Likewise.
8350 (finish_allocno): Likewise.
8351 (finish_allocnos): Likewise.
8352 (initiate_prefs): Likewise.
8353 (ira_create_pref): Likewise.
8354 (finish_pref): Likewise.
8355 (finish_prefs): Likewise.
8356 (initiate_copies): Likewise.
8357 (ira_create_copy): Likewise.
8358 (finish_copy): Likewise.
8359 (finish_copies): Likewise.
8360 (finish_prefs): Likewise.
8361
8362 2015-06-01 Martin Liska <mliska@suse.cz>
8363
8364 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8365 (allocate_and_init_ipcp_value): Likewise.
8366 (ipcp_lattice::add_value): Likewise.
8367 (merge_agg_lats_step): Likewise.
8368 (ipcp_driver): Likewise.
8369 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8370 (ipa_free_all_structures_after_iinln): Likewise.
8371 * ipa-prop.h: Likewise.
8372
8373 2015-06-01 Martin Liska <mliska@suse.cz>
8374
8375 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8376 pool allocator.
8377 (set_hint_predicate): Likewise.
8378 (inline_summary_alloc): Likewise.
8379 (reset_inline_edge_summary): Likewise.
8380 (reset_inline_summary): Likewise.
8381 (set_cond_stmt_execution_predicate): Likewise.
8382 (set_switch_stmt_execution_predicate): Likewise.
8383 (compute_bb_predicates): Likewise.
8384 (estimate_function_body_sizes): Likewise.
8385 (inline_free_summary): Likewise.
8386
8387 2015-06-01 Martin Liska <mliska@suse.cz>
8388
8389 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8390 (ipa_edge_duplication_hook): Likewise.
8391 (ipa_free_all_structures_after_ipa_cp): Likewise.
8392 (ipa_free_all_structures_after_iinln): Likewise.
8393
8394 2015-06-01 Martin Liska <mliska@suse.cz>
8395
8396 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8397 (ipa_profile_generate_summary): Likewise.
8398 (ipa_profile_read_summary): Likewise.
8399 (ipa_profile): Likewise.
8400
8401 2015-06-01 Martin Liska <mliska@suse.cz>
8402
8403 * tree-ssa-structalias.c (new_var_info): Use new type-based
8404 pool allocator.
8405 (new_constraint): Likewise.
8406 (init_alias_vars): Likewise.
8407 (delete_points_to_sets): Likewise.
8408
8409 2015-06-01 Martin Liska <mliska@suse.cz>
8410
8411 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8412 (free_strinfo): Likewise.
8413 (pass_strlen::execute): Likewise.
8414
8415 2015-06-01 Martin Liska <mliska@suse.cz>
8416
8417 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8418 pool allocator.
8419 (vn_reference_insert_pieces): Likewise.
8420 (vn_phi_insert): Likewise.
8421 (visit_reference_op_call): Likewise.
8422 (copy_phi): Likewise.
8423 (copy_reference): Likewise.
8424 (process_scc): Likewise.
8425 (allocate_vn_table): Likewise.
8426 (free_vn_table): Likewise.
8427
8428 2015-06-01 Martin Liska <mliska@suse.cz>
8429
8430 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8431 pool allocator.
8432 (add_repeat_to_ops_vec): Likewise.
8433 (get_ops): Likewise.
8434 (maybe_optimize_range_tests): Likewise.
8435 (init_reassoc): Likewise.
8436 (fini_reassoc): Likewise.
8437
8438 2015-06-01 Martin Liska <mliska@suse.cz>
8439
8440 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8441 pool allocator.
8442 (bitmap_set_new): Likewise.
8443 (get_or_alloc_expr_for_constant): Likewise.
8444 (get_or_alloc_expr_for): Likewise.
8445 (phi_translate_1): Likewise.
8446 (compute_avail): Likewise.
8447 (init_pre): Likewise.
8448 (fini_pre): Likewise.
8449
8450 2015-06-01 Martin Liska <mliska@suse.cz>
8451
8452 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8453 (delete_dep_node): Likewise.
8454 (create_deps_list): Likewise.
8455 (free_deps_list): Likewise.
8456 (sched_deps_init): Likewise.
8457 (sched_deps_finish): Likewise.
8458
8459 2015-06-01 Martin Liska <mliska@suse.cz>
8460
8461 * regcprop.c (free_debug_insn_changes): Use new type-based
8462 pool allocator.
8463 (replace_oldest_value_reg): Likewise.
8464 (pass_cprop_hardreg::execute): Likewise.
8465
8466 2015-06-01 Martin Liska <mliska@suse.cz>
8467
8468 * ira-build.c (initiate_cost_vectors): Use new type-based
8469 pool allocator.
8470 (ira_allocate_cost_vector): Likewise.
8471 (ira_free_cost_vector): Likewise.
8472 (finish_cost_vectors): Likewise.
8473
8474 2015-06-01 Martin Liska <mliska@suse.cz>
8475
8476 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8477 pool allocator.
8478 (free_sched_pools): Likewise.
8479 * sel-sched-ir.h (_list_alloc): Likewise.
8480 (_list_remove): Likewise.
8481
8482 2015-06-01 Martin Liska <mliska@suse.cz>
8483
8484 * stmt.c (add_case_node): Use new type-based pool allocator.
8485 (expand_case): Likewise.
8486 (expand_sjlj_dispatch_table): Likewise.
8487
8488 2015-06-01 Martin Liska <mliska@suse.cz>
8489
8490 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8491 (free_bb): Likewise.
8492 (pass_cse_reciprocals::execute): Likewise.
8493
8494 2015-06-01 Martin Liska <mliska@suse.cz>
8495
8496 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8497 (sra_deinitialize) Likewise.
8498 (create_access_1) Likewise.
8499 (build_accesses_from_assign) Likewise.
8500 (create_artificial_child_access) Likewise.
8501
8502 2015-06-01 Martin Liska <mliska@suse.cz>
8503
8504 * dse.c (get_group_info):Use new type-based pool allocator.
8505 (dse_step0) Likewise.
8506 (free_store_info) Likewise.
8507 (delete_dead_store_insn) Likewise.
8508 (free_read_records) Likewise.
8509 (record_store) Likewise.
8510 (replace_read) Likewise.
8511 (check_mem_read_rtx) Likewise.
8512 (scan_insn) Likewise.
8513 (dse_step1) Likewise.
8514 (dse_step7) Likewise.
8515
8516 2015-06-01 Martin Liska <mliska@suse.cz>
8517
8518 * df-scan.c (struct df_scan_problem_data):Use new type-based
8519 pool allocator.
8520 (df_scan_free_internal) Likewise.
8521 (df_scan_alloc) Likewise.
8522 (df_grow_reg_info) Likewise.
8523 (df_free_ref) Likewise.
8524 (df_insn_create_insn_record) Likewise.
8525 (df_mw_hardreg_chain_delete) Likewise.
8526 (df_insn_info_delete) Likewise.
8527 (df_free_collection_rec) Likewise.
8528 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8529 (df_sort_and_compress_mws) Likewise.
8530 (df_ref_create_structure) Likewise.
8531 (df_ref_record) Likewise.
8532
8533 2015-06-01 Martin Liska <mliska@suse.cz>
8534
8535 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8536 (df_chain_unlink_1) Likewise.
8537 (df_chain_unlink) Likewise.
8538 (df_chain_remove_problem) Likewise.
8539 (df_chain_alloc) Likewise.
8540 (df_chain_free) Likewise.
8541 * df.h (struct dataflow) Likewise.
8542
8543 2015-06-01 Martin Liska <mliska@suse.cz>
8544
8545 * cselib.c (new_elt_list):Use new type-based pool allocator.
8546 (new_elt_loc_list) Likewise.
8547 (unchain_one_elt_list) Likewise.
8548 (unchain_one_elt_loc_list) Likewise.
8549 (unchain_one_value) Likewise.
8550 (new_cselib_val) Likewise.
8551 (cselib_init) Likewise.
8552 (cselib_finish) Likewise.
8553
8554 2015-06-01 Martin Liska <mliska@suse.cz>
8555
8556 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8557 (sh_reorg) Likewise.
8558
8559 2015-06-01 Martin Liska <mliska@suse.cz>
8560
8561 * cfg.c (initialize_original_copy_tables):Use new type-based
8562 pool allocator.
8563 (free_original_copy_tables) Likewise.
8564 (copy_original_table_clear) Likewise.
8565 (copy_original_table_set) Likewise.
8566
8567 2015-06-01 Martin Liska <mliska@suse.cz>
8568
8569 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8570 pool allocator.
8571 (asan_mem_ref_new) Likewise.
8572 (free_mem_ref_resources) Likewise.
8573
8574 2015-06-01 Martin Liska <mliska@suse.cz>
8575
8576 * var-tracking.c (variable_htab_free):Use new type-based
8577 pool allocator.
8578 (attrs_list_clear) Likewise.
8579 (attrs_list_insert) Likewise.
8580 (attrs_list_copy) Likewise.
8581 (shared_hash_unshare) Likewise.
8582 (shared_hash_destroy) Likewise.
8583 (unshare_variable) Likewise.
8584 (var_reg_delete_and_set) Likewise.
8585 (var_reg_delete) Likewise.
8586 (var_regno_delete) Likewise.
8587 (drop_overlapping_mem_locs) Likewise.
8588 (variable_union) Likewise.
8589 (insert_into_intersection) Likewise.
8590 (canonicalize_values_star) Likewise.
8591 (variable_merge_over_cur) Likewise.
8592 (dataflow_set_merge) Likewise.
8593 (remove_duplicate_values) Likewise.
8594 (variable_post_merge_new_vals) Likewise.
8595 (dataflow_set_preserve_mem_locs) Likewise.
8596 (dataflow_set_remove_mem_locs) Likewise.
8597 (variable_from_dropped) Likewise.
8598 (variable_was_changed) Likewise.
8599 (set_slot_part) Likewise.
8600 (clobber_slot_part) Likewise.
8601 (delete_slot_part) Likewise.
8602 (loc_exp_insert_dep) Likewise.
8603 (notify_dependents_of_changed_value) Likewise.
8604 (emit_notes_for_differences_1) Likewise.
8605 (vt_emit_notes) Likewise.
8606 (vt_initialize) Likewise.
8607 (vt_finalize) Likewise.
8608
8609 2015-06-01 Martin Liska <mliska@suse.cz>
8610
8611 * ira-color.c (init_update_cost_records):Use new type-based
8612 pool allocator.
8613 (get_update_cost_record) Likewise.
8614 (free_update_cost_record_list) Likewise.
8615 (finish_update_cost_records) Likewise.
8616 (initiate_cost_update) Likewise.
8617
8618 2015-06-01 Martin Liska <mliska@suse.cz>
8619
8620 * lra.c (init_insn_regs): Use new type-based pool allocator.
8621 (new_insn_reg) Likewise.
8622 (free_insn_reg) Likewise.
8623 (free_insn_regs) Likewise.
8624 (finish_insn_regs) Likewise.
8625 (init_insn_recog_data) Likewise.
8626 (init_reg_info) Likewise.
8627 (finish_reg_info) Likewise.
8628 (lra_free_copies) Likewise.
8629 (lra_create_copy) Likewise.
8630 (invalidate_insn_data_regno_info) Likewise.
8631
8632 2015-06-01 Martin Liska <mliska@suse.cz>
8633
8634 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8635 (free_live_range_list) Likewise.
8636 (create_live_range) Likewise.
8637 (copy_live_range) Likewise.
8638 (lra_merge_live_ranges) Likewise.
8639 (remove_some_program_points_and_update_live_ranges) Likewise.
8640 (lra_live_ranges_init) Likewise.
8641 (lra_live_ranges_finish) Likewise.
8642
8643 2015-06-01 Martin Liska <mliska@suse.cz>
8644
8645 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8646 (et_new_tree): Likewise.
8647 (et_free_tree): Likewise.
8648 (et_free_tree_force): Likewise.
8649 (et_free_pools): Likewise.
8650 (et_split): Likewise.
8651
8652 2015-06-01 Martin Liska <mliska@suse.cz>
8653
8654 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8655 to header file.
8656 * alloc-pool.h (pool_allocator::pool_allocator): New function.
8657 (pool_allocator::release): Likewise.
8658 (inline pool_allocator::release_if_empty): Likewise.
8659 (inline pool_allocator::~pool_allocator): Likewise.
8660 (pool_allocator::allocate): Likewise.
8661 (pool_allocator::remove): Likewise.
8662
8663 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8664
8665 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8666 in comment.
8667
8668 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8669
8670 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8671 to fusible_ops.
8672 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8673 (arm_macro_fusion_p): Likewise.
8674 (arm_macro_fusion_pair_p): Likewise.
8675
8676 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8677
8678 * config/aarch64/aarch64-protos.h (tune_params): Rename
8679 fuseable_ops to fusible_ops.
8680 * config/aarch64/aarch64.c (generic_tunings): Rename
8681 fuseable_ops to fusible_ops.
8682 (cortexa53_tunings): Likewise.
8683 (cortexa57_tunings): Likewise.
8684 (thunderx_tunings): Likewise.
8685 (xgene1_tunings): Likewise.
8686 (aarch64_macro_fusion_p): Likewise.
8687 (aarch64_macro_fusion_pair_p): Likewise.
8688
8689 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
8690
8691 * config/s390/driver-native.c: New file.
8692 * config/s390/x-native: New file.
8693 * config.host: Add new files for s390.
8694 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8695 and -march=native
8696 * config.gcc: Likewise.
8697 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8698 * config/s390/s390-opts.h (enum processor_type): Ditto.
8699 * config/s390/s390.c (s390_option_override): Catch unhandled
8700 PROCESSOR_NATIVE
8701
8702 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
8703
8704 PR target/65527
8705 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8706 redirection for instrumented calls.
8707 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8708 (append_compiler_options): Append -fcheck-pointer-bounds.
8709 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8710 (chkp_redirect_edge): New.
8711 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8712 (chkp_redirect_edge): New.
8713
8714 2015-06-01 Richard Biener <rguenther@suse.de>
8715
8716 PR tree-optimization/66280
8717 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8718 def-use walking.
8719
8720 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8721
8722 * config/aarch64/aarch64.md
8723 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8724 logic_shift_imm.
8725
8726 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8727
8728 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8729 Remove obsolete kludge.
8730
8731 2015-06-01 Richard Biener <rguenther@suse.de>
8732
8733 * tree-ssa-reassoc.c (get_rank): Simplify.
8734
8735 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
8736
8737 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8738 * configure: Regenerated.
8739
8740 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
8741
8742 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8743 issue (add space between string literal and macro).
8744 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8745
8746 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
8747
8748 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8749 implict or explicit -fPIE or -fpie.
8750
8751 2015-05-30 Mike Frysinger <vapier@gentoo.org>
8752
8753 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8754
8755 2015-05-28 DJ Delorie <dj@redhat.com>
8756
8757 * expmed.c (extract_bit_field_1): Avoid clobbering a
8758 yet-to-be-used base/index register.
8759
8760 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
8761
8762 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8763 (alias_stats): Add num_universal.
8764 (alias_set_subset_of): Special case pointers; be ready for NULL
8765 children.
8766 (alias_sets_conflict_p): Special case pointers; be ready for NULL
8767 children.
8768 (init_alias_set_entry): Break out from ...
8769 (record_alias_subset): ... here; propagate new fields;
8770 allocate children only when really needed.
8771 (get_alias_set): Do less generous pointer globbing.
8772 (dump_alias_stats_in_alias_c): Update statistics.
8773
8774 2015-05-30 Alan Modra <amodra@gmail.com>
8775
8776 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8777 correct block for use of r12.
8778 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8779
8780 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8781
8782 PR target/66215
8783 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8784 with -mhotpatch=.
8785
8786 2015-05-29 Jakub Jelinek <jakub@redhat.com>
8787
8788 PR tree-optimization/66142
8789 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8790 virtual phis that feed themselves.
8791
8792 2015-05-29 Richard Biener <rguenther@suse.de>
8793
8794 PR tree-optimization/66314
8795 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8796 parameter that says which loop the new block belongs to.
8797 (ssa_create_duplicates): Blocks duplicated for the threaded
8798 path belong to the loop of the thread destination.
8799
8800 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8801
8802 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8803 to cleanup-saved-temps.
8804 * doc/sourcebuild.texi (Clean up generated test files): Expand
8805 introduction.
8806 (dg-keep-saved-temps): Document new proc.
8807 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8808 cleanup-saved-temps): Remove.
8809
8810 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
8811
8812 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8813 gcc_AC_CHECK_DECLS.
8814 * configure: Regenerate.
8815
8816 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8817
8818 * config/nios2/linux.h (CPP_SPEC): Define.
8819
8820 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8821
8822 * config/microblaze/linux.h (CPP_SPEC): Define.
8823
8824 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8825
8826 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8827 -pthread is specified.
8828
8829 2015-05-28 Richard Biener <rguenther@suse.de>
8830
8831 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8832 (vect_fixup_scalar_cycles_with_patterns): Likewise.
8833 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8834 after pattern recog.
8835 (vect_create_epilog_for_reduction): Properly handle reductions
8836 with patterns.
8837 (vectorizable_reduction): Likewise.
8838 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8839 reduction chains.
8840 (vect_get_constant_vectors): Create the correct number of
8841 initial values for reductions.
8842 (vect_schedule_slp_instance): Handle reduction chains that are
8843 type changing properly.
8844 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8845
8846 2015-05-28 Richard Biener <rguenther@suse.de>
8847
8848 PR tree-optimization/66142
8849 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8850 values better in memcpy destination handling. Handle non-aliasing
8851 we discover here.
8852
8853 2015-05-28 Lawrence Velázquez <vq@larryv.me>
8854
8855 PR target/63810
8856 * config/darwin-c.c (version_components): New global enum.
8857 (parse_version, version_as_legacy_macro)
8858 (version_as_modern_macro, macosx_version_as_macro): New functions.
8859 (version_as_macro): Remove.
8860 (darwin_cpp_builtins): Use new function.
8861
8862 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
8863
8864 * builtins.c (expand_builtin_acc_on_device): Mark parameters
8865 with ATTRIBUTE_UNUSED.
8866
8867 2015-05-28 Julian Brown <julian@codesourcery.com>
8868
8869 PR libgomp/65742
8870
8871 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
8872 sequence for !ACCEL_COMPILER.
8873
8874 2015-05-28 Nick Clifton <nickc@redhat.com>
8875
8876 * config/rx/rx.c (push_regs): New function. Extracts code from...
8877 (rx_expand_prologue): ... here. Use push_regs to push even small
8878 spans of registers.
8879 (pop_regs): New function.
8880 (rx_expand_epilogue): Use pop_regs to pop even small spans of
8881 registers.
8882
8883 2015-05-28 Richard Biener <rguenther@suse.de>
8884
8885 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
8886 member.
8887 (SLP_INSTANCE_BODY_COST_VEC): Remove.
8888 (vect_update_slp_costs_according_to_vf): Likewise.
8889 (vect_slp_analyze_operations): Update prototype.
8890 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
8891 vect_update_slp_costs_according_to_vf, adjust.
8892 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
8893 (vect_analyze_slp_cost_1): Likewise.
8894 (vect_analyze_slp_cost): Likewise. Properly deal with
8895 widening reduction ops. Commit body costs.
8896 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
8897 cost for loops from here.
8898 (vect_slp_analyze_operations): But do it from here when
8899 the vectorization factor is known and stmts are analyzed.
8900 (vect_bb_vectorization_profitable_p): Simplify.
8901 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
8902 (vect_update_slp_costs_according_to_vf): Remove.
8903
8904 2015-05-27 Magnus Granberg <zorry@gentoo.org>
8905 H.J. Lu <hongjiu.lu@intel.com>
8906
8907 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
8908 (BUILD_CFLAGS): Likewise.
8909 (BUILD_CXXFLAGS): Likewise.
8910 (LINKER): Add @NO_PIE_FLAG@.
8911 (BUILD_LDFLAGS): Likewise.
8912 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
8913 --enable-default-pie.
8914 * common.opt (fPIE): Initialize to -1.
8915 (fpie): Likewise.
8916 (no-pie): New option.
8917 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
8918 * configure.ac: Add --enable-default-pie.
8919 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
8920 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
8921 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
8922 * gcc.c (NO_PIE_SPEC): New.
8923 (PIE_SPEC): Likewise.
8924 (NO_FPIE1_SPEC): Likewise.
8925 (FPIE1_SPEC): Likewise.
8926 (NO_FPIE2_SPEC): Likewise.
8927 (FPIE2_SPEC): Likewise.
8928 (NO_FPIE2_SPEC): Likewise.
8929 (FPIE_SPEC): Likewise.
8930 (NO_FPIE_SPEC): Likewise.
8931 (NO_FPIC1_SPEC): Likewise.
8932 (FPIC1_SPEC): Likewise.
8933 (NO_FPIC2_SPEC): Likewise.
8934 (FPIC2_SPEC): Likewise.
8935 (NO_FPIC2_SPEC): Likewise.
8936 (FPIC_SPEC): Likewise.
8937 (NO_FPIC_SPEC): Likewise.
8938 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
8939 (FPIE1_OR_FPIC1_SPEC): Likewise.
8940 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
8941 (FPIE2_OR_FPIC2_SPEC): Likewise.
8942 (NO_FPIE_AND_FPIC_SPEC): Likewise.
8943 (FPIE_OR_FPIC_SPEC): Likewise.
8944 (LD_PIE_SPEC): Likewise.
8945 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
8946 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
8947 * config/darwin.h (PIE_SPEC): Renamed to ...
8948 (DARWIN_PIE_SPEC): This.
8949 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
8950 * config/darwin9.h (PIE_SPEC): Renamed to ...
8951 (DARWIN_PIE_SPEC): This.
8952 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
8953 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8954 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
8955 FPIE2_OR_FPIC2_SPEC.
8956 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
8957 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
8958 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
8959 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8960 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8961 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8962 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
8963 * config/m32r/m32r.h (ASM_SPEC): Likewise.
8964 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
8965 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8966 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
8967 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
8968 * config/sparc/linux.h (ASM_SPEC): Likewise.
8969 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8970 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
8971 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
8972 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8973 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8974 * config/sparc/sparc.h (ASM_SPEC): Likewise.
8975 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
8976 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
8977 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
8978 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
8979 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
8980 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
8981 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
8982 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
8983 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
8984 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
8985 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
8986 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
8987 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8988 * config/vax/linux.h (ASM_SPEC): Likewise.
8989 * doc/install.texi: Document --enable-default-pie.
8990 * doc/invoke.texi: Document -no-pie.
8991 * config.in: Regenerated.
8992 * configure: Likewise.
8993
8994 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8995
8996 PR rtl-optimization/66168
8997 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
8998 can_move_invariant_reg.
8999
9000 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
9001
9002 PR target/66148
9003 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9004 REG_EQUAL note when doing insert.
9005
9006 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9007 instead of "%d" for 'o' operand.
9008
9009 2015-05-27 Nathan Sidwell <nathan@acm.org>
9010
9011 PR c++/66270
9012 * tree.c (build_pointer_type_for_mode): Canonical type does not
9013 inherit can_alias_all.
9014 (build_reference_type_for_mode): Likewise.
9015
9016 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
9017
9018 * expr.h (array_at_struct_end_p): Move to...
9019 (array_ref_element_size): Likewise.
9020 (component_ref_field_offset): Likewise.
9021 * tree.h (array_ref_element_size): ...here.
9022 (array_at_struct_end_p): Likewise.
9023 (component_ref_field_offset): Likewise.
9024 * expr.c (array_ref_element_size): Move to...
9025 (array_ref_low_bound): Likewise.
9026 (array_at_struct_end_p): Likewise.
9027 (array_ref_up_bound): Likewise.
9028 (component_ref_field_offset): Likewise.
9029 * tree.c (array_ref_element_size): ...here.
9030 (array_ref_low_bound): Likewise.
9031 (array_ref_up_bound): Likewise.
9032 (array_at_struct_end_p): Likewise.
9033 (component_ref_field_offset): Likewise.
9034
9035 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9036 Szabolcs Nagy <szabolcs.nagy@arm.com>
9037
9038 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9039
9040 2015-05-27 Jason Merrill <jason@redhat.com>
9041
9042 PR bootstrap/66304
9043 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9044 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9045 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9046
9047 2015-05-22 Aditya Kumar <hiraditya@msn.com>
9048
9049 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9050 is true.
9051
9052 * statistics.c (statistics_fini_pass): Print pass name.
9053
9054 2015-05-27 Richard Biener <rguenther@suse.de>
9055
9056 PR tree-optimization/66272
9057 Revert parts of
9058 2014-08-15 Richard Biener <rguenther@suse.de>
9059
9060 PR tree-optimization/62031
9061 * tree-data-ref.c (dr_analyze_indices): Do not set
9062 DR_UNCONSTRAINED_BASE.
9063 (dr_may_alias_p): All indirect accesses have to go the
9064 formerly DR_UNCONSTRAINED_BASE path.
9065 * tree-data-ref.h (struct indices): Remove
9066 unconstrained_base member.
9067 (DR_UNCONSTRAINED_BASE): Remove.
9068
9069 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
9070
9071 * dwarf2out.c: Remove block_map.
9072 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9073 (gen_lexical_block_die): Same.
9074 (dwarf2out_function_decl): Remove block_map use.
9075 (dwarf2out_c_finalize): Same.
9076 * tree-core.h (struct tree_block): Add die field.
9077 * tree.h (BLOCK_DIE): New.
9078
9079 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9080
9081 PR target/65358
9082 * expr.c (memory_load_overlap): New function.
9083 (emit_push_insn): When pushing partial args to the stack would
9084 clobber the register part load the overlapping part into a pseudo
9085 and put it into the hard reg after pushing. Change return type
9086 to bool. Add bool argument.
9087 * expr.h (emit_push_insn): Change return type to bool.
9088 Add bool argument.
9089 * calls.c (expand_call): Cancel sibcall optimization when encountering
9090 partial argument on targets with ARGS_GROW_DOWNWARD and
9091 !STACK_GROWS_DOWNWARD.
9092 (emit_library_call_value_1): Update callsite of emit_push_insn.
9093 (store_one_arg): Likewise.
9094
9095 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9096
9097 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9098
9099 2015-05-27 Martin Liska <mliska@suse.cz>
9100
9101 * Makefile.in: Add additional dependencies related to memory report
9102 enhancement.
9103 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9104 * bitmap.c (struct bitmap_descriptor_d): Remove.
9105 (struct loc): Likewise.
9106 (struct bitmap_desc_hasher): Likewise.
9107 (bitmap_desc_hasher::hash): Likewise.
9108 (bitmap_desc_hasher::equal): Likewise.
9109 (get_bitmap_descriptor): Likewise.
9110 (bitmap_register): User new memory descriptor API.
9111 (register_overhead): Likewise.
9112 (bitmap_find_bit): Register nsearches and search_iter statistics.
9113 (struct bitmap_output_info): Remove.
9114 (print_statistics): Likewise.
9115 (dump_bitmap_statistics): Use new memory descriptor.
9116 * bitmap.h (struct bitmap_usage): New class.
9117 * genmatch.c: Extend header file inclusion.
9118 * genpreds.c: Likewise.
9119 * ggc-common.c (struct ggc_usage): New class.
9120 (struct ggc_loc_desc_hasher): Remove.
9121 (ggc_loc_desc_hasher::hash): Likewise.
9122 (ggc_loc_desc_hasher::equal): Likewise.
9123 (struct ggc_ptr_hash_entry): Likewise.
9124 (struct ptr_hash_hasher): Likewise.
9125 (ptr_hash_hasher::hash): Likewise.
9126 (ptr_hash_hasher::equal): Likewise.
9127 (make_loc_descriptor): Likewise.
9128 (ggc_prune_ptr): Likewise.
9129 (dump_ggc_loc_statistics): Use new memory descriptor.
9130 (ggc_record_overhead): Likewise.
9131 (ggc_free_overhead): Likewise.
9132 (final_cmp_statistic): Remove.
9133 (cmp_statistic): Likewise.
9134 (ggc_add_statistics): Liekwise.
9135 (ggc_prune_overhead_list): Likewise.
9136 * hash-map-traits.h: New file.
9137 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9138 separate header file.
9139 * hash-set.h: Pass memory statistics info to ctor.
9140 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9141 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9142 (hash_table::~hash_table): Register memory release operation.
9143 (hash_table::alloc_entries): Handle memory allocation operation.
9144 (hash_table::expand): Likewise.
9145 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9146 file.
9147 (iterative_hash_host_wide_int): Likewise.
9148 * inchash.h (class hash): Likewise.
9149 * mem-stats-traits.h: New file.
9150 * mem-stats.h: New file.
9151 (mem_location): Add new class.
9152 (mem_usage): Likewise.
9153 (mem_alloc_description): Likewise.
9154 * sese.c: Add new header file inclusision.
9155 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9156 and hash_set.
9157 * tree-sra.c: Add new header file inclusision.
9158 * vec.c (struct vec_descriptor): Remove.
9159 (hash_descriptor): Likewise.
9160 (struct vec_usage): Likewise.
9161 (struct ptr_hash_entry): Likewise.
9162 (hash_ptr): Likewise.
9163 (eq_ptr): Likewise.
9164 (vec_prefix::register_overhead): Use new memory descriptor API.
9165 (vec_prefix::release_overhead): Likewise.
9166 (add_statistics): Remove.
9167 (dump_vec_loc_statistics): Use new memory descriptor API.
9168 * vec.h (struct vec_prefix): Likewise.
9169 (va_heap::reserve): Likewise.
9170 (va_heap::release): Likewise.
9171 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9172
9173 2015-05-27 Richard Biener <rguenther@suse.de>
9174
9175 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9176 earlier and remove ??? comment.
9177 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9178 and got called from loop analysis bail out. Always pass the SLP
9179 node to the vectorizable_* functions.
9180 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9181 the premature SLP check here.
9182 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9183 detected SLP stmts.
9184 (vect_detect_hybrid_slp_1): Likewise.
9185
9186 2015-05-26 Jeff Law <law@redhat.com>
9187
9188 * combine.c (find_split_point): Verify that the shift count is a
9189 constant when choosing (plus (ashift ...)) as a split point.
9190
9191 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9192 No functional changes.
9193
9194 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9195
9196 * ipa-polymorphic-call.c
9197 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9198 case when call target is already known.
9199
9200 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9201
9202 PR target/65979
9203 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9204 take into account the case that operands[1] and operands[2]
9205 are the same register.
9206
9207 2015-05-26 Michael Matz <matz@suse.de>
9208
9209 PR middle-end/66251
9210
9211 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9212 stores.
9213 (vect_create_vectorized_demotion_stmts): Always set
9214 STMT_VINFO_VEC_STMT, also with SLP.
9215 (vectorizable_store): Handle strided group stores.
9216
9217 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9218
9219 PR target/66049
9220 * config/aarch64/aarch64.md
9221 (*adds_shift_imm_<mode>): New pattern.
9222 (*subs_shift_imm_<mode>): Likewise.
9223 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9224 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9225 (*add_uxt<mode>_shift2): Likewise.
9226 (*add_uxtsi_shift2_uxtw): Likewise.
9227 (*sub_uxt<mode>_shift2): Likewise.
9228 (*sub_uxtsi_shift2_uxtw): Likewise.
9229
9230 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9231
9232 * config/rs6000/constraints.md (Y, U): Use match_test.
9233
9234 2015-05-26 Christian Bruel <christian.bruel@st.com>
9235
9236 PR target/52144
9237 * config/arm/arm.c (arm_option_check_internal)
9238 (arm_option_params_internal): Check opts->target_flags to set macros.
9239 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9240 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9241 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9242 (builtin_define): Replaced with def_or_undef_macro.
9243 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9244 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9245 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9246 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9247 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9248 (TARGET_ARM_FEATURE_LDREX_P)
9249 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9250 * config/arm/arm-c.c (def_or_undef_macro): New function.
9251 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9252
9253 2015-05-26 Christian Bruel <christian.bruel@st.com>
9254
9255 * c-common.h (builtin_define_with_int_value)
9256 (builtin_define_type_sizeof): Declare.
9257 * c-cppbuiltin.c (builtin_define_with_int_value)
9258 (builtin_define_type_sizeof): Externalize.
9259 (builtin_define_std): Cleanup declaration.
9260 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9261 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9262 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9263 (builtin_define, builtin_assert): New macros.
9264
9265 2015-05-26 Richard Biener <rguenther@suse.de>
9266
9267 PR tree-optimization/66142
9268 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9269 MEM_REFs for the same base address.
9270
9271 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9272
9273 PR ipa/66181
9274 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9275
9276 2015-05-26 Jason Merrill <jason@redhat.com>
9277
9278 * configure.ac: Set CXXFLAGS for ISL test.
9279 * configure: Regenerate.
9280
9281 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9282 strstr and basename.
9283 * configure: Regenerate.
9284
9285 2015-05-26 Richard Biener <rguenther@suse.de>
9286
9287 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9288 X % C -> X & (C - 1) for C being a power-of two to ...
9289 * match.pd: ... patterns.
9290
9291 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9292
9293 * match.pd (swapped_tcc_comparison): New operator list.
9294 (-A CMP -B): New simplification.
9295 * fold-const.c (fold_comparison): Remove corresponding code.
9296
9297 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9298
9299 * caller-save.c (init_caller_save): Base temporary register numbers
9300 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9301 * cfgloopanal.c (init_set_costs): Likewise.
9302 * dojump.c (prefer_and_bit_test): Likewise.
9303 * expr.c (init_expr_target): Likewise.
9304 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9305 * lower-subreg.c (init_lower_subreg): Likewise.
9306 * postreload.c (reload_cse_regs_1): Likewise.
9307
9308 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9309
9310 * gensupport.h (compute_test_codes): Declare.
9311 * gensupport.c (compute_predicate_codes): Rename to...
9312 (compute_test_codes): ...this. Generalize error message.
9313 (process_define_predicate): Update accordingly.
9314 * genpreds.c (compute_maybe_allows): Delete.
9315 (add_constraint): Use compute_test_codes to determine whether
9316 something can accept a SUBREG, REG or MEM.
9317
9318 2015-05-26 Torvald Riegel <triegel@redhat.com>
9319
9320 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9321 'memory model' to align with C++11; fix description of memory orders;
9322 fix a few typos.
9323
9324 2015-05-26 Richard Biener <rguenther@suse.de>
9325
9326 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9327 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9328 detect whether we apply SLP. Remove call to
9329 vect_update_slp_costs_according_to_vf.
9330 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9331 vect_update_slp_costs_according_to_vf from here. Dispatch
9332 to vect_slp_analyze_operations to analyze SLP stmts.
9333 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9334 unused bb_vec_info parameter, adjust assert.
9335 (vect_slp_analyze_operations): Pass in the slp instance tree
9336 instead of bb_vec_info.
9337 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9338 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9339
9340 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9341
9342 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9343 Q_REGS. Expand comment.
9344 (REG_CLASS_NAMES): Ditto.
9345 (REG_CLASS_CONTENTS): Ditto.
9346
9347 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9348
9349 PR target/66274
9350 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9351 when LEGACY_INT_REGNO_P is processed.
9352
9353 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9354
9355 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9356
9357 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9358
9359 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9360 register if not marked dead/unused, before return.
9361
9362 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9363
9364 PR lto/66180
9365 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9366 is set; check for assembler name at LTO time.
9367 (type_in_anonymous_namespace): Remove hacks, check that all
9368 anonymous types are called "<anon>"
9369 (odr_type_p): Simplify; add check for "<anon>"
9370 (odr_subtypes_equivalent): Add odr_type_p check.
9371 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9372 assembler name.
9373
9374 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9375
9376 * ipa-utils.h (method_class_type): Remove.
9377 * cgraphunit.c (walk_polymorphic_call_targets): Use
9378 TYPE_METHOD_BASETYPE.
9379 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9380 on main variants only.
9381 (method_class_type): Remove.
9382 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9383 (build_type_inheritance_graph): Likewise.
9384 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9385 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9386 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9387
9388 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9389
9390 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9391 is_typedef_decl, typedef_variant_p): Constify.
9392 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9393 is_typedef_decl, typedef_variant_p): Constify.
9394
9395 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9396
9397 * defaults.h (gen_tablejump): New function.
9398 (HAVE_tablejump): Add default value.
9399 * expr.c: Adjust.
9400 * stmt.c: Likewise.
9401
9402 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9403
9404 * defaults.h (gen_store_multiple): New function.
9405 (HAVE_store_multiple): Add default value.
9406 * expr.c (move_block_from_reg): Adjust.
9407
9408 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9409
9410 * defaults.h (gen_load_multiple): New function.
9411 (HAVE_load_multiple): Add default value.
9412 * expr.c (move_block_to_reg): Adjust.
9413
9414 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9415
9416 * defaults.h (gen_mem_signal_fence): New function.
9417 (HAVE_mem_signal_fence): Add default value.
9418 * optabs.c: Adjust.
9419
9420 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9421
9422 * defaults.h (gen_memory_barrier): New function.
9423 (HAVE_memory_barrier): Add default value.
9424 * optabs.c: Adjust.
9425
9426 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9427
9428 * defaults.h (gen_mem_thread_fence): New function.
9429 (HAVE_mem_thread_fence): Add default definition.
9430 * optabs.c: Adjust.
9431
9432 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9433
9434 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9435 instead of if it is defined.
9436 (combine_simplify_rtx): Likewise.
9437 * lra-constraints.c (process_address_1): Likewise.
9438 * config/darwin.c: Adjust.
9439 * genconfig.c (main): Always define HAVE_lo_sum.
9440
9441 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9442
9443 * genmatch.c (parser::parse_operation): Reject expanding
9444 operator-list inside 'for'.
9445
9446 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9447
9448 * genmatch.c (parser::parse_for): Reject iterator if used as
9449 operator-list.
9450
9451 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9452
9453 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9454 after end of id-list.
9455
9456 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9457
9458 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9459 we do not try to compute canonical type for type that does not need
9460 alias set.
9461 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9462 FUNCITON_TYPE.
9463 * tree.h (type_with_alias_set_p): New.
9464
9465 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9466
9467 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9468 function attributes.
9469 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9470
9471 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9472
9473 * Makefile.in (check_gcc_parallelize): Delete.
9474 (lang_checks_parallelized): Update comment.
9475
9476 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9477
9478 PR rtl-optimization/66237
9479 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9480 location of an "as_a" cast.
9481
9482 2015-05-22 Jeff Law <law@redhat.com>
9483
9484 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9485 (peepholes with non-canonical RTL sources): Remove.
9486 (peepholes for indexed stores of FP regs in integer modes): Match and
9487 generate canonical RTL.
9488
9489 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9490
9491 PR tree-optimization/63387
9492 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9493 ((x ord x) & (y ord y) -> (x ord y),
9494 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9495 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9496 vectors like scalars.
9497
9498 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9499
9500 * convert.c (convert_to_integer, convert_to_vector): Include the
9501 types in the error message.
9502
9503 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9504
9505 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9506 simplifications.
9507
9508 2015-05-22 Jeff Law <law@redhat.com>
9509
9510 * config/pa/pa.md (integer_indexed_store splitters): Use
9511 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9512 insns -- adjusting the constant 2nd operand accordingly.
9513
9514 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9515 (plus (ashift X log2) Y) if it is a split point.
9516
9517 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9518 out of hppa_legitimize_address to handle both forms of a multiply
9519 by 2, 4 or 8.
9520 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9521 Always generate the ASHIFT variant as the result is not directly
9522 used in a MEM. Update comments and refactor slightly to improve
9523 readability.
9524
9525 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9526
9527 PR target/65491
9528 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9529 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9530 (aarch64_composite_type_p): Return false if given type and mode are
9531 for a short vector.
9532
9533 2015-05-22 Richard Biener <rguenther@suse.de>
9534
9535 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9536 member.
9537 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9538 patterns when determining whether SLP is pure.
9539 (vect_is_slp_reduction): Remove check for pattern stmts.
9540 (vect_is_simple_reduction_1): Remove dead code.
9541 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9542 (vect_get_and_check_slp_defs): Pass in the stmt number.
9543 Allow the first def in a reduction to be not a pattern stmt when
9544 the rest of the stmts def are patterns.
9545 (vect_build_slp_tree_1): Allow tcc_expression codes like
9546 SAD_EXPR and DOT_PROD_EXPR.
9547 (vect_build_slp_tree): Adjust.
9548 (vect_analyze_slp): Refactor and move BB vect error message ...
9549 (vect_slp_analyze_bb_1): ... here.
9550
9551 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9552
9553 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9554 for CSWTCH temporary.
9555
9556 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9557
9558 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9559 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9560 unknown unspecs.
9561
9562 2015-05-22 Richard Biener <rguenther@suse.de>
9563
9564 PR tree-optimization/66251
9565 * tree-vect-stmts.c (vectorizable_conversion): Properly
9566 set STMT_VINFO_VEC_STMT even for the SLP case.
9567
9568 2015-05-22 Marek Polacek <polacek@redhat.com>
9569
9570 * doc/extend.texi: Use @pxref instead of @xref.
9571
9572 2015-05-22 hiraditya <hiraditya@msn.com>
9573
9574 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9575 redundant if.
9576
9577 2015-05-22 Richard Biener <rguenther@suse.de>
9578
9579 PR tree-optimization/65701
9580 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9581 Move peeling cost models into one place. Peel for alignment
9582 for single loads only if an aligned load is cheaper than
9583 an unaligned load.
9584
9585 2015-05-22 Marek Polacek <polacek@redhat.com>
9586
9587 PR c/47043
9588 * doc/extend.texi (Enumerator Attributes): New section.
9589 Document syntax of enumerator attributes.
9590
9591 2015-05-22 Richard Biener <rguenther@suse.de>
9592
9593 * tree-vect-loop.c (get_reduction_op): New function.
9594 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9595 Make ready for BB reductions.
9596 (vect_create_epilog_for_reduction): Use get_reduction_op.
9597 (vectorizable_reduction): Init reduc_index to a valid value.
9598 Adjust vect_model_reduction_cost call.
9599 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9600 operand for reduction defaults. Add SAD_EXPR support.
9601 Assert we have a neutral op for SLP reductions.
9602 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9603 walking pattern stmt ops only recurse to SSA names.
9604
9605 2015-05-22 Richard Biener <rguenther@suse.de>
9606
9607 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9608 assert with guard, remove check on detected reduction.
9609 (vect_recog_sad_pattern): Likewise.
9610 (vect_recog_widen_sum_pattern): Likewise.
9611
9612 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9613
9614 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9615 __always_inline__ attribute.
9616 (vaesdq_u8): Likewise.
9617 (vaesmcq_u8): Likewise.
9618 (vaesimcq_u8): Likewise.
9619 (vsha1cq_u32): Likewise.
9620 (vsha1mq_u32): Likewise.
9621 (vsha1pq_u32): Likewise.
9622 (vsha1h_u32): Likewise.
9623 (vsha1su0q_u32): Likewise.
9624 (vsha1su1q_u32): Likewise.
9625 (vsha256hq_u32): Likewise.
9626 (vsha256h2q_u32): Likewise.
9627 (vsha256su0q_u32): Likewise.
9628 (vsha256su1q_u32): Likewise.
9629 (vmull_p64): Likewise.
9630 (vmull_high_p64): Likewise.
9631
9632 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9633
9634 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9635 preprocessor.
9636 * output.h: Likewise.
9637 * genconfig.c (main): Alwways define HAVE_peephole.
9638 * genpeep.c: Don't emit checks of HAVE_peephole.
9639
9640 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9641
9642 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9643 check HAVE_conditional_move with the preprocessor.
9644
9645 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9646
9647 * genconfig.c (main): Always define HAVE_conditional_move.
9648 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9649 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9650 is defined.
9651
9652 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9653
9654 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9655 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9656 and FRAME_POINTER_REGNUM with the preprocessor.
9657
9658 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9659
9660 * defaults.h: Add default for STACK_PUSH_CODE.
9661 * expr.c: Don't redefine STACK_PUSH_CODE.
9662 * recog.c: Likewise.
9663
9664 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9665
9666 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9667 sched-deps.c: Use if instead of preprocessor checks with
9668 STACK_GROWS_DOWNWARD.
9669
9670 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9671
9672 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9673 is defined.
9674 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9675 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9676 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9677 * doc/tm.texi: Regenerate.
9678
9679 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
9680
9681 PR target/66232
9682 * config/i386/constraints.md (Bg): New constraint for GOT memory
9683 operand.
9684 * config/i386/i386.md (*call_got_x32): New pattern.
9685 (*call_value_got_x32): Likewise.
9686 * config/i386/predicates.md (GOT_memory_operand): New predicate.
9687
9688 2015-05-21 Jakub Jelinek <jakub@redhat.com>
9689
9690 PR tree-optimization/66233
9691 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9692 Simplify.
9693
9694 2015-05-21 Jeff Law <law@redhat.com>
9695
9696 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9697 than MULT for shadd sequences.
9698
9699 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
9700
9701 * alias.c (alias_stats): New static var.
9702 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9703 (dump_alias_stats_in_alias_c): New function.
9704 * alias.h (dump_alias_stats_in_alias_c): Declare.
9705 * tree-ssa-alias.c (dump_alias_stats): Call it.
9706
9707 2015-05-08 Michael Matz <matz@suse.de>
9708
9709 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9710 to strided_p.
9711 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9712 (STMT_VINFO_STRIDED_P): ... this.
9713 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9714 (vect_verify_datarefs_alignment): Likewise.
9715 (vect_enhance_data_refs_alignment): Likewise.
9716 (vect_analyze_data_ref_access): Likewise.
9717 (vect_analyze_data_refs): Accept strided stores.
9718 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9719 (vect_model_load_cost): Adjust for macro rename.
9720 (vectorizable_mask_load_store): Likewise.
9721 (vectorizable_load): Likewise.
9722 (vectorizable_store): Open code strided stores.
9723
9724 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9725
9726 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9727 Document sqrt_insn.
9728
9729 2015-05-21 Richard Biener <rguenther@suse.de>
9730
9731 PR c++/66211
9732 * match.pd: Guard pattern optimzing (int)(float)int
9733 conversions to apply only on GIMPLE.
9734
9735 2015-05-21 Jeff Law <law@redhat.com>
9736
9737 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9738 multiply-accumulate/shift-add insn generation.
9739
9740 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
9741
9742 PR target/54236
9743 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9744 operands[1] are the same.
9745
9746 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9747
9748 PR middle-end/66221
9749 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9750 build_distinct_type_copy to copy bounds.
9751
9752 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
9753
9754 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9755 Change to unsigned int.
9756
9757 2015-05-20 Jeff Law <law@redhat.com>
9758
9759 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9760 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9761 (pa_shadd_constant_p): Allow constants for shadd insns rather
9762 than valid scaling constants for memory addresses.
9763 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9764 * config/pa/predicates.md (mem_shadd_operand): New predicate.
9765 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9766 (shift-add insns using ASHIFT): New patterns.
9767
9768 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
9769
9770 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9771 feasible.
9772 (fix_up_fall_thru_edges): Likewise.
9773 (fix_crossing_conditional_branches): Likewise. Promote jump targets
9774 from to rtx_insn to rtx_code_label where feasible.
9775 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9776 gen_move_insn (returned type changed to rtx_insn).
9777 * builtins.c (expand_errno_check): Fix arguments of
9778 do_compare_rtx_and_jump (now expects rtx_code_label).
9779 (expand_builtin_acc_on_device): Likewise.
9780 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9781 invert_jump (now exprects rtx_jump_insn).
9782 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9783 (construct_init_block): Use rtx_code_label.
9784 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9785 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9786 calling redirect_jump.
9787 (patch_jump_insn): Likewise.
9788 (redirect_branch_edge): Likewise.
9789 (force_nonfallthru_and_redirect): Likewise.
9790 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9791 when suitable.
9792 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9793 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9794 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9795 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9796 to store the value retured by gen_label_rtx.
9797 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9798 rtx_jump_insn.
9799 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9800 (split_branches): Fix calls of redirect_jump.
9801 * dojump.c (jumpifnot): Promote argument type from rtx to
9802 rtx_code_label.
9803 (jumpifnot_1): Likewise.
9804 (jumpif): Likewise.
9805 (jumpif_1): Likewise.
9806 (do_jump_1): Likewise.
9807 (do_jump): Likewise. Use rtx_code_label when feasible.
9808 (do_jump_by_parts_greater_rtx): Likewise.
9809 (do_jump_by_parts_zero_rtx): Likewise.
9810 (do_jump_by_parts_equality_rtx): Likewise.
9811 (do_compare_rtx_and_jump): Likewise.
9812 * dojump.h: Update function prototypes.
9813 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9814 returns rtx_insn).
9815 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9816 rtx_jump_insn.
9817 (emit_label_before): Likewise.
9818 (emit_jump_insn_after_noloc): Likewise.
9819 (emit_jump_insn_after_setloc): Likewise.
9820 (emit_jump_insn_after): Likewise
9821 (emit_jump_insn_before_setloc): Likewise.
9822 (emit_jump_insn_before): Likewise.
9823 (emit_label_before): Promote return type to rtx_code_label.
9824 (emit_label): Likewise.
9825 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9826 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9827 gen_move_insn.
9828 (emit_stack_restore): Likewise.
9829 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9830 (do_cmp_and_jump): Likewise.
9831 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9832 from rtx to rtx_code_label.
9833 (gen_move_insn_uncast): New function.
9834 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9835 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9836 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9837 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9838 invert_jump_1 and redirect_jump_1.
9839 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9840 do_compare_rtx_and_jump.
9841 (expand_addsub_overflow): Likewise.
9842 (expand_neg_overflow): Likewise.
9843 (expand_mul_overflow): Likewise.
9844 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9845 return value of gen_move_insn.
9846 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9847 * loop-doloop.c (add_test): Use rtx_code_label.
9848 (doloop_modify): Likewise.
9849 (doloop_optimize): Likewise.
9850 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9851 * lra-constraints.c (emit_spill_move): Remove cast of value returned
9852 by gen_move_insn.
9853 (inherit_reload_reg): Add cast when calling dump_insn_slim.
9854 (split_reg): Likewise.
9855 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9856 gen_move_insn.
9857 * optabs.c (expand_binop_directly): Remove casts of values returned by
9858 maybe_gen_insn.
9859 (expand_unop_direct): Likewise.
9860 (expand_abs): Likewise.
9861 (maybe_emit_unop_insn): Likewise.
9862 (maybe_gen_insn): Promote return type to rtx_insn.
9863 * optabs.h: Update prototype of maybe_gen_insn.
9864 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
9865 redundant cast.
9866 * recog.c (struct peep2_insn_data): Promote type of insn field to
9867 rtx_insn.
9868 (peep2_reinit_state): Use NULL instead of NULL_RTX.
9869 (peep2_attempt): Remove casts of insn in peep2_insn_data.
9870 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
9871 * recog.h (struct insn_gen_fn): Promote return types of function
9872 pointers and operator ().from rtx to rtx_insn.
9873 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
9874 (fill_eager_delay_slots): Likewise.
9875 (relax_delay_slots): Likewise.
9876 (make_return_insns): Likewise.
9877 (dbr_schedule): Likewise.
9878 (optimize_skips): Likewise.
9879 (reorg_redirect_jump): Likewise.
9880 (fill_slots_from_thread): Likewise.
9881 * reorg.h: Update prototypes.
9882 * resource.c (find_dead_or_set_registers): Use dyn_cast to
9883 rtx_jump_insn instead of check. Use it's jump_target method.
9884 * rtl.h (rtx_jump_insn::jump_label): Define new method.
9885 (rtx_jump_insn::jump_target): Define new method.
9886 (rtx_jump_insn::set_jump_target): Define new method.
9887 * rtlanal.c (tablejump_p): Promote type of one local variable.
9888 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
9889 (sched_analyze_insn): Likewise.
9890 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
9891 (print_insn): Likewise.
9892 * stmt.c (label_rtx): Promote return type to rtx_insn.
9893 (force_label_rtx): Likewise.
9894 (jump_target_rtx): Define new function.
9895 (expand_label): Use it, get rid of one cast.
9896 (expand_naked_return): Promote rtx to rtx_code_label.
9897 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
9898 (expand_case): Use rtx_code_label instread of rtx where feasible.
9899 (expand_sjlj_dispatch_table): Likewise.
9900 (emit_case_nodes): Likewise.
9901 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
9902 * store-motion.c (insert_store): Make use of new return type of
9903 gen_move_insn and remove a cast.
9904 (replace_store_insn): Likewise.
9905
9906 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
9907
9908 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
9909 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
9910
9911 2015-05-20 Jeff Law <law@redhat.com>
9912
9913 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
9914 dispose of the jump thread path when the jump threading
9915 opportunity is cancelled.
9916
9917 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9918
9919 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
9920 when printing the caret character.
9921
9922 2015-05-20 Marek Polacek <polacek@redhat.com>
9923
9924 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
9925
9926 2015-05-20 Marek Polacek <polacek@redhat.com>
9927
9928 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
9929 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
9930 * gimple-fold.c (canonicalize_bool): Likewise.
9931 (same_bool_result_p): Likewise.
9932 * tree-if-conv.c (parse_predicate): Likewise.
9933
9934 2015-05-20 Marek Polacek <polacek@redhat.com>
9935
9936 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
9937 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
9938
9939 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9940
9941 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
9942 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
9943 values.
9944
9945 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
9946
9947 * config/mips/mips.h (micromips_globals): Declare.
9948
9949 2015-05-20 David Malcolm <dmalcolm@redhat.com>
9950
9951 * timevar.def (TV_INITIALIZE_RTL): New.
9952 * toplev.c (initialize_rtl): Use an auto_timevar to account this
9953 function's time to TV_INITIALIZE_RTL.
9954
9955 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
9956
9957 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
9958 gimple_build_nop calls.
9959 (chkp_find_bounds_for_elem): Likewise.
9960 (chkp_get_zero_bounds): Likewise.
9961 (chkp_get_none_bounds): Likewise.
9962 (chkp_get_bounds_by_definition): Likewise.
9963 (chkp_generate_extern_var_bounds): Likewise.
9964 (chkp_get_bounds_for_decl_addr): Likewise.
9965 (chkp_get_bounds_for_string_cst): Likewise.
9966
9967 2015-05-20 Bin Cheng <bin.cheng@arm.com>
9968
9969 PR tree-optimization/65447
9970 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
9971 (dump_use, dump_uses): Support to dump sub use.
9972 (record_use): New parameters to support sub use. Remove call to
9973 dump_use.
9974 (record_sub_use, record_group_use): New functions.
9975 (compute_max_addr_offset, split_all_small_groups): New functions.
9976 (group_address_uses, rewrite_use_address): New functions.
9977 (strip_offset): New declaration.
9978 (find_interesting_uses_address): Call record_group_use.
9979 (add_candidate): New assertion.
9980 (infinite_cost_p): Move definition forward.
9981 (add_costs): Check INFTY cost and return immediately.
9982 (get_computation_cost_at): Clear setup cost and dependent bitmap
9983 for sub uses.
9984 (determine_use_iv_cost_address): Compute cost for sub uses.
9985 (rewrite_use_address_1): Rename from old rewrite_use_address.
9986 (free_loop_data): Free sub uses.
9987 (tree_ssa_iv_optimize_loop): Call group_address_uses.
9988
9989 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9990 Jim Wilson <jim.wilson@linaro.org>
9991
9992 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
9993 new fields loadv and storev.
9994 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
9995 Initialize loadv and storev.
9996 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
9997 (cortexa53_extra_costs): Likewise.
9998 (cortexa57_extra_costs): Likewise.
9999 (xgene1_extra_costs): Likewise.
10000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10001 rtx_costs.
10002
10003 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10004
10005 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10006 storev.
10007 (cortexa8_extra_costs): Likewise.
10008 (cortexa5_extra_costs): Likewise.
10009 (cortexa7_extra_costs): Likewise.
10010 (cortexa12_extra_costs): Likewise.
10011 (cortexa15_extra_costs): Likewise.
10012 (v7m_extra_costs): Likewise.
10013
10014 2015-05-20 Jeff Law <law@redhat.com>
10015
10016 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10017 instead of open-coded version. Also delete the jump thread created
10018 within this function.
10019
10020 2015-05-20 Alan Modra <amodra@gmail.com>
10021
10022 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10023 stack adjusting insn. Formatting.
10024 (rs6000_emit_prologue): Track stack adjusting insn, and use of
10025 r12. If possible, emit first -fsplit-stack arg pointer insn
10026 before stack adjust. Don't use r12 to save cr if split-stack.
10027
10028 2015-05-20 Alan Modra <amodra@gmail.com>
10029
10030 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10031 Define.
10032 (rs6000_supports_split_stack): New function.
10033 * gcc/config/rs6000/rs6000.c (machine_function): Add
10034 split_stack_arg_pointer.
10035 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10036 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10037 rather than virtual_incoming_args_rtx.
10038 (rs6000_va_start): Likewise.
10039 (split_stack_arg_pointer_used_p): New function.
10040 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10041 (morestack_ref): New var.
10042 (gen_add3_const, rs6000_expand_split_stack_prologue,
10043 rs6000_internal_arg_pointer, rs6000_live_on_entry,
10044 rs6000_split_stack_space_check): New functions.
10045 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10046 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10047 (UNSPECV_SPLIT_STACK_RETURN): Define.
10048 (split_stack_prologue, load_split_stack_limit,
10049 load_split_stack_limit_di, load_split_stack_limit_si,
10050 split_stack_return, split_stack_space_check): New expands and insns.
10051 * gcc/config/rs6000/rs6000-protos.h
10052 (rs6000_expand_split_stack_prologue): Declare.
10053 (rs6000_split_stack_space_check): Declare.
10054
10055 2015-05-20 Alan Modra <amodra@gmail.com>
10056
10057 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10058 (direct_return): Test vrsave_size rather than vrsave_mask.
10059 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
10060 (rs6000_emit_epilogue): Likewise.
10061
10062 2015-05-20 Alan Modra <amodra@gmail.com>
10063
10064 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10065 when not saving registers.
10066 (debug_stack_info): Adjust to omit printing unused offsets,
10067 as before.
10068 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10069 expression.
10070
10071 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10072
10073 PR c++/65835
10074 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10075 value_type to const char *.
10076
10077 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
10078
10079 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10080 to build a biarch toolchain again.
10081
10082 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10083
10084 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10085 or implicit declarations.
10086 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10087 into it.
10088 (get_odr_type): Check type has linkage before adding bases.
10089 (register_odr_type): Check that type has linkage before adding it.
10090 (type_known_to_have_no_deriavations_p): Rename to ..
10091 (type_known_to_have_no_derivations_p): This one.
10092 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10093 (type_known_to_have_no_derivations_p): This one.
10094 * ipa-polymorphic-call.c
10095 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10096 type has linkage.
10097
10098 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10099
10100 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10101 (layout_type): Use RECORD_OR_UNION_TYPE_P.
10102
10103 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10104
10105 * config/s390/s390.c (s390_vector_bool_type_p): New function.
10106 (s390_invalid_binary_op): New function.
10107 (TARGET_INVALID_BINARY_OP): Define macro.
10108
10109 2015-05-19 David Sherwood <david.sherwood@arm.com>
10110
10111 * loop-invariant.c (create_new_invariant): Don't calculate address cost
10112 if mode is not a scalar integer.
10113 (get_inv_cost): Increase computational cost for unused invariants.
10114
10115 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10116
10117 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
10118 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
10119 * config/s390/s390-builtin-types.def: New file.
10120 * config/s390/s390-builtins.def: New file.
10121 * config/s390/s390-builtins.h: New file.
10122 * config/s390/s390-c.c: New file.
10123 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10124 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10125 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10126 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10127 prototypes.
10128 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10129 Include.
10130 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10131 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10132 variable definitions.
10133 (s390_const_operand_ok): New function.
10134 (s390_expand_builtin): Rewrite.
10135 (s390_init_builtins): New function.
10136 (s390_handle_vectorbool_attribute): New function.
10137 (s390_attribute_table): Add s390_vector_bool attribute.
10138 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10139 (s390_branch_condition_mask): Generate masks for new modes.
10140 (s390_expand_vec_compare_cc): New function.
10141 (s390_mangle_type): Add mangling for vector bool types.
10142 (enum s390_builtin): Remove.
10143 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10144 efpc builtins.
10145 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10146 s390_cpu_cpp_builtins.
10147 (REGISTER_TARGET_PRAGMAS): New macro.
10148 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10149 (insn_cmp mode attribute): Add new CC modes.
10150 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10151 (lcbb): New pattern definition.
10152 * config/s390/s390intrin.h: Include vecintrin.h.
10153 * config/s390/t-s390: New file.
10154 * config/s390/vecintrin.h: New file.
10155 * config/s390/vector.md: Include vx-builtins.md.
10156 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10157 support.
10158
10159 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10160
10161 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10162 CCVFHE.
10163 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10164 (s390_select_ccmode): Likewise.
10165 (s390_canonicalize_comparison): Swap operands if necessary.
10166 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10167 single element vector instructions.
10168 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10169 (s390_branch_condition_mask): Generate CC masks for the new modes.
10170 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10171 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10172 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10173 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10174 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10175 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10176 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10177 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10178 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10179 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10180 (sqrt<mode>2): Add vector instruction.
10181
10182 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10183
10184 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10185 constraints.
10186 * config/s390/predicates.md (const0_operand, constm1_operand)
10187 (constable_operand): Accept vector operands.
10188 * config/s390/s390-modes.def: Add supported vector modes.
10189 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10190 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10191 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10192 (s390_expand_vec_compare, s390_expand_vcond)
10193 (s390_expand_vec_init): Add prototypes.
10194 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10195 (s390_vector_mode_supported_p): New function.
10196 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10197 (s390_contiguous_bitmask_vector_p): New function.
10198 (s390_bytemask_vector_p): New function.
10199 (s390_split_ok_p): Vector regs don't work either.
10200 (regclass_map): Add VEC_REGS.
10201 (s390_legitimate_constant_p): Handle vector constants.
10202 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10203 (legitimate_reload_vector_constant_p): New function.
10204 (s390_preferred_reload_class): Handle CONST_VECTOR.
10205 (s390_reload_symref_address): Likewise.
10206 (s390_secondary_reload): Vector memory instructions only support
10207 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10208 (s390_emit_ccraw_jump): New function.
10209 (s390_expand_vec_strlen): New function.
10210 (s390_expand_vec_compare): New function.
10211 (s390_expand_vcond): New function.
10212 (s390_expand_vec_init): New function.
10213 (s390_dwarf_frame_reg_mode): New function.
10214 (print_operand): Handle addresses with 'O' and 'R' constraints.
10215 (NR_C_MODES, constant_modes): Add vector modes.
10216 (s390_output_pool_entry): Handle vector constants.
10217 (s390_hard_regno_mode_ok): Handle vector registers.
10218 (s390_class_max_nregs): Likewise.
10219 (s390_cannot_change_mode_class): New function.
10220 (s390_invalid_arg_for_unprototyped_fn): New function.
10221 (s390_function_arg_vector): New function.
10222 (s390_function_arg_float): Remove size variable.
10223 (s390_pass_by_reference): Handle vector arguments.
10224 (s390_function_arg_advance): Likewise.
10225 (s390_function_arg): Likewise.
10226 (s390_return_in_memory): Vector values are returned in a VR if
10227 possible.
10228 (s390_function_and_libcall_value): Handle vector arguments.
10229 (s390_gimplify_va_arg): Likewise.
10230 (s390_call_saved_register_used): Consider the arguments named.
10231 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10232 targets.
10233 (s390_preferred_simd_mode): New function.
10234 (s390_support_vector_misalignment): New function.
10235 (s390_vector_alignment): New function.
10236 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10237 (TARGET_VECTOR_MODE_SUPPORTED_P)
10238 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10239 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10240 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10241 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10242 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10243 (FIRST_PSEUDO_REGISTER): Increase value.
10244 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10245 (VECTOR_REG_P): Define macros.
10246 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10247 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10248 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10249 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10250 Add vector registers.
10251 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10252 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10253 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10254 memory.
10255 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10256 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10257 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10258 (VR*_REGNUM): New constants.
10259 (ALL): New mode iterator.
10260 (INTALL): Remove mode iterator.
10261 Include vector.md.
10262 (movti): Implement TImode moves for VRs.
10263 Disable TImode splitter for VR targets.
10264 Implement splitting TImode GPR<->VR moves.
10265 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10266 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10267 reload<mode>_la_in, reload<mode>_la_out.
10268 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10269 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10270 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10271 (mov<mode> SF SD): Prefer lder, lde for loading.
10272 Add lrl and strl instructions.
10273 Add vector instructions.
10274 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10275 Call s390_expand_vec_strlen on z13.
10276 (*cc_to_int): Change predicate to nonimmediate_operand.
10277 (addti3): Rename to *addti3. New expander.
10278 (subti3): Rename to *subti3. New expander.
10279 * config/s390/vector.md: New file.
10280
10281 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10282
10283 * common/config/s390/s390-common.c (processor_flags_table): Add
10284 z13.
10285 * config.gcc: Add z13.
10286 * config/s390/s390-opts.h (enum processor_type): Add
10287 PROCESSOR_2964_Z13.
10288 * config/s390/s390.c (s390_adjust_priority): Check for
10289 PROCESSOR_2964_Z13.
10290 (s390_reorg): Likewise.
10291 (s390_sched_reorder): Likewise.
10292 (s390_sched_variable_issue): Likewise.
10293 (s390_loop_unroll_adjust): Likewise.
10294 (s390_option_override): Likewise. Default to -mvx when available.
10295 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10296 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10297 (TARGET_VX_ABI): Define macros.
10298 macros.
10299 (TARGET_DEFAULT): Add MASK_OPT_VX.
10300 * config/s390/s390.md ("cpu" attribute): Add z13.
10301 ("cpu_facility" attribute): Add vec.
10302 * config/s390/s390.opt (processor_type): Add z13.
10303 (mvx): New options.
10304 * doc/invoke.texi: Add z13 option for -march.
10305
10306 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10307
10308 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10309 mode check to make sure that only scalar integer values are
10310 accepted.
10311
10312 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10313
10314 * tree.c (verify_type_variant): Fix #undef.
10315 (gimple_canonical_types_compatible_p): Move here from lto.c
10316 (verify_type): Verify TYPE_CANONICAL compatibility.
10317 * tree.h (gimple_canonical_types_compatible_p): Declare.
10318
10319 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10320
10321 PR middle-end/66199
10322 * tree.h (OMP_TEAMS_COMBINED): Define.
10323 * gimplify.c (enum gimplify_omp_var_data): Add
10324 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10325 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10326 (omp_notice_variable): Accept both ORT_TEAMS
10327 and ORT_COMBINED_TEAMS. Don't recurse if
10328 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10329 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10330 GOVD_FIRSTPRIVATE.
10331 (omp_no_lastprivate): New function.
10332 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10333 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10334 notice_outer and set appropriate bits, otherwise make
10335 sure default(none) combined constructs won't complain.
10336 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10337 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10338 omp_no_lastprivate either remove the clause or turn it
10339 into OMP_CLAUSE_PRIVATE.
10340 (gimplify_omp_for): Fix up handling of implicit
10341 lastprivate or linear iterators.
10342 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10343 ORT_COMBINED_TEAMS.
10344 * omp-low.c (lower_omp_for_lastprivate): For combined
10345 for simd use fd.loop.n2 from the for rather than simd.
10346
10347 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10348
10349 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10350 instead of gen_rtx_raw_REG.
10351 (cris_expand_epilogue): Likewise.
10352 * config/microblaze/microblaze.c (microblaze_classify_address):
10353 Likewise.
10354 * config/sparc/sparc.md: Likewise.
10355
10356 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10357
10358 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10359 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10360 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10361 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10362 Use CASE_CONST_SCALAR_INT.
10363 (print_operand) <case 'M'>: Use mode_width_operand to check the
10364 value of the constant.
10365 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10366 * config/alpha/predicates.md (input_operand): Use general_operand
10367 instead of match_code as operand check.
10368 (symbolic_operand): Use match_code with subexpression digits.
10369 * config/alpha/constraints.md (Q): Ditto.
10370
10371 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10372
10373 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10374
10375 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10376
10377 * config/s390/s390.c (s390_secondary_reload): Fix check for
10378 load/store relative.
10379
10380 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10381
10382 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10383 alternative_mask to uint64_t.
10384
10385 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10386
10387 PR tree-optimization/66187
10388 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10389 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10390 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10391
10392 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10393
10394 * diagnostic.c (diagnostic_report_current_module): Strengthen
10395 local "new_map" from const line_map * to
10396 const line_map_ordinary *.
10397 * genmatch.c (error_cb): Likewise for local "map".
10398 (output_line_directive): Likewise for local "map".
10399 * input.c (expand_location_1): Likewise for local "map".
10400 Pass NULL rather than &map to
10401 linemap_unwind_to_first_non_reserved_loc, since the value is never
10402 read from there, and the value written back not read from here.
10403 (is_location_from_builtin_token): Strengthen local "map" from
10404 const line_map * to const line_map_ordinary *.
10405 (dump_location_info): Strengthen locals "map" from
10406 line_map *, one to const line_map_ordinary *, the other
10407 to const line_map_macro *.
10408 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10409 const line_map * to const line_map_macro *.
10410 (maybe_unwind_expanded_macro_loc): Add a call to
10411 linemap_check_macro when writing to the "map" field of the
10412 loc_map_pair.
10413 Introduce local const line_map_ordinary * "ord_map", using it in
10414 place of "map" in the part of the function where we know we have
10415 an ordinary map. Strengthen local "m" from const line_map * to
10416 const line_map_ordinary *.
10417
10418 2015-05-19 Nick Clifton <nickc@redhat.com>
10419
10420 PR target/66156
10421 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10422 separate source and destination registers.
10423
10424 2015-05-19 Richard Biener <rguenther@suse.de>
10425
10426 PR tree-optimization/66165
10427 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10428 for no load permutation.
10429
10430 PR tree-optimization/66185
10431 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10432 when building the SLP node from scalars.
10433
10434 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10435 Tristan Gingold <gingold@adacore.com>
10436
10437 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10438 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10439 (expand_stack_restore): Call record_new_stack_level.
10440 (expand_stack_save): Do not call do_pending_stack_adjust.
10441 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10442 * calls.c (expand_call): Call record_new_stack_level for alloca.
10443 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10444 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10445 (update_sjlj_context): New global function.
10446 * except.h (update_sjlj_context): Declare.
10447 * explow.c (record_new_stack_level): New global function.
10448 (allocate_dynamic_stack_space): Call record_new_stack_level.
10449 * explow.h (record_new_stack_level): Declare.
10450 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10451 * cfgrtl.c (duplicate_insn_chain): Likewise.
10452
10453 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10454
10455 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10456 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10457 STACK_GROWS_DOWNWARD as normal if.
10458 (expand_call): Likewise.
10459
10460 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10461
10462 PR target/54236
10463 * config/sh/sh.md (*round_int_even): New insn_and_split and
10464 accompanying new unnamed split.
10465
10466 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10467
10468 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10469 (bitmap_clear_range): Likewise.
10470 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10471 bitmap_set_range unconditionally.
10472 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10473 * df-scan.c (df_mark_reg): Likewise.
10474 * haifa-sched.c (setup_ref_regs): Likewise.
10475 * sched-rgn.c (update_live_1): Likewise.
10476
10477 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10478
10479 * regs.h (END_HARD_REGNO): Delete.
10480 (END_REGNO): Move to...
10481 * rtl.h: ...here.
10482 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10483 * caller-save.c (mark_set_regs): Likewise.
10484 * combine.c (move_deaths, distribute_notes): Likewise.
10485 * cse.c (invalidate, invalidate_for_call): Likewise.
10486 * df-scan.c (df_ref_record): Likewise.
10487 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10488 (record_last_reg_set_info): Likewise.
10489 * reg-stack.c (convert_regs_exit): Likewise.
10490 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10491 * resource.c (update_live_status): Likewise.
10492 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10493
10494 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10495
10496 * rtl.h (reg_info): Add an nregs field.
10497 (REG_NREGS): Use it.
10498 (SET_REGNO_RAW): Delete.
10499 (set_regno_raw): New function.
10500 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10501 (END_REGNO): Redefine in terms of REG_NREGS.
10502 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10503 SET_REGNO_RAW.
10504 * emit-rtl.c (set_mode_and_regno): Likewise.
10505 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10506 instead of SET_REGNO_RAW.
10507
10508 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10509
10510 * rtl.h (PUT_MODE_RAW): New macro.
10511 (PUT_REG_NOTE_KIND): Use it.
10512 (set_mode_and_regno): Declare.
10513 (gen_raw_REG): Change regno to "unsigned int".
10514 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10515 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10516 use set_mode_and_regno to change the mode of registers.
10517 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10518 * emit-rtl.c (set_mode_and_regno): New function.
10519 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10520 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10521 * expr.c (init_expr_target): Likewise.
10522 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10523 * postreload.c (reload_cse_simplify_operands): Likewise.
10524
10525 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10526
10527 * caller-save.c (init_caller_save): Use word_mode and
10528 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10529 * expr.c (init_expr_target): Likewise.
10530 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10531 * postreload.c (reload_cse_regs_1): Likewise.
10532
10533 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10534
10535 * rtl.def (REG): Change format to "r".
10536 * rtl.h (rtunion): Remove rt_reg.
10537 (reg_info): New structure.
10538 (rtx_def): Add reg field to main union.
10539 (X0REGATTR): Delete.
10540 (REG_CHECK): New macro.
10541 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10542 * rtl.c (rtx_format): Document "r".
10543 (rtx_code_size): Handle REG specially.
10544 * gengenrtl.c (special_format): Return true for formats
10545 that include 'r'.
10546 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10547 Deal with REG_ATTRS after the field loop.
10548 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10549 * expmed.c (init_expmed): Call gen_raw_REG instead of
10550 gen_rtx_raw_REG.
10551 * expr.c (init_expr_target): Likewise.
10552 * regcprop.c (maybe_mode_change): Likewise.
10553 * varasm.c (make_decl_rtl): Likewise.
10554 * final.c (leaf_renumber_regs_insn): Return early after
10555 handling REGs.
10556 * genemit.c (gen_exp): Handle 'r' fields.
10557 * genpeep.c (match_rtx): Likewise.
10558 * gensupport.c (subst_pattern_match): Likewise.
10559 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10560 (alter_constraints, subst_dup): Likewise.
10561 * read-rtl.c (read_rtx_code): Likewise.
10562 * print-rtl.c (print_rtx): Likewise.
10563 * genrecog.c (find_operand, find_matching_operand): Likewise.
10564 (validate_pattern, match_pattern_2): Likewise.
10565 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10566 (rtx_test::regno_field): New function.
10567 (operator ==, safe_to_hoist_p, transition_parameter_type)
10568 (parameter_type_string, print_parameter_value)
10569 (print_nonbool_test, print_test): Handle new enum values.
10570 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10571 * lra-constraints.c (operands_match_p): Likewise.
10572
10573 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10574
10575 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10576 Change type of new_regno to unsigned int.
10577 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10578 new_regno to unsigned int.
10579 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10580 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10581 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10582 (SET_REGNO_RAW): Add space after ",".
10583
10584 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10585
10586 * rtl.h (REG_NREGS): New macro
10587 * alias.c (record_set): Use it.
10588 * cfgcleanup.c (mark_effect): Likewise.
10589 * combine.c (likely_spilled_retval_1): Likewise.
10590 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10591 (move_deaths, distribute_notes): Likewise.
10592 * cselib.c (cselib_record_set): Likewise.
10593 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10594 * df-scan.c (df_mark_reg): Likewise.
10595 * dse.c (look_for_hardregs): Likewise.
10596 * dwarf2out.c (reg_loc_descriptor): Likewise.
10597 (multiple_reg_loc_descriptor): Likewise.
10598 * expr.c (write_complex_part, read_complex_part): Likewise.
10599 (emit_move_complex): Likewise.
10600 * haifa-sched.c (setup_ref_regs): Likewise.
10601 * ira-lives.c (mark_hard_reg_live): Likewise.
10602 * lra.c (lra_set_insn_recog_data): Likewise.
10603 * mode-switching.c (create_pre_exit): Likewise.
10604 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10605 (reload_combine_recognize_pattern): Likewise.
10606 (reload_combine_note_use, move2add_record_mode): Likewise.
10607 (reload_cse_move2add): Likewise.
10608 * reg-stack.c (subst_stack_regs_pat): Likewise.
10609 * regcprop.c (kill_value, copy_value): Likewise.
10610 (copyprop_hardreg_forward_1): Likewise.
10611 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10612 (build_def_use): Likewise.
10613 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10614 (deps_analyze_insn): Likewise.
10615 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10616 * sel-sched.c (count_occurrences_equiv): Likewise.
10617 * valtrack.c (dead_debug_insert_temp): Likewise.
10618
10619 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10620
10621 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10622 * dse.c (note_add_store): Likewise.
10623 * ira-lives.c (mark_hard_reg_dead): Likewise.
10624 * loop-invariant.c (mark_reg_store): Likewise.
10625 (mark_reg_death): Likewise.
10626 * postreload.c (reload_combine): Likewise.
10627 (reload_combine_note_store): Likewise.
10628 (reload_combine_note_use): Likewise.
10629 * recog.c (peep2_reg_dead_p): Likewise.
10630
10631 2015-05-19 Alan Modra <amodra@gmail.com>
10632
10633 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10634 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10635 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10636 unused predicates.
10637 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10638 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10639 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10640 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10641
10642 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10643
10644 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10645 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10646 (join2_loadhi): Likewise.
10647 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10648 load-load and store-stores.
10649 * config/mips/mips.opt (mload-store-pairs): New option.
10650 (TARGET_LOAD_STORE_PAIRS): New macro.
10651 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10652 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10653 * config/mips/mips.c (mips_load_store_bonding_p): New function.
10654
10655 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
10656
10657 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10658 explicit swaps.
10659 * dojump.c (do_compare_rtx_and_jump): Likewise.
10660 * expmed.c (emit_store_flag_1): Likewise.
10661 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10662 * final.c (sprint_ul): Use std::reverse for reversing a string.
10663 * fold-const.c (extract_muldiv_1): Use std::swap.
10664 * genmodes.c (emit_mode_int_n): Likewise.
10665 * ifcvt.c (dead_or_predicable): Likewise.
10666 * ira-build.c (ira_merge_live_ranges): Likewise.
10667 (swap_allocno_copy_ends_if_necessary): Likewise.
10668 * ira.c (ira_setup_alts): Likewise.
10669 * loop-iv.c (iv_analyze_expr): Likewise.
10670 (implies_p): Likewise.
10671 (canon_condition): Likewise.
10672 * lra-constraints.c (swap_operands): Likewise.
10673 * lra-lives.c (lra_merge_live_ranges): Likewise.
10674 * omega.c (swap): Remove.
10675 (bswap): Remove.
10676 (omega_unprotect_1): Use std::swap.
10677 (omega_solve_geq): Likewise.
10678 * optabs.c (expand_binop_directly): Likewise.
10679 (expand_binop): Likewise.
10680 (emit_conditional_move): Likewise.
10681 (emit_conditional_add): Likewise.
10682 * postreload.c (reload_cse_simplify_operands): Likewise.
10683 * reg-stack.c (emit_swap_insn): Likewise.
10684 (swap_to_top): Likewise.
10685 (compare_for_stack_reg): Likewise.
10686 (subst_asm_stack_regs): Likewise.
10687 * reload.c (find_reloads): Likewise.
10688 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10689 * sel-sched.c (invoke_reorder_hooks): Likewise.
10690 (create_block_for_bookkeeping): Likewise.
10691 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10692 (lambda_matrix_right_hermite): Use std::swap.
10693 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10694 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10695 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10696 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10697 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10698 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10699 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10700 * tree-vrp.c (compare_ranges): Likewise.
10701 * var-tracking.c (add_with_sets): Likewise.
10702 (vt_find_locations): Likewise.
10703
10704 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
10705
10706 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10707 pie executables.
10708 (FBSD_ENDFILE_SPEC): Likewise.
10709 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10710 config/freebsd-spec.h.
10711 (ENDFILE_SPEC): Likewise.
10712
10713 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
10714 Richard Henderson <rth@redhat.com>
10715
10716 PR target/57032
10717 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10718 Check for a memory location that is not a reference (using an AND)
10719 to an unaligned location here.
10720 * config/alpha/predicates.md (normal_memory_operand): Remove.
10721
10722 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
10723
10724 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10725 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10726
10727 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
10728
10729 * config/mips/mips.c (micromips_globals): New variable.
10730 (mips_set_compression_mode): Save and reinitialize target-dependent
10731 state for microMIPS.
10732
10733 2015-05-18 Martin Liska <mliska@suse.cz>
10734
10735 * dbgcnt.def: Add new counter.
10736 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10737
10738 2015-05-18 Martin Liska <mliska@suse.cz>
10739
10740 * dbgcnt.def: Sort counters.
10741 * opts.c (common_handle_option): Do not compile if
10742 -fdbg-cnt-list is enabled.
10743
10744 2015-05-18 Tom de Vries <tom@codesourcery.com>
10745
10746 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10747 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
10748 address operator to va_list operand.
10749 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10750 unconditionally.
10751 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10752 operand.
10753 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10754 * config/s390/s390.c (s390_gimplify_va_arg): Same.
10755 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10756
10757 2015-05-18 Tom de Vries <tom@codesourcery.com>
10758
10759 * tree-ssa-tail-merge.c: Fix whitespace.
10760
10761 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
10762
10763 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10764 cortex-a17, and cortex-a17.cortex-a7.
10765
10766 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
10767
10768 PR target/54236
10769 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10770
10771 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
10772
10773 PR target/66174
10774 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10775 QImode inner modes for TARGET_AVX512BW. Force mask operand
10776 to a register for AVX512F modes.
10777
10778 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10779
10780 * toplev.c (emit_debug_global_declarations): Do not output debug info
10781 when doing slim LTO objects.
10782
10783 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10784
10785 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10786 odr_types_equivalent_p): Declare.
10787 (odr_type_p): Use gcc_checking_assert.
10788 (type_in_anonymous_namespace_p) Declare.
10789 (type_with_linkage_p): Declare.
10790 * common.opt (Wlto-type-mismatch): New warning.
10791 * ipa-devirt.c (compound_type_base): New function.
10792 (odr_or_derived_type_p): New function.
10793 (odr_types_equivalent_p): New function.
10794 (add_type_duplicate): Simplify.
10795 (type_with_linkage_p): Add hack to prevent false positives on C types
10796 (type_in_anonymous_namespace_p): Likewise.
10797 * tree.c (need_assembler_name_p): Use type_with_linkage.
10798 * tree.h (type_in_anonymous_namespace_p): Remove.
10799 * doc/invoke.texi (-Wlto-type-mismatch): Document
10800
10801 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10802
10803 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10804 (verify_type): Verify STRING_FLAG.
10805
10806 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10807
10808 PR fortran/44054
10809 * tree-pretty-print.c (percent_K_format): Replace locus pointer
10810 with accessor function.
10811 * tree-diagnostic.c (diagnostic_report_current_function): Use
10812 diagnostic_location function.
10813 (maybe_unwind_expanded_macro_loc): Likewise.
10814 (virt_loc_aware_diagnostic_finalizer): Likewise.
10815 (default_tree_printer): Replace locus pointer with accessor function.
10816 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10817 (diagnostic_set_info_translated): Initialize second location.
10818 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10819 (diagnostic_show_locus): Handle two locations. Call
10820 diagnostic_print_caret_line.
10821 (diagnostic_print_caret_line): New.
10822 (default_diagnostic_starter): Use diagnostic_location function.
10823 (diagnostic_report_diagnostic): Use diagnostic_location function.
10824 (verbatim): Do not set text.locus.
10825 * diagnostic.h (struct diagnostic_info): Remove location field.
10826 (struct diagnostic_context): Make caret_chars an array of two.
10827 (diagnostic_location): New inline.
10828 (diagnostic_expand_location): Handle two locations.
10829 (diagnostic_same_line): New inline.
10830 (diagnostic_print_caret_line): Declare.
10831 (CARET_LINE_MARGIN): New constant.
10832 * pretty-print.c (pp_printf): Do not set text.locus.
10833 (pp_verbatim): Do not set text.locus.
10834 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10835 (struct text_info): Replace locus pointer with locations
10836 array. Add accessor functions.
10837
10838 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
10839 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10840
10841 PR target/65768
10842 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10843 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10844 large constants in register instead of splitting them.
10845
10846 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
10847
10848 PR target/66140
10849 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10850 replacements in memory addresses.
10851 (get_unaligned_address): Ditto.
10852
10853 2015-05-16 James Bowman <james.bowman@ftdichip.com>
10854
10855 * config/ft32/*: New files for FT32 port.
10856 * doc/install.texi: Add FT32 information.
10857 * doc/invoke.texi: Add FT32 information.
10858 * doc/md.texi: Add FT32 information.
10859 * doc/contrib.texi: Self added.
10860
10861 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
10862
10863 PR tree-optimization/64454
10864 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
10865 (-1 - A -> ~A): Remove unnecessary condition.
10866
10867 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10868
10869 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
10870 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10871 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
10872
10873 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
10874
10875 * ipa-chkp.h (chkp_wrap_function): New.
10876 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
10877 (chkp_wrap_function_name): New.
10878 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
10879 to get wrapper name.
10880 * lto-cgraph.c: Include ipa-chkp.h.
10881 (input_cgraph_1): Avoid alias chain for wrappers.
10882
10883 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10884
10885 PR middle-end/66134
10886 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
10887 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
10888
10889 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10890
10891 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
10892 (AARCH64_FL_SLOWMUL): Delete.
10893 (AARCH64_FL_CRC): Redefine to 1<<3.
10894 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
10895
10896 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10897
10898 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
10899 casting.
10900
10901 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
10902
10903 * config/alpha/alpha.md (extendqidi2): Use general_operand
10904 instead of some_operand for operand[1] predicate.
10905 (extendhidi2): Ditto.
10906 (cbranchdi4): Use general_operand instead of some_operand
10907 for operand[1] and operands[2] predicates.
10908 (cstoredi4): Ditto.
10909 * config/alpha/predicates.md (some_operand): Remove unused predicate.
10910 (some_ni_operand): Ditto.
10911
10912 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
10913
10914 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
10915 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
10916 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
10917 low part of the constant using alpha_emit_set_const_1.
10918 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
10919
10920 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
10921
10922 * varasm.c (output_constant_pool_1): Pass down alignment from
10923 constant pool entry's descriptor to output_constant_pool_2.
10924 (output_object_block): Add comment prior to call to
10925 output_constant_pool_1.
10926
10927 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
10928
10929 PR rtl-optimization/65862
10930 * target.def (ira_change_pseudo_allocno_class): New hook.
10931 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
10932 value of the hook.
10933 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
10934 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
10935 hook.
10936 * ira-costs.c (find_costs_and_classes): Call the hook and change
10937 classes when it is necessary.
10938 * doc/tm.texi: Update.
10939
10940 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
10941
10942 * config/i386/i386.md (sibcall_memory): Check that register with
10943 callee address is not also used as one of the arguments, instead
10944 of checking that it is not live after the sibcall.
10945 (sibcall_pop_memory): Ditto.
10946 (sibcall_value_memory): Ditto.
10947 (sibcall_value_pop_memory): Ditto.
10948
10949 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
10950
10951 * generic-match-head.c (types_match): Handle non-types.
10952 * gimple-match-head.c (types_match): Likewise.
10953 * match.pd: Remove unnecessary TREE_TYPE for types_match.
10954
10955 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
10956
10957 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
10958 (csneg3<mode>_insn): Enable expansion of pattern.
10959
10960 2015-05-14 Nick Clifton <nickc@redhat.com>
10961
10962 * config/rl78/rl78.c (rl78_select_section): Select the correct
10963 default section based upon the category of the decl.
10964
10965 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
10966
10967 PR rtl-optimization/30967
10968 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
10969 destination mode for the cost of scc patterns.
10970
10971 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
10972
10973 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
10974 using SWIM248 mode iterator.
10975 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
10976 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
10977 for operand[2] constraint.
10978 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
10979
10980 2015-05-13 Jakub Jelinek <jakub@redhat.com>
10981
10982 PR middle-end/66133
10983 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
10984 make sure it is never noreturn, even when the task body does not
10985 return.
10986 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
10987 right before GIMPLE_OMP_RETURN.
10988 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
10989 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
10990 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
10991
10992 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10993
10994 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
10995 * tree-ssa-math-opts.c: Include params.h
10996 (pow_synth_sqrt_info): New struct.
10997 (representable_as_half_series_p): New function.
10998 (get_fn_chain): Likewise.
10999 (print_nested_fn): Likewise.
11000 (dump_fractional_sqrt_sequence): Likewise.
11001 (dump_integer_part): Likewise.
11002 (expand_pow_as_sqrts): Likewise.
11003 (gimple_expand_builtin_pow): Use above to attempt to expand
11004 pow as series of square roots. Removed now unused variables.
11005
11006 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11007
11008 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11009 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11010 Remove *p0 and *p1 arguments. Rewrite function.
11011 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11012 (alpha_split_const_mov): Update calls to alpha_extract_integer and
11013 alpha_emit_set_long_const.
11014 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11015 (alpha_output_mi_thunk_osf): Ditto.
11016 * config/alpha/alpha.md (movti): Do not check operands[1]
11017 for CONST_DOUBLE.
11018
11019 2015-05-13 Richard Biener <rguenther@suse.de>
11020
11021 PR tree-optimization/66129
11022 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11023 commutative.
11024 (vect_schedule_slp_instance): Fix typo.
11025
11026 2015-05-13 David Malcolm <dmalcolm@redhat.com>
11027
11028 * common.opt (fdump-internal-locations): New option.
11029 * input.c: Include diagnostic-core.h.
11030 (get_end_location): New function.
11031 (write_digit): New function.
11032 (write_digit_row): New function.
11033 (dump_location_range): New function.
11034 (dump_labelled_location_range): New function.
11035 (dump_location_info): New function.
11036 * input.h (dump_location_info): New prototype.
11037 * toplev.c (compile_file): Handle flag_dump_locations.
11038
11039 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
11040
11041 * gimple-expr.h (is_gimple_constant): Reorder.
11042 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11043
11044 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11045
11046 * combine.c (simplify_set): When generating a CC set, if the
11047 source already is in the correct mode, do not wrap it in a
11048 compare. Simplify the rest of that code.
11049
11050 2015-05-13 Richard Biener <rguenther@suse.de>
11051
11052 PR tree-optimization/66123
11053 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11054 a taken edge.
11055
11056 2015-05-13 Richard Biener <rguenther@suse.de>
11057
11058 PR middle-end/66110
11059 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11060 specially.
11061 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11062
11063 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11064
11065 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11066 * aclocal.m4: Regenerated with automake-1.11.6.
11067
11068 2015-05-13 Tom de Vries <tom@codesourcery.com>
11069
11070 PR tree-optimization/66010
11071 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11072 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11073 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
11074 and rval based on do_deref.
11075
11076 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11077
11078 PR target/65103
11079 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11080 link time constants into adress expressions and therefore set
11081 their cost to 0.
11082
11083 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11084
11085 PR target/66112
11086 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11087 Use SWI248 iterator instead of SWI.
11088 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
11089 Use eq_attr "alternative" "0" instead of match_test in
11090 length_immediate attribute computation.
11091 (*mulvhi4, *mulvhi4_1): New define_insns.
11092
11093 PR target/66112
11094 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11095 SIGNED to get precision of non-negative value.
11096
11097 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11098
11099 PR target/66048
11100 * function.c (diddle_return_value_1): Process bounds first.
11101 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11102 register.
11103
11104 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11105
11106 PR rtl-optimization/64616
11107 * loop-invariant.c (can_move_invariant_reg): New.
11108 (move_invariant_reg): Call above new function to decide whether
11109 instruction can just be moved, skipping creation of temporary
11110 register.
11111
11112 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11113
11114 PR target/pr66047.c
11115 * i386.c (ix86_function_sseregparm): Only return -1 if local function
11116 with implied regparm is called from -mno-sse function.
11117 (init_cumulative_args): Output error if ix86_function_sseregparm
11118 return -1 and SSE register would be needed.
11119 (function_arg_advance_32): Likewise.
11120 (function_arg_32): Likewise.
11121 * i386.h (ix86_args): Add decl field.
11122
11123 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11124
11125 PR ipa/65873
11126 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11127 inlines across optimization boundary.
11128
11129 2015-05-12 Jason Merrill <jason@redhat.com>
11130
11131 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11132 string literal and macro name.
11133
11134 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11135
11136 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11137 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11138 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11139
11140 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11141
11142 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11143 (-Wmisleading-indentation): New option.
11144 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11145
11146 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11147
11148 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11149 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11150 (alpha_extract_integer): Ditto.
11151 (alpha_legitimate_constant_p): Ditto.
11152 (alpha_split_tmode_pair): Ditto.
11153 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11154 (alpha_expand_mov): Ditto.
11155 (print_operand): Remove handling of 'H' modifier.
11156 <case 'm'>: Remove CONST_DOUBLE handling.
11157 (summarize_insn): Handle CONST_WIDE_INT.
11158 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11159 (anddi3): Ditto.
11160 (movti): Handle CONST_WIDE_INT.
11161 * config/alpha/constraints.md ('H'): Remove constraint definition.
11162 ('G'): Do not match MODE_FLOAT class.
11163 * config/alpha/predicates.md (const0_operand): Also match
11164 const_wide_int.
11165 (non_add_const_operand): Ditto.
11166 (non_zero_const_operand): Ditto.
11167 (some_operand): Ditto.
11168 (input_operand): Ditto. Handle CONST_WIDE_INT.
11169 (and_operand): Do not match const_double.
11170 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11171
11172 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11173
11174 PR target/65697
11175 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11176 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11177 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11178 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11179 is_mm_seq_cst, is_mm_sync): New accessor functions.
11180 * builtins.c (expand_builtin_sync_operation,
11181 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11182 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11183 (get_memmodel, expand_builtin_atomic_compare_exchange,
11184 expand_builtin_atomic_load, expand_builtin_atomic_store,
11185 expand_builtin_atomic_clear): Use new accessor routines.
11186 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11187 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11188 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11189 MEMMODEL_SYNC_ACQUIRE.
11190 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11191 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11192 expand_atomic_store): Use new accessors.
11193 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11194 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11195 final enum to use MEMMODEL_LAST.
11196 * c-family/c-common.c: Use new accessor for memmodel_base.
11197 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11198 accessors.
11199 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11200 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11201 mem_thread_fence, *dmb): Likewise.
11202 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11203 alpha_split_compare_and_swap_12): Likewise.
11204 * config/arm/arm.c (arm_expand_compare_and_swap,
11205 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11206 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11207 atomic_loaddi): Likewise.
11208 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11209 Likewise.
11210 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11211 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11212 use new accessors.
11213 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11214 atomic_store<mode>, atomic_compare_and_swap<mode>,
11215 atomic_exchange<mode>): Use new accessors.
11216 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11217 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11218 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11219 rs6000_post_atomic_barrier): Add new cases.
11220 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11221 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11222 (atomic_load<mode>): Add new cases and use new accessors.
11223 (store_quadpti): Add new cases.
11224 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11225 accessors.
11226 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11227 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11228 model, not 8.
11229
11230 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11231
11232 * ipa-devirt.c (type_with_linkage_p): New function.
11233 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11234 type has linkage.
11235 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11236 (can_be_name_hashed_p): Simplify.
11237 (hash_odr_name): Check that type has linkage before checking if it is
11238 anonymous.
11239 (types_same_for_odr): Likewise.
11240 (odr_name_hasher::equal): Likewise.
11241 (odr_subtypes_equivalent_p): Likewise.
11242 (warn_types_mismatch): Likewise.
11243 (get_odr_type): Likewise.
11244 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11245 * ipa-utils.h (odr_type_p): Move offline.
11246 * tree.c (need_assembler_name_p): Fix handling of types
11247 without linkages.
11248 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11249
11250 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11251
11252 * timevar.c (timevar_enable): Delete in favor of...
11253 (g_timer): New global.
11254 (struct timevar_def): Move to timevar.h inside class timer.
11255 (struct timevar_stack_def): Likewise.
11256 (timevars): Delete global in favor of field "m_timevars" within
11257 class timer in timevar.h
11258 (stack): Likewise, in favor of field "m_stack".
11259 (unused_stack_instances): Likewise, in favor of field
11260 "m_unused_stack_instances".
11261 (start_time): Likewise, in favor of field "m_start_time".
11262 (get_time): Eliminate check for timevar_enable.
11263 (timer::timer): New function, built from part of timevar_init.
11264 (timevar_init): Rewrite idempotency test from using
11265 "timevar_enable" bool to using dynamic allocation of "g_timer".
11266 Move rest of implementation into timer's constructor.
11267 (timevar_push_1): Rename to...
11268 (timer::push): ...this, adding "m_" prefixes to variables that
11269 are now fields of timer.
11270 (timevar_pop_1): Likewise, rename to...
11271 (timer::pop): ...this, and add "m_" prefixes.
11272 (timevar_start): Replace test for "timevar_enable" with one for
11273 "g_timer", and move bulk of implementation to...
11274 (timer::start): ...here, adding "m_" prefixes.
11275 (timevar_stop): Likewise, from here...
11276 (timer::stop): ...to here.
11277 (timevar_cond_start): Likewise, from here...
11278 (timer::cond_start): ...to here.
11279 (timevar_cond_stop): Likewise, from here...
11280 (timer::cond_stop): ...to here.
11281 (validate_phases): Rename to...
11282 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11283 locals "total" and "tv" const.
11284 (timevar_print): Rename to...
11285 (timer::print): ...this, and add "m_" prefixes. Make locals
11286 "total" and "tv" const. Eliminate test for timevar_enable.
11287 * timevar.h (timevar_enable): Eliminate.
11288 (g_timer): New declaration.
11289 (timevar_push_1): Eliminate.
11290 (timevar_pop_1): Eliminate.
11291 (timevar_print): Eliminate.
11292 (class timer): New class.
11293 (timevar_push): Rewrite to use g_timer.
11294 (timevar_pop): Likewise.
11295 * toplev.c (toplev::~toplev): Likewise.
11296
11297 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11298
11299 * arm-protos.h (arm_sched_autopref): Delete.
11300 (tune_params): Re-organize, use enums for flag values.
11301 (FUSE_OPS): New macro.
11302 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11303 (ARM_PREFETCH_BENEFICIAL): Likewise.
11304 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11305 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11306 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11307 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11308 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11309 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11310 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11311 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11312 format.
11313 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11314 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11315 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11316
11317 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11318
11319 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11320 "break".
11321
11322 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11323 Sandra Loosemore <sandra@codesourcery.com>
11324
11325 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11326 value.
11327 (REG_CLASS_NAMES): Add "IJMP_REGS".
11328 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11329 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11330 use new "c" register constraint.
11331 * config/nios2/constraint.md (c): New register constraint
11332 corresponding to IJMP_REGS.
11333
11334 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11335
11336 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11337 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11338 define_splits): Delete, revamp, transmogrify into ...
11339 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11340 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11341 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11342 New.
11343
11344 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11345
11346 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11347 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11348
11349 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11350
11351 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11352 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11353 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11354 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11355 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11356 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11357 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11358 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11359 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11360 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11361 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11362 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11363 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11364 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11365 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11366 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11367 and 30 corresponding splitters): Delete.
11368
11369 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11370
11371 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11372 zero_extract.
11373
11374 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11375
11376 * combine.c (recog_for_combine_1): New function, factored out
11377 from recog_for_combine.
11378 (change_zero_ext): New function.
11379 (recog_for_combine): If recog fails, try again with the pattern
11380 modified by change_zero_ext; if that still fails, restore the
11381 pattern.
11382
11383 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11384
11385 * combine.c (get_undo_marker): New function.
11386 (undo_to_marker): New function, largely factored out from ...
11387 (undo_all): ... this. Adjust.
11388
11389 2015-05-12 Richard Biener <rguenther@suse.de>
11390
11391 PR tree-optimization/66101
11392 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11393 fixup if we turn a loop exit edge to a fallthru edge.
11394
11395 2015-05-12 Richard Biener <rguenther@suse.de>
11396
11397 PR tree-optimization/37021
11398 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11399 (SLP_TREE_TWO_OPERATORS): New define.
11400 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11401 SLP_TREE_TWO_OPERATORS.
11402 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11403 SLP node.
11404 (vect_build_slp_tree): Adjust.
11405 (vect_analyze_slp_cost_1): Likewise.
11406 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11407 emitting two vector stmts and mixing the results.
11408
11409 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11410
11411 * call.c (print_z_candidates): Remove dead code.
11412
11413 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11414
11415 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11416 and zEC12_simple_fp.
11417 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11418 to 1.
11419
11420 2015-05-12 Tom de Vries <tom@codesourcery.com>
11421
11422 PR tree-optimization/66010
11423 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11424 ifn_va_arg.
11425 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11426 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11427 va_lists are passed, and remove corresponding handling.
11428 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11429 do_deref argument to ifn_va_arg.
11430 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11431 ifn_va_arg.
11432
11433 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11434
11435 PR target/65955
11436 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11437 REG before taking its REGNO.
11438
11439 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11440
11441 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11442 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11443 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11444 present to get more accurate information about the number of sign bit
11445 copies and non zero bits.
11446
11447 2015-05-12 Richard Biener <rguenther@suse.de>
11448
11449 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11450 do not allow unrolling.
11451
11452 2015-05-11 Richard Henderson <rth@redhat.com>
11453
11454 * config/i386/i386-modes.def (CCP): New.
11455 * config/i386/i386.c (put_condition_code): Handle it.
11456 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11457
11458 2015-05-11 Richard Henderson <rth@redhat.com>
11459
11460 * target.def (md_asm_clobbers): Replace with...
11461 (md_asm_adjust): this.
11462 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11463 (TARGET_MD_ASM_ADJUST): New.
11464 * tm.texi: Rebuild.
11465 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11466 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11467 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11468
11469 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11470 constraints instead of lists of outputs and inputs.
11471 (expand_asm_stmt): Save and restore input_location around the
11472 body of the function. Move asm data into vectors instead of
11473 building tree lists. Generate cleanup sequences as needed,
11474 rather than waiting til the end. Use new md_asm_adjust hook.
11475
11476 * config/vxworks.c: Include vec.h before target.h.
11477 * gimple.c: Likewise.
11478 * incpath.c: Likewise.
11479 * mode-switching.c: Likewise.
11480
11481 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11482 (cris_md_asm_adjust): this.
11483 (TARGET_MD_ASM_CLOBBERS): Remove.
11484 (TARGET_MD_ASM_ADJUST): New.
11485 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11486 (ix86_md_asm_adjust): this.
11487 (TARGET_MD_ASM_CLOBBERS): Remove.
11488 (TARGET_MD_ASM_ADJUST): New.
11489 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11490 (mn10300_md_asm_adjust): this.
11491 (TARGET_MD_ASM_CLOBBERS): Remove.
11492 (TARGET_MD_ASM_ADJUST): New.
11493 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11494 (rs6000_md_asm_adjust): this.
11495 (TARGET_MD_ASM_CLOBBERS): Remove.
11496 (TARGET_MD_ASM_ADJUST): New.
11497 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11498 (visium_md_asm_adjust): this.
11499 (TARGET_MD_ASM_CLOBBERS): Remove.
11500 (TARGET_MD_ASM_ADJUST): New.
11501
11502 2015-05-11 Richard Henderson <rth@redhat.com>
11503
11504 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11505 if noutputs is zero.
11506 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11507
11508 * cfgexpand.c (expand_asm_operands): Merge into...
11509 (expand_asm_stmt): ... here.
11510
11511 * cfgexpand.c (expand_asm_operands): Don't call
11512 resolve_asm_operand_names.
11513 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11514
11515 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11516
11517 * dwarf2out.c (gen_member_die): Sanity check that we access
11518 TYPE_MAIN_VARIANT for TYPE_METHODS.
11519 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11520 checking TYPE_METHODS.
11521 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11522 if non-null.
11523 (build_distinct_type_copy): Clear TYPE_METHODS.
11524 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11525 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11526 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11527
11528 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11529
11530 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11531 (emit_pattern_before_setloc): Likewise.
11532
11533 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11534
11535 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11536 for define_peephole2s.
11537 (get_peephole2_pattern): New function.
11538 (main): Use it. Call validate_pattern.
11539
11540 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11541
11542 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11543 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11544 (Last callee saved reg is different for AVR_TINY architecture)
11545
11546 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11547
11548 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11549 when looking for memory references.
11550
11551 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11552
11553 PR target/65753
11554 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11555 via function pointers.
11556
11557 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11558
11559 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11560 indirect call by forcing address into a pseudo with -fno-plt.
11561 * common.opt (flag_plt): New option.
11562 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11563 ([-fno-plt]): Document.
11564
11565 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11566
11567 PR bootstrap/66105
11568 * config/rs6000/option-defaults.h: Add space between string literal
11569 and macro name.
11570
11571 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11572
11573 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11574 accross ARM targets.
11575
11576 2015-05-11 Christian Bruel <christian.bruel@st.com>
11577
11578 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11579 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11580
11581 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11582
11583 PR rtl-optimization/66076
11584 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11585 Don't grow the heap array if it is already big enough from a
11586 previous iteration.
11587
11588 2015-05-11 Christian Bruel <christian.bruel@st.com>
11589
11590 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11591 (is_called_in_ARM_mode): Remove.
11592 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11593 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11594 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11595 arm_declare_function_name.
11596
11597 2015-05-11 Christian Bruel <christian.bruel@st.com>
11598
11599 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11600 (arm_option_params_internal); New function.
11601 (arm_option_check_internal): New function.
11602 (arm_option_override_internal): New function.
11603 (thumb_code, thumb1_code): Remove.
11604 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11605 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11606 (thumb_code, thumb1_code): Remove.
11607 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11608
11609 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11610
11611 * config/alpha/alpha.c (alpha_emit_set_const_1)
11612 (alpha_emit_set_long_const, alpha_extract_integer)
11613 (alpha_legitimate_constant_p, alpha_split_const_mov)
11614 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11615 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11616 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11617 HOST_WIDE_INT_1U.
11618 * config/alpha/predicates.md (mode_mask_operand): Do not match
11619 const_double RTX.
11620 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11621 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11622 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11623 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11624 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11625
11626 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11627
11628 PR target/65780
11629 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11630 default_binds_local_p_2.
11631 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11632 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11633
11634 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11635
11636 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11637
11638 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11639
11640 Patch by Richard Biener
11641 * coverage.c (coverage_obj_init): Delay building of type variant
11642 until the type is finished.
11643
11644 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11645
11646 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11647 mismatch between C and C++ type; compoare correctly ARG_TYPES
11648 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11649 (odr_types_equivalent_p): Fix wording of warning about attributes;
11650 it is OK to match prototype and non-prototype.
11651
11652 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11653
11654 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11655 TYPE_ARG_TYPES list.
11656 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11657 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11658
11659 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11660
11661 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11662 * tree.h (is_lang_specific): Constify.
11663
11664 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
11665
11666 PR tree-optimization/64454
11667 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11668 Rewrite.
11669
11670 2015-05-08 Jason Merrill <jason@redhat.com>
11671
11672 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11673 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11674 config/darwin.h, config/darwin9.h, config/elfos.h,
11675 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11676 config/microblaze/microblaze.h, config/mips/mips.h,
11677 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11678 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11679 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11680 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11681 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11682 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11683 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11684 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11685 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11686 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11687 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11688 between string literal and macro name.
11689
11690 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11691
11692 * jump.c: Change argument types to rtx_insn *.
11693 * rtl.h: Adjust.
11694
11695 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11696
11697 * lra-constraints.c: Change argument type to rtx_insn *.
11698
11699 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11700
11701 * df-problems.c: Change argument type to rtx_insn *.
11702
11703 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11704
11705 * combine.c: Change argument type to rtx_insn *.
11706
11707 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11708
11709 * rtl.h: Adjust.
11710 * rtlanal.c: Change argument type to rtx_insn *.
11711
11712 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11713
11714 * sched-deps.c: Change argument types to rtx_insn *.
11715 * sched-int.h: Adjust.
11716
11717 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11718
11719 * dwarf2cfi.c: Change argument type to rtx_insn *.
11720
11721 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11722
11723 * ira.c (decrease_live_ranges_number): Changetype of local
11724 variable to rtx_insn *.
11725 * recog.c: Change argument types to rtx_insn *.
11726 * recog.h: Adjust.
11727
11728 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11729
11730 * reorg.c: Change argument types to rtx_insn *.
11731
11732 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11733
11734 * ira-color.c: Change argument types to rtx_insn *.
11735 * lra-eliminations.c: Likewise.
11736 * ira.h: Adjust.
11737
11738 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11739
11740 * gcse.c: Change argument types to rtx_insn *.
11741
11742 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11743
11744 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11745
11746 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11747
11748 * emit-rtl.c (emit_debug_insn_before): Change argument type to
11749 rtx_insn *.
11750 * rtl.h: Adjust.
11751
11752 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11753
11754 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11755 * rtl.h: Adjust.
11756
11757 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11758
11759 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11760 * rtl.h: Adjust.
11761
11762 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11763
11764 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11765 * rtl.h: Adjust.
11766
11767 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11768
11769 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11770 * rtl.h: Adjust.
11771
11772 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11773
11774 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11775 to rtx_insn *.
11776 * rtl.h: Adjust.
11777
11778 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11779
11780 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11781 to rtx_insn *.
11782 * rtl.h: Likewise.
11783
11784 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11785
11786 * except.c (can_nonlocal_goto): Change type of argument to
11787 rtx_insn *.
11788 * rtl.h: Adjust.
11789
11790 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11791
11792 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11793 * rtl.h: Adjust.
11794
11795 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11796
11797 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11798 * cfgrtl.c (can_delete_label_p): Adjust.
11799 * rtl.h: likewise.
11800
11801 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11802
11803 * reorg.c (stop_search_p): Change argument to rtx_insn *.
11804
11805 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11806
11807 * except.c (make_reg_eh_region_note): Change argument to
11808 rtx_insn *.
11809 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11810 * except.h: Adjust.
11811
11812 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11813
11814 * mode-switching.c (commit_mode_sets): Change type of local
11815 variable from rtx to rtx_insn *.
11816
11817 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
11818
11819 * doc/install.texi (--enable-languages): Add missing jit and lto info.
11820 Add ^ to grep command.
11821 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11822 arg to last gimple_simplify declaration. Add missing gimple_build
11823 declaration for built-in function case with four tree args.
11824
11825 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11826 Szabolcs Nagy <szabolcs.nagy@arm.com>
11827
11828 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11829 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11830 (GNU_USER_DYNAMIC_LINKERN32): Update.
11831
11832 2015-05-08 Richard Biener <rguenther@suse.de>
11833
11834 PR tree-optimization/66036
11835 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11836 Handle strided group loads.
11837 (vect_verify_datarefs_alignment): Likewise.
11838 (vect_enhance_data_refs_alignment): Likewise.
11839 (vect_analyze_group_access): Likewise.
11840 (vect_analyze_data_ref_access): Likewise.
11841 (vect_analyze_data_ref_accesses): Likewise.
11842 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11843 (vectorizable_load): Likewise.
11844
11845 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
11846
11847 * config/rs6000/rs6000.md: Require operand inequality in one
11848 of the peepholes.
11849
11850 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
11851 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11852
11853 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11854 from (set ...).
11855 * config/rx/rx.md (movdi, movdf): Likewise.
11856 Likewise for define_peephole2s.
11857
11858 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11859
11860 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
11861 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
11862 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
11863 vtst_u64): Rewrite using gcc vector extensions.
11864
11865 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11866
11867 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
11868 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
11869
11870 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11871
11872 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
11873
11874 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
11875
11876 * config/glibc-stdint.h (OPTION_MUSL): Define.
11877 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
11878 Change the definition based on OPTION_MUSL for 64 bit targets.
11879 * config/linux.h (OPTION_MUSL): Redefine.
11880 * config/alpha/linux.h (OPTION_MUSL): Redefine.
11881 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
11882 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
11883
11884 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11885 Szabolcs Nagy <szabolcs.nagy@arm.com>
11886
11887 * config.gcc (LIBC_MUSL): New tm_defines macro.
11888 * config/linux.h (OPTION_MUSL): Define.
11889 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
11890 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
11891 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11892 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11893 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11894 * config/linux.opt (mmusl): New option.
11895 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
11896 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11897 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11898 * configure: Regenerate.
11899
11900 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
11901 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11902
11903 PR target/48904
11904 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
11905 * config/i386/knetbsd-gnu64.h: New file.
11906
11907 2015-05-08 Marek Polacek <polacek@redhat.com>
11908
11909 PR c/64918
11910 * doc/invoke.texi: Document -Woverride-init-side-effects.
11911
11912 2015-05-07 Marek Polacek <polacek@redhat.com>
11913
11914 PR c/65179
11915 * doc/invoke.texi: Document -Wshift-negative-value.
11916
11917 2015-05-06 Aditya Kumar <hiraditya@msn.com>
11918
11919 * gcov-tool.c (do_merge): Refactore to remove int ret.
11920 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
11921 !type == FUNC to type != FUNC.
11922 * reload.h (struct target_reload): Changee to type of
11923 x_spill_indirect_levels from bool to unsigned char.
11924
11925 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
11926
11927 * rtl.h (always_void_p): New function.
11928 * gengenrtl.c (always_void_p): Likewise.
11929 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
11930 with code foo are always VOIDmode.
11931 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
11932 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
11933 compare-elim.c, config/aarch64/aarch64.c,
11934 config/aarch64/aarch64.md, config/alpha/alpha.c,
11935 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
11936 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
11937 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
11938 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11939 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
11940 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
11941 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
11942 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
11943 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
11944 config/ia64/vect.md, config/iq2000/iq2000.c,
11945 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
11946 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
11947 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
11948 config/mep/mep.c, config/microblaze/microblaze.c,
11949 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
11950 config/mn10300/mn10300.c, config/msp430/msp430.c,
11951 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
11952 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
11953 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
11954 config/rs6000/altivec.md, config/rs6000/rs6000.c,
11955 config/rs6000/rs6000.md, config/rs6000/vector.md,
11956 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
11957 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
11958 config/sh/sh.md, config/sh/sh_treg_combine.cc,
11959 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
11960 config/spu/spu.md, config/stormy16/stormy16.c,
11961 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
11962 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
11963 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
11964 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
11965 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
11966 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
11967 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
11968 var-tracking.c: Update calls accordingly.
11969
11970 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11971
11972 PR middle-end/192
11973 PR middle-end/54303
11974 * varasm.c (function_mergeable_rodata_prefix): New function.
11975 (mergeable_string_section): Use it.
11976 (mergeable_constant_section): Use it.
11977
11978 2015-05-07 Jeff Law <law@redhat.com>
11979
11980 PR target/39726
11981 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11982 simplifier to narrow arithmetic.
11983 * generic-match-head.c: (types_match, single_use): New functions.
11984 * gimple-match-head.c: (types_match, single_use): New functions.
11985
11986 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11987
11988 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
11989 rtx type.
11990
11991 2015-05-07 Richard Biener <rguenther@suse.de>
11992
11993 PR tree-optimization/66002
11994 * passes.def: Schedule another pass_merge_phi after ifcombine, right
11995 before phiopt.
11996
11997 2015-05-07 Marek Polacek <polacek@redhat.com>
11998 Martin Uecker <uecker@eecs.berkeley.edu>
11999
12000 * doc/invoke.texi: Document -fsanitize=bounds-strict.
12001 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12002 into SANITIZE_NONDEFAULT.
12003 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12004
12005 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
12006
12007 PR target/66015
12008 * config/alpha/alpha.c (alpha_override_options_after_change): New.
12009 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12010 (alpha_override_options): Move align_loops, align_jumps and
12011 align_functions handling into alpha_override_options_after_change.
12012
12013 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
12014 Chris Jones <chrisj@nvidia.com>
12015 Joshua Conner <jconner@nvidia.com>
12016
12017 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12018 linking of crtfastmath.o.
12019 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12020
12021 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12022
12023 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12024 (cstore<mode>4_unsigned_imm): New expander.
12025 (cstore<mode>4): Remove empty constraint strings. Use the new
12026 expanders.
12027
12028 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
12029
12030 PR target/64208
12031 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12032 alternatives.
12033
12034 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12035
12036 * config/aarch64/geniterators.sh: Use standard BRE in sed.
12037
12038 2015-05-06 Alan Modra <amodra@gmail.com>
12039
12040 PR target/66033
12041 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12042 (UNSPEC_NOP): Define.
12043 (reload_vsx_from_gpr<mode>): Add missing DONE.
12044 (reload_gpr_from_vsx<mode>): Likewise.
12045 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12046 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12047
12048 2015-05-06 Christian Bruel <christian.bruel@st.com>
12049
12050 PR target/66015
12051 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12052 align_jumps, align_functions into aarch64_override_options_after_change.
12053
12054 2015-05-06 Richard Biener <rguenther@suse.de>
12055
12056 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12057 vect_transform_slp_perm_load to check if we support a permutation
12058 for basic-block vectorization.
12059
12060 2015-05-06 Nick Clifton <nickc@redhat.com>
12061
12062 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12063 used, even if it is not being used as a frame pointer.
12064
12065 2015-05-05 Jason Merrill <jason@redhat.com>
12066
12067 * dwarf2out.c (gen_member_die): Don't emit anything for an
12068 anonymous class constructor.
12069
12070 2015-05-05 David Malcolm <dmalcolm@redhat.com>
12071
12072 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12073 that it reflects the block structure.
12074 (afdo_propagate_edge): Likewise.
12075 (afdo_calculate_branch_prob): Likewise.
12076 (afdo_annotate_cfg): Likewise.
12077 * cfgcleanup.c (equal_different_set_p): Likewise.
12078 (try_crossjump_to_edge): Likewise.
12079 * cgraph.c (cgraph_node::verify_node): Likewise.
12080 * cgraphunit.c (expand_all_functions): Likewise.
12081 * config/i386/i386.c (ix86_expand_copysign): Likewise.
12082 (exact_dependency_1): Likewise.
12083 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12084 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12085 * gensupport.c (process_define_subst): Likewise.
12086 * lto-wrapper.c (merge_and_complain): Likewise.
12087 * tree-if-conv.c (if_convertible_bb_p): Likewise.
12088 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12089 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12090 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12091 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12092 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12093 * tree-vect-stmts.c (vectorizable_shift): Likewise.
12094 * tree-vrp.c (vrp_finalize): Likewise.
12095 * tree.c (variably_modified_type_p): Likewise.
12096
12097 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
12098
12099 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12100 on darwin12 and later.
12101 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12102 file to pass -rdynamic on darwin12 and later.
12103 * config/darwin.opt (rdynamic): Add.
12104
12105 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12106
12107 * doc/extend.texi (C Extensions): Update menu for moved Variable
12108 Attributes and Type Attributes sections.
12109
12110 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12111
12112 PR target/65990
12113 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12114 if rep_8byte stringop strategy was specified for 32-bit target.
12115
12116 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
12117
12118 PR target/65915
12119 * config/i386/i386.md (vector convert to float spltiter): Check for
12120 xmm16+, when splitting scalar float conversion.
12121 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12122
12123 2015-05-05 Nick Clifton <nickc@redhat.com>
12124
12125 * config/msp430/msp430-opts.h (enum msp430_regions): New.
12126 * config/msp430/msp430.c (msp430_override_options): Complain if
12127 -mcode-region or -mdata-region is used on a non MSP430X.
12128 (msp430_section_attr): New function. Checks lower, upper and
12129 either attributes.
12130 (msp430_attribute_table): Add lower, upper and either.
12131 (gen_prefix): New function. Generates a prefix for a section
12132 name.
12133 (msp430_select_section): New function - handles the choice of
12134 section for an object. Takes into account memory region
12135 attributes and options.
12136 (msp430_function_section): Use gen_prefix.
12137 (TARGET_SECTION_TYPE_FLAGS): Define.
12138 (msp430_section_type_flags): New function.
12139 (TARGET_ASM_UNIQUE_SECTION): Define.
12140 (msp430_unique_section): New function.
12141 (msp430_output_aligned_decl_common): New function.
12142 (msp430_do_not_relax_short_jumps): New function.
12143 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12144 Define.
12145 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12146 * config/msp430/msp430-protos.h
12147 (msp430_do_not_relax_short_jumps): New prototype.
12148 (msp430_output_aligned_decl_common): New prototype.
12149 * config/msp430/msp430.md (length): New attribute.
12150 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12151 then use a long code sequence for short jumps.
12152 * config/msp430/msp430.opt (mcode-region): New.
12153 (mdata-region): New.
12154 * doc/invoke.texi: Document new options.
12155 * doc/extend.texi: Document new attributes.
12156
12157 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12158
12159 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12160 (tune_params): Add field branch_costs.
12161 (aarch64_branch_cost): Declare.
12162 * gcc/config/aarch64.c (generic_branch_cost): New.
12163 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12164 (cortexa53_tunings): Likewise.
12165 (cortexa57_tunings): Likewise.
12166 (thunderx_tunings): Likewise.
12167 (xgene1_tunings): Likewise.
12168 (aarch64_branch_cost): Define.
12169 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12170
12171 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12172
12173 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12174 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12175 * config/i386/i386.md: Ditto.
12176 * config/i386/winnt.c: Ditto.
12177
12178 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12179
12180 * doc/extend.texi (__atomic Builtins): Move implementation details
12181 to the end of the description, rewrite opening paragraphs, state
12182 difference with __sync builtins, state C11/C++11 assumptions,
12183 weaken itemized descriptions, add explanation of memory model
12184 behaviour, expand description of compare-exchange, simplify text.
12185
12186 2015-05-05 Renlin Li <renlin.li@arm.com>
12187
12188 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12189
12190 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12191
12192 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12193 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12194 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12195 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12196 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12197 * configure: Regenerate.
12198 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12199 * doc/install.texi (aarch64*-*-*): Document new
12200 --enable-fix-cortex-a53-843419 option.
12201 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12202 and -mno-fix-cortex-a53-843419 options.
12203
12204 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12205
12206 PR target/65871
12207 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12208
12209 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12210
12211 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12212 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12213 compatibility problems.
12214
12215 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12216
12217 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12218 constraints.
12219 (cbranchsi4_reg): New.
12220 * config/microblaze/microblaze.c
12221 (microblaze_expand_conditional_branch_reg): New.
12222 * config/microblaze/microblaze-protos.h
12223 (microblaze_expand_conditional_branch_reg): New prototype.
12224
12225 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12226
12227 * config/microblaze/microblaze.md (peephole2): New.
12228
12229 2015-05-04 Jeff Law <law@redhat.com>
12230
12231 Revert:
12232 2015-05-04 Jeff Law <law@redhat.com>
12233
12234 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12235 simplifier to narrow arithmetic.
12236 * generic-match-head.c: (types_match, single_use): New functions.
12237 * gimple-match-head.c: (types_match, single_use): New functions.
12238
12239 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12240
12241 PR target/65987
12242 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12243 (split_branches): Likewise.
12244
12245 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12246
12247 * common.opt (fdelete-null-pointer-checks): Init to -1.
12248 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12249 override flag_delete_null_pointer_checks default.
12250 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12251 behavior re address zero. Better document target-specific behavior.
12252 (-fisolate-errneous-paths-dereference): Mention relationship to
12253 -fdelete-null-pointer-checks.
12254
12255 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12256
12257 PR tree-optimization/65984
12258 * ubsan.c: Include tree-cfg.h.
12259 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12260 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12261
12262 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12263
12264 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12265 to CONST_DOUBLE_P predicate.
12266 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12267 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12268 allow only operands that satisfy standard_sse_constant_p predicate.
12269 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12270 to CONST_DOUBLE_P predicate.
12271
12272 2015-05-04 Jeff Law <law@redhat.com>
12273
12274 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12275 simplifier to narrow arithmetic.
12276 * generic-match-head.c: (types_match, single_use): New functions.
12277 * gimple-match-head.c: (types_match, single_use): New functions.
12278
12279 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12280
12281 * config/arm/arm.c: Restore bootstrap.
12282
12283 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12284
12285 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12286 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12287 as CONST_WIDE_INT, not CONST_DOUBLE.
12288 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12289 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12290 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12291 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12292 (ix86_build_signbit_mask): Rewrite using wide ints.
12293 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12294 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12295 (find_constant): Ditto.
12296 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12297 using gen_int_mode.
12298 * config/i386/predicates.md (x86_64_immediate_operand)
12299 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12300 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12301 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12302 (const0_operand): Also match const_wide_int.
12303 (constm1_operand): Ditto.
12304 (const1_operand): Ditto.
12305
12306 2015-05-04 Richard Biener <rguenther@suse.de>
12307
12308 PR tree-optimization/65965
12309 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12310 store groups at gaps.
12311
12312 2015-05-04 Richard Biener <rguenther@suse.de>
12313
12314 PR tree-optimization/65935
12315 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12316 then make sure to apply that swapping to the IL.
12317
12318 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12319
12320 * Makefile.in (PATCHLEVEL_c): New variable.
12321 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12322 expand the same way as if DEVPHASE_c was non-empty.
12323
12324 2015-05-04 Kai Tietz <ktietz@redhat.com>
12325
12326 PR target/65559
12327 * lto-wrapper.c (run_gcc): Open filename
12328 in binary-mode.
12329
12330 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12331
12332 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12333 sections up in file, to immediately after the Function Attributes
12334 section.
12335
12336 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12337
12338 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12339
12340 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12341
12342 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12343 (insert_partition_copy_on_edge): Adjust.
12344 (insert_rtx_to_part_on_edge): Likewise.
12345 (insert_part_to_rtx_on_edge): Likewise.
12346
12347 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12348
12349 * function.c (set_return_jump_label): Change type of argument to
12350 rtx_insn *.
12351 * function.h (set_return_jump_label): Adjust.
12352
12353 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12354
12355 * reload.h (struct reg_equivs_t): Change type of init to
12356 rtx_insn *.
12357 * ira.c (fix_reg_equiv_init): Adjust.
12358 * reload1.c (eliminate_regs_1): Likewise.
12359 (init_eliminable_invariants): Likewise.
12360
12361 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12362
12363 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12364 * cselib.h (fp_setter_insn): Adjust.
12365
12366 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12367
12368 * recog.c (struct validate_replace_src_data): Change type of
12369 insn field to rtx_insn *.
12370 (validate_replace_src_group): Change type of argument to rtx_insn *.
12371 * recog.h (validate_replace_src_group): Adjust.
12372
12373 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12374
12375 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12376 * sched-deps.c: Likewise.
12377 * sched-int.h: Likewise.
12378 * sched-rgn.c: Likewise.
12379 * sel-sched.c: Likewise.
12380
12381 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12382
12383 to rtx_insn *.
12384 * config/i386/i386.c: Change the type of some arguments to
12385 rtx_insn *.
12386 * config/arm/arm.c: Likewise.
12387
12388 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12389
12390 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12391
12392 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12393
12394 * regcprop.c (kill_autoinc_value): Change type of argument to
12395 rtx_insn *.
12396
12397 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12398
12399 * genrecog.c (print_subroutine): Adjust.
12400 * recog.c (get_bool_attr_mask_uncached): Likewise.
12401 * recog.h (struct recog_data_d): Change the type of insn to
12402 rtx_insn *.
12403
12404 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12405
12406 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12407
12408 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12409
12410 * df-problems.c (df_set_note): Change type of argument to
12411 rtx_insn *.
12412
12413 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12414
12415 * builtins.c (expand_builtin_trap): Change type of local
12416 variable to rtx_insn *.
12417 (add_sched_insns_for_speculation): Likewise.
12418 (ix86_emit_save_regs): Likewise.
12419 (get_scratch_register_on_entry): Likewise.
12420 (ix86_emit_restore_reg_using_pop): Likewise.
12421 (ix86_emit_leave): Likewise.
12422 (ix86_emit_restore_regs_using_mov): Likewise.
12423 (ix86_expand_epilogue): Likewise.
12424 Likewise.
12425 (rl78_alloc_physical_registers_umul): Likewise.
12426 * cselib.c (discard_useless_locs): Likewise.
12427 (cselib_invalidate_regno): Likewise.
12428 (cselib_invalidate_mem): Likewise.
12429 * function.c (expand_function_start): Likewise.
12430 (emit_use_return_register_into_block): Likewise.
12431 * gcse.c: Likewise.
12432 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12433 * ifcvt.c (noce_get_alt_condition): Likewise.
12434 * loop-doloop.c (doloop_condition_get): Likewise.
12435 * lra-constraints.c (inherit_in_ebb): Likewise.
12436 * modulo-sched.c (sms_schedule_by_order): Likewise.
12437 * recog.c (next_insn_tests_no_inequality): Likewise.
12438 * reorg.c (emit_delay_sequence): Likewise.
12439 (update_reg_dead_notes): Likewise.
12440 (fix_reg_dead_note): Likewise.
12441 (fill_slots_from_thread): Likewise.
12442 (delete_computation): Likewise.
12443
12444 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12445
12446 * doc/extend.texi (Variable Attributes): Add menu and proper
12447 @nodes to subsections. Move Microsoft Windows attributes to
12448 their own subsection.
12449 (Type Attributes): Reorganize introduction to remove duplicate
12450 list of attributes. Add menu and proper @nodes to subsections.
12451 Alphabetize the main table of common attributes.
12452
12453 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12454
12455 * match.pd: New simplification patterns.
12456 (x + (x & 1)) -> ((x + 1) & ~1)
12457 (x & ~(x & y)) -> ((x & ~y))
12458 (x | ~(x | y)) -> ((x | ~y))
12459
12460 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12461
12462 * target.def (attribute_table): Mention that struct attribute_spec
12463 is defined in tree-core.h rather than tree.h
12464 * doc/tm.texi: Regenerate.
12465
12466 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12467
12468 * genrecog.c (test): Rename to rtx_test. Update rest of file
12469 accordingly.
12470
12471 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12472
12473 PR translation/65959
12474 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12475
12476 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12477
12478 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12479 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12480 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12481 Return value depending on target.
12482 (generic_tunings): Initialize new target settings.
12483 (cortexa53_tunings): Likewise.
12484 (cortexa57_tunings): Likewise.
12485 (thunderx_tunings): Likewise.
12486 (xgene1_tunings): Likewise.
12487
12488 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12489
12490 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12491 Make Cortex-A53 shift costs more accurate.
12492
12493 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12494
12495 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12496 UNSIGNED_FLOAT.
12497
12498 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12499
12500 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12501 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12502
12503 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12504
12505 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12506 Add cost of op0 in the compare-with-fpzero case.
12507
12508 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12509
12510 * builtins.c (fold_builtin_1): Remove spurious second
12511 semicolon.
12512 * cgraph.h (symtab_node::get_availability): Likewise.
12513 * opts.c (common_handle_option): Remove spurious second semicolon.
12514 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12515 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12516
12517 2015-04-30 Caroline Tice <cmtice@google.com>
12518
12519 PR gcov-profile/65929
12520 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12521 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12522 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12523 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12524 * doc/tm.texi: Regenerate.
12525 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12526 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12527 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12528 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12529
12530 2015-04-30 Marek Polacek <polacek@redhat.com>
12531
12532 * varasm.c (handle_cache_entry): Fix logic.
12533
12534 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12535
12536 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12537 (*extrsi5_insn_uxtw_alt): Likewise.
12538 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12539 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12540 operations.
12541
12542 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12543
12544 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12545 fabd in ABS case.
12546
12547 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12548
12549 * config/aarch64/aarch64.md
12550 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12551 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12552 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12553 appropriately. Handle alternative EON form.
12554
12555 2015-04-30 Renlin Li <renlin.li@arm.com>
12556
12557 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12558 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12559
12560 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12561
12562 PR ipa/65873
12563 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12564 -fstrict-aliasing boundaries.
12565
12566 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12567
12568 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12569 and [SU]MNEGL patterns.
12570
12571 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12572
12573 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12574 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12575 combined arithmetic-shift ops. Properly handle all shift and extend
12576 operations that can occur in combination with PLUS/MINUS.
12577 Rename maybe_fma to compound_p.
12578 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12579 arithmetic and shift operations.
12580
12581 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12582
12583 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12584 rather than arith_shift cost when costing ADD/MINUS of an
12585 extended value.
12586
12587 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12588
12589 PR lto/65948
12590 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12591 to itself.
12592
12593 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12594
12595 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12596 are for the same position.
12597
12598 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12599
12600 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12601 vectorize_loops.
12602 (vectorize_loops): Use it.
12603
12604 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12605
12606 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12607 for aggregate types.
12608 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12609 type to be non_ODR.
12610 * tree.c (need_assembler_name_p): Compute mangled name for
12611 non-fundamental types and integer types.
12612
12613 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12614
12615 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12616 manual swaps.
12617 * expr.c (expand_expr_real_2): Likewise.
12618
12619 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12620
12621 * tree.c (build_common_builtin_nodes): Do not build
12622 __builtin_alloca_with_align as equivalent of library alloca.
12623
12624 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12625
12626 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12627 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12628 bugus variants.
12629 * tree.c: Include print-tree.h and ipa-utils.h
12630 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12631 (free_lang_data_in_cgraph): Call verify_type.
12632 (verify_type_variant): New function.
12633 (verify_type): New function.
12634 * tree.h (verify_type): Declare.
12635
12636 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12637
12638 * config/mips/mips-cpus.def: (mips4): Change default processor
12639 from PROCESSOR_R8000 to PROCESSOR_R10000.
12640
12641 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12642
12643 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12644 la/jalr instead of jal.
12645
12646 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12647
12648 PR target/65871
12649 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12650 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12651 (setcc+movzbl peephole2): Check also clobbered reg.
12652 (setcc+andl peephole2): Ditto.
12653
12654 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12655
12656 PR libgomp/65099
12657 * config/nvptx/mkoffload.c (target_ilp32): New variable.
12658 (main): Set it depending on "-foffload-abi=[...]".
12659 (compile_native, main): Use it to pass "-m32" or "-m64" to the
12660 compiler.
12661
12662 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12663
12664 PR target/65770
12665 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12666 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12667 Flip lane index back at assembly time for bigendian.
12668
12669 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12670
12671 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12672 * gimplify.c (gimplify_omp_workshare): Use it.
12673
12674 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12675
12676 * Makefile.in (build/genrecog.o): Depend on inchash.h.
12677 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12678 build/inchash.o
12679 * genrecog.c: Rewrite most of the code except for the third page.
12680
12681 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12682
12683 * inchash.h, inchash.c: Include bconfig.h for build objects.
12684 * Makefile.in (build/inchash.o): New rule.
12685
12686 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
12687
12688 PR target/65924
12689 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12690 number in type attribute expression.
12691
12692 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12693
12694 * loop-iv.c (canon_condition): Generalize to all types of integer
12695 constant.
12696
12697 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
12698
12699 * gimple-walk.c: Prune duplicate or unneeded includes.
12700 (walk_gimple_asm): Only call parse_input_constraint or
12701 parse_output_constraint if their findings are used.
12702 Honour parse_input_constraint and parse_output_constraint
12703 result.
12704
12705 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12706
12707 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12708
12709 2015-04-29 Tom de Vries <tom@codesourcery.com>
12710
12711 PR tree-optimization/65893
12712 * passes.def (pass_all_optimizations): Move pass_stdarg to after
12713 pass_dce.
12714
12715 2015-04-29 Richard Biener <rguenther@suse.de>
12716
12717 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12718 compute GROUP_SIZE for basic-block SLP.
12719 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12720 take into account gaps.
12721 (vect_get_mask_element): Properly reject references to previous
12722 vectors.
12723 (vect_transform_slp_perm_load): Likewise.
12724
12725 2015-04-29 Christian Bruel <christian.bruel@st.com>
12726
12727 PR target/64835
12728 * config/i386/i386.c (ix86_default_align): New function.
12729 (ix86_override_options_after_change): Call ix86_default_align.
12730 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12731 (ix86_override_options_after_change): New function.
12732
12733 2015-04-28 Jeff Law <law@redhat.com>
12734
12735 * tree-ssa-dom.c (record_equality); Fix comment typos.
12736
12737 2015-04-28 Tom de Vries <tom@codesourcery.com>
12738
12739 PR tree-optimization/65887
12740 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12741
12742 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
12743
12744 * doc/extend.texi (Declaring Attributes of Functions): Split into
12745 subsections by target. Alphabetize the table of common attributes.
12746 Rewrite some of the introductory text to reflect the new structure.
12747 Update some cross-references to point to the new subsections.
12748 (Attribute Syntax): Put paragraph about "__" naming here. Remove
12749 duplicate copies in the discussion of function, label, and type
12750 attributes.
12751
12752 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
12753
12754 PR bootstrap/65910
12755 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12756
12757 2015-04-28 Jason Merrill <jason@redhat.com>
12758
12759 PR c++/65734
12760 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12761 (finalize_type_size): Respect TYPE_USER_ALIGN.
12762 (layout_type) [ARRAY_TYPE]: Likewise.
12763
12764 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
12765
12766 * config/arm/arm.md (*arm_movt): Fix type attribute.
12767 (*cmpsi_shiftsi): Likewise.
12768 (*cmpsi_shiftsi_swp): Likewise.
12769 (*movsicc_insn): Likewise.
12770 (*cond_move): Likewise.
12771 (*if_plus_move): Likewise.
12772 (*if_move_plus): Likewise.
12773 (*if_arith_move): Likewise.
12774 (*if_move_arith): Likewise.
12775 (*if_shift_move): Likewise.
12776 (*if_move_shift): Likewise.
12777 (*arm_movtas_ze): Likewise.
12778 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12779 redundancy and type attribute.
12780 (*thumb2_movsi_insn): Fix type attribute.
12781 (*thumb2_addsi_short): Likewise.
12782 (thumb2_addsi3_compare0): Likewise.
12783 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12784 attributes accordingly.
12785
12786 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12787
12788 PR other/65911
12789 * function.c (pad_to_arg_alignment): Add parentheses.
12790
12791 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
12792
12793 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12794 libgcc/config/frv/elf-lib.h.
12795
12796 2015-04-28 Tom de Vries <tom@codesourcery.com>
12797
12798 * tree-call-cdce.c: Fix example in header comment.
12799
12800 2015-04-28 Richard Biener <rguenther@suse.de>
12801
12802 PR tree-optimization/62283
12803 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12804 fails fatally and we are vectorizing a basic-block simply
12805 cause the child to be constructed piecewise.
12806 (vect_analyze_slp_cost_1): Adjust.
12807 (vect_detect_hybrid_slp_stmts): Likewise.
12808 (vect_bb_slp_scalar_cost): Likewise.
12809 (vect_get_constant_vectors): For piecewise constructed
12810 constants place them after the last def.
12811 (vect_get_slp_defs): Adjust.
12812 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12813 externals for basic-block vectorization.
12814
12815 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12816
12817 PR target/63503
12818 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12819 aarch64-*-*.
12820 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12821 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12822 (AARCH64_TUNE_FMA_STEERING): Likewise.
12823 * config/aarch64/aarch64-cores.def: Set
12824 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12825 FMUL/FMADD instructions.
12826 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12827 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
12828 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12829 * config/aarch64/cortex-a57-fma-steering.h: New file.
12830 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12831
12832 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
12833
12834 * gensupport.c (std_preds): Add missing codes to address_operand entry.
12835
12836 2015-04-28 Richard Biener <rguenther@suse.de>
12837
12838 PR tree-optimization/65851
12839 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12840 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
12841 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
12842 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12843 (ccp_visit_phi_node): Adjust.
12844 (evaluate_stmt): For simplifications to SSA names return its
12845 lattice value if that isn't VARYING. Return immediately when
12846 simplified to a constant.
12847 (visit_assignment): Adjust.
12848 (ccp_visit_stmt): Likewise.
12849
12850 2015-04-28 Tom de Vries <tom@codesourcery.com>
12851
12852 PR tree-optimization/65818
12853 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12854 evaluated.
12855
12856 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12857
12858 * calls.c (save_fixed_argument_area): Don't check
12859 ARGS_GROW_DOWNWARD with the preprocessor.
12860 (restore_fixed_argument_area): Likewise.
12861 (mem_overlaps_already_clobbered_arg_p): Likewise.
12862 (check_sibcall_argument_overlap): Likewise.
12863 (expand_call): Likewise.
12864 (emit_library_call_value_1): Likewise.
12865 (store_one_arg): Likewise.
12866 * function.c (assign_parms): Likewise.
12867 (locate_and_pad_parm): Likewise.
12868 (pad_to_arg_alignment): Likewise.
12869 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12870
12871 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12872
12873 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
12874 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
12875 * calls.c (save_fixed_argument_area): Don't chekc if
12876 ARGS_GROW_DOWNWARD is defined.
12877 (restore_fixed_argument_area): Likewise.
12878 (mem_overlaps_already_clobbered_arg_p): Likewise.
12879 (check_sibcall_argument_overlap): Likewise.
12880 (expand_call): Likewise.
12881 (emit_library_call_value_1): Likewise.
12882 (store_one_arg): Likewise.
12883 * function.c (assign_parms): Likewise.
12884 (locate_and_pad_parm): Likewise.
12885 (pad_to_arg_alignment): Likewise.
12886 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12887
12888 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12889
12890 * defaults.h (gen_epilogue): New function.
12891 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
12892 defined.
12893 * cfgrtl.c (cfg_layout_finalize): Likewise.
12894 * df-scan.c: Likewise.
12895 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12896 (reposition_prologue_and_epilogue_notes): Likewise.
12897 * reorg.c (find_end_label): Likewise.
12898 * toplev.c: Likewise.
12899
12900 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12901
12902 * bb-reorder.c (HAVE_return): Don't check if its undefined.
12903 * defaults.h (gen_simple_return): New function.
12904 (gen_simple_return): Likewise.
12905 (HAVE_return): Add default definition to false.
12906 (HAVE_simple_return): Likewise.
12907 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
12908 HAVE_return and HAVE_simple_return are defined.
12909 * function.c (gen_return_pattern): Likewise.
12910 (convert_jumps_to_returns): Likewise.
12911 (thread_prologue_and_epilogue_insns): Likewise.
12912 * reorg.c (find_end_label): Likewise.
12913 (dbr_schedule): Likewise.
12914 * shrink-wrap.c: Likewise.
12915 * shrink-wrap.h: Likewise.
12916
12917 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12918
12919 * defaults.h (EPILOGUE_USES): Add default definition of false.
12920 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
12921 * resource.c (init_resource_info): Likewise.
12922
12923 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12924
12925 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
12926 to false.
12927 * dwarf2out.c (field_byte_offset): REmove check if
12928 PCC_BITFIELD_TYPE_MATTERS is defined.
12929 * stor-layout.c (layout_decl): Likewise.
12930 (update_alignment_for_field): Likewise.
12931 (place_field): Likewise.
12932
12933 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12934
12935 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
12936 true.
12937 * regrename.c (check_new_reg_p): Remove check if
12938 HARD_REGNO_RENAME_OK is defined.
12939 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
12940
12941 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12942
12943 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
12944 * cse.c (fold_rtx): Likewise.
12945 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
12946 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
12947 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
12948 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
12949 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
12950 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
12951 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
12952 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
12953 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
12954 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
12955 * Likewise.
12956 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
12957 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
12958 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
12959 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
12960 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
12961 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
12962 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
12963 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
12964 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
12965 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
12966 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
12967 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
12968 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
12969 * doc/tm.texi: Regenerate.
12970 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
12971 either true or false.
12972
12973 2015-04-27 Jeff Law <law@redhat.com>
12974
12975 PR tree-optimization/65217
12976 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
12977 of them has a single use, make sure it is the LHS of the implied
12978 copy.
12979
12980 2015-04-28 Alan Modra <amodra@gmail.com>
12981
12982 PR target/65810
12983 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
12984 (offsettable_ok_by_alignment): Use minimum of decl and toc
12985 pointer alignment. Replace dead code with assertion.
12986 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
12987 case if size exceeds toc pointer alignment.
12988 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
12989 (rs6000_emit_move): Likewise.
12990 * configure.ac: Add linker toc pointer alignment check.
12991 * configure: Regenerate.
12992 * config.in: Regenerate.
12993
12994 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
12995
12996 * config.gcc: Add h8300-*-linux.
12997 * config/h8300/linux.h: New.
12998 * config/h8300/t-linux: New.
12999 * config/h8300/h8300.c (h8300_option_override): Normal mode
13000 is not supported for h8300-*-linux.
13001 (h8300_file_start): Target priority change.
13002 (get_shift_alg): Likewise.
13003 (h8300_shift_need_scratch_p): Likewise.
13004 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13005 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13006
13007 2015-04-27 Caroline Tice <cmtice@google.com>
13008
13009 * final.c (final_scan_insn): Output cold_function_name as function
13010 type.
13011 * varasm.c (cold_function_name): Make global.
13012 (assemble_start_function): Re-set cold_function_name.
13013 (assemble_end_function): Output cold partition size.
13014 * varasm.h (cold_function_name): Declare global.
13015
13016 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
13017
13018 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13019 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13020 constraint.
13021 (*movxi_internal_avx512f): Ditto.
13022 (define_split): Check for xmm16+, when splitting scalar float_extend.
13023 (*extendsfdf2_mixed): Use "v" constraint.
13024 (define_split): Check for xmm16+, when splitting scalar float_truncate.
13025 (*truncdfsf_fast_sse): Use "v" constraint.
13026 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13027 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13028 (define_peephole2): Check for xmm16+, when converting scalar
13029 float_truncate.
13030 (define_peephole2): Check for xmm16+, when converting scalar
13031 float_extend.
13032 (*fop_<mode>_comm_mixed): Use "v" constraint.
13033 (*fop_<mode>_comm_sse): Ditto.
13034 (*fop_<mode>_1_mixed): Ditto.
13035 (*sqrt<mode>2_sse): Ditto.
13036 (*ieee_s<ieee_maxmin><mode>3): Ditto.
13037
13038 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13039
13040 * combine.c (simplify_if_then_else): Use std::swap instead
13041 of manually swapping.
13042 (known_cond): Likewise.
13043 (simplify_comparison): Likewise.
13044
13045 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
13046
13047 PR target/64579
13048 * config/rs6000/htm.md: Remove all define_expands.
13049 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13050 UNSPECV_HTM_TABORTWCI): Remove.
13051 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13052 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13053 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13054 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13055 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13056 tabortwci_internal): Remove define_insns.
13057 (tabort<wd>c, tabort<wd>ci): New define_insns.
13058 (tabort): Use gpc_reg_operand.
13059 (tcheck): Remove operand.
13060 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13061 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13062 expected value.
13063 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13064 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
13065 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13066 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13067 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13068 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13069 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13070 (tcheck): Remove builtin argument.
13071 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13072 not TARGET_64BIT.
13073 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
13074 tabortdc and tabortdci builtins when not in 64-bit mode.
13075 Modify code to handle the loss of the HTM define_expands.
13076 Emit code to copy the CR register to TARGET.
13077 (htm_init_builtins): Modify code to handle the loss of the HTM
13078 define_expands.
13079 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13080 (RS6000_BTC_64BIT): Likewise.
13081 (RS6000_BTC_CR): New macro.
13082 * doc/extend.texi: Update documentation for htm builtins.
13083
13084 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13085
13086 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13087 of manually swapping.
13088 (simplify_associative_operation): Likewise.
13089 (simplify_binary_operation): Likewise.
13090 (simplify_plus_minus): Likewise.
13091 (simplify_relational_operation): Likewise.
13092 (simplify_ternary_operation): Likewise.
13093
13094 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13095
13096 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13097 (xs_hi_nonmemory_operand): Remove error.
13098 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13099 general_operand rather than xs_hi_general_operand.
13100
13101 2015-04-27 Richard Biener <rguenther@suse.de>
13102
13103 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13104 (record_equivalences_from_stmt): Valueize rhs.
13105 (record_equality): Canonicalize x and y order via
13106 tree_swap_operands_p. Do not swap operands for same loop depth.
13107
13108 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
13109
13110 PR target/65296
13111 PR target/65895
13112 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13113 Add hint how to use own spec file.
13114
13115 2015-04-27 Jakub Jelinek <jakub@redhat.com>
13116
13117 PR tree-optimization/65875
13118 * tree-vrp.c (update_value_range): If in is_new case setting
13119 old_vr to VR_VARYING, also set new_vr to it. Remove
13120 old_vr->type == VR_VARYING test.
13121 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13122 SSA_PROP_INTERESTING if update_value_range returned true,
13123 but new range is VR_VARYING.
13124
13125 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13126
13127 * combine.c (sign_extend_short_imm): New.
13128 (set_nonzero_bits_and_sign_copies): Use above new function for sign
13129 extension of src short immediate.
13130 (reg_nonzero_bits_for_combine): Likewise for tem.
13131
13132 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13133
13134 * stor-layout.c (self_referential_component_ref_p): New predicate.
13135 (copy_self_referential_tree_r): Use it.
13136 (self_referential_size): Punt for simple operations directly involving
13137 self-referential component references.
13138 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13139
13140 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13141
13142 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13143
13144 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13145
13146 * vec.h (vec): Make splice arguments const. Update definitions
13147 accordingly.
13148
13149 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13150
13151 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13152 alternatives.
13153
13154 2015-04-26 Tom de Vries <tom@codesourcery.com>
13155
13156 PR tree-optimization/65826
13157 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13158
13159 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13160
13161 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13162 (*madd3<mode>): Ditto.
13163 (*msub4<mode>): Ditto.
13164 (*msub3<mode>): Ditto.
13165 (*nmadd4<mode>): Ditto.
13166 (*nmadd3<mode>): Ditto.
13167 (*nmadd4<mode>_fastmath): Ditto.
13168 (*nmadd3<mode>_fastmath): Ditto.
13169 (*nmsub4<mode>): Ditto.
13170 (*nmsub3<mode>): Ditto.
13171 (*nmsub4<mode>_fastmath): Ditto.
13172 (*nmsub3<mode>_fastmath): Ditto.
13173
13174 2015-04-24 Jason Merrill <jason@redhat.com>
13175
13176 PR c++/50800
13177 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13178 down when building TYPE_CANONICAL.
13179 (build_pointer_type_for_mode): Likewise.
13180
13181 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13182
13183 * genrecog.c (validate_pattern): Check matching constraint refers
13184 to a lower numbered operand.
13185
13186 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13187
13188 PR target/65849
13189 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13190 save to independent variables use the Save attribute. This will
13191 allow these options to be modified with the #pragma/attribute
13192 target support.
13193 (-mallow-movmisalign): Likewise.
13194 (-mallow-df-permute): Likewise.
13195 (-msched-groups): Likewise.
13196 (-malways-hint): Likewise.
13197 (-malign-branch-targets): Likewise.
13198 (-mvectorize-builtins): Likewise.
13199 (-msave-toc-indirect): Likewise.
13200
13201 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13202 can be set via the #pragma/attribute target support.
13203 (rs6000_opt_vars): Likewise.
13204 (rs6000_inner_target_options): If VSX was set, also set
13205 -mno-avoid-indexed-addresses.
13206
13207 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13208
13209 * config/arm/iterators.md (shiftable_ops): Rename to...
13210 (SHIFTABLE_OPS): ... This. Update use in comments.
13211 (ior_xor): Rename to...
13212 (IOR_XOR): ... This.
13213 (vqh_ops): Rename to...
13214 (VQH_OPS): ... This.
13215 (vqhs_ops): Rename to...
13216 (VQHS_OPS): ... This.
13217 (rshifts): Rename to...
13218 (RSHIFTS): ... This.
13219 (returns): Rename to...
13220 (RETURNS): ... This.
13221 * config/arm/arm.md: Update uses of the above.
13222 * config/arm/neon.md: Likewise.
13223
13224 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13225
13226 * config.host (case ${host}): Add aarch64*-*-linux case.
13227 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13228 fields to all the cores.
13229 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13230 Add MCPU_MTUNE_NATIVE_SPECS.
13231 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13232 field to all extensions.
13233 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13234 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13235 Adjust definition of AARCH64_OPT_EXTENSION.
13236 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13237 (MCPU_MTUNE_NATIVE_SPECS): Define.
13238 * config/aarch64/driver-aarch64.c: New file.
13239 * config/aarch64/x-arch64: New file.
13240 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13241 -mtune and -march.
13242
13243 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13244 Wei Mi <wmi@google.com>
13245
13246 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13247 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13248 (ix86_operands_ok_for_move_multiple): Ditto.
13249 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13250 (movlpd/movhpd to movupd peephole2): Ditto.
13251
13252 2015-04-24 Marek Polacek <polacek@redhat.com>
13253
13254 PR c/61534
13255 * input.h (from_macro_expansion_at): Define.
13256
13257 PR c/63357
13258 * doc/invoke.texi: Update description of -Wlogical-op.
13259
13260 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13261
13262 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13263 ternary operator in fprintf and harmonize spacing.
13264
13265 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13266
13267 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13268 Mark operand1 commutative.
13269
13270 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13271
13272 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13273 input operands in memory.
13274 (*vec_concatv2si_sse4_1): Ditto.
13275 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13276 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13277 register_operand.
13278 (vec_extract_hi_v32hi): Ditto.
13279 (vec_extract_hi_v64hi): Ditto.
13280 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13281
13282 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13283 Steven Bosscher <steven@gcc.gnu.org>
13284
13285 PR rtl-optimization/34503
13286 * cprop.c (cprop_reg_p): New.
13287 (hash_scan_set): Use above function to check if register can be
13288 propagated.
13289 (find_avail_set): Return up to two sets, one whose source is a
13290 register and one whose source is a constant. Sets are returned in an
13291 array passed as parameter rather than as a return value.
13292 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13293 sets returned by find_avail_set, starting with the one whose source is
13294 a constant. Use cprop_reg_p to check if register can be propagated.
13295 (do_local_cprop): Use cprop_reg_p to check if register can be
13296 propagated.
13297 (implicit_set_cond_p): Likewise.
13298
13299 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13300
13301 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13302 (sem_function::equals): IGNORED_NODES parameter is now unused;
13303 update call of equals_private.
13304 (sem_function::equals_private): Do not call equals_wpa; skip
13305 gimple body matching if there is no body.
13306 (sem_function::init): Add logic to hash tthunk info.
13307 (sem_function::parse): Also parse thunks.
13308 * ipa-icf.h (equals_private): Update declaration.
13309
13310 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13311
13312 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13313 asterisk from name so this can be generated directly.
13314 (*altivec_stvx_<mode>_internal): Likewise.
13315 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13316 that this is never called during or after reload/lra.
13317 (rs6000_frame_related): Remove split_reg
13318 argument and logic that references it.
13319 (emit_frame_save): Remove last parameter from call to
13320 rs6000_frame_related.
13321 (rs6000_emit_prologue): Remove last parameter from eight calls to
13322 rs6000_frame_related. Force generation of stvx instruction for
13323 Altivec register saves. Remove split_reg handling, which is no
13324 longer needed.
13325 (rs6000_emit_epilogue): Force generation of lvx instruction for
13326 Altivec register restores.
13327
13328 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13329
13330 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13331 match category changes in ISA 2.07B.
13332
13333 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13334
13335 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13336 iterators.
13337 (cmp_op, cmp_type): New code attributes.
13338 (NEON_VCMP, NEON_VACMP): New int iterators.
13339 (cmp_op_unsp): New int attribute.
13340 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13341 (neon_vceq<mode>): Delete.
13342 (neon_vc<cmp_op><mode>_insn): New pattern.
13343 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13344 (neon_vcgeu<mode>): Delete.
13345 (neon_vcle<mode>): Likewise.
13346 (neon_vclt<mode>: Likewise.
13347 (neon_vcage<mode>): Likewise.
13348 (neon_vcagt<mode>): Likewise.
13349 (neon_vca<cmp_op><mode>): New define_expand.
13350 (neon_vca<cmp_op><mode>_insn): New pattern.
13351 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13352
13353 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13354
13355 * tree.h (attribute_value_equal): Declare.
13356 * tree.c (attribute_value_equal): Export.
13357
13358 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13359
13360 * ipa-icf.c (sem_item::compare_attributes): New function.
13361 (sem_item::compare_referenced_symbol_properties): Compare variable
13362 attributes.
13363 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13364 (sem_function::param_used_p): New function.
13365 (sem_function::equals_wpa): Fix attribute comparsion; match
13366 parameter type codes; do not compare paremter flags when
13367 they are not used; compare edge flags; compare indirect calls.
13368 (sem_item::update_hash_by_addr_refs): Hash reference type.
13369 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13370 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13371 reference use type.
13372 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13373 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13374
13375 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13376
13377 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13378 cleanup.
13379 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13380 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13381 (sem_item::compare_referenced_symbol_properties): New.
13382 (sem_item::hash_referenced_symbol_properties): New.
13383 (sem_item::compare_cgraph_references): Rename to ...
13384 (sem_item::compare_symbol_references): ... this one; use
13385 compare_referenced_symbol_properties.
13386 (sem_function::equals_wpa): Do not compare
13387 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13388 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13389 (sem_item::update_hash_by_addr_refs): Call
13390 hash_referenced_symbol_properties.
13391 (sem_item::update_hash_by_local_refs): Cleanup.
13392 (sem_function::merge): Do not mix up symbol properties.
13393 (sem_variable::equals_wpa): Use compare_symbol_references.
13394 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13395 (sem_item::hash_referenced_symbol_properties): New.
13396 (sem_item::compare_symbol_references): New.
13397 (sem_item::compare_cgraph_references): Remove.
13398
13399 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13400
13401 PR target/26702
13402 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13403 Emit size of local.
13404
13405 2015-04-23 Nick Clifton <nickc@redhat.com>
13406
13407 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13408 ATTRIBUTE_UNUSED to x parameter.
13409 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13410
13411 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13412
13413 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13414 TARGET_CRYPTO to TARGET_P8_VECTOR>
13415 (crypto_vpermxor_<mode>): Likewise.
13416 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13417 (BU_CRYPTO_3A): Likewise.
13418 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13419 (BU_CRYPTO_OVERLOAD_3A): New #define.
13420 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13421 (VPMSUMH): Likewise.
13422 (VPMSUMW): Likewise.
13423 (VPMSUMD): Likewise.
13424 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13425 (VPERMXOR_V4SI): Likewise.
13426 (VPERMXOR_V8HI): Likewise.
13427 (VPERMXOR_V16QI): Likewise.
13428 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13429 BU_CRYPTO_OVERLOAD_2A.
13430 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13431 BU_CRYPTO_OVERLOAD_3A.
13432 * config/rs6000/rs6000.opt (mcrypto): Change description of
13433 option.
13434
13435 2015-04-23 Richard Biener <rguenther@suse.de>
13436
13437 * passes.def: Remove copy propagation passes run directly after CCP.
13438 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13439 SSA names.
13440 (ccp_visit_phi_node): Rework to handle first executable edge
13441 specially.
13442
13443 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13444
13445 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13446 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13447 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13448 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13449 (thumb_legimitimize_reload_address): Remove.
13450 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13451 Remove.
13452 (thumb_legimitimize_reload_address): Remove.
13453
13454 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13455
13456 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13457
13458 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13459
13460 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13461 MAX_LDM_STM_OPS.
13462 (store_multiple): Likewise.
13463
13464 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13465
13466 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13467 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13468 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13469 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13470 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13471 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13472 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13473 Specify issue_rate value.
13474 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13475 large switch statement.
13476 (arm_marvell_pj4_tune): New struct.
13477 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13478 struct.
13479
13480 2015-04-23 Richard Biener <rguenther@suse.de>
13481
13482 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13483 (vect_find_last_store_in_slp_instance): Rename to ...
13484 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13485 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13486 and vec_construct for external defs when estimating prologue cost.
13487 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13488 Compute costs here only when vectorizing loops.
13489 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13490 have been determined.
13491 (vect_schedule_slp_instance): Simplify vectorized code placement
13492 and prepare for in-BB external defs.
13493 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13494 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13495 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13496 guard.
13497 (vect_model_load_cost): Likewise.
13498 (vectorizable_store): Instead add it here.
13499 (vectorizable_load): Likewise.
13500 (vect_is_simple_use): Dump def type textually.
13501
13502 2015-04-23 Richard Biener <rguenther@suse.de>
13503
13504 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13505 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13506 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13507 instead of get_eh_region_from_lp_number.
13508 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13509 the SCEV cache.
13510
13511 2015-04-23 Anton Blanchard <anton@samba.org>
13512
13513 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13514 need for -mprofile-kernel to save LR to stack.
13515
13516 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13517
13518 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13519 adjustments.
13520 (insn_is_swappable_p): Return 1 for a convert from double to
13521 single precision when all of its uses are splats of BE element
13522 zero.
13523
13524 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13525
13526 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13527
13528 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13529
13530 PR target/65456
13531 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13532 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13533 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13534 option.
13535 (rs6000_builtin_mask_for_load): Return 0 for targets with
13536 efficient unaligned VSX accesses so that the vectorizer will use
13537 direct unaligned loads.
13538 (rs6000_builtin_support_vector_misalignment): Always return true
13539 for targets with efficient unaligned VSX accesses.
13540 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13541 stores on targets with efficient unaligned VSX accesses is almost
13542 always the same as the cost of an aligned load or store, so model
13543 it that way.
13544 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13545 unaligned vectors if we have efficient unaligned VSX accesses.
13546 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13547 undocumented option.
13548
13549 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13550
13551 Revert:
13552 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13553
13554 * config.gcc (LIBC_MUSL): New tm_defines macro.
13555 * config/linux.h (OPTION_MUSL): Define.
13556 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13557 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13558 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13559
13560 * config/linux.opt (mmusl): New option.
13561 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13562 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13563
13564 * configure: Regenerate.
13565
13566 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13567
13568 * config.gcc (LIBC_MUSL): New tm_defines macro.
13569 * config/linux.h (OPTION_MUSL): Define.
13570 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13571 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13572 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13573
13574 * config/linux.opt (mmusl): New option.
13575 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13576 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13577
13578 * configure: Regenerate.
13579
13580 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13581
13582 * doc/invoke.texi (-fsanitize-sections): Update description.
13583 * asan.c (set_sanitized_sections): Parse incoming arg.
13584 (section_sanitized_p): Support wildcards.
13585
13586 2015-04-22 Tom de Vries <tom@codesourcery.com>
13587
13588 PR tree-optimization/65823
13589 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13590 equality between ap_copy and ap.
13591
13592 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13593
13594 PR target/47098
13595 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13596
13597 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13598
13599 PR target/47122
13600 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13601
13602 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13603
13604 PR target/55144
13605 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13606 remove already contained t-files.
13607
13608 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13609
13610 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13611 Remove unneeded forward declarations.
13612 (suitable_for_tail_call_opt_p): Commentary typo fix.
13613
13614 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13615
13616 * varasm.c (emit_bss): Remove redundant guard.
13617
13618 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13619
13620 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13621
13622 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13623
13624 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13625
13626 2015-04-22 Hale Wang <hale.wang@arm.com>
13627 Terry Guo <terry.guo@arm.com>
13628
13629 PR rtl-optimization/64818
13630 * combine.c (can_combine_p): Don't combine user-specified
13631 register if it is in an asm input.
13632
13633 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13634
13635 PR ipa/65076
13636 * passes.def (early_optimizations): Add pass_dse.
13637
13638 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13639
13640 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13641 * reorg.c (redundant_insn): Remove ifdef
13642 INSN_REFERENCES_ARE_DELAYED.
13643 * resource.c (mark_referenced_resources): Likewise.
13644
13645 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13646
13647 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13648 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13649 * resource.c (mark_set_resources): Likewise.
13650
13651 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13652
13653 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13654 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13655 (flow_find_head_matching_sequence): Likewise.
13656 (try_head_merge_bb): Likewise.
13657 * combine.c (can_combine_p): Likewise.
13658 (try_combine): Likewise.
13659 (distribute_notes): Likewise.
13660 * df-problems.c (can_move_insns_across): Likewise.
13661 * final.c (final): Likewise.
13662 * gcse.c (insert_insn_end_basic_block): Likewise.
13663 * ira.c (find_moveable_pseudos): Likewise.
13664 * reorg.c (try_merge_delay_insns): Likewise.
13665 (fill_simple_delay_slots): Likewise.
13666 (fill_slots_from_thread): Likewise.
13667 * sched-deps.c (sched_analyze_2): Likewise.
13668
13669 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13670
13671 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13672 PIC_OFFSET_TABLE_REGNUM.
13673
13674 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13675
13676 * alias.c (init_alias_target): Remove ifdef
13677 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13678 * df-scan.c (df_insn_refs_collect): Likewise.
13679 (df_get_regular_block_artificial_uses): Likewise.
13680 (df_get_eh_block_artificial_uses): Likewise.
13681 (df_get_entry_block_def_set): Likewise.
13682 (df_get_exit_block_use_set): Likewise.
13683 * emit-rtl.c (gen_rtx_REG): Likewise.
13684 * ira.c (ira_setup_eliminable_regset): Likewise.
13685 * reginfo.c (init_reg_sets_1): Likewise.
13686 * regrename.c (rename_chains): Likewise.
13687 * reload1.c (reload): Likewise.
13688 (eliminate_regs_in_insn): Likewise.
13689 * resource.c (mark_referenced_resources): Likewise.
13690 (init_resource_info): Likewise.
13691
13692 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13693
13694 * defaults.h (MASK_RETURN_ADDR): New definition.
13695 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13696 MASK_RETURN_ADDR.
13697
13698 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13699
13700 * defaults.h (RETURN_ADDR_OFFSET): New definition.
13701 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13702 RETURN_ADDR_OFFSET.
13703 (expand_builtin_frob_return_addr): Likewise.
13704
13705 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13706
13707 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13708 (try_redirect_by_replacing_jump): Likewise.
13709 (rtl_tidy_fallthru_edge): Likewise.
13710 * combine.c (insn_a_feeds_b): Likewise.
13711 (find_split_point): Likewise.
13712 (simplify_set): Likewise.
13713 * cprop.c (cprop_jump): Likewise.
13714 * cse.c (cse_extended_basic_block): Likewise.
13715 * df-problems.c (can_move_insns_across): Likewise.
13716 * function.c (emit_use_return_register_into_block): Likewise.
13717 * haifa-sched.c (sched_init): Likewise.
13718 * ira.c (find_moveable_pseudos): Likewise.
13719 * loop-invariant.c (find_invariant_insn): Likewise.
13720 * lra-constraints.c (curr_insn_transform): Likewise.
13721 * postreload.c (reload_combine_recognize_const_pattern):
13722 * Likewise.
13723 * reload.c (find_reloads): Likewise.
13724 * reorg.c (delete_scheduled_jump): Likewise.
13725 (steal_delay_list_from_target): Likewise.
13726 (steal_delay_list_from_fallthrough): Likewise.
13727 (redundant_insn): Likewise.
13728 (fill_simple_delay_slots): Likewise.
13729 (fill_slots_from_thread): Likewise.
13730 (delete_computation): Likewise.
13731 * sched-rgn.c (add_branch_dependences): Likewise.
13732
13733 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13734
13735 * genconfig.c (main): Always define HAVE_cc0.
13736 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13737 HAVE_cc0.
13738 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13739 (flow_find_head_matching_sequence): Likewise.
13740 (try_head_merge_bb): Likewise.
13741 * cfgrtl.c (rtl_merge_blocks): Likewise.
13742 (try_redirect_by_replacing_jump): Likewise.
13743 (rtl_tidy_fallthru_edge): Likewise.
13744 * combine.c (do_SUBST_MODE): Likewise.
13745 (insn_a_feeds_b): Likewise.
13746 (combine_instructions): Likewise.
13747 (can_combine_p): Likewise.
13748 (try_combine): Likewise.
13749 (find_split_point): Likewise.
13750 (subst): Likewise.
13751 (simplify_set): Likewise.
13752 (distribute_notes): Likewise.
13753 * cprop.c (cprop_jump): Likewise.
13754 * cse.c (cse_extended_basic_block): Likewise.
13755 * df-problems.c (can_move_insns_across): Likewise.
13756 * final.c (final): Likewise.
13757 (final_scan_insn): Likewise.
13758 * function.c (emit_use_return_register_into_block): Likewise.
13759 * gcse.c (insert_insn_end_basic_block): Likewise.
13760 * haifa-sched.c (sched_init): Likewise.
13761 * ira.c (find_moveable_pseudos): Likewise.
13762 * loop-invariant.c (find_invariant_insn): Likewise.
13763 * lra-constraints.c (curr_insn_transform): Likewise.
13764 * optabs.c (prepare_cmp_insn): Likewise.
13765 * postreload.c (reload_combine_recognize_const_pattern):
13766 * Likewise.
13767 * reload.c (find_reloads): Likewise.
13768 (find_reloads_address_1): Likewise.
13769 * reorg.c (delete_scheduled_jump): Likewise.
13770 (steal_delay_list_from_target): Likewise.
13771 (steal_delay_list_from_fallthrough): Likewise.
13772 (try_merge_delay_insns): Likewise.
13773 (redundant_insn): Likewise.
13774 (fill_simple_delay_slots): Likewise.
13775 (fill_slots_from_thread): Likewise.
13776 (delete_computation): Likewise.
13777 (relax_delay_slots): Likewise.
13778 * sched-deps.c (sched_analyze_2): Likewise.
13779 * sched-rgn.c (add_branch_dependences): Likewise.
13780
13781 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13782
13783 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13784 that is trivially ded on non cc0 targets.
13785 (simplify_set): Likewise.
13786 (mark_used_regs_combine): Likewise.
13787 * cse.c (new_basic_block): Likewise.
13788 (fold_rtx): Likewise.
13789 (cse_insn): Likewise.
13790 (cse_extended_basic_block): Likewise.
13791 (set_live_p): Likewise.
13792 * rtlanal.c (canonicalize_condition): Likewise.
13793 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13794
13795 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13796
13797 * conditions.h: Define macros even if HAVE_cc0 is undefined.
13798 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13799 * final.c: Likewise.
13800 * jump.c: Likewise.
13801 * recog.c: Likewise.
13802 * recog.h: Declare functions even when HAVE_cc0 is undefined.
13803 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13804
13805 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13806
13807 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13808 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13809 * builtins.c (expand_builtin): Remove check if
13810 EH_RETURN_DATA_REGNO is defined.
13811 * df-scan.c (df_bb_refs_collect): Likewise.
13812 (df_get_exit_block_use_set): Likewise.
13813 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13814 * ira-lives.c (process_bb_node_lives): Likewise.
13815 * lra-lives.c (process_bb_lives): Likewise.
13816
13817 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13818
13819 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13820 FIRST_PSEUDO_REG): New.
13821 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13822 (ARG_POINTER_REGNUM): Define to ARGP_REG.
13823 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13824 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13825 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13826 (FIRST_INT_REG): New.
13827 (LAST_INT_REG): New.
13828 (FIRST_*_REG): Define using *_REG.
13829 (LAST_*_REG): Ditto.
13830 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13831 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13832 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13833
13834 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13835
13836 * expmed.c: (synth_mult): Only assume overlapping
13837 shift with previous steps in alg_sub_t_m2 case.
13838
13839 2015-04-21 Richard Biener <rguenther@suse.de>
13840
13841 PR tree-optimization/65650
13842 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13843 transitions involving copies.
13844 (set_lattice_value): Adjust for copy lattice state.
13845 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13846 if that doesn't dominate the merge point.
13847 (bit_value_unop): Adjust what we treat as varying mask.
13848 (bit_value_binop): Likewise.
13849 (bit_value_assume_aligned): Likewise.
13850 (evaluate_stmt): When we simplified to a SSA name record a copy
13851 instead of dropping to varying.
13852 (visit_assignment): Simplify.
13853
13854 * gimple-match.h (gimple_simplify): Add another callback.
13855 * gimple-fold.c (fold_stmt_1): Adjust caller.
13856 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13857 for the 2nd callback.
13858 * gimple-match-head.c (gimple_simplify): Add a callback that is
13859 used to valueize the stmt operands and use it that way.
13860
13861 2015-04-21 Richard Biener <rguenther@suse.de>
13862
13863 PR tree-optimization/65788
13864 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
13865
13866 2015-04-21 Richard Biener <rguenther@suse.de>
13867
13868 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
13869 vec_construct cost by vec_stmt_cost.
13870
13871 2015-04-21 Richard Biener <rguenther@suse.de>
13872
13873 * cfghooks.h (create_basic_block): Replace with two overloads
13874 for RTL and GIMPLE.
13875 (split_block): Likewise.
13876 * cfghooks.c (split_block): Rename to ...
13877 (split_block_1): ... this.
13878 (split_block): Add two type-safe overloads for RTL and GIMPLE.
13879 (split_block_after_labels): Call split_block_1.
13880 (create_basic_block): Rename to ...
13881 (create_basic_block_1): ... this.
13882 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
13883 (create_empty_bb): Call create_basic_block_1.
13884 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
13885 split_block_after_labels.
13886 * omp-low.c (expand_parallel_call): Likewise.
13887 (expand_omp_target): Likewise.
13888 (simd_clone_adjust): Likewise.
13889 * tree-chkp.c (chkp_get_entry_block): Likewise.
13890 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
13891 create_basic_block overload.
13892 (cgraph_node::expand_thunk): Likewise.
13893 * tree-cfg.c (make_blocks): Likewise.
13894 (handle_abnormal_edges): Likewise.
13895 * tree-inline.c (copy_bb): Likewise.
13896
13897 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13898
13899 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
13900 New pattern.
13901 (*xor_one_cmplsidi3_ze): Likewise.
13902
13903 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13904
13905 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
13906 use df_remove_problem rather than manually removing problems, leaving
13907 holes in df->problems_in_order[].
13908
13909 2015-04-21 Tom de Vries <tom@codesourcery.com>
13910
13911 PR tree-optimization/65802
13912 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
13913
13914 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13915
13916 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
13917 Increase to 128.
13918 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
13919 at '.'. Assert that there's enough space for everything.
13920
13921 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13922
13923 PR tree-optimization/64950
13924 Revert:
13925 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
13926
13927 PR target/41089
13928 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13929 as volatile.
13930
13931 2015-04-20 Shiva Chen <shiva0217@gmail.com>
13932
13933 PR rtl-optimization/64916
13934 * cfgcleanup.c (values_equal_p): New function.
13935 (can_replace_by): Use it.
13936
13937 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
13938
13939 PR c++/65801
13940 * doc/invoke.texi ([-Wnarrowing]): Update.
13941
13942 2015-04-20 Jeff Law <law@redhat.com>
13943
13944 PR tree-optimization/65658
13945 * tree-ssa-threadupdate.c (redirection_block_p): Remove
13946 redundant test for GIMPLE_ASSIGN in last change.
13947
13948 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
13949
13950 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
13951 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
13952 (legitimize_tls_address): Ditto.
13953 (ix86_expand_move): Ditto.
13954 (ix86_expand_binary_operator): Remove reload_in_progress checks.
13955 (ix86_expand_unary_operator): Ditto.
13956 * config/i386/predicates.md (index_register_operand): Ditto.
13957
13958 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
13959
13960 * reorg.c (try_merge_delay_insns): Improve correctness checking
13961 for targets with multiple delay slots.
13962
13963 2015-04-20 Jeff Law <law@redhat.com>
13964
13965 PR tree-optimization/65658
13966 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
13967 statements too.
13968
13969 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
13970
13971 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
13972 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
13973 Delete.
13974
13975 2015-04-20 Jakub Jelinek <jakub@redhat.com>
13976
13977 PR debug/65807
13978 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
13979
13980 2015-04-20 Richard Biener <rguenther@suse.de>
13981
13982 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
13983 * gimple-fold.c (gimple_build_valueize): New function.
13984 (gimple_build): Always use gimple_build_valueize as valueize hook.
13985
13986 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
13987
13988 PR target/64134
13989 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
13990 and overwrite variable parts if <= 1/2 the elements are variable.
13991
13992 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
13993
13994 PR rtl-optimization/65805
13995 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
13996 Don't use difference of offset and previous offset if
13997 update_sp_offset is non-zero.
13998 (eliminate_regs_in_insn): Ditto.
13999 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14000 lra_eliminate_regs_1 call.
14001 * lra-constraints.c (get_equiv_with_elimination): Ditto.
14002
14003 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
14004
14005 * hash-table.h: Remove version of hash_table that stored value_type *.
14006 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14007 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14008 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14009 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14010 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14011 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14012 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14013 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14014 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14015 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14016 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14017 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14018 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14019 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14020 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14021 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14022
14023 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14024 Jakub Jelinek <jakub@redhat.com>
14025
14026 PR target/65787
14027 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14028 subsequent SH_NONE operand does not overwrite an existing *special
14029 value.
14030 (adjust_extract): Handle case where a vec_extract operation is
14031 wrapped in a PARALLEL.
14032
14033 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14034
14035 PR target/65780
14036 * config/i386/i386.c (ix86_binds_local_p): Define only if
14037 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14038
14039 2015-04-17 Jeff Law <law@redhat.com>
14040
14041 PR tree-optimization/47679
14042 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14043 * tree-ssa-scopedtables.c: New file.
14044 * tree-ssa-scopedtables.h: New file.
14045 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14046 (const_and_copies): Change name/type.
14047 (record_const_or_copy): Move into tree-ssa-scopedtables.c
14048 (record_const_or_copy_1): Similarly.
14049 (restore_vars_to_original_value): Similarly.
14050 (pass_dominator::execute): Create and destroy const_and_copies table.
14051 (thread_across_edge): Update passing of const_and_copies.
14052 (record_temporary_equivalence): Use method calls rather than
14053 manipulating const_and_copies directly.
14054 (record_equality, cprop_into_successor_phis): Similarly.
14055 (dom_opt_dom_walker::before_dom_children): Similarly.
14056 (dom_opt_dom_walker::after_dom_children): Similarly.
14057 (eliminate_redundant_computations): Similarly.
14058 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14059 (record_temporary_equivalence): Likewise.
14060 (invalidate_equivalences): Likewise.
14061 (record_temporary_equivalences_from_phis): Update due to type
14062 change of const_and_copies. Use method calls rather than
14063 manipulating the stack directly.
14064 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14065 (thread_through_normal_block, thread_across_edge): Likewise.
14066 (thread_across_edge): Likewise.
14067 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14068 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
14069 of equiv_stack.
14070 (identify_jump_threads): Update due to type change of equiv_stack.
14071 (finalize_jump_threads): Delete the equiv_stack when complete.
14072
14073 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
14074
14075 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14076 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14077 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14078
14079 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
14080
14081 PR target/65535
14082 * config.gcc: Exit with a comment when we do not have a major version
14083 number for the FreeBSD target.
14084
14085 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14086
14087 PR target/65689
14088 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14089 maybe_allows_mem bitfields.
14090 (maybe_allows_none_start, maybe_allows_none_end,
14091 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14092 maybe_allows_mem_end): New variables.
14093 (compute_maybe_allows): New function.
14094 (add_constraint): Use it to initialize maybe_allows_reg and
14095 maybe_allows_mem fields.
14096 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14097 is_address constraints such that those that allow neither mem nor
14098 reg come first, then those that only allow reg but not mem, then
14099 those that only allow mem but not reg, then the rest.
14100 (write_allows_reg_mem_function): New function.
14101 (write_tm_preds_h): Call it.
14102 * stmt.c (parse_output_constraint, parse_input_constraint): Use
14103 the generated insn_extra_constraint_allows_reg_mem function
14104 instead of always setting *allows_reg = true; *allows_mem = true;
14105 for unknown extra constraints.
14106
14107 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14108
14109 PR target/65780
14110 * output.h (default_binds_local_p_3): New.
14111 * varasm.c (default_binds_local_p_3): Make it public. Take an
14112 argument to indicate if common symbol may be local. If common
14113 symbol may be local, treat non-external variable as defined
14114 locally.
14115 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14116 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14117 * config/i386/i386.c (ix86_binds_local_p): New.
14118 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14119 ix86_binds_local_p.
14120
14121 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14122
14123 PR debug/65771
14124 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14125 trying mem_loc_descriptor on XEXP (rtl, 0).
14126
14127 2015-04-17 Martin Liska <mliska@suse.cz>
14128
14129 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14130 Release symbol_compare_collection.
14131 * ipa-reference.c: Add TODO that a vector should be released.
14132
14133 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14134
14135 PR target/65296
14136 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14137 to new AVR-LibC file layout (bug #44574).
14138 (*avrlibc_devicelib): Same.
14139 * config/avr/avr-mcus.def: Adjust comments.
14140 * config/avr/avr.opt (nodevicelib): Adjust help.
14141
14142 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14143
14144 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14145
14146 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14147
14148 PR c++/64527
14149 * gimplify.c (gimplify_init_constructor): Always emit a
14150 side-effecting constructor.
14151
14152 2015-04-17 Tom de Vries <tom@codesourcery.com>
14153
14154 PR tree-optimization/64950
14155 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14156 in cfun->curr_properties.
14157 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14158 if we generate an IFN_VA_ARG.
14159 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14160 function if PROP_gimple_lva is not set in src function.
14161
14162 2015-04-17 Tom de Vries <tom@codesourcery.com>
14163 Michael Matz <matz@suse.de>
14164
14165 PR tree-optimization/64950
14166 * gimple-iterator.c (update_modified_stmts): Remove static.
14167 * gimple-iterator.h (update_modified_stmts): Declare.
14168 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14169 (gimplify_va_arg_internal): New function.
14170 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14171 * gimplify.h (gimplify_va_arg_internal): Declare.
14172 * internal-fn.c (expand_VA_ARG): New unreachable function.
14173 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14174 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14175 (expand_ifn_va_arg): New function.
14176 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14177 (pass_stdarg::execute): Call expand_ifn_va_arg.
14178 (pass_data_lower_vaarg): New pass_data.
14179 (pass_lower_vaarg): New gimple_opt_pass.
14180 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14181 (make_pass_lower_vaarg): New function.
14182 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14183 properties_required field.
14184 * passes.def (all_passes): Add pass_lower_vaarg.
14185 * tree-pass.h (PROP_gimple_lva): Add define.
14186 (make_pass_lower_vaarg): Declare.
14187
14188 2015-04-17 Tom de Vries <tom@codesourcery.com>
14189
14190 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14191 * calls.c (call_expr_flags): Same.
14192
14193 2015-04-17 Tom de Vries <tom@codesourcery.com>
14194
14195 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14196 (pass_stdarg::execute): ... here.
14197
14198 2015-04-17 Tom de Vries <tom@codesourcery.com>
14199 Michael Matz <matz@suse.de>
14200
14201 * tree-cfg.c (make_blocks_1): Factor out of ...
14202 (make_blocks): ... here.
14203 (make_edges_bb): Factor out of ...
14204 (make_edges): ... here.
14205 (gimple_find_sub_bbs): New function.
14206 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14207
14208 2015-04-17 Tom de Vries <tom@codesourcery.com>
14209
14210 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14211
14212 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14213
14214 * asan.c (set_sanitized_sections): New function.
14215 (section_sanitized_p): Ditto.
14216 (asan_protect_global): Optionally sanitize user-defined
14217 sections.
14218 * asan.h (set_sanitized_sections): Declare new function.
14219 * common.opt (fsanitize-sections): New option.
14220 * doc/invoke.texi (-fsanitize-sections): Document new option.
14221 * opts-global.c (handle_common_deferred_options): Handle new
14222 option.
14223
14224 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14225
14226 PR debug/65771
14227 * dwarf2out.c (loc_list_from_tree): Return NULL
14228 for DEBUG_EXPR_DECL.
14229
14230 2015-04-17 Christian Bruel <christian.bruel@st.com>
14231
14232 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14233 same attributes.
14234
14235 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14236
14237 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14238 node itself when computing left conflict subnode size.
14239
14240 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14241
14242 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14243 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14244 *fop_<mode>_1_sse using enabled attribute. Use
14245 register_mixssei387nonimm_operand operand 1 predicate. Change
14246 alternative 3 constraints from "x" to "v".
14247
14248 2015-04-16 Richard Biener <rguenther@suse.de>
14249
14250 PR tree-optimization/65774
14251 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14252 bit-value tracking on.
14253
14254 2015-04-16 Richard Biener <rguenther@suse.de>
14255
14256 PR tree-optimization/64277
14257 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14258 simplify upper bound handling.
14259 (search_for_addr_array): Simplify.
14260 (check_array_bounds): Handle ADDR_EXPRs here.
14261 (check_all_array_refs): Simplify.
14262
14263 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14264
14265 * config/i386/i386.c (print_reg): Rewrite function.
14266
14267 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14268
14269 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14270 Invert the condition.
14271
14272 2015-04-16 Renlin Li <renlin.li@arm.com>
14273
14274 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14275 simplifications for UNSIGNED_FLOAT.
14276
14277 2015-04-16 Nick Clifton <nickc@redhat.com>
14278
14279 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14280 MUL_UNINIT.
14281 (enum rl78_cpu_type): New.
14282 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14283 (umulhi3_shift_virt): Remove m constraint from operand 1.
14284 (umulqihi3_virt): Likewise.
14285 * config/rl78/rl78.c (rl78_option_override): Add code to process
14286 -mcpu and -mmul options.
14287 (rl78_alloc_physical_registers): Add code to handle divhi and
14288 divsi valloc attributes.
14289 (set_origin): Likewise.
14290 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14291 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14292 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14293 __RL78_Gxx__.
14294 (ASM_SPEC): Pass -mcpu on to assembler.
14295 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14296 (mulqi3_rl78): Likewise.
14297 (mulhi3_g13): Likewise.
14298 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14299 (mulsi3): Likewise.
14300 (mulhi3_g14): Add clobbers of AX and BC.
14301 (mulsi3_g14): Likewise.
14302 (mulsi3_g13): Likewise.
14303 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14304 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14305 * config/rl78/rl78.opt (mmul): Initialise value to
14306 RL78_MUL_UNINIT.
14307 (mcpu): New option.
14308 (m13, m14, mrl78): New option aliases.
14309 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14310 (MULTILIB_DIRNAMES): Add g13 and g14.
14311 * doc/invoke.texi: Document -mcpu and -mmul options.
14312
14313 2015-04-16 Richard Biener <rguenther@suse.de>
14314
14315 * tree-ssa-ccp.c (likely_value): See if we have operands that
14316 are marked as never simulate again and return CONSTANT in this
14317 case.
14318 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14319 not have any operands that will be simulated again as
14320 not being simulated again.
14321
14322 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14323
14324 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14325 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14326 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14327 attribute.
14328 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14329 enabled attribute.
14330 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14331 *float<SWI48:mode><MODEF:mode>2_sse.
14332 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14333 enabled attribute.
14334 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14335 enabled attribute.
14336
14337 2015-04-15 Tom de Vries <tom@codesourcery.com>
14338
14339 PR other/65487
14340 * function.c (push_dummy_function): New function.
14341 (init_dummy_function_start): Use push_dummy_function.
14342 (pop_dummy_function): New function. Factored out of ...
14343 (expand_dummy_function_end): ... here.
14344 * function.h (push_dummy_function, pop_dummy_function): Declare.
14345 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14346 pop_dummy_function.
14347 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14348
14349 2015-04-15 Jeff Law <law@redhat.com>
14350
14351 PR tree-optimization/47679
14352 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14353 need for forward declaration in upcoming changes.
14354 (record_conditions, record_edge_info): Likewise.
14355
14356 PR rtl-optimization/42522
14357 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14358 SIGN_EXTRACT as a whole object rather than simplifying
14359 its operand.
14360
14361 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14362
14363 PR ipa/65765
14364 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14365 and GIMPLE_PREDICT use break instead of return true. For
14366 GIMPLE_EH_DISPATCH, compare dispatch region.
14367
14368 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14369
14370 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14371 details about the implementation. Make clear preference for
14372 __atomic builtins. Reduce possibility of future change.
14373
14374 2015-04-15 Nick Clifton <nickc@redhat.com>
14375
14376 * config/rx/rx.opt (mallow-string-insns): New option.
14377 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14378 builtin if string instructions are denied.
14379 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14380 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14381 appropriate.
14382 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14383 * config/rx/rx.md (movstr): Enable pattern only if string
14384 instructions are allowed.
14385 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14386 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14387 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14388 (MULTILIB_DIRNAMES): Add no-strings.
14389 * doc/invoke.texi: Document -mno-allow-string-insns.
14390
14391 2015-04-15 Alan Modra <amodra@gmail.com>
14392
14393 PR target/65408
14394 PR target/58744
14395 PR middle-end/36043
14396 * calls.c (load_register_parameters): Don't load past end of
14397 mem unless suitably aligned.
14398
14399 2015-04-15 Nick Clifton <nickc@redhat.com>
14400
14401 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14402 decrement instruction as being frame related.
14403 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14404 based addresses.
14405 If zero extending a function address enclose the operation in
14406 %code(...).
14407 (rl78_preferred_reload_class): New function.
14408 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14409 * config/rl78/rl78.md: Remove useless constraints in expanders.
14410 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14411 (mulhi3_rl78): Likewise.
14412 (mulhi3_g13): Likewise.
14413 (mulsi3_rl78): Likewise.
14414 (es_addr): Move to before the multiply patterns.
14415
14416 2015-04-15 Alan Modra <amodra@gmail.com>
14417
14418 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14419 and sequence_stack. Add seq.
14420 (seq_stack): Delete.
14421 * function.c (prepare_function_start): Don't access x_last_insn.
14422 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14423 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14424 * emit_rtl.c (start_sequence, push_topmost_sequence,
14425 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14426 sequence accessors.
14427 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14428 remove_insn): Likewise. Simplify.
14429 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14430 and pop_topmost_sequence.
14431 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14432 debug insns.
14433 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14434
14435 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14436
14437 PR target/65729
14438 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14439 the assertiion.
14440
14441 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14442
14443 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14444 (LEGACY_INT_REGNO_P): Ditto.
14445 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14446 (ANY_MASK_REG_P): Remove.
14447 (BND_REG_P): Rename from ANY_BND_REG_P.
14448 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14449 legacy integer registers. Do not handle MMX_REG_P in a special way.
14450 Merge 64byte and 32byte SSE handling.
14451
14452 2015-04-14 Nick Clifton <nickc@redhat.com>
14453
14454 * expr.c (expand_assignment): Force an address offset computation
14455 into a register before changing its mode.
14456 (expand_expr_real_1): Likewise.
14457
14458 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14459
14460 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14461 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14462 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14463 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14464 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14465 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14466 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14467 and __aarch64_vget_lane_any.
14468
14469 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14470
14471 PR rtl-optimization/65761
14472 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14473 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14474
14475 2015-04-14 Richard Biener <rguenther@suse.de>
14476
14477 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14478 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14479
14480 2015-04-14 Richard Biener <rguenther@suse.de>
14481
14482 PR tree-optimization/65758
14483 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14484 against -1.
14485 (ccp_lattice_meet): Likewise.
14486 (bit_value_unop): Likewise.
14487 (bit_value_binop): Likewise.
14488 (bit_value_assume_aligned): Likewise.
14489
14490 2015-04-14 Christian Bruel <christian.bruel@st.com>
14491
14492 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14493 function.
14494
14495 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14496
14497 PR tree-optimization/63387
14498 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14499 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14500
14501 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14502
14503 * config/i386/predicates.md (any_QIreg_operand): Rename from
14504 q_regs_operand. Do not process subregs.
14505 (QIreg_operand): Use QI_REGNO_P predicate.
14506 (ext_QIreg_operand): Ditto.
14507 (ext_register_operand): Ditto.
14508 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14509 (AND splitters): Ditto.
14510 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14511 (AND with -256 splitter): Use any_QIreg_operand predicate and
14512 SWI248 mode for operand 0.
14513 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14514 mode for operand 0.
14515 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14516
14517 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14518
14519 * doc/plugins.texi: Rewrite first introductory paragraph.
14520
14521 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14522
14523 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14524 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14525
14526 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14527
14528 * ipa-profie.c (ipa_profile): Check number of parameters
14529 and possible polymorphic call targets before
14530 devirtualizing.
14531
14532 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14533
14534 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14535 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14536
14537 2015-04-13 Richard Biener <rguenther@suse.de>
14538
14539 PR tree-optimization/65204
14540 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14541 takens for bit-CCP.
14542
14543 2015-04-13 Richard Biener <rguenther@suse.de>
14544
14545 PR target/65660
14546 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14547 and cond_not_taken_branch_cost to 4 and 2.
14548 (bdver2_cost): Likewise.
14549 (bdver3_cost): Likewise.
14550 (bdver4_cost): Likewise.
14551
14552 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14553
14554 * hash-table.h (hash_table constructor): Add mem stats.
14555 (alloc_entries): Likewise.
14556
14557 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14558
14559 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14560 * passes.c (execute_one_pass): Only add transform if pass has one.
14561
14562 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14563
14564 * config/i386/i386.c (ix86_option_override_internal): Don't set
14565 -fprefetch-loop-arrays if optimizing for size.
14566
14567 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14568 Gerald Pfeifer <gerald@pfeifer.com>
14569
14570 * doc/contrib.texi (Contributors): Add Martin Jambor and
14571 Michael Matz.
14572
14573 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14574
14575 * BASE-VER: Set to 6.0.0.
14576
14577 PR tree-optimization/65747
14578 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14579 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14580
14581 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14582
14583 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14584 sentence. Improve grammar.
14585
14586 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14587
14588 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14589
14590 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14591
14592 PR ipa/65743
14593 * ipa-inline-transform.c (speculation_removed): Remove static var.
14594 (check_speculations): New function.
14595 (clone_inlined_nodes): Do not check spculations.
14596 (inline_call): Call check_speculations.
14597 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14598 consider non-invariants.
14599
14600 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14601 Martin Liska <mliska@suse.cz>
14602
14603 PR ipa/65722
14604 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14605 variable can not match.
14606 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14607 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14608
14609 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14610
14611 PR tree-optimization/65735
14612 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14613 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14614 same bb rather than just into the same phi node.
14615 (thread_through_normal_block): Adjust caller.
14616
14617 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14618
14619 * doc/contrib.texi (Contributors): Add Ira Rosen.
14620
14621 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14622
14623 * gcov.c (find_source): Fix miswording in error message.
14624 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14625 (ix86_expand_sse_comi_round): Fix typo in error message.
14626
14627 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14628
14629 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14630
14631 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14632
14633 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14634
14635 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14636
14637 PR target/65710
14638 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14639 Print bad_spills_num and insn_pseudos_num.
14640
14641 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14642
14643 PR target/65694
14644 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14645 when creating +1 values for SImode.
14646
14647 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14648
14649 PR target/65729
14650 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14651 assert.
14652
14653 2015-04-10 Jakub Jelinek <jakub@redhat.com>
14654 Iain Sandoe <iain@codesourcery.com>
14655
14656 PR target/65351
14657 * configure: Regenerate.
14658
14659 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14660
14661 PR target/65671
14662 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14663
14664 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
14665
14666 * doc/contrib.texi (Contributors): Add John Marino.
14667
14668 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14669
14670 PR tree-optimization/65709
14671 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14672 TREE_TYPE (TREE_TYPE (t)).
14673
14674 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
14675
14676 PR target/65710
14677 * lra-int.h (lra_bad_spill_regno_start): New.
14678 * lra.c (lra_bad_spill_regno_start): New.
14679 (lra): Set up lra_bad_spill_regno_start. Set up
14680 lra_constraint_new_regno_start unconditionally.
14681 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14682 spill preferences.
14683
14684 2015-04-09 Marek Polacek <polacek@redhat.com>
14685 Jakub Jelinek <jakub@redhat.com>
14686
14687 PR middle-end/65554
14688 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14689 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14690 of STRIP_NOPS.
14691
14692 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
14693
14694 PR rtl-optimization/65693
14695 * combine.c (is_parallel_of_n_reg_sets): Move outside of
14696 #ifndef HAVE_cc0.
14697
14698 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
14699
14700 PR target/65296
14701 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14702 device specs file if "device-specs%s" didn't resolve to a path.
14703
14704 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14705
14706 PR target/65676
14707 * config/i386/i386.c (fixup_modeless_constant): New.
14708 (ix86_expand_args_builtin): Fixup modeless constant operand.
14709 (ix86_expand_round_builtin): Ditto.
14710 (ix86_expand_special_args_builtin): Ditto.
14711 (ix86_expand_builtin): Ditto.
14712
14713 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14714
14715 PR target/65693
14716 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14717 any pow2 integer in between 2 and 0x80000000U inclusive.
14718
14719 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
14720
14721 PR rtl-optimization/65693
14722 * combine.c (is_parallel_of_n_reg_sets): Change first argument
14723 from an rtx_insn * to an rtx.
14724 (try_combine): Adjust both callers. Use it once more.
14725
14726 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14727
14728 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14729 (chkp_make_static_const_bounds): Search existing
14730 symbol by assembler name. Use make_decl_one_only.
14731 (chkp_get_zero_bounds_var): Remove node search which
14732 is now performed in chkp_make_static_const_bounds.
14733 (chkp_get_none_bounds_var): Likewise.
14734
14735 2015-04-08 Michael Witten <mfwitten@gmail.com>
14736
14737 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14738 to an example.
14739
14740 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14741
14742 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14743
14744 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14745
14746 * doc/extend.texi (__sync Builtins): Fix grammar.
14747
14748 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14749
14750 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14751
14752 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14753
14754 * varasm.c (emit_local): Move definition of align.
14755
14756 2015-04-08 Julian Brown <julian@codesourcery.com>
14757
14758 * config/nvptx/mkoffload.c (process): Support variable mapping.
14759
14760 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
14761
14762 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14763 alpha_links **.
14764 (alpha_write_one_linkage): Correct typo.
14765
14766 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14767
14768 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14769
14770 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14771
14772 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14773
14774 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14775
14776 * tree-chkp.h (chkp_insert_retbnd_call): New.
14777 * tree-chkp.c (chkp_insert_retbnd_call): New.
14778 * ipa-split.c (insert_bndret_call_after): Remove.
14779 (split_function): Use chkp_insert_retbnd_call.
14780 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14781 bounds for instrumented functions.
14782
14783 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
14784
14785 PR ipa/65540
14786 * calls.c (initialize_argument_information): When producing tail
14787 call also turn SSA_NAMES passed by references to original PARM_DECLs
14788
14789 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
14790
14791 PR target/65648
14792 * lra-remat.c (do_remat): Process input and non-input insn
14793 registers separately.
14794
14795 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14796
14797 PR debug/65678
14798 * valtrack.c (debug_lowpart_subreg): New function.
14799 (dead_debug_insert_temp): Use it.
14800
14801 PR middle-end/65680
14802 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14803 into signed HOST_WIDE_INT the same as negative bit_offset.
14804
14805 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
14806
14807 * ipa-comdats.c (ipa_comdats): Visit all thunks
14808 to set proper comdat group.
14809
14810 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14811
14812 PR target/65489
14813 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14814 on constants for NEON VSTRUCT modes.
14815
14816 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14817 Iain Sandoe <iain@codesourcery.com>
14818
14819 PR target/65351
14820 * configure: Regenerate.
14821
14822 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14823
14824 PR target/65614
14825 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14826 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14827 that LFD is used to load double constants instead of LFS. Add
14828 defaults for all costs structures. Add comments for missing
14829 initialization fields.
14830 (size32_cost): Likewise.
14831 (size64_cost): Likewise.
14832 (rs64a_cost): Likewise.
14833 (mpccore_cost): Likewise.
14834 (ppc403_cost): Likewise.
14835 (ppc405_cost): Likewise.
14836 (ppc440_cost): Likewise.
14837 (ppc476_cost): Likewise.
14838 (ppc601_cost): Likewise.
14839 (ppc603_cost): Likewise.
14840 (ppc604_cost): Likewise.
14841 (ppc604e_cost): Likewise.
14842 (ppc620_cost): Likewise.
14843 (ppc630_cost): Likewise.
14844 (ppccell_cost): Likewise.
14845 (ppc750_cost): Likewise.
14846 (ppc7450_cost): Likewise.
14847 (ppc8540_cost): Likewise.
14848 (ppce300c2c3_cost): Likewise.
14849 (ppce500mc_cost): Likewise.
14850 (ppce500mc64_cost): Likewise.
14851 (ppce5500_cost): Likewise.
14852 (ppce6500_cost): Likewise.
14853 (titan_cost): Likewise.
14854 (power4_cost): Likewise.
14855 (power6_cost): Likewise.
14856 (power7_cost): Likewise.
14857 (power8_cost): Likewise.
14858 (ppca2_cost): Likewise.
14859 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
14860
14861 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
14862 instead of XXLOR to copy SFmode to clear out dirty bits created
14863 when SFmode denormals are generated.
14864 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
14865 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
14866
14867 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14868
14869 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
14870 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
14871 * config/aarch64/aarch64-tune.md: Regenerate.
14872
14873 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14874
14875 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
14876 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
14877 * config/arm/arm-cores.def (exynos-m1): New core.
14878 * config/arm/arm-tune.md: Regenerate.
14879 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
14880 * config/arm/bpabi.h: Likewise.
14881
14882 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
14883
14884 * ipa-cp (set_single_call_flag): Remove too
14885 restrictive assert.
14886
14887 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14888
14889 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
14890 GOMP_offload_unregister from the destructor.
14891
14892 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
14893
14894 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
14895 flags for instrumentation thunk.
14896 (chkp_produce_thunks): Likewise.
14897
14898 2015-04-05 Martin Liska <mliska@suse.cz>
14899
14900 PR ipa/65665
14901 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
14902 has computed data structure.
14903 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14904
14905 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
14906
14907 * invoke.texi (inline-unit-growth): Increase growth to 20%
14908 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
14909
14910 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
14911
14912 PR target/65647
14913 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
14914 value checking.
14915 (lra_rematerialization_iter): New.
14916 * lra.c (lra): Initialize lra_rematerialization_iter.
14917 Stop updating lra_constraint_new_regno_start after switching of
14918 inheritance and rematerialization.
14919 * lra-remat.c (lra_rematerialization_iter): New.
14920 (lra_remat): Add printing pass iteration. Do rematerialization
14921 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
14922
14923 2015-04-04 Richard Biener <rguenther@suse.de>
14924
14925 PR tree-optimization/64909
14926 PR tree-optimization/65660
14927 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
14928 to take a cost vector for scalar iteration cost.
14929 (vect_get_single_scalar_iteration_cost): Likewise.
14930 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
14931 Compute the scalar iteration cost into a cost vector.
14932 (vect_get_known_peeling_cost): Use the scalar cost vector to
14933 account for the cost of the peeled iterations.
14934 (vect_estimate_min_profitable_iters): Likewise.
14935 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
14936 Likewise.
14937
14938 2015-04-04 Alan Modra <amodra@gmail.com>
14939
14940 PR target/65576
14941 PR target/65240
14942 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
14943 0.0 constant unless TARGET_VSX.
14944 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
14945 alternative.
14946
14947 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14948
14949 PR ipa/65654
14950 * ipa-inline-transform.c (inline_call): Skip sanity check to work
14951 around the ICE
14952
14953 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14954
14955 PR ipa/65655
14956 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
14957 speculative indirect edges to avoid ordering issue.
14958
14959 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14960
14961 PR ipa/65076
14962 * ipa-inline.c (edge_badness): Add combined size to the denominator.
14963
14964 2015-04-03 Jakub Jelinek <jakub@redhat.com>
14965
14966 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
14967 TYPE_ARTIFICIAL on the .omp_data* types.
14968
14969 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14970
14971 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
14972 instrumentation thunks.
14973
14974 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14975
14976 * config/i386/i386.c (ix86_expand_call): Avoid nested
14977 PARALLEL in returned call value.
14978
14979 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14980
14981 * lto-cgraph.c (input_cgraph_1): Always link instrumented
14982 assembler name with original one.
14983
14984 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
14985
14986 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
14987
14988 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
14989
14990 Revert parts of r216820.
14991 * config/i386/i386.md (movqi_internal): Correct type calculation
14992 for alternatives 3 and 5.
14993
14994 2015-04-02 Jakub Jelinek <jakub@redhat.com>
14995
14996 PR preprocessor/61977
14997 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
14998 predefine __vector/__bool/__pixel macros nor context sensitive
14999 macros for CLK_ASM.
15000 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15001
15002 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
15003
15004 * config/pa/pa.c (pa_output_move_double): Directly handle register
15005 indexed memory operand. Simplify handling of scaled register indexed
15006 memory operands.
15007
15008 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15009
15010 PR driver/65444
15011 * config/i386/linux-common.h (MPX_SPEC): New.
15012 (CHKP_SPEC): Add MPX_SPEC.
15013 * doc/invoke.texi (-fcheck-pointer-boudns): Document
15014 possible issues with '-z bndplt' support in linker.
15015
15016 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15017
15018 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15019 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15020 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15021 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15022 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15023
15024 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
15025
15026 * config/i386/sync.md (UNSPEC_MOVA): Remove.
15027 (atomic_load<mode>): Change operand 0 predicate to
15028 nonimmediate_operand and fix up the destination when needed.
15029 Use UNSPEC_LDA.
15030 (atomic_loaddi_fpu): Use UNSPEC_LDA.
15031 (atomic_store<mode>): Change operand 1 predicate to
15032 nonimmendate_operand and move the source to register when needed.
15033 Use UNSPEC_STA.
15034 (atomic_store<mode>_1): Use UNSPEC_STA.
15035 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15036 Fix moves from memory operand. Use UNSPEC_STA.
15037
15038 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15039
15040 * expmed.c (strict_volatile_bitfield_p): Check that the access will
15041 not cross a MODESIZE boundary.
15042 (store_bit_field, extract_bit_field): Added assertions in the
15043 strict volatile bitfields code path.
15044
15045 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
15046
15047 PR target/65624
15048 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15049 Increase args array size by one to avoid buffer overflow.
15050
15051 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15052
15053 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15054 split_part.
15055 * ipa-inline.c (edge_badness): Add wrapper penalty.
15056 (sum_callers): Move up.
15057 (inline_small_functions): Set single_caller.
15058 * ipa-inline.h (inline_summary): Add single_caller.
15059 * ipa-split.c (split_function): Set split_part.
15060 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15061 * cgraph.h (cgraph_node): Add split_part.
15062
15063 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
15064
15065 PR target/58945
15066 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15067 Do not split operands 0 and operands 2 to halfmode.
15068 (atomic_compare_and_swap<mode>): Update for
15069 atomic_compare_and_swap<dwi>_doubleword changes.
15070
15071 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15072
15073 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15074 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15075 no caching is done.
15076
15077 2015-03-31 Martin Liska <mliska@suse.cz>
15078
15079 PR ipa/65557
15080 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15081 has already filled up function summary.
15082 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15083
15084 2015-03-31 Richard Biener <rguenther@suse.de>
15085
15086 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15087 of types.
15088
15089 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
15090
15091 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15092 nested functions.
15093 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15094 (s390_asm_output_function_label): Adapt to new signature of
15095 s390_function_num_hotpatch_hw
15096 Optimise the code generating assembler output.
15097 Add comments to assembler file.
15098
15099 2015-03-31 Richard Biener <rguenther@suse.de>
15100
15101 PR middle-end/65626
15102 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15103 of the noreturn call so it is last and cleanup_control_flow_bb
15104 can do the CFG part.
15105
15106 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
15107
15108 PR target/65531
15109 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15110 same_comdat_group for external symbols.
15111 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15112 infinite same_comdat_group traversal loop.
15113
15114 2015-03-31 Jakub Jelinek <jakub@redhat.com>
15115
15116 PR plugins/61176
15117 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15118 automatically to $headers.
15119
15120 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15121
15122 PR ipa/65610
15123 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15124 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15125 function.
15126 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15127 Use it.
15128 * ipa-prop.c (param_type_may_change_p): Likewise.
15129 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15130 (remove_unused_scope_block_p): Add in_ctor_dtor_block
15131 argument. Before inlining, preserve
15132 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15133 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15134 recursive calls.
15135 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15136
15137 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15138
15139 PR ipa/65076
15140 * ipa-inline.c (edge_badness): Base denominator on callee's
15141 grwoth squared.
15142
15143 2015-03-27 Martin Jambor <mjambor@suse.cz>
15144
15145 PR ipa/65478
15146 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15147 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15148 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15149 node_calling_single_call.
15150 * ipa-cp.c (count_callers): New function.
15151 (set_single_call_flag): Likewise.
15152 (initialize_node_lattices): Count callers and set single_flag_call if
15153 necessary.
15154 (incorporate_penalties): New function.
15155 (good_cloning_opportunity_p): Use it, dump new flags.
15156 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15157 * doc/invoke.texi (ipa-cp-recursion-penalty,
15158 ipa-cp-single-call-pentalty): Document.
15159
15160 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15161
15162 PR ipa/65588
15163 * symtab.c (symtab_node::get_partitioning_class): Register vars
15164 are duplicated.
15165 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15166 decls for non-symbols.
15167
15168 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15169
15170 PR target/65248
15171 * output.h (default_binds_local_p_2): New.
15172 * varasm.c (default_binds_local_p_2): Renamed to ...
15173 (default_binds_local_p_3): This. Don't return true on protected
15174 data symbol if protected data may be external.
15175 (default_binds_local_p): Use default_binds_local_p_3.
15176 (default_binds_local_p_1): Likewise.
15177 (default_binds_local_p_2): New.
15178 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15179 default_binds_local_p_2 if TARGET_MACHO is undefined.
15180
15181 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR target/65593
15184 * config/i386/i386.c (legitimize_pic_address): If base
15185 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15186 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15187
15188 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15189
15190 PR target/65531
15191 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15192 comdat groups.
15193
15194 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15195
15196 PR ipa/65600
15197 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15198 of optimized out indirect call.
15199 (redirect_to_unreachable): Always build symbol table node for
15200 BUILT_IN_UNREACHABLE
15201
15202 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15203
15204 PR target/65407
15205 * ira-costs.c (record_reg_classes): Process all constraint string
15206 containing 0-9.
15207
15208 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15209
15210 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15211 memory_operand.
15212
15213 PR target/65052
15214 * config/c6x/constraints.md (S3): New constraint.
15215 * config/c6x/c6x.md (real_jump): Use it.
15216
15217 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15218
15219 PR middle-end/65595
15220 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15221 do redirection if the call is not optimized out.
15222
15223 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15224
15225 PR target/65495
15226 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15227 (fchkp-check-incomplete-type): Add LTO.
15228 (fchkp-zero-input-bounds-for-main): Likewise.
15229 (fchkp-first-field-has-own-bounds): Likewise.
15230 (fchkp-narrow-bounds): Likewise.
15231 (fchkp-narrow-to-innermost-array): Likewise.
15232 (fchkp-use-static-bounds): Likewise.
15233 (fchkp-use-static-const-bounds): Likewise.
15234 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15235
15236 2015-03-27 Marek Polacek <polacek@redhat.com>
15237
15238 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15239
15240 2015-03-27 Marek Polacek <polacek@redhat.com>
15241
15242 PR sanitizer/65583
15243 * ubsan.c (ubsan_create_edge): New function.
15244 (instrument_bool_enum_load): Call it.
15245 (instrument_nonnull_arg): Likewise.
15246 (instrument_nonnull_return): Likewise.
15247 (instrument_object_size): Likewise.
15248
15249 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15250
15251 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15252 auto_vec.
15253
15254 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15255
15256 PR lto/65536
15257 * lto-streamer.h (class lto_location_cache): New.
15258 (struct data_in): Add location_cache.
15259 (lto_input_location): Update prototype.
15260 (stream_input_location_now): New.
15261 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15262 pointer to location.
15263 (stream_input_location): Update.
15264 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15265 (warn_odr): Apply location cache before warning.
15266 (lto_input_location): Update prototype.
15267 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15268 Use stream_input_location_now.
15269 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15270 variable.
15271 (lto_location_cache::cmp_loc): New function.
15272 (lto_location_cache::apply_location_cache): New function.
15273 (lto_location_cache::accept_location_cache): New function.
15274 (lto_location_cache::revert_location_cache): New function.
15275 (lto_location_cache::input_location): New function.
15276 (lto_input_location): Do location caching.
15277 (stream_input_location_now): New function.
15278 (input_eh_region, input_struct_function_base): Use
15279 stream_input_location_now.
15280 (lto_data_in_create): use new.
15281 (lto_data_in_delete): Use delete.
15282 * tree-streamer-in.c (unpack_ts_block_value_fields,
15283 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15284 lto_input_ts_exp_tree_pointers): Update for cached location api.
15285
15286 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15287
15288 PR ipa/65076
15289 * passes.def: Add pass_nothrow.
15290 * ipa-pure-const.c: (pass_data_nothrow): New.
15291 (pass_nothrow): New.
15292 (pass_nothrow::execute): New.
15293 (make_pass_nothrow): New.
15294 * tree-pass.h (make_pass_nothrow): Declare.
15295
15296 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15297
15298 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15299 edge to change by speculation resolution or redirection.
15300 (edge_set_predicate): Likewise.
15301 (inline_summary_t::duplicate): Likewise.
15302 (remap_edge_summaries): Likewise.
15303
15304 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15305
15306 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15307 New macros.
15308 (can_inline_edge_p): Relax option matching for always inline functions.
15309
15310 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15311
15312 PR target/65561
15313 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15314 Check operand 4 and operand 0 for equality.
15315 (avx512f_vextract<shuffletype>32x4_1_maskm):
15316 Check operand 6 and operand 0 for equality.
15317 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15318 for equality.
15319 (vec_extract_hi_<mode>_maskm): Ditto.
15320
15321 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15322
15323 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15324 dead calls back to live.
15325 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15326 cross check to ...
15327 (cgraph_node::verify_node): ... here; verify only callee edges,
15328 not caller.
15329 * cif-code.def (CILK_SPAWN): New code.
15330
15331 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15332
15333 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15334 (edge_set_predicate): Use it to mark unreachable edges.
15335 (inline_summary_t::duplicate): Remove unnecesary code.
15336 (remap_edge_summaries): Likewise.
15337 (dump_inline_summary): Report contains_cilk_spawn.
15338 (compute_inline_parameters): Compute contains_cilk_spawn.
15339 (inline_read_section, inline_write_summary): Stream
15340 contains_cilk_spawn.
15341 * ipa-inline.c (can_inline_edge_p): Do not touch
15342 DECL_STRUCT_FUNCTION that may not be available;
15343 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15344 remove check for callee_fun->can_throw_non_call_exceptions and
15345 replace it by optimization attribute check; check for flag_exceptions.
15346 * ipa-inline-transform.c (inline_call): Maintain
15347 DECL_FUNCTION_PERSONALITY
15348 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15349
15350 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15351
15352 PR tree-optimization/65551
15353 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15354 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15355
15356 2015-03-26 Richard Biener <rguenther@suse.de>
15357
15358 PR middle-end/65555
15359 * tree-cfg.c (verify_gimple_call): Do not require a call to
15360 have no LHS if it wasn't recognized as control altering yet.
15361
15362 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15363
15364 PR tree-optimization/64715
15365 * passes.def: Add another instance of pass_object_sizes before ccp1.
15366 * tree-object-size.c (pass_object_sizes::execute): In
15367 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15368 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15369 __bos result and the computed constant. Remove redundant
15370 checks, obsoleted by gimple_call_builtin_p test.
15371
15372 * var-tracking.c (variable_tracking_main_1): Don't track
15373 variables for targetm.no_register_allocation targets.
15374
15375 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15376
15377 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15378 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15379
15380 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15381
15382 PR target/65569
15383 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15384 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15385 0.0 is correctly setup.
15386 (extenddftf2_internal): Likewise.
15387
15388 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15389
15390 PR tree-optimization/65177
15391 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15392 (bb_in_bbs): New.
15393 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15394 edges not adjacent on the path to the original code.
15395
15396 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15397
15398 PR bootstrap/65537
15399 * doc/install.texi (Building a native compiler): Document new
15400 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15401 configuration assumes that the host supports the linker plugin.
15402
15403 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15404
15405 PR target/65508
15406 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15407 chain for generated call.
15408
15409 2015-03-25 Richard Biener <rguenther@suse.de>
15410
15411 * passes.c (pass_manager::execute_early_local_passes): Guard
15412 execution of pass_chkp_instrumentation_passes with
15413 flag_check_pointer_bounds.
15414 (pass_chkp_instrumentation_passes::gate): Likewise.
15415
15416 2015-03-25 Martin Liska <mliska@suse.cz>
15417
15418 PR tree-optimization/65538
15419 * symbol-summary.h (function_summary::~function_summary):
15420 Relese memory for allocated summaries.
15421 (function_summary::release): New function.
15422
15423 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15424
15425 PR lto/65515
15426 * lto-streamer-out.c (DFS::worklist): New struct.
15427 (DFS::worklist_vec): New data member.
15428 (DFS::next_dfs_num): Remove.
15429 (DFS::DFS): Rewritten using worklist instead of recursion,
15430 using most of code from DFS::DFS_write_tree.
15431 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15432 pass it to DFS_write_tree calls.
15433 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15434 quick initial checks push it into worklist_vec and return.
15435
15436 2015-03-25 Richard Biener <rguenther@suse.de>
15437
15438 PR middle-end/65519
15439 * genmatch.c (expr::gen_transform): Re-write to avoid
15440 using gimple_build.
15441
15442 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15443
15444 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15445
15446 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15447
15448 * config/arm/arm.opt (print_tune_info): New option.
15449 * config/arm/arm.c (arm_print_tune_info): New function.
15450 (arm_file_start): Call arm_print_tune_info.
15451 * config/arm/arm-protos.h (struct tune_params): Add comment.
15452 * doc/invoke.texi (@item -mprint-tune-info): New item.
15453 (-mtune): mention it in ARM Option Summary.
15454
15455 2015-03-25 DJ Delorie <dj@redhat.com>
15456
15457 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15458 correct clause.
15459
15460 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15461 Martin Liska <mliska@suse.cz>
15462
15463 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15464 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15465 (sem_item::add_type): New function.
15466 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15467 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15468 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15469 (sem_function::equals_wpa): Fix typo.
15470 * ipa-icf.h (sem_item::add_type): New function.
15471 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15472 order.
15473
15474 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15475
15476 PR tree-optimization/65533
15477 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15478 with swapped operands, call vect_free_slp_tree on
15479 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15480 vector.
15481
15482 2015-03-24 Richard Biener <rguenther@suse.de>
15483
15484 PR middle-end/65517
15485 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15486 for fixup if necessary.
15487
15488 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15489
15490 * doc/extend.texi (Function Attributes): Add @cindex entries
15491 for all attributes and regularize their format. Delete text
15492 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15493 information about "eightbit_data", "tiny_data", and "model"
15494 variable attributes to the Variable Attributes section. Fix
15495 some obvious typos and copy-editing issues.
15496 (Variable Attributes, Type Attributes): Likewise add/fix
15497 @cindex entries for all attributes.
15498
15499 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15500
15501 PR target/65523
15502 * tree-chkp.c (chkp_build_returned_bound): Ignore
15503 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15504
15505 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15506
15507 PR target/65505
15508 * config/sh/predicates.md (simple_mem_operand,
15509 displacement_mem_operand): Add test for reg.
15510 (short_displacement_mem_operand): Test for displacement_mem_operand
15511 before invoking sh_disp_addr_displacement.
15512 * config/sh/constraints.md (Sdd, Sra): Simplify.
15513 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15514 Remove redundant displacement_mem_operand tests.
15515
15516 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15517
15518 PR target/65296
15519 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15520 the same -mmcu=MCU more than once.
15521
15522 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15523
15524 PR bootstrap/65522
15525 * ipa-devirt.c: Remove duplicate demangle.h include.
15526
15527 PR target/65504
15528 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15529 on the pseudo.
15530 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15531 REG_POINTER on *destptr after adjusting it for prologue size.
15532
15533 PR ipa/65521
15534 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15535 ultimate_alias_target ()->order ints instead of
15536 ultimate_alias_target () pointers.
15537
15538 2015-03-23 Richard Biener <rguenther@suse.de>
15539
15540 PR tree-optimization/65518
15541 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15542 interleaving cases we generate absymal code for.
15543
15544 2015-03-23 Richard Biener <rguenther@suse.de>
15545
15546 PR tree-optimization/65494
15547 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15548 matches here.
15549 (vect_analyze_slp_instance): But do that here, always and once.
15550
15551 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15552
15553 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15554 adding T or multiplying by T+1 and subracting T.
15555
15556 2015-03-22 Jeff Law <law@redhat.com>
15557
15558 PR rtl-optimization/64317
15559 * Makefile.in (OBJS): Add gcse-common.c
15560 * gcse.c: Include gcse-common.h
15561 (struct modify_pair_s): Move structure definition to gcse-common.h
15562 (compute_transp): Move function to gcse-common.c.
15563 (canon_list_insert): Similarly.
15564 (record_last_mem_set_info): Break out some code and put it into
15565 gcse-common.c. Call into the new common code.
15566 (compute_local_properties): Pass additional arguments to compute_transp.
15567 * postreload-gcse.c: Include gcse-common.h and df.h
15568 (modify_mem_list_set, blocks_with_calls): New variables.
15569 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15570 (get_bb_avail_insn): Pass in the expression index too.
15571 (alloc_mem): Allocate memory for the new bitmaps and lists.
15572 (free_mem): Free memory for the new bitmaps and lists.
15573 (insert_expr_in_table): Record a bitmap index for each entry we
15574 add to the table.
15575 (record_last_mem_set_info): Call into common code in gcse-common.c.
15576 (get_bb_avail_insn): If no available insn was found in the requested
15577 BB. If BB has a single predecessor, see if the expression is
15578 transparent in BB and available in that single predecessor.
15579 (compute_expr_transp): New wrapper for compute_transp.
15580 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15581 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15582 (gcse_after_reload_main): If there are elements in the hash table,
15583 then compute transparency for all the elements in the hash table.
15584 * gcse-common.h: New file.
15585 * gcse-common.c: New file.
15586
15587 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15588
15589 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15590 as an adjective.
15591 (System Headers): Likewise.
15592 (Ifdef): Likewise.
15593 (Traditional macros): Likewise.
15594 (Invocation): Likewise.
15595 (Option Index): Likewise.
15596 * doc/cppopts.texi (-M): Likewise.
15597 (-finput-charset): Likewise.
15598 (--help): Likewise.
15599 * doc.invoke.texi (AVR Options): Likewise.
15600 (V850 Options): Likewise.
15601
15602 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15603
15604 PR ipa/65475
15605 * ipa-devirt.c: Include demangle.h
15606 (odr_type_d): Add field rtti_broken.
15607 (odr_subtypes_equivalent_p): Do not require name to match.
15608 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15609 bypass the tests; be ready for function referneces in vtables that are
15610 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15611 (warn_odr): Give up for nameless types.
15612 (warn_types_mismatch): Report mismatch in mangled names;
15613 report mismatch in anonymous namespaces; look into component types to
15614 give useful error; report when mismatch is dragged in from other ODR
15615 type.
15616 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15617 duplicated diagnostics.
15618 (add_type_duplicate): Reorder checks so more informative ones come
15619 first; fix typo; do not output "the extra base is defined here" when
15620 we did not warn.
15621 (BINFO_N_BASE_BINFOS): Relax sanity check.
15622
15623 2015-03-22 Martin Liska <mliska@suse.cz>
15624 Jakub Jelinek <jakub@redhat.com>
15625
15626 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15627 masks that can potentially include a builtin.
15628 (ix86_add_new_builtins): Introduce fast filter for isa values
15629 that cannot trigger builtin inclusion.
15630
15631 2015-03-22 Martin Liska <mliska@suse.cz>
15632
15633 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15634 (sem_item::update_hash_by_local_refs): Likewise.
15635 (sem_variable::get_hash): Empty line is fixed.
15636 (sem_item_optimizer::execute): Include adding of hash references.
15637 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15638 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15639 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15640 (sem_item::update_hash_by_local_refs): Likewise.
15641
15642 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15643
15644 PR ipa/65502
15645 * ipa-comdats.c (enqueue_references): Walk through thunks.
15646 (ipa_comdats): Likewise.
15647 (set_comdat_group_1): New function.
15648
15649 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15650
15651 PR ipa/65475
15652 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15653 non-polymorphic
15654
15655 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
15656 Gerald Pfeifer <gerald@pfeifer.com>
15657
15658 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15659
15660 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15661 Sandra Loosemore <sandra@codesourcery.com>
15662
15663 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15664 function parameter declaration.
15665 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15666 Update arguments to nios2_adjust_call_address().
15667 (sibcall_internal): Rename from *sibcall.
15668 (sibcall_value_internal): Rename from *sibcall_value.
15669 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15670 (nios2_large_got_address): Add target temp reg parameter.
15671 (nios2_got_address): Adjust call to nios2_large_got_address, add
15672 force_reg around it.
15673 (nios2_load_pic_address): Add target temp reg parameter, replace call
15674 to nios2_got_address with corresponding code.
15675 (nios2_legitimize_constant_address): Update call to
15676 nios2_load_pic_address.
15677 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15678 to use temp reg for PIC loading purposes.
15679 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15680 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15681 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15682
15683 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15684
15685 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15686 usage of "the @option{...}".
15687 (-Wopenmp-simd): Likewise.
15688 (-fsanitize-recover): Likewise.
15689 (-fsanitize-undefined-trap-on-error): Likewise.
15690 (-flto): Likewise.
15691 (tracer-dynamic-coverage-feedback): Likewise.
15692 (reorder-block-duplicate-feedback): Likewise.
15693 (loop-unroll-jam-size): Likewise.
15694 (-B): Likewise.
15695 (-I-): Likewise.
15696 (-mabs=legacy): Likewise.
15697 (-mupper-regs-df): Likewise.
15698 (-mupper-regs-sf): Likewise.
15699 (-mpointers-to-nested-functions): Likewise.
15700
15701 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15702
15703 * doc/extend.texi (Cilk Plus Builtins): Add markup.
15704
15705 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15706
15707 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15708 additional index entries and cross-references.
15709 (-fchkp-check-incomplete-type): Likewise.
15710 (-fchkp-first-field-has-own-bounds): Likewise.
15711 (-fchkp-narrow-to-innermost-array): Likewise.
15712 (-fchkp-use-fast-string-functions): Likewise.
15713 (-fchkp-use-nochk-string-functions): Likewise.
15714 (-fchkp-use-static-const-bounds): Likewise.
15715 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15716 (-fchkp-instrument-marked-only): Likewise.
15717 (-fchkp-use-wrappers): Likewise.
15718 (-static-libmpx): Likewise.
15719 (-static-libmpxwrappers): Likewise.
15720 * doc/extend.texi (bnd_legacy): Likewise.
15721 (bnd_instrument): Likewise.
15722 (bnd_variable_size): Likewise.
15723 (Pointer Bounds Checker builtins): Likewise.
15724
15725 2015-03-21 Tom de Vries <tom@codesourcery.com>
15726
15727 PR tree-optimization/65458
15728 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15729 * cgraph.h (cgraph_node): Add parallelized_function field.
15730 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15731 (input_overwrite_node): Read parallelized_function field.
15732 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15733 parallelized_function on cgraph_node for child_fn.
15734 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15735 Remove include of gt-tree-parloops.h.
15736 (parallelized_functions): Remove static variable.
15737 (parallelized_function_p): Rewrite using parallelized_function field of
15738 cgraph_node.
15739 (create_loop_fn): Remove adding to parallelized_functions.
15740 * Makefile.in (GTFILES): Remove tree-parloops.c
15741
15742 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
15743
15744 PR rtl-optimization/64366
15745 * lra.c (lra_update_insn_regno_info): Consider regs in
15746 CALL_INSN_FUNCTION_USAGE memory.
15747
15748 2015-03-20 Richard Biener <rguenther@suse.de>
15749
15750 PR middle-end/64715
15751 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15752 for type comparison and gcc_checking_assert.
15753 (chrec_fold_plus_poly_poly): Likewise.
15754 (chrec_fold_multiply_poly_poly): Likewise.
15755 (chrec_convert_1): Likewise.
15756 * gimplify.c (gimplify_expr): Remove premature folding of
15757 &X + CST to &MEM[&X, CST].
15758
15759 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15760
15761 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15762 already is final.
15763 (ipa_inline): Recompute inline_failed codes.
15764 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15765 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15766 CIF_FINAL_ERROR.
15767
15768 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
15769
15770 PR rtl-optimization/60851
15771 * recog.c (constrain_operands): Accept a pseudo register before reload
15772 for LRA enabled targets.
15773
15774 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15775
15776 PR target/65240
15777 * config/rs6000/predicates.md (easy_fp_constant): Remove special
15778 -ffast-math handling that kept non-0 constants live in the RTL
15779 until reload. Remove logic testing the number of instructions it
15780 took to create a constant in a GPR that was never used, due to a
15781 test for soft-float earlier.
15782 (memory_fp_constant): Delete, no longer used.
15783
15784 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15785 alternatives for loading non-0 constants into GPRs for hard
15786 floating point that is no longer needed due to changes in
15787 easy_fp_constant. Add support for loading 0.0 into GPRs.
15788 (mov<mode>_hardfloat32): Likewise.
15789 (mov<mode>_hardfloat64): Likewise.
15790 (mov<mode>_64bit_dm): Likewise.
15791 (movtd_64bit_nodm): Likewise.
15792 (pre-reload move FP constant define_split): Delete define_split,
15793 since it is no longer used.
15794 (extenddftf2_internal): Remove GHF constraints that are not valid
15795 for extenddftf2.
15796
15797 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
15798
15799 PR rtl-optimization/63491
15800 * lra-constraints.c (check_and_process_move): Use src instead of
15801 sreg. Remove some dead code.
15802
15803 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
15804
15805 PR ipa/65380
15806 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15807 (sem_variable::merge): Likewise.
15808
15809 2015-03-19 Martin Liska <mliska@suse.cz>
15810
15811 PR ipa/65465
15812 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15813 all fields of cgraph_thunk_info.
15814
15815 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
15816
15817 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15818 clone instrumented thunks.
15819
15820 2015-03-19 Richard Biener <rguenther@suse.de>
15821
15822 Revert
15823 2015-03-10 Richard Biener <rguenther@suse.de>
15824
15825 PR middle-end/63155
15826 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15827 * tree-ssa-coalesce.c: Include timevar.h.
15828 (attempt_coalesce): Handle graph being NULL.
15829 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15830 Split out abnormal coalescing to ...
15831 (perform_abnormal_coalescing): ... this function.
15832 (coalesce_ssa_name): Perform abnormal coalescing without computing
15833 live/conflict.
15834 (verify_ssa_coalescing_worker): New function.
15835 (verify_ssa_coalescing): Likewise.
15836
15837 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
15838 Jakub Jelinek <jakub@redhat.com>
15839
15840 PR sanitizer/65400
15841 * tsan.c (instrument_gimple): Clear tail call flag on
15842 calls.
15843
15844 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15845
15846 PR sanitizer/65400
15847 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15848 call in the return bb.
15849 (find_split_points): Add RETURN_BB argument, don't call
15850 find_return_bb.
15851 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
15852 if true append TSAN_FUNC_EXIT internal call after the call to
15853 the split off function.
15854 (execute_split_functions): Call find_return_bb here.
15855 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15856 Adjust find_split_points and split_function calls.
15857
15858 2015-03-18 DJ Delorie <dj@redhat.com>
15859
15860 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
15861 (iorqi3_virt): Likewise.
15862
15863 2015-03-18 Tom de Vries <tom@codesourcery.com>
15864
15865 * tree-parloops.c (parallelize_loops): Make static.
15866 * tree-parloops.h (parallelize_loops): Remove extern declaration.
15867
15868 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
15869
15870 PR middle-end/64491
15871 Revert:
15872 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
15873
15874 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
15875 condition would be removed due to undefined behaviour.
15876
15877 2015-03-18 Martin Liska <mliska@suse.cz>
15878
15879 PR ipa/65432
15880 * cgraph.c (cgraph_node::get_create): Remove unnecessary
15881 xstrdup_for_dump wrapper.
15882 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
15883 sem_item::name.
15884 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
15885 with xstrdup_for_dump.
15886 (sem_variable::equals): Likewise.
15887 (sem_item_optimizer::read_section): Use symtab_node::name instead of
15888 sem_item::name.
15889 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
15890 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
15891 symtab_node::asm_name with xstrdup_for_dump.
15892 (congruence_class::dump): Use symtab_node::name instead of
15893 sem_item::name.
15894 * ipa-icf.h (symtab_node::name): Remove.
15895 (symtab_node::asm_name): Likewise.
15896
15897 2015-03-18 Jakub Jelinek <jakub@redhat.com>
15898
15899 PR tree-optimization/65450
15900 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
15901 function.
15902 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
15903 it instead of duplicate_ssa_name_ptr_info.
15904
15905 PR target/65222
15906 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
15907
15908 2015-03-18 Richard Biener <rguenther@suse.de>
15909
15910 * tree-data-ref.h (struct access_matrix): Remove.
15911 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
15912 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
15913 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
15914 (am_vector_index_for_loop): Likewise.
15915 (struct data_reference): Remove access_matrix member.
15916 (DR_ACCESS_MATRIX): Remove.
15917 (lambda_vector_new): Add comment.
15918 (lambda_matrix_new): Use XOBNEWVEC.
15919
15920 2015-03-18 Richard Biener <rguenther@suse.de>
15921
15922 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
15923 (pass_ch::execute): Cleanup the CFG only if we did sth.
15924 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
15925
15926 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15927
15928 * expmed.c (synth_mult): Use std::swap instead of manually
15929 swapping algorithms.
15930
15931 2015-03-18 Jakub Jelinek <jakub@redhat.com>
15932
15933 PR target/65078
15934 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
15935
15936 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
15937
15938 PR target/65296
15939 * config/avr/avr.opt (-nodevicelib): New option.
15940 * doc/invoke.texi (AVR Options): Document it.
15941 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
15942 libgcc.a, libc.a, libm.a.
15943 * config/avr/specs.h: Same.
15944 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
15945 which don't (directly) depend on the device. Print more help.
15946 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
15947 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
15948 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
15949 case of an error.
15950 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
15951 for specs file name.
15952 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
15953 * config/avr/avr-mcus.def: Adjust initializers and comments.
15954
15955 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
15956
15957 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
15958 DECL_ONE_ONLY to check if decl is one only.
15959 * ipa-split.c (consider_split): Limit splitt of one only functions.
15960
15961 2015-03-16 Jakub Jelinek <jakub@redhat.com>
15962
15963 PR tree-optimization/65427
15964 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
15965 functions.
15966 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
15967
15968 2015-03-16 Marek Polacek <polacek@redhat.com>
15969
15970 * cgraph.h (add_new_static_var): Remove declaration.
15971 * varpool.c (add_new_static_var): Remove function.
15972
15973 2015-03-16 Jakub Jelinek <jakub@redhat.com>
15974
15975 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
15976 instead of vec<tree> * with vec_alloc and release for args.
15977 Adjust all users.
15978
15979 PR middle-end/65431
15980 * omp-low.c (delete_omp_context): Only splay_tree_delete
15981 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
15982 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
15983
15984 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
15985
15986 PR sanitizer/64820
15987 * cfgexpand.c (align_base): New function.
15988 (alloc_stack_frame_space): Call it.
15989 (expand_stack_vars): Align prev_frame to be sure
15990 data->asan_vec elements aligned properly.
15991
15992 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
15993
15994 PR middle-end/65409
15995 * expr.c (store_field): Do not do a direct block copy if the source is
15996 a PARALLEL with BLKmode.
15997
15998 2015-03-16 Tom de Vries <tom@codesourcery.com>
15999
16000 PR middle-end/65414
16001 Revert:
16002 2015-03-12 Tom de Vries <tom@codesourcery.com>
16003
16004 PR rtl-optimization/64895
16005 * lra-lives.c (check_pseudos_live_through_calls): Use
16006 actual_call_used_reg_set instead of call_used_reg_set, if available.
16007
16008 2015-03-16 Alan Modra <amodra@gmail.com>
16009
16010 PR target/63150
16011 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16012 Modify Z->r bswapdi splitter to use dest in place of scratch.
16013 In r->Z and Z->r bswapdi splitter rename word_high, word_low
16014 to word1, word2 and rearrange logic to suit.
16015 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16016 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
16017 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16018 Add one '?' on r->r. Modify Z->r splitter to avoid need for
16019 early clobber.
16020
16021 2015-03-14 Jakub Jelinek <jakub@redhat.com>
16022
16023 PR tree-optimization/65369
16024 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16025 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16026 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16027
16028 PR tree-optimization/65418
16029 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16030 are casts in the first PLUS_EXPR operand, ensure tbias and
16031 *totallowp are in the inner type.
16032
16033 PR rtl-optimization/65401
16034 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16035 argument. If true, adjust_address_nv of x with big-endian
16036 correction for the mode widening to GET_MODE (y).
16037 (make_field_assignment): Don't do MEM mode widening here.
16038 Use MEM_P instead of GET_CODE == MEM.
16039
16040 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16041
16042 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16043 the external decls.
16044
16045 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16046
16047 PR target/64600
16048 * config/arm/arm.c (arm_gen_constant, AND case): Use
16049 ARM_SIGN_EXTEND when constructing AND mask.
16050
16051 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16052
16053 * graph.c (print_graph_cfg): Make function names visible and append
16054 parenthesis to it. Also make groups of basic blocks belonging to the
16055 same function visible.
16056
16057 2015-03-12 Richard Biener <rguenther@suse.de>
16058
16059 PR middle-end/44563
16060 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16061 to avoid quadratic behavior with inline expansion splitting blocks.
16062 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16063 with the successor if the predecessor will be merged with it.
16064 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16065 entry block with its successor.
16066
16067 2015-03-13 Richard Biener <rguenther@suse.de>
16068
16069 PR middle-end/44563
16070 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16071 (cleanup_tree_cfg_1): Do not call it.
16072 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16073 (fixup_noreturn_call): Mark the stmt as control altering.
16074 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16075 here.
16076 (pass_data_fixup_cfg): Produce a dump file.
16077 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16078 (need_noreturn_fixup): New global.
16079 (pass_dominator::execute): Fixup queued noreturn calls.
16080 (optimize_stmt): Queue calls that became noreturn for fixup.
16081 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16082 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16083 (el_to_fixup): New global.
16084 (eliminate_dom_walker::before_dom_childre): Queue calls that
16085 became noreturn for fixup.
16086 (eliminate): Fixup queued noreturn calls.
16087 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16088 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16089 (substitute_and_fold_dom_walker::before_dom_children): Queue
16090 alls that became noreturn for fixup.
16091 (substitute_and_fold): Fixup queued noreturn calls.
16092
16093 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
16094
16095 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16096 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16097 are building; for methods check ODR type of class they belong to if
16098 they may lead to a polymorphic call.
16099 (sem_function::compare_polymorphic_p): Be bit smarter about testing
16100 when function may lead to a polymorphic call.
16101 (sem_function::compare_type_list): Remove.
16102 (sem_variable::equals): Update use of compatible_types_p.
16103 (sem_variable::parse_tree_refs): Remove.
16104 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16105 cdtor.
16106 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16107 matching here.
16108 (func_checker::compatible_polymorphic_types_p): Break out from ...
16109 (unc_checker::compatible_types_p): ... here.
16110 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16111 Declare.
16112 (unc_checker::compatible_types_p): Update.
16113 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16114 Remove.
16115
16116 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16117
16118 PR rtl-optimization/65235
16119 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16120 When first element of vec_concat is const_int, calculate its size
16121 using second element.
16122
16123 2015-03-12 Richard Biener <rguenther@suse.de>
16124
16125 PR middle-end/65270
16126 * fold-const.c (operand_equal_p): Fix ordering of resetting
16127 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16128
16129 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16130
16131 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16132 to s390_reorg ().
16133 (s390_asm_output_function_label): Likewise.
16134 * config/s390/s390.c (s390_asm_output_function_label):
16135 Fix function label alignment with -mhtopatch.
16136 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16137 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16138 ("nop_2_byte"): New define_insn.
16139 ("nop_4_byte"): Likewise.
16140 ("nop_6_byte"): Likewise.
16141 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16142 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16143
16144 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16145
16146 PR target/65103
16147 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16148 register.
16149
16150 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16151
16152 PR target/65044
16153 * toplev.c (process_options): Restrict Pointer Bounds Checker
16154 usage with Address Sanitizer.
16155
16156 2015-03-12 Richard Biener <rguenther@suse.de>
16157
16158 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16159 to split on.
16160 * omp-low.c (expand_omp_taskreg): Split block before removing
16161 the stmt.
16162 (expand_omp_target): Likewise.
16163 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16164 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16165 stmt to split_block.
16166
16167 2015-03-12 Tom de Vries <tom@codesourcery.com>
16168
16169 PR rtl-optimization/64895
16170 * lra-lives.c (check_pseudos_live_through_calls): Use
16171 actual_call_used_reg_set instead of call_used_reg_set, if available.
16172
16173 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16174
16175 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16176 (cgraph_node::remove): Likewise.
16177 (cgraph_node::get_untransformed_body): Likewise.
16178 * varpool.c (varpool_node::remove): Likewise.
16179 (varpool_node::get_constructor): Add sanity check.
16180
16181 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16182
16183 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16184 old GCC versions.
16185 (-fabi-compat-version): Likewise.
16186 (-ffriend-injection): Likewise.
16187 (-Wdeclaration-after-statement): Likewise.
16188 (-fomit-frame-pointer): Likewise.
16189 (-ftree-coalesce-inlined-vars): Likewise.
16190 (-fvisibility=): Likewise.
16191 * doc/extend.texi (Typeof): Likewise.
16192 (Zero Length): Likewise.
16193 (Escaped Newlines): Likewise.
16194 (Compound Literals): Likewise.
16195 (Function Attributes): Likewise.
16196 (Label Attributes): Likewise.
16197 (Type Attributes): Likewise.
16198 (Function Names): Likewise.
16199 (Other Builtins): Likewise.
16200 (Function Specific Option Pragmas): Likewise.
16201 (C++ Interface): Likewise.
16202
16203 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16204
16205 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16206
16207 2015-03-11 Marek Polacek <polacek@redhat.com>
16208
16209 PR tree-optimization/65388
16210 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16211
16212 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16213
16214 PR target/65296
16215 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16216 * configure: Regenerate.
16217 * config.in: Regenerate.
16218 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16219 [-mn-flash]: Document it.
16220 [__AVR_ARCH__]: Document avrtiny.
16221
16222 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16223 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16224 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16225
16226 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16227
16228 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16229
16230 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16231
16232 PR target/65242
16233 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16234 allow reloads of PLUS in floating point/VSX registers.
16235
16236 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16237
16238 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16239 crypto_sha256_fast.
16240 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16241
16242 2015-03-11 Richard Biener <rguenther@suse.de>
16243
16244 PR tree-optimization/65310
16245 * tree-sra.c (build_ref_for_offset): Also preserve larger
16246 alignment.
16247
16248 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16249
16250 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16251
16252 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16253
16254 PR target/65368
16255 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16256 new define_expand.
16257 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16258
16259 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16260
16261 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16262 (sem_function::equals_wpa): ... here.
16263
16264 2015-03-10 Marek Polacek <polacek@redhat.com>
16265 Jakub Jelinek <jakub@redhat.com>
16266
16267 PR sanitizer/65367
16268 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16269 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16270 separately.
16271
16272 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16273
16274 PR target/65286
16275 * config/rs6000/t-linux: For powerpc64* target set
16276 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16277
16278 2015-03-10 Richard Biener <rguenther@suse.de>
16279
16280 PR middle-end/44563
16281 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16282 for redirect_all_calls.
16283
16284 2015-03-10 Marek Polacek <polacek@redhat.com>
16285
16286 * gdbinit.in (pcfun): Define and document.
16287
16288 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16289
16290 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16291 of libgomp-plugin.h.
16292 (find_target_compiler): Support a case when the path to gcc is
16293 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16294 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16295 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16296 libgomp-plugin.h.
16297 (main): Use GCC_INSTALL_NAME as target_driver_name.
16298 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16299 define.
16300 (mkoffload.o): Remove obsolete include path and defines.
16301 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16302
16303 2015-03-10 Richard Biener <rguenther@suse.de>
16304
16305 PR middle-end/63155
16306 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16307 * tree-ssa-coalesce.c: Include timevar.h.
16308 (attempt_coalesce): Handle graph being NULL.
16309 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16310 Split out abnormal coalescing to ...
16311 (perform_abnormal_coalescing): ... this function.
16312 (coalesce_ssa_name): Perform abnormal coalescing without computing
16313 live/conflict.
16314 (verify_ssa_coalescing_worker): New function.
16315 (verify_ssa_coalescing): Likewise.
16316
16317 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16318
16319 PR target/65296
16320 * config.gcc (extra_options) [avr]: Remove.
16321 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16322 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16323 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16324
16325 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16326 (-mmcu=): Add Var and MissingArgError properties.
16327 (-march=): Remove.
16328 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16329 * config/avr/t-multilib: Regenerate.
16330 * config/avr/specs.h: New file.
16331 * config/avr/driver-avr.c: New file.
16332 * config/avr/genopt.sh: Remove file.
16333 * config/avr/avr-tables.opt: Remove file.
16334 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16335 * config/avr/avr-c.c: Same.
16336 * avr-arch.h: Same.
16337 (avr_current_device): Remove proto.
16338 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16339 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16340 (EXTRA_SPEC_FUNCTIONS): Define.
16341 (avr_devicespecs_file): New specs function proto.
16342 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16343 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16344 (avr_current_device): Remove definition and usage.
16345 (avr_set_core_architecture): New static function.
16346 (avr_option_override): Use it.
16347 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16348 (mcu_name): New static array.
16349 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16350 (avr_inform_devices, avr_inform_core_architectures): New functions.
16351 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16352 (avrlibc.h) [WITH_AVRLIBC]: Include.
16353 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16354 (print_mcu): Rewrite from scratch.
16355 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16356 Forward to avr-specific specs defined in device-specs file.
16357 * config/avr/t-avr (driver-avr.o): New rule.
16358 (avr-devices.o): Depend on avr-arch.h.
16359 (avr-mcus): No more depend on avr-tables.opt.
16360 (avr-tables.opt): Remove rule.
16361 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16362
16363 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16364
16365 * c-family/c.opt (fchkp-use-wrappers): New.
16366 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16367 (chkp_wrap_function): New.
16368 (chkp_build_instrumented_fndecl): Support wrapped
16369 functions.
16370 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16371 (-fchkp-check-incomplete-type): New.
16372 (-fchkp-first-field-has-own-bounds): New.
16373 (-fchkp-narrow-bounds): New.
16374 (-fchkp-narrow-to-innermost-array): New.
16375 (-fchkp-optimize): New.
16376 (-fchkp-use-fast-string-functions): New.
16377 (-fchkp-use-nochk-string-functions): New.
16378 (-fchkp-use-static-bounds): New.
16379 (-fchkp-use-static-const-bounds): New.
16380 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16381 (-fchkp-check-read): New.
16382 (-fchkp-check-write): New.
16383 (-fchkp-store-bounds): New.
16384 (-fchkp-instrument-calls): New.
16385 (-fchkp-instrument-marked-only): New.
16386 (-fchkp-use-wrappers): New.
16387 (-static-libmpx): New.
16388 (-static-libmpxwrappers): New.
16389
16390 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16391
16392 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16393 (CHKP_SPEC): Add wrappers library.
16394 * c-family/c.opt (static-libmpxwrappers): New.
16395
16396 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16397
16398 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16399 (LIBMPX_SPEC): New.
16400 (CHKP_SPEC): New.
16401 * gcc.c (CHKP_SPEC): New.
16402 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16403 * c-family/c.opt (static-libmpx): New.
16404
16405 2015-03-10 Richard Biener <rguenther@suse.de>
16406
16407 PR middle-end/44563
16408 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16409 for compare_type.
16410 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16411 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16412 (cgraph_add_edge_to_call_site_hash): Likewise.
16413 (cgraph_node::get_edge): Likewise.
16414 (cgraph_edge::set_call_stmt): Likewise.
16415 (cgraph_edge::remove_caller): Likewise.
16416
16417 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16418
16419 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16420 (callee_saved_gpr_regs_size): ... this.
16421 (callee_saved_regs_first_regno): Rename to ...
16422 (callee_saved_first_gpr_regno): ... this.
16423 (callee_saved_regs_last_regno) Rename to ...
16424 (callee_saved_last_gpr_regno): ... this.
16425 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16426 variables.
16427 (nds32_initial_elimination_offset): Likewise.
16428 (nds32_expand_prologue): Likewise.
16429 (nds32_expand_epilogue): Likewise.
16430 (nds32_expand_prologue_v3push): Likewise.
16431 (nds32_expand_epilogue_v3pop): Likewise.
16432 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16433 Adjust renamed variables.
16434 (nds32_output_stack_pop): Likewise.
16435
16436 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16437
16438 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16439 code in comment.
16440
16441 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16442
16443 PR rtl-optimization/65321
16444 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16445 than shift mode.
16446 * var-tracking.c (use_narrower_mode): Likewise.
16447
16448 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16449
16450 PR tree-optimization/65355
16451 * varasm.c (notice_global_symbol): Do not produce RTL.
16452 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16453 anchor.
16454 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16455 check for section anchors.
16456
16457 2015-03-10 Alan Modra <amodra@gmail.com>
16458
16459 PR target/65286
16460 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16461 to be single-arch by default. Set cpu_is_64bit for powerpc64
16462 given --with-cpu=native.
16463 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16464 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16465 and powerpc64le.
16466 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16467 rs6000_isa_flags rather than TARGET_64BIT.
16468
16469 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16470 Kaz Kojima <kkojima@gcc.gnu.org>
16471
16472 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16473
16474 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16475
16476 PR lto/65361
16477 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16478 on a TREE_BINFO, instead use BINFO_TYPE.
16479
16480 2015-03-09 Richard Biener <rguenther@suse.de>
16481
16482 PR middle-end/65270
16483 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16484 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16485 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16486 of that. When comparing dereferences compare alignment.
16487 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16488
16489 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16490
16491 * ipa-inline-analysis.c (check_callers): Check
16492 node->can_remove_if_no_direct_calls_and_refs_p.
16493 (growth_likely_positive): Reorganize to call
16494 can_remove_if_no_direct_calls_p later.
16495 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16496 will_be_removed_from_program_if_no_direct_calls_p): Add
16497 will_inline parameter.
16498 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16499 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16500 Handle inliner case correctly.
16501
16502 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16503
16504 PR tree-optimization/63743
16505 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16506 had its definition forwarded by TER.
16507
16508 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16509
16510 PR lto/65316
16511 * ipa-utils.h (types_odr_comparable): Add strict argument.
16512 * ipa-devirt.c: Fix whitespace;
16513 (odr_hasher): Remove.
16514 (odr_name_hasher, odr_vtable_hasher): New hashers.
16515 (can_be_name_hashed_p): New predicate.
16516 (hash_type_name): remove.
16517 (hash_odr_name): New.
16518 (odr_name_hasher::hash): new.
16519 (can_be_vtable_hashed_p): New.
16520 (hash_odr_vtable): New.
16521 (odr_vtable_hasher::hash): New.
16522 (types_same_for_odr): Add strict parameter.
16523 (types_odr_comparable): Likewise.
16524 (odr_name_hasher::equal): New.
16525 (odr_vtable_hasher::equal): New.
16526 (odr_name_hasher::remove): New.
16527 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16528 (odr_vtable_hash_type): New.
16529 (odr_vtable_hash): New.
16530 (odr_subtypes_equivalent_p): Do strict comparsion.
16531 (add_type_duplicate): Merge type names; cleanup; avoid type
16532 duplicates.
16533 (register_odr_type): Initialize vtable hash.
16534 (build_type_inheritance_graph): Likewise
16535 (get_odr_type): Reorg to use two hashes.
16536 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16537 output.
16538 (ipa_devirt): Dump type_inheritance_graph.
16539 (types_same_for_odr): Add strict mode.
16540
16541 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16542
16543 PR ipa/65334
16544 * cgraph.h (symtab_node): Add definition_alignment,
16545 can_increase_alignment_p and increase_alignment.
16546 * symtab.c (symtab_node::can_increase_alignment_p,
16547 increase_alignment_1, symtab_node::increase_alignment,
16548 symtab_node::definition_alignment): New.
16549 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16550 can_increase_alignment_p.
16551 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16552 * tree-vect-stmts.c (ensure_base_align): Likewise.
16553 * varasm.c (function_section_1): Use definition_alignment.
16554 (assemble_start_function): Likewise.
16555 (emit_local): likewise.
16556 (build_constant_desc): Likewsie.
16557 (output_constant_def_contents): Likewise.
16558 (place_block_symbol): Likewise.
16559 (output_object_block): Likewise.
16560
16561 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16562
16563 PR ipa/65316
16564 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16565 when outputting debug.
16566
16567 2015-03-07 Marek Polacek <polacek@redhat.com>
16568 Martin Uecker <uecker@eecs.berkeley.edu>
16569
16570 PR sanitizer/65280
16571 * doc/invoke.texi: Update description of -fsanitize=bounds.
16572
16573 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16574
16575 * tree-ssa-phiopt.c (neg_replacement): Remove.
16576 (tree_ssa_phiopt_worker): Remove negate optimization.
16577
16578 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16579
16580 PR ipa/65302
16581 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16582
16583 2015-03-06 Richard Biener <rguenther@suse.de>
16584
16585 PR middle-end/64928
16586 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16587 and liveout_obstack members.
16588 (calculate_live_on_exit): Remove.
16589 (calculate_live_ranges): Change declaration.
16590 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16591 (new_tree_live_info): Adjust.
16592 (calculate_live_ranges): Delete livein when not wanted.
16593 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16594 Deal with partly deleted live info.
16595 (loe_visit_block): Remove temporary bitmap by using
16596 bitmap_ior_and_compl_into.
16597 (live_worklist): Adjust accordingly.
16598 (calculate_live_on_exit): Make static.
16599 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16600 we do not need livein.
16601
16602 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16603
16604 * real.c (real_from_string): Fix typo in assertion.
16605
16606 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16607
16608 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16609 the patch.
16610
16611 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16612
16613 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16614
16615 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16616
16617 PR target/64342
16618 * lra-assigns.c (find_hard_regno_for): Rename to
16619 find_hard_regno_for_1. Add a new parameter.
16620 (find_hard_regno_for): New function using find_hard_regno_for_1.
16621
16622 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16623
16624 PR rtl-optimization/65067
16625 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16626 strict volatile bitfield handling.
16627
16628 2015-03-05 Martin Liska <mliska@suse.cz>
16629
16630 PR ipa/65318
16631 * ipa-icf.c (sem_variable::equals): Compare variables types.
16632
16633 2015-03-05 Richard Henderson <rth@redhat.com>
16634
16635 PR target/65121
16636 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16637 correctly check weak symbol binding.
16638
16639 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16640
16641 PR middle-end/65315
16642 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16643 needed alignment.
16644
16645 2015-03-05 Martin Liska <mliska@suse.cz>
16646
16647 * ipa-inline.c (inline_small_functions): Set default value to
16648 prevent warning during bootstrap.
16649 * tree.h: Add pragma guard that ignores false positives during
16650 bootstrap.
16651
16652 2015-03-05 Richard Biener <rguenther@suse.de>
16653
16654 PR tree-optimization/65310
16655 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16656 Properly preserve alignment of the base of the access.
16657
16658 2015-03-05 Richard Biener <rguenther@suse.de>
16659
16660 PR ipa/65270
16661 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16662 Compare dependence info.
16663
16664 2015-03-05 Richard Biener <rguenther@suse.de>
16665
16666 PR middle-end/65233
16667 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16668 tree-into-ssa.h.
16669 (walk_ssa_copies): Revert last chage. Instead do not walk
16670 SSA names registered for SSA update.
16671
16672 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16673
16674 PR ipa/65270
16675 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16676 vtable references for their containing type.
16677 (sem_function::equals_wpa): Compare TYPE_RESTRICT
16678 and type attributes.
16679
16680 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
16681
16682 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16683 before negating it.
16684 * stor-layout.c (finalize_record_size): Revert latest change.
16685
16686 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
16687
16688 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16689
16690 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16691
16692 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16693 for correct comdat handling.
16694 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16695 Likewise.
16696 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16697 (used_from_object_file_p_worker): Remove.
16698 (cgraph_node::only_called_directly_or_alised): Add
16699 used_from_object_file_p.
16700 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16701 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16702 can_remove_if_no_direct_calls_and_refs_p.
16703
16704 2015-03-04 Nick Clifton <nickc@redhat.com>
16705
16706 * config/rl78/rl78.h (enum reg_class): Remove real registers from
16707 General register class.
16708 * config/rl78/rl78-real.md: Replace general register constraints
16709 with real+virtual register constraints.
16710
16711 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16712
16713 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16714 from checking for -mhtm option.
16715
16716 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16717
16718 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16719 (struct ipa_sra_check_caller_data): Add has_thunk field.
16720 (ipa_sra_check_caller): Check for thunk.
16721 (ipa_sra_preliminary_function_checks): Give up on function with
16722 thunks.
16723 (ipa_early_sra): Use call_for_symbol_and_aliases.
16724
16725 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
16726
16727 PR target/65249
16728 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16729 called for __stack_chk_guard symbol.
16730
16731 2015-03-03 DJ Delorie <dj@redhat.com>
16732
16733 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16734 inc/dec.
16735 (*addhi3_real): Likewise.
16736 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16737 pattern to match incrementing memory.
16738 * config/rl78/predicates.md (rl78_1_2_operand): New.
16739 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16740 it's the same and only mem.
16741 (rl78_alloc_physical_registers_op2): If there's effectively only
16742 one MEM, transcode it into HL.
16743 (rl78_far_p): Reject addresses that aren't legitimate.
16744
16745 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16746
16747 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16748 negating it.
16749
16750 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16751
16752 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16753
16754 Implement call0 ABI for xtensa
16755 * config/xtensa/constraints.md ("a" constraint): Include stack
16756 pointer in case of call0 ABI.
16757 ("q" constraint): Make empty in case of call0 ABI.
16758 ("D" constraint): Include stack pointer in case of call0 ABI.
16759 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16760 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16761 prototypes.
16762 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16763 variable.
16764 (xtensa_regno_to_class): Make it a local variable in the
16765 function xtensa_regno_to_class.
16766 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16767 macro, function prototype and implementation.
16768 (reg_nonleaf_alloc_order): Make it a local variable in the
16769 function order_regs_for_local_alloc.
16770 (xtensa_conditional_register_usage): New function.
16771 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16772 (xtensa_valid_move): Allow direct moves to stack pointer
16773 register in call0 ABI.
16774 (xtensa_setup_frame_addresses): Only spill register windows in
16775 windowed ABI.
16776 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16777 call0 ABI respectively.
16778 (xtensa_function_arg_1): Only mark a7 register for copying in
16779 windowed ABI.
16780 (xtensa_call_save_reg): New function.
16781 (compute_frame_size): Add space for callee saved register
16782 storage to the frame size in call0 ABI.
16783 (xtensa_expand_prologue): Generate code to set up stack frame
16784 and save callee-saved registers in call0 ABI.
16785 (xtensa_expand_epilogue): New function.
16786 (xtensa_set_return_address): New function.
16787 (xtensa_return_addr): Calculate return address in call0 ABI.
16788 (xtensa_builtin_saveregs): Only mark a7 register for copying and
16789 emit copying code in windowed ABI.
16790 (order_regs_for_local_alloc): Add preferred register allocation
16791 order for non-leaf function in call0 ABI.
16792 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16793 (xtensa_asm_trampoline_template): Add trampoline generation for
16794 call0 ABI.
16795 (xtensa_trampoline_init): Add trampoline initialization for
16796 call0 ABI.
16797 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16798 functions.
16799 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16800 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16801 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16802 ABI call-used registers.
16803 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16804 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16805 call0 ABI.
16806 (REG_CLASS_CONTENTS): Include all registers into the preferred
16807 reload registers set, adjust the set in the
16808 xtensa_conditional_register_usage.
16809 (xtensa_regno_to_class): Drop variable declaration.
16810 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16811 function.
16812 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16813 respectively.
16814 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16815 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16816 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16817 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16818 location in call0 ABI.
16819 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16820 stack adjustment size when handling exception.
16821 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16822 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16823 definitions.
16824 ("return" pattern): Generate ret.n/ret in call0 ABI.
16825 ("epilogue" pattern): Expand epilogue.
16826 ("nonlocal_goto" pattern): Use default in call0 ABI.
16827 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16828 emit eh_set_a0_* depending on ABI.
16829 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16830 ("eh_set_a0_call0", "blockage"): New patterns.
16831
16832 2015-03-03 Martin Liska <mliska@suse.cz>
16833
16834 PR ipa/65287
16835 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16836
16837 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16838
16839 PR 65138/target
16840 * config/rs6000/rs6000-tables.opt: Regenerate table.
16841
16842 2015-03-03 Renlin Li <renlin.li@arm.com>
16843
16844 * doc/md.texi (@item ^): Change ? into ^.
16845
16846 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
16847
16848 * doc/tm.texi: Regenerated.
16849
16850 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16851
16852 * builtins.c (expand_builtin_return_addr): Add
16853 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16854 surrounding #ifdef.
16855 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16856 definition to 1.
16857 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
16858 Likewise.
16859 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
16860 undefined.
16861 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
16862 paragraph.
16863
16864 2015-03-03 Martin Jambor <mjambor@suse.cz>
16865 Eric Botcazou <ebotcazou@adacore.com>
16866
16867 * tree-sra.c (ipa_sra_check_caller_data): New type.
16868 (has_caller_p): Removed.
16869 (ipa_sra_check_caller): New function.
16870 (ipa_sra_preliminary_function_checks): Use it.
16871
16872 2015-03-03 Martin Liska <mliska@suse.cz>
16873
16874 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
16875 instead of if branch.
16876
16877 2015-03-03 Martin Liska <mliska@suse.cz>
16878
16879 PR ipa/65282
16880 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
16881
16882 2015-03-23 Jeff Law <law@redhat.com>
16883
16884 PR tree-optimization/65241
16885 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
16886 hash table if INSERT is true.
16887
16888 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16889
16890 PR target/65296
16891 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
16892
16893 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16894
16895 PR target/64331
16896 * config/avr/avr.c (context.h, tree-pass.h): Include them.
16897 (avr_pass_data_recompute_notes): New static variable.
16898 (avr_pass_recompute_notes): New class.
16899 (avr_register_passes): New static function.
16900 (avr_option_override): Call it.
16901
16902 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16903
16904 Fix various problems with specs file generation.
16905
16906 PR target/65296
16907 * config.gcc (extra_gcc_objs) [avr]: Remove.
16908 * config/avr/driver-avr.c: Remove file.
16909 * config/avr/t-avr (driver-avr.o): Remove rule.
16910 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
16911 INCLUDES to build. Depend on TM_H.
16912 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
16913 build warnings. Fix non-matching types and non-existing %-codes.
16914 (tm.h): Include.
16915 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
16916 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
16917 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
16918 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
16919 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
16920 (LIBGCC_SPEC): Remove definitions.
16921
16922 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16923
16924 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
16925 to create a register in testing mode.
16926
16927 2015-03-03 Martin Liska <mliska@suse.cz>
16928 Jan Hubicka <hubicka@ucw.cz>
16929
16930 PR ipa/65263
16931 * cgraph.c (cgraph_node::has_thunk_p): New function.
16932 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
16933 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
16934 (sem_function::merge): Assert is changed.
16935
16936 2015-03-03 Martin Liska <mliska@suse.cz>
16937 Martin Jambor <mjambor@suse.cz>
16938
16939 PR ipa/65087
16940 * ipa-icf.c (sem_item_optimizer::execute): Change function
16941 return value to boolean.
16942 (sem_item_optimizer::merge_classes): Likewise.
16943 (ipa_icf_driver): Return TODO_remove_functions in case there's
16944 a merge operation processed.
16945 * ipa-icf.h: Change function return value to boolean.
16946
16947 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16948
16949 PR 65138/target
16950 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
16951 processor type for 64-bit little endian PowerPC.
16952
16953 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16954 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
16955 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
16956 printing built-in mask so it does not pass NULL pointers.
16957
16958 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
16959 -mcpu=powerpc64le.
16960
16961 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
16962
16963 PR target/58158
16964 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
16965 !ISA_HAS_FP_CONDMOVE.
16966
16967 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
16968
16969 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
16970 reload_completed.
16971
16972 2015-03-02 Ulrich Drepper <drepper@gmail.com>
16973
16974 * doc/invoke.texi (Options for Code Generation Conventions):
16975 Fix URL of DSO paper.
16976
16977 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16978
16979 PR ipa/65130
16980 * ipa-inline.c (check_callers): Looks for recursion.
16981 (inline_to_all_callers): Give up on uninlinable or recursive edges.
16982 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
16983 summary of inline clones.
16984 (do_estimate_growth_1): Fix recursion check.
16985
16986 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16987
16988 PR ipa/64988
16989 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
16990 comdat groups.
16991
16992 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16993 Aldy Hernandez <aldyh@redhat.com>
16994
16995 PR lto/65276
16996 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
16997 when checking TYPE_BINFO.
16998
16999 2015-03-02 Richard Biener <rguenther@suse.de>
17000
17001 PR ipa/65270
17002 * ipa-icf-gimple.c: Include builtins.h.
17003 (func_checker::compare_memory_operand): Compare base alignment.
17004
17005 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17006
17007 PR target/65184
17008 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17009 are never passed by reference.
17010
17011 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17012
17013 PR target/65183
17014 * tree-chkp.c (chkp_check_lower): Don't check against
17015 zero bounds for already instrumented functions.
17016 (chkp_check_upper): Likewise.
17017 (chkp_fini): Clean pass local data to avoid wrong reusage.
17018
17019 2015-02-28 Martin Liska <mliska@suse.cz>
17020 Jan Hubicka <hubicka@ucw.cz>
17021
17022 * ipa-icf.c (sem_variable::equals): Improve debug output;
17023 get variable constructor.
17024 (sem_variable::parse): Do not filter out too early; give up on
17025 volatile and register vars.
17026 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17027 variables.
17028 * ipa-icf.h (sem_variable::init): Do not set ctor.
17029 (sem_variable::ctor): Remove.
17030
17031 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
17032
17033 PR middle-end/65233
17034 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17035
17036 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17037
17038 * ipa-icf.c: Include stor-layout.h
17039 (sem_function::compare_cgraph_references): Rename to ...
17040 (sem_item::compare_cgraph_references): ... this one.
17041 (sem_variable::equals_wpa): New function
17042 (sem_variable::equals): Do not check stuff already verified by
17043 equals_wpa.
17044 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17045 * ipa-icf.h (sem_item): Add compare_cgraph_references.
17046 (sem_function): Remove compare_cgraph_references.
17047 (sem_variable): Turns equals_wpa into non-inline.
17048
17049 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17050
17051 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17052 (sem_item::add_expr): New function.
17053 (sem_function::hash_stmt): Handle operands of most statements.
17054 (sem_variable::get_hash): Hash the actual constructor.
17055 * ipa-icf.h (sem_item): Add add_expr.
17056 (sem_function): Update prototype of hash_stmt
17057
17058 2015-02-28 Martin Liska <mliska@suse.cz>
17059 Jan Hubicka <hubicka@ucw.cz>
17060
17061 PR ipa/65245
17062 * ipa-icf-gimple.c (func_checker::compare_function_decl):
17063 Remove.
17064 (func_checker::compare_variable_decl): Skip symtab vars.
17065 (func_checker::compare_cst_or_decl): Update.
17066 * ipa-icf.c (sem_function::parse): Do not consider aliases.
17067 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17068 use correct symtab predicates.
17069 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17070 (sem_variable::parse): Update comment.
17071 (sem_item_optimizer::build_graph): Consider ultimate aliases
17072 for references.
17073
17074 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17075
17076 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17077 of OBJ_TYPE_REF.
17078
17079 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17080
17081 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17082 (sem_variable::merge) Likewise.
17083
17084 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17085
17086 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17087 target; also match flag_ipa_devirt.
17088
17089 2015-03-01 Martin Liska <mliska@suse.cz>
17090 Jan Hubicka <hubicka@ucw.cz>
17091
17092 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17093 Validate variable alignment.
17094 * ipa-icf.c (sem_function::equals_private): Be more precise
17095 about non-common function attributes.
17096 (sem_variable::equals): Likewise.
17097
17098 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17099
17100 PR ipa/65237
17101 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17102 across COMDAT group boundary.
17103
17104 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17105
17106 PR ipa/65232
17107 * ipa-icf.c (clear_decl_rtl): New function.
17108 (sem_function::merge): Clear RTL before forming alias.
17109 (sem_variable::merge): Clear RTL before forming alias.
17110
17111 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17112
17113 PR ipa/65236
17114 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17115
17116 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
17117
17118 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17119 to neon_to_gp<q>.
17120
17121 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17122
17123 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17124 a typo in the description.
17125
17126 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17127
17128 PR target/64317
17129 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17130 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17131 * lra-constraints.c: Include "params.h".
17132 (EBB_PROBABILITY_CUTOFF): Use
17133 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17134 (lra_inheritance): Use '<' instead of '<=' for
17135 EBB_PROBABILITY_CUTOFF.
17136 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17137 Document change.
17138
17139 2015-02-27 Martin Liska <mliska@suse.cz>
17140
17141 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17142 vector length condition.
17143
17144 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17145
17146 * doc/extend.texi (x86 transactional memory intrinsics):
17147 Reorganize discussion of _xbegin. Clarify that the return
17148 value is a bit mask. Expand example and move to end of section.
17149
17150 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17151 Aldy Hernandez <aldyh@redhat.com>
17152
17153 PR rtl-optimization/65220
17154 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17155
17156 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17157
17158 PR target/65032
17159 * lra-remat.c (update_scratch_ops): New.
17160 (do_remat): Call it.
17161 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17162 (remove_scratches): ... here.
17163 * lra-int.h (lra_register_new_scratch_op): New prototype.
17164
17165 2015-02-27 Marek Polacek <polacek@redhat.com>
17166
17167 PR c/65040
17168 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17169 -Wformat-signedness anymore.
17170
17171 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17172
17173 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17174 function.
17175 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17176
17177 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17178
17179 * config/s390/s390.c (enum s390_builtin):
17180 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17181 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17182 (s390_init_builtins): Generate new builtin functions.
17183 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17184 (s390_sfpc, s390_efpc): New pattern definitions.
17185
17186 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17187
17188 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17189 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17190 (s390_builtin_decls): New array.
17191 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17192 (s390_builtin_decl): New function.
17193 (TARGET_BUILTIN_DECL): Define macro.
17194
17195 2015-02-27 Richard Biener <rguenther@suse.de>
17196
17197 PR middle-end/63175
17198 * builtins.c (get_object_alignment_2): Make sure to re-apply
17199 the ANDed mask after recursing to its operand gets us a new
17200 misalignment bit position.
17201
17202 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17203 Martin Liska <mliska@suse.cz>
17204
17205 PR bootstrap/65150
17206 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17207 Use address_matters_p.
17208 (redirect_all_callers, set_addressable): New functions.
17209 (sem_function::merge): Reorganize and fix merging issues.
17210 (sem_variable::merge): Likewise.
17211 (sem_variable::compare_sections): Remove.
17212 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17213 Optimization flag.
17214 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17215 redirect them.
17216 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17217 decl is used.
17218 (address_matters_1): New function.
17219 (symtab_node::address_matters_p): New function.
17220 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17221 check for merged flag.
17222 * cgraph.h (address_matters_p): Declare.
17223 (symtab_node::address_taken_from_non_vtable_p): Remove.
17224 (symtab_node::address_can_be_compared_p): New method.
17225 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17226 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17227 Remove.
17228 (comdat_can_be_unshared_p_1) Use address_matters_p.
17229 (update_vtable_references): Fix formating.
17230 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17231 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17232 * cgraphclones.c: Preserve merged and icf_merged flags.
17233
17234 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17235
17236 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17237 (Label Attributes): Likewise.
17238 (Cilk Plus Builtins): Likewise.
17239 (ARC SIMD Built-in Functions): Likewise.
17240 (ARM C Language Extensions (ACLE)): Likewise.
17241 (PowerPC Built-in Functions): Likewise.
17242 (PowerPC Hardware Transactional Memory Built-in Functions):
17243 Likewise.
17244
17245 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17246
17247 PR tree-optimization/65216
17248 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17249 new stmt and new SSA_NAME for lhs whenever the arguments have
17250 changed and weren't just swapped. Fix comment typo.
17251
17252 PR tree-optimization/65215
17253 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17254 for PDP endian targets.
17255 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17256 Fix up formatting issues.
17257 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17258 size is smaller than the original, adjust MEM_REF offset by the
17259 difference of sizes. Use is_gimple_mem_ref_addr instead of
17260 is_gimple_min_invariant test to avoid adding address temporaries.
17261
17262 2015-02-26 Martin Liska <mliska@suse.cz>
17263 Jan Hubicka <hubicka@ucw.cz>
17264
17265 PR ipa/64693
17266 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17267 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17268 (sem_item_optimizer::process_cong_reduction): Include division by
17269 sensitive references.
17270 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17271 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17272 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17273
17274 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17275
17276 PR target/65192
17277 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17278 Remove.
17279 * config/avr/avr.c: Same.
17280 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17281 Refuse any constant address not in 0..0xbf.
17282 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17283 tiny_valid_direct_memory_access_range from insn conditions.
17284 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17285
17286 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17287
17288 PR target/61142
17289 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17290 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17291 * config/sh/predicates.md (const_logical_operand): New predicate.
17292 * config/sh/sh.md: Add new peephole2 patterns.
17293
17294 2015-02-26 Marek Polacek <polacek@redhat.com>
17295
17296 PR ipa/65008
17297 * ipa-inline.c (early_inliner): Recompute inline parameters.
17298
17299 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17300
17301 PR target/65171
17302 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17303 instructions with TImode operands are included in the analysis.
17304
17305 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17306
17307 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17308 of an EDGE_FSM_THREAD.
17309
17310 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17311
17312 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17313
17314 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17315
17316 PR debug/46102
17317 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17318
17319 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17320
17321 PR tree-optimization/65048
17322 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17323 (thread_through_all_blocks): Call valid_jump_thread_path.
17324 Remove invalid FSM jump-thread paths.
17325
17326 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17327
17328 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17329 (ipa_write_optimization_summaries): Likewise.
17330 * tree-streamer.h: Include data-streamer.h.
17331 (streamer_mode_table): Declare extern variable.
17332 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17333 * lto-streamer-out.c (lto_output_init_mode_table,
17334 lto_write_mode_table): New functions.
17335 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17336 offloading LTO.
17337 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17338 (lto_create_simple_input_block): Add mode_table argument to the
17339 lto_input_block constructors.
17340 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17341 Likewise.
17342 * data-streamer-in.c (string_for_index): Likewise.
17343 * ipa-inline-analysis.c (inline_read_section): Likewise.
17344 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17345 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17346 * lto-streamer-in.c (lto_read_body_or_constructor,
17347 lto_input_toplevel_asms): Likewise.
17348 (lto_input_mode_table): New function.
17349 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17350 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17351 Use bp_pack_machine_mode.
17352 * real.h (struct real_format): Add name field.
17353 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17354 (class lto_input_block): Add mode_table member.
17355 (lto_input_block::lto_input_block): Add mode_table_ argument,
17356 initialize mode_table.
17357 (struct lto_file_decl_data): Add mode_table field.
17358 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17359 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17360 unpack_ts_decl_common_value_fields,
17361 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17362 * tree-streamer.c (streamer_mode_table): New variable.
17363 * real.c (ieee_single_format, mips_single_format,
17364 motorola_single_format, spu_single_format, ieee_double_format,
17365 mips_double_format, motorola_double_format,
17366 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17367 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17368 ibm_extended_format, mips_extended_format, ieee_quad_format,
17369 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17370 decimal_single_format, decimal_double_format, decimal_quad_format,
17371 ieee_half_format, arm_half_format, real_internal_format): Add name
17372 field.
17373 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17374
17375 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17376
17377 PR target/65161
17378 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17379 reordering for selective scheduling.
17380
17381 2015-02-26 Terry Guo <terry.guo@arm.com>
17382
17383 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17384 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17385 (arm_arch_no_volatile_ce): Declare new global variable.
17386 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17387 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17388 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17389 (TARGET_NO_VOLATILE_CE): New macro.
17390 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17391 volatile memory access in IT block
17392
17393 2015-02-25 Kai Tietz <ktietz@redhat.com>
17394
17395 PR tree-optimization/61917
17396 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17397 that reduc_def_stmt is null.
17398
17399 2015-02-25 Martin Liska <mliska@suse.cz>
17400
17401 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17402 hard register variables.
17403
17404 2015-02-25 Kai Tietz <ktietz@redhat.com>
17405
17406 PR target/64212
17407 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17408 (symtab::noninterposable_alias): Likewise.
17409
17410 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17411
17412 PR target/65167
17413 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17414 bounds registers.
17415 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17416
17417 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17418
17419 PR target/64997
17420 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17421 as split condition; force split via '#' in output pattern.
17422
17423 2015-02-25 Richard Biener <rguenther@suse.de>
17424 Kai Tietz <ktietz@redhat.com>
17425
17426 PR tree-optimization/61917
17427 * tree-vect-loop.c (vectorizable_reduction): Allow
17428 vect_internal_def without reduction to exit graceful.
17429
17430 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17431
17432 PR target/65196
17433 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17434 only with NONDEBUG_INSN_P.
17435
17436 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17437
17438 Use variadic macros with avr-log.c.
17439
17440 * config/avr/avr-protos.h (avr_vdump): New prototype.
17441 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17442 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17443 * config/avr/avr-log.c: Adjust comments.
17444 (avr_vdump): New function.
17445 (avr_vadump): Pass caller as 2nd argument instead of format string.
17446 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17447 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17448
17449 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17450
17451 PR lto/64374
17452 * target.def (target_option_stream_in): New target hook.
17453 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17454 targetm.target_option.post_stream_in if non-NULL.
17455 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17456 * doc/tm.texi: Updated.
17457 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17458 function.
17459 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17460
17461 2015-02-24 Jeff Law <law@redhat.com>
17462
17463 PR target/65117
17464 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17465 of operand 0 and operand 2.
17466 (zero_cost_loop_end, loop_end): Similarly.
17467
17468 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17469
17470 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17471 CXX_MEM_STAT_INFO.
17472
17473 2015-02-24 DJ Delorie <dj@redhat.com>
17474
17475 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17476 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17477 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17478 instead of hardcoding SImode.
17479
17480 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17481
17482 * omp-low.c (create_omp_child_function): Tag entrypoint
17483 functions with a special attribute.
17484
17485 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17486
17487 PR target/65058
17488 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17489
17490 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17491
17492 PR rtl-optimization/65123
17493 * lra-remat.c (operand_to_remat): Check hard regs in insn
17494 definition too.
17495
17496 2015-02-24 Nick Clifton <nickc@redhat.com>
17497
17498 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17499 to the assembler.
17500
17501 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17502
17503 PR libgomp/64625
17504 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17505 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17506 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17507 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17508 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17509 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17510 (BUILT_IN_GOACC_PARALLEL): Specify as
17511 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17512 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17513 * builtin-types.def
17514 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17515 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17516 Remove function types.
17517 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17518 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17519 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17520 New function types.
17521
17522 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17523
17524 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17525
17526 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17527
17528 PR tree-optimization/65170
17529 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17530 if val[1] < 0, clear also val[2] and return 3.
17531
17532 2015-02-24 Alan Modra <amodra@gmail.com>
17533
17534 PR target/65172
17535 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17536 when *base is a reg. Handle nested plus addresses. Simplify
17537 pre_modify test.
17538
17539 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17540
17541 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17542 use natural alignment when optimizing for size.
17543
17544 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17545
17546 PR target/65153
17547 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17548 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17549 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17550
17551 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17552
17553 PR fortran/63427
17554 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17555 too big for a wide_int. Implement missing wrapping operation.
17556
17557 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17558
17559 PR target/65163
17560 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17561 instead of const_int 4294901760.
17562
17563 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17564
17565 * config/avr/t-avr: Fix typo in comment.
17566
17567 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17568
17569 * doc/rtl.texi (fma): Clarify documentation.
17570
17571 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17572
17573 PR debug/58123
17574 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17575 over input_location.
17576
17577 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17578
17579 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17580 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17581 restrict alignments to absolute_biggest_alignment.
17582 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17583 Define.
17584 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17585 * doc/tm.texi: Regenerate.
17586 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17587
17588 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17589
17590 PR target/64172
17591 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17592
17593 2015-02-20 Richard Biener <rguenther@suse.de>
17594
17595 PR tree-optimization/65136
17596 * tree-ssa-propagate.c: Include cfgloop.h.
17597 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17598 arguments with constants.
17599
17600 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17601 Martin Liska <mliska@suse.cz>
17602
17603 PR target/63892
17604 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17605 don't try to create_thunk if stdarg_p. If
17606 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17607 redirect_callers if possible.
17608 (sem_item_optimizer::execute): Call unregister_hooks here...
17609 (ipa_icf_driver): ... instead of here.
17610
17611 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17612
17613 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17614 Mark operand 0 as earlyclobber in 2nd alternative.
17615 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17616 Write negated shift amount into QI lowpart operand 0 and use it
17617 in the shift step.
17618 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17619
17620 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17621
17622 * cgraph.h (clone_function_name_1): Declare.
17623 * cgraphclones.c (clone_function_name_1): New function.
17624 (clone_function_name): Use it.
17625 * lto-partition.c: Include "stringpool.h".
17626 (must_not_rename, maybe_rewrite_identifier)
17627 (validize_symbol_for_target): New static functions.
17628 (privatize_symbol_name): Use must_not_rename.
17629 (promote_symbol): Call validize_symbol_for_target.
17630 (lto_promote_cross_file_statics): Likewise.
17631 (lto_promote_statics_nonwpa): Likewise.
17632
17633 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17634
17635 PR target/64452
17636 * config/avr/avr.md (pushhi_insn): New insn.
17637 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17638
17639 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17640 Jakub Jelinek <jakub@redhat.com>
17641
17642 * tree-streamer.c (preload_common_nodes): Don't preload
17643 TI_VA_LIST* for offloading.
17644 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17645 in_lto_p.
17646
17647 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17648
17649 * config/pa/pa.c (pa_emit_move_sequence): Always force
17650 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
17651 note on insn.
17652
17653 * config/pa/pa.c (pa_reloc_rw_mask): New function.
17654 (TARGET_ASM_RELOC_RW_MASK): Define.
17655 (pa_cannot_force_const_mem): Revert previous change.
17656
17657 2015-02-19 Martin Jambor <mjmabor@suse.cz>
17658 Jan Hubicka <hubicka@ucw.cz>
17659
17660 PR ipa/65028
17661 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17662 across jump functions.
17663
17664 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
17665
17666 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17667
17668 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
17669
17670 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17671
17672 2015-02-19 Richard Henderson <rth@redhat.com>
17673
17674 PR middle-end/65074
17675 * varasm.c (default_binds_local_p_2): Don't test node->definition;
17676 test DECL_EXTERNAL independent of symtab_node.
17677
17678 2015-02-19 Jakub Jelinek <jakub@redhat.com>
17679
17680 PR lto/65012
17681 * varpool.c (varpool_node::get_constructor): Return early
17682 if this->lto_file_data is NULL.
17683
17684 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17685
17686 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17687 (rank_for_schedule_debug): Update.
17688 (ready_sort): Make static. Move sorting logic to ...
17689 (ready_sort_debug, ready_sort_real): New static functions.
17690 (schedule_block): Sort both debug insns and real insns in preparation
17691 for ready list trimming. Improve debug output.
17692 * sched-int.h (ready_sort): Remove global declaration.
17693
17694 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
17695
17696 * ipa-icf.c (sem_function::equals_private): Adjust.
17697 (sem_function::bb_dict_test): Take a vec<int> * instead of
17698 auto_vec<int>.
17699 * ipa-icf.h (bb_dict_test): Likewise.
17700
17701 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17702
17703 PR gcov-profile/64634
17704 * tree-eh.c (frob_into_branch_around): Fix up typos
17705 in function comment.
17706 (lower_catch): Put eh_seq resulting from EH lowering of
17707 the cleanup sequence after the cleanup rather than before it.
17708
17709 2015-02-18 Tom de Vries <tom@codesourcery.com>
17710
17711 * common.opt (fstdarg-opt): New option.
17712 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17713 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17714 (@item -fstdarg-opt): New item.
17715
17716 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
17717
17718 PR target/65064
17719 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17720 for common symbols.
17721
17722 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17723
17724 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17725 insn-modes.h.
17726 (ALL_HOST_OBJS): Add mkoffload.o.
17727 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17728
17729 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
17730
17731 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17732 (compare_virtual_tables): Be smarter about skipping typeinfos;
17733 do sane output on virtual table table mismatch.
17734 (warn_odr): Be ready for forward declarations of enums;
17735 output sane info on base mismatch and virtual table mismatch.
17736 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17737 when only one type is polymorphic.
17738 (get_odr_type): Fix hashtable corruption.
17739 (dump_odr_type): Dump mangled names.
17740
17741 2015-02-18 Richard Biener <rguenther@suse.de>
17742
17743 PR tree-optimization/65063
17744 * tree-predcom.c (determine_unroll_factor): Return 1 if we
17745 have replaced looparound PHIs.
17746
17747 2015-02-18 Martin Liska <mliska@suse.cz>
17748
17749 * lto-streamer.c (lto_streamer_init): Encapsulate
17750 streamer_check_handled_ts_structures with checking macro.
17751
17752 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17753
17754 PR ipa/65087
17755 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17756 section if !implicit_section.
17757 (cgraph_node::create_version_clone_with_body): Likewise.
17758 * trans-mem.c (ipa_tm_create_version): Likewise.
17759
17760 2015-02-18 Richard Biener <rguenther@suse.de>
17761
17762 PR tree-optimization/62217
17763 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17764 into BIVs.
17765
17766 2015-02-18 Marek Polacek <polacek@redhat.com>
17767
17768 PR sanitizer/65081
17769 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17770 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17771 is in range [-16K, -1]. Don't issue run-time error if
17772 (ptr > ptr + offset).
17773
17774 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
17775
17776 * doc/install.texi (nvptx-*-none): New section.
17777 * doc/invoke.texi (Nvidia PTX Options): Likewise.
17778 * config/nvptx/nvptx.opt: Update.
17779
17780 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17781 (access_check): New functions, copied from
17782 config/i386/intelmic-mkoffload.c.
17783 (main): For non-installed testing, look in all COMPILER_PATHs for
17784 GCC_INSTALL_NAME.
17785
17786 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17787
17788 2015-02-18 Andrew Pinski <apinski@cavium.com>
17789 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17790
17791 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17792 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17793
17794 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17795
17796 * ipa-visibility.c (function_and_variable_visibility): Only
17797 check locality if node is not already local.
17798 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17799 call_for_symbol_and_aliases instead of
17800 call_for_symbol_thunks_and_aliases.
17801 (ipa_inline): Likewise.
17802 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17803 first walk aliases.
17804 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17805 call_for_symbol_and_aliases.
17806 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17807 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17808 (ipa_propagate_frequency): Update.
17809 (ipa_profile): Add opt_for_fn gueards.
17810
17811 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17812
17813 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17814 * doc/invoke.texi (SH options): Document it.
17815 * config/sh/sh.c (sh_insn_length_adjustment): Check
17816 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17817
17818 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
17819
17820 * common.opt (fipa-cp-alignment): New.
17821 * ipa-cp.c (ipcp_store_alignment_results): Check
17822 flag_ipa_cp_alignment.
17823 * opts.c (default_options_table): Enable -fipa-cp-alignment for
17824 -O2.
17825 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17826 * doc/invoke.texi: Document -fipa-cp-alignment.
17827
17828 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17829
17830 PR target/64793
17831 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17832 to nil. Adjust comments.
17833
17834 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17835
17836 * ipa-visibility.c (function_and_variable_visibility): Only
17837 check locality if node is not already local.
17838 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17839 call_for_symbol_and_aliases instead of
17840 call_for_symbol_thunks_and_aliases.
17841 (ipa_inline): Likewise.
17842 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17843 first walk aliases.
17844 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17845 call_for_symbol_and_aliases.
17846 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17847 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17848 (ipa_propagate_frequency): Update.
17849 (ipa_profile): Add opt_for_fn guards.
17850
17851 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
17852
17853 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17854 skipping of "strange" tokens.
17855
17856 2015-02-17 Jeff Law <law@redhat.com>
17857
17858 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
17859 obsolete comment.
17860
17861 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
17862
17863 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
17864 as forcing a HARD_DEP between instructions, thereby
17865 disallowing rewriting to break dependencies.
17866
17867 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
17868
17869 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
17870 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
17871 variables in boundary that have no inlitalizer encoded and are
17872 not aliases.
17873 * varasm.c (default_binds_local_p_2): External definitions do not
17874 count as definitions here.
17875
17876 2015-02-16 Jeff Law <law@redhat.com>
17877
17878 PR tree-optimization/64823
17879 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
17880 statements.
17881 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17882 threading through blocks with PHIs, but no statements.
17883 (thread_through_normal_block): Distinguish between blocks where
17884 we did not process all the statements and blocks with no statements.
17885
17886 2015-02-16 Jakub Jelinek <jakub@redhat.com>
17887 James Greenhalgh <james.greenhalgh@arm.com>
17888
17889 PR ipa/64963
17890 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
17891 section if not linkonce. Fix up formatting.
17892 (cgraph_node::create_version_clone_with_body): Copy section.
17893 * trans-mem.c (ipa_tm_create_version): Likewise.
17894
17895 2015-02-16 Richard Biener <rguenther@suse.de>
17896
17897 PR tree-optimization/65077
17898 * tree-ssa-structalias.c (get_constraint_for_1): Handle
17899 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
17900 (find_func_aliases): Allow float values to carry pointers again.
17901
17902 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17903
17904 * doc/install.texi (Specific): Reorder targets list to put
17905 aarch64 in alphabetical order. Add a link to aarch64*-*-*
17906 from the top menu.
17907
17908 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17909 David Edelsohn <dje.gcc@gmail.com>
17910
17911 PR target/65058
17912 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
17913 mapping class to external variable or function reference.
17914 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
17915 mapping class.
17916
17917 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
17918
17919 PR target/53348
17920 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
17921 ASM_WEAKEN_DECL if defined.
17922
17923 2015-02-16 Richard Biener <rguenther@suse.de>
17924
17925 PR lto/65015
17926 * varasm.c (default_file_start): For LTO produced units
17927 emit <artificial> as file directive.
17928
17929 2015-02-16 Richard Biener <rguenther@suse.de>
17930
17931 PR tree-optimization/63593
17932 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
17933 stmts and releasing SSA names until...
17934 (execute_pred_commoning): ... after processing all chains.
17935
17936 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
17937
17938 PR ipa/65059
17939 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
17940 external functions.
17941
17942 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
17943
17944 * doc/bugreport.texi: Adjust section titles throughout the file
17945 to use "Title Case".
17946 * doc/extend.texi: Likewise.
17947 * doc/gcov.texi: Likewise.
17948 * doc/implement-c.texi: Likewise.
17949 * doc/implement-cxx.texi: Likewise.
17950 * doc/invoke.texi: Likewise.
17951 * doc/objc.texi: Likewise.
17952 * doc/standards.texi: Likewise.
17953 * doc/trouble.texi: Likewise.
17954
17955 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
17956
17957 * cgraph.h (symtab_node::has_aliases_p): Simplify.
17958 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
17959 * tree.c (lookup_binfo_at_offset): Make static.
17960 (get_binfo_at_offset): Do not shadow offset; add explanatory
17961 comment.
17962
17963 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
17964
17965 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
17966 for all floading point loads and stores except those using a register
17967 index address.
17968 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
17969 to a register.
17970
17971 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
17972
17973 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
17974 (do_estimate_growth_1): Record if any uninlinable edge was seen.
17975 (estimate_growth): Handle uninlinable edges correctly.
17976 (check_callers): New.
17977 (growth_likely_positive): Handle aliases correctly.
17978
17979 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
17980
17981 * ipa-chkp.c: Use iterate_direct_aliases.
17982 * symtab.c (resolution_used_from_other_file_p): Move inline.
17983 (symtab_node::create_reference): Fix formating.
17984 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17985 (symtab_node::iterate_reference): Move inline.
17986 (symtab_node::iterate_referring): Move inline.
17987 (symtab_node::iterate_direct_aliases): Move inline.
17988 (symtab_node::used_from_object_file_p_worker): Inline into ...
17989 (symtab_node::used_from_object_file_p): ... this one; move inline.
17990 (symtab_node::call_for_symbol_and_aliases): Move inline;
17991 use iterate_direct_aliases.
17992 (symtab_node::call_for_symbol_and_aliases_1): New method.
17993 (cgraph_node::call_for_symbol_and_aliases): Move inline;
17994 use iterate_direct_aliases.
17995 (cgraph_node::call_for_symbol_and_aliases_1): New method.
17996 (varpool_node::call_for_node_and_aliases): Rename to ...
17997 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
17998 use iterate_direct_aliases.
17999 (varpool_node::call_for_symbol_and_aliases_1): New method.
18000 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18001 (ipa_discover_readonly_nonaddressable_var): Update.
18002 * ipa-devirt.c: Fix formating.
18003 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18004 Move inline.
18005 (cgraph_node::call_for_symbol_and_aliases): Move inline.
18006 (cgraph_node::call_for_symbol_and_aliases_1): New function..
18007 * cgraph.h (used_from_object_file_p_worker): Remove.
18008 (resolution_used_from_other_file_p): Move inline.
18009 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18010 (symtab_node::iterate_reference): Move inline.
18011 (symtab_node::iterate_referring): Move inline.
18012 (symtab_node::iterate_direct_aliases): Move inline.
18013 (symtab_node::used_from_object_file_p_worker): Inline into ...
18014 (symtab_node::used_from_object_file_p): Move inline.
18015 * tree-emutls.c (ipa_lower_emutls): Update.
18016 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18017 (varpool_node::call_for_node_and_aliases): Remove.
18018
18019 2015-02-14 Jakub Jelinek <jakub@redhat.com>
18020
18021 PR tree-optimization/62209
18022 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18023 op == range->exp, insert seq and gimplified code after labels
18024 instead of after the phi.
18025
18026 2015-02-13 Jeff Law <law@redhat.com>
18027
18028 PR bootstrap/65060
18029 Revert my change for tree-optimization/64823.
18030
18031 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18032
18033 PR tree-optimization/65053
18034 * tree-ssa-phiopt.c (value_replacement): When moving assign before
18035 cond, either reset VR on lhs or set it to phi result VR.
18036
18037 2015-02-13 Jeff Law <law@redhat.com>
18038
18039 PR tree-optimization/64823
18040 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18041 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18042 threading through blocks with PHIs, but no statements.
18043 (thread_through_normal_block): Distinguish between blocks where
18044 we did not process all the statements and blocks with no statements.
18045
18046 PR rtl-optimization/47477
18047 * match.pd (convert (plus/minus (convert @0) (convert @1): New
18048 simplifier to narrow arithmetic.
18049
18050 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
18051
18052 PR ipa/65028
18053 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18054 polymorphic call info when type is not known to be preserved.
18055
18056 2015-02-13 Maritn Jambor <mjambor@suse.cz>
18057
18058 PR ipa/65028
18059 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18060 (inline_call): Use it.
18061
18062 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
18063
18064 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18065 GOMP_DEVICE_NVIDIA_PTX.
18066
18067 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18068
18069 PR ipa/65034
18070 * stmt.c (emit_case_nodes): Use void_type_node instead of
18071 NULL_TREE as LABEL_DECL type.
18072
18073 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
18074
18075 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18076 constraints.
18077 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18078 symbolic references to data to be forced to constant memory on the
18079 SOM target.
18080
18081 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
18082
18083 PR tree-optimization/65002
18084 * tree-cfg.c (pass_data_fixup_cfg): Don't update
18085 SSA on start.
18086 * tree-sra.c (some_callers_have_no_vuse_p): New.
18087 (ipa_early_sra): Reject functions whose callers
18088 assume function is read only.
18089
18090 2015-02-13 Richard Biener <rguenther@suse.de>
18091
18092 PR lto/65015
18093 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18094 for LTO produced CUs.
18095
18096 2015-02-13 Bin Cheng <bin.cheng@arm.com>
18097
18098 PR tree-optimization/64705
18099 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18100 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18101 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18102 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18103 expand_simple_operations.
18104
18105 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
18106 Richard Henderson <rth@redhat.com>
18107
18108 PR rtl/32219
18109 * cgraphunit.c (cgraph_node::finalize_function): Set definition
18110 before notice_global_symbol.
18111 (varpool_node::finalize_decl): Likewise.
18112 * varasm.c (default_binds_local_p_2): Rename from
18113 default_binds_local_p_1, add weak_dominate argument. Use direct
18114 returns instead of assigning to local variable. Unify varpool and
18115 cgraph paths via symtab_node. Reject undef weak variables before
18116 testing visibility. Reorder tests for simplicity.
18117 (default_binds_local_p): Use default_binds_local_p_2.
18118 (default_binds_local_p_1): Likewise.
18119 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18120 via symtab_node.
18121 (default_elf_asm_output_external): Emit visibility when specified.
18122
18123 2015-02-13 Alan Modra <amodra@gmail.com>
18124
18125 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18126 code setting up r11 for out-of-line fp restore.
18127
18128 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
18129
18130 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18131 (muser-mode): Likewise.
18132
18133 2015-02-13 Alan Modra <amodra@gmail.com>
18134
18135 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18136 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18137
18138 2015-02-12 David Howells <dhowells@redhat.com>
18139
18140 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18141 warning.
18142 * tree-ssa-uninit.c (dump_predicates): Likewise.
18143 * opts.c (print_filtered_help): Likewise.
18144
18145 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18146
18147 * dwarf2out.c (output_die): Use "%s", name instead of name to
18148 avoid -Wformat-security warning.
18149
18150 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18151 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18152 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18153 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18154
18155 2015-02-12 Jason Merrill <jason@redhat.com>
18156
18157 * common.opt (-flifetime-dse): New.
18158
18159 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18160
18161 PR sanitizer/65019
18162 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18163
18164 PR tree-optimization/65014
18165 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18166 use original second operand of arg0 or arg1 instead of
18167 that adjusted by STRIP_NOPS.
18168
18169 2015-02-11 Jeff Law <law@redhat.com>
18170
18171 PR target/63347
18172 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18173 that needs to be queued, just queue it for a single cycle.
18174
18175 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18176
18177 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18178 bodies of thunks; comment on why.
18179 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18180 symbols are extern.
18181
18182 2015-02-11 Richard Henderson <rth@redhat.com>
18183
18184 PR sanitize/65000
18185 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18186 regions of __builtin_eh_copy_values.
18187
18188 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18189
18190 PR middle-end/65003
18191 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18192 ultimate alias is MEM with SYMBOL_REF satisfying
18193 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18194 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18195
18196 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18197
18198 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18199 "diagnostic-core.h".
18200 (main): Initialize progname, and call diagnostic_initialize.
18201
18202 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18203 instead of __OPENMP_TARGET__.
18204
18205 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18206 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18207 hard-coding PTX_ID.
18208
18209 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18210
18211 * doc/sourcebuild.texi (pie_enabled): Document.
18212
18213 2015-02-11 Martin Liska <mliska@suse.cz>
18214
18215 PR ipa/64813
18216 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18217 a return value for call to a function that is noreturn.
18218
18219 2015-02-11 Richard Biener <rguenther@suse.de>
18220
18221 PR lto/65015
18222 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18223 and -fresolution.
18224
18225 2015-02-11 Andrew Pinski <apinski@cavium.com>
18226
18227 PR target/64893
18228 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18229 Change the first argument type to size_type_node and add another
18230 size_type_node.
18231 (aarch64_simd_expand_builtin): Handle the new argument to
18232 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18233 print an out when the first two arguments are not
18234 nonzero integer constants.
18235 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18236 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18237
18238 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18239
18240 PR target/61925
18241 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18242 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18243 (ix86_set_current_function): Rewritten.
18244 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18245 when creating builtin fndecls.
18246
18247 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18248
18249 PR ipa/65005
18250 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18251 function.
18252 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18253 have no comdat group.
18254 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18255 (lto_output_varpool_node): Always output alias info.
18256 (output_refs): Output refs of boundary aliases, too.
18257 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18258 (output_symtab): Output call eges in thunks in boundary.
18259 (get_alias_symbol): Remove.
18260 (input_node, input_varpool_node): Do not special case weakrefs.
18261 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18262 alias and thunks targets in the boundary; do not take removed symbols
18263 from their comdat groups.
18264 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18265 (cgraph_node::global_info): Remove.
18266 (cgraph_node::rtl_info): Look through aliases and thunks.
18267 * cgrpah.h (global_info): Remove.
18268 (non_local_p): Remove.
18269
18270 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18271 Sandra Loosemore <sandra@codesourcery.com>
18272
18273 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18274 to inline asm. List dialects in proper order.
18275
18276 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18277 Sandra Loosemore <sandra@codesourcery.com>
18278
18279 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18280
18281 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18282
18283 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18284 modified) reference to Solaris.
18285
18286 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18287
18288 * doc/extend.texi (Extended Asm): Fix typos.
18289
18290 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18291
18292 PR sanitizer/65004
18293 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18294
18295 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18296
18297 PR target/64661
18298 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18299 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18300 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18301 * config/sh/constraints.md (Ara, Add): New constraints.
18302 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18303 predicates.
18304 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18305 atomic_mem_operand_0. Don't use force_reg on the memory address.
18306 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18307 Sra constraint. Convert to insn_and_split. Add workaround for
18308 PR 64974.
18309 (atomic_compare_and_swap<mode>_hard): Copy to
18310 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18311 Use atomic_mem_operand_0 predicate.
18312 (atomic_compare_and_swap<mode>_soft_gusa,
18313 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18314 AraAdd constraints.
18315 (atomic_compare_and_swap<mode>_soft_tcb,
18316 atomic_compare_and_swap<mode>_soft_imask,
18317 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18318 atomic_mem_operand_0 predicate and SraSdd constraints.
18319 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18320 constraint.
18321 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18322 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18323 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18324 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18325 force_reg on the memory address.
18326 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18327 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18328 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18329 atomic_mem_operand_1 predicate and Sra constraint.
18330 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18331 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18332 Use atomic_mem_operand_1 predicate.
18333 (atomic_<fetchop_name><mode>_hard): Copy to
18334 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18335 Use atomic_mem_operand_1 predicate.
18336 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18337 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18338 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18339 insn_and_split. Use atomic_mem_operand_1 predicate.
18340 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18341 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18342 Use atomic_mem_operand_1 predicate.
18343 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18344 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18345 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18346 in generated insn with original mem operand before emitting the insn.
18347 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18348 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18349 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18350 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18351 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18352 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18353 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18354 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18355 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18356 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18357 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18358 atomic_not_fetch<mode>_soft_tcb,
18359 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18360 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18361 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18362 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18363
18364 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18365
18366 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18367 and 3 earlyclobber operands.
18368
18369 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18370
18371 * common.opt (fstack-reuse): Mark as optimization.
18372
18373 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18374
18375 PR ipa/64982
18376 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18377
18378 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18379
18380 PR tree-optimization/64326
18381 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18382
18383 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18384
18385 PR gcov-profile/61889
18386 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18387
18388 2015-02-10 Richard Biener <rguenther@suse.de>
18389
18390 PR tree-optimization/64995
18391 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18392 value we use is final.
18393 (visit_reference_op_store): Always valueize op.
18394 (visit_use): Properly valueize vuses.
18395
18396 2015-02-10 Richard Biener <rguenther@suse.de>
18397
18398 PR tree-optimization/64909
18399 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18400 pass a scalar-stmt count estimate to the cost model.
18401 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18402
18403 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18404
18405 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18406 enabled by default together with var-tracking.
18407
18408 2015-02-10 Nick Clifton <nickc@redhat.com>
18409
18410 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18411 included in previous rl78 commit.
18412
18413 2015-02-10 Richard Biener <rguenther@suse.de>
18414
18415 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18416 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18417 return the bitpack.
18418
18419 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18420
18421 PR gcov-profile/61889
18422 * config.in: regenerate.
18423 * configure.in: Likewise.
18424 * configure.ac: Check for ftw.h.
18425 * gcov-tool.c: Check for ftw.h before using nftw.
18426
18427 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18428
18429 PR lto/64076
18430 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18431 assert when not in lto mode.
18432
18433 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18434
18435 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18436 initialization/assignment of conflict_size.
18437
18438 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18439
18440 PR ipa/64978
18441 * ipa-cp.c (gather_caller_stats): Skip thunks.
18442 (propagate_constants_topo): Skip aliases.
18443
18444 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18445
18446 PR target/64761
18447 * config/sh/sh.c (sh_option_override): Don't change
18448 -freorder-blocks-and-partition to -freorder-blocks even when
18449 unwinding is enabled.
18450 (sh_can_follow_jump): Return false if the followee jump is
18451 a crossing jump when -freorder-blocks-and-partition is specified.
18452 * config/sh/sh.md (*jump_compact_crossing): New insn.
18453
18454 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18455 Kaz Kojima <kkojima@gcc.gnu.org>
18456
18457 PR target/64761
18458 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18459 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18460 (sh_can_redirect_branch): Rename to ...
18461 (sh_can_follow_jump): ... this. Constify argument types.
18462 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18463 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18464 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18465 * doc/tm.texi: Regenerate.
18466
18467 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18468
18469 PR sanitizer/64981
18470 * builtins.c (expand_builtin): Call targetm.expand_builtin
18471 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18472
18473 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18474
18475 PR ipa/61548
18476 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18477
18478 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18479
18480 PR ipa/63566
18481 * ipa-icf.c (set_local): New function.
18482 (sem_function::merge): Use it.
18483
18484 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18485
18486 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18487 (add_type_duplicate): Fix comparison of BINFOs.
18488
18489 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18490
18491 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18492 on getting VOID pointer.
18493
18494 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18495
18496 PR target/64979
18497 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18498 va_list escapes.
18499
18500 2015-02-09 Richard Biener <rguenther@suse.de>
18501
18502 * genmatch.c (replace_id): Copy expr_type.
18503
18504 2015-02-09 Richard Biener <rguenther@suse.de>
18505
18506 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18507 (streamer_write_tree_bitfields): Declare.
18508 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18509 properly unpack padding.
18510 (unpack_value_fields): Inline ...
18511 (streamer_read_tree_bitfields): ... here.
18512 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18513 and properly add padding bits.
18514 (streamer_pack_tree_bitfields): Fold into ...
18515 (streamer_write_tree_bitfields): ... this new function,
18516 exposing the bitpack object.
18517 * lto-streamer-out.c (lto_write_tree_1): Call
18518 streamer_write_tree_bitfields.
18519
18520 2015-02-09 Richard Biener <rguenther@suse.de>
18521
18522 PR tree-optimization/54000
18523 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18524 (struct ivopts_data): Add loop_loc member.
18525 (tree_ssa_iv_optimize_loop): Dump loop location.
18526 (create_new_ivs): Likewise, also dump number of IVs generated.
18527
18528 2015-02-09 Martin Liska <mliska@suse.cz>
18529
18530 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18531 just if not yet registered.
18532 (ipa_icf_generate_summary): Register callgraph hooks.
18533
18534 2015-02-08 Andrew Pinski <apinski@cavium.com>
18535
18536 * config/aarch64/aarch64.c (gty_dummy): Delete.
18537
18538 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18539
18540 PR ipa/63566
18541 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18542 (cgraph_node::local_p): Remove thunk related FIXME.
18543
18544 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18545
18546 PR ipa/63566
18547 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18548 is local and optimized.
18549 (ix86_function_sseregparm): Likewise; also use target's SSE math
18550 settings; error out instead of silently generating wrong code
18551 on mismatches.
18552 (init_cumulative_args): Look through aliases.
18553
18554 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18555
18556 PR ipa/63566
18557 * ipa-split.c (execute_split_functions): Split if function has aliases.
18558
18559 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18560
18561 PR ipa/63566
18562 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18563 aliases before trying to expand it.
18564 (cgraph_node::expand_thunk): Fix formating.
18565
18566 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18567
18568 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18569 (Using Assembly Language with C): Expand introduction.
18570 (Basic Asm): Copy-edit. Add more information about uses of
18571 basic asm.
18572 (Extended Asm): Copy-edit. Document new escape syntax and
18573 %l[label] syntax.
18574 (Global Reg Vars): Copy-edit.
18575 (Local Reg Vars): Likewise.
18576
18577 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18578
18579 PR debug/2714
18580 PR bootstrap/64256
18581 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18582 (DBX_CONTIN_CHAR): Define.
18583
18584 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18585 Brian Rzycki <b.rzycki@samsung.com>
18586
18587 PR tree-optimization/64878
18588 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18589 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18590 Stop recursion at loop phi nodes after having visited a loop phi node.
18591
18592 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18593
18594 * toplev.c (process_options): Change flag_ipa_ra before creating
18595 optimization_{default,current}_node.
18596
18597 PR ipa/64896
18598 * cgraphunit.c (cgraph_node::expand_thunk): If
18599 restype is not is_gimple_reg_type nor the thunk_fndecl
18600 returns aggregate_value_p, set restmp to a temporary variable
18601 instead of resdecl.
18602
18603 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18604
18605 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18606
18607 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18608
18609 PR target/64205
18610 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18611 add a general secondary reload handler for SDmode, unless we have
18612 both read/write support for SDmode.
18613
18614 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18615
18616 PR middle-end/64937
18617 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18618 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18619 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18620 1 before, push it to abstract_vec.
18621 (dwarf2out_abstract_function): Adjust caller. Don't call
18622 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18623 DECL_ABSTRACT_P flags for all abstract_vec elts.
18624
18625 2015-02-06 Renlin Li <renlin.li@arm.com>
18626
18627 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18628 complex gimple.
18629 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18630
18631 2015-02-06 Jeff Law <law@redhat.com>
18632
18633 PR target/64889
18634 * config/h8300/h8300.c (push): New argument "in_prologue".
18635 Pass "in_prologue" along to "F".
18636 (h8300_push_pop): Corresponding changes.
18637 (h8300_expand_prologue): Likewise.
18638 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18639
18640 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18641
18642 PR rtl-optimization/64957
18643 PR debug/64817
18644 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18645 IOR rather than for AND.
18646
18647 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18648
18649 PR target/62631
18650 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18651 of shift-add and (add + shift) operations. Rename local variable.
18652
18653 2015-02-05 Jeff Law <law@redhat.com>
18654
18655 PR target/17306
18656 * config/h8300/constraints.md (U): Correctly dectect
18657 "eightbit_data" memory addresses.
18658 * config/h8300/h8300.c (eightbit_constant_address_p): Also
18659 handle (const (plus (symbol_ref (x)))) where x is declared
18660 as an 8-bit data memory address.
18661 * config/h8300/h8300.md (call, call_value): Correctly detect
18662 "funcvec" functions.
18663
18664 PR target/43264
18665 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18666 24 to 28 bits for the H8/300.
18667
18668 2015-02-06 Alan Modra <amodra@gmail.com>
18669
18670 PR target/64876
18671 * config/rs6000/rs6000.c (chain_already_loaded): New function.
18672 (rs6000_call_aix): Use it.
18673
18674 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
18675
18676 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18677 check.
18678
18679 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
18680
18681 * config/h8300/constraints.md ("U" constraint): Use strict
18682 variant of REG_OK_FOR_BASE_P after reload has started.
18683
18684 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
18685
18686 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18687 define to zero if !TARGET_NEON.
18688 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18689
18690 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18691 Trevor Saunders <tsaunders@mozilla.com>
18692
18693 PR ipa/61548
18694 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18695
18696 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18697
18698 PR ipa/61548
18699 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18700 when removing varpool nodes.
18701
18702 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18703
18704 PR ipa/61548
18705 * varpool.c (varpool_node::remove): Fix order of variables.
18706
18707 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18708
18709 PR ipa/64686
18710 * ipa-inline.c (inline_small_functions): Fix ordering issue between
18711 speculation resolution and key updates.
18712
18713 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18714
18715 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18716 about not letting any speculative edges unupdated.
18717
18718 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18719
18720 PR gcov/64123
18721 * gcov-io.c (gcov_var): Export.
18722
18723 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18724
18725 PR middle-end/64922
18726 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18727 edges that become speculative.
18728
18729 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18730
18731 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18732 or DW_LANG_Fortran08.
18733 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18734 DW_LANG_Fortran08.
18735 (gen_compile_unit_die): Handle "GNU Fortran2003" and
18736 "GNU Fortran2008" language strings.
18737 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18738 * langhooks.h (lang_GNU_Fortran): New prototype.
18739 * langhooks.c (lang_GNU_Fortran): New function.
18740 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18741 lang_GNU_Fortran.
18742
18743 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18744
18745 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18746 (RTX_OK_FOR_OLO10_P): Likewise.
18747
18748 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18749
18750 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18751
18752 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18753
18754 PR middle-end/64922
18755 * gimple.c: Include gimple-ssa.h.
18756 (maybe_remove_unused_call_args): New function.
18757 * gimple.h (maybe_remove_unused_call_args): Declare.
18758 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18759 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18760 * gimple-fold.c (gimple_fold_call): Likewise.
18761
18762 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
18763
18764 PR rtl-optimization/64905
18765 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18766 pointer alignment if it isn't needed.
18767
18768 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18769
18770 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18771 cortex-a72.cortex-a53.
18772 * config/aarch64/aarch64-tune.md: Regenerate.
18773 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18774
18775 2015-02-04 Nick Clifton <nickc@redhat.com>
18776
18777 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18778 inside a MEM.
18779
18780 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18781
18782 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18783 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18784 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18785 of DEF_BUILTIN.
18786 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18787 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18788 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18789 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18790 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18791 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18792 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18793 * tree-core.h (enum built_in_function): In between
18794 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18795 for builtins that use DEF_BUILTIN_CHKP macro.
18796
18797 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
18798
18799 PR debug/64817
18800 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18801 operands for tcc_comparison exprs. Fix typos.
18802
18803 PR debug/64817
18804 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18805 of two XORs that have an intervening AND or IOR.
18806
18807 PR debug/64817
18808 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18809 simplification of XOR of AND to not allocate new rtx before
18810 committing to a simplification.
18811
18812 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18813
18814 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18815 manual swaps in all peepholes.
18816
18817 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18818
18819 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18820 of manual swapping implementation.
18821 (aarch64_expand_vec_perm_const_1): Likewise.
18822
18823 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
18824
18825 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18826 (generic_addrcost_table): Remove NAMED_PARAM.
18827 (cortexa57_addrcost_table): Likewise.
18828 (xgene1_addrcost_table): Likewise.
18829 (generic_regmove_table): Likewise.
18830 (cortexa53_regmove_table): Likewise.
18831 (xgene1_regmove_table): Likewise.
18832 (generic_vector_table): Likewise.
18833 (cortexa57_vector_table): Likewise.
18834 (xgene1_vector_table): Likewise.
18835 (generic_tunings): Likewise.
18836 (cortexa53_tunings): Likewise.
18837 (cortexa57_tunings): Likewise.
18838 (xgene1_tunings): Likewise.
18839
18840 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18841
18842 * config/arm/arm-cores.def: Add cortex-a72 and
18843 cortex-a72.cortex-a53.
18844 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18845 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18846 * config/arm/arm-tune.md: Regenerate.
18847 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18848 "cortex-a72.cortex-a53".
18849 * doc/invoke.texi (ARM Options/-mtune): Likewise.
18850
18851 2015-02-04 Nick Clifton <nickc@redhat.com>
18852
18853 PR target/64408
18854 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18855 of accepted codes.
18856 (nonimmediate_di_operand): Likewise.
18857
18858 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
18859 prefixes of known F5 using MSP430 MCUs.
18860
18861 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18862
18863 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
18864 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
18865 instead of __builtin_sqrt.
18866
18867 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
18868
18869 * varasm.c (do_assemble_alias): Follow transparent alias
18870 chain for target.
18871 (default_assemble_visibility): Follow transparent alias
18872 chain for decl name.
18873
18874 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18875
18876 PR middle-end/62103
18877 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
18878 to compute size of referenced value in the constant case.
18879
18880 2015-02-03 Jakub Jelinek <jakub@redhat.com>
18881
18882 PR rtl-optimization/64756
18883 * cse.c (invalidate_dest): New function.
18884 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
18885 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
18886 invalidate and do not record it.
18887
18888 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
18889
18890 PR target/64660
18891 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
18892 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
18893 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
18894 atomic_nand<mode>_soft_tcb): New insns.
18895 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
18896 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
18897 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
18898 Split into atomic_not_fetchsi_hard if operands[0] is unused.
18899 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
18900 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18901 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
18902 atomic_not<mode>_hard if operands[0] is unused.
18903 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
18904 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
18905 if operands[0] is unused.
18906 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
18907 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
18908 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
18909 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18910 unused.
18911 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
18912 into atomic_not<mode>_soft_tcb if operands[0] is unused.
18913 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
18914 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
18915 if operands[0] is unused.
18916 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
18917 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
18918 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
18919 atomic_nand_fetchsi_hard if operands[0] is unused.
18920 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
18921 atomic_nand<mode>_hard if operands[0] is unused.
18922 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
18923 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
18924 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
18925 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18926 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
18927 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
18928 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
18929 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18930 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
18931 atomic_not<mode>_hard if operands[0] is unused.
18932 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
18933 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18934 unused.
18935 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
18936 into atomic_not<mode>_soft_tcb if operands[0] is unused.
18937 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
18938 atomic_nand<mode>_hard if operands[0] is unused.
18939 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
18940 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18941
18942 2015-02-03 David Malcolm <dmalcolm@redhat.com>
18943
18944 PR jit/64810
18945 * Makefile.in (GCC_OBJS): Add gcc-main.o.
18946 * gcc-main.c: New file, containing "main" taken from gcc.c.
18947 * gcc.c (do_self_spec): Free decoded_options.
18948 (class driver): Move declaration to gcc.h.
18949 (main): Move declaration and implementation to new file
18950 gcc-main.c.
18951 (driver_get_configure_time_options): New function.
18952 * gcc.h (class driver): Move this declaration here, from
18953 gcc.c.
18954 (driver_get_configure_time_options): New declaration.
18955
18956 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
18957
18958 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
18959 cross-module inlining.
18960 * cgraph.h (cgraph_node): Add flag merged.
18961 * ipa-icf.c (sem_function::merge): Maintain it.
18962
18963 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
18964
18965 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
18966 instead of OBJECT_P.
18967
18968 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
18969
18970 PR target/62631
18971 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
18972 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
18973 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
18974 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
18975
18976 2015-02-03 Jakub Jelinek <jakub@redhat.com>
18977
18978 PR other/63504
18979 * combine.c (reg_n_sets_max): New variable.
18980 (can_change_dest_mode, reg_nonzero_bits_for_combine,
18981 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
18982 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
18983 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
18984 (rest_of_handle_combine): Initialize reg_n_sets_max.
18985
18986 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
18987
18988 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
18989 if some always_inline was inlined, apply changes before inlining
18990 heuristically.
18991
18992 2015-02-02 David Malcolm <dmalcolm@redhat.com>
18993
18994 PR jit/64810
18995 * config/arm/arm.c (arm_option_override): Set
18996 arm_selected_arch/cpu/tune to NULL on entry.
18997
18998 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
18999 Andrew Pinski <pinskia@gcc.gnu.org>
19000 Jakub Jelinek <jakub@gcc.gnu.org>
19001
19002 PR target/64231
19003 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19004 integer typing for small model. Use IN_RANGE.
19005
19006 2015-02-02 Richard Biener <rguenther@suse.de>
19007
19008 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19009 * tree-vrp.c (vrp_valueize_1): Likewise.
19010
19011 2015-02-02 Alan Modra <amodra@gmail.com>
19012
19013 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19014 than mem for toc_restore.
19015 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19016 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19017 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19018
19019 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
19020
19021 PR target/64047
19022 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19023 explicit default options.
19024
19025 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
19026
19027 PR ipa/64872
19028 * ipa-utils.c (ipa_merge_profiles): Add release argument.
19029 * ipa-icf.c (sem_function::merge): Do not release body when merging.
19030 * ipa-utils.h (ipa_merge_profiles): Update prototype.
19031
19032 2015-02-01 Jakub Jelinek <jakub@redhat.com>
19033
19034 PR debug/64817
19035 * cfgexpand.c (deep_ter_debug_map): New variable.
19036 (avoid_deep_ter_for_debug): New function.
19037 (expand_debug_expr): If TERed SSA_NAME is in
19038 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19039 instead of trying to expand SSA_NAME's def stmt.
19040 (expand_debug_locations): When expanding debug bind
19041 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19042 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19043 value.
19044 (pass_expand::execute): Call avoid_deep_ter_for_debug on
19045 all debug bind stmts. Delete deep_ter_debug_map after
19046 expand_debug_location if non-NULL and clear it.
19047
19048 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
19049
19050 PR target/64851
19051 * config/sh/sync.md (atomic_fetch_notsi_hard,
19052 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19053 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19054 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19055 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19056 atomic_not_fetch<mode>_soft_imask): New insns.
19057
19058 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19059
19060 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19061 (rank_for_schedule_debug): Split from ...
19062 (rank_for_schedule): ... this.
19063 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19064 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19065
19066 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19067
19068 * doc/md.texi (Machine Constraints): Alphabetize table by target.
19069 * doc/extend.texi (x86 Variable Attributes): Move section to
19070 correct alphabetization after renaming.
19071 (x86 Type Attributes): Likewise.
19072 (Target Builtins): Re-alphabetize menu.
19073 (x86 Built-in Functions): Move section to correct alphabetization
19074 after renaming.
19075 (x86 transactional memory intrinsics): Likewise.
19076 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19077 and x86 Windows Options in table and menu.
19078 (x86 Options): Move section to correct alphabetization after
19079 renaming.
19080 (x86 Windows Options): Likewise.
19081
19082 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19083
19084 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19085 preferred names of the architecture and its 32- and 64-bit
19086 variants.
19087 * doc/invoke.texi: Likewise.
19088 * doc/md.texi: Likewise.
19089
19090 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19091
19092 PR target/64882
19093 * config/i386/predicates.md (address_no_seg_operand): Reject
19094 non-CONST_INT_P operands in invalid mode.
19095
19096 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19097
19098 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19099 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
19100 * config/i386/predicates.md (address_no_seg_operand): Call
19101 address_operand with VOIDmode.
19102 (vsib_address_operand): Ditto.
19103 (address_mpx_no_base_operand): Ditto.
19104 (address_mpx_no_index_operand): Ditto.
19105
19106 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19107
19108 PR target/64688
19109 * lra-constraints.c (original_subreg_reg_mode): New.
19110 (simplify_operand_subreg): Try to simplify subreg of const. Use
19111 original_subreg_reg_mode for it.
19112 (swap_operands): Update original_subreg_reg_mode.
19113 (curr_insn_transform): Set up original_subreg_reg_mode.
19114
19115 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19116
19117 PR target/64617
19118 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19119 function.
19120 (process_alt_operands): Use it.
19121 (curr_insn_transform): Check the optional reload pseudo class is
19122 ok for the mode.
19123
19124 2015-01-30 Joseph Myers <joseph@codesourcery.com>
19125
19126 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19127 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19128 prototype.
19129 * toplev.h (init_asm_output): Update comment on use of
19130 UNKNOWN_LOCATION with fatal_error.
19131 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19132 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19133 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19134 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19135 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19136 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19137 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19138 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19139 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19140 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19141 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19142 fatal_error changed to pass input_location as first argument.
19143
19144 2015-01-30 Martin Liska <mliska@suse.cz>
19145
19146 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19147 in #pragma GCC diagnostic guards.
19148
19149 2015-01-30 Richard Biener <rguenther@suse.de>
19150
19151 PR tree-optimization/64829
19152 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19153 not add a widening conversion pattern but hand off extra
19154 widenings to callers.
19155 (vect_recog_widen_mult_pattern): Handle extra widening produced
19156 by vect_handle_widen_op_by_const.
19157 (vect_recog_widen_shift_pattern): Likewise.
19158 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19159 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19160 (vect_init_vector_1): Likewise.
19161 (vect_get_vec_def_for_operand): Likewise.
19162 (vect_finish_stmt_generation): Likewise.
19163 (vectorizable_load): Likewise.
19164 (vect_analyze_stmt): Likewise.
19165 (vect_is_simple_use): Likewise.
19166
19167 2015-01-29 Jeff Law <law@redhat.com>
19168
19169 * combine.c (try_combine): Fix typo in comment.
19170
19171 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19172
19173 PR target/64580
19174 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19175 (rs6000_stack_info): Add assert.
19176 (rs6000_output_savres_externs): New function, split off from...
19177 (rs6000_output_function_prologue): ... here. Do not call it for
19178 thunks.
19179
19180 2015-01-29 Jeff Law <law@redhat.com>
19181
19182 PR target/15184
19183 * combine.c (try_combine): If I0 is a memory load and I3 a store
19184 to a related address, increase the "goodness" of doing a 4-insn
19185 combination with I0-I3.
19186 (make_field_assignment): Handle SUBREGs in the ior+and case.
19187
19188 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19189
19190 PR tree-optimization/64746
19191 * tree-if-conv.c (mask_exists): New function.
19192 (predicate_mem_writes): Save created mask with given size for further
19193 use.
19194 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19195 (ifcvt_repair_bool_pattern): Collect all statements that are root
19196 of bool pattern and use iterative algorithm to remove multiple uses
19197 of predicates, display number of required iterations.
19198
19199 2015-01-29 Richard Biener <rguenther@suse.de>
19200
19201 PR tree-optimization/64853
19202 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19203 stmt will get simulated again.
19204 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19205
19206 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19207
19208 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19209 return_in_pc. Remove redundant assignments.
19210 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19211 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19212
19213 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19214
19215 * config/i386/i386.c (ix86_mode_after): Make static.
19216
19217 2015-01-29 Richard Biener <rguenther@suse.de>
19218
19219 PR tree-optimization/64844
19220 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19221 dump cost model analysis.
19222 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19223 Do not register adjusted load/store costs here.
19224
19225 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19226 Uros Bizjak <ubizjak@gmail.com>
19227
19228 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19229 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19230 using x86_use_pseudo_pic_reg.
19231 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19232 support for fixed PIC register.
19233 (ix86_use_pseudo_pic_reg): Not static any more.
19234
19235 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19236
19237 PR middle-end/64805
19238 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19239 to avoid error in cgraph node verification.
19240
19241 2015-01-29 Marek Polacek <polacek@redhat.com>
19242
19243 * doc/standards.texi: Reflect that the default for C is gnu11.
19244
19245 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19246
19247 PR target/64761
19248 * reorg.c (switch_text_sections_between_p): New function.
19249 (relax_delay_slots): Call it when testing if the jump insn
19250 is removable. Use targetm.can_follow_jump when testing if
19251 the conditional branch can follow an unconditional jump.
19252
19253 2015-01-27 Caroline Tice <cmtice@google.com>
19254
19255 Committing VTV Cywin/Ming patch for Patrick Wollgast
19256 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19257 if -fvtable-verify=preinit/std is used.
19258 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19259 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19260 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19261 if -fvtable-verify=preinit/std is used.
19262 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19263 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19264 if -fvtable-verify=preinit/std is used.
19265 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19266 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19267 * varasm.c (assemble_variable): Add code to properly set the comdat
19268 section and name for the .vtable_map_vars section in case the
19269 target is PE or COFF.
19270
19271 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19272
19273 PR ipa/64801
19274 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19275 make sane BB profile.
19276 (cgraph_node::expand_thunk): Make sane BB profile.
19277 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19278 * cgraph.h (init_lowered_empty_function): Update prototype.
19279 * config/i386/i386.c (make_resolver_func): Update call.
19280 * predict.c (gate): Disable branch prediction pass if
19281 profile is already there.
19282
19283 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19284
19285 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19286 * opth-gen.awk: Likewise.
19287 * common.opt: Mark flag_fp_contract_mode as Optimization.
19288
19289 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19290
19291 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19292 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19293
19294 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19295
19296 PR target/64659
19297 * config/sh/predicates.md (atomic_arith_operand,
19298 atomic_logical_operand): Remove.
19299 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19300 (atomic_arith_operand_0): New predicate.
19301 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19302 Use atomic_arith_operand_0 for input values.
19303 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19304 atomic_compare_and_swap<mode>_soft_gusa,
19305 atomic_compare_and_swap<mode>_soft_tcb,
19306 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19307 arith_reg_operand instead of register_operand.
19308 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19309 atomic_arith_operand_0 for newval input.
19310 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19311 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19312 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19313 arith_reg_operand instead of register_operand.
19314 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19315 fetchop_predicate_1, fetchop_constraint_1_llcs,
19316 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19317 fetchop_constraint_1_imask): New code iterator attributes.
19318 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19319 register_operand. Use fetchop_predicate_1.
19320 (atomic_fetch_<fetchop_name>si_hard,
19321 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19322 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19323 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19324 and arith_reg_operand instead of register_operand. Use
19325 fetchop_predicate_1, fetchop_constraint_1_gusa.
19326 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19327 and arith_reg_operand instead of register_operand. Use
19328 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19329 to allow R0 usage.
19330 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19331 and arith_reg_operand instead of register_operand. Use
19332 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19333 to allow R0 usage.
19334 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19335 register_operand. Use atomic_logical_operand_1.
19336 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19337 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19338 arith_reg_operand instead of register_operand.
19339 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19340 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19341 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19342 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19343 register_operand. Use fetchop_predicate_1.
19344 (atomic_<fetchop_name>_fetchsi_hard,
19345 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19346 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19347 fetchop_constraint_1_llcs.
19348 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19349 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19350 fetchop_constraint_1_gusa.
19351 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19352 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19353 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19354 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19355 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19356 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19357 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19358 register_operand. Use atomic_logical_operand_1.
19359 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19360 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19361 arith_reg_operand instead of register_operand.
19362 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19363 arith_reg_operand instead of register_operand. Use logical_operand
19364 and K08. Adjust asm sequence to allow R0 usage.
19365 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19366 arith_reg_operand instead of register_operand. Use logical_operand
19367 and K08.
19368
19369 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19370
19371 PR other/63504
19372 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19373 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19374 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19375 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19376 all bits in *val_wide.
19377
19378 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19379
19380 * varpool.c (tls_model_names): Fix names.
19381 (varpool_node::dump): Dump tls- prefix for tls models.
19382
19383 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19384 Bernd Schmidt <bernds@codesourcery.com>
19385 Nathan Sidwell <nathan@codesourcery.com>
19386
19387 * config/nvptx/mkoffload.c: New file.
19388 * config/nvptx/t-nvptx: Add build rules for it.
19389 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19390 (extra_programs): Add mkoffload.
19391 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19392 function.
19393 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19394
19395 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19396
19397 PR middle-end/64809
19398 * cfgexpand.c (reorder_operands): Skip debug gimples.
19399
19400 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19401
19402 PR tree-optimization/64277
19403 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19404 range info when possible to refine estimation.
19405
19406 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19407
19408 PR tree-optimization/64718
19409 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19410 be a 16bit unsigned integer when n->range is 16.
19411 (bswap_replace): Convert src to that type if necessary for all bswap
19412 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19413 set in pass_optimize_bswap::execute ().
19414
19415 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19416
19417 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19418 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19419 integer and floating point variants.
19420 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19421
19422 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19423
19424 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19425 for all vector modes.
19426
19427 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19428
19429 PR bootstrap/64612
19430 * doc/sourcebuild.texi (comdat_group): Document.
19431
19432 2015-01-28 Terry Guo <terry.guo@arm.com>
19433
19434 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19435
19436 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19437
19438 * toplev.c (print_version): Add param "show_global_state", and
19439 only print GGC and plugin information if it is true.
19440 (init_asm_output): Pass in "true" for the new param when calling
19441 print_version.
19442 (process_options): Likewise.
19443 (toplev::main): Likewise.
19444 * toplev.h (print_version): Add new param to decl.
19445
19446 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19447
19448 PR ipa/60871
19449 PR ipa/64139
19450 * tree.c (lookup_binfo_at_offset): New function.
19451 (get_binfo_at_offset): Use it.
19452
19453 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19454
19455 PR ipa/64282
19456 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19457 on vtable being vtable.
19458
19459 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19460
19461 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19462 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19463 -mhotpatch= option.
19464 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19465 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19466 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19467 Renamed.
19468 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19469 (s390_hotpatch_hw_max): New name.
19470 (s390_hotpatch_trampoline_halfwords): Renamed.
19471 (s390_hotpatch_hw_before_label): New name.
19472 (get_hotpatch_attribute): Removed.
19473 (s390_hotpatch_hw_after_label): New name.
19474 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19475 attribute.
19476 (s390_attribute_table): Ditto.
19477 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19478 (s390_function_num_hotpatch_hw): New name.
19479 Remove special handling of inline functions and hotpatching.
19480 Return number of nops before and after the function label.
19481 (s390_can_inline_p): Removed.
19482 (s390_asm_output_function_label): Emit a configurable number of nops
19483 after the function label.
19484 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19485 (TARGET_CAN_INLINE_P) Removed.
19486 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19487
19488 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19489 Jiong Wang <jiong.wang@arm.com>
19490
19491 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19492 of scratch reg.
19493 (cb<optab><mode>1): Likewise.
19494 * config/aarch64/iterators.md (bcond): New define_code_attr.
19495
19496 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19497
19498 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19499 memory accesses.
19500
19501 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19502
19503 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19504 FPR->GPR moves.
19505
19506 2015-01-27 Richard Biener <rguenther@suse.de>
19507
19508 * tree-vrp.c (update_value_range): Intersect the range with
19509 old recorded SSA name range information.
19510
19511 2015-01-27 Nick Clifton <nickc@redhat.com>
19512
19513 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19514 BC, DE and HL registers directly, not via AX.
19515 When decrementing the stack pointer by a large amount, transfer SP
19516 into AX and perform the subtraction there.
19517 (rl78_expand_epilogue): Perform the inverse of the above
19518 enhancements.
19519
19520 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19521
19522 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19523
19524 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19525 Yury Gribov <y.gribov@samsung.com>
19526
19527 PR ubsan/64741
19528 * ubsan.c (ubsan_source_location): Refactor code.
19529 (ubsan_type_descriptor): Update type size. Refactor code.
19530
19531 2015-01-27 Richard Biener <rguenther@suse.de>
19532
19533 PR tree-optimization/56273
19534 PR tree-optimization/59124
19535 PR tree-optimization/64277
19536 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19537 from the first VRP pass.
19538
19539 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19540
19541 PR ipa/64776
19542 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19543 handle the first argument in the same loop as all the other arguments.
19544
19545 PR rtl-optimization/61058
19546 * jump.c (cleanup_barriers): Update basic block boundaries
19547 if BLOCK_FOR_INSN is non-NULL on PREV.
19548
19549 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19550
19551 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19552 bounds narrowing, already instrumented calls and calls to
19553 not instrumentable functions.
19554
19555 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19556
19557 PR tree-optimization/64807
19558 * wide-int.cc (wi::divmod_internal): Clear
19559 b_dividend[dividend_blocks_needed].
19560
19561 2015-01-26 DJ Delorie <dj@redhat.com>
19562
19563 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19564 volatile memory references.
19565
19566 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19567
19568 PR target/49263
19569 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19570 remove_insn.
19571 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19572 shifts if it already fits into K08.
19573
19574 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19575
19576 PR ipa/64730
19577 * ipa-inline.c (inline_small_functions): Print "unknown" even
19578 if edge->call_stmt is non-NULL, but has builtins or unknown
19579 location.
19580
19581 PR middle-end/64421
19582 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19583 with asterisk, skip the first character.
19584
19585 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19586
19587 PR target/64806
19588 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19589 order change.
19590
19591 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19592
19593 PR target/64795
19594 * config/i386/i386.md (*movdi_internal): Also check operand 0
19595 to determine TYPE_LEA operand.
19596 (*movsi_internal): Ditto.
19597
19598 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19599
19600 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19601 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19602
19603 2015-01-26 Renlin Li <renlin.li@arm.com>
19604
19605 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19606 the comment.
19607 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19608 for higher part.
19609
19610 2015-01-26 Richard Biener <rguenther@suse.de>
19611
19612 PR middle-end/64764
19613 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19614 combining two BIT_AND_EXPR predicates.
19615
19616 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19617
19618 PR bootstrap/64754
19619 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19620
19621 2015-01-26 Terry Guo <terry.guo@arm.com>
19622
19623 * config/arm/arm.c (arm_file_start): Update the assignment of
19624 Tag_ABI_HardFP_use.
19625
19626 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19627
19628 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19629 pipeline model.
19630 config/arm/arm.md: Include the new Cortex-A57 model.
19631 (generic_sched): Don't use generic_sched when tuning for
19632 Cortex-A57.
19633
19634 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19635 Uros Bizjak <ubizjak@gmail.com>
19636
19637 * config/i386/i386.c (get_builtin_code_for_version): Add
19638 support for BMI and BMI2 multiversion functions.
19639
19640 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19641
19642 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19643 (extract_bit_field): Likewise.
19644 (extract_low_bits): Likewise.
19645 (expand_mult): Likewise.
19646 (expand_mult_highpart_adjust): Likewise.
19647
19648 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19649
19650 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19651 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19652 * config/i386/i386.c (processor_model): Add
19653 M_INTEL_COREI7_BROADWELL.
19654 (arch_names_table): Add "broadwell".
19655
19656 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
19657
19658 PR target/49263
19659 PR target/53987
19660 PR target/64345
19661 PR target/59533
19662 PR target/52933
19663 PR target/54236
19664 PR target/51244
19665 * config/sh/sh-protos.h
19666 (sh_extending_set_of_reg::can_use_as_unextended_reg,
19667 sh_extending_set_of_reg::use_as_unextended_reg,
19668 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19669 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19670 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19671 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19672 (sh_treg_insns): New class.
19673 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19674 (scope_counter): New class.
19675 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19676 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19677 sh_extending_set_of_reg::can_use_as_unextended_reg,
19678 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19679 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19680 sh_split_treg_set_expr): New functions.
19681 (addsubcosts): Handle treg_set_expr.
19682 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19683 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19684 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19685 (sh_insn_operands_modified_between_p): Make non-static.
19686 * config/sh/predicates.md (zero_extend_movu_operand): Allow
19687 simple_mem_operand in addition to displacement_mem_operand.
19688 (zero_extend_operand): Don't allow zero_extend_movu_operand.
19689 (treg_set_expr, treg_set_expr_not_const01,
19690 arith_reg_or_treg_set_expr): New predicates.
19691 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19692 arith_or_int_operand instead of logical_operand. Convert to
19693 insn_and_split. Try to optimize constant operand in splitter.
19694 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
19695 (*tstqi_t_zero): Delete.
19696 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19697 (tstsi_t_and_not): Delete.
19698 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19699 Convert to insn_and_split.
19700 (unnamed split, tstsi_t_zero_extract_xor,
19701 tstsi_t_zero_extract_subreg_xor_little,
19702 tstsi_t_zero_extract_subreg_xor_big): Delete.
19703 (*tstsi_t_shift_mask): New insn_and_split.
19704 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19705 to recombine with surrounding insns when splitting.
19706 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19707 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19708 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19709 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19710 (*cbranch_div0s: Delete.
19711 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19712 Try to recombine with surrounding insns when splitting. Add operand
19713 order variants.
19714 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19715 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19716 *addc_r_r_msb, *addc_2r_msb): Delete.
19717 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
19718 order variant.
19719 (*addc_negreg_t): New insn_and_split.
19720 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19721 Try to recombine with surrounding insns when splitting.
19722 Add operand order variants.
19723 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19724 insn_and_split patterns.
19725 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
19726 surrounding insns when splitting.
19727 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19728 (*rotcl): Likewise. Add zero_extract variant.
19729 (*ashrsi2_31): New insn_and_split.
19730 (*negc): Convert to insn_and_split. Use treg_set_expr.
19731 (*zero_extend<mode>si2_disp_mem): Update comment.
19732 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19733 condition.
19734 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
19735 with surrounding insns when splitting.
19736 (any_treg_expr_to_reg): New insn_and_split.
19737 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19738 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19739 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19740 *zero_extract_2): New single bit zero extract patterns.
19741 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19742 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19743 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19744 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19745 set destination.
19746 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19747 register_operand for set source.
19748
19749 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
19750
19751 * i386.opt (prefetch_sse): New targetsave.
19752 * i386.c (ix86_function_specific_save): Save prefetch_sse.
19753 (ix86_function_specific_restore): Restore prefetch_sse and initialize
19754 ix86_cost/ix86_tune_cost.
19755
19756 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19757
19758 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19759 Support the JIT by using 0 as the language type.
19760
19761 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
19762
19763 PR target/64317
19764 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
19765 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19766 (mark_regno_live, process_bb_lives): Pass new parameter value to
19767 make_hard_regno_born.
19768
19769 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19770
19771 PR rtl-optimization/63637
19772 PR rtl-optimization/60663
19773 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19774 if elt->cost is MAX_COST for ASM_OPERANDS.
19775 (find_sets_in_insn): Fix up comment typo.
19776 (cse_insn): Don't set src_volatile for all non-volatile
19777 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19778 or with "memory" clobber. Set elt->cost to MAX_COST
19779 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
19780 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19781
19782 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19783
19784 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19785 alternative 1.
19786
19787 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19788
19789 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19790 libgcc/config/i386/elf-lib.h.
19791
19792 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19793
19794 PR driver/64737
19795 * gcc.c (print_configuration): Don't print a blank line at the end
19796 here...
19797 (run_attempt): ... but here unstead.
19798
19799 PR middle-end/64734
19800 * omp-low.c (scan_sharing_clauses): Don't ignore
19801 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19802 on target data/update constructs.
19803
19804 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19805
19806 PR target/50928
19807 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19808 (DEBUG_RELOAD): Removed define.
19809 (m32c_limit_reload_class): Enable traces with if DEBUG0.
19810 (m32c_function_arg): Added a type cast.
19811 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19812 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19813 * config/m32c/bitops.md (andqi3_16): Likewise.
19814 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19815 (push_a01_l): Likewise.
19816
19817 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19818
19819 PR jit/64721
19820 * main.c (main): Construct toplev instances with init_signals=true.
19821 * toplev.c (general_init): Add param "init_signals", and use it to
19822 conditionalize the calls to signal and host_hooks.extra_signals.
19823 (toplev::toplev): Add param "init_signals".
19824 (toplev::main): When invoking general_init, pass m_init_signals
19825 to control whether signal-handlers are installed.
19826 * toplev.h (toplev::toplev): Add param "init_signals".
19827 (toplev::m_init_signals): New field.
19828
19829 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19830
19831 PR jit/64722
19832 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19833 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19834 latter may be affected by the former (e.g. on i686).
19835
19836 2015-01-23 Martin Liska <mliska@suse.cz>
19837
19838 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19839 false positive during profiledbootstrap.
19840
19841 2015-01-23 Tom de Vries <tom@codesourcery.com>
19842
19843 PR libgomp/64672
19844 * lto-opts.c (lto_write_options): Output non-explicit conservative
19845 -fno-openacc.
19846 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19847 (append_compiler_options): Pass -fopenacc through.
19848
19849 2015-01-23 Tom de Vries <tom@codesourcery.com>
19850
19851 PR libgomp/64707
19852 * lto-opts.c (lto_write_options): Output non-explicit conservative
19853 -fno-openmp.
19854 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19855 (append_compiler_options): Pass -fopenmp through.
19856
19857 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19858
19859 PR debug/64511
19860 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
19861 GTY markup.
19862
19863 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
19864 * diagnostic.def (DK_ICE_NOBT): New kind.
19865 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
19866 like DK_ICE, but never print backtrace.
19867 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
19868 (internal_error_no_backtrace): New function.
19869 * gcc.c (execute): Use internal_error_no_backtrace instead of
19870 internal_error.
19871
19872 2015-01-22 Jeff Law <law@redhat.com>
19873
19874 PR target/52076
19875 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
19876 improve code density for small immediate to memory case.
19877 (insv): Better handle bitfield assignments when the field is
19878 being set to all ones.
19879 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
19880 operand predicate.
19881
19882 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19883 Jakub Jelinek <jakub@redhat.com>
19884
19885 PR middle-end/64729
19886 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
19887 for !TARGET_LIBC_PROVIDES_SSP version and
19888 -fstack-protector-{all,strong,explicit} otherwise.
19889 * config/freebsd.h (LINK_SSP_SPEC): Handle
19890 -fstack-protector-{strong,explicit}.
19891
19892 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
19893 H.J. Lu <hongjiu.lu@intel.com>
19894
19895 PR ipa/64694
19896 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
19897 heap.
19898
19899 2015-01-22 Wei Mi <wmi@google.com>
19900
19901 PR rtl-optimization/64557
19902 * dse.c (record_store): Call get_addr for mem_addr.
19903 (check_mem_read_rtx): Likewise.
19904
19905 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
19906
19907 * fold-const.c (const_binop): Add early return for non-tcc_binary.
19908
19909 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
19910
19911 * toplev.c (init_local_tick): Process the failure when read
19912 fails for random_seed.
19913
19914 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
19915 'pretty_name' to avoid memory overflow.
19916
19917 2015-01-22 Richard Biener <rguenther@suse.de>
19918
19919 PR middle-end/64728
19920 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
19921 abnormal coalescing on undefined SSA names.
19922
19923 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
19924
19925 PR target/64688
19926 PR target/64477
19927 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
19928 for alternative 3.
19929 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
19930
19931 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
19932
19933 PR middle-end/63325
19934 * fold-const.c (fold_checksum_tree): Don't include value of
19935 expr->decl_with_vis.symtab_node in the checksum.
19936
19937 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19938
19939 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
19940
19941 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
19942
19943 PR driver/64690
19944 * gcc.c (insert_comments): New function.
19945 (try_generate_repro): Call it.
19946 (append_text): Removed.
19947
19948 2015-01-22 Richard Biener <rguenther@suse.de>
19949
19950 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
19951 with IL incompatible options. Properly honor user optimize
19952 attributes.
19953
19954 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
19955
19956 PR rtl-optimization/64682
19957 * combine.c (distribute_notes): When moving a death note for
19958 a register that is set in the new I2, make sure to put it
19959 before that new I2.
19960
19961 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
19962
19963 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
19964 not TARGET_DEFAULT.
19965
19966 2015-01-21 Jakub Jelinek <jakub@redhat.com>
19967
19968 PR debug/64511
19969 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
19970 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
19971 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
19972
19973 PR sanitizer/64706
19974 * doc/invoke.texi (-fsanitize=vptr): Document.
19975
19976 PR rtl-optimization/62078
19977 * dse.c: Include cfgcleanup.h.
19978 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
19979 anything call purge_all_dead_edges and cleanup_cfg at the end
19980 of the pass.
19981
19982 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
19983
19984 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
19985 edges.
19986
19987 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19988
19989 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
19990 decl attribute.
19991
19992 2015-01-21 David Sherwood <david.sherwood@arm.com>
19993 Tejas Belagod <Tejas.Belagod@arm.com>
19994
19995 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
19996 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
19997 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
19998 Removed.
19999
20000 2015-01-21 David Sherwood <david.sherwood@arm.com>
20001 Tejas Belagod <Tejas.Belagod@arm.com>
20002
20003 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20004 (aarch64_reverse_mask): New decls.
20005 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20006 (insn_count): New mode_attr.
20007 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20008 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20009 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20010 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20011 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20012 (aarch64_simd_st4): New patterns.
20013 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20014 (aarch64_reverse_mask): New functions.
20015
20016 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
20017
20018 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20019 Declare.
20020 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20021 addressing modes for BE.
20022 (aarch64_print_operand): Add 'R' specifier.
20023 (aarch64_simd_disambiguate_copy): Delete.
20024 (aarch64_simd_emit_reg_reg_move): New function.
20025 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20026 in define_splits for structural moves.
20027 (mov<mode>): Use less restrictive predicates.
20028 (*aarch64_mov<mode>): Simplify and only allow for LE.
20029 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20030
20031 2015-01-21 Alan Hayward <alan.hayward@arm.com>
20032
20033 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20034
20035 2015-01-21 Richard Henderson <rth@redhat.com>
20036
20037 PR target/64669
20038 * ccmp.c (used_in_cond_stmt_p): Remove.
20039 (expand_ccmp_expr): Don't use it.
20040
20041 2015-01-21 Nick Clifton <nickc@redhat.com>
20042
20043 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20044 PARALLELs.
20045
20046 2015-01-21 Richard Biener <rguenther@suse.de>
20047
20048 PR middle-end/64313
20049 * tree-core.h (builtin_info, builtin_info_type): Turn from
20050 an object with two arrays into an array of an object with
20051 decl and two flags, implicit_p and declared_p.
20052 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20053 set_builtin_decl, set_builtin_decl_implicit_p,
20054 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20055 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20056 * builtins.c (builtin_info): Adjust.
20057 * gimplify.c (gimplify_addr_expr): References to builtins
20058 that have been declared by the user makes them eligible for
20059 use by the compiler. Call set_builtin_decl_implicit_p on them.
20060
20061 2015-01-20 Jeff Law <law@redhat.com>
20062
20063 PR target/59946
20064 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20065 allow pc-relative addresses in operand predicates or constraints.
20066
20067 2015-01-21 Bin Cheng <bin.cheng@arm.com>
20068
20069 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20070 neon on aarch32 processors for stringops.
20071
20072 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20073
20074 PR ipa/63576
20075 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20076
20077 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20078
20079 PR lto/45375
20080 * ipa-inline.c: Include lto-streamer.h
20081 (report_inline_failed_reason): Output source file differences and
20082 flags on optimization/target node mismatch.
20083 (can_inline_edge_p): Consider caller to be the outer inline function;
20084 be less restrictive about matching opimize and optimize_size attributes.
20085 (inline_account_function_p): Break out from ...
20086 (inline_small_functions): ... here.
20087 * ipa-inline-transform.c (clone_inlined_nodes): Use
20088 inline_account_function_p.
20089 (inline_call): Use optimize attribution; use inline_account_function_p.
20090 (inline_transform): Use opt_for_fn.
20091 * ipa-inline.h (inline_account_function_p): Declare.
20092
20093 2015-01-20 Jakub Jelinek <jakub@redhat.com>
20094
20095 PR debug/64663
20096 * dwarf2out.c (decl_piece_node): Don't put bitsize into
20097 mode if bitsize <= 0.
20098 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20099 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20100 sizes and positions.
20101
20102 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
20103
20104 * config/nios2/nios2.c (nios2_asm_file_end): Implement
20105 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20106 needed.
20107 (TARGET_ASM_FILE_END): Define.
20108
20109 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20110
20111 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20112 (struct tune_params): Use the enum.
20113 * arm.c (arm_*_tune): Update.
20114 (arm_option_override): Update.
20115
20116 2015-01-20 Richard Biener <rguenther@suse.de>
20117
20118 PR ipa/64684
20119 * ipa-reference.c (add_static_var): Inline ...
20120 (analyze_function): ... here after splitting out from ...
20121 (is_proper_for_analysis): ... this.
20122
20123 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
20124
20125 PR target/64149
20126 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20127 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20128 replace the conditional with it's true branch.
20129 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20130 (arm_lra_p): Remove.
20131
20132 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20133
20134 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20135
20136 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20137
20138 * config/tilegx/mul-tables.c: Move symtab.h include after
20139 coretypes.h include.
20140 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20141 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20142 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20143 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20144 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20145
20146 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20147
20148 PR bootstrap/64676
20149 Revert:
20150 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20151
20152 PR rtl-optimization/64081
20153 * loop-iv.c (def_pred_latch_p): New function.
20154 (latch_dominating_def): Allow specific cases with non-single
20155 definitions.
20156 (iv_get_reaching_def): Likewise.
20157 (check_complex_exit_p): New function.
20158 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20159 with exits not executing on any iteration.
20160
20161 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20162
20163 PR lto/45375
20164 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20165 to set branch cost.
20166
20167 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20168
20169 PR lto/45375
20170 * i386.c (gate): Check flag_expensive_optimizations and
20171 optimize_size.
20172 (ix86_option_override_internal): Drop optimize_size condition
20173 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20174 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20175 MASK_PREFER_AVX128.
20176 (ix86_avx256_split_vector_move_misalign,
20177 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20178 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20179 optimize_insn_for_speed_p check.
20180
20181 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20182
20183 * config/mips/mips.h (FP_ASM_SPEC): New define.
20184 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20185 instead.
20186
20187 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20188
20189 PR target/53988
20190 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20191 nullptr for insn when reaching the first insn.
20192 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20193 (sh_insn_operands_modified_between_p): Add nullptr check.
20194 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20195 sign extending mem load if the insn contains any UNSPEC or
20196 UNSPEC_VOLATILE.
20197
20198 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20199
20200 * params.def (inline-unit-growth): Drop to 15%.
20201 * invoke.texi (inline-unit-growth): Document change.
20202
20203 2015-01-19 Martin Liska <mliska@suse.cz>
20204
20205 PR ipa/64668
20206 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20207 function for second argument of OBJ_TYPE_REF.
20208
20209 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20210
20211 PR ipa/64218
20212 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20213 whether function is an alias.
20214
20215 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20216
20217 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20218 cases.
20219
20220 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20221
20222 PR rtl-optimization/64671
20223 * lra-remat.c (operand_to_remat): Don't consider jump and call
20224 insns.
20225
20226 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20227
20228 PR target/59828
20229 * config/rs6000/default64.h: Include rs6000-cpus.def.
20230 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20231 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20232 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20233 and POWER8.
20234 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20235 POWER8.
20236 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20237 pseudo-op to specify assembler dialect.
20238
20239 2015-01-19 Martin Liska <mliska@suse.cz>
20240
20241 PR ipa/64664
20242 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20243 Handle safe potentially removed nodes during filtering.
20244
20245 2015-01-19 Martin Liska <mliska@suse.cz>
20246
20247 * doc/extend.texi (no_icf): Add new attribute description.
20248 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20249 where the pass attempts to merge a function with no_icf attribute.
20250
20251 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20252
20253 PR target/64532
20254 * doc/md.texi (ARM Options): Document register constraints.
20255
20256 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20257 Andrew Pinski <apinski@cavium.com>
20258
20259 PR target/64304
20260 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20261 (ashl<mode>3): Don't expand if operands[2] is not constant.
20262
20263 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20264
20265 PR target/64448
20266 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20267 Match xor-and-xor RTL pattern.
20268
20269 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20270
20271 PR rtl-optimization/64081
20272 * loop-iv.c (def_pred_latch_p): New function.
20273 (latch_dominating_def): Allow specific cases with non-single
20274 definitions.
20275 (iv_get_reaching_def): Likewise.
20276 (check_complex_exit_p): New function.
20277 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20278 with exits not executing on any iteration.
20279
20280 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20281
20282 * common.opt (fgraphite): Fix a typo.
20283
20284 2015-01-19 Felix Yang <felix.yang@huawei.com>
20285
20286 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20287 pattern.
20288 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20289 uminp, smax_nanp, smin_nanp): New builtins.
20290 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20291 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20292 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20293 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20294 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20295 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20296 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20297 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20298 vpminnms_f32): Rewrite using builtin functions.
20299
20300 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20301
20302 PR libgomp/64625
20303 * omp-low.c (offload_symbol_decl): Remove variable.
20304 (get_offload_symbol_decl): Remove function.
20305 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20306 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20307 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20308 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20309 BUILT_IN_GOACC_UPDATE don't pass it at all.
20310
20311 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20312
20313 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20314 callers.
20315
20316 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20317
20318 * ipa-chkp.c (chkp_produce_thunks): Add early param
20319 to split thunks production into two passes. Keep
20320 'always_inline' function bodies after the first pass.
20321 (pass_data_ipa_chkp_early_produce_thunks): New.
20322 (pass_ipa_chkp_early_produce_thunks): New.
20323 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20324 chkp_produce_thunks signature.
20325 (make_pass_ipa_chkp_early_produce_thunks): New.
20326 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20327 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20328 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20329
20330 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20331
20332 * cgraph.c (cgraph_node::dump): Dump profile flags.
20333
20334 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20335
20336 PR target/64652
20337 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20338 reg appear first in the parallel.
20339
20340 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20341
20342 * ipa-reference.c (set_reference_optimization_summary,
20343 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20344 disabled.
20345 (ignore_module_statics): New static var.
20346 (propagate_bits): If ipa-reference is disabled, do not look into local
20347 properties.
20348 (analyze_function): Disable analysis when ipa_reference is disabled.
20349 (generate_summary): Do not dump when reference is disabled;
20350 collect vars accessed from functions with ipa-reference disabled.
20351 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20352 node flags.
20353 (gate): Enable for LTO.
20354 (ignore_edge_p): New function.
20355 (propagate): Skip functions w/o ipa-reference analysis.
20356 * optc-save-gen.awk: Handle optimize_debug correctly.
20357 * opth-gen.awk: Likewise.
20358 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20359 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20360 fira-share-save-slots, fira-share-spill-slots,
20361 fmodulo-sched-allow-regmoves, fpartial-inlining,
20362 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20363 ftracer, ftree-parallelize-loops, fassociative-math,
20364 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20365 Optimization
20366 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20367 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20368 Optimization.
20369 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20370 Fix for IPA.
20371
20372 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20373
20374 PR ipa/64378
20375 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20376 flag correctly.
20377 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20378
20379 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20380
20381 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20382 Remove duplicate option listings.
20383
20384 2015-01-18 Felix Yang <felix.yang@huawei.com>
20385
20386 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20387 (autofdo_source_profile::get_callsite_total_count,
20388 function_instance::get_function_instance_by_decl,
20389 string_table::get_index, string_table::get_index_by_decl,
20390 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20391 Fix comment typos. Reformatting and minor code rearrangement.
20392
20393 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20394
20395 * config/rs6000/rs6000.md (probe_stack): Delete.
20396 (probe_stack_address): New.
20397
20398 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20399
20400 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20401 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20402
20403 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20404
20405 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20406 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20407 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20408 snafu.
20409 (rs6000_libcall_value): Use the new function.
20410
20411 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20412
20413 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20414
20415 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20416
20417 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20418 implement a more precise life analysis for it during backward scan.
20419
20420 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20421
20422 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20423
20424 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20425
20426 PR rtl-optimization/52773
20427 * calls.c (emit_library_call_value): When pushing arguments use
20428 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20429 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20430 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20431
20432 2015-01-17 Jeff Law <law@redhat.com>
20433
20434 PR rtl-optimization/32790
20435 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20436 not ZERO_EXTEND in SET_DESTs.
20437
20438 2015-01-17 Alan Modra <amodra@gmail.com>
20439
20440 * cprop.c (do_local_cprop): Revert last change.
20441
20442 2015-01-16 DJ Delorie <dj@redhat.com>
20443 Nick Clifton <nickc@redhat.com>
20444
20445 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20446 (addhi3_real): Likewise. Fix [HL+0] syntax.
20447 (subqi3_real): Likewise.
20448 (subhi3_real): Likewise.
20449 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20450 (cbranchhi4_real): Likewise.
20451 (cbranchhi4_real_inverted): Likewise.
20452 (cbranchsi4_real_lt): Likewise.
20453 (cbranchsi4_real_ge): Likewise.
20454 (cbranchsi4_real_ge): Likewise.
20455 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20456 (sub<mode>3_virt): Likewise.
20457 (cbranchqi4_virt): Likewise.
20458 (cbranchhi4_virt): Likewise.
20459 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20460 always use '[reg+imm]' even when imm is zero.
20461 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20462 (rl78_general_operand): New.
20463 (rl78_nonimmediate_operand): New.
20464 (rl78_nonfar_operand): Use them.
20465 (rl78_nonfar_nonimm_operand): Likewise.
20466 (rl78_stack_based_mem): Fix.
20467 * config/rl78/constraints.md (Ibqi): New.
20468 (IBqi): New.
20469 (Wsa): New.
20470 (Wsf): New.
20471 (Cs1): Fix.
20472 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20473 (iorqi3): Likewise.
20474 (xorqi3): Likewise.
20475 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20476
20477 * config/rl78/constrains (Qs8): New constraint.
20478 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20479 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20480 * config/rl78/rl78-real.md (update_Z): New attribute.
20481 Update patterns to set it.
20482 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20483 shorter compare and branch sequence can be used.
20484 (cbranchhi4_real): Likewise.
20485 (cbranchhi4_real_inverted): Likewise.
20486
20487 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20488 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20489 address space.
20490 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20491 (rl78_option_override): Allow -mes0 only if C.
20492 (characterize_address): Support subregs of symbol_refs.
20493 (rl78_addr_space_address_mode): Move. Add __near.
20494 (rl78_far_p): Likewise.
20495 (rl78_addr_space_pointer_mode): Likewise.
20496 (rl78_as_legitimate_address): Likewise.
20497 (rl78_addr_space_subset_p): Likewise.
20498 (rl78_addr_space_convert): Likewise.
20499 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20500 symbols with -mes0.
20501 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20502 addressing.
20503 (rl78_alloc_physical_registers_op1): Change logic to prefer
20504 symbol[BC] addressing.
20505 (frodata_section): New.
20506 (rl78_asm_init_sections): Initialize it.
20507 (rl78_select_section): Put __far readonly symbols in .frodata.
20508 (rl78_make_type_far): New.
20509 (rl78_insert_attributes): Force all readonly symbols to be
20510 __far when -mes0.
20511 (rl78_asm_out_integer): New.
20512 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20513 * config/rl78/rl78.opt (-mes0): New.
20514
20515 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20516 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20517 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20518 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20519 (rl78_saddr_p): New.
20520 (rl78_output_aligned_common): New.
20521 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20522 (rl78_handle_saddr_attribute): New.
20523 (rl78_handle_naked_attribute): New.
20524 (rl78_attribute_table): Add saddr.
20525 (rl78_print_operand_1): Don't print '!' on saddr operands.
20526 (rl78_print_operand_1): Strip encodings.
20527 (rl78_sfr_p): New.
20528 (rl78_strip_name_encoding): New.
20529 (rl78_attrlist_to_encoding): New.
20530 (rl78_encode_section_info): New.
20531 (rl78_asm_init_sections): New.
20532 (rl78_select_section): New.
20533 (rl78_output_labelref): New.
20534 (rl78_output_aligned_common): New.
20535 (rl78_asm_out_integer): New.
20536 (rl78_asm_ctor_dtor): New.
20537 (rl78_asm_constructor): New.
20538 (rl78_asm_destructor): New.
20539
20540 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20541 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20542 (transcode_memory_rtx): Update.
20543 (rl78_expand_epilogue): Use A_REG instead of 0.
20544
20545 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20546
20547 * config/arm/arm-protos.h (struct tune_params): New field
20548 sched_autopref_queue_depth.
20549 * config/arm/arm.c (sched-int.h): Include header.
20550 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20551 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20552 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20553 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20554 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20555 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20556 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20557 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20558 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20559 * config/arm/t-arm (arm.o): Update.
20560 * haifa-sched.c (update_insn_after_change): Update.
20561 (rank_for_schedule): Use auto-prefetcher model, if requested.
20562 (autopref_multipass_init): New static function.
20563 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20564 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20565 variable for debug dumps.
20566 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20567 (autopref_multipass_dfa_lookahead_guard): New global function that
20568 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20569 (init_h_i_d): Update.
20570 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20571 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20572 (autopref_multipass_data_): Structure for auto-prefetcher data.
20573 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20574 (struct _haifa_insn_data:autopref_multipass_data): New field.
20575 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20576 (autopref_multipass_dfa_lookahead_guard): Declare.
20577
20578 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20579
20580 * rtlanal.c (get_base_term): Handle SCRATCH.
20581
20582 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20583
20584 * config/aarch64/aarch64.c
20585 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20586 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20587 * config/arm/arm.c
20588 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20589 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20590
20591 2015-01-17 Alan Modra <amodra@gmail.com>
20592
20593 * cprop.c (do_local_cprop): Disallow replacement of fixed
20594 hard registers.
20595
20596 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20597
20598 PR target/62066
20599 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20600 early return 0.
20601
20602 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20603
20604 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20605 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20606
20607 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20608
20609 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20610 * config/arm/thumb1.md: ... Here.
20611
20612 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20613
20614 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20615 TImode for TARGET_32BIT.
20616
20617 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20618
20619 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20620 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20621 as ...
20622 (rs6000_abi_word_mode): New function.
20623
20624 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20625
20626 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20627 instead of UNITS_PER_WORD to describe the size of stack slots.
20628
20629 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20630
20631 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20632 as rs6000_promote_function_mode. Move comment to there.
20633 (rs6000_promote_function_mode): New function.
20634
20635 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20636
20637 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20638 -mpowerpc64 is active.
20639
20640 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20641
20642 PR middle-end/64353
20643 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20644 virtuals on start.
20645
20646 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20647
20648 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20649 introduced in revision 219724.
20650
20651 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20652 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20653
20654 PR target/64263
20655 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20656 destination is not a GP reg.
20657 (*movdi_aarch64): Likewise.
20658
20659 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
20660
20661 PR target/64623
20662 * config/rs6000/default64.h: Revert ISA change.
20663
20664 2015-01-16 Richard Biener <rguenther@suse.de>
20665
20666 PR middle-end/64614
20667 * tree-ssa-uninit.c: Include tree-cfg.h.
20668 (MAX_SWITCH_CASES): New define.
20669 (convert_control_dep_chain_into_preds): Handle switch statements.
20670 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20671 (normalize_one_pred_1): Do not split bit-manipulations.
20672 Record (x & CST).
20673
20674 2015-01-16 Richard Biener <rguenther@suse.de>
20675
20676 PR tree-optimization/64568
20677 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20678 complex load rewriting for TARGET_MEM_REFs.
20679
20680 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
20681
20682 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20683
20684 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
20685
20686 PR target/64149
20687 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20688 variable.
20689 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20690 (aarch64_lra_p): Remove.
20691
20692 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20693
20694 PR target/64363
20695 * ipa-chkp.h (chkp_instrumentable_p): New.
20696 * ipa-chkp.c: Include tree-inline.h.
20697 (chkp_instrumentable_p): New.
20698 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20699 Fix processing of not instrumentable functions.
20700 (chkp_versioning): Use chkp_instrumentable_p. Warn about
20701 not instrumentable functions.
20702 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20703 chkp_instrumentable_p.
20704 * tree-inline.h (copy_forbidden): New.
20705 * tree-inline.c (copy_forbidden): Not static anymore.
20706
20707 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20708
20709 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20710 ptr1, ptr2 unused.
20711
20712 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20713
20714 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20715 type OP_OUT to OP_INOUT.
20716
20717 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20718
20719 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20720 (high x) y) to y if x and y have the same base.
20721
20722 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20723
20724 * config/arm/cortex-a57.md: New.
20725 * config/aarch64/aarch64.md: Include it.
20726 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20727 * config/aarch64/aarch64-tune.md: Regenerate.
20728
20729 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
20730
20731 PR target/64015
20732 * ccmp.c (expand_ccmp_next): New function.
20733 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20734 and compare insn sequence.
20735 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20736 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20737 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20738 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20739 (*ccmp_ior): Changed to ccmp_ior<mode>.
20740 (cmp<mode>): New pattern.
20741 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20742 parameters.
20743 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20744
20745 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
20746
20747 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20748 _mm256_bsrli_epi128): New.
20749 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20750
20751 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20752
20753 * expmed.c (store_bit_field_using_insv): Improve warning message.
20754 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20755
20756 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20757
20758 PR rtl-optimization/64011
20759 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20760 there is partial overflow.
20761
20762 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20763
20764 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20765 prototype.
20766 (nds32_expand_epilogue_v3pop): Likewise.
20767 * config/nds32/nds32.md (sibcall): Define this for sibling call
20768 optimization.
20769 (sibcall_register): Likewise.
20770 (sibcall_immediate): Likewise.
20771 (sibcall_value): Likewise.
20772 (sibcall_value_register): Likewise.
20773 (sibcall_value_immediate): Likewise.
20774 (sibcall_epilogue): Likewise.
20775 (epilogue): Pass false to indicate this is not a sibcall epilogue.
20776 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20777 (nds32_expand_epilogue_v3pop): Likewise.
20778
20779 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20780
20781 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20782 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20783 (return_internal): New.
20784 (return): Define this named pattern.
20785 (simple_return): Define this named pattern.
20786 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20787 pattern instead of unspec_volatile_func_return.
20788 (nds32_expand_epilogue_v3pop): Likewise.
20789 (nds32_can_use_return_insn): New function.
20790
20791 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20792
20793 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20794 * config/nds32/nds32.md (pop25return): New.
20795 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20796 pop25return pattern.
20797
20798 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20799
20800 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20801 -mforbid-fp-as-gp, and -mex9 options.
20802
20803 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20804
20805 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20806 remove -mgp-direct option.
20807
20808 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20809
20810 * doc/invoke.texi (--param early-inlining-insns): Update default value.
20811 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20812
20813 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20814
20815 * ipa-inline.c (inline_small_functions): Work around hints
20816 cache issue.
20817
20818 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
20819
20820 PR target/59710
20821 * doc/invoke.texi (Option Summary): Document new Nios II
20822 -mgpopt= syntax.
20823 (Nios II Options): Likewise.
20824 * config/nios2/nios2.opt: Add -mgpopt= option support.
20825 Modify existing -mgpopt and -mno-gpopt options to be aliases.
20826 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20827 * config/nios2/nios2.c (nios2_option_override): Adjust
20828 -mgpopt defaulting.
20829 (nios2_in_small_data_p): Return true for explicit small data
20830 sections even with -G0.
20831 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20832 option choices.
20833
20834 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20835
20836 PR ipa/64612
20837 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20838 of comdat locals.
20839 (inline_call): Fix removal of aliases.
20840
20841 2015-01-15 Jakub Jelinek <jakub@redhat.com>
20842
20843 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20844 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20845 * opts.c (common_handle_option): Add -fsanitize=vptr.
20846 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20847 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20848 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20849 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20850 (ubsan_expand_vptr_ifn): New prototype.
20851 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20852 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20853 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20854 expand_LOOP_VECTORIZED): Make argument nameless, remove
20855 ATTRIBUTE_UNUSED.
20856 (expand_UBSAN_VPTR): New function.
20857 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
20858 in fn spec.
20859 (UBSAN_VPTR): New internal function.
20860 * sanopt.c (tree_map_traits): Renamed to ...
20861 (sanopt_tree_map_traits): ... this.
20862 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
20863 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
20864 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
20865 (maybe_optimize_ubsan_vptr_ifn): New function.
20866 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
20867 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
20868 -fsanitize=vptr.
20869 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
20870 internal calls like pure functions for aliasing, even when they
20871 have other side-effects that prevent making them ECF_PURE.
20872 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
20873 (ubsan_expand_vptr_ifn): New function.
20874
20875 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
20876
20877 PR rtl-optimization/64110
20878 * stmt.c (parse_output_constraint): Process '^' and '$'.
20879 (parse_input_constraint): Ditto.
20880 * lra-constraints.c (process_alt_operands): Process the new
20881 constraints.
20882 * ira-costs.c (record_reg_classes): Process the new constraint
20883 '^'.
20884 * genoutput.c (indep_constraints): Add '^' and '$'.
20885 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
20886 * doc/md.texi: Add description of the new constraints.
20887
20888 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
20889 Bernd Schmidt <bernds@codesourcery.com>
20890 Cesar Philippidis <cesar@codesourcery.com>
20891 James Norris <jnorris@codesourcery.com>
20892 Tom de Vries <tom@codesourcery.com>
20893 Ilmir Usmanov <i.usmanov@samsung.com>
20894 Dmitry Bocharnikov <dmitry.b@samsung.com>
20895 Evgeny Gavrin <e.gavrin@samsung.com>
20896 Jakub Jelinek <jakub@redhat.com>
20897
20898 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
20899 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20900 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20901 New function types.
20902 * builtins.c: Include "gomp-constants.h".
20903 (expand_builtin_acc_on_device): New function.
20904 (expand_builtin, is_inexpensive_builtin): Handle
20905 BUILT_IN_ACC_ON_DEVICE.
20906 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
20907 New macros.
20908 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
20909 flag_openmp.
20910 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
20911 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
20912 i386/intelmic-offload.h.
20913 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
20914 to libgomp and its dependencies.
20915 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
20916 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20917 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20918 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20919 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20920 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20921 * doc/generic.texi: Update for OpenACC changes.
20922 * doc/gimple.texi: Likewise.
20923 * doc/invoke.texi: Likewise.
20924 * doc/sourcebuild.texi: Likewise.
20925 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
20926 GF_OMP_FOR_KIND_OACC_LOOP.
20927 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
20928 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
20929 GF_OMP_TARGET_KIND_OACC_UPDATE,
20930 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20931 Dump more data.
20932 * gimple.c: Update comments for OpenACC changes.
20933 * gimple.def: Likewise.
20934 * gimple.h: Likewise.
20935 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
20936 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20937 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
20938 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20939 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
20940 appropriate place.
20941 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
20942 * gimplify.c: Include "gomp-constants.h".
20943 Update comments for OpenACC changes.
20944 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
20945 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
20946 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20947 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
20948 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20949 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20950 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
20951 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20952 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20953 OMP_CLAUSE_SEQ.
20954 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
20955 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
20956 OMP_CLAUSE_SET_MAP_KIND.
20957 (gimplify_oacc_cache): New function.
20958 (gimplify_omp_for): Handle OACC_LOOP.
20959 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
20960 OACC_DATA.
20961 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
20962 OACC_EXIT_DATA, OACC_UPDATE.
20963 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
20964 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
20965 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
20966 (gimplify_body): Consider flag_openacc next to flag_openmp.
20967 * lto-streamer-out.c: Include "gomp-constants.h".
20968 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
20969 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
20970 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
20971 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
20972 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
20973 (BUILT_IN_ACC_ON_DEVICE): New builtins.
20974 * omp-low.c: Include "gomp-constants.h".
20975 Update comments for OpenACC changes.
20976 (struct omp_context): Add reduction_map, gwv_below, gwv_this
20977 members.
20978 (extract_omp_for_data, use_pointer_for_field, install_var_field)
20979 (new_omp_context, delete_omp_context, scan_sharing_clauses)
20980 (create_omp_child_function, scan_omp_for, scan_omp_target)
20981 (check_omp_nesting_restrictions, lower_reduction_clauses)
20982 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
20983 Update for OpenACC changes.
20984 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
20985 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
20986 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
20987 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20988 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
20989 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
20990 OMP_CLAUSE_MAP_*.
20991 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
20992 Handle GF_OMP_FOR_KIND_OACC_LOOP.
20993 (expand_omp_target, lower_omp_target): Handle
20994 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20995 GF_OMP_TARGET_KIND_OACC_UPDATE,
20996 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
20997 GF_OMP_TARGET_KIND_OACC_DATA.
20998 (pass_expand_omp::execute, execute_lower_omp)
20999 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21000 flag_openmp.
21001 (offload_symbol_decl): New variable.
21002 (oacc_get_reduction_array_id, oacc_max_threads)
21003 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21004 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21005 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21006 (oacc_gimple_assign, oacc_initialize_reduction_data)
21007 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21008 functions.
21009 (is_targetreg_ctx): Remove function.
21010 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21011 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21012 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21013 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21014 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21015 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21016 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21017 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21018 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21019 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21020 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21021 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21022 * tree-core.h: Update comments for OpenACC changes.
21023 (enum omp_clause_map_kind): Remove.
21024 (struct tree_omp_clause): Change type of map_kind member from enum
21025 omp_clause_map_kind to unsigned char.
21026 * tree-inline.c: Update comments for OpenACC changes.
21027 * tree-nested.c: Likewise. Include "gomp-constants.h".
21028 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21029 (convert_tramp_reference_stmt, convert_gimple_call): Update for
21030 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21031 OMP_CLAUSE_SET_MAP_KIND.
21032 * tree-pretty-print.c: Include "gomp-constants.h".
21033 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21034 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21035 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21036 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21037 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21038 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
21039 instead of OMP_CLAUSE_MAP_*.
21040 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21041 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21042 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21043 * tree-streamer-in.c: Include "gomp-constants.h".
21044 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21045 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
21046 * tree-streamer-out.c: Include "gomp-constants.h".
21047 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21048 OMP_CLAUSE_MAP_*.
21049 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21050 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21051 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21052 * tree.c (omp_clause_num_ops): Update accordingly.
21053 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21054 Likewise.
21055 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21056 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21057 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21058 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21059 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21060 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21061 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21062 (OMP_CLAUSE_SET_MAP_KIND): New macro.
21063 * varpool.c (varpool_node::get_create): Consider flag_openacc next
21064 to flag_openmp.
21065 * config/i386/intelmic-offload.h: New file.
21066 * config/nvptx/offload.h: Likewise.
21067
21068 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21069
21070 * explow.h: Remove duplicate contents.
21071 * dojump.h: Likewise.
21072
21073 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
21074
21075 * arm.c (arm_xgene_tune): Add default initializer for instruction
21076 fusion.
21077
21078 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21079
21080 PR ipa/64068
21081 PR ipa/64559
21082 * ipa.c (symbol_table::remove_unreachable_nodes):
21083 Do not put abstract origins into boundary.
21084
21085 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
21086
21087 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21088 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21089
21090 2015-01-15 Steve Ellcey <sellcey@mips.com>
21091
21092 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21093 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21094 builtins.def, and chkp-builtins.def.
21095
21096 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
21097
21098 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21099 ISA 2.7 (POWER8).
21100
21101 2015-01-15 Richard Biener <rguenther@suse.de>
21102
21103 PR tree-optimization/61743
21104 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21105 information on PHIs for some simple cases.
21106
21107 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21108
21109 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21110 Include xgene1.md.
21111 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21112 * config/arm/arm-cores.def (xgene1): New entry.
21113 * config/arm/arm-tables.opt: Regenerate.
21114 * config/arm/arm-tune.md: Regenerate.
21115 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21116
21117 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21118
21119 * tree-if-conv.c: Include hash-map.h.
21120 (aggressive_if_conv): New variable.
21121 (fold_build_cond_expr): Add simplification of non-zero condition.
21122 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21123 destination block is not always executed.
21124 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21125 than two predecessors if AGGRESSIVE_IF_CONV is true.
21126 (if_convertible_stmt_p): Fix commentary.
21127 (all_preds_critical_p): New function.
21128 (has_pred_critical_p): New function.
21129 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21130 BB can have more than two predecessors and all incoming edges can be
21131 critical.
21132 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21133 to compute predicate for true edge.
21134 (find_phi_replacement_condition): Delete this function.
21135 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21136 Allow interchange PHI arguments if EXTENDED is false.
21137 Change check that block containing reduction statement candidate
21138 is predecessor of phi-block since phi may have more than two arguments.
21139 (phi_args_hash_traits): New helper structure.
21140 (struct phi_args_hash_traits): New type.
21141 (phi_args_hash_traits::hash): New function.
21142 (phi_args_hash_traits::equal_keys): New function.
21143 (gen_phi_arg_condition): New function.
21144 (predicate_scalar_phi): Add handling of phi nodes with more than two
21145 arguments, delete COND and TRUE_BB arguments, insert body of
21146 find_phi_replacement_condition to predicate ordinary phi nodes.
21147 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21148 delete call of find_phi_replacement_condition and invoke
21149 predicate_scalar_phi with two arguments.
21150 (insert_gimplified_predicates): Add assert that non-predicated block
21151 don't have statements to insert.
21152 (ifcvt_split_critical_edges): New function.
21153 (ifcvt_split_def_stmt): Likewise.
21154 (ifcvt_walk_pattern_tree): Likewise.
21155 (stmt_is_root_of_bool_pattern): Likewise.
21156 (ifcvt_repair_bool_pattern): Likewise.
21157 (ifcvt_local_dce): Likewise.
21158 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21159 is copy of inner or outer loop force_vectorize field, invoke
21160 ifcvt_split_critical_edges, ifcvt_local_dce and
21161 ifcvt_repair_bool_pattern for aggressive if-conversion.
21162
21163 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21164
21165 * config/aarch64/aarch64.md: Include xgene1.md.
21166 * config/aarch64/xgene1.md: New file.
21167
21168 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21169
21170 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21171 xgene1 (APM XGene-1) core definition.
21172 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21173 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21174 * doc/invoke.texi: Document -mcpu=xgene1.
21175
21176 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21177
21178 * dojump.h: New header file.
21179 * explow.h: Likewise.
21180 * expr.h: Remove includes.
21181 Move expmed.c prototypes to expmed.h.
21182 Move dojump.c prototypes to dojump.h.
21183 Move alias.c prototypes to alias.h.
21184 Move explow.c prototypes to explow.h.
21185 Move calls.c prototypes to calls.h.
21186 Move emit-rtl.c prototypes to emit-rtl.h.
21187 Move varasm.c prototypes to varasm.h.
21188 Move stmt.c prototypes to stmt.h.
21189 (saved_pending_stack_adjust): Move to dojump.h.
21190 (adjust_address): Move to explow.h.
21191 (adjust_address_nv): Move to emit-rtl.h.
21192 (adjust_bitfield_address): Likewise.
21193 (adjust_bitfield_address_size): Likewise.
21194 (adjust_bitfield_address_nv): Likewise.
21195 (adjust_automodify_address_nv): Likewise.
21196 * explow.c (expr_size): Move to expr.c.
21197 (int_expr_size): Likewise.
21198 (tree_expr_size): Likewise.
21199 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21200 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21201 * genemit.c (main): Generate includes statistics.h, real.h,
21202 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21203 stmt.h.
21204 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21205 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21206 explow.h, emit-rtl.h, stmt.h.
21207 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21208 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21209 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21210 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21211 emit-rtl.h, varasm.h, stmt.h.
21212 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21213 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21214 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21215 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21216 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21217 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21218 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21219 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21220 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21221 tm.h tree.h varasm.h vec.h wide-int.h.
21222 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21223 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21224 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21225 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21226 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21227 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21228 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21229 * loop-iv.c: Likewise.
21230 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21231 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21232 statistics.h stmt.h tree.h varasm.h wide-int.h.
21233 * lra-constraints.c: Likewise.
21234 * lra-eliminations.c: Likewise.
21235 * lra-lives.c: Likewise.
21236 * lra-remat.c: Likewise.
21237 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21238 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21239 statistics.h stmt.h tree.h varasm.h wide-int.h.
21240 * hw-doloop.c: Likewise.
21241 * ira-color.c: Likewise.
21242 * ira-emit.c: Likewise.
21243 * loop-doloop.c: Likewise.
21244 * loop-invariant.c: Likewise.
21245 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21246 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21247 statistics.h stmt.h tree.h varasm.h wide-int.h.
21248 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21249 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21250 statistics.h stmt.h tree.h varasm.h wide-int.h.
21251 * combine-stack-adj.c: Likewise.
21252 * cse.c: Likewise.
21253 * ddg.c: Likewise.
21254 * ifcvt.c: Likewise.
21255 * ira-costs.c: Likewise.
21256 * jump.c: Likewise.
21257 * lra-coalesce.c: Likewise.
21258 * lra-spills.c: Likewise.
21259 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21260 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21261 stmt.h varasm.h wide-int.h.
21262 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21263 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21264 varasm.h.
21265 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21266 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21267 statistics.h stmt.h varasm.h wide-int.h.
21268 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21269 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21270 varasm.h wide-int.h.
21271 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21272 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21273 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21274 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21275 statistics.h stmt.h.
21276 * config/tilepro/tilepro.c: Likewise.
21277 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21278 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21279 * config/pdp11/pdp11.c: Likewise.
21280 * config/xtensa/xtensa.c: Likewise.
21281 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21282 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21283 varasm.h.
21284 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21285 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21286 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21287 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21288 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21289 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21290 * rtl-chkp.c: Likewise.
21291 * tree-chkp-opt.c: Likewise.
21292 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21293 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21294 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21295 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21296 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21297 statistics.h stmt.h.
21298 * tree-vect-data-refs.c: Likewise.
21299 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21300 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21301 rtl.h statistics.h stmt.h varasm.h.
21302 * internal-fn.c: Likewise.
21303 * ipa-icf-gimple.c: Likewise.
21304 * lto-section-out.c: Likewise.
21305 * tree-data-ref.c: Likewise.
21306 * tree-nested.c: Likewise.
21307 * tree-outof-ssa.c: Likewise.
21308 * tree-predcom.c: Likewise.
21309 * tree-pretty-print.c: Likewise.
21310 * tree-scalar-evolution.c: Likewise.
21311 * tree-ssa-strlen.c: Likewise.
21312 * tree-vect-loop.c: Likewise.
21313 * tree-vect-patterns.c: Likewise.
21314 * tree-vect-slp.c: Likewise.
21315 * tree-vect-stmts.c: Likewise.
21316 * tsan.c: Likewise.
21317 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21318 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21319 stmt.h.
21320 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21321 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21322 statistics.h stmt.h varasm.h.
21323 * loop-unroll.c: Likewise.
21324 * ubsan.c: Likewise.
21325 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21326 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21327 stmt.h varasm.h.
21328 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21329 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21330 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21331 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21332 statistics.h stmt.h.
21333 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21334 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21335 statistics.h stmt.h varasm.h.
21336 * gimple-match-head.c: Likewise.
21337 * lto-cgraph.c: Likewise.
21338 * lto-section-in.c: Likewise.
21339 * lto-streamer-in.c: Likewise.
21340 * lto-streamer-out.c: Likewise.
21341 * tree-affine.c: Likewise.
21342 * tree-cfg.c: Likewise.
21343 * tree-cfgcleanup.c: Likewise.
21344 * tree-if-conv.c: Likewise.
21345 * tree-into-ssa.c: Likewise.
21346 * tree-ssa-alias.c: Likewise.
21347 * tree-ssa-copyrename.c: Likewise.
21348 * tree-ssa-dse.c: Likewise.
21349 * tree-ssa-forwprop.c: Likewise.
21350 * tree-ssa-live.c: Likewise.
21351 * tree-ssa-math-opts.c: Likewise.
21352 * tree-ssa-pre.c: Likewise.
21353 * tree-ssa-sccvn.c: Likewise.
21354 * tree-tailcall.c: Likewise.
21355 * tree-vect-generic.c: Likewise.
21356 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21357 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21358 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21359 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21360 * varasm.c: Likewise.
21361 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21362 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21363 varasm.h.
21364 * init-regs.c: Likewise.
21365 * ira.c: Likewise.
21366 * omp-low.c: Likewise.
21367 * stack-ptr-mod.c: Likewise.
21368 * tree-ssa-reassoc.c: Likewise.
21369 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21370 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21371 varasm.h.
21372 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21373 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21374 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21375 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21376 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21377 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21378 * tree-ssa-phiopt.c: Likewise.
21379 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21380 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21381 * config/fr30/fr30.c: Likewise.
21382 * config/frv/frv.c: Likewise.
21383 * expr.c: Likewise.
21384 * final.c: Likewise.
21385 * optabs.c: Likewise.
21386 * passes.c: Likewise.
21387 * simplify-rtx.c: Likewise.
21388 * stmt.c: Likewise.
21389 * toplev.c: Likewise.
21390 * var-tracking.c: Likewise.
21391 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21392 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21393 * lower-subreg.c: Likewise.
21394 * postreload-gcse.c: Likewise.
21395 * ree.c: Likewise.
21396 * reginfo.c: Likewise.
21397 * store-motion.c: Likewise.
21398 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21399 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21400 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21401 fixed-value.h hashtab.h statistics.h stmt.h.
21402 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21403 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21404 * except.c: Likewise.
21405 * explow.c: Likewise.
21406 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21407 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21408 varasm.h.
21409 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21410 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21411 * tree-ssa-structalias.c: Likewise.
21412 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21413 fixed-value.h insn-config.h real.h statistics.h.
21414 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21415 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21416 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21417 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21418 * cfgbuild.c: Likewise.
21419 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21420 fixed-value.h real.h rtl.h statistics.h stmt.h.
21421 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21422 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21423 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21424 fixed-value.h real.h statistics.h stmt.h.
21425 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21426 fixed-value.h real.h statistics.h stmt.h varasm.h.
21427 * cprop.c: Likewise.
21428 * modulo-sched.c: Likewise.
21429 * postreload.c: Likewise.
21430 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21431 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21432 statistics.h stmt.h varasm.h.
21433 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21434 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21435 rtl.h statistics.h stmt.h varasm.h.
21436 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21437 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21438 varasm.h.
21439 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21440 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21441 varasm.h.
21442 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21443 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21444 varasm.h.
21445 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21446 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21447 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21448 function.h real.h statistics.h stmt.h varasm.h.
21449 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21450 insn-config.h real.h statistics.h stmt.h.
21451 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21452 statistics.h stmt.h.
21453 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21454 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21455 statistics.h stmt.h varasm.h.
21456 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21457 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21458 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21459 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21460 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21461 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21462 statistics.h stmt.h varasm.h.
21463 * ipa-polymorphic-call.c: Likewise.
21464 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21465 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21466 statistics.h stmt.h.
21467 * config/c6x/c6x.c: Likewise.
21468 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21469 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21470 statistics.h stmt.h varasm.h.
21471 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21472 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21473 stmt.h varasm.h.
21474 * ipa-split.c: Likewise.
21475 * tree-eh.c: Likewise.
21476 * tree-ssa-dce.c: Likewise.
21477 * tree-ssa-loop-niter.c: Likewise.
21478 * tree-vrp.c: Likewise.
21479 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21480 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21481 stmt.h.
21482 * config/nds32/nds32-fp-as-gp.c: Likewise.
21483 * config/nds32/nds32-intrinsic.c: Likewise.
21484 * config/nds32/nds32-isr.c: Likewise.
21485 * config/nds32/nds32-md-auxiliary.c: Likewise.
21486 * config/nds32/nds32-memory-manipulation.c: Likewise.
21487 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21488 * config/nds32/nds32-predicates.c: Likewise.
21489 * config/nds32/nds32.c: Likewise.
21490 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21491 fixed-value.h hashtab.h real.h statistics.h.
21492 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21493 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21494 * config/arm/arm.c: Likewise.
21495 * config/avr/avr.c: Likewise.
21496 * config/bfin/bfin.c: Likewise.
21497 * config/h8300/h8300.c: Likewise.
21498 * config/i386/i386.c: Likewise.
21499 * config/ia64/ia64.c: Likewise.
21500 * config/iq2000/iq2000.c: Likewise.
21501 * config/m32c/m32c.c: Likewise.
21502 * config/m32r/m32r.c: Likewise.
21503 * config/m68k/m68k.c: Likewise.
21504 * config/mcore/mcore.c: Likewise.
21505 * config/mep/mep.c: Likewise.
21506 * config/mips/mips.c: Likewise.
21507 * config/mn10300/mn10300.c: Likewise.
21508 * config/moxie/moxie.c: Likewise.
21509 * config/pa/pa.c: Likewise.
21510 * config/rl78/rl78.c: Likewise.
21511 * config/rx/rx.c: Likewise.
21512 * config/s390/s390.c: Likewise.
21513 * config/sh/sh.c: Likewise.
21514 * config/sparc/sparc.c: Likewise.
21515 * config/spu/spu.c: Likewise.
21516 * config/stormy16/stormy16.c: Likewise.
21517 * config/v850/v850.c: Likewise.
21518 * config/vax/vax.c: Likewise.
21519 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21520 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21521 * config/msp430/msp430.c: Likewise.
21522 * predict.c: Likewise.
21523 * value-prof.c: Likewise.
21524 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21525 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21526 * config/microblaze/microblaze.c: Likewise.
21527 * config/nios2/nios2.c: Likewise.
21528 * config/rs6000/rs6000.c: Likewise.
21529 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21530 insn-config.h real.h rtl.h statistics.h stmt.h.
21531 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21532 insn-config.h real.h statistics.h stmt.h.
21533 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21534 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21535 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21536 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21537 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21538 fixed-value.h real.h statistics.h stmt.h.
21539 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21540 fixed-value.h statistics.h stmt.h.
21541 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21542 stmt.h.
21543
21544 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21545
21546 * gengtype.c (create_user_defined_type): Workaround
21547 -Wmaybe-uninitialized false positives.
21548 * cse.c (fold_rtx): Likewise.
21549 * loop-invariant.c (gain_for_invariant): Likewise.
21550
21551 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21552
21553 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21554 set the memory attributes in all cases but clear MEM_EXPR if need be.
21555
21556 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21557
21558 PR tree-optimization/64434
21559 * cfgexpand.c (reorder_operands): New function.
21560 (expand_gimple_basic_block): Insert call of reorder_operands if
21561 optimized is true.
21562
21563 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21564
21565 * config/mips/micromips.md (*swp): Remove explicit parallel.
21566 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21567 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21568 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21569 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21570 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21571 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21572 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21573 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21574 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21575 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21576 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21577 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21578 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21579 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21580 (mips_wrdsp): Likewise.
21581 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21582 parallel.
21583 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21584 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21585 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21586 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21587 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21588 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21589 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21590 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21591 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21592
21593 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21594
21595 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21596 (mips_print_operand): Support 'y' to print exact log2 in decimal
21597 of a const_int.
21598 * config/mips/mips.h (ISA_HAS_LSA): New define.
21599 (ISA_HAS_DLSA): Likewise.
21600 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21601 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21602
21603 2015-01-15 Martin Liska <mliska@suse.cz>
21604
21605 PR target/64377
21606 * optc-save-gen.awk: Add support for array types.
21607
21608 2015-01-15 Richard Biener <rguenther@suse.de>
21609
21610 PR middle-end/64365
21611 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21612 for MEM_REF access functions with the same base can never partially
21613 overlap.
21614
21615 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21616
21617 * common.opt: New option -fstack-protector-explicit.
21618 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21619 (stack_protect_decl_phase): Handle stack_protect attribute for
21620 explicit stack protection requests.
21621 (expand_used_vars): Similarly.
21622 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21623 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21624 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21625
21626 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21627
21628 PR target/53988
21629 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21630 reg-reg copies.
21631 (sh_extending_set_of_reg): New struct.
21632 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21633 sh_remove_reg_dead_or_unused_notes): New Declarations.
21634 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21635 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21636 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21637 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21638 convert to insn_and_split and use new function sh_split_tst_subregs.
21639
21640 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21641
21642 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21643 option.
21644 (Optimization Options): Move -fuse-ld documentation to...
21645 (Link Options): ...here.
21646
21647 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21648
21649 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21650 offsets.
21651 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21652 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21653 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21654 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21655 instead of ZR for the memory operand of LL/SC.
21656 (compare_and_swap_12, sync_add<mode>): Likewise.
21657 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21658 (sync_new_<optab>_12, sync_nand_12): Likewise.
21659 (sync_old_nand_12, sync_new_nand_12): Likewise.
21660 (sync_sub<mode>, sync_old_add<mode>): Likewise.
21661 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21662 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21663 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21664 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21665 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21666 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21667 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21668 * doc/md.texi (ZC): Update description.
21669
21670 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21671
21672 * builtins.c (expand_builtin_atomic_exchange): Remove error when
21673 memory model is CONSUME.
21674 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21675 expand_builtin_atomic_store): Change invalid memory model errors to
21676 warnings.
21677 (expand_builtin_atomic_clear): Change invalid model errors to warnings
21678 and issue warning for CONSUME.
21679
21680 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
21681
21682 * lto-cgraph: Update function comments for
21683 lto_symtab_encoder_encode_*.
21684
21685 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21686
21687 * Makefile.in (site.exp): Do not set ENABLE_LTO.
21688
21689 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21690
21691 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21692 * lto-cgraph.c (select_what_to_stream): Remove argument, use
21693 lto_stream_offload_p instead.
21694 * lto-streamer.h (select_what_to_stream): Remove argument.
21695 * passes.c (ipa_write_summaries): Likewise.
21696 * tree-pass.h (ipa_write_summaries): Likewise.
21697
21698 2015-01-14 Richard Biener <rguenther@suse.de>
21699
21700 PR tree-optimization/59354
21701 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21702 groups larger than the slp group size as having gaps.
21703
21704 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21705
21706 PR middle-end/59448
21707 * builtins.c (get_memmodel): Promote consume to acquire always.
21708
21709 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21710
21711 PR target/64386
21712 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21713 V32HImode.
21714
21715 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21716
21717 PR target/64393
21718 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21719 Enable AVX512BW.
21720 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21721 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21722 AVX512VBMI, as it implies AVX512BW.
21723
21724 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21725
21726 PR target/64387
21727 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21728 (vec_unpacks_hi_v16sf): Ditto.
21729
21730 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21731
21732 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21733 is not available.
21734
21735 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21736
21737 * doc/invoke.texi (mapcs): Mention deprecation.
21738 (mapcs-frame): Likewise.
21739
21740 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
21741
21742 PR target/64453
21743 * config/arm/arm.c (callee_saved_reg_p): Define.
21744 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21745 register is callee saved instead of !call_used_regs[reg].
21746 (thumb1_compute_save_reg_mask): Likewise.
21747
21748 2015-01-14 Hale Wang <hale.wang@arm.com>
21749
21750 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21751 Cortex-M7.
21752
21753 2015-01-14 Richard Biener <rguenther@suse.de>
21754
21755 PR lto/64415
21756 * tree-inline.c (insert_debug_decl_map): Check destination
21757 function MAY_HAVE_DEBUG_STMTS.
21758 (insert_init_debug_bind): Likewise.
21759 (insert_init_stmt): Remove redundant check.
21760 (remap_gimple_stmt): Drop debug stmts if the destination
21761 function has var-tracking assignments disabled.
21762
21763 2015-01-14 Martin Liska <mliska@suse.cz>
21764
21765 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21766 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21767
21768 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21769
21770 PR target/64460
21771 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21772 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21773
21774 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21775
21776 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21777 level from an ARCH; do not inject the default.
21778 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21779 MIPS_ISA_LEVEL_SPEC.
21780 (MIPS_ISA_NAN2008_SPEC): Update comment.
21781 (BASE_DRIVER_SELF_SPECS): Likewise.
21782 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21783 MIPS_DEFAULT_ISA_LEVEL_SPEC.
21784 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21785 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21786 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21787
21788 2015-01-14 Richard Biener <rguenther@suse.de>
21789
21790 PR tree-optimization/64493
21791 PR tree-optimization/64495
21792 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21793 assign the proper vectorized PHI to the inner loop exit PHIs.
21794
21795 2015-01-14 Joey Ye <joey.ye@arm.com>
21796
21797 * config/arm/arm.c (arm_compute_save_reg_mask):
21798 Do not save lr in case of tail call.
21799 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21800
21801 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
21802
21803 * tree-vrp.c (check_array_ref): Emit more warnings
21804 for warn_array_bounds >= 2.
21805 * common.opt: New option -Warray-bounds=.
21806 * doc/invoke.texi: Document -Warray-bounds=.
21807
21808 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
21809
21810 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21811 (mforbid-fp-as-gp): Remove.
21812 (mex9): Remove.
21813 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21814 (nds32_symbol_load_store_p): Remove.
21815 (nds32_fp_as_gp_check_available): Clean up implementation.
21816 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21817 cases.
21818 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21819 fp-as-gp and ex9 cases.
21820
21821 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21822
21823 * tree-profile.c (init_ic_make_global_vars): Drop workaround
21824 for bintuils bug 14342.
21825 (init_ic_make_global_vars): Likewise.
21826 (gimple_init_edge_profiler): Likewise.
21827 (gimple_gen_ic_func_profiler): Likewise.
21828
21829 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21830
21831 * ipa-inline.c (inline_small_functions): Swap the operands in
21832 enum.
21833
21834 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21835
21836 PR ipa/64481
21837 * ipa-inline-analysis.c (node_growth_cache): Remove.
21838 (initialize_growth_caches): Do not initialize it.
21839 (free_growth_caches): Do not free it.
21840 (do_estimate_growth): Rename to ...
21841 (estimate_growth): ... this one; drop growth cache code.
21842 (growth_likely_positive): Always go the heuristics way.
21843 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21844 (reset_edge_caches): Do not reset node growth.
21845 (heap_edge_removal_hook): Do not maintain cache.
21846 (inline_small_functions): Likewise; strenghten sanity check.
21847 (ipa_inline): Do not maintain caches.
21848 * ipa-inline.h (node_growth_cache): Remove.
21849 (do_estimate_growth): Remove to ...
21850 (estimate_growth): this one; remove inline version.
21851 (reset_node_growth_cache): Remove.
21852
21853 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21854
21855 PR ipa/64565
21856 * ipa-inline.c (inline_small_functions): Update callee keys after
21857 resolving speculation
21858 (inline_small_functions): Always check monotonicity of the queue.
21859
21860 2015-01-13 Marek Polacek <polacek@redhat.com>
21861
21862 PR middle-end/64391
21863 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
21864
21865 2015-01-13 Jakub Jelinek <jakub@redhat.com>
21866
21867 PR rtl-optimization/64286
21868 * ree.c (combine_reaching_defs): Move part of comment earlier,
21869 remove !SCALAR_INT_MODE_P check.
21870 (add_removable_extension): Don't add vector mode
21871 extensions if all uses of the source register aren't the same
21872 vector extensions.
21873
21874 2015-01-13 Renlin Li <renlin.li@arm.com>
21875
21876 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
21877 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
21878
21879 2015-01-13 Martin Liska <mliska@suse.cz>
21880
21881 * ipa-icf.c (sem_function::equals_private): Call new functions
21882 cl_target_option_print_diff and cl_optimization_print_diff.
21883 * optc-save-gen.awk (cl_target_option_print_diff): New function.
21884 (cl_optimization_print_diff): Likewise.
21885 * opth-gen.awk: Likewise.
21886
21887 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
21888
21889 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
21890 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
21891 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
21892 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
21893 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
21894 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
21895
21896 2015-01-13 Andrew Pinski <apinski@cavium.com>
21897
21898 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
21899 instead of src mode.
21900
21901 2015-01-13 Richard Biener <rguenther@suse.de>
21902
21903 PR lto/64373
21904 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
21905 DECL_CONTEXT.
21906
21907 2015-01-13 Andrew Pinski <apinski@cavium.com>
21908
21909 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
21910 volatile mems.
21911 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21912
21913 2015-01-13 Jakub Jelinek <jakub@redhat.com>
21914
21915 PR middle-end/63974
21916 * cfgexpand.c (expand_computed_goto): Don't call
21917 convert_memory_address here.
21918
21919 2015-01-13 Richard Biener <rguenther@suse.de>
21920
21921 PR tree-optimization/64406
21922 * tree-loop-distibution.c (pass_loop_distribution::execute):
21923 Reset the SCEV hashtable if we distributed anything.
21924
21925 2015-01-13 Richard Biener <rguenther@suse.de>
21926
21927 PR tree-optimization/64404
21928 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
21929 SLP types for CSEd loads.
21930
21931 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21932
21933 PR tree-optimization/64436
21934 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
21935 merge of two symbolic numbers for a bitwise OR to ...
21936 (perform_symbolic_merge): This. Also fix computation of the range and
21937 end of the symbolic number corresponding to the result of a bitwise OR.
21938
21939 2015-01-13 Richard Biener <rguenther@suse.de>
21940
21941 PR tree-optimization/64568
21942 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
21943 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
21944
21945 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21946
21947 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
21948 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
21949
21950 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21951
21952 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
21953 target-specific symbol_ref flag.
21954 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
21955 resides in rodata section.
21956 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
21957 (nds32_encode_section_info): New function.
21958
21959 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21960
21961 * config/nds32/nds32.md (call): Use pseudo instruction bal which
21962 clobbers TA_REGNUM if large code model is specified.
21963 (call_register): Likewise.
21964 (call_immediate): Likewise.
21965 (call_value): Likewise.
21966 (call_value_register): Likewise.
21967 (call_value_immediate): Likewise.
21968
21969 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21970
21971 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
21972 (TARGET_CMODEL_MEDIUM): New macro.
21973 (TARGET_CMODEL_LARGE): New macro.
21974 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
21975 code model setting in assembly code.
21976
21977 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21978
21979 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21980 Remove MASK_GP_DIRECT flag.
21981 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
21982 one of the multilib default options.
21983 * config/nds32/nds32.opt (mgp-direct): Remove.
21984 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
21985 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
21986
21987 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21988
21989 * config/nds32/nds32.opt (mcmodel): Add new option.
21990 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
21991 to describe code model.
21992
21993 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
21994
21995 PR target/64479
21996 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
21997
21998 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
21999
22000 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22001 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22002 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22003 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22004 __builtin_sh_set_fpscr.
22005
22006 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22007
22008 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22009 after a funtion name just to indicate it is a function.
22010 ([-fsanitize-undefined-trap-on-error]): Likewise.
22011 ([-fdbg-cnt=]): Likewise.
22012 ([-mmemcpy]): Likewise.
22013 ([-mflush-func]): Likewise.
22014 ([-msynci]): Likewise.
22015
22016 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22017
22018 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22019 example.
22020
22021 2015-01-12 Jakub Jelinek <jakub@redhat.com>
22022
22023 PR tree-optimization/64563
22024 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22025 instead of != VR_VARYING.
22026
22027 PR target/64513
22028 * config/i386/i386.c (ix86_expand_prologue): Add
22029 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22030
22031 PR tree-optimization/64454
22032 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22033 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22034 for signed or [0, op1 - 1] for unsigned modulo.
22035 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22036 even if op1 does not satisfy integer_pow2p.
22037
22038 PR other/64370
22039 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22040
22041 2015-01-12 Jeff Law <law@redhat.com>
22042
22043 PR target/64461
22044 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22045 (trunchiqi2, truncsihi2): Similarly.
22046
22047 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22048 rather than calling F.
22049
22050 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
22051
22052 * tsan.c (instrument_expr): Use force_gimple_operand.
22053 Use may_be_nonaddressable_p instead of is_gimple_addressable.
22054
22055 2015-01-12 Richard Biener <rguenther@suse.de>
22056
22057 PR tree-optimization/64530
22058 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22059 back dr1.
22060
22061 2015-01-12 Richard Biener <rguenther@suse.de>
22062
22063 PR middle-end/64357
22064 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22065 latches properly.
22066
22067 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22068
22069 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22070 Cortex-A17 tuning parameters.
22071 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22072
22073 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22074
22075 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22076 * config/arm/arm.c (arm_macro_fusion_p): New function.
22077 (arm_macro_fusion_pair_p): Likewise.
22078 (TARGET_SCHED_MACRO_FUSION_P): Define.
22079 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22080 (ARM_FUSE_NOTHING): Likewise.
22081 (ARM_FUSE_MOVW_MOVT): Likewise.
22082 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22083 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22084 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22085 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22086 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22087 arm_cortex_a5_tune): Specify fuseable_ops value.
22088
22089 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
22090
22091 PR bootstrap/64561
22092 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22093 test for PIE with copy reloc.
22094 * configure: Regenerated.
22095
22096 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22097
22098 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22099 in gen_rtx_REG.
22100 (arm_tls_descseq_addr): Likewise.
22101 (arm_gen_movmemqi): Likewise.
22102 (arm_expand_epilogue_apcs_frame): Likewise.
22103 (arm_expand_epilogue): Likewise.
22104 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
22105 in gen_rtx_REG.
22106
22107 2015-01-12 Martin Liska <mliska@suse.cz>
22108
22109 PR ipa/64550
22110 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22111 volatility for correct operands.
22112
22113 2015-01-12 Martin Liska <mliska@suse.cz>
22114
22115 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22116 indication that a function is not leaf.
22117 (sem_function::compare_polymorphic_p): Likewise.
22118
22119 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22120
22121 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22122 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22123 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22124 fold-const.h, tree-check.h.
22125
22126 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22127
22128 PR ipa/63967
22129 PR ipa/64425
22130 * ipa-inline.c (compute_uninlined_call_time,
22131 compute_inlined_call_time): Use counts for extra precision when
22132 needed possible.
22133 (big_speedup_p): Fix formating.
22134 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22135 (relative_time_benefit): Remove.
22136 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22137 merge guessed and read profile paths.
22138 (inline_small_functions): Count only !optimize_size functions into
22139 initial size; be more lax about sanity check when profile is used;
22140 be sure to update inlined function profile when profile is read.
22141
22142 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22143
22144 PR ipa/63470
22145 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22146 cost when edge becomes direct.
22147 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22148 is resolved or when introducing new speculation.
22149
22150 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22151
22152 PR ipa/64551
22153 PR ipa/64552
22154 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22155 '||' to fix typo issue.
22156
22157 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22158 accept and return NULL.
22159
22160 2015-01-12 Martin Liska <mliska@suse.cz>
22161
22162 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22163 file for being inlined.
22164 (cgraph_set_edge_callee): Delete.
22165 (cgraph_edge::redirect_callee): Move function to header file
22166 for being inlined.
22167 (cgraph_edge::make_direct): Use new function.
22168 (cgraph_edge::dump_edge_flags): New function created from
22169 static dump_edge_flags function.
22170 (cgraph_node::dump): Use new function.
22171 (cgraph_edge::verify_count_and_frequency): New function created
22172 from verify_edge_count_and_frequency.
22173 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22174 from verify_edge_corresponds_to_fndecl.
22175 (verify_edge_corresponds_to_fndecl): Delete.
22176 (cgraph_node::verify_node): Use new function.
22177 * cgraph.h (cgraph_edge::set_callee): New function.
22178 (cgraph_edge::dump_edge_flags): Likewise.
22179 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22180
22181 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22182
22183 * ipa-utils.c (estimate_function_body_sizes): Do not
22184 free node params when called late with early=true.
22185
22186 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22187
22188 * doc/md.texi (Instruction Patterns): Rewrite text for
22189 clarity.
22190 (Example): Likewise.
22191
22192 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22193
22194 * doc/invoke.texi (Option Summary): Break long lines.
22195 [(-fdiagnostics-color)]: Put long literal in @smallexample
22196 instead of inline.
22197 [(-fsanitize-recover)]: Likewise.
22198 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22199 [(-ffast-math)]: Likewise.
22200 [(--param max-inline-insns-recursive)]: Likewise.
22201 [(--param max-inline-recursive-depth)]: Likewise.
22202 [(-mno-text-section-literals)]: Likewise.
22203
22204 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22205
22206 * doc/install.texi: Update for libgomp being renamed from "GNU
22207 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22208 Runtime Library".
22209 * doc/sourcebuild.texi: Likewise.
22210
22211 2015-01-10 Anthony Green <green@moxielogic.com>
22212
22213 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22214 mul.x availability for moxiebox configuration.
22215
22216 2015-01-09 Anthony Green <green@moxielogic.com>
22217
22218 * config/moxie/moxie.md: Tabify assembly output.
22219
22220 2015-01-09 Anthony Green <green@moxielogic.com>
22221
22222 * config/moxie/moxie.md (CC_REG): Correct register definition.
22223
22224 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22225
22226 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22227 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22228 of log files.
22229
22230 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22231
22232 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22233
22234 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22235 Jakub Jelinek <jakub@redhat.com>
22236
22237 PR middle-end/64412
22238 * lto-streamer.h (lto_stream_offload_p): New declaration.
22239 * lto-streamer.c (lto_stream_offload_p): New variable.
22240 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22241 at the same time as section_name_prefix.
22242 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22243 if lto_stream_offload_p.
22244 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22245 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22246 (write_ts_function_decl_tree_pointers): Don't
22247 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22248 * tree-streamer-in.c (unpack_value_fields): Don't stream
22249 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22250 (lto_input_ts_function_decl_tree_pointers): Don't stream
22251 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22252 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22253 instead of section_name_prefix string comparisons.
22254
22255 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22256
22257 PR rtl-optimization/64536
22258 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22259 tablejumps.
22260
22261 2015-01-09 Michael Collison <michael.collison@linaro.org>
22262
22263 PR tree-optimization/64322
22264 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22265 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22266
22267 2015-01-09 Tom de Vries <tom@codesourcery.com>
22268
22269 PR rtl-optimization/64539
22270 * regcprop.c (kill_clobbered_values): Factor out of ...
22271 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22272 instead of note_stores with kill_clobbered_value.
22273
22274 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22275
22276 * ginclude/unwind-arm-common.h: Revert previous commit.
22277
22278 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22279
22280 * config.gcc (arm*-*-freebsd*): New configuration.
22281 * config/arm/freebsd.h: New file.
22282 * config.host: Add extra components for arm*-*-freebsd*.
22283 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22284 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22285
22286 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22287
22288 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22289 for -mcpu=e6500.
22290 * config/rs6000/t-rtems: Add e6500 multilibs.
22291
22292 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22293
22294 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22295 MPC8540.
22296
22297 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22298
22299 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22300 MULTILIB_EXCEPTIONS.
22301
22302 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22303
22304 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22305 MULTILIB_EXCEPTIONS.
22306
22307 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22308
22309 * config/arm/t-rtems-eabi: Rename to...
22310 * config/arm/t-rtems: ...this.
22311 * config/arm/rtems-eabi.h: Rename to...
22312 * config/arm/rtems.h: ...this.
22313 * config.gcc (arm*-*-rtems*): Reflect changes above.
22314
22315 2015-01-09 Richard Biener <rguenther@suse.de>
22316
22317 PR tree-optimization/64410
22318 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22319 on the LHS.
22320 (execute_update_addresses_taken): Deal with that.
22321 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22322 loads/stores for complex variables.
22323
22324 2015-01-09 Martin Liska <mliska@suse.cz>
22325
22326 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22327 name comparison.
22328 (func_checker::compare_memory_operand): New function.
22329 (func_checker::compare_operand): Split case to newly
22330 added functions.
22331 (func_checker::compare_cst_or_decl): New function.
22332 (func_checker::compare_gimple_call): Identify
22333 memory operands.
22334 (func_checker::compare_gimple_assign): Likewise.
22335 * ipa-icf-gimple.h: New function.
22336
22337 2015-01-09 Martin Liska <mliska@suse.cz>
22338
22339 PR ipa/64503
22340 * sreal.c (sreal::dump): Change unsigned format to signed for
22341 m_exp value.
22342 (sreal::to_double): Replace exp2 with scalbln.
22343
22344 2015-01-09 Martin Liska <mliska@suse.cz>
22345
22346 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22347 * ipa-icf.c (sem_function::equals_private): Add support for target and
22348 (sem_item_optimizer::merge_classes): Remove redundant function
22349 optimization flags comparison.
22350 * tree.h (target_opts_for_fn): New function.
22351
22352 2015-01-09 Tom de Vries <tom@codesourcery.com>
22353
22354 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22355
22356 2015-01-09 Kito Cheng <kito@0xlab.org>
22357
22358 PR rtl-optimization/64348
22359 * lra-constraints.c (split_reg): Fix caller-save store/restore
22360 instruction generation.
22361
22362 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22363
22364 PR gcov-profile/61790
22365 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22366 long long. Fallback to int64_t if host doesn't have long long and
22367 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22368
22369 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22370
22371 PR tree-optimization/63989
22372 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22373 from 1000 to 10000.
22374 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22375 (get_stridx): If we don't have a record for certain SSA_NAME,
22376 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22377 constant offset, call get_stridx_plus_constant.
22378 (get_stridx_plus_constant): New function.
22379 (zero_length_string): Don't use get_stridx here.
22380
22381 PR target/55023
22382 PR middle-end/64388
22383 * dse.c (struct insn_info): Mention frame_read set also
22384 before reload for tail calls on some targets.
22385 (scan_insn): Revert 2014-12-22 change. Set frame_read
22386 also before reload for tail calls if
22387 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22388 instead of add_non_frame_wild_read for non-const/memset
22389 tail calls after reload.
22390
22391 2015-01-08 Jason Merrill <jason@redhat.com>
22392
22393 * ubsan.c (do_ubsan_in_current_function): New.
22394 (pass_ubsan::gate): Use it.
22395 * ubsan.h: Declare it.
22396 * convert.c (convert_to_integer): Use it.
22397
22398 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22399
22400 PR target/64338
22401 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22402 compare_code when it is unconditionally overwritten afterwards.
22403 Use ix86_reverse_condition instead of reverse_condition. Don't
22404 change code if *reverse_condition* returned UNKNOWN and don't
22405 swap ct/cf and negate diff in that case.
22406
22407 2015-01-08 Mike Stump <mikestump@comcast.net>
22408
22409 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22410 (pass_tsan_O0::gate): Likewise.
22411 * extend.texi (Function Attributes): Add no_sanitize_thread
22412 documentation.
22413
22414 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22415
22416 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22417 for registering builtins.
22418 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22419 add -fopenmp to the argv_obstack used when invoking
22420 compile_for_target.
22421
22422 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22423 add "-m32" or "-m64" to argv_obstack.
22424 (generate_host_descr_file): Likewise, when invoking host_compiler.
22425 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22426 ld.
22427
22428 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22429
22430 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22431 tstsi_t insns.
22432
22433 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22434
22435 PR target/55212
22436 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22437 constant load if constant operand fits into I08.
22438
22439 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22440
22441 PR sanitizer/64336
22442 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22443 and TREE_THIS_VOLATILE for MEM_REFs.
22444 (build5_stat): Fix up initialization of TREE_READONLY and
22445 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22446
22447 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22448
22449 PR target/64533
22450 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22451 of r for the second alternative of the destination operand.
22452
22453 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22454
22455 PR target/36557
22456 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22457
22458 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22459
22460 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22461 keywords.
22462 ([-fivar-visibility], [-fvisibility]): Likewise.
22463
22464 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22465
22466 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22467 the file where @code, @command, etc is more appropriate.
22468
22469 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22470
22471 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22472 of -mrecip= documentation.
22473
22474 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22475
22476 PR target/64505
22477 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22478 correct reload handler if -m32 -mpowerpc64 is used.
22479
22480 2015-01-06 Tom de Vries <tom@codesourcery.com>
22481
22482 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22483
22484 2015-01-08 Christian Bruel <christian.bruel@st.com>
22485
22486 PR target/64507
22487 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22488
22489 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22490
22491 PR tree-optimization/63259
22492 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22493 if optab exists for 16bit byteswap.
22494
22495 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22496
22497 * opts.c (common_handle_option): Add support for
22498 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22499 * doc/invoke.texi: Document -fno-sanitize=all,
22500 -f{,no-}sanitize-recover=all. Document that
22501 -fsanitize=float-cast-overflow is not enabled
22502 by -fsanitize=undefined. Fix up documentation
22503 of -f{,no-}sanitize-recover.
22504
22505 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22506
22507 * config.gcc: Add Visium support.
22508 * configure.ac: Likewise.
22509 * configure: Regenerate.
22510 * doc/extend.texi (interrupt attribute): Add Visium.
22511 * doc/invoke.texi: Document Visium options.
22512 * doc/install.texi: Document Visium target.
22513 * doc/md.texi: Document Visium constraints.
22514 * common/config/visium: New directory.
22515 * config/visium: Likewise.
22516
22517 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22518
22519 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22520 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22521
22522 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22523
22524 * combine.c (combine_validate_cost): Do not count the cost of a
22525 split I2 twice. Do not display it twice in the dump, either.
22526
22527 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22528
22529 Revert parts of r219199.
22530 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22531 <inttypes.h>.
22532 ([-Wtraditional]): Restore markup on <limits.h>.
22533
22534 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22535
22536 PR c++/31397
22537 * doc/invoke.texi: Document -Wsuggest-override.
22538
22539 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22540
22541 PR rtl-optimization/64287
22542 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22543 (process_options): Disable flag_ipa_ra if profiling.
22544
22545 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22546
22547 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22548
22549 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22550
22551 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22552 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22553 put under #if TARGET_LOOPS guard.
22554
22555 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22556
22557 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22558
22559 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22560
22561 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22562 * rtl.h (refers_to_regno_p): Add overload.
22563 * cse.c: Use it.
22564 * bt-load.c: Likewise.
22565 * combine.c: Likewise.
22566 * df-scan.c: Likewise.
22567 * sched-deps.c: Likewise.
22568 * config/s390/s390.c: Likewise.
22569 * config/m32r/m32r.c: Likewise.
22570 * config/rs6000/spe.md: Likewise.
22571 * config/rs6000/rs6000.c: Likewise.
22572 * config/pa/pa.c: Likewise.
22573 * config/stormy16/stormy16.c: Likewise.
22574 * config/cris/cris.c: Likewise.
22575 * config/arc/arc.md: Likewise.
22576 * config/arc/arc.c: Likewise.
22577 * config/sh/sh.md: Likewise.
22578 * config/sh/sh.c: Likewise.
22579 * config/frv/frv.c: Likewise.
22580
22581 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22582
22583 PR sanitizer/64265
22584 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22585 call as cleanup of the whole body.
22586 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22587 * tsan.c (replace_func_exit): New function.
22588 (instrument_func_exit): Moved earlier.
22589 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22590 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22591 been found.
22592 (tsan_pass): Don't call instrument_func_exit.
22593 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22594 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22595 inlining.
22596
22597 PR sanitizer/64344
22598 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22599 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22600 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22601 if the result is integer_zerop, return NULL_TREE.
22602 * convert.c (convert_to_integer): Pass expr as ARG.
22603
22604 PR tree-optimization/64465
22605 * tree-inline.c (redirect_all_calls): During inlining
22606 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22607 changed the stmt to a non-throwing call.
22608
22609 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22610
22611 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22612 etc markup throughout the file.
22613
22614 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22615
22616 Enable experimental TSAN support for Ada.
22617 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22618
22619 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22620
22621 PR tree-optimization/64494
22622 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22623 clear SSA_NAME_ANTI_RANGE_P flag.
22624
22625 2015-01-05 Marek Polacek <polacek@redhat.com>
22626
22627 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22628
22629 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22630
22631 Update copyright years.
22632
22633 * gcc.c (process_command): Update copyright notice dates.
22634 * gcov-dump.c: Ditto.
22635 * gcov.c: Ditto.
22636 * doc/cpp.texi: Bump @copying's copyright year.
22637 * doc/cppinternals.texi: Ditto.
22638 * doc/gcc.texi: Ditto.
22639 * doc/gccint.texi: Ditto.
22640 * doc/gcov.texi: Ditto.
22641 * doc/install.texi: Ditto.
22642 * doc/invoke.texi: Ditto.
22643
22644 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22645
22646 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22647
22648 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22649 verb tense, etc.
22650 ([-fvtable-verify], [-fvtv-debug]): Likewise.
22651 ([-Wabi]): Likewise.
22652 ([-fmessage-length]): Likewise.
22653 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22654 ([-Wno-discarded-qualifiers]): Likewise.
22655 ([-Wnodiscarded-array-qualifiers]): Likewise.
22656 ([-Wno-virtual-move-assign]): Likewise.
22657 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22658 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22659 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22660 ([-fsanitize-undefined-trap-on-error]): Likewise.
22661 ([-floop-interchange]): Likewise.
22662 ([-ftree-coalesce-inlined-vars]): Likewise.
22663 ([-fvect-cost-model]): Likewise.
22664 ([-flto]): Likewise.
22665 ([--param]): Likewise.
22666 (Spec Files): Likewise.
22667 ([-mstrict-align]): Likewise.
22668 ([-mfix-cortex-a53-835769]): Likewise.
22669 ([-march], [-mtune]): Likewise.
22670 ([-mpic-register]): Likewise.
22671 ([-munaligned-access]): Likewise.
22672 ([-msp8]): Likewise.
22673 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22674 (AVR Built-in Macros): Likewise.
22675 ([-mpreferred-stack-boundary]): Likewise.
22676 ([-mtune-crtl]): Likewise.
22677 ([-mashf]): Likewise.
22678 ([-mmcu=]): Likewise.
22679 ([-minrt]): Likewise.
22680 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22681 ([-mupper-regs]): Likewise.
22682 ([-matomic-model]): Likewise.
22683 ([-mdiv]): Likewise.
22684 ([-mzdcbranch]): Likewise.
22685 ([-mdisable-callt]): Likewise.
22686 ([-msoft-float]): Likewise.
22687 ([-m8byte-align]): Likewise.
22688 ([-fstack-reuse]): Likewise.
22689
22690 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22691
22692 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22693 Fix markup, light copy-editing.
22694 ([-fauto-profile]): Rewrite to fix formatting and content
22695 problems.
22696
22697 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22698
22699 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22700 Copy-edit description.
22701 ([-fisolate-erroneous-paths-attribute]): Likewise.
22702 * common.opt (fisolate-erroneous-paths-dereference):
22703 Copy-edit description.
22704 (fisolate-erroneous-paths-attribute): Likewise.
22705
22706 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22707
22708 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22709 tidy grammar.
22710
22711 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22712
22713 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22714 ([-fvtv-debug]): Likewise.
22715 ([-Wc++-compat]): Likewise.
22716 ([-Wc++11-compat]): Likewise.
22717 ([-Wc++14-compat]): Likewise.
22718 ([-Wno-sized-deallocation]): Likewise.
22719 ([-femit-class-debug-always]): Likewise.
22720 ([-femit-struct-debug-detailed]): Likewise.
22721 ([-fno-keep-inline-dllexport]): Likewise.
22722 ([-fira-algorithm]): Likewise.
22723 ([-fira-region]): Likewise.
22724 ([-flra-remat]): Likewise.
22725 ([-fipa-ra]): Likewise.
22726 ([-fhoist-adjacent-loads]): Likewise.
22727 ([-fisolate-erroneous-paths-dereference]): Likewise.
22728 ([-fisolate-erroneous-paths-attribute]): Likewise.
22729 ([-ftree-switch-conversion]): Likewise.
22730 ([-ftree-tail-merge]): Likewise.
22731 ([-ftree-loop-if-convert]): Likewise.
22732 ([-ftree-loop-if-convert-stores]): Likewise.
22733 ([-ftree-loop-distribution]): Likewise.
22734 ([-ftree-loop-distribute-patterns]): Likewise.
22735 ([-flto-compression-level]): Likewise.
22736 ([-flto-report]): Likewise.
22737 ([-flto-report-wpa]): Likewise.
22738 ([-fuse-linker-plugin]): Likewise.
22739 ([-mfix-cortex-a53-835769]): Likewise.
22740 ([-mno-fix-cortex-a53-835769]): Likewise.
22741 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22742 explicit listing; add a note to the discussion indicating they
22743 exist. Reorder table to group similar options. Add missing
22744 @opindex entries. Add @need commands throughout the table to
22745 allow it to be split across multiple pages.
22746 ([-m8bit-idiv]): Fix @opindex.
22747 ([-mavx256-split-unaligned-load]): Likewise.
22748 ([-mavx256-split-unaligned-store]): Likewise.
22749 ([-mstack-protector-guard]): Likewise.
22750 ([-mcpu=]): Likewise.
22751 ([-mcpu]): Likewise.
22752 ([-mpointer-size=]): Likewise.
22753
22754 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
22755
22756 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22757 instead of `m' constraint. Likewise for unnamed movb comparison
22758 patterns using reg_before_reload_operand predicate.
22759 * config/pa/predicates.md (reg_before_reload_operand): Tighten
22760 predicate to reject register index and LO_SUM DLT memory forms
22761 after reload.
22762
22763 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22764
22765 * doc/invoke.texi (Option Summary): Fix spelling of
22766 -fdevirtualize-at-ltrans.
22767 ([-fdevirtualize]): Fix markup.
22768 ([-fdevirtualize-speculatively]): Fix typo.
22769 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
22770 implementor-speaky.
22771 * common.opt (fdevirtualize-at-ltrans): Likewise.
22772 * ipa-devirt.c: Fix typos in comments throughout the file.
22773 (ipa_devirt): Fix typos in format strings for dump output.
22774
22775 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22776
22777 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22778 discussion of defaults, light copy-editing.
22779
22780 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22781
22782 * tsan.c (instrument_expr): corrected previous checkin.
22783
22784 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22785
22786 Instrument bit field and unaligned accesses for TSAN.
22787 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22788 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22789 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22790 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22791 unaligned memory regions.
22792
22793 2015-01-01 Anthony Green <green@moxielogic.com>
22794
22795 * config/moxie/predicates.md (moxie_general_movsrc_operand):
22796 Restrict move source register offsets to 16 bits.
22797 \f
22798 Copyright (C) 2015 Free Software Foundation, Inc.
22799
22800 Copying and distribution of this file, with or without modification,
22801 are permitted in any medium without royalty provided the copyright
22802 notice and this notice are preserved.