genmatch.c (struct capture_info): Add same_as field.
[gcc.git] / gcc / ChangeLog
1 2015-07-24 Richard Biener <rguenther@suse.de>
2
3 * genmatch.c (struct capture_info): Add same_as field.
4 (capture_info::capture_info): Initialize same_as.
5 (capture_info::walk_match): Compute same_as.
6 (capture_info::walk_result): Compute stuff for the leader.
7 (capture_info::walk_c_expr): Likewise.
8 (dt_simplify::gen_1): Only look at leaders when deciding
9 to force no side-effects or emit side-effects of omitted operands.
10
11 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12
13 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14 reg note to the GPR -> FPR save instructions.
15
16 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17
18 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19 cheaper.
20 (s390_expand_insv): Don't generate risbg pattern for constant zero
21 sources.
22 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
23 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
24 splitters.
25
26 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
27
28 * config/s390/s390.c (s390_reorg): Clean up handling of processors
29 with
30 -mtune=
31 (s390_issue_rate): Likewise.
32 (s390_sched_reorder): Likewise.
33 (s390_sched_variable_issue): Likewise.
34 (s390_loop_unroll_adjust): Likewise.
35 (s390_option_override): Likewise.
36
37 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
38
39 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
40 processor capabilities with -march=native.
41 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
42 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
43 (S390_TARGET_BITS_STRING): Macro to simplify specs.
44
45 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
46
47 * config/s390/s390.c (s390_issue_rate): Handle
48 PROCESSOR_2094_Z9_EC.
49 (s390_option_override): Likewise.
50 (s390_adjust_priority): Likewise.
51
52 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
53
54 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
55 when cross compiling.
56
57 2015-07-24 Richard Biener <rguenther@suse.de>
58
59 * fold-const.c (maybe_canonicalize_comparison_1): Move
60 A code CST canonicalization ...
61 * match.pd: ... to a pattern here.
62
63 2015-07-24 Jiong Wang <jiong.wang@arm.com>
64
65 Revert:
66 2015-07-22 Jiong Wang <jiong.wang@arm.com>
67 PR target/63521
68 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
69 (HONOR_REG_ALLOC_ORDER): Define.
70
71 2015-07-24 Richard Biener <rguenther@suse.de>
72
73 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
74 * fold-const.c (fold_comparison): Move parameter does not
75 alias &local simplification ...
76 * match.pd: ... as a pattern here.
77
78 2015-07-24 Richard Biener <rguenther@suse.de>
79
80 * gimple-fold.c (replace_stmt_with_simplification): Special-case
81 valueizing call operands.
82 * gimple-match-head.c (maybe_push_res_to_seq): Take
83 number of call arguments from ops array.
84 (do_valueize): New function.
85 (gimple_simplify): Return true if valueization changed
86 any operand even if the result didn't simplify further.
87
88 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
89
90 PR middle-end/25530
91 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
92
93 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
94
95 PR middle-end/25529
96 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
97
98 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
99
100 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
101 instruction.
102
103 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
104
105 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
106 clean up.
107
108 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
109
110 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
111 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
112 targets here.
113 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
114 ms_va_list_type_node initialization.
115
116 2015-07-23 Jeff Law <law@redhat.com>
117
118 PR lto/66752
119 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
120 unable to find X NE 0 in the tables, return X as the simplified
121 condition.
122 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
123 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
124 to VISISTED_BBS. */
125 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
126 after removing the control flow statement and unnecessary edges.
127
128 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
129
130 * tree-pass.h (get_current_pass_name): Removed.
131
132 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
133
134 PR rtl-optimization/64164
135 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
136 * tree-ssa-copyrename.c: Removed.
137 * opts.c (default_options_table): Drop -ftree-copyrename. Add
138 -ftree-coalesce-vars.
139 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
140 * common.opt (ftree-copyrename): Ignore.
141 (ftree-coalesce-inlined-vars): Likewise.
142 * doc/invoke.texi: Remove the ignored options above.
143 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
144 * tree-ssa-coalesce.h: ... here.
145 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
146 headers required by it.
147 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
148 across variables when flag_tree_coalesce_vars. Check register
149 use and promoted modes to allow coalescing. Moved to
150 tree-ssa-coalesce.c.
151 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
152 with its member functions to tree-ssa-coalesce.c.
153 (var_map_base_init): Likewise. Renamed to
154 compute_samebase_partition_bases.
155 (partition_view_normal): Drop want_bases parameter.
156 (partition_view_bitmap): Likewise.
157 * tree-ssa-live.h: Adjust declarations.
158 * tree-ssa-coalesce.c: Include explow.h.
159 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
160 default defs at the entry point.
161 (dump_part_var_map): New.
162 (compute_optimized_partition_bases): New, called by...
163 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
164 of compute_samebase_partition_bases. Adjust.
165 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
166 * cfgexpand.c (leader_merge): New.
167 (get_rtl_for_parm_ssa_default_def): New.
168 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
169 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
170 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
171 redundant MEM attr setting.
172 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
173 from...
174 (expand_one_stack_var): ... this. New wrapper to check and
175 skip already expanded SSA partitions.
176 (record_alignment_for_reg_var): New, factored out of...
177 (expand_one_var): ... this.
178 (expand_one_ssa_partition): New.
179 (adjust_one_expanded_partition_var): New.
180 (expand_one_register_var): Check and skip already expanded SSA
181 partitions.
182 (expand_used_vars): Don't create DECLs for anonymous SSA
183 names. Expand all SSA partitions, then adjust all SSA names.
184 (pass::execute): Replace the loops that set
185 SA.partition_to_pseudo from partition leaders and cleared
186 DECL_RTL for multi-location variables, and that which used to
187 rename vars and set attrs, with one that clears DECL_RTL and
188 checks that PARMs and RESULTs default_defs match DECL_RTL.
189 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
190 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
191 * explow.c (promote_ssa_mode): New.
192 * explow.h (promote_ssa_mode): Declare.
193 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
194 * function.c: Include cfgexpand.h.
195 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
196 (use_register_for_parm_decl): Wrapper for the above to
197 special-case the result_ptr.
198 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
199 (split_complex_args): Take assign_parm_data_all argument.
200 Pass it to rtl_for_parm. Set up rtl and context for split
201 args.
202 (assign_parms_augmented_arg_list): Adjust.
203 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
204 multiple locations. Recognize split complex args.
205 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
206 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
207 (assign_parm_setup_block): Prefer SSA-assigned location.
208 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
209 if stack_parm is NULL.
210 (assign_parm_setup_stack): Prefer SSA-assigned location.
211 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
212 rtl before testing for pointer bounds. Special-case result_ptr.
213 (expand_function_start): Maybe reset DECL_RTL of result.
214 Prefer SSA-assigned location for result and static chain.
215 Factor out DECL_RESULT and SET_DECL_RTL.
216 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
217 anonymous SSA names. Use promote_ssa_mode.
218 (get_temp_reg): Likewise.
219 (remove_ssa_form): Adjust.
220 * stor-layout.c (layout_decl): Don't set mem attributes of
221 non-MEMs.
222 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
223 and get its reg_usage for reg invalidation.
224 (compute_bb_dataflow): Pass it insn.
225 (emit_notes_in_bb): Likewise.
226
227 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
228
229 PR target/66217
230 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
231 prototype.
232 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
233 (rs6000_emit_2insn_and): Handle dot forms.
234 * config/rs6000/rs6000.md (and<mode>3): Adjust.
235 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
236 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
237
238 2015-07-23 Richard Biener <rguenther@suse.de>
239
240 * generic-match-head.c: Include cgraph.h.
241 * gimple-match-head.c: Likewise.
242 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
243 SSA names.
244 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
245 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
246 pattern.
247
248 2015-07-23 Richard Biener <rguenther@suse.de>
249
250 * gimple-fold.c (fold_gimple_cond): Do not require folding
251 results to pass valid_gimple_rhs_p.
252 * tree-cfg.h (fold_cond_expr_cond): Remove.
253 * tree-cfg.c (fold_cond_expr_cond): Likewise.
254 (make_edges): Do not call it.
255 * tree-inline.c (tree_function_versioning): Likewise.
256
257 2015-07-23 Tom de Vries <tom@codesourcery.com>
258
259 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
260 vect_force_simple_reduction.
261 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
262 (vect_is_simple_reduction_1): Add and handle
263 need_wrapping_integral_overflow parameter.
264 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
265 need_wrapping_integral_overflow parameter.
266 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
267 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
268 decl.
269
270 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
271
272 PR tree-optimization/66926,66951
273 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
274 INNER_LOOP and fix up condition for renaming virtual operands.
275
276 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
277
278 * combine.c (try_combine): Use std::swap instead of manually
279 swapping.
280
281 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
282
283 * config/mips/i6400.md: New file.
284 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
285 (mips64r6): Likewise.
286 (i6400): Define.
287 * config/mips/mips-tables.opt: Regenerate.
288 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
289 (mips_issue_rate): Add support for i6400.
290 (mips_multipass_dfa_lookahead): Likewise.
291 * config/mips/mips.h (TUNE_I6400): Define.
292 * config/mips/mips.md: Include i6400.md.
293 (processor): Add i6400.
294 * doc/invoke.texi (-march=@var{arch}): Add i6400.
295
296 2015-07-23 Richard Biener <rguenther@suse.de>
297
298 PR middle-end/66916
299 * match.pd: Guard widen and sign-change comparison simplification
300 with single_use.
301
302 2015-07-23 Richard Biener <rguenther@suse.de>
303
304 PR tree-optimization/66945
305 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
306 ::before_dom_children): Force the propagators idea of
307 non-executable edges to materialize, not what the folder
308 chooses.
309
310 2015-07-23 Richard Biener <rguenther@suse.de>
311
312 * gimple.h (gimple_cond_make_false): Use 0 != 0.
313 (gimple_cond_make_true): Use 1 != 0.
314
315 2015-07-22 DJ Delorie <dj@redhat.com>
316
317 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
318 slashes.
319
320 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
321 (ashrhi3): Likewise.
322 (lshrhi3): Likewise.
323 (movhi): Take advantage of zero-extend to load small constants.
324 (movpsi): Likewise.
325 (and<mode>3): Likewise.
326 (zero_extendqihi2): Likewise.
327 (zero_extendqisi2): New.
328 * config/msp430/constraints.md (N,O): New.
329 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
330
331 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
332
333 PR target/66954
334 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
335 to enum feature_priority and feature_list.
336 (fold_builtin_cpu): Add F_AES to enum processor_features
337 and isa_names_table.
338
339 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
340
341 PR driver/66737
342 * config/i386/linux-common.h (MPX_SPEC): Use linker option
343 for 64bit target only.
344
345 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
346
347 * config/nvptx/nvptx.c: Expand some comments.
348
349 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
350
351 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
352 (cortex_a53_advsimd): ...This.
353
354 2015-07-22 Richard Biener <rguenther@suse.de>
355
356 * genmatch.c (expr::gen_transform): Clarify error message
357 and display location.
358
359 2015-07-22 Richard Biener <rguenther@suse.de>
360
361 * genmatch.c (struct operand): Add location member.
362 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
363 constructors.
364 (struct simplify): Remove match_location and result_location
365 members.
366 (elsehwere): Adjust.
367
368 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
369
370 * config/mips/m5100.md: New file.
371 * config/mips/mips-cpus.def (m5100, m5101): Define.
372 * config/mips/mips-tables.opt: Regenerate.
373 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
374 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
375 -march=m5101 to -mips32r5.
376 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
377 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
378 !-msoft-float.
379 * config/mips/mips.md: Include m5100.md.
380 (processor): Add m5100.
381 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
382
383 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
384
385 * config/mips/mips-cpus.def (interaptiv): Define.
386 * config/mips/mips-tables.opt: Regenerate.
387 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
388 -mips32r2.
389 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
390 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
391
392 2015-07-22 Jiong Wang <jiong.wang@arm.com>
393
394 PR target/63521
395 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
396 (HONOR_REG_ALLOC_ORDER): Define.
397
398 2015-07-22 Richard Biener <rguenther@suse.de>
399
400 PR tree-optimization/66952
401 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
402 blocks we end up executing unconditionally reset all SSA
403 info such as range and alignment.
404 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
405 * tree-ssanames.c (reset_flow_sensitive_info): New function.
406
407 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
408
409 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
410 typo in attribute.
411
412 2015-07-22 Richard Biener <rguenther@suse.de>
413
414 * genmatch.c (parser::parse_result): Properly handle
415 match with result operands and conditions.
416
417 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
418
419 PR target/63870
420 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
421 Add qualifier_struct_load_store_lane_index.
422 (aarch64_types_loadstruct_lane_qualifiers): Use
423 qualifier_struct_load_store_lane_index for lane index argument for
424 last argument.
425 (aarch64_types_storestruct_lane_qualifiers): Ditto.
426 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
427 (aarch64_simd_expand_args): Add new argument describing mode of
428 builtin. Check lane bounds for arguments with
429 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
430 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
431 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
432 (aarch64_simd_expand_builtin): Handle arguments with
433 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
434 aarch64_simd_expand_args.
435 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
436 vst[234]_lane with BUILTIN_VALLDIF.
437 * config/aarch64/aarch64-simd.md:
438 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
439 endianness reversal on lane index.
440 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
441 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
442 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
443 (vec_store_lanesci_lane<mode>): Ditto.
444 (vec_store_lanesxi_lane<mode>): Ditto.
445 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
446 reversal of lane index.
447 (aarch64_ld3_lane<mode>): Ditto.
448 (aarch64_ld4_lane<mode>): Ditto.
449 (aarch64_st2_lane<mode>): Ditto.
450 (aarch64_st3_lane<mode>): Ditto.
451 (aarch64_st4_lane<mode>): Ditto.
452 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
453 to qmode. Add new mode parameter. Update uses.
454 (__LD3_LANE_FUNC): Ditto.
455 (__LD4_LANE_FUNC): Ditto.
456 (__ST2_LANE_FUNC): Ditto.
457 (__ST3_LANE_FUNC): Ditto.
458 (__ST4_LANE_FUNC): Ditto.
459
460 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
461
462 * doc/invoke.texi (Language Independent Options): Rename node to
463 Diagnostic Message Formatting Options.
464
465 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
466
467 PR ipa/66424.
468 * lra-remat.c (operand_to_remat): Prevent using insns with input
469 subregs processed separately by IRA.
470
471 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
472
473 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
474 straight loops.
475 (single_imm_use): Check for iterator node.
476 (num_imm_uses): Likewise.
477 * tree-ssa-operands.c (has_zero_uses_1): Delete.
478 (single_imm_use_1): Check for iterator node.
479
480 2015-07-21 Mike Frysinger <vapier@gentoo.org>
481 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
482
483 * configure.ac: Add check for new options in isl-0.15.
484 * config.in, configure: Rebuilt.
485 * graphite-blocking.c: Include <isl/constraint.h>
486 * graphite-interchange.c, graphite-poly.c: Likewise.
487 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
488 * graphite.c: Likewise.
489 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
490 <isl/union_set.h>.
491 * graphite-dependences.c: Include <isl/constraint.h>.
492 (max_number_of_out_dimensions): Returns isl_stat.
493 (extend_schedule_1): Likewise
494 (extend_schedule): Corresponding changes.
495 * graphite-optimize-isl.c: Include <isl/constraint.h> and
496 <isl/union_set.h>.
497 (getSingleMap): Change return type of isl_stat.
498 (optimize_isl): Conditionally use
499 isl_options_set_schedule_serialize_sccs.
500 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
501 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
502
503 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
504
505 PR target/66956
506 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
507 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
508
509 2015-07-21 Richard Biener <rguenther@suse.de>
510
511 PR tree-optimization/66948
512 * genmatch.c (capture_info::walk_match): Also recurse to
513 captures. Properly compute expr state from captures of
514 captures.
515 * match.pd: Add single-use guards to
516 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
517
518 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
519
520 * config/nvptx/mkoffload.c (process): Add static destructor call.
521
522 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
523
524 PR middle-end/66915
525 * match.pd (A - B -> A + (-B)): Don't allow folding
526 when type if a fixed-point type.
527
528 2015-07-20 DJ Delorie <dj@redhat.com>
529
530 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
531 (iorqi3_real): Likewise for set1.
532
533 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
534
535 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
536 for !TARGET_64BIT.
537
538 2015-07-20 Aditya Kumar <hiraditya@msn.com>
539
540 * graphite-isl-ast-to-gimple.c:
541 Refactor so that each function can access 'region'. This will help
542 maintain a parameter rename_map within a region.
543
544 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
545
546 * config/rs6000/rs6000.md (*lt0_disi): New.
547
548 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
549
550 PR target/66217
551 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
552 "available letters" comment.
553 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
554 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
555 and_2rld_operand): Delete.
556 (and_operand): Adjust.
557 (rotate_mask_operator): New.
558 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
559 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
560 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
561 extract_ME): Delete.
562 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
563 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
564 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
565 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
566 rs6000_emit_2insn_and): New.
567 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
568 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
569 includes_rldic_lshift_p, includes_rldicr_lshift_p,
570 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
571 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
572 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
573 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
574 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
575 rs6000_emit_2insn_and): New.
576 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
577 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
578 handling.
579 <NOT>: Don't fall through to next case.
580 <AND>: Handle the various rotate-and-mask cases directly.
581 <IOR>: Always cost as one insn.
582 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
583 (and<mode>3): Adjust expander for the new patterns.
584 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
585 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
586 (*and<mode>3_imm_dot_shifted): New.
587 (*and<mode>3_mask): Delete, rewrite as ...
588 (and<mode>3_mask): ... New.
589 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
590 (andsi3_internal0_nomc): Delete.
591 (*andsi3_internal6): Delete.
592 (*and<mode>3_2insn): New.
593 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
594 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
595 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
596 *insvdi_internal3): Delete.
597 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
598 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
599 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
600 *ior<mode>_mask): New.
601 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
602 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
603 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
604 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
605 Delete.
606 (ashr<mode>3): Delete expander.
607 (*ashr<mode>3): Rename to ...
608 (ashr<mode>3): ... This.
609 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
610 (*rotldi3_internal4, *rotldi3_internal5 and split,
611 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
612 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
613 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
614 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
615 (splitter for loading a mask): Adjust.
616 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
617
618 2015-07-20 Marek Polacek <polacek@redhat.com>
619
620 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
621 output_add_clobbers, output_added_clobbers_hard_reg_p,
622 gen_rtx_scratch): Remove declarations.
623
624 2015-07-20 Marek Polacek <polacek@redhat.com>
625
626 PR c++/55095
627 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
628
629 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
630
631 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
632 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
633
634 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
635
636 * combine.c (combine_simplify_rtx): Move simplification step
637 before various transformations/substitutions.
638
639 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
640
641 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
642 (struct int_traits): Likewise.
643
644 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
645
646 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
647 function to vmsdbgout_function_decl.
648
649 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
650
651 PR target/66922
652 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
653 from misaligned positions.
654 (ix86_expand_pinsr): Reject insertions to misaligned positions.
655
656 2015-07-18 Sebastian Pop <s.pop@samsung.com>
657
658 PR middle-end/46851
659 PR middle-end/60340
660 * Makefile.in: Removed omega.o.
661 * common.opt: Document flag fcheck-data-deps as deprecated.
662 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
663 its associated params: omega-max-vars, omega-max-geqs,
664 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
665 omega-max-keys, omega-eliminate-redundant-constraints.
666 * doc/loop.texi: Remove all the section on Omega.
667 * graphite-blocking.c: Include missing params.h: it used to be
668 included through tree-data-ref.h and omega.h.
669 * graphite-isl-ast-to-gimple.c: Same.
670 * graphite-optimize-isl.c: Same.
671 * graphite-sese-to-poly.c: Same.
672 * graphite.c: Same.
673 * omega.c: Remove.
674 * omega.h: Remove.
675 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
676 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
677 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
678 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
679 * passes.def: Remove pass_check_data_deps.
680 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
681 (dump_conflict_function): Same.
682 (dump_subscript): Same.
683 (print_direction_vector): Same.
684 (print_dir_vectors): Same.
685 (print_lambda_vector): Same.
686 (print_dist_vectors): Same.
687 (dump_data_dependence_relation): Same.
688 (dump_data_dependence_relations): Same.
689 (dump_dist_dir_vectors): Same.
690 (dump_ddrs): Same.
691 (init_omega_eq_with_af): Removed.
692 (omega_extract_distance_vectors): Removed.
693 (omega_setup_subscript): Removed.
694 (init_omega_for_ddr_1): Removed.
695 (init_omega_for_ddr): Removed.
696 (ddr_consistent_p): Removed.
697 (compute_affine_dependence): Do not use omega to check data
698 dependences.
699 (compute_data_dependences_for_bb): Removed.
700 (analyze_all_data_dependences): Removed.
701 (tree_check_data_deps): Removed.
702 * tree-data-ref.h: Do not include omega.h.
703 (compute_data_dependences_for_bb): Removed.
704 (tree_check_data_deps): Removed.
705 * tree-ssa-loop.c (pass_check_data_deps): Removed.
706 (make_pass_check_data_deps): Removed.
707 * tree-ssa-phiopt.c: Include params.h.
708 * tree-vect-data-refs.c: Same.
709 * tree-vect-slp.c: Same.
710
711 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
712
713 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
714 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
715 (mem->fpreg splitters): Ditto.
716 (general_operand->nonimmediate_operand splitter): Use explicit modes.
717 Disable DFmode for TARGET_64BIT.
718
719 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
720
721 PR target/66906
722 * config/i386/i386.c (ix86_expand_prologue): Replicate static
723 chain on the stack.
724
725 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
726
727 * config/nvptx/mkoffload.c (process): Constify host data.
728 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
729 Constify host data.
730 (generate_host_descr_file): Likewise.
731
732 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
733 Sebastian Pop <s.pop@samsung.com>
734
735 PR middle-end/61929
736 * graphite-dependences.c (add_pdr_constraints): Renamed
737 pdr->extent to pdr->subscript_sizes.
738 * graphite-interchange.c (build_linearized_memory_access): Add
739 back all gcc_assert's that the "isl_int to isl_val conversion"
740 patch has removed. Refactored.
741 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
742 * graphite-poly.c (new_poly_dr): Same.
743 (free_poly_dr): Same.
744 * graphite-poly.h (struct poly_dr): Same.
745 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
746 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
747 * graphite-scop-detection.h: Fix space.
748 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
749 back all gcc_assert's removed by a previous patch.
750 (wrap): Remove the_isl_ctx global variable that the same patch has
751 added.
752 (build_loop_iteration_domains): Same.
753 (add_param_constraints): Same.
754 (pdr_add_data_dimensions): Same. Refactored.
755 (build_poly_dr): Renamed extent to subscript_sizes.
756
757 2015-07-17 Marek Polacek <polacek@redhat.com>
758
759 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
760 * match.pd: ... here.
761
762 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
763
764 * config/nvptx/mkoffload.c (process): Constify target data.
765 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
766 Constify target data.
767 (generate_target_offloadend_file): Likewise.
768
769 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
770
771 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
772 to allow renaming of PHI arguments on edges incoming from outer
773 loop header, add corresponding check before start PHI iterator.
774 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
775 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
776 with true force_vectorize. Set-up dominator for outer loop too.
777 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
778 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
779 was marked with force_vectorize and has restricted cfg.
780 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
781 inner loop.
782 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
783 do peeling for outer loops.
784
785 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
786 Matthias Klose <doko@ubuntu.com>
787
788 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
789 build-sysroot, sysroot from the `Miscenalleous configure options' to
790 the `Directories' section and strip trailing `/' from with_sysroot.
791 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
792 * configure: Regenerated.
793
794 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
795
796 PR target/66824
797 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
798 (TARGET_HARD_DF_REGS): Ditto.
799 (TARGET_HARD_XF_REGS): Ditto.
800 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
801 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
802 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
803 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
804 (*movsf_internal): Add alternatives 16 and 17. Enable
805 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
806
807 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
808
809 PR rtl-optimization/66891
810 * calls.c (expand_call): Wrap precompute_register_parameters with
811 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
812
813 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
814
815 * config/nvptx/mkoffload.c (process): Constify mapping variables.
816 Define target data struct and initialize it.
817
818 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
819
820 PR rtl-optimization/66626
821 * ira.h (emit-rtl.h): Include.
822 (non_spilled_static_chain_regno_p): New.
823 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
824 unless it is non spilled static chain pseudo.
825 (assign_hard_rego): Spill memory profitable allocno unless it is
826 non spilled static chain pseudo.
827 (allocno_spill_priority_compare): Put non spilled static chain
828 pseudo at the end of sorted array.
829 (improve_allocation): Do nothing if we have static chain and
830 non-local goto.
831 (allocno__priority_compare_func): Put non spilled static chain
832 pseudo at the beginning of sorted array.
833 (move_spill_restore): Ignore non spilled static chain pseudo.
834 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
835 to non spilled static chain pseudo.
836 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
837 pseudo at the beginning of sorted array.
838 (spill_for): Spill non spilled static chain pseudo last.
839 * lra-constraints.c (lra_constraints): Remove static chain pseudo
840 check for equivalence.
841
842 2015-07-16 Martin Liska <mliska@suse.cz>
843
844 PR ipa/66896.
845 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
846 dst_ctx if it does not exist.
847
848 2015-07-16 Martin Liska <mliska@suse.cz>
849
850 * hash-set.h (remove): New function.
851 (iterator): New iteration class for hash_set.
852
853 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
854
855 * genattrtab.c (make_canonical): Add a file_location parameter.
856 Use fatal_at rather than fatal.
857 (get_attr_value): Likewise. Update call to make_canonical.
858 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
859 (make_internal_attr): Update calls accordingly.
860
861 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
862
863 * read-md.h (message_with_line, error_with_line): Delete.
864 * read-md.c (message_with_line, error_with_line): Delete.
865 * gensupport.h: Include read-md.h.
866 (md_rtx_info): New structure.
867 (read_md_rtx): Use it. Return a bool success value.
868 * gensupport.c (read_md_rtx): Likewise.
869 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
870 (main): Update after interface changes.
871 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
872 (main): Update after interface changes.
873 * genattrtab.c (insn_code_number): Delete.
874 (optimize_attrs): Add a max_insn_code parameter and use it instead
875 of insn_code_number.
876 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
877 Use *_at rather than *_with_line functions.
878 (gen_insn): Likewise.
879 (gen_delay): Likewise.
880 (gen_insn_reserv): Likewise.
881 (gen_bypass): Take an md_rtx_info rather than an rtx.
882 (main): Update after interface changes. Use a local max_insn_code
883 variable instead of insn_code_number.
884 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
885 an rtx. Use fatal_at rather than fatal.
886 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
887 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
888 (gen_absence_set, gen_final_absence_set, gen_automaton)
889 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
890 (main): Update after interface changes.
891 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
892 and code number.
893 (main): Update after interface changes.
894 * genconditions.c (main): Use new read_md_rtx interface.
895 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
896 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
897 (main): Update after interface changes.
898 * genemit.c (insn_code_number, insn_index_number): Delete.
899 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
900 Use fatal_at rather than fatal.
901 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
902 rather than fatal.
903 (gen_split): Likewise.
904 (main): Update after interface changes.
905 * genextract.c (line_no): Delete.
906 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
907 Update call to walk_rtx.
908 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
909 rather than message_with_line.
910 (walk_rtx): Add an md_rtx_info argument. Update call to
911 VEC_safe_set_locstr.
912 (main): Update after interface changes.
913 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
914 and lineno. Use error_at rather than separate message_with_line
915 calls and have_error assignments.
916 (main): Update after interface changes.
917 * genmddump.c (main): Use new read_md_rtx interface.
918 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
919 (main): Update after interface changes.
920 * genoutput.c (next_code_number): Delete.
921 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
922 (gen_peephole, gen_expand, gen_split): Likewise.
923 (note_constraint): Likewise. Use *_at rather than *_with_line
924 functions.
925 (main): Update after interface changes.
926 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
927 rtx and lineno.
928 (main): Update after interface changes.
929 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
930 than an rtx and lineno.
931 (process_define_constraint): Likewise.
932 (process_define_register_constraint): Likewise.
933 (main): Update after interface changes.
934 * genrecog.c (next_insn_code, pattern_lineno): Delete.
935 (validate_pattern): Replace top-level rtx with an md_rtx_info.
936 Use *_at rather than *_with_line functions.
937 (match_pattern_2): Likewise.
938 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
939 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
940 Use *_at rather than *_with_line functions.
941 * gentarget-def.c (add_insn): New function.
942 (main): Use it. Use new read_md_rtx interface.
943
944 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
945
946 * gensupport.h (compute_test_codes): Take a file_location rather
947 than a line number.
948 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
949 rather than *_with_line functions.
950 (process_define_predicate): Update call to compute_test_codes.
951 * genpreds.c (validate_exp): Take a file_location rather than a
952 line number. Use *_at functions rather than *_with_line functions.
953 (process_define_predicate): Update call to validate_exp.
954 (constraint_data): Replace lineno field with a file_location.
955 (add_constraint): Take a file_location rather than a line number.
956 Use *_at functions rather than *_with_line functions. Fix error
957 message for address constraints. Update after changes to
958 validate_exp, constraint_data and compute_test_codes.
959 (process_define_constraint): Update accordingly.
960 (process_define_register_constraint): Likewise.
961
962 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
963
964 * genoutput.c (data): Use a file_location to record the source
965 position.
966 (nothing): Delete.
967 (idata, idata_end): Remove initialization.
968 (constraint_data): Replace lineno with a file_location.
969 (output_insn_data): Update after changes to data.
970 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
971 (scan_operands): Likewise, using *_at rather than *_with_line
972 functions.
973 (process_template): Likewise.
974 (validate_insn_alternatives): Likewise.
975 (validate_insn_operands): Likewise.
976 (validate_optab_operands): Likewise.
977 (init_insn_for_nothing): Initialize idata and idata_end.
978 (note_constraint): Update after changes to constraint_data,
979 using at rather than with_line functions.
980 (mdep_constraint_len): Take a file_location rather than a
981 line number. Use at rather than with_line functions.
982
983 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
984
985 * read-md.h (fatal_at): Declare.
986 * read-md.c (fatal_at): New function.
987 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
988 to record the source position.
989 (check_attr_test): Take a file_location instead of a line number.
990 Use fatal_at instead of fatal.
991 (check_attr_value): Update after above changes, using "at"
992 rather than "with_line" reporting functions.
993 (convert_set_attr_alternative): Likewise.
994 (gen_attr): Likewise.
995 (check_defs): Likewise. Don't assign to read_md_filename.
996 (gen_insn): Update initialization after above changes.
997 (gen_delay): Likewise.
998 (write_insn_cases): Print the filename for a define_peephole.
999 (gen_insn_reserv): Take a line number as argument and update
1000 the call to check_attr_test.
1001 (main): Pass a line number to gen_insn_reserv.
1002
1003 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1004
1005 * read-md.h (file_location): New structure.
1006 (directive_handler_t): Take a file_location rather than a line number.
1007 (message_at, error_at): Declare.
1008 (read_skip_construct): Delete.
1009 * read-md.c (message_with_line_1): Replace with...
1010 (message_at_1): ...this new function.
1011 (message_at, error_at): New functions.
1012 (message_with_line, error_with_line): Update to use message_at_1.
1013 (handle_enum): Take a file_location rather than a line number
1014 and use error_at for error reporting.
1015 (handle_include): Likewise.
1016 (read_skip_construct): Likewise. Make static.
1017 (handle_file): Update after above changes. Pass a file_location
1018 rather than a line number to handle_directive.
1019 * gensupport.c (queue_elem): Replace separate filename and lineno
1020 with a file_location.
1021 (queue_pattern): Replace filename and lineno arguments with a
1022 file_location. Update after change to queue_elem.
1023 (process_define_predicate): Replace lineno argument with a
1024 file_location and use error_at for error reporting. Update
1025 after above changes.
1026 (process_rtx): Likewise.
1027 (subst_pattern_match): Likewise.
1028 (get_alternatives_number): Likewise.
1029 (alter_predicate_for_insn): Likewise.
1030 (rtx_handle_directive): Likewise.
1031 (is_predicable): Update after above changes, using error_at rather
1032 than error_with_line.
1033 (has_subst_attribute): Likewise.
1034 (identify_predicable_attribute): Likewise.
1035 (alter_attrs_for_subst_insn): Likewise.
1036 (process_one_cond_exec): Likewise.
1037 (process_substs_on_one_elem): Likewise.
1038 (process_define_subst): Likewise.
1039 (check_define_attr_duplicates): Likewise.
1040 (read_md_rtx): Update after change to queue_elem.
1041
1042 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1043
1044 * genoutput.c (next_index_number): Delete.
1045 (data): Remove index_number.
1046 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1047 (main): Remove manipulation of next_index_number.
1048
1049 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1050
1051 * genattrtab.c (check_attr_value): Remove handling of null attrs.
1052 (make_canonical): Likewise.
1053
1054 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
1055
1056 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1057 instead of adjust_address_nv.
1058 (restore_stack_nonlocal): Likewise.
1059 (nonlocal_goto): Likewise.
1060
1061 2015-07-16 Tom de Vries <tom@codesourcery.com>
1062
1063 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1064 not have a corresponding loop header phi.
1065
1066 2015-07-16 Tom de Vries <tom@codesourcery.com>
1067
1068 * tree-parloops.c (create_loads_for_reductions): Handle case that
1069 reduction is unused.
1070
1071 2015-07-16 Richard Biener <rguenther@suse.de>
1072
1073 PR tree-optimization/66894
1074 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1075 about deriving NE_EXPR from truncated values.
1076
1077 2015-07-16 Martin Liska <mliska@suse.cz>
1078
1079 * alloc-pool.h
1080 (object_allocator): Add new class.
1081 (pool_allocator::initialize): Use the underlying class.
1082 (pool_allocator::allocate): Likewise.
1083 (pool_allocator::remove): Likewise.
1084 (operator new): A new generic allocator.
1085 * asan.c (struct asan_mem_ref): Remove unused members.
1086 (asan_mem_ref_new): Replace new operator with
1087 object_allocator::allocate.
1088 (free_mem_ref_resources): Change deallocation.
1089 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1090 with object_allocator.
1091 * config/sh/sh.c (add_constant): Replace new operator with
1092 object_allocator::allocate.
1093 (sh_reorg): Change call to a release method.
1094 * cselib.c (struct elt_list): Remove unused members.
1095 (new_elt_list): Replace new operator with
1096 object_allocator::allocate.
1097 (new_elt_loc_list): Likewise.
1098 (new_cselib_val): Likewise.
1099 (unchain_one_elt_list): Change delete operator with remove method.
1100 (unchain_one_elt_loc_list): Likewise.
1101 (unchain_one_value): Likewise.
1102 (cselib_finish): Release newly added static allocators.
1103 * cselib.h (struct cselib_val): Remove unused members.
1104 (struct elt_loc_list): Likewise.
1105 * df-problems.c (df_chain_alloc): Replace pool_allocator with
1106 object_allocator.
1107 * df-scan.c (struct df_scan_problem_data): Likewise.
1108 (df_scan_alloc): Likewise.
1109 * df.h (struct dataflow): Likewise.
1110 * dse.c (struct read_info_type): Likewise.
1111 (struct insn_info_type): Likewise.
1112 (struct dse_bb_info_type): Likewise.
1113 (struct group_info): Likewise.
1114 (struct deferred_change): Likewise.
1115 (get_group_info): Likewise.
1116 (delete_dead_store_insn): Likewise.
1117 (free_read_records): Likewise.
1118 (replace_read): Likewise.
1119 (check_mem_read_rtx): Likewise.
1120 (scan_insn): Likewise.
1121 (dse_step1): Likewise.
1122 (dse_step7): Likewise.
1123 * et-forest.c (struct et_occ): Remove unused members.
1124 (et_new_occ): Use allocate instead of new operator.
1125 (et_new_tree): Likewise.
1126 (et_free_tree): Call release method explicitly.
1127 (et_free_tree_force): Likewise.
1128 (et_free_pools): Likewise.
1129 (et_split): Use remove instead of delete operator.
1130 * et-forest.h (struct et_node): Remove unused members.
1131 * ipa-cp.c: Change pool_allocator to object_allocator.
1132 * ipa-inline-analysis.c: Likewise.
1133 * ipa-profile.c: Likewise.
1134 * ipa-prop.c: Likewise.
1135 * ipa-prop.h: Likewise.
1136 * ira-build.c (initiate_cost_vectors): Cast return value.
1137 (ira_allocate_cost_vector): Likewise.
1138 * ira-color.c (struct update_cost_record): Remove unused members.
1139 * lra-int.h (struct lra_live_range): Likewise.
1140 (struct lra_copy): Likewise.
1141 (struct lra_insn_reg): Likewise.
1142 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1143 * lra.c (new_insn_reg): Replace new operator with allocate method.
1144 (free_insn_regs): Same for operator delete.
1145 (finish_insn_regs): Release new static allocator.
1146 (finish_insn_recog_data): Likewise.
1147 (lra_free_copies): Replace delete operator with remove method.
1148 (lra_create_copy): Replace operator new with allocate method.
1149 (invalidate_insn_data_regno_info): Same for remove method.
1150 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1151 (free_debug_insn_changes): Replace delete operator with remove method.
1152 (replace_oldest_value_reg): Replace operator new with allocate method.
1153 (pass_cprop_hardreg::execute): Release new static variable.
1154 * sched-deps.c (sched_deps_init): Change pool_allocator to
1155 object_allocator.
1156 * sel-sched-ir.c: Likewise.
1157 * sel-sched-ir.h: Likewise.
1158 * stmt.c (expand_case): Likewise.
1159 (expand_sjlj_dispatch_table): Likewise.
1160 * tree-sra.c (struct access): Remove unused members.
1161 (struct assign_link): Likewise.
1162 (sra_deinitialize): Release newly added static pools.
1163 (create_access_1):Replace operator new with allocate method.
1164 (build_accesses_from_assign): Likewise.
1165 (create_artificial_child_access): Likewise.
1166 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1167 pool_allocator to object_allocator.
1168 * tree-ssa-pre.c: Likewise.
1169 * tree-ssa-reassoc.c: Likewise.
1170 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1171 * tree-ssa-strlen.c: Likewise.
1172 * tree-ssa-structalias.c: Likewise.
1173 * var-tracking.c (onepart_pool_allocate): New function.
1174 (unshare_variable): Use the newly added function.
1175 (variable_merge_over_cur): Likewise.
1176 (variable_from_dropped): Likewise.
1177 (variable_was_changed): Likewise.
1178 (set_slot_part): Likewise.
1179 (emit_notes_for_differences_1): Likewise.
1180 (vt_finalize): Release newly added static pools.
1181
1182 2015-07-16 Martin Jambor <mjambor@suse.cz>
1183
1184 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1185 all uses. Fix two typos in its general comment.
1186 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1187
1188 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
1189
1190 * config/i386/linux-common.h (LINK_MPX): New.
1191 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1192 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1193 indicating '-z bndplt' support by linker.
1194 * configure: Regenerate.
1195 * config.in: Regenerate.
1196
1197 2015-07-16 Richard Biener <rguenther@suse.de>
1198
1199 * fold-const.c (fold_widened_comparison): Remove.
1200 (fold_sign_changed_comparison): Likewise.
1201 (fold_comparison): Move widened and sign-changed comparison
1202 simplification ...
1203 * match.pd: ... to patterns here.
1204 * generic-match-head.c: Include target.h.
1205 * gimple-match-head.c: Likewise.
1206
1207 2015-07-16 Richard Biener <rguenther@suse.de>
1208
1209 * tree-ssa-dom.c (dom_valueize): New function.
1210 (record_temporary_equivalences): Also record equivalences
1211 for dominating stmts that have uses of equivalences we are
1212 about to record.
1213
1214 2015-07-16 Bin Cheng <bin.cheng@arm.com>
1215
1216 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1217 add_autoinc_candidates.
1218 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1219 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1220 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1221 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1222 Call new function.
1223 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1224 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1225 Remove parameter struct iv*. Call add_autoinc_candidates here.
1226 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1227 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1228 Call new function.
1229 (find_iv_candidates): Call new functions.
1230
1231 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
1232
1233 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1234 uninitialized-variable warning.
1235
1236 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1237
1238 PR target/65249
1239 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1240 when the destination is R0.
1241
1242 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
1243
1244 PR target/66866
1245 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1246 * config/i386/i386.c (ix86_expand_pextr): New function.
1247 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1248 for non-lowpart subregs.
1249 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1250 (insv<mode>): Use SWI248 mode iterator.
1251 (insv<mode>_1): Ditto.
1252
1253 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1254 Sebastian Pop <s.pop@samsung.com>
1255
1256 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1257 iterator to use_stmt.
1258
1259 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1260 Sebastian Pop <s.pop@samsung.com>
1261
1262 * graphite-scop-detection.c (build_scops_1): Discard scops for
1263 which entry==exit.
1264
1265 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1266 Sebastian Pop <s.pop@samsung.com>
1267
1268 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1269 case of a return statement in scop.
1270
1271 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1272 Sebastian Pop <s.pop@samsung.com>
1273
1274 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1275 INTEGER_TYPE parameters.
1276 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1277 VECTOR_CST in scan_tree_for_params.
1278 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1279
1280 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1281
1282 * gimple-pretty-print.h: Don't include pretty-print.h.
1283 * tree-streamer.h: Don't include lto-streamer.h.
1284 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1285 * gimple-streamer-in.c: Remove redundant includes.
1286 * gimple-streamer-out.c: Likewise.
1287 * ipa-devirt.c: Likewise.
1288 * ipa-icf.c: Likewise.
1289 * ipa-inline-analysis.c: Likewise.
1290 * ipa-polymorphic-call.c: Likewise.
1291 * ipa-profile.c: Likewise.
1292 * ipa-prop.c: Likewise.
1293 * ipa-pure-const.c: Likewise.
1294 * lto-cgraph.c: Likewise.
1295 * lto-streamer-in.c: Likewise.
1296 * lto-streamer-out.c: Likewise.
1297 * lto-streamer.c: Likewise.
1298 * tree-streamer-in.c: Likewise.
1299 * tree-streamer-out.c: Likewise.
1300 * tree-streamer.c: Likewise.
1301
1302 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1303
1304 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1305 include input.h.
1306 * opts.c: Remove multiline #include comment.
1307
1308 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1309
1310 * config/nvptx/mkoffload.c (process): Add C++ protection to
1311 emitted code.
1312
1313 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1314
1315 PR target/66854
1316 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1317 null before IEEE 128-bit floating point support patch.
1318
1319 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1320
1321 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1322 for (!c) != {0,...,0} ? a : b for vector modes.
1323
1324 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1325 Martin Jambor <mjambor@suse.cz>
1326
1327 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1328 struct func_body_info* instead of struct ipa_node_params*, expecting
1329 fbi->info to be filled in. Replace throughout. Adjust call to
1330 ipa_load_from_parm_agg.
1331 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1332 instead of struct ipa_node_params*. Adjust calls to other functions
1333 so that they pass either fbi or fbi->info.
1334 (set_switch_stmt_execution_predicate): Likewise.
1335 (will_be_nonconstant_predicate): Likewise.
1336 (compute_bb_predicates): Likewise.
1337 (estimate_function_body_sizes): Move asserts earlier. Fill in
1338 struct func_body_info, replace parms_info with fbi.info. Adjust
1339 calls to functions that now accept struct func_body_info.
1340 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1341 (struct func_body_info): Likewise.
1342 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1343 remove static. Adjust callers.
1344 (ipa_load_from_parm_agg): Remove.
1345 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1346 (func_body_info): Likewise.
1347 (ipa_load_from_parm_agg): Adjust prototype.
1348
1349 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1350
1351 * gensupport.c (rtx_handle_directive): Adjust.
1352 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1353 instead of expr list rtx.
1354 (add_define_attr_for_define_subst): Likewise.
1355 (add_define_subst_attr): Likewise.
1356 (read_subst_mapping): Likewise.
1357 (read_rtx): Likewise.
1358 * rtl.h (read_rtx): Adjust.
1359
1360 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1361
1362 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1363
1364 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1365
1366 PR target/58066
1367 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1368 (*tls_local_dynamic_base_64_<mode>): Ditto.
1369 (*tls_local_dynamic_base_64_largepic): Ditto.
1370 (tls_global_dynamic_64_<mode>): Update expander pattern.
1371 (tls_local_dynamic_base_64_<mode>): Ditto.
1372
1373 2015-07-15 Richard Biener <rguenther@suse.de>
1374
1375 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1376 and bool_var == 1 -> bool_var simplifications ...
1377 * match.pd: ... to patterns here. Factor out negate_expr_p
1378 cases from the A - B -> A + (-B) patterns as negate_expr_p
1379 predicate and add a -(A + B) -> (-B) - A pattern.
1380
1381 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1382
1383 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1384
1385 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1386 Robert Suchanek <robert.suchanek@imgtec.com>
1387
1388 * config/mips/mips.c (mips_int_mask): New enum.
1389 (mips_shadow_set): Likewise.
1390 (int_mask): New variable.
1391 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1392 (machine_function): Add int_mask and use_shadow_register_set.
1393 (mips_attribute_table): Add attribute handlers for interrupt and
1394 use_shadow_register_set.
1395 (mips_interrupt_mask): New static function.
1396 (mips_handle_interrupt_attr): Likewise.
1397 (mips_handle_use_shadow_register_set_attr): Likewise.
1398 (mips_use_shadow_register_set): Change return type to enum
1399 mips_shadow_set. Add argument handling for use_shadow_register_set
1400 attribute.
1401 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1402 compare with mips_shadow_set enum.
1403 (mips_compute_frame_info): Add interrupt mask and
1404 use_shadow_register_set to per-function information structure.
1405 Add a stack slot for EPC unconditionally.
1406 (mips_expand_prologue): Compare use_shadow_register_set value
1407 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1408 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1409 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1410 copying the stack pointer from the shadow register set.
1411 * config/mips/mips.h (SR_IM0): New define.
1412 * config/mips/mips.md (mips_rdpgpr): Rename to...
1413 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1414 * doc/extend.texi (Declaring Attributes of Functions): Document
1415 optional arguments for interrupt and use_shadow_register_set
1416 attributes.
1417
1418 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1419
1420 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1421 interrupt attribute.
1422 (mips_expand_prologue): Disable the floating point unit in an ISR.
1423 * config/mips/mips.h (SR_COP1): New define.
1424
1425 2015-07-15 Richard Biener <rguenther@suse.de>
1426
1427 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1428 to tell how many tokens to peek ahead (default 1).
1429 (parser::eat_token, parser::eat_ident): Return token consumed.
1430 (parser::parse_result): Parse new switch statement.
1431 * match.pd: Use case statements where appropriate.
1432
1433 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1434
1435 PR rtl-optimization/58066
1436 * calls.c (expand_call): Precompute register parameters before stack
1437 alignment is performed.
1438
1439 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1440
1441 PR rtl-optimization/66838
1442 * postreload.c (reload_cse_move2add): Also process
1443 CALL_INSN_FUNCTION_USAGE when resetting information of
1444 call-clobbered registers.
1445
1446 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1447 Cesar Philippidis <cesar@codesourcery.com>
1448 Chung-Lin Tang <cltang@codesourcery.com>
1449
1450 * config/nios2/constraints.md (U, v): New constraints.
1451 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1452 (ldstex_memory_operand): New.
1453 * config/nios2/sync.md: New file.
1454 * config/nios2/nios2.md (unspecv): Add new builtin function
1455 UNSPECV codes.
1456 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1457 (top-level): Include sync.md.
1458 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1459 new builtins.
1460 (N2_BUILTINS): Add arch field setting, add new builtins.
1461 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1462 for arch field.
1463 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1464 Also handle ldex/stex/ldsex/stsex builtins.
1465 (nios2_expand_rdprs_builtin): New function.
1466 (nios2_expand_cache_builtin): New function.
1467 (nios2_expand_wrpie_builtin): New function.
1468 (nios2_expand_eni_builtin): New function.
1469 (nios2_expand_builtin): Add arch field handling and new builtin
1470 cases.
1471 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1472 new builtins.
1473 * doc/md.texi (Machine Constraints): Document U and v constraints.
1474
1475 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1476 Cesar Philippidis <cesar@codesourcery.com>
1477 Chung-Lin Tang <cltang@codesourcery.com>
1478
1479 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1480 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1481 callee_save_reg_size and uses_anonymous_args fields.
1482 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1483 (nios2_create_cfa_notes): New function.
1484 (nios2_adjust_stack): New function for adjusting stack.
1485 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1486 Use nios2_adjust_stack.
1487 (nios2_expand_epilogue): Likewise.
1488 (nios2_expand_return): New function.
1489 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1490 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1491 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1492 * config/nios2/nios2.md (return): Use nios2_expand_return.
1493
1494 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1495 Cesar Philippidis <cesar@codesourcery.com>
1496 Chung-Lin Tang <cltang@codesourcery.com>
1497
1498 * config/nios2/predicates.md (pop_operation): New.
1499 (ldwm_operation, stwm_operation): New.
1500 (nios2_hard_register_operand): New.
1501 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1502 (ldstwm_operation_p): Declare.
1503 (gen_ldstwm_peep): Declare.
1504 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1505 (base_reg_adjustment_p): New.
1506 (pop_operation_p): New.
1507 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1508 (nios2_ldstwm_regset_p): New.
1509 (ldstwm_operation_p): New.
1510 (gen_ldst): New.
1511 (nios2_ldst_parallel): New.
1512 (struct ldswm_operand): Declare.
1513 (compare_ldstwm_operands): New.
1514 (can_use_cdx_ldstw): New.
1515 (gen_ldstwm_peep): New.
1516 * config/nios2/nios2-ldstwm.sml: New.
1517 * config/nios2/nios2.md: Include ldstwm.md.
1518 * config/nios2/ldstwm.md: Generated.
1519
1520 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1521 Cesar Philippidis <cesar@codesourcery.com>
1522 Chung-Lin Tang <cltang@codesourcery.com>
1523
1524 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1525 (REG_ALLOC_ORDER): Define.
1526 (ADJUST_REG_ALLOC_ORDER): Define.
1527 (HONOR_REG_ALLOC_ORDER): Define.
1528 (CDX_REG_P): Define.
1529 (ANDCLEAR_INT): Define.
1530 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1531 (nios2_label_align): Declare.
1532 (nios2_cdx_narrow_form_p): Declare.
1533 (nios2_adjust_reg_alloc_order): Declare.
1534 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1535 operation.
1536 (nios2_large_unspec_reloc_p): New function, split from...
1537 (nios2_legitimate_pic_operand_p): ...here.
1538 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1539 (nios2_print_operand_punct_valid_p): New.
1540 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1541 (split_mem_address): New.
1542 (split_alu_insn): New.
1543 (cdxreg): New.
1544 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1545 (enum nios2_add_insn_kind): New.
1546 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1547 (nios2_add_insn_classify): New.
1548 (nios2_add_insn_asm): New.
1549 (nios2_cdx_narrow_form_p): New.
1550 (label_align, min_labelno, max_labelno): New.
1551 (nios2_reorg): New.
1552 (nios2_label_align): New.
1553 (nios2_adjust_reg_alloc_order): New.
1554 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1555 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1556 * config/nios2/constraints.md (P): New constraint.
1557 * config/nios2/predicates.md (const_and_operand): New.
1558 (and_operand): New.
1559 (stack_memory_operand): New.
1560 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1561 (length): Update to use nios2_cdx_narrow_form_p().
1562 (type): Add new insn type values.
1563 (control, alu, st, ld, shift): Update insn reservations with
1564 new insn type values.
1565 (*high, *lo_sum): Define new insn patterns for constant generation.
1566 (movqi_internal, movhi_internal, movsi_internal): Reduce
1567 alternatives, update asm template to handle CDX variants, update
1568 type attributes.
1569 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1570 template, update type attributes.
1571 (extendhisi2, extendqi<mode>2): Likewise.
1572 (addsi3): Change to use function for asm string.
1573 (subsi3): Add CDX notation to asm template, update type attributes.
1574 (negsi3, one_cmplsi3): Likewise.
1575 (andsi3): New pattern, specialized from logical patterns.
1576 (<code>si3): Remove and case, combine alternatives, update asm
1577 template.
1578 (<shift_op>si3): Add CDX notation, update type attributes.
1579 (rotrsi3): Update type attribute.
1580 (*merge, extzv, insv): New insn patterns.
1581 (return): Change to define_expand.
1582 (simple_return): Add CDX notation, update type attributes.
1583 (indirect_jump): Add CDX notation.
1584 (jump): Update asm cases, update length attribute expression.
1585 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1586 (nios2_cbranch): Update asm cases and length attribute expression
1587 to handle CDX variants.
1588 (nios2_cmp<code>): Update asm template.
1589 (nop): Add CDX notation, update type attributes.
1590 (trap): Add CDX notation.
1591 (ctrapsi4): Update asm cases and length attribute expression to
1592 handle CDX variant.
1593 * doc/md.texi (Machine Constraints): Document P constraint.
1594
1595 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1596 Cesar Philippidis <cesar@codesourcery.com>
1597 Chung-Lin Tang <cltang@codesourcery.com>
1598
1599 * config/nios2/nios2.h (SMALL_INT12): New macro.
1600 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1601 (nios2_valid_addr_expr_p): Use it.
1602 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1603 with implicit "io" instructions on R2.
1604 * config/nios2/constraints.md (w): New constraint.
1605 * config/nios2/predicates.md (ldstio_memory_operand): New.
1606 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1607 operand predicate and constraint.
1608 (ld<bh>io_signed, st<bhw>io>): Likewise.
1609 * doc/md.texi (Machine Constraints): Document w constraint.
1610
1611 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1612 Cesar Philippidis <cesar@codesourcery.com>
1613 Chung-Lin Tang <cltang@codesourcery.com>
1614
1615 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1616 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1617 Nios II architecture level.
1618 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1619 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1620 (OPTION_DEFAULT_SPECS): Define.
1621 (ASM_SPEC): Add -march= spec strings.
1622 * config/nios2/nios2.c (nios2_option_override): Check for
1623 conflicts involving new options.
1624 * config.gcc (nios2*-*-*): Support --with-arch=.
1625 * doc/invoke.texi (Option Summary, Nios II Options): Document
1626 -march=, -mbmx, and -mcdx.
1627
1628 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1629
1630 PR rtl-optimization/66626
1631 * lra-constraints.c (lra_constraints): Prevent equivalence
1632 substitution for static chain pseudo in functions with nonlocal
1633 goto.
1634
1635 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1636
1637 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1638 (nios2_emit_stack_limit_check): Add size parameter. Handle
1639 -fstack-limit-symbol as well as -fstack-limit-register.
1640 (nios2_expand_prologue): Emit only a single stack limit check,
1641 even if multiple stack adjustments are required.
1642 (nios2_option_override): Diagnose unsupported combination of -fpic
1643 and -stack-limit-symbol.
1644
1645 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1646
1647 * Makefile.in (top_srcdir): New.
1648 * configure.ac: Use AM_ZLIB.
1649 * configure: Regeneated.
1650
1651 2015-07-14 Matthias Klose <doko@ubuntu.com>
1652
1653 PR target/66840
1654 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1655
1656 2015-07-14 Richard Biener <rguenther@suse.de>
1657
1658 PR tree-optimization/66863
1659 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1660 what we record for conversion use stmt lhs inequalities.
1661
1662 2015-07-14 Richard Biener <rguenther@suse.de>
1663
1664 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1665 (decision_tree::gen_gimple): Likewise.
1666
1667 2015-07-14 Tom de Vries <tom@codesourcery.com>
1668
1669 * gcc.c (greater_than_spec_func): Declare forward.
1670 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1671 -ftree-parallelize-loops={0,1}.
1672 (static_spec_functions): Add greater_than_spec_func function with name
1673 "gt".
1674 (greater_than_spec_func): New function.
1675
1676 2015-07-14 Richard Biener <rguenther@suse.de>
1677
1678 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1679 wideing type conversion case from record_equivalences_from_incoming_edge
1680 and use record_equality to record equivalences.
1681 (record_equivalences_from_incoming_edge): Call
1682 record_temporary_equivalences.
1683
1684 2015-07-14 Richard Biener <rguenther@suse.de>
1685
1686 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1687 (struct if_expr): New.
1688 (struct with_expr): Likewise.
1689 (is_a_helper): Add helpers for if_expr and with_expr.
1690 (struct simplify): Add simplify_kind enum and member. Remove
1691 ifexpr_vec member.
1692 (simplify::simplify): Adjust.
1693 (lower_commutative): Adjust.
1694 (lower_opt_convert): Likewise.
1695 (lower_cond): Likewise.
1696 (replace_id): Handle with_expr and if_expr.
1697 (lower_for): Adjust.
1698 (dt_simplify::gen_1): New recursive worker, split out from ...
1699 (dt_simplify::gen): ... here. Deal with if and with expansion
1700 recursively.
1701 (capture_info::capture_info): Take context argument
1702 (capture_info::walk_result): Only analyze specific result.
1703 (parser::parse_result): New function.
1704 (parser::parse_simplify): Adjust to parse ifs with then end
1705 else case.
1706 (parser::parse_if): Simplify.
1707 (parser::parse_pattern): Pass down simplify kind.
1708 * match.pd: Convert if structure to new syntax.
1709
1710 2015-07-13 Marek Polacek <polacek@redhat.com>
1711
1712 * rtl.c (rtx_equal_p_cb): Fix typo.
1713
1714 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1715
1716 * omega.h: Don't include config.h, don't include params.h again if
1717 omega.h has already been included.
1718 * graphite-poly.h: Include sese.h.
1719 * graphite.c: Don't include sese.h, remove needless includes and
1720 minimize includes outside #ifdef HAVE_isl block.
1721 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1722 and wrap entire file in #ifdef HAVE_isl
1723 * graphite-dependences.c: Likewise.
1724 * graphite-interchange.c: Likewise.
1725 * graphite-isl-ast-to-gimple.c: Likewise.
1726 * graphite-optimize-isl.c: Likewise.
1727 * graphite-poly.c: Likewise.
1728 * graphite-scop-detection.c: Likewise.
1729 * graphite-sese-to-poly.c: Likewise.
1730
1731 2015-07-13 Tom de Vries <tom@codesourcery.com>
1732
1733 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1734
1735 2015-07-13 Renlin Li <renlin.li@arm.com>
1736
1737 PR rtl/66556
1738 * simplify-rtx.c (simplify_const_relational_operation): Add
1739 side_effects_p checks.
1740
1741 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1742
1743 * bitmap.h: Fix double word typos.
1744 * builtins.c: Same.
1745 * calls.c: Same.
1746 * cfgloopmanip.c: Same.
1747 * cgraph.c: Same.
1748 * cgraph.h: Same.
1749 * cgraphclones.c: Same.
1750 * combine.c: Same.
1751 * config/aarch64/aarch64-protos.h: Same.
1752 * config/aarch64/aarch64.c: Same.
1753 * config/aarch64/aarch64.md: Same.
1754 * config/arm/arm.md: Same.
1755 * config/arm/arm1020e.md: Same.
1756 * config/arm/arm1026ejs.md: Same.
1757 * config/arm/arm926ejs.md: Same.
1758 * config/arm/fa526.md: Same.
1759 * config/arm/fa606te.md: Same.
1760 * config/arm/fa626te.md: Same.
1761 * config/arm/fa726te.md: Same.
1762 * config/arm/fmp626.md: Same.
1763 * config/darwin.c: Same.
1764 * config/epiphany/epiphany.c: Same.
1765 * config/frv/frv.c: Same.
1766 * config/ft32/ft32.c: Same.
1767 * config/gnu-user.h: Same.
1768 * config/h8300/constraints.md: Same.
1769 * config/i386/i386.c: Same.
1770 * config/i386/i386.md: Same.
1771 * config/iq2000/iq2000.md: Same.
1772 * config/mips/mips.c: Same.
1773 * config/mmix/mmix.md: Same.
1774 * config/moxie/moxie.c: Same.
1775 * config/nds32/nds32.md: Same.
1776 * config/pa/pa.h: Same.
1777 * config/rs6000/aix.h: Same.
1778 * config/rs6000/rs6000.h: Same.
1779 * config/sh/sh.c: Same.
1780 * config/tilegx/tilegx.md: Same.
1781 * config/tilepro/gen-mul-tables.cc: Same.
1782 * cse.c: Same.
1783 * dbxout.c: Same.
1784 * doc/invoke.texi: Same.
1785 * dse.c: Same.
1786 * dwarf2out.c: Same.
1787 * final.c: Same.
1788 * gcc.c: Same.
1789 * genmatch.c: Same.
1790 * gimplify.c: Same.
1791 * hash-table.h: Same.
1792 * internal-fn.c: Same.
1793 * ipa-cp.c: Same.
1794 * ipa-devirt.c: Same.
1795 * ipa-icf.c: Same.
1796 * ipa-icf.h: Same.
1797 * ipa-profile.c: Same.
1798 * ipa-prop.c: Same.
1799 * ipa-prop.h: Same.
1800 * ira.c: Same.
1801 * omp-low.c: Same.
1802 * reg-stack.c: Same.
1803 * regcprop.c: Same.
1804 * reorg.c: Same.
1805 * rtl.h: Same.
1806 * sbitmap.h: Same.
1807 * tree-eh.c: Same.
1808 * tree-inline.c: Same.
1809 * tree-sra.c: Same.
1810 * tree-ssa-dom.c: Same.
1811 * tree-ssa-loop-ivopts.c: Same.
1812 * tree-ssa-structalias.c: Same.
1813 * tree-ssa-tail-merge.c: Same.
1814 * tree-ssa-ter.c: Same.
1815 * tree-ssa-threadupdate.c: Same.
1816 * tree-ssa-uninit.c: Same.
1817 * tree-ssanames.c: Same.
1818 * tree-vect-loop-manip.c: Same.
1819 * tree-vrp.c: Same.
1820 * tree.c: Same.
1821 * valtrack.c: Same.
1822 * vec.h: Same.
1823
1824 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1825
1826 PR middle-end/66726
1827 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1828 tree_ssa_phiopt_worker): Call it.
1829
1830 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1831
1832 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1833 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1834 REG_EQUAL note.
1835
1836 2015-07-11 Marek Polacek <polacek@redhat.com>
1837
1838 PR middle-end/66353
1839 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1840 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1841 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1842 rather than bb_has_abnormal_call_pred.
1843 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1844 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1845 rather than bb_has_abnormal_call_pred.
1846
1847 2015-07-10 Anatoly Sokolov <aesok@post.ru>
1848
1849 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1850 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1851 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1852 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1853 v850_legitimate_address_p): New functions.
1854 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1855
1856 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 PR target/66819
1859 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1860 indirect sibcall with register arguments if register available
1861 for argument passing.
1862 (init_cumulative_args): Set cfun->machine->arg_reg_available
1863 to (cum->nregs > 0) or to true if function has a variable
1864 argument list.
1865 (function_arg_advance_32): Set cfun->machine->arg_reg_available
1866 to false if cum->nregs <= 0.
1867 * config/i386/i386.h (machine_function): Add arg_reg_available.
1868
1869 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1870
1871 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1872 and gen_higpart instead of gen_rtx_SUBREG.
1873 * config/i386/i386.md
1874 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1875 (read-modify peephole2): Use gen_lowpart instead of
1876 gen_rtx_SUBREG for operand 5.
1877
1878 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1879
1880 * config/tilepro/gen-mul-tables.cc (main): Change include list for
1881 generated files.
1882 * config/tilepro/mul-tables.c: Regenerate.
1883 * config/tilegx/mul-tables.c: Regenerate.
1884
1885 2015-07-10 Richard Biener <rguenther@suse.de>
1886
1887 * fold-const.c (distribute_bit_expr): Remove.
1888 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1889 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1890 to A & (B | C) and simplifying A << C1 << C2 to ...
1891 * match.pd: ... patterns here.
1892
1893 2015-07-10 Jiong Wang <jiong.wang@arm.com>
1894
1895 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1896 Mark mem as READONLY and NOTRAP for PIC symbol.
1897
1898 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1899
1900 * gimple-predict.h: New file.
1901 (gimple_predict_predictor, gimple_predict_set_predictor,
1902 gimple_predict_outcome, gimple_predict_set_outcome,
1903 gimple_build_predict): Relocate here.
1904 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1905 gimple_predict_outcome, gimple_predict_set_outcome): Move to
1906 gimple-predict.h.
1907 * gimple.c (gimple_build_predict): Move to gimple-predict.h
1908 * basic-block.h: Don't include cfghooks.h.
1909 * backend.h: Don't include predict.h.
1910 * cfghooks.h: Include predict.h.
1911 * gimple-pretty-print.c: Include gimple-predict.h.
1912 * gimplify.c: Likwise.
1913 * predict.c: Adjust includes.
1914 * tree-inline.c: Likewise.
1915 * asan.c: Likewise.
1916 * auto-inc-dec.c: Likewise.
1917 * auto-profile.c: Likewise.
1918 * bb-reorder.c: Likewise.
1919 * builtins.c: Likewise.
1920 * caller-save.c: Likewise.
1921 * calls.c: Likewise.
1922 * cfganal.c: Likewise.
1923 * cfgbuild.c: Likewise.
1924 * cfg.c: Likewise.
1925 * cfgcleanup.c: Likewise.
1926 * cfgexpand.c: Likewise.
1927 * cfghooks.c: Likewise.
1928 * cfgloopanal.c: Likewise.
1929 * cfgloop.c: Likewise.
1930 * cfgloopmanip.c: Likewise.
1931 * cfgrtl.c: Likewise.
1932 * cgraph.c: Likewise.
1933 * cgraphunit.c: Likewise.
1934 * combine.c: Likewise.
1935 * cprop.c: Likewise.
1936 * cse.c: Likewise.
1937 * dce.c: Likewise.
1938 * dojump.c: Likewise.
1939 * dse.c: Likewise.
1940 * except.c: Likewise.
1941 * expmed.c: Likewise.
1942 * expr.c: Likewise.
1943 * final.c: Likewise.
1944 * fold-const.c: Likewise.
1945 * function.c: Likewise.
1946 * fwprop.c: Likewise.
1947 * gcc-plugin.h: Likewise.
1948 * gcse.c: Likewise.
1949 * genattrtab.c: Likewise.
1950 * genemit.c: Likewise.
1951 * gengtype.c: Likewise.
1952 * genopinit.c: Likewise.
1953 * genoutput.c: Likewise.
1954 * genpreds.c: Likewise.
1955 * genrecog.c: Likewise.
1956 * gimple-fold.c: Likewise.
1957 * gimple-iterator.c: Likewise.
1958 * gimple-ssa-isolate-paths.c: Likewise.
1959 * gimple-ssa-strength-reduction.c: Likewise.
1960 * graph.c: Likewise.
1961 * graphite-blocking.c: Likewise.
1962 * graphite.c: Likewise.
1963 * graphite-dependences.c: Likewise.
1964 * graphite-interchange.c: Likewise.
1965 * graphite-isl-ast-to-gimple.c: Likewise.
1966 * graphite-optimize-isl.c: Likewise.
1967 * graphite-poly.c: Likewise.
1968 * graphite-scop-detection.c: Likewise.
1969 * graphite-sese-to-poly.c: Likewise.
1970 * haifa-sched.c: Likewise.
1971 * ifcvt.c: Likewise.
1972 * internal-fn.c: Likewise.
1973 * ipa-cp.c: Likewise.
1974 * ipa-profile.c: Likewise.
1975 * ipa-split.c: Likewise.
1976 * ipa-utils.c: Likewise.
1977 * ira-build.c: Likewise.
1978 * ira-color.c: Likewise.
1979 * ira-conflicts.c: Likewise.
1980 * ira-costs.c: Likewise.
1981 * ira-emit.c: Likewise.
1982 * ira-lives.c: Likewise.
1983 * jump.c: Likewise.
1984 * loop-doloop.c: Likewise.
1985 * loop-init.c: Likewise.
1986 * loop-invariant.c: Likewise.
1987 * loop-unroll.c: Likewise.
1988 * lower-subreg.c: Likewise.
1989 * lra-assigns.c: Likewise.
1990 * lra.c: Likewise.
1991 * lra-coalesce.c: Likewise.
1992 * lra-constraints.c: Likewise.
1993 * lra-lives.c: Likewise.
1994 * lto-cgraph.c: Likewise.
1995 * lto-streamer-in.c: Likewise.
1996 * mode-switching.c: Likewise.
1997 * modulo-sched.c: Likewise.
1998 * omp-low.c: Likewise.
1999 * optabs.c: Likewise.
2000 * passes.c: Likewise.
2001 * postreload.c: Likewise.
2002 * postreload-gcse.c: Likewise.
2003 * profile.c: Likewise.
2004 * recog.c: Likewise.
2005 * regstat.c: Likewise.
2006 * reload1.c: Likewise.
2007 * reorg.c: Likewise.
2008 * rtlanal.c: Likewise.
2009 * sched-ebb.c: Likewise.
2010 * sel-sched-ir.c: Likewise.
2011 * sese.c: Likewise.
2012 * shrink-wrap.c: Likewise.
2013 * simplify-rtx.c: Likewise.
2014 * stmt.c: Likewise.
2015 * store-motion.c: Likewise.
2016 * tracer.c: Likewise.
2017 * trans-mem.c: Likewise.
2018 * tree-call-cdce.c: Likewise.
2019 * tree-cfg.c: Likewise.
2020 * tree-cfgcleanup.c: Likewise.
2021 * tree-chkp.c: Likewise.
2022 * tree-complex.c: Likewise.
2023 * tree-eh.c: Likewise.
2024 * tree-if-conv.c: Likewise.
2025 * tree-loop-distribution.c: Likewise.
2026 * tree-outof-ssa.c: Likewise.
2027 * tree-parloops.c: Likewise.
2028 * tree-predcom.c: Likewise.
2029 * tree-pretty-print.c: Likewise.
2030 * tree-profile.c: Likewise.
2031 * tree-sra.c: Likewise.
2032 * tree-ssa.c: Likewise.
2033 * tree-ssa-coalesce.c: Likewise.
2034 * tree-ssa-dce.c: Likewise.
2035 * tree-ssa-dom.c: Likewise.
2036 * tree-ssa-forwprop.c: Likewise.
2037 * tree-ssa-ifcombine.c: Likewise.
2038 * tree-ssa-loop-ch.c: Likewise.
2039 * tree-ssa-loop-im.c: Likewise.
2040 * tree-ssa-loop-ivcanon.c: Likewise.
2041 * tree-ssa-loop-ivopts.c: Likewise.
2042 * tree-ssa-loop-manip.c: Likewise.
2043 * tree-ssa-loop-prefetch.c: Likewise.
2044 * tree-ssa-loop-unswitch.c: Likewise.
2045 * tree-ssa-math-opts.c: Likewise.
2046 * tree-ssa-phiopt.c: Likewise.
2047 * tree-ssa-pre.c: Likewise.
2048 * tree-ssa-reassoc.c: Likewise.
2049 * tree-ssa-sink.c: Likewise.
2050 * tree-ssa-tail-merge.c: Likewise.
2051 * tree-ssa-threadedge.c: Likewise.
2052 * tree-ssa-threadupdate.c: Likewise.
2053 * tree-switch-conversion.c: Likewise.
2054 * tree-tailcall.c: Likewise.
2055 * tree-vect-data-refs.c: Likewise.
2056 * tree-vect-loop.c: Likewise.
2057 * tree-vect-loop-manip.c: Likewise.
2058 * tree-vectorizer.c: Likewise.
2059 * tree-vrp.c: Likewise.
2060 * ubsan.c: Likewise.
2061 * value-prof.c: Likewise.
2062 * varasm.c: Likewise.
2063 * var-tracking.c: Likewise.
2064 * config/aarch64/aarch64-builtins.c: Likewise.
2065 * config/aarch64/aarch64.c: Likewise.
2066 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2067 * config/alpha/alpha.c: Likewise.
2068 * config/arc/arc.c: Likewise.
2069 * config/arm/arm.c: Likewise.
2070 * config/avr/avr.c: Likewise.
2071 * config/bfin/bfin.c: Likewise.
2072 * config/c6x/c6x.c: Likewise.
2073 * config/cr16/cr16.c: Likewise.
2074 * config/cris/cris.c: Likewise.
2075 * config/darwin.c: Likewise.
2076 * config/darwin-c.c: Likewise.
2077 * config/epiphany/epiphany.c: Likewise.
2078 * config/epiphany/mode-switch-use.c: Likewise.
2079 * config/epiphany/resolve-sw-modes.c: Likewise.
2080 * config/fr30/fr30.c: Likewise.
2081 * config/frv/frv.c: Likewise.
2082 * config/ft32/ft32.c: Likewise.
2083 * config/h8300/h8300.c: Likewise.
2084 * config/i386/i386.c: Likewise.
2085 * config/i386/winnt.c: Likewise.
2086 * config/ia64/ia64.c: Likewise.
2087 * config/iq2000/iq2000.c: Likewise.
2088 * config/lm32/lm32.c: Likewise.
2089 * config/m32c/m32c.c: Likewise.
2090 * config/m32r/m32r.c: Likewise.
2091 * config/m68k/m68k.c: Likewise.
2092 * config/mcore/mcore.c: Likewise.
2093 * config/mep/mep.c: Likewise.
2094 * config/microblaze/microblaze.c: Likewise.
2095 * config/mips/mips.c: Likewise.
2096 * config/mmix/mmix.c: Likewise.
2097 * config/mn10300/mn10300.c: Likewise.
2098 * config/moxie/moxie.c: Likewise.
2099 * config/msp430/msp430.c: Likewise.
2100 * config/nds32/nds32.c: Likewise.
2101 * config/nds32/nds32-cost.c: Likewise.
2102 * config/nds32/nds32-fp-as-gp.c: Likewise.
2103 * config/nds32/nds32-intrinsic.c: Likewise.
2104 * config/nds32/nds32-isr.c: Likewise.
2105 * config/nds32/nds32-md-auxiliary.c: Likewise.
2106 * config/nds32/nds32-memory-manipulation.c: Likewise.
2107 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2108 * config/nds32/nds32-predicates.c: Likewise.
2109 * config/nios2/nios2.c: Likewise.
2110 * config/nvptx/nvptx.c: Likewise.
2111 * config/pa/pa.c: Likewise.
2112 * config/pdp11/pdp11.c: Likewise.
2113 * config/rl78/rl78.c: Likewise.
2114 * config/rs6000/rs6000.c: Likewise.
2115 * config/rx/rx.c: Likewise.
2116 * config/s390/s390.c: Likewise.
2117 * config/sh/sh.c: Likewise.
2118 * config/sh/sh-mem.cc: Likewise.
2119 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2120 * config/sh/sh_treg_combine.cc: Likewise.
2121 * config/sparc/sparc.c: Likewise.
2122 * config/spu/spu.c: Likewise.
2123 * config/stormy16/stormy16.c: Likewise.
2124 * config/tilegx/tilegx.c: Likewise.
2125 * config/tilepro/tilepro.c: Likewise.
2126 * config/v850/v850.c: Likewise.
2127 * config/vax/vax.c: Likewise.
2128 * config/visium/visium.c: Likewise.
2129 * config/xtensa/xtensa.c: Likewise.
2130
2131 2015-07-10 Richard Biener <rguenther@suse.de>
2132
2133 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2134 (decision_tree::gen_gimple): Likewise.
2135 (decision_tree::gen_generic): Likewise.
2136
2137 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2138
2139 PR target/66813
2140 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2141 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2142
2143 2015-07-10 Jakub Jelinek <jakub@redhat.com>
2144
2145 PR middle-end/66820
2146 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2147 or ORT_TASK contexts.
2148 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2149 is non-zero.
2150
2151 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2152
2153 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2154 above function.
2155
2156 2015-07-10 Tom de Vries <tom@codesourcery.com>
2157
2158 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2159 insert nit + 1 bound.
2160
2161 2015-07-10 Richard Biener <rguenther@suse.de>
2162
2163 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2164 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2165 (if_convertible_loop_p_1): For this always compute bb predicates.
2166 (if_convertible_loop_p): And free them.
2167
2168 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2169
2170 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2171 in dump message.
2172
2173 2015-07-10 Richard Biener <rguenther@suse.de>
2174
2175 PR tree-optimization/66823
2176 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2177 inverted predicate.
2178
2179 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
2180
2181 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2182 to handle mips[32|64]r3 and mips[32|64]r5.
2183
2184 2015-07-09 Jakub Jelinek <jakub@redhat.com>
2185
2186 PR middle-end/66633
2187 * tree-nested.c (get_static_chain): Or in a flag into
2188 info->static_chain_added.
2189 (get_frame_field, get_nonlocal_debug_decl): Likewise.
2190 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2191 2015-07-01 changes.
2192 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2193 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2194 add it to clauses.
2195
2196 PR tree-optimization/66718
2197 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2198 field.
2199 (vect_simd_lane_linear): New function.
2200 (vectorizable_simd_clone_call): Support using linear arguments for
2201 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2202
2203 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2204
2205 PR target/66821
2206 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2207
2208 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2209
2210 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2211 Use machine mode, not enum machine_mode in the prototype.
2212
2213 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2214 classify 128-bit floating point support.
2215 (FLOAT128_IBM_P): Likewise.
2216 (FLOAT128_VECTOR_P): Likewise.
2217 (FLOAT128_2REG_P): Likewise.
2218 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2219 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2220 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2221 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2222
2223 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2224 tests against TFmode/TDmode, since those modes do not use VSX
2225 addresses.
2226 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2227 support.
2228 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2229 tests against TFmode, etc.
2230 (invalid_e500_subreg): Add tests against IFmode/KFmode.
2231 (reg_offset_addressing_ok_p): Likewise.
2232 (rs6000_legitimate_offset_address_p): Likewise.
2233 (rs6000_legitimize_address): Likewise.
2234 (rs6000_legitimize_reload_address): Likewise.
2235 (rs6000_legitimate_address_p): Clean up tests against TFmode and
2236 TDmode to use the new helper macros, which will include IFmode and
2237 KFmode.
2238 (rs6000_emit_move): Likewise.
2239 (rs6000_darwin64_record_arg_recurse): Likewise.
2240 (print_operand): Likewise.
2241 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2242 that uses a single vector register as a vector and not as a
2243 floating point register in terms of the calling sequence.
2244 (rs6000_discover_homogeneous_aggregate): Likewise.
2245 (rs6000_return_in_memory): Likewise.
2246 (init_cumulative_args): Likewise.
2247 (rs6000_function_arg_boundary): Likewise.
2248 (rs6000_function_arg_advance_1): Likewise.
2249 (rs6000_function_arg): Likewise.
2250 (rs6000_pass_by_reference): Likewise.
2251 (rs6000_gimplify_va_arg): Likewise.
2252 (rs6000_secondary_reload_memory): Use machine_mode not enum
2253 machine mode.
2254 (rs6000_split_multireg_move): Use new helper macros.
2255 (spe_func_has_64bit_regs_p): Likewise.
2256 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2257 (output_toc): Use new helper macros.
2258 (rs6000_register_move_cost): Likewise.
2259 (rs6000_function_value): Add IEEE 128-bit floating point calling
2260 sequence support.
2261 (rs6000_libcall_value): Likewise.
2262 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2263 floating point support.
2264 (rs6000_vector_mode_supported_p): Likewise.
2265
2266 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2267
2268 PR rtl-optimization/66782
2269 * lra-int.h (struct lra_insn_recog_data): Add comment about
2270 clobbered hard regs for arg_hard_regs.
2271 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2272 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2273 Add condition for processing used hard regs.
2274 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2275 Process clobbered hard regs.
2276
2277 2015-07-09 Michael Matz <matz@suse.de>
2278
2279 * genmatch.c (fprintf_indent): New function.
2280 (operand::gen_transform): Add indent parameter.
2281 (expr::gen_transform, c_expr::gen_transform,
2282 capture::gen_transform): Ditto and use fprintf_indent.
2283 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2284 (dt_operand::gen, dt_operand::gen_predicate,
2285 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2286 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2287 (decision_tree::gen_gimple): Adjust calls and indent generated
2288 code.
2289 (decision_tree::gen_generic): Ditto.
2290 (write_predicate): Ditto.
2291
2292 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2293
2294 PR target/66814
2295 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2296 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2297 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2298 {GENERAL,SSE,MMX}_REG_P where appropriate.
2299
2300 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2301
2302 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2303 * builtins.c: Adjust includes.
2304 * gimple.c: Likewise.
2305 * ipa-icf.c: Likewise.
2306 * lto-opts.c: Likewise.
2307 * ipa-reference.c: Likewise.
2308 * lto-section-out.c: Likewise.
2309 * lto-streamer-in.c: Likewise.
2310 * lto-streamer-out.c: Likewise.
2311 * opts-global.c: Likewise.
2312 * symtab.c: Likewise.
2313 * tree-chkp.c: Likewise.
2314 * tree-ssa-live.c: Likewise.
2315 * tree-streamer-in.c: Likewise.
2316 * tree-streamer-out.c: Likewise.
2317 * config/darwin.c: Likewise.
2318 * config/i386/winnt.c: Likewise.
2319
2320 2015-07-09 Richard Biener <rguenther@suse.de>
2321
2322 * genmatch.c (struct expr): Add force_single_use flag.
2323 (expr::expr): Add copy constructor.
2324 (capture_info::walk_match): Gather force_single_use captures.
2325 (expr::gen_transform): Use possibly NULLified sequence.
2326 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2327 seq if any constrained expr is not single-use.
2328 (parser::parse_expr): Refactor to allow multiple flags. Handle
2329 's' flag to force an expression have a single-use if the pattern
2330 simplifies to more than one statement.
2331 * match.pd: Convert most single_use conditionals to :s flags.
2332
2333 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2336 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2337 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2338
2339 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2340
2341 * flags.h: Don't include flag-types.h or options.h.
2342 * opts-common.c: Adjust includes.
2343 * opts-global.c: Likewise.
2344 * common/config/epiphany/epiphany-common.c: Likewise.
2345
2346 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2347
2348 PR target/66818
2349 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2350 for IA MCU.
2351
2352 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2353
2354 PR target/66817
2355 * config/i386/i386.c (ix86_return_in_memory): Return true
2356 if int_size_in_bytes returns negative for IA MCU.
2357
2358 2015-07-09 Marek Polacek <polacek@redhat.com>
2359
2360 PR tree-optimization/66718
2361 * Makefile.in (OBJS): Add gimple-laddress.o.
2362 * passes.def: Schedule pass_laddress.
2363 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2364 * tree-pass.h (make_pass_laddress): Declare.
2365 * gimple-laddress.c: New file.
2366
2367 2015-07-09 Richard Biener <rguenther@suse.de>
2368
2369 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2370
2371 2015-07-09 Richard Biener <rguenther@suse.de>
2372
2373 PR tree-optimization/66807
2374 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2375
2376 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2377
2378 * function.c (stack_protect_epilogue): Use if rather than switch for
2379 check targetm.have_stack_protect_test.
2380
2381 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2382
2383 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2384 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2385 * config/arc/arc.h: Likewise.
2386 * config/arm/arm.h: Likewise.
2387 * config/bfin/bfin.h: Likewise.
2388 * config/epiphany/epiphany.h: Likewise.
2389 * config/frv/frv.h: Likewise.
2390 * config/ia64/ia64.h: Likewise.
2391 * config/iq2000/iq2000.h: Likewise.
2392 * config/lm32/lm32.h: Likewise.
2393 * config/m32r/m32r.h: Likewise.
2394 * config/mcore/mcore.h: Likewise.
2395 * config/mep/mep.h: Likewise.
2396 * config/microblaze/microblaze.h: Likewise.
2397 * config/mips/mips.h: Likewise.
2398 * config/mmix/mmix.h: Likewise.
2399 * config/mn10300/mn10300.h: Likewise.
2400 * config/nds32/nds32.h: Likewise.
2401 * config/nios2/nios2.h: Likewise.
2402 * config/pa/pa.h: Likewise.
2403 * config/rl78/rl78.h: Likewise.
2404 * config/sh/sh.h: Likewise.
2405 * config/sparc/sparc.h: Likewise.
2406 * config/stormy16/stormy16.h: Likewise.
2407 * config/tilegx/tilegx.h: Likewise.
2408 * config/tilepro/tilepro.h: Likewise.
2409 * config/v850/v850.h: Likewise.
2410 * config/xtensa/xtensa.h: Likewise.
2411 * doc/tm.texi: Regenerate.
2412 * doc/tm.texi.in: Adjust.
2413 * combine.c (simplify_set): Likewise.
2414 (simplify_comparison): Likewise.
2415 * expr.c (store_constructor): Likewise.
2416 * internal-fn.c (expand_arith_overflow): Likewise.
2417 * reload.c (push_reload): Likewise.
2418 (find_reloads): Likewise.
2419 (find_reloads_subreg_address): Likewise.
2420 * reload1.c (eliminate_regs_1): Likewise.
2421 * rtlanal.c (nonzero_bits1): Likewise.
2422 (num_sign_bit_copies1): Likewise.
2423 * simplify-rtx.c (simplify_truncation): Likewise.
2424
2425 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2426
2427 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2428 of AUTO_INC_DEC with the preprocessor.
2429 * combine.c (combine_instructions): Likewise.
2430 (can_combine_p): Likewise.
2431 (try_combine): Likewise.
2432 * emit-rtl.c (try_split): Likewise.
2433 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2434 * lower-subreg.c (resolve_simple_move): Likewise.
2435 * lra.c (update_inc_notes): Likewise.
2436 * recog.c (asm_operand_ok): Likewise.
2437 (constrain_operands): Likewise.
2438 * regrename.c (scan_rtx_address): Likewise.
2439 * reload.c (update_auto_inc_notes): Likewise.
2440 (reg_inc_found_and_valid_p): Likewise.
2441 * reload1.c (reload): Likewise.
2442 (emit_input_reload_insns): Likewise.
2443 (delete_output_reload): Likewise.
2444 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2445 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2446
2447 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2448
2449 * rtl.h: Always define AUTO_INC_DEC.
2450 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2451 * combine.c (combine_instructions): Likewise.
2452 (can_combine_p): Likewise.
2453 (try_combine): Likewise.
2454 * emit-rtl.c (try_split): Likewise.
2455 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2456 * lower-subreg.c (resolve_simple_move): Likewise.
2457 * lra.c (update_inc_notes): Likewise.
2458 * recog.c (asm_operand_ok): Likewise.
2459 (constrain_operands): Likewise.
2460 * regrename.c (scan_rtx_address): Likewise.
2461 * reload.c (update_auto_inc_notes): Likewise.
2462 (find_equiv_reg): Likewise.
2463 * reload1.c (reload): Likewise.
2464 (reload_as_needed): Likewise.
2465 (choose_reload_regs): Likewise.
2466 (emit_input_reload_insns): Likewise.
2467 (delete_output_reload): Likewise.
2468 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2469 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2470
2471 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2472
2473 * combine.c (can_combine_def_p): Don't check the value of
2474 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2475 (combinable_i3pat): Likewise.
2476 (mark_used_regs_combine): Likewise.
2477 * regrename.c (rename_chains): Likewise.
2478 * reload.c (find_reloads_address): Likewise.
2479 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2480
2481 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2482
2483 * combine.c (update_rsp_from_reg_equal): Don't check if
2484 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2485 (reg_nonzero_bits_for_combine): Likewise.
2486 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2487 1.
2488 * config/frv/frv.h: Likewise.
2489 * config/lm32/lm32.h: Likewise.
2490 * config/mep/mep.h: Likewise.
2491 * config/mips/mips.h: Likewise.
2492 * config/rs6000/rs6000.h: Likewise.
2493 * config/sh/sh.h: Likewise.
2494 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2495 * config/tilepro/tilepro.h: Likewise.
2496 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2497 * doc/tm.texi: Regenerate.
2498 * doc/tm.texi.in: Adjust.
2499 * rtlanal.c (nonzero_bits1): Likewise.
2500
2501 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2502
2503 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2504 with the preprocessor.
2505 (combine_instructions): Likewise.
2506 (try_combine): Likewise.
2507 (subst): Likewise.
2508 (distribute_notes): Likewise.
2509
2510 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2511
2512 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2513 defined.
2514 (simplify_set): Likewise.
2515 * cse.c (cse_insn): Likewise.
2516 * fold-const.c (fold_single_bit_test): Likewise.
2517 (fold_unary_loc): Likewise.
2518 * postreload.c (reload_cse_simplify_set): Likewise.
2519 (reload_cse_simplify_operands): Likewise.
2520
2521 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2522
2523 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2524 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2525
2526 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2527
2528 PR target/66746
2529 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2530 __iamcu__ is defined.
2531
2532 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2533
2534 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2535
2536 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2537
2538 PR target/66523
2539 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2540 names from preservation.
2541
2542 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2543
2544 PR target/66806
2545 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2546 change for IAMCU.
2547 (function_arg_advance_32): Don't pass vectors in registers for
2548 IAMCU.
2549 (function_arg_32): Likewise.
2550 (ix86_return_in_memory): Don't return vectors in registers for
2551 IAMCU.
2552
2553 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2554
2555 PR middle-end/66334
2556 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2557 hard regno live at the start of BB with incoming abnormal edges.
2558 * lra-lives.c (process_bb_lives): Ditto.
2559
2560 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2561
2562 PR libgomp/65099
2563 * config/nvptx/mkoffload.c (main): Create an offload image only in
2564 64-bit configurations.
2565
2566 2015-07-08 Martin Liska <mliska@suse.cz>
2567
2568 PR bootstrap/66744
2569 * tree-sra.c (create_access_1): Call ctor without brackets.
2570 (create_artificial_child_access): Likewise.
2571
2572 2015-07-08 Richard Biener <rguenther@suse.de>
2573
2574 PR tree-optimization/66793
2575 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2576 Properly split the block after stmts ending it.
2577
2578 2015-07-08 Richard Biener <rguenther@suse.de>
2579
2580 PR tree-optimization/66794
2581 * passes.c (execute_function_todo): Assert that post-dominators
2582 are not computed.
2583 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2584 Free post-dominators.
2585
2586 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2587
2588 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2589 with early exit.
2590
2591 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2592
2593 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2594 more than or equal 8 and less than 32 when optimizing for size.
2595
2596 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2597
2598 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2599 COSTS_N_INSNS (1) and increment it appropriately throughout the
2600 function.
2601
2602 2015-07-08 Richard Biener <rguenther@suse.de>
2603
2604 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2605
2606 2015-07-08 Alan Modra <amodra@gmail.com>
2607
2608 * target.def (rtx_costs): Remove "code" param, add "mode".
2609 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2610 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2611 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2612 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2613 call. Track mode when given in rtx.
2614 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2615 (default_address_cost): Pass Pmode to rtx_cost.
2616 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2617 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2618 with NULL set.
2619 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2620 (notreg_cost): Add mode param. Use it.
2621 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2622 mode param and pass to set_src_cost. Update all calls.
2623 (hash_scan_set): Formatting.
2624 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2625 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2626 * hooks.h: Ditto.
2627 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2628 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2629 emit_store_flag): Update set_src_cost and rtx_cost calls.
2630 * auto-inc-dec.c (attempt_change): Likewise.
2631 * calls.c (precompute_register_parameters): Likewise.
2632 * combine.c (expand_compound_operation, make_extraction,
2633 force_to_mode, distribute_and_simplify_rtx): Likewise.
2634 * dojump.c (prefer_and_bit_test): Likewise.
2635 * dse.c (find_shift_sequence): Likewise.
2636 * expr.c (compress_float_constant): Likewise.
2637 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2638 * ifcvt.c (noce_try_sign_mask): Likewise.
2639 * loop-doloop.c (doloop_optimize): Likewise.
2640 * loop-invariant.c (create_new_invariant): Likewise.
2641 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2642 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2643 lshift_cheap_p): Likewise.
2644 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2645 try_replace_in_use, reload_cse_move2add): Likewise.
2646 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2647 Likewise.
2648 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2649 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2650 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2651 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2652 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2653 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2654 to rtx_cost calls.
2655 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2656 * config/arc/arc.c (arc_rtx_costs): Likewise.
2657 * config/arm/arm.c (arm_rtx_costs): Likewise.
2658 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2659 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2660 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2661 * config/cris/cris.c (cris_rtx_costs): Likewise.
2662 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2663 * config/frv/frv.c (frv_rtx_costs): Likewise.
2664 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2665 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2666 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2667 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2668 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2669 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2670 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2671 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2672 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2673 * config/mep/mep.c (mep_rtx_cost): Likewise.
2674 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2675 * config/mips/mips.c (mips_rtx_costs): Likewise.
2676 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2677 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2678 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2679 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2680 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2681 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2682 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2683 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2684 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2685 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2686 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2687 * config/s390/s390.c (s390_rtx_costs): Likewise.
2688 * config/sh/sh.c (sh_rtx_costs): Likewise.
2689 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2690 * config/spu/spu.c (spu_rtx_costs): Likewise.
2691 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2692 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2693 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2694 * config/v850/v850.c (v850_rtx_costs): Likewise.
2695 * config/vax/vax.c (vax_rtx_costs): Likewise.
2696 * config/visium/visium.c (visium_rtx_costs): Likewise.
2697 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2698 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2699 "code" param, and pass as outer_code to first rtx_cost call. Pass
2700 mode to rtx_cost calls.
2701 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2702 calls.
2703 (aarch64_rtx_costs_wrapper): Update.
2704 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2705 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2706 rtx_cost calls.
2707 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2708 and rtx_cost calls.
2709 (avr_operand_rtx_cost): Similarly.
2710 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2711 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2712 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2713 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2714 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2715 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2716 rtx_cost.
2717 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2718 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2719 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2720 * doc/tm.texi: Regenerate.
2721
2722 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2723
2724 * tree-core.h: Include symtab.h.
2725 * rtl.h: Include hard-reg-set.h but not flags.h.
2726 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2727 hard-reg-set.h is always included.
2728 * regs.h: Don't include hard-reg-set.h or rtl.h.
2729 * cfg.h: Include dominance.h.
2730 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2731 * backend.h: New. Aggregate commonly used backend header files.
2732 * gimple-ssa.h: Don't include tree-hasher.h.
2733 * ssa.h: New. Aggregate commonly used SSA header files.
2734 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2735 * sel-sched-ir.h: Flatten includes.
2736 * lra-int.h: Flatten completely.
2737 * sel-sched-dump.h: Flatten includes.
2738 * ira-int.h: Flatten includes.
2739 * gimple-streamer.h: Remove all includes.
2740 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2741 * resource.h: Flatten hard-reg-set.h and df.h.
2742 * sched-int.h: Flatten insn-arrt.h and df.h.
2743 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2744 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2745 * genattrtab.c (write_header): Adjust generated includes.
2746 * genautomata.c (main): Likewise.
2747 * genconditions.c (write-header): Likewise.
2748 * genemit.c (main): Likewise.
2749 * gengtype.c (open_base_files): Likewise.
2750 * genopinit.c (main): Likewise.
2751 * genoutput.c (output_prologue): Likewise.
2752 * genpeep.c (main): Likewise.
2753 * genpreds.c (write_insn_preds_c): Likewise.
2754 * genrecog.c (write_header): Likewise.
2755 * alias.c: Adjust includes.
2756 * asan.c: Likewise.
2757 * attribs.c: Likewise.
2758 * auto-inc-dec.c: Likewise.
2759 * auto-profile.c: Likewise.
2760 * bb-reorder.c: Likewise.
2761 * bt-load.c: Likewise.
2762 * builtins.c: Likewise.
2763 * caller-save.c: Likewise.
2764 * calls.c: Likewise.
2765 * ccmp.c: Likewise.
2766 * cfg.c: Likewise.
2767 * cfganal.c: Likewise.
2768 * cfgbuild.c: Likewise.
2769 * cfgcleanup.c: Likewise.
2770 * cfgexpand.c: Likewise.
2771 * cfghooks.c: Likewise.
2772 * cfgloop.c: Likewise.
2773 * cfgloopanal.c: Likewise.
2774 * cfgloopmanip.c: Likewise.
2775 * cfgrtl.c: Likewise.
2776 * cgraph.c: Likewise.
2777 * cgraphbuild.c: Likewise.
2778 * cgraphclones.c: Likewise.
2779 * cgraphunit.c: Likewise.
2780 * cilk-common.c: Likewise.
2781 * combine-stack-adj.c: Likewise.
2782 * combine.c: Likewise.
2783 * compare-elim.c: Likewise.
2784 * convert.c: Likewise.
2785 * coverage.c: Likewise.
2786 * cppbuiltin.c: Likewise.
2787 * cprop.c: Likewise.
2788 * cse.c: Likewise.
2789 * cselib.c: Likewise.
2790 * data-streamer-in.c: Likewise.
2791 * data-streamer-out.c: Likewise.
2792 * data-streamer.c: Likewise.
2793 * dbxout.c: Likewise.
2794 * dce.c: Likewise.
2795 * ddg.c: Likewise.
2796 * debug.c: Likewise.
2797 * df-core.c: Likewise.
2798 * df-problems.c: Likewise.
2799 * df-scan.c: Likewise.
2800 * dfp.c: Likewise.
2801 * dojump.c: Likewise.
2802 * dominance.c: Likewise.
2803 * domwalk.c: Likewise.
2804 * double-int.c: Likewise.
2805 * dse.c: Likewise.
2806 * dumpfile.c: Likewise.
2807 * dwarf2asm.c: Likewise.
2808 * dwarf2cfi.c: Likewise.
2809 * dwarf2out.c: Likewise.
2810 * emit-rtl.c: Likewise.
2811 * et-forest.c: Likewise.
2812 * except.c: Likewise.
2813 * explow.c: Likewise.
2814 * expmed.c: Likewise.
2815 * expr.c: Likewise.
2816 * final.c: Likewise.
2817 * fixed-value.c: Likewise.
2818 * fold-const.c: Likewise.
2819 * function.c: Likewise.
2820 * fwprop.c: Likewise.
2821 * gcc-plugin.h: Likewise.
2822 * gcse-common.c: Likewise.
2823 * gcse.c: Likewise.
2824 * generic-match-head.c: Likewise.
2825 * ggc-page.c: Likewise.
2826 * gimple-builder.c: Likewise.
2827 * gimple-expr.c: Likewise.
2828 * gimple-fold.c: Likewise.
2829 * gimple-iterator.c: Likewise.
2830 * gimple-low.c: Likewise.
2831 * gimple-match-head.c: Likewise.
2832 * gimple-pretty-print.c: Likewise.
2833 * gimple-ssa-isolate-paths.c: Likewise.
2834 * gimple-ssa-strength-reduction.c: Likewise.
2835 * gimple-streamer-in.c: Likewise.
2836 * gimple-streamer-out.c: Likewise.
2837 * gimple-walk.c: Likewise.
2838 * gimple.c: Likewise.
2839 * gimplify-me.c: Likewise.
2840 * gimplify.c: Likewise.
2841 * godump.c: Likewise.
2842 * graph.c: Likewise.
2843 * graphite-blocking.c: Likewise.
2844 * graphite-dependences.c: Likewise.
2845 * graphite-interchange.c: Likewise.
2846 * graphite-isl-ast-to-gimple.c: Likewise.
2847 * graphite-optimize-isl.c: Likewise.
2848 * graphite-poly.c: Likewise.
2849 * graphite-scop-detection.c: Likewise.
2850 * graphite-sese-to-poly.c: Likewise.
2851 * graphite.c: Likewise.
2852 * haifa-sched.c: Likewise.
2853 * hw-doloop.c: Likewise.
2854 * ifcvt.c: Likewise.
2855 * init-regs.c: Likewise.
2856 * internal-fn.c: Likewise.
2857 * ipa-chkp.c: Likewise.
2858 * ipa-comdats.c: Likewise.
2859 * ipa-cp.c: Likewise.
2860 * ipa-devirt.c: Likewise.
2861 * ipa-icf-gimple.c: Likewise.
2862 * ipa-icf.c: Likewise.
2863 * ipa-inline-analysis.c: Likewise.
2864 * ipa-inline-transform.c: Likewise.
2865 * ipa-inline.c: Likewise.
2866 * ipa-polymorphic-call.c: Likewise.
2867 * ipa-profile.c: Likewise.
2868 * ipa-prop.c: Likewise.
2869 * ipa-pure-const.c: Likewise.
2870 * ipa-ref.c: Likewise.
2871 * ipa-reference.c: Likewise.
2872 * ipa-split.c: Likewise.
2873 * ipa-utils.c: Likewise.
2874 * ipa-visibility.c: Likewise.
2875 * ipa.c: Likewise.
2876 * ira-build.c: Likewise.
2877 * ira-color.c: Likewise.
2878 * ira-conflicts.c: Likewise.
2879 * ira-costs.c: Likewise.
2880 * ira-emit.c: Likewise.
2881 * ira-lives.c: Likewise.
2882 * ira.c: Likewise.
2883 * jump.c: Likewise.
2884 * langhooks.c: Likewise.
2885 * lcm.c: Likewise.
2886 * loop-doloop.c: Likewise.
2887 * loop-init.c: Likewise.
2888 * loop-invariant.c: Likewise.
2889 * loop-iv.c: Likewise.
2890 * loop-unroll.c: Likewise.
2891 * lower-subreg.c: Likewise.
2892 * lra-assigns.c: Likewise.
2893 * lra-coalesce.c: Likewise.
2894 * lra-constraints.c: Likewise.
2895 * lra-eliminations.c: Likewise.
2896 * lra-lives.c: Likewise.
2897 * lra-remat.c: Likewise.
2898 * lra-spills.c: Likewise.
2899 * lra.c: Likewise.
2900 * lto-cgraph.c: Likewise.
2901 * lto-compress.c: Likewise.
2902 * lto-opts.c: Likewise.
2903 * lto-section-in.c: Likewise.
2904 * lto-section-out.c: Likewise.
2905 * lto-streamer-in.c: Likewise.
2906 * lto-streamer-out.c: Likewise.
2907 * lto-streamer.c: Likewise.
2908 * mcf.c: Likewise.
2909 * mode-switching.c: Likewise.
2910 * modulo-sched.c: Likewise.
2911 * omega.c: Likewise.
2912 * omp-low.c: Likewise.
2913 * optabs.c: Likewise.
2914 * opts-global.c: Likewise.
2915 * passes.c: Likewise.
2916 * plugin.c: Likewise.
2917 * postreload-gcse.c: Likewise.
2918 * postreload.c: Likewise.
2919 * predict.c: Likewise.
2920 * print-rtl.c: Likewise.
2921 * print-tree.c: Likewise.
2922 * profile.c: Likewise.
2923 * real.c: Likewise.
2924 * realmpfr.c: Likewise.
2925 * recog.c: Likewise.
2926 * ree.c: Likewise.
2927 * reg-stack.c: Likewise.
2928 * regcprop.c: Likewise.
2929 * reginfo.c: Likewise.
2930 * regrename.c: Likewise.
2931 * regstat.c: Likewise.
2932 * reload.c: Likewise.
2933 * reload1.c: Likewise.
2934 * reorg.c: Likewise.
2935 * resource.c: Likewise.
2936 * rtl-chkp.c: Likewise.
2937 * rtlanal.c: Likewise.
2938 * rtlhooks.c: Likewise.
2939 * sanopt.c: Likewise.
2940 * sched-deps.c: Likewise.
2941 * sched-ebb.c: Likewise.
2942 * sched-rgn.c: Likewise.
2943 * sched-vis.c: Likewise.
2944 * sdbout.c: Likewise.
2945 * sel-sched-dump.c: Likewise.
2946 * sel-sched-ir.c: Likewise.
2947 * sel-sched.c: Likewise.
2948 * sese.c: Likewise.
2949 * shrink-wrap.c: Likewise.
2950 * simplify-rtx.c: Likewise.
2951 * stack-ptr-mod.c: Likewise.
2952 * stmt.c: Likewise.
2953 * stor-layout.c: Likewise.
2954 * store-motion.c: Likewise.
2955 * stringpool.c: Likewise.
2956 * symtab.c: Likewise.
2957 * target-globals.c: Likewise.
2958 * targhooks.c: Likewise.
2959 * toplev.c: Likewise.
2960 * tracer.c: Likewise.
2961 * trans-mem.c: Likewise.
2962 * tree-affine.c: Likewise.
2963 * tree-browser.c: Likewise.
2964 * tree-call-cdce.c: Likewise.
2965 * tree-cfg.c: Likewise.
2966 * tree-cfgcleanup.c: Likewise.
2967 * tree-chkp-opt.c: Likewise.
2968 * tree-chkp.c: Likewise.
2969 * tree-chrec.c: Likewise.
2970 * tree-complex.c: Likewise.
2971 * tree-data-ref.c: Likewise.
2972 * tree-dfa.c: Likewise.
2973 * tree-diagnostic.c: Likewise.
2974 * tree-dump.c: Likewise.
2975 * tree-eh.c: Likewise.
2976 * tree-emutls.c: Likewise.
2977 * tree-if-conv.c: Likewise.
2978 * tree-inline.c: Likewise.
2979 * tree-into-ssa.c: Likewise.
2980 * tree-iterator.c: Likewise.
2981 * tree-loop-distribution.c: Likewise.
2982 * tree-nested.c: Likewise.
2983 * tree-nrv.c: Likewise.
2984 * tree-object-size.c: Likewise.
2985 * tree-outof-ssa.c: Likewise.
2986 * tree-parloops.c: Likewise.
2987 * tree-phinodes.c: Likewise.
2988 * tree-predcom.c: Likewise.
2989 * tree-pretty-print.c: Likewise.
2990 * tree-profile.c: Likewise.
2991 * tree-scalar-evolution.c: Likewise.
2992 * tree-sra.c: Likewise.
2993 * tree-ssa-address.c: Likewise.
2994 * tree-ssa-alias.c: Likewise.
2995 * tree-ssa-ccp.c: Likewise.
2996 * tree-ssa-coalesce.c: Likewise.
2997 * tree-ssa-copy.c: Likewise.
2998 * tree-ssa-copyrename.c: Likewise.
2999 * tree-ssa-dce.c: Likewise.
3000 * tree-ssa-dom.c: Likewise.
3001 * tree-ssa-dse.c: Likewise.
3002 * tree-ssa-forwprop.c: Likewise.
3003 * tree-ssa-ifcombine.c: Likewise.
3004 * tree-ssa-live.c: Likewise.
3005 * tree-ssa-loop-ch.c: Likewise.
3006 * tree-ssa-loop-im.c: Likewise.
3007 * tree-ssa-loop-ivcanon.c: Likewise.
3008 * tree-ssa-loop-ivopts.c: Likewise.
3009 * tree-ssa-loop-manip.c: Likewise.
3010 * tree-ssa-loop-niter.c: Likewise.
3011 * tree-ssa-loop-prefetch.c: Likewise.
3012 * tree-ssa-loop-unswitch.c: Likewise.
3013 * tree-ssa-loop.c: Likewise.
3014 * tree-ssa-math-opts.c: Likewise.
3015 * tree-ssa-operands.c: Likewise.
3016 * tree-ssa-phiopt.c: Likewise.
3017 * tree-ssa-phiprop.c: Likewise.
3018 * tree-ssa-pre.c: Likewise.
3019 * tree-ssa-propagate.c: Likewise.
3020 * tree-ssa-reassoc.c: Likewise.
3021 * tree-ssa-sccvn.c: Likewise.
3022 * tree-ssa-scopedtables.c: Likewise.
3023 * tree-ssa-sink.c: Likewise.
3024 * tree-ssa-strlen.c: Likewise.
3025 * tree-ssa-structalias.c: Likewise.
3026 * tree-ssa-tail-merge.c: Likewise.
3027 * tree-ssa-ter.c: Likewise.
3028 * tree-ssa-threadedge.c: Likewise.
3029 * tree-ssa-threadupdate.c: Likewise.
3030 * tree-ssa-uncprop.c: Likewise.
3031 * tree-ssa-uninit.c: Likewise.
3032 * tree-ssa.c: Likewise.
3033 * tree-ssanames.c: Likewise.
3034 * tree-stdarg.c: Likewise.
3035 * tree-streamer-in.c: Likewise.
3036 * tree-streamer-out.c: Likewise.
3037 * tree-streamer.c: Likewise.
3038 * tree-switch-conversion.c: Likewise.
3039 * tree-tailcall.c: Likewise.
3040 * tree-vect-data-refs.c: Likewise.
3041 * tree-vect-generic.c: Likewise.
3042 * tree-vect-loop-manip.c: Likewise.
3043 * tree-vect-loop.c: Likewise.
3044 * tree-vect-patterns.c: Likewise.
3045 * tree-vect-slp.c: Likewise.
3046 * tree-vect-stmts.c: Likewise.
3047 * tree-vectorizer.c: Likewise.
3048 * tree-vrp.c: Likewise.
3049 * tree.c: Likewise.
3050 * tsan.c: Likewise.
3051 * ubsan.c: Likewise.
3052 * valtrack.c: Likewise.
3053 * value-prof.c: Likewise.
3054 * var-tracking.c: Likewise.
3055 * varasm.c: Likewise.
3056 * varpool.c: Likewise.
3057 * vmsdbgout.c: Likewise.
3058 * vtable-verify.c: Likewise.
3059 * web.c: Likewise.
3060 * wide-int.cc: Likewise.
3061 * xcoffout.c: Likewise.
3062 * config/aarch64/aarch64-builtins.c: Likewise.
3063 * config/aarch64/aarch64.c: Likewise.
3064 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3065 * config/alpha/alpha.c: Likewise.
3066 * config/arc/arc.c: Likewise.
3067 * config/arm/aarch-common.c: Likewise.
3068 * config/arm/arm-builtins.c: Likewise.
3069 * config/arm/arm-c.c: Likewise.
3070 * config/arm/arm.c: Likewise.
3071 * config/avr/avr-c.c: Likewise.
3072 * config/avr/avr-log.c: Likewise.
3073 * config/avr/avr.c: Likewise.
3074 * config/bfin/bfin.c: Likewise.
3075 * config/c6x/c6x.c: Likewise.
3076 * config/cr16/cr16.c: Likewise.
3077 * config/cris/cris.c: Likewise.
3078 * config/darwin-c.c: Likewise.
3079 * config/darwin.c: Likewise.
3080 * config/epiphany/epiphany.c: Likewise.
3081 * config/epiphany/mode-switch-use.c: Likewise.
3082 * config/epiphany/resolve-sw-modes.c: Likewise.
3083 * config/fr30/fr30.c: Likewise.
3084 * config/frv/frv.c: Likewise.
3085 * config/ft32/ft32.c: Likewise.
3086 * config/h8300/h8300.c: Likewise.
3087 * config/i386/i386-c.c: Likewise.
3088 * config/i386/i386.c: Likewise.
3089 * config/i386/msformat-c.c: Likewise.
3090 * config/i386/winnt-cxx.c: Likewise.
3091 * config/i386/winnt-stubs.c: Likewise.
3092 * config/i386/winnt.c: Likewise.
3093 * config/ia64/ia64-c.c: Likewise.
3094 * config/ia64/ia64.c: Likewise.
3095 * config/iq2000/iq2000.c: Likewise.
3096 * config/lm32/lm32.c: Likewise.
3097 * config/m32c/m32c-pragma.c: Likewise.
3098 * config/m32c/m32c.c: Likewise.
3099 * config/m32r/m32r.c: Likewise.
3100 * config/m68k/m68k.c: Likewise.
3101 * config/mcore/mcore.c: Likewise.
3102 * config/mep/mep-pragma.c: Likewise.
3103 * config/mep/mep.c: Likewise.
3104 * config/microblaze/microblaze-c.c: Likewise.
3105 * config/microblaze/microblaze.c: Likewise.
3106 * config/mips/mips.c: Likewise.
3107 * config/mmix/mmix.c: Likewise.
3108 * config/mn10300/mn10300.c: Likewise.
3109 * config/moxie/moxie.c: Likewise.
3110 * config/msp430/msp430-c.c: Likewise.
3111 * config/msp430/msp430.c: Likewise.
3112 * config/nds32/nds32-cost.c: Likewise.
3113 * config/nds32/nds32-fp-as-gp.c: Likewise.
3114 * config/nds32/nds32-intrinsic.c: Likewise.
3115 * config/nds32/nds32-isr.c: Likewise.
3116 * config/nds32/nds32-md-auxiliary.c: Likewise.
3117 * config/nds32/nds32-memory-manipulation.c: Likewise.
3118 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3119 * config/nds32/nds32-predicates.c: Likewise.
3120 * config/nds32/nds32.c: Likewise.
3121 * config/nios2/nios2.c: Likewise.
3122 * config/nvptx/nvptx.c: Likewise.
3123 * config/pa/pa.c: Likewise.
3124 * config/pdp11/pdp11.c: Likewise.
3125 * config/rl78/rl78-c.c: Likewise.
3126 * config/rl78/rl78.c: Likewise.
3127 * config/rs6000/rs6000-c.c: Likewise.
3128 * config/rs6000/rs6000.c: Likewise.
3129 * config/rx/rx.c: Likewise.
3130 * config/s390/s390-c.c: Likewise.
3131 * config/s390/s390.c: Likewise.
3132 * config/sh/sh-c.c: Likewise.
3133 * config/sh/sh-mem.cc: Likewise.
3134 * config/sh/sh.c: Likewise.
3135 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3136 * config/sh/sh_treg_combine.cc: Likewise.
3137 * config/sol2-c.c: Likewise.
3138 * config/sol2-cxx.c: Likewise.
3139 * config/sol2-stubs.c: Likewise.
3140 * config/sol2.c: Likewise.
3141 * config/sparc/sparc-c.c: Likewise.
3142 * config/sparc/sparc.c: Likewise.
3143 * config/spu/spu-c.c: Likewise.
3144 * config/spu/spu.c: Likewise.
3145 * config/stormy16/stormy16.c: Likewise.
3146 * config/tilegx/mul-tables.c: Likewise.
3147 * config/tilegx/tilegx-c.c: Likewise.
3148 * config/tilegx/tilegx.c: Likewise.
3149 * config/tilepro/mul-tables.c: Likewise.
3150 * config/tilepro/tilepro-c.c: Likewise.
3151 * config/tilepro/tilepro.c: Likewise.
3152 * config/v850/v850-c.c: Likewise.
3153 * config/v850/v850.c: Likewise.
3154 * config/vax/vax.c: Likewise.
3155 * config/visium/visium.c: Likewise.
3156 * config/vms/vms-c.c: Likewise.
3157 * config/vms/vms.c: Likewise.
3158 * config/vxworks.c: Likewise.
3159 * config/xtensa/xtensa.c: Likewise.
3160
3161 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
3162
3163 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3164 Remove operand constraints. Change operand 2 predicate to
3165 nonmemory operand. Limit const_int values to mode bitsize. Only
3166 allow const_int values less than 32 when optimizing for size.
3167 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3168 Remove operand constraints.
3169 (*bt<mode>): Use SImode for const_int values less than 32.
3170 (regmode): Remove mode attribute.
3171
3172 2015-07-07 Anatoly Sokolov <aesok@post.ru>
3173
3174 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3175 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3176 moxie_legitimate_address_p): New functions.
3177 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3178
3179 2015-07-07 Tom de Vries <tom@codesourcery.com>
3180
3181 PR tree-optimization/66642
3182 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3183 header comment. Rename split_edge variable to edge_at_split. Split
3184 exit edge to create new loop exit bb. Insert loop exit phis in new
3185 loop exit bb.
3186
3187 2015-07-07 Tom de Vries <tom@codesourcery.com>
3188
3189 * tree-cfg.c (get_virtual_phi): New function.
3190 * tree-cfg.h (get_virtual_phi): Declare.
3191 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3192 (rewrite_virtuals_into_loop_closed_ssa): New function.
3193 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3194 Declare.
3195 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3196 (transform_to_exit_first_loop_alt): Use
3197 rewrite_virtuals_into_loop_closed_ssa.
3198
3199 2015-07-07 Richard Biener <rguenther@suse.de>
3200
3201 * fold-const.c (fold_binary_loc): Move
3202 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3203 * match.pd: ... here.
3204 Add (X * C1) % C2 -> 0 simplification pattern derived from
3205 extract_muldiv_1.
3206
3207 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
3208
3209 PR target/66780
3210 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3211 change for target/65249.
3212
3213 2015-07-07 Paulo Matos <pmatos@broadcom.com>
3214
3215 * symtab.c (address_matters_1): Fix typo in comment above.
3216 (can_increase_alignment_p): Likewise.
3217
3218 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3219
3220 * function.c (free_after_compilation): Clear PROP_cfg in
3221 f->curr_properties.
3222
3223 2015-07-07 Richard Biener <rguenther@suse.de>
3224
3225 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3226 add which use to.
3227 (add_control_edge): Remove excessive vertical space in dumping.
3228 (process_ssa_edge_worklist): Simulate at most one statement and
3229 return whether we did. Do not simulate PHIs if they are in a
3230 BB not yet simulated.
3231 (ssa_propagate): Adjust to always drain the BB worklist whenever
3232 a BB is available there, likewise the VARYING edges list before
3233 the interesting edge list.
3234
3235 2015-07-07 Christian Bruel <christian.bruel@st.com>
3236
3237 PR target/52144
3238 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3239
3240 2015-07-07 Richard Biener <rguenther@suse.de>
3241
3242 PR middle-end/66739
3243 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3244 A - B.
3245
3246 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3247
3248 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3249 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3250 Copy operand 0 to a temporary if !ext_register_operand. Remove
3251 ancient extract_bit_field workaround.
3252 (insv<mode>_1): Rename from mov<mode>_insv_1.
3253 (*insvqi): Rename from *movqi_insv_2.
3254 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3255 for renamed insvsi_1.
3256 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3257
3258 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3259
3260 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3261 call to nvptx_reorg_subreg.
3262
3263 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3264
3265 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3266 * graphite-dependencies.c, graphite-interchange.c,
3267 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3268 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3269 Likewise.
3270
3271 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3272
3273 * match.pd: Remove element_mode inside HONOR_*.
3274 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3275 (~X | X -> -1, ~X ^ X -> -1): Merge.
3276 * tree.c (build_each_one_cst): New function.
3277 * tree.h (build_each_one_cst): Likewise.
3278
3279 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3280
3281 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3282 PROCESSOR_IAMCU.
3283
3284 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3285
3286 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3287 * config/mips/mips.opt (mfused-madd): Remove.
3288 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3289 * config/mips/mips.h (TARGET_MIPS8000): New.
3290 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3291 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3292 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3293 (ISA_HAS_NMADD4_NMSUB4): Remove.
3294 (ISA_HAS_NMADD3_NMSUB3): Remove.
3295 (ISA_HAS_FUSED_MADD4): New.
3296 (ISA_HAS_UNFUSED_MADD4): New.
3297 (ISA_HAS_FUSED_MADDF): New.
3298 (ISA_HAS_FUSED_MADD3): New.
3299 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3300 (*fma<mode>4_madd3) New.
3301 (*fma<mode>4_madd4) New.
3302 (*fma<mode>4_maddf) New.
3303 (fms<mode>4) New.
3304 (*fms<mode>4_msub3) New.
3305 (*fms<mode>4_msub4) New.
3306 (fnma<mode>4) New.
3307 (*fnma<mode>4_nmadd3) New.
3308 (*fnma<mode>4_nmadd4) New.
3309 (fnms<mode>4) New.
3310 (*fnms<mode>4_nmsub3) New.
3311 (*fnms<mode>4_nmsub4) New.
3312 (*madd4<mode>) Modify to be unfused only.
3313 (*msub4<mode>) Modify to be unfused only.
3314 (*nmadd4<mode>) Modify to be unfused only.
3315 (*nmsub4<mode>) Modify to be unfused only.
3316 (*madd3<mode>) Remove.
3317 (*msub3<mode>) Remove.
3318 (*nmadd3<mode>) Remove.
3319 (*nmsub3<mode>) Remove.
3320 (*nmadd3<mode>_fastmath) Remove.
3321 (*nmsub3<mode>_fastmath) Remove.
3322 (*nmadd4<mode>_fastmath) Update condition.
3323 (*nmsub4<mode>_fastmath) Update condition.
3324
3325 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3326
3327 PR target/65956
3328 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3329 alignment attribute, exploring one level down for records and arrays.
3330
3331 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3332
3333 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3334 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3335 Copy operand 1 to a temporary if !ext_register_operand. Remove
3336 ancient extract_bit_field workaround.
3337 (*extv<mode>): Rename from *mov<mode>_extv_1.
3338 (*extvqi): Rename from *movqi_extv_1.
3339 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3340 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3341 to a temporary if !ext_register_operand. Remove ancient
3342 extract_bit_field workaround.
3343 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3344 (*extzvqi): Rename from *movqi_extzv_2.
3345 (*testqi_ext_3): Remove modes from const_int_operand predicated
3346 operands. Add "n" constraint.
3347 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3348 operand. Add "J" constraint.
3349 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3350 const_0_to_63 predicated operand.
3351 (regmode): New insn attribute.
3352 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3353 to nonmemory_operand. Use regmode insn attribute.
3354 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3355 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3356 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3357 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3358 operands. Use "N" constraint instead of "n".
3359
3360 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3361
3362 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3363
3364 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3365
3366 PR target/66749
3367 * config/i386/i386.c (iamcu_cost): New.
3368 (m_IAMCU): Likewise.
3369 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3370 (processor_target_table): Add an entry for "iamcu".
3371 (processor_alias_table): Likewise.
3372 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3373 (ix86_adjust_cost): Likewise.
3374 (ia32_multipass_dfa_lookahead): Likewise.
3375 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3376 * config/i386/x86-tune.def: Updated for m_IAMCU.
3377
3378 2015-07-06 Richard Biener <rguenther@suse.de>
3379
3380 PR tree-optimization/66772
3381 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3382 values are available in the PHI node BB when there are
3383 still unexecutable edges.
3384
3385 2015-07-06 Richard Biener <rguenther@suse.de>
3386
3387 PR tree-optimization/66767
3388 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3389 Make sure to build the alignment test on a SSA name without
3390 final alignment info valid only if the alignment test
3391 evaluates to true.
3392
3393 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3394
3395 PR target/66620
3396 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3397 loop start when inserting LSETUP.
3398
3399 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3400
3401 PR target/53383
3402 * config/i386/i386.c (ix86_option_override_internal): Allow
3403 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3404
3405 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3406
3407 * read-md.c (decimal_string): Rename to ...
3408 (md_decimal_string): ... this.
3409 (handle_enum): Reflect this.
3410
3411 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3412
3413 PR target/66731
3414 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3415
3416 2015-07-06 Richard Biener <rguenther@suse.de>
3417
3418 PR middle-end/66759
3419 * match.pd: Add missing constraint of y to REAL_CST in
3420 REAL_CST - x CMP y to y - CST CMP x simplification.
3421
3422 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3423
3424 PR tree-optimization/66757
3425 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3426
3427 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3428 Sandra Loosemore <sandra@codesourcery.com>
3429
3430 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3431 Delete extern declaration.
3432 (gprel_constant_p): Add extern declaration.
3433 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3434 instead of nios2_symbol_ref_in_small_data_p.
3435 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3436 (nios2_symbol_ref_in_small_data_p): Make static.
3437 (gprel_constant_p): Make non-static.
3438
3439 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3440
3441 * doc/fragments.texi (Target Fragment): Convert debian.org
3442 link to use https.
3443 * doc/install.texi (Configuration): Ditto.
3444
3445 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3446
3447 PR tree-optimization/66718
3448 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3449 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3450
3451 PR tree-optimization/66718
3452 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3453 vectorizable_load, vectorizable_condition): Move vectype,
3454 nunits, ncopies computation after checking what kind of statement
3455 stmt is.
3456
3457 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3458
3459 * target-insns.def (extv, extzv, insv): New targetm instruction
3460 patterns.
3461 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3462 interface.
3463 * recog.c (simplify_while_replacing): Likewise.
3464
3465 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3466
3467 * target-insns.def (doloop_begin, doloop_end): New targetm
3468 instruction patterns.
3469 * loop-init.c: Include target.h.
3470 (pass_loop2::gate): Use the new targetm patterns instead of
3471 HAVE_*/gen_* interface.
3472 (pass_rtl_doloop::gate): Likewise.
3473 (pass_rtl_doloop::execute): Remove preprocessor condition.
3474 * hw-doloop.c: Build unconditionally.
3475 * loop-doloop.c: Likewise.
3476 (doloop_optimize): Use the new targetm patterns instead of
3477 HAVE_*/gen_* interface.
3478 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3479 * modulo-sched.c (doloop_register_get): Likewise.
3480
3481 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3482
3483 * target-insns.def (clear_cache): New targetm instruction pattern.
3484 * builtins.c (expand_builtin___clear_cache): Use it instead of
3485 HAVE_*/gen_* interface.
3486
3487 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3488
3489 * target-insns.def (allocate_stack, check_stack, probe_stack)
3490 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3491 New targetm instruction patterns.
3492 * explow.c (allocate_dynamic_stack_space): Use them instead of
3493 HAVE_*/gen_* interface.
3494 (emit_stack_probe): Likewise.
3495 (probe_stack_range): Likewise.
3496 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3497
3498 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3499
3500 * target-insns.def (stack_protect_set, stack_protect_test): New
3501 targetm instruction patterns.
3502 * cfgexpand.c (stack_protect_prologue): Use them instead of
3503 HAVE_*/gen_* interface.
3504 * function.c (stack_protect_epilogue): Likewise.
3505
3506 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3507
3508 * expr.h (gen_move_insn_uncast): Delete.
3509 * expr.c (gen_move_insn_uncast): Delete.
3510
3511 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3512
3513 * target-insns.def (restore_stack_block, restore_stack_function)
3514 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3515 (save_stack_nonlocal): New targetm instruction patterns.
3516 * builtins.c (expand_builtin_apply): Use them instead of
3517 HAVE_*/gen_* interface.
3518 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3519
3520 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3521
3522 * target-insns.def (trap): New targetm instruction pattern.
3523 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3524 interface.
3525 * explow.c (allocate_dynamic_stack_space): Likewise.
3526 * ifcvt.c (find_if_header): Likewise.
3527
3528 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3529
3530 * target-insns.def (prefetch): New targetm instruction pattern.
3531 * tree-ssa-loop-prefetch.c: Include targeth.
3532 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3533 of HAVE_*/gen_* interface.
3534 * builtins.c (expand_builtin_prefetch): Likewise.
3535 * toplev.c (process_options): Likewise.
3536
3537 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3538
3539 * target-insns.def (untyped_call, untyped_return): New targetm
3540 instruction patterns.
3541 * builtins.c (expand_builtin_apply): Use them instead of
3542 HAVE_*/gen_* interface.
3543 (result_vector): Define unconditionally.
3544
3545 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3546
3547 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3548 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3549 (nonlocal_goto_receiver): New targetm instruction patterns.
3550 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3551 of HAVE_*/gen_* interface.
3552 (expand_builtin_setjmp_receiver): Likewise.
3553 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3554 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3555
3556 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3557
3558 * target.def: Add code_for_* hooks.
3559 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3560 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3561 * target-insns.def (casesi, tablejump): New targetm instruction
3562 patterns.
3563 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3564 (do_tablejump): Likewise.
3565 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3566 (expand_sjlj_dispatch_table): Likewise.
3567 * targhooks.c (default_case_values_threshold): Likewise.
3568
3569 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3570
3571 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3572 Use rtx_insn * instead of rtx.
3573 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3574 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3575 (nios2_call_tls_get_addr): Likewise.
3576 (nios2_emit_expensive_div): Likewise.
3577 (nios2_emit_move_sequence): Change return type to bool.
3578 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3579 Change return type to bool.
3580
3581 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3582
3583 PR target/66747
3584 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3585
3586 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3587
3588 PR target/66114
3589 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3590 of register_operand. Remove constraint.
3591
3592 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3593
3594 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3595 the first argument.
3596
3597 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3598
3599 * attribs.c (decl_attributes): Guard inform with the return value
3600 of the preceding warning.
3601
3602 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3603
3604 * doc/invoke.texi (moverride): Move to correct section.
3605
3606 2015-07-03 Richard Biener <rguenther@suse.de>
3607
3608 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3609 Copy from tree.c
3610 (dt_operand::gen_gimple_expr): After valueizing operands
3611 re-canonicalize operand order for commutative tree codes.
3612
3613 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3614
3615 PR target/66746.
3616 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3617 is defined.
3618 (__crc32w): Likewise.
3619 (__crc32d): Likewise.
3620 (__rdpmc): Likewise.
3621 (__rdtscp): Likewise.
3622 (_rdpmc): Likewise.
3623 (_rdtscp): Likewise.
3624 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3625 is defined.
3626
3627 2015-07-03 Richard Biener <rguenther@suse.de>
3628
3629 * fold-const.c (fold_mathfn_compare): Remove.
3630 (fold_inf_compare): Likewise.
3631 (fold_comparison): Move floating point comparison simplifications...
3632 * match.pd: ... to patterns here. Introduce simple_comparisons
3633 operator list and use it for patterns formerly in fold_comparison.
3634
3635 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3636
3637 PR tree-optimization/66119
3638 * toplev.c (process_options): Don't set up default values for
3639 the sra_max_scalarization_size_{speed,size} parameters.
3640 * tree-sra (analyze_all_variable_accesses): If no values
3641 have been set for the sra_max_scalarization_size_{speed,size}
3642 parameters, call get_move_ratio to get target defaults.
3643
3644 2015-07-03 Richard Biener <rguenther@suse.de>
3645
3646 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3647 * match.pd: ... here.
3648
3649 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3650
3651 PR target/37072
3652 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3653 is not actually the default on FreeBSD.
3654
3655 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3656
3657 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3658 definition.
3659 (CMPGE_8HI): Likewise.
3660 (CMPGE_4SI): Likewise.
3661 (CMPGE_2DI): Likewise.
3662 (CMPGE_U16QI): Likewise.
3663 (CMPGE_U8HI): Likewise.
3664 (CMPGE_U4SI): Likewise.
3665 (CMPGE_U2DI): Likewise.
3666 (CMPLE_16QI): Likewise.
3667 (CMPLE_8HI): Likewise.
3668 (CMPLE_4SI): Likewise.
3669 (CMPLE_2DI): Likewise.
3670 (CMPLE_U16QI): Likewise.
3671 (CMPLE_U8HI): Likewise.
3672 (CMPLE_U4SI): Likewise.
3673 (CMPLE_U2DI): Likewise.
3674 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3675 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3676 ALTIVEC_BUILTIN_VEC_CMPLE.
3677 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3678 floating-point vector modes.
3679 (vector_nlt<mode>): New define_expand.
3680 (vector_nltu<mode>): Likewise.
3681 (vector_ngt<mode>): Likewise.
3682 (vector_ngtu<mode>): Likewise.
3683
3684 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3685
3686 PR rtl-optimization/66706
3687 * combine.c (make_compound_operation): If an AND of SUBREG of
3688 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3689
3690 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3691
3692 * tree-pass.h (make_pass_ch_vect): New.
3693 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3694
3695 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3696 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3697 make_pass_ch_vect): New.
3698 (pass_ch): Extend ch_base.
3699
3700 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3701 (ch_base::copy_headers): ...here.
3702
3703 2015-07-02 Richard Biener <rguenther@suse.de>
3704
3705 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3706 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3707 (fold_binary_loc): Implement (T)ptr & CST in terms of
3708 get_pointer_alignment_1.
3709 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3710 Make sure to build the alignment test on a SSA name without
3711 final alignment info valid only after the prologue.
3712
3713 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3714
3715 * config/cris/cris.md ("epilogue"): Remove condition.
3716 ("prologue"): Ditto.
3717
3718 2015-07-02 Richard Biener <rguenther@suse.de>
3719
3720 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3721 parameter to record a condition that is false.
3722 (record_conditions): When recording an extra NE_EXPR that is
3723 true also record a EQ_EXPR that is false.
3724
3725 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3726
3727 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3728 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3729 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3730 (set_iv, find_interesting_uses_address, add_candidate_1): New
3731 argument to alloc_iv.
3732 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3733 duplicate struct iv.
3734 (free_loop_data): Don't free struct iv explicitly.
3735 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3736
3737 2015-07-01 DJ Delorie <dj@redhat.com>
3738
3739 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3740 (LIB_SPEC): Add.
3741 (SUPPORTS_DISCRIMINATOR): Define.
3742
3743 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3744
3745 PR bootstrap/66685
3746 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3747 there are no CALLs in the same pattern.
3748
3749 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3750
3751 PR rtl-optimization/61047
3752 * rtlanal.c (get_initial_register_offset): New function.
3753 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3754
3755 2015-07-01 Richard Biener <rguenther@suse.de>
3756
3757 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3758 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3759 ~X CMP C -> X CMP' ~C to ...
3760 * match.pd: ... patterns here.
3761
3762 2015-07-01 Nick Clifton <nickc@redhat.com>
3763
3764 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3765 a 16-bit value into a 20-bit memory slot.
3766
3767 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3768
3769 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3770 "aarch64_tiny", "aarch64_small", "aarch64_large",
3771 "aarch64_little_endian", "aarch64_big_endian".
3772
3773 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3774
3775 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3776 Document "aarch64_small_fpic".
3777
3778 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3779
3780 * configure.ac: Add check for aarch64 assembler -fpic relocation
3781 modifier support.
3782 * configure: Regenerate.
3783 * config.in: Regenerate.
3784 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3785 to -fPIC if not support of -fpic relocation modifier in assembler.
3786
3787 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3788
3789 PR bootstrap/66685
3790 * rtl.c (classify_insn): Handle returns in PARALLELs.
3791
3792 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
3793
3794 PR middle-end/66633
3795 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3796 to true if the function is nested and if not optimizing.
3797 (convert_local_omp_clauses): Initialize need_frame to true if the
3798 function contains nested functions and if not optimizing.
3799
3800 2015-07-01 Richard Biener <rguenther@suse.de>
3801
3802 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3803 (X & Y) ^ Y -> ~X & Y transforms to ...
3804 * match.pd: ... here.
3805
3806 2015-07-01 Richard Biener <rguenther@suse.de>
3807
3808 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3809 of converts to avoid uninteresting noise from the conversion
3810 simplifying patterns.
3811
3812 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
3813
3814 * config/c6x/c6x.c (try_rename_operands): Do not depend on
3815 gcc_assert evaluating its argument for side-effect.
3816
3817 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
3818
3819 PR target/64833
3820 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3821 flag_pic is set.
3822
3823 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3824
3825 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3826 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3827 (hash_scc): Add this_ref_p and ref_p parameters and pass them
3828 to the inner DFS walk.
3829
3830 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3831
3832 * target-insns.def (jump): New targetm instruction pattern.
3833 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3834 instead of gen_jump.
3835 (fix_up_crossing_landing_pad): Likewise.
3836 (add_labels_and_missing_jumps): Likewise.
3837 (fix_crossing_conditional_branches): Likewise.
3838 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3839 (force_nonfallthru_and_redirect): Likewise.
3840 * cse.c (cse_insn): Likewise.
3841 * expmed.c (expand_divmod): Likewise.
3842 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3843 * haifa-sched.c (init_before_recovery): Likewise.
3844 (sched_create_recovery_edges): Likewise.
3845 * ifcvt.c (find_cond_trap): Likewise.
3846 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3847 (expand_float, expand_fix): Likewise.
3848 * stmt.c (emit_jump): Likewise.
3849
3850 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3851
3852 * defaults.h (HAVE_load_multiple, gen_load_multiple)
3853 (HAVE_store_multiple, gen_store_multiple): Delete.
3854 * target-insns.def (load_multiple, store_multiple): New targetm
3855 instruction patterns.
3856 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3857 of HAVE_*/gen_* interface.
3858
3859 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3860
3861 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3862 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3863 (gen_mem_signal_fence): Delete.
3864 * target-insns.def (mem_signal_fence, mem_thread_fence)
3865 (memory_barrier): New targetm instruction patterns.
3866 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3867 interface.
3868 (expand_mem_signal_fence): Likewise.
3869
3870 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3871
3872 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3873 * target-insns.def (epilogue, prologue, sibcall_prologue): New
3874 targetm instruction patterns.
3875 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3876 interface.
3877 * calls.c (expand_call): Likewise.
3878 * cfgrtl.c (cfg_layout_finalize): Likewise.
3879 * df-scan.c (df_get_entry_block_def_set): Likewise.
3880 (df_get_exit_block_use_set): Likewise.
3881 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3882 * final.c (final_start_function): Likewise.
3883 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3884 (reposition_prologue_and_epilogue_notes): Likewise.
3885 * reorg.c (find_end_label): Likewise.
3886 * toplev.c (process_options): Likewise.
3887
3888 2015-06-30 David Malcolm <dmalcolm@redhat.com>
3889
3890 * typed-splay-tree.h: New file.
3891
3892 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
3893
3894 PR debug/66691
3895 * lra-int.h (lra_substitute_pseudo): Add a parameter.
3896 (lra_substitute_pseudo_within_insn): Ditto.
3897 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
3898 of constant.
3899 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
3900 to lra_substitute_pseudo.
3901 * lra-lives.c (process_bb_lives): Add an argument to
3902 lra_substitute_pseudo_within_insn call.
3903 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3904 argument to lra_substitute_pseudo and
3905 lra_substitute_pseudo_within_insn calls.
3906 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3907
3908 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3909
3910 * configure: Regenerated.
3911
3912 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3913
3914 * config.gcc: Support i[34567]86-*-elfiamcu target.
3915 * config/i386/iamcu.h: New.
3916 * config/i386/i386.opt: Add -miamcu.
3917 * doc/invoke.texi: Document -miamcu.
3918 * common/config/i386/i386-common.c (ix86_handle_option): Turn
3919 off x87/MMX/SSE/AVX codegen for -miamcu.
3920 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3921 __iamcu/__iamcu__ for -miamcu.
3922 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3923 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3924 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3925 * config/i386/i386.c (ix86_option_override_internal): Ignore and
3926 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
3927 MCU by default. Default long double to 64-bit for Intel MCU.
3928 Turn on -freg-struct-return for Intel MCU. Issue an error when
3929 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3930 AVX is turned on.
3931 (function_arg_advance_32): Pass value whose size is no larger
3932 than 8 bytes in registers for Intel MCU.
3933 (function_arg_32): Likewise.
3934 (ix86_return_in_memory): Return value whose size is no larger
3935 than 8 bytes in registers for Intel MCU.
3936 (iamcu_alignment): New function.
3937 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3938 true.
3939 (ix86_local_alignment): Don't increase alignment for Intel MCU.
3940 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3941 true.
3942
3943 2015-06-30 Marek Polacek <polacek@redhat.com>
3944
3945 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
3946 both operands of the resulting expression.
3947
3948 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
3949 the final expression with the operand's type and then convert
3950 it to the type of the expression.
3951
3952 2015-06-30 Richard Biener <rguenther@suse.de>
3953
3954 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3955 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3956 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3957 * match.pd: ... to patterns here.
3958
3959 2015-06-30 Richard Biener <rguenther@suse.de>
3960
3961 PR tree-optimization/66704
3962 * tree-vect-data-refs.c (vect_setup_realignment): Use
3963 make_ssa_name for non-SSA name source.
3964
3965 2015-06-30 Jakub Jelinek <jakub@redhat.com>
3966
3967 PR middle-end/66702
3968 * omp-low.c (simd_clone_adjust): Handle addressable linear
3969 or uniform parameters or non-gimple type uniform parameters.
3970
3971 2015-06-30 Richard Biener <rguenther@suse.de>
3972
3973 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
3974 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
3975 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
3976 * match.pd: ... here.
3977 Add a few cases of A - B -> A + (-B) when B "easily" negates.
3978 Move (x & y) | x -> x and friends before
3979 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
3980
3981 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3982
3983 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
3984 -mfix-ut699 is not specified.
3985 (leon3_load): Rename into...
3986 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
3987 is specified.
3988
3989 2015-06-30 Marek Polacek <polacek@redhat.com>
3990
3991 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
3992 * match.pd: ... here.
3993
3994 2015-06-30 Richard Biener <rguenther@suse.de>
3995
3996 * target-insns.def (canonicalize_funcptr_for_compare): Add.
3997 * fold-const.c (build_range_check): Replace uses of
3998 HAVE_canonicalize_funcptr_for_compare.
3999 (fold_widened_comparison): Likewise.
4000 (fold_sign_changed_comparison): Likewise.
4001 * dojump.c: Include "target.h".
4002 (do_compare_and_jump): Replace uses of
4003 HAVE_canonicalize_funcptr_for_compare and
4004 gen_canonicalize_funcptr_for_compare.
4005 * expr.c (do_store_flag): Likewise.
4006
4007 2015-06-30 Tom de Vries <tom@codesourcery.com>
4008
4009 PR tree-optimization/66652
4010 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4011 max_loop_iterations to determine if nit + 1 overflows.
4012
4013 2015-06-30 Richard Biener <rguenther@suse.de>
4014
4015 * tree-vrp.c (register_edge_assert_for_2): Also register
4016 asserts for dominating conversion results.
4017
4018 2015-06-30 Bin Cheng <bin.cheng@arm.com>
4019
4020 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4021 field in struct iv.
4022
4023 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
4024
4025 PR target/66509
4026 * configure.ac: Fix filds and fildq test for 64-bit.
4027 * configure: Regenerated.
4028
4029 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
4030
4031 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4032 (nvptx_reorg): Here. Keep the non-subreg pieces.
4033
4034 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
4035
4036 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4037 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4038
4039 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
4040
4041 * config/i386/i386.md (*jcc_1): Use %! in asm template.
4042 Set attribute "length_nobnd" instead of "length".
4043 (*jcc_2): Ditto.
4044 (jump): Ditto.
4045 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4046
4047 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
4048
4049 * config/nios2/nios2.c (nios2_delegitimize_address): Make
4050 assert less restrictive.
4051
4052 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4053
4054 PR fortran/66605
4055 * cgraphunit.c (cgraph_node::finalize_function): Do not call
4056 do_warn_unused_parameter.
4057 * function.c (do_warn_unused_parameter): Move from here.
4058 * function.h (do_warn_unused_parameter): Do not declare.
4059
4060 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4061
4062 PR target/65697
4063 * gcc.target/arm/armv-sync-comp-swap.c: New.
4064 * gcc.target/arm/armv-sync-op-acquire.c: New.
4065 * gcc.target/arm/armv-sync-op-full.c: New.
4066 * gcc.target/arm/armv-sync-op-release.c: New.
4067
4068 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4069
4070 PR target/65697
4071 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4072 initial acquire barrier with final barrier.
4073
4074 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4075
4076 PR target/65697
4077 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4078 initial acquire barrier with final barrier.
4079
4080 2015-06-29 Richard Henderson <rth@redhat.com>
4081
4082 * config/i386/constraints.md (Bf): New constraint.
4083 * config/i386/i386-c.c (ix86_target_macros): Define
4084 __GCC_ASM_FLAG_OUTPUTS__.
4085 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4086 as flags outputs.
4087 * doc/extend.texi (FlagOutputOperands): Document them.
4088
4089 2015-06-29 Jiong Wang <jiong.wang@arm.com>
4090
4091 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4092 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4093 unspec name.
4094 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4095 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4096 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4097 (aarch64_symbol_context): Ditto.
4098 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4099 and use new pattern name.
4100 (aarch64_expand_mov_immediate): Ditto.
4101 (aarch64_print_operand): Ditto.
4102 (aarch64_classify_tls_symbol): Ditto.
4103
4104 2015-06-29 Marek Polacek <polacek@redhat.com>
4105 Marc Glisse <marc.glisse@inria.fr>
4106
4107 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4108 * match.pd: ... pattern here.
4109
4110 2015-06-29 Tom de Vries <tom@codesourcery.com>
4111
4112 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4113 function structure.
4114
4115 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4116
4117 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4118 feature description, split out the native option, add a link to
4119 the feature documentation, rearrange and slightly rewrite text.
4120 (Aarch64 options, -mcpu): Likewise.
4121 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
4122 +rdma implies Adv. SIMD.
4123
4124 2015-06-29 Marek Polacek <polacek@redhat.com>
4125
4126 PR c/66322
4127 * function.c (stack_protect_epilogue): Remove a cast to int.
4128 * doc/invoke.texi: Update -Wswitch-bool description.
4129
4130 2015-06-29 Richard Biener <rguenther@suse.de>
4131
4132 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4133 * fold-const.c (fold_binary_loc): Move &A - &B simplification
4134 via ptr_difference_const ...
4135 * match.pd: ... here.
4136 When matching (X ^ Y) == Y also match with swapped operands.
4137
4138 2015-06-29 Richard Biener <rguenther@suse.de>
4139
4140 * lto-streamer.h (LTO_major_version): Bump to 5.
4141
4142 2015-06-29 Richard Biener <rguenther@suse.de>
4143
4144 PR tree-optimization/66677
4145 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4146 STMT_VINFO_VEC_STMT clobbering less strict.
4147
4148 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4149
4150 PR middle-end/64130
4151 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4152 division, compute max and min when value ranges for dividend and
4153 divisor are available.
4154
4155 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
4156 Sandra Loosemore <sandra@codesourcery.com>
4157
4158 * regrename.h (regrename_do_replace): Change to return bool.
4159 * regrename.c (rename_chains): Check return value of
4160 regname_do_replace.
4161 (regrename_do_replace): Re-validate the modified insns and
4162 return bool status.
4163 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4164 Update to match rename_chains changes.
4165 * config/c6x/c6x.c (try_rename_operands): Assert that
4166 regrename_do_replace returns true.
4167
4168 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
4169
4170 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4171 operand 2 here. Use copy_addr_to_reg to copy non-index
4172 register operand 2 to a temporary.
4173 (<mode>_stx): Ditto for operand 1.
4174 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4175 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4176 (ix86_store_bounds): Ditto.
4177
4178 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
4179
4180 * print-tree.c (print_node) [TREE_VEC]: Print its length.
4181
4182 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
4183
4184 * gimple.c (gimple_call_set_fndecl): Remove.
4185 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4186 build1_loc directly instead of build_fold_addr_expr_loc.
4187
4188 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4189
4190 * hash-map.h (hash_map::traverse): Use the definition of the
4191 Key typedef rather than the typedef itself.
4192
4193 2015-06-26 Martin Jambor <mjambor@suse.cz>
4194
4195 PR debug/66301
4196 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4197 NULL instead of calling dump_enabled_p.
4198
4199 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4200
4201 * config/aarch64/aarch64.opt: (override): New.
4202 * doc/invoke.texi (override): Document.
4203 * config/aarch64/aarch64.c (aarch64_flag_desc): New
4204 (aarch64_fusible_pairs): Likewise.
4205 (aarch64_tuning_flags): Likewise.
4206 (aarch64_tuning_override_function): Likewise.
4207 (aarch64_tuning_override_functions): Likewise.
4208 (aarch64_parse_one_option_token): Likewise.
4209 (aarch64_parse_boolean_options): Likewise.
4210 (aarch64_parse_fuse_string): Likewise.
4211 (aarch64_parse_tune_string): Likewise.
4212 (aarch64_parse_one_override_token): Likewise.
4213 (aarch64_parse_override_string): Likewise.
4214 (aarch64_override_options): Parse the -override string if it
4215 is present.
4216
4217 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4218
4219 * config/aarch64/aarch64-protos.h (tune_params): Remove
4220 const from members.
4221 (aarch64_tune_params): Remove const, change to no longer be
4222 a pointer.
4223 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4224 change to no longer be a pointer, initialize to generic_tunings.
4225 (aarch64_min_divisions_for_recip_mul): Change dereference of
4226 aarch64_tune_params to member access.
4227 (aarch64_reassociation_width): Likewise.
4228 (aarch64_rtx_mult_cost): Likewise.
4229 (aarch64_address_cost): Likewise.
4230 (aarch64_branch_cost): Likewise.
4231 (aarch64_rtx_costs): Likewise.
4232 (aarch64_register_move_cost): Likewise.
4233 (aarch64_memory_move_cost): Likewise.
4234 (aarch64_sched_issue_rate): Likewise.
4235 (aarch64_builtin_vectorization_cost): Likewise.
4236 (aarch64_override_options): Take a copy of the selected tuning
4237 struct in to aarch64_tune_params, rather than just setting
4238 a pointer, change dereferences of aarch64_tune_params to member
4239 accesses.
4240 (aarch64_override_options_after_change): Change dereferences of
4241 aarch64_tune_params to member access.
4242 (aarch64_macro_fusion_p): Likewise.
4243 (aarch_macro_fusion_pair_p): Likewise.
4244 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4245
4246 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4247
4248 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4249 (aarch64_tune_flags): Likewise.
4250 (AARCH64_TUNE_FMA_STEERING): Likewise.
4251 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4252 to AARCH64_FL_USE_FMA_STEERING_PASS.
4253 (cortex-a57.cortex-a53): Likewise.
4254 (cortex-a72): Use cortexa72_tunings.
4255 (cortex-a72.cortex-a53): Likewise.
4256 (exynos-m1): Likewise.
4257 * config/aarch64/aarch64-protos.h (tune_params): Add
4258 a field: extra_tuning_flags.
4259 * config/aarch64/aarch64-tuning-flags.def: New.
4260 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4261 (aarch64_extra_tuning_flags): Likewise.
4262 (aarch64_tune_params): Declare here.
4263 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4264 (cortexa53_tunings): Likewise.
4265 (cortexa57_tunings): Likewise.
4266 (thunderx_tunings): Likewise.
4267 (xgene1_tunings): Likewise.
4268 (cortexa72_tunings): New.
4269 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4270 (gate): Check against aarch64_tune_params.
4271 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4272 aarch64-protos.h.
4273
4274 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4275
4276 * config/aarch64/aarch64-fusion-pairs.def: New.
4277 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4278 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4279 aarch64_fusion_pairs.
4280 (AARCH64_FUSE_MOV_MOVK): Likewise.
4281 (AARCH64_FUSE_ADRP_ADD): Likewise.
4282 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4283 (AARCH64_FUSE_ADRP_LDR): Likewise.
4284 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4285
4286 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4287
4288 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4289 SYMBOL_SMALL_GOT_28K.
4290 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4291 relocation modifiers.
4292 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4293 (ldr_got_small_28k_<mode>): New.
4294 (ldr_got_small_28k_sidi): New.
4295 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4296 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4297 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4298 SYMBOL_SMALL_GOT_28K.
4299 (aarch64_rtx_costs): Add costs for new instruction sequences.
4300 (initialize_aarch64_code_model): Initialize new model.
4301 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4302 (aarch64_asm_preferred_eh_data_format): Support new model.
4303 (aarch64_load_symref_appropriately): Generate new instruction
4304 sequences for -fpic.
4305 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4306 (aarch64_use_pseudo_pic_reg): New function.
4307
4308 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4309
4310 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4311 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4312 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4313 (aarch64_expand_mov_immediate): Ditto.
4314 (aarch64_print_operand): Ditto.
4315 (aarch64_classify_symbol): Ditto.
4316
4317 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4318
4319 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4320
4321 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4322
4323 PR bootstrap/66638
4324 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4325 assertion failed. Remove assertion itself.
4326
4327 2015-06-26 Richard Biener <rguenther@suse.de>
4328
4329 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4330 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4331 in match.pd.
4332 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4333 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4334 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4335 * match.pd: ... patterns here.
4336
4337 2015-06-26 Marek Polacek <polacek@redhat.com>
4338
4339 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4340 (x | y) & (~x ^ y) -> x & y): New patterns.
4341
4342 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4343
4344 * rtl.h (emit): Add an optional boolean parameter to control
4345 whether barriers are emitted.
4346 * emit-rtl.c (emit): Likewise.
4347 * gensupport.c (get_emit_function): Return null rather than "emit".
4348 * genemit.c (gen_emit_seq): Handle the null return value.
4349 Don't emit barriers after the final instruction in the sequence.
4350 * gentarget-def.c (main): Don't emit barriers after the instruction.
4351
4352 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4353
4354 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4355 TARGET_UNIFIED_ASM.
4356
4357 2015-06-26 Richard Biener <rguenther@suse.de>
4358
4359 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4360
4361 2015-06-26 Richard Biener <rguenther@suse.de>
4362
4363 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4364 irrespective on whether the inner operation has a single use
4365 of both off are constant.
4366
4367 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4368 Segher Boessenkool <segher@kernel.crashing.org>
4369
4370 PR target/66412
4371 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4372 before doing PUT_MODE or PUT_CODE on operands to avoid
4373 in-place RTX modification.
4374
4375 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4376
4377 * gentarget-def.c (def_target_insn): Cast return of strtol to
4378 unsigned int.
4379
4380 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4381
4382 * gimple.h (gimple_call_set_fn): Move inline function.
4383 * gimple.c (gimple_call_set_fn): Relocate here.
4384
4385 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4386
4387 PR target/65979
4388 PR target/66611
4389 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4390 the replacement insn will work.
4391
4392 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4393
4394 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4395 by default.
4396
4397 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4398
4399 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4400 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4401 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4402 (symtab_node::address_can_be_compared_p): Move function.
4403 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4404 definition here.
4405 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4406 * auto-profile.c: Likewise.
4407 * bb-reorder.c: Likewise.
4408 * builtins.c: Likewise.
4409 * calls.c: Likewise.
4410 * cfgexpand.c: Likewise.
4411 * cgraphbuild.c: Likewise.
4412 * cgraphclones.c: Likewise.
4413 * cgraphunit.c: Likewise.
4414 * combine.c: Likewise.
4415 * coverage.c: Likewise.
4416 * data-streamer-in.c: Likewise.
4417 * data-streamer-out.c: Likewise.
4418 * data-streamer.c: Likewise.
4419 * dbxout.c: Likewise.
4420 * dwarf2out.c: Likewise.
4421 * except.c: Likewise.
4422 * expr.c: Likewise.
4423 * final.c: Likewise.
4424 * fold-const.c: Likewise.
4425 * ggc-page.c: Likewise.
4426 * gimple-fold.c: Likewise.
4427 * gimple-iterator.c: Likewise.
4428 * gimple-pretty-print.c: Likewise.
4429 * gimple-streamer-in.c: Likewise.
4430 * gimple-streamer-out.c: Likewise.
4431 * gimple.c: Likewise.
4432 * gimplify.c: Likewise.
4433 * ipa-chkp.c: Likewise.
4434 * ipa-comdats.c: Likewise.
4435 * ipa-cp.c: Likewise.
4436 * ipa-devirt.c: Likewise.
4437 * ipa-icf-gimple.c: Likewise.
4438 * ipa-icf.c: Likewise.
4439 * ipa-inline-analysis.c: Likewise.
4440 * ipa-inline-transform.c: Likewise.
4441 * ipa-inline.c: Likewise.
4442 * ipa-polymorphic-call.c: Likewise.
4443 * ipa-profile.c: Likewise.
4444 * ipa-prop.c: Likewise.
4445 * ipa-pure-const.c: Likewise.
4446 * ipa-ref.c: Likewise.
4447 * ipa-reference.c: Likewise.
4448 * ipa-split.c: Likewise.
4449 * ipa-utils.c: Likewise.
4450 * ipa-visibility.c: Likewise.
4451 * ipa.c: Likewise.
4452 * langhooks.c: Likewise.
4453 * lto-cgraph.c: Likewise.
4454 * lto-compress.c: Likewise.
4455 * lto-opts.c: Likewise.
4456 * lto-section-in.c: Likewise.
4457 * lto-section-out.c: Likewise.
4458 * lto-streamer-in.c: Likewise.
4459 * lto-streamer-out.c: Likewise.
4460 * lto-streamer.c: Likewise.
4461 * omp-low.c: Likewise.
4462 * opts-global.c: Likewise.
4463 * passes.c: Likewise.
4464 * predict.c: Likewise.
4465 * print-tree.c: Likewise.
4466 * profile.c: Likewise.
4467 * ree.c: Likewise.
4468 * sanopt.c: Likewise.
4469 * stor-layout.c: Likewise.
4470 * symtab.c: Likewise.
4471 * toplev.c: Likewise.
4472 * trans-mem.c: Likewise.
4473 * tree-cfg.c: Likewise.
4474 * tree-chkp.c: Likewise.
4475 * tree-eh.c: Likewise.
4476 * tree-emutls.c: Likewise.
4477 * tree-inline.c: Likewise.
4478 * tree-nested.c: Likewise.
4479 * tree-parloops.c: Likewise.
4480 * tree-pretty-print.c: Likewise.
4481 * tree-profile.c: Likewise.
4482 * tree-sra.c: Likewise.
4483 * tree-ssa-alias.c: Likewise.
4484 * tree-ssa-live.c: Likewise.
4485 * tree-ssa-loop-ivcanon.c: Likewise.
4486 * tree-ssa-loop-ivopts.c: Likewise.
4487 * tree-ssa-pre.c: Likewise.
4488 * tree-ssa-sccvn.c: Likewise.
4489 * tree-ssa-strlen.c: Likewise.
4490 * tree-ssa-structalias.c: Likewise.
4491 * tree-streamer-in.c: Likewise.
4492 * tree-streamer-out.c: Likewise.
4493 * tree-streamer.c: Likewise.
4494 * tree-switch-conversion.c: Likewise.
4495 * tree-tailcall.c: Likewise.
4496 * tree-vect-data-refs.c: Likewise.
4497 * tree-vect-stmts.c: Likewise.
4498 * tree-vectorizer.c: Likewise.
4499 * tree.c: Likewise.
4500 * tsan.c: Likewise.
4501 * ubsan.c: Likewise.
4502 * value-prof.c: Likewise.
4503 * varasm.c: Likewise.
4504 * varpool.c: Likewise.
4505 * config/arm/arm.c: Likewise.
4506 * config/bfin/bfin.c: Likewise.
4507 * config/c6x/c6x.c: Likewise.
4508 * config/cris/cris.c: Likewise.
4509 * config/darwin-c.c: Likewise.
4510 * config/darwin.c: Likewise.
4511 * config/i386/i386.c: Likewise.
4512 * config/i386/winnt.c: Likewise.
4513 * config/microblaze/microblaze.c: Likewise.
4514 * config/mips/mips.c: Likewise.
4515 * config/rs6000/rs6000.c: Likewise.
4516 * config/rx/rx.c: Likewise.
4517 * config/s390/s390.c: Likewise.
4518 * config/tilegx/mul-tables.c: Likewise.
4519
4520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4521
4522 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4523 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4524 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4525 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4526 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4527 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4528 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4529 config/microblaze/microblaze.c, config/mips/mips.c,
4530 config/mmix/mmix.c, config/mn10300/mn10300.c,
4531 config/moxie/moxie.c, config/msp430/msp430.c,
4532 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4533 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4534 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4535 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4536 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4537 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4538 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4539 target-def.h include.
4540 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4541
4542 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4543
4544 * Makefile.in (TARGET_DEF): Add target-insns.def.
4545 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4546 (build/gentarget-def.o): New rule.
4547 (genprogrtl): Add target-def.
4548 * target-insns.def, gentarget-def.c: New files.
4549 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4550 based on the contents of target-insns.def.
4551 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4552 (HAVE_return, gen_return): Delete.
4553 * target-def.h: Include insn-target-def.h.
4554 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4555 instead of direct calls. Rely on them to do the appropriate assertions.
4556 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4557 (convert_jumps_to_returns): Use targetm interface instead of
4558 direct calls.
4559 (thread_prologue_and_epilogue_insns): Likewise.
4560 * reorg.c (find_end_label, dbr_schedule): Likewise.
4561 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4562 * shrink-wrap.c (convert_to_simple_return): Likewise.
4563 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4564
4565 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4566
4567 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4568 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4569 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4570 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4571 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4572 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4573 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4574 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4575 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4576 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4577 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4578 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4579 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4580 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4581 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4582 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4583 includes to end.
4584
4585 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4586
4587 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4588 (unbounded_int_hashmap_traits::key_type): Likewise.
4589 * hash-map.h (hash_map): Get the key type from the traits.
4590 * hash-traits.h (default_hash_traits): By default, inherit from the
4591 template parameter.
4592 * alias.c (alias_set_traits): Delete.
4593 (alias_set_entry_d::children): Use alias_set_hash as the first
4594 template parameter.
4595 (record_alias_subset): Update accordingly.
4596 * except.c (tree_hash_traits): Delete.
4597 (type_to_runtime_map): Use tree_hash as the first template parameter.
4598 (init_eh): Update accordingly.
4599 * genmatch.c (capture_id_map_hasher): Delete.
4600 (cid_map_t): Use nofree_string_hash as first template parameter.
4601 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4602 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4603 Use symbol_compare_hash as the first template parameter in
4604 subdivide_hash_map.
4605 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4606 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4607 template parameter.
4608 * passes.c (pass_registry_hasher): Delete.
4609 (name_to_pass_map): Use nofree_string_hash as the first template
4610 parameter.
4611 (register_pass_name): Update accordingly.
4612 * sanopt.c (sanopt_tree_map_traits): Delete.
4613 (sanopt_tree_triplet_map_traits): Delete.
4614 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4615 template parameter.
4616 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4617 the first template parameter.
4618 * sese.c (rename_map_hasher): Delete.
4619 (rename_map_type): Use tree_ssa_name_hash as the first template
4620 parameter.
4621 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4622 (function_summary::m_map): Use map_hash as the first template
4623 parameter.
4624 (function_summary::release): Update accordingly.
4625 * tree-if-conv.c (phi_args_hash_traits): Delete.
4626 (predicate_scalar_phi): Use tree_operand_hash as the first template
4627 parameter to phi_arg_map.
4628 * tree-inline.h (dependence_hasher): Delete.
4629 (copy_body_data::dependence_map): Use dependence_hash as the first
4630 template parameter.
4631 * tree-inline.c (remap_dependence_clique): Update accordingly.
4632 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4633 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4634 parameter.
4635 (addr_stridxptr): Update accordingly.
4636 * value-prof.c (profile_id_traits): Delete.
4637 (cgraph_node_map): Use profile_id_hash as the first template
4638 parameter.
4639 (init_node_map): Update accordingly.
4640 * config/alpha/alpha.c (string_traits): Delete.
4641 (machine_function::links): Use nofree_string_hash as the first
4642 template parameter.
4643 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4644 * config/m32c/m32c.c (pragma_traits): Delete.
4645 (pragma_htab): Use nofree_string_hash as the first template parameter.
4646 (m32c_note_pragma_address): Update accordingly.
4647 * config/mep/mep.c (pragma_traits): Delete.
4648 (pragma_htab): Use nofree_string_hash as the first template parameter.
4649 (mep_note_pragma_flag): Update accordingly.
4650 * config/mips/mips.c (mips16_flip_traits): Delete.
4651 (mflip_mips16_htab): Use nofree_string_hash as the first template
4652 parameter.
4653 (mflip_mips16_use_mips16_p): Update accordingly.
4654 (local_alias_traits): Delete.
4655 (mips16_local_aliases): Use nofree_string_hash as the first template
4656 parameter.
4657 (mips16_local_alias): Update accordingly.
4658
4659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4660
4661 * hash-map-traits.h (default_hashmap_traits): Delete.
4662
4663 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4664
4665 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4666 (unbounded_int_hashmap_traits): Likewise.
4667 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4668
4669 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4670
4671 * ipa-icf.h (symbol_compare_hash): New class.
4672 (symbol_compare_hashmap_traits): Use it.
4673 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4674 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4675 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4676 default_hashmap_traits.
4677 * sanopt.c (sanopt_tree_triplet_hash): New class.
4678 (sanopt_tree_triplet_map_traits): Use it.
4679
4680 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4681
4682 * gengtype-parse.c (require_template_declaration): Allow '+' in
4683 template parameters. Consolidate cases.
4684 * hash-traits.h (int_hash): New class.
4685 * alias.c (alias_set_hash): New structure.
4686 (alias_set_traits): Use it.
4687 * symbol-summary.h (function_summary::map_hash): New class.
4688 (function_summary::summary_hashmap_traits): Use it.
4689 * tree-inline.h (dependence_hash): New class.
4690 (dependence_hasher): Use it.
4691 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4692 * value-prof.c (profile_id_hash): New class.
4693 (profile_id_traits): Use it.
4694
4695 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4696
4697 * config/mips/mips.c (mips16_flip_traits): Use it.
4698 (local_alias_traits, mips16_local_aliases): Convert from a map of
4699 rtxes to a map of symbol names.
4700 (mips16_local_alias): Update accordingly.
4701
4702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4703
4704 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4705 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4706 * passes.c (pass_registry_hasher): Likewise.
4707 * config/alpha/alpha.c (string_traits): Likewise.
4708 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4709 * config/m32c/m32c.c (pragma_traits): Likewise.
4710 * config/mep/mep.c (pragma_traits): Likewise.
4711
4712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4713
4714 * tree-hash-traits.h (tree_hash): New class.
4715 * except.c: Include tree-hash-traits.h.
4716 (tree_hash_traits): Use tree_hash.
4717
4718 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4719
4720 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4721 * sese.c: Include tree-hash-traits.h.
4722 (rename_map_hasher): Use tree_ssa_name_hasher.
4723
4724 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4725
4726 * tree-hash-traits.h (tree_decl_hash): New class.
4727 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4728 (stridxlist_hash_traits): Use tree_decl_hash.
4729
4730 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4731
4732 * tree-hash-traits.h: New file.
4733 (tree_operand_hash): New class.
4734 * sanopt.c: Include tree-hash-traits.h.
4735 (sanopt_tree_map_traits): Use tree_operand_hash.
4736 * tree-if-conv.c: Include tree-hash-traits.h.
4737 (phi_args_hash_traits): Use tree_operand_hash.
4738 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4739 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4740
4741 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4742
4743 * hash-map-traits.h: Include hash-traits.h.
4744 (simple_hashmap_traits): New class.
4745 * mem-stats.h (hash_map): Change the default traits to
4746 simple_hashmap_traits<default_hash_traits<Key> >.
4747
4748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4749
4750 * hash-table.h: Update comments.
4751
4752 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4753
4754 * hash-traits.h (default_hash_traits): New structure.
4755 * hash-set.h (default_hashset_traits): Delete.
4756 (hash_set): Use default_hash_traits<Key> instead of
4757 default_hashset_traits. Delete hash_entry type and use Key directly.
4758 * ipa-devirt.c (pair_traits): Delete.
4759 (default_hash_traits <type_pair>): Override.
4760 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4761 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4762
4763 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4764
4765 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4766
4767 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4768
4769 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4770 (has_is_empty, is_empty_helper): Delete.
4771 (has_mark_deleted, mark_deleted_helper): Delete.
4772 (has_mark_empty, mark_empty_helper): Delete.
4773 (hash_table::is_deleted): Call the Descriptor unconditionally.
4774 (hash_table::is_empty): Likewise.
4775 (hash_table::mark_deleted): Likewise.
4776 (hash_table::mark_empty): Likewise.
4777
4778 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4779
4780 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
4781 redundant typedefs and members.
4782 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
4783 redundant typedefs.
4784 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4785 * ipa-devirt.c (odr_name_hasher): Likewise.
4786 (polymorphic_call_target_hasher): Likewise.
4787 * ira-costs.c (cost_classes_hasher): Likewise.
4788 * statistics.c (stats_counter_hasher): Likewise.
4789 * trans-mem.c (log_entry_hasher): Likewise.
4790 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4791 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4792 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4793 * var-tracking.c (variable_hasher): Likewise.
4794 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4795 Remove redundant typedefs and members.
4796
4797 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4798
4799 * hash-traits.h (ggc_cache_hasher): Rename to...
4800 (ggc_cache_remove): ...this and remove typedefs.
4801 (ggc_cache_ptr_hash): New class.
4802 * hash-table.h: Update commentary.
4803 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4804 rather than ggc_cache_hasher.
4805 (const_wide_int_hasher, reg_attr_hasher): Likewise.
4806 (const_double_hasher, const_fixed_hasher): Likewise.
4807 * function.c (insn_cache_hasher): Likewise.
4808 * trans-mem.c (tm_wrapper_hasher): Likewise.
4809 * tree.h (tree_decl_map_cache_hasher): Likewise.
4810 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4811 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4812 * ubsan.c (tree_type_map_cache_hasher): Likewise.
4813 * varasm.c (tm_clone_hasher): Likewise.
4814 * config/i386/i386.c (dllimport_hasher): Likewise.
4815 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4816 (tree_hasher): Likewise.
4817
4818 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4819
4820 * hash-traits.h (ggc_hasher): Rename to...
4821 (ggc_remover): ...this and remove typedefs.
4822 (ggc_cache_hasher): Update accordingly. Add typedefs.
4823 (ggc_ptr_hash): New class.
4824 * hash-table.h: Update comment.
4825 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4826 ggc_hasher.
4827 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4828 (tree_descriptor_hasher): Likewise.
4829 * cgraph.c (function_version_hasher): Likewise.
4830 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4831 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4832 (dw_loc_list_hasher, addr_hasher): Likewise.
4833 * function.h (used_type_hasher): Likewise.
4834 * function.c (temp_address_hasher): Likewise.
4835 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4836 * libfuncs.h (libfunc_hasher): Likewise.
4837 * lto-streamer.h (decl_state_hasher): Likewise.
4838 * optabs.c (libfunc_decl_hasher): Likewise.
4839 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4840 * varasm.c (section_hasher, object_block_hasher): Likewise.
4841 (const_rtx_desc_hasher): Likewise.
4842 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4843 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4844
4845 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4846
4847 * hash-traits.h (free_ptr_hash): New class.
4848 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4849 rather than typed_free_remove. Remove redudant typedefs.
4850 (external_ref_hasher): Likewise.
4851 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4852 (ehspec_hasher): Likewise.
4853 * ggc-common.c (saving_hasher): Likewise.
4854 * gimplify.c (gimplify_hasher): Likewise.
4855 * haifa-sched.c (delay_i2_hasher): Likewise.
4856 * loop-invariant.c (invariant_expr_hasher): Likewise.
4857 * loop-iv.c (biv_entry_hasher): Likewise.
4858 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4859 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4860 * tree-cfg.c (locus_discrim_hasher): Likewise.
4861 * tree-eh.c (finally_tree_hasher): Likewise.
4862 * tree-into-ssa.c (var_info_hasher): Likewise.
4863 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4864 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4865 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4866 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4867 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4868 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4869 (shared_bitmap_hasher): Likewise.
4870 * tree-ssa-threadupdate.c (redirection_data): Likewise.
4871 * tree-vectorizer.h (peel_info_hasher): Likewise.
4872 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4873 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4874
4875 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4876
4877 * hash-table.h: Update comments.
4878 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4879 (nofree_ptr_hash): New class.
4880 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4881 than typed_noop_remove. Remove redudant typedefs.
4882 * attribs.c (attribute_hasher): Likewise.
4883 * cfg.c (bb_copy_hasher): Likewise.
4884 * cselib.c (cselib_hasher): Likewise.
4885 * dse.c (invariant_group_base_hasher): Likewise.
4886 * dwarf2cfi.c (trace_info_hasher): Likewise.
4887 * dwarf2out.c (macinfo_entry_hasher): Likewise.
4888 (comdat_type_hasher, loc_list_hasher): Likewise.
4889 * gcse.c (pre_ldst_expr_hasher): Likewise.
4890 * genmatch.c (id_base): Likewise.
4891 * genrecog.c (test_pattern_hasher): Likewise.
4892 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4893 * haifa-sched.c (delay_i1_hasher): Likewise.
4894 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4895 * ipa-icf.h (congruence_class_group_hash): Likewise.
4896 * ipa-profile.c (histogram_hash): Likewise.
4897 * ira-color.c (allocno_hard_regs_hasher): Likewise.
4898 * lto-streamer.h (string_slot_hasher): Likewise.
4899 * lto-streamer.c (tree_entry_hasher): Likewise.
4900 * plugin.c (event_hasher): Likewise.
4901 * postreload-gcse.c (expr_hasher): Likewise.
4902 * store-motion.c (st_expr_hasher): Likewise.
4903 * tree-sra.c (uid_decl_hasher): Likewise.
4904 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4905 (ssa_name_var_hash): Likewise.
4906 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4907 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4908 * tree-ssa-pre.c (pre_expr_d): Likewise.
4909 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4910 * vtable-verify.h (registration_hasher): Likewise.
4911 * vtable-verify.c (vtbl_map_hasher): Likewise.
4912 * config/arm/arm.c (libcall_hasher): Likewise.
4913 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4914 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4915 * config/sol2.c (comdat_entry_hasher): Likewise.
4916 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4917 (print_fold_checksum, fold_checksum_tree): Likewise.
4918 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4919 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4920 (fold_build_call_array_loc): Likewise.
4921 * tree-ssa-ccp.c (gimple_htab): Likewise.
4922 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4923 rather than pointer_type.
4924
4925 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4926
4927 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4928 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4929
4930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4931
4932 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4933 (ggc_hasher::ggc_mx): Likewise.
4934 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
4935 that duplicate ggc_hasher ones.
4936
4937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4938
4939 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4940 (gt_cleare_cache): Check here for deleted and empty entries.
4941 Replace handle_cache_entry with a call to keep_cache_entry.
4942 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4943 (ggc_cache_hasher::keep_cache_entry): New function.
4944 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4945 (tm_wrapper_hasher::keep_cache_entry): New function.
4946 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4947 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4948 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4949 (type_cache_hasher::keep_cache_entry): New function.
4950 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4951 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4952 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4953 (tree_type_map_cache_hasher::keep_cache_entry): New function.
4954 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4955 (tm_clone_hasher::keep_cache_entry): New function.
4956 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4957 (dllimport_hasher::keep_cache_entry): New function.
4958
4959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4960
4961 * hash-table.h: Include hash-traits.h.
4962 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4963 (ggc_cache_hasher): Move to...
4964 * hash-traits.h: ...this new file.
4965
4966 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4967
4968 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4969 struct cl_optimization.
4970 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4971 * tree.c (make_node_stat): Allocate cl_optimization struct.
4972 (copy_node_stat): Allocate and copy cl_optimization struct.
4973
4974 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4975
4976 * function.h (struct incoming_args): Move struct.
4977 (pass_by_reference, reference_callee_copied): Remove prototypes.
4978 * emit-rtl.h (struct incoming_args): Relocate struct here.
4979 * calls.h (pass_by_reference, reference_callee_copied): Relocate
4980 prototypes here.
4981 * function.c (pass_by_reference, reference_callee_copied): Move.
4982 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
4983 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
4984 * ipa-chkp.c: Include calls.h.
4985
4986 2015-06-25 Andrew Macleod <amacleod@redhat.com>
4987
4988 * alias.h (alias_set_type): Move typedef.
4989 * coretypes.h (alias_set_type): Relocate typedef here.
4990 * rtl.h: Don't include alias.h.
4991
4992 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4993
4994 * cgraph.h (cgraph_rtl_info): Move to rtl.h
4995 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
4996 and instance.
4997 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
4998 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
4999 doesn't exist.
5000 * calls.c: Include hard-reg-set.h before rtl.h.
5001 * ira.c: Likewise.
5002
5003 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5004 Vladimir Makarov <vmakarov@redhat.com>
5005
5006 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5007 Add assert.
5008
5009 2015-06-25 Richard Biener <rguenther@suse.de>
5010
5011 * fold-const.c (fold_binary_loc): Move simplification of
5012 (X <<>> C1) & C2 ...
5013 * match.pd: ... here.
5014
5015 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
5016
5017 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5018
5019 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5020
5021 * match.pd: Add patterns for vec_conds between 1 and 0.
5022
5023 2015-06-25 Richard Biener <rguenther@suse.de>
5024
5025 * tree-vect-stmts.c (vectorizable_conversion): Do not set
5026 STMT_VINFO_VEC_STMT for SLP.
5027 (vectorizable_store): Likewise.
5028 (vectorizable_load): Likewise.
5029 (vect_transform_stmt): Catch SLP vectorization clobbering
5030 STMT_VINFO_VEC_STMT.
5031
5032 2015-06-25 Richard Biener <rguenther@suse.de>
5033
5034 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5035 dumping.
5036 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5037 cleanup resulting dead code and parameters.
5038 (vect_transform_slp_perm_load): Adjust.
5039
5040 2015-06-25 Nick Clifton <nickc@redhat.com>
5041
5042 * config/bfin/bfin.c (bfin_expand_prologue): Set
5043 current_function_static_stack_size if flag_stack_usage_info is set.
5044 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5045 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5046 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5047 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5048
5049 2015-06-25 Tom de Vries <tom@codesourcery.com>
5050
5051 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5052 comment that the generated IV is unsigned.
5053
5054 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5055
5056 PR target/29693
5057 * config/arm/arm.c (arm_dbx_register_number): Return
5058 DWARF_FRAME_REGISTERS by default.
5059
5060 2015-06-25 Tom de Vries <tom@codesourcery.com>
5061
5062 * dominance.c (calculate_dominance_info): Fix verify_dominators call
5063 argument. Call verify_dominator when reusing dominator info.
5064
5065 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
5066
5067 PR target/66563
5068 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5069 an additional element of the unspec vector. Modify indices
5070 of operands.
5071 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5072 * config/sh/sh.c (prepare_move_operands): Pass incremented
5073 const_int to gen_GOTaddr2picreg.
5074 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5075
5076 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5077
5078 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5079 Condition on TARGET_FLOAT.
5080
5081 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5082
5083 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5084 and (no)crypto.
5085
5086 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5087
5088 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5089
5090 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5091 aarch64_err_no_fpadvsimd.
5092
5093 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5094 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5095 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5096 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5097 Turn error into assert, test TARGET_FLOAT.
5098 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5099 TARGET_FLOAT.
5100
5101 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
5102
5103 PR debug/66482
5104 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5105
5106 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5107
5108 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5109
5110 2015-06-24 Renlin Li <renlin.li@arm.com>
5111
5112 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5113 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5114
5115 2015-06-24 Richard Biener <rguenther@suse.de>
5116
5117 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5118 (main): Likewise.
5119 (lower_opt_convert): Support lowering of conditional view_convert.
5120 (parser::parse_operation): Likewise.
5121 (parser::parse_for): Likewise.
5122
5123 2015-06-24 Renlin Li <renlin.li@arm.com>
5124
5125 * varasm.c (emit_local): Use unsigned int for align variable.
5126
5127 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5128
5129 PR target/63408
5130 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5131 for negative numbers.
5132
5133 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5134
5135 PR rtl-optimization/66306
5136 * reload.c (find_reloads): Swap the match_dup info for
5137 commutative operands.
5138
5139 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5140
5141 * config/s390/vx-builtins.md
5142 ("vec_scatter_element<mode>_<non_vec_int>")
5143 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5144 attribute with bhfgq.
5145
5146 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5147
5148 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5149
5150 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5151
5152 * config/s390/s390-builtin-types.def: Add flag to indicate the
5153 options under which the function type is needed.
5154 * config/s390/s390-builtins.def: Add flag to indicate the options
5155 under which the builtin is enabled.
5156 * config/s390/s390-builtins.h: Add flags parameter to macro
5157 definitions.
5158 (bflags_for_builtin): New function.
5159 (flags_for_builtin): Renamed to ...
5160 (opflags_for_builtin): ... this.
5161 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5162 flags_for_builtin to bflags_for_builtin and
5163 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5164 * config/s390/s390.c: Add initialization of bflags_builtin and
5165 opflags_builtin arrays.
5166 Remove code for flags_builtin.
5167 (s390_init_builtins): Only create builtin function types if one of
5168 their flags is active.
5169 Only create builtins if all of their flags are active.
5170 (s390_expand_builtin): Rename flags_for_builtin to
5171 opflags_for_builtin.
5172
5173 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5174
5175 * config/s390/vecintrin.h: Remove internal builtins.
5176
5177 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5178
5179 * config/s390/s390.c (s390_secondary_reload): Fix check for
5180 GENERAL_REGS register class.
5181
5182 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5183
5184 * config/s390/s390.c (s390_support_vector_misalignment): Call
5185 default implementation for !TARGET_VX.
5186
5187 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5188
5189 * config/s390/s390.c (s390_legitimate_constant_p): Add
5190 TARGET_VX check.
5191
5192 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5193
5194 * config/s390/s390.c (s390_vector_abi): New variable definition.
5195 (s390_check_type_for_vector_abi): New function.
5196 (TARGET_ASM_FILE_END): New macro definition.
5197 (s390_asm_file_end): New function.
5198 (s390_function_arg): Call s390_check_type_for_vector_abi.
5199 (s390_gimplify_va_arg): Likewise.
5200 * configure: Regenerate.
5201 * configure.ac: Check for .gnu_attribute Binutils feature.
5202
5203 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
5204
5205 PR target/65803
5206 * config/bfin/bfin.c (hwloop_optimize): Initialize
5207 JUMP_LABEL for newly created jump.
5208
5209 2015-06-23 Tristan Gingold <gingold@adacore.com>
5210
5211 * collect-utils.c (collect_wait): Unlink the response file here
5212 instead of...
5213 (do_wait): ...here.
5214 (utils_cleanup): ...and here.
5215
5216 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5217
5218 * df-scan.c: Don't include target-def.h.
5219 * targhooks.c: Likewise.
5220 * config/arm/arm-c.c: Likewise.
5221 * config/i386/i386-c.c: Likewise.
5222 * config/nds32/nds32-cost.c: Likewise.
5223 * config/nds32/nds32-fp-as-gp.c: Likewise.
5224 * config/nds32/nds32-intrinsic.c: Likewise.
5225 * config/nds32/nds32-isr.c: Likewise.
5226 * config/nds32/nds32-md-auxiliary.c: Likewise.
5227 * config/nds32/nds32-memory-manipulation.c: Likewise.
5228 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5229 * config/nds32/nds32-predicates.c: Likewise.
5230
5231 2015-06-23 Richard Biener <rguenther@suse.de>
5232
5233 PR tree-optimization/66636
5234 * tree-vect-stmts.c (vectorizable_store): Properly compute the
5235 def type for further defs for strided stores.
5236
5237 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
5238
5239 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5240 conditional selects.
5241 (setcc_int<mode>, setcc_float<mode>): Reformat.
5242
5243 2015-06-23 Marek Polacek <polacek@redhat.com>
5244
5245 * match.pd ((x + y) - (x | y) -> x & y,
5246 (x + y) - (x & y) -> x | y): New patterns.
5247
5248 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5249
5250 PR 65711
5251 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5252 '-dynamic-linker' within %{!shared: ...}.
5253
5254 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5255
5256 PR target/66560
5257 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5258 (addsub_vs_operator): Ditto.
5259 (addsub_vs_parallel): Ditto.
5260 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5261 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5262 Put minus RTX before plus and adjust vec_merge selector.
5263 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5264 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5265 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5266 (addsub vec_merge splitters): New combiner splitters.
5267 (addsub vec_select/vec_concat splitters): Ditto.
5268
5269 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5270
5271 PR tree-optimization/66449
5272 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5273 POINTER_PLUS_EXPR for pointers.
5274
5275 2015-06-23 Alan Modra <amodra@gmail.com>
5276
5277 * rtlanal.c (commutative_operand_precedence): Correct comments.
5278 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5279 declaration. Return an int. Distinguish REG,REG return from
5280 others.
5281 (struct simplify_plus_minus_op_data): Make local to function.
5282 (simplify_plus_minus): Don't set canonicalized if merely sorting
5283 registers. Avoid packing ops if nothing changes. White space fixes.
5284
5285 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5286
5287 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5288 -fdump-ada-spec is passed but not if -fsyntax-only is.
5289
5290 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5291
5292 PR bootstrap/63740
5293 * lra-lives.c (process_bb_lives): Check insn copying the same
5294 reload pseudo and don't create a copy for it.
5295
5296 2015-06-22 Tom de Vries <tom@codesourcery.com>
5297
5298 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5299 for cond_stmt.
5300
5301 2015-06-22 Tom de Vries <tom@codesourcery.com>
5302
5303 * builtins.def (DEF_GOMP_BUILTIN): Test
5304 'flag_tree_parallelize_loops > 1' instead of
5305 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5306
5307 2015-06-22 Tom de Vries <tom@codesourcery.com>
5308
5309 * dominance.c (calculate_dominance_info): Verify dominators if
5310 early-out.
5311
5312 2015-06-22 Marek Polacek <polacek@redhat.com>
5313
5314 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5315 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5316 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5317 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5318
5319 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5320
5321 PR target/65871
5322 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5323 cost of embedded comparison.
5324
5325 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5326
5327 PR target/65914
5328 * config/rs6000/predicates.md (altivec_register_operand): Permit
5329 virtual stack registers.
5330 (vsx_register_operand): Likewise.
5331 (vfloat_operand): Likewise.
5332 (vint_operand): Likewise.
5333 (vlogical_operand): Likewise.
5334
5335 2015-06-22 Richard Biener <rguenther@suse.de>
5336
5337 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5338 and single_scalar_iteration_cost members.
5339 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5340 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5341 (vect_get_single_scalar_iteration_cost): Remove.
5342 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5343 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5344 * tree-vect-loop.c (destroy_loop_vec_info): Free
5345 scalar_cost_vec.
5346 (vect_get_single_scalar_iteration_cost): Compute result into
5347 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5348 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5349 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5350 (vect_estimate_min_profitable_iters): Use them.
5351
5352 2015-06-22 Christian Bruel <christian.bruel@st.com>
5353
5354 PR target/52144
5355 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5356 (TARGET_INSERT_ATTRIBUTES): Define.
5357 (thumb_flipper): New var.
5358 * config/arm/arm.opt (-mflip-thumb): New switch.
5359
5360 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5361 Martin Liska <mliska@suse.cz>
5362
5363 PR ipa/65908
5364 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5365 construction of arg_types.
5366 (sem_function::sem_function): Likewise.
5367 (sem_function::~sem_function): Remove destruction of arg_types.
5368 (sem_function::compatible_parm_types_p): New function.
5369 (sem_function::equals_wpa): Reorg matching of return values
5370 and parameter types.
5371 (sem_function::equals_private): Reorg mathcing of argument types.
5372 (sem_function::parse_tree_args): Remove.
5373 * ipa-icf.h (init_wpa): Do not call it.
5374 (parse_tree_args): Remove.
5375 (compatible_parm_types_p): Declare.
5376 (result_type): Remove.
5377 (arg_types): Remove.
5378
5379 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5380
5381 PR ipa/66351
5382 * ipa-polymorphic-call.c
5383 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5384 initializing alias oracle; fix formating; set base_alias_set if it
5385 is known.
5386
5387 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5388
5389 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5390 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5391 (find_inc): Likewise.
5392 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5393 swapping.
5394 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5395 * df-scan.c (df_swap_refs): Remove.
5396 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5397 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5398 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5399 * fold-const.c (fold_relational_const): Likewise.
5400 * genattrtab.c (simplify_test_exp): Likewise.
5401 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5402 gimple_simplify): Likewise.
5403 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5404 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5405 * ipa-devirt.c (add_type_duplicate): Likewise.
5406 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5407 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5408 * lra.c (lra_create_copy): Likewise.
5409 * lto-streamer-out.c (DFS::DFS): Likewise.
5410 * modulo-sched.c (get_sched_window): Likewise.
5411 * omega.c (omega_pretty_print_problem): Likewise.
5412 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5413 * reload1.c (reloads_unique_chain_p): Likewise.
5414 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5415 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5416 use std::swap.
5417 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5418 manually swapping.
5419 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5420 predicate_mem_writes): Likewise.
5421 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5422 * tree-predcom.c (combine_chains): Likewise.
5423 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5424 refs_may_alias_p_1): Likewise.
5425 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5426 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5427 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5428 number_of_iterations_cond): Likewise.
5429 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5430 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5431 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5432 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5433 * tree-vrp.c (extract_range_from_binary_expr_1,
5434 extract_range_from_unary_expr_1): Likewise.
5435
5436 2015-06-20 Marek Polacek <polacek@redhat.com>
5437
5438 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5439
5440 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5441
5442 PR target/66591
5443 * config/sh/sh.c (prepare_move_operands): Replace subreg
5444 index term with R0 for base and index addressing.
5445
5446 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5447
5448 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5449 op1 is an fp zero.
5450 (movsf_aarch64): Change condition from register_operand to
5451 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5452 load1. Change type for alternative 7 to store1.
5453 (movdf_aarch64): Likewise.
5454
5455 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5456
5457 * config/vax/vax.md: Adjust sign/zero extend patterns to
5458 handle SUBREGs in operands[1].
5459
5460 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5461
5462 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5463 of manually swapping.
5464 (expand_vec_perm_interleave2): Likewise.
5465
5466 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5467
5468 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5469 reuse bounds created for abnormal ssa names.
5470
5471 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5472
5473 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5474 (allocate_stack_<mode>): ... this, and add :P on both
5475 match_operand and unspec.
5476 (allocate_stack): New expander.
5477
5478 2015-06-19 Christian Bruel <christian.bruel@st.com>
5479
5480 PR target/66541
5481 PR target/52144
5482 * config/arm/arm.c (arm_set_current_function): Handle
5483 explicit default options.
5484
5485 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5486
5487 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5488 (zero-extended cmove with mem peephole2): New pattern.
5489 (cmove with mem peephole2): Merge patterns.
5490
5491 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5492
5493 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5494
5495 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5496
5497 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5498 * config/mips/mips.md (*madd4<mode>): Ditto.
5499 (*nmadd3<mode>) Ditto.
5500 (*nmadd4<mode>_fastmath): Ditto.
5501 (*nmadd3<mode>_fastmath): Ditto.
5502 (*nmsub4<mode>): Ditto.
5503 (*nmsub3<mode>): Ditto.
5504 (*nmsub4<mode>_fastmath): Ditto.
5505 (*nmsub3<mode>_fastmath): Ditto.
5506
5507 2015-06-18 Michael Matz <matz@suse.de>
5508
5509 PR middle-end/66253
5510 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5511 grouped strided stores.
5512 (vectorizable_load): Don't use the DR from first_stmt in
5513 the non-SLP grouped strided case.
5514
5515 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5516
5517 PR target/66569
5518 * function.c (assign_bounds): Add arguments assign_regs,
5519 assign_special, assign_bt.
5520 (assign_parms): For vararg functions handle bounds in BT
5521 and special slots after incoming vararg bounds.
5522
5523 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5524
5525 PR middle-end/66568
5526 * cfgexpand.c (expand_return): Handle missing bounds.
5527 (expand_gimple_stmt_1): Likewise.
5528 * tree-chkp.c (chkp_expand_zero_bounds): New.
5529 * tree-chkp.h (chkp_expand_zero_bounds): New.
5530
5531 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5532
5533 PR middle-end/66567
5534 * ipa-chkp.c (chkp_maybe_create_clone): Require
5535 functions to be instrumentable.
5536 * tree-chkp.c (chkp_replace_function_pointer): Use
5537 chkp_instrumentable_p instead of attribute check.
5538
5539 2015-06-18 Richard Biener <rguenther@suse.de>
5540
5541 PR tree-optimization/66510
5542 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5543 number of vector loads for SLP permuted loads.
5544 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5545 check the stride for loop vectorization.
5546 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5547 vectorization factor.
5548 (vect_analyze_group_access): If the group size is not a power
5549 of two require a epilogue loop.
5550 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5551 compute and optimizing and alias test pruning after final
5552 vectorization factor computation.
5553 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5554 vector alignment.
5555 (vect_transform_slp_perm_load): Properly compute the original
5556 number of vector load stmts.
5557
5558 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5559
5560 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5561 "unlikely character , in @var" warning.
5562
5563 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5564
5565 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5566 (ix86_function_arg_advance): Ditto.
5567 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5568
5569 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5570
5571 * function.h (struct rtl_data): Remove struct and accessor macros.
5572 * emit-rtl.h (struct rtl_data): Relocate to here.
5573 * Makefile.in (GTFILES): Add emit-rtl.h.
5574 * df-core.c: Include emit-rtl.h.
5575 * genattrtab.c: Likewise.
5576 * genconditions.c: Likewise.
5577 * genpreds.c: Likewise.
5578 * genrecog.c: Likewise.
5579 * regcprop.c: Likewise.
5580 * resource.c: Likewise.
5581 * sched-rgn.c: Likewise.
5582 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5583 * config/i386/winnt.c: Likewise.
5584
5585 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5586
5587 PR middle-end/66429
5588 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5589 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5590 and has_force_vectorize_loops flags from cfun into
5591 child_cfun.
5592 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5593 if simduid is non-NULL.
5594 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5595 * passes.def (pass_simduid_cleanup): Add new pass after loop
5596 passes.
5597 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5598 indirection from htab argument's type.
5599 (shrink_simd_arrays): New function.
5600 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5601 Don't call adjust_simduid_builtins if there are no loops.
5602 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5603 (pass_simduid_cleanup::execute): New method.
5604 (make_pass_simduid_cleanup): New function.
5605
5606 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5607
5608 * tree-core.h (tree_target_option): Make opts field a pointer to a
5609 cl_target_option instead of an instance of the struct.
5610 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5611 the structure.
5612 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5613 TARGET_OPTION_NODE.
5614 (copy_node_stat): Allocate and copy struct cl_target_option.
5615
5616 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5617
5618 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5619 Remove conditional exposure of prototypes.
5620 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5621 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5622 definitions in tree.h with functions.
5623 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5624 anon_aggrname_p.
5625 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5626
5627 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5628
5629 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5630 (*cmp<mode>_signed): ... this.
5631 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5632 (*cmp<mode>_unsigned): ... this. Remove %b.
5633
5634 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5635
5636 * coretypes.h: Include input.h and as-a.h.
5637 * rtl.h: Include input.h and as-a.h for generator files.
5638 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5639 * vec.c: Don't include diagnostic-core.h.
5640 * alias.c: Do not include input.h, line-map.h or is-a.h.
5641 * asan.c: Likewise.
5642 * attribs.c: Likewise.
5643 * auto-inc-dec.c: Likewise.
5644 * auto-profile.c: Likewise.
5645 * bb-reorder.c: Likewise.
5646 * bt-load.c: Likewise.
5647 * builtins.c: Likewise.
5648 * caller-save.c: Likewise.
5649 * calls.c: Likewise.
5650 * ccmp.c: Likewise.
5651 * cfg.c: Likewise.
5652 * cfganal.c: Likewise.
5653 * cfgbuild.c: Likewise.
5654 * cfgcleanup.c: Likewise.
5655 * cfgexpand.c: Likewise.
5656 * cfghooks.c: Likewise.
5657 * cfgloop.c: Likewise.
5658 * cfgloop.h: Likewise.
5659 * cfgloopanal.c: Likewise.
5660 * cfgloopmanip.c: Likewise.
5661 * cfgrtl.c: Likewise.
5662 * cgraph.c: Likewise.
5663 * cgraphbuild.c: Likewise.
5664 * cgraphclones.c: Likewise.
5665 * cgraphunit.c: Likewise.
5666 * cilk-common.c: Likewise.
5667 * combine-stack-adj.c: Likewise.
5668 * combine.c: Likewise.
5669 * compare-elim.c: Likewise.
5670 * convert.c: Likewise.
5671 * coverage.c: Likewise.
5672 * cppbuiltin.c: Likewise.
5673 * cprop.c: Likewise.
5674 * cse.c: Likewise.
5675 * cselib.c: Likewise.
5676 * data-streamer-in.c: Likewise.
5677 * data-streamer-out.c: Likewise.
5678 * data-streamer.c: Likewise.
5679 * dbxout.c: Likewise.
5680 * dce.c: Likewise.
5681 * ddg.c: Likewise.
5682 * debug.c: Likewise.
5683 * df-core.c: Likewise.
5684 * df-problems.c: Likewise.
5685 * df-scan.c: Likewise.
5686 * df.h: Likewise.
5687 * dfp.c: Likewise.
5688 * diagnostic-core.h: Likewise.
5689 * diagnostic.c: Likewise.
5690 * dojump.c: Likewise.
5691 * dominance.c: Likewise.
5692 * domwalk.c: Likewise.
5693 * double-int.c: Likewise.
5694 * dse.c: Likewise.
5695 * dumpfile.c: Likewise.
5696 * dumpfile.h: Likewise.
5697 * dwarf2asm.c: Likewise.
5698 * dwarf2cfi.c: Likewise.
5699 * dwarf2out.c: Likewise.
5700 * emit-rtl.c: Likewise.
5701 * et-forest.c: Likewise.
5702 * except.c: Likewise.
5703 * explow.c: Likewise.
5704 * expmed.c: Likewise.
5705 * expr.c: Likewise.
5706 * final.c: Likewise.
5707 * fixed-value.c: Likewise.
5708 * fold-const.c: Likewise.
5709 * function.c: Likewise.
5710 * fwprop.c: Likewise.
5711 * gcc-plugin.h: Likewise.
5712 * gcse.c: Likewise.
5713 * generic-match-head.c: Likewise.
5714 * ggc-page.c: Likewise.
5715 * gimple-builder.c: Likewise.
5716 * gimple-expr.c: Likewise.
5717 * gimple-fold.c: Likewise.
5718 * gimple-iterator.c: Likewise.
5719 * gimple-low.c: Likewise.
5720 * gimple-match-head.c: Likewise.
5721 * gimple-pretty-print.c: Likewise.
5722 * gimple-ssa-isolate-paths.c: Likewise.
5723 * gimple-ssa-strength-reduction.c: Likewise.
5724 * gimple-streamer-in.c: Likewise.
5725 * gimple-streamer-out.c: Likewise.
5726 * gimple-streamer.h: Likewise.
5727 * gimple-walk.c: Likewise.
5728 * gimple.c: Likewise.
5729 * gimplify-me.c: Likewise.
5730 * gimplify.c: Likewise.
5731 * godump.c: Likewise.
5732 * graph.c: Likewise.
5733 * graphite-blocking.c: Likewise.
5734 * graphite-dependences.c: Likewise.
5735 * graphite-interchange.c: Likewise.
5736 * graphite-isl-ast-to-gimple.c: Likewise.
5737 * graphite-optimize-isl.c: Likewise.
5738 * graphite-poly.c: Likewise.
5739 * graphite-scop-detection.c: Likewise.
5740 * graphite-sese-to-poly.c: Likewise.
5741 * graphite.c: Likewise.
5742 * haifa-sched.c: Likewise.
5743 * hw-doloop.c: Likewise.
5744 * ifcvt.c: Likewise.
5745 * init-regs.c: Likewise.
5746 * input.c: Likewise.
5747 * internal-fn.c: Likewise.
5748 * ipa-chkp.c: Likewise.
5749 * ipa-comdats.c: Likewise.
5750 * ipa-cp.c: Likewise.
5751 * ipa-devirt.c: Likewise.
5752 * ipa-icf-gimple.c: Likewise.
5753 * ipa-icf.c: Likewise.
5754 * ipa-inline-analysis.c: Likewise.
5755 * ipa-inline-transform.c: Likewise.
5756 * ipa-inline.c: Likewise.
5757 * ipa-polymorphic-call.c: Likewise.
5758 * ipa-profile.c: Likewise.
5759 * ipa-prop.c: Likewise.
5760 * ipa-pure-const.c: Likewise.
5761 * ipa-ref.c: Likewise.
5762 * ipa-reference.c: Likewise.
5763 * ipa-split.c: Likewise.
5764 * ipa-utils.c: Likewise.
5765 * ipa-visibility.c: Likewise.
5766 * ipa.c: Likewise.
5767 * ira-build.c: Likewise.
5768 * ira-color.c: Likewise.
5769 * ira-conflicts.c: Likewise.
5770 * ira-costs.c: Likewise.
5771 * ira-emit.c: Likewise.
5772 * ira-lives.c: Likewise.
5773 * ira.c: Likewise.
5774 * jump.c: Likewise.
5775 * langhooks.c: Likewise.
5776 * lcm.c: Likewise.
5777 * loop-doloop.c: Likewise.
5778 * loop-init.c: Likewise.
5779 * loop-invariant.c: Likewise.
5780 * loop-iv.c: Likewise.
5781 * loop-unroll.c: Likewise.
5782 * lower-subreg.c: Likewise.
5783 * lra-assigns.c: Likewise.
5784 * lra-coalesce.c: Likewise.
5785 * lra-constraints.c: Likewise.
5786 * lra-eliminations.c: Likewise.
5787 * lra-lives.c: Likewise.
5788 * lra-remat.c: Likewise.
5789 * lra-spills.c: Likewise.
5790 * lra.c: Likewise.
5791 * lto-cgraph.c: Likewise.
5792 * lto-compress.c: Likewise.
5793 * lto-opts.c: Likewise.
5794 * lto-section-in.c: Likewise.
5795 * lto-section-out.c: Likewise.
5796 * lto-streamer-in.c: Likewise.
5797 * lto-streamer-out.c: Likewise.
5798 * lto-streamer.c: Likewise.
5799 * mcf.c: Likewise.
5800 * mode-switching.c: Likewise.
5801 * modulo-sched.c: Likewise.
5802 * omega.c: Likewise.
5803 * omp-low.c: Likewise.
5804 * optabs.c: Likewise.
5805 * opts-global.c: Likewise.
5806 * opts.h: Likewise.
5807 * passes.c: Likewise.
5808 * plugin.c: Likewise.
5809 * postreload-gcse.c: Likewise.
5810 * postreload.c: Likewise.
5811 * predict.c: Likewise.
5812 * pretty-print.h: Likewise.
5813 * print-rtl.c: Likewise.
5814 * print-tree.c: Likewise.
5815 * profile.c: Likewise.
5816 * real.c: Likewise.
5817 * realmpfr.c: Likewise.
5818 * recog.c: Likewise.
5819 * ree.c: Likewise.
5820 * reg-stack.c: Likewise.
5821 * regcprop.c: Likewise.
5822 * reginfo.c: Likewise.
5823 * regrename.c: Likewise.
5824 * regstat.c: Likewise.
5825 * reload.c: Likewise.
5826 * reload1.c: Likewise.
5827 * reorg.c: Likewise.
5828 * resource.c: Likewise.
5829 * rtl-chkp.c: Likewise.
5830 * rtl-error.c: Likewise.
5831 * rtlanal.c: Likewise.
5832 * rtlhooks.c: Likewise.
5833 * sanopt.c: Likewise.
5834 * sched-deps.c: Likewise.
5835 * sched-ebb.c: Likewise.
5836 * sched-rgn.c: Likewise.
5837 * sched-vis.c: Likewise.
5838 * sdbout.c: Likewise.
5839 * sel-sched-dump.c: Likewise.
5840 * sel-sched-ir.c: Likewise.
5841 * sel-sched.c: Likewise.
5842 * sese.c: Likewise.
5843 * shrink-wrap.c: Likewise.
5844 * simplify-rtx.c: Likewise.
5845 * stack-ptr-mod.c: Likewise.
5846 * statistics.c: Likewise.
5847 * stmt.c: Likewise.
5848 * stor-layout.c: Likewise.
5849 * store-motion.c: Likewise.
5850 * streamer-hooks.c: Likewise.
5851 * stringpool.c: Likewise.
5852 * symtab.c: Likewise.
5853 * target-globals.c: Likewise.
5854 * targhooks.c: Likewise.
5855 * toplev.c: Likewise.
5856 * tracer.c: Likewise.
5857 * trans-mem.c: Likewise.
5858 * tree-affine.c: Likewise.
5859 * tree-browser.c: Likewise.
5860 * tree-call-cdce.c: Likewise.
5861 * tree-cfg.c: Likewise.
5862 * tree-cfgcleanup.c: Likewise.
5863 * tree-chkp-opt.c: Likewise.
5864 * tree-chkp.c: Likewise.
5865 * tree-chrec.c: Likewise.
5866 * tree-complex.c: Likewise.
5867 * tree-data-ref.c: Likewise.
5868 * tree-dfa.c: Likewise.
5869 * tree-diagnostic.c: Likewise.
5870 * tree-dump.c: Likewise.
5871 * tree-eh.c: Likewise.
5872 * tree-emutls.c: Likewise.
5873 * tree-if-conv.c: Likewise.
5874 * tree-inline.c: Likewise.
5875 * tree-into-ssa.c: Likewise.
5876 * tree-iterator.c: Likewise.
5877 * tree-loop-distribution.c: Likewise.
5878 * tree-nested.c: Likewise.
5879 * tree-nrv.c: Likewise.
5880 * tree-object-size.c: Likewise.
5881 * tree-outof-ssa.c: Likewise.
5882 * tree-parloops.c: Likewise.
5883 * tree-phinodes.c: Likewise.
5884 * tree-predcom.c: Likewise.
5885 * tree-pretty-print.c: Likewise.
5886 * tree-profile.c: Likewise.
5887 * tree-scalar-evolution.c: Likewise.
5888 * tree-sra.c: Likewise.
5889 * tree-ssa-address.c: Likewise.
5890 * tree-ssa-alias.c: Likewise.
5891 * tree-ssa-ccp.c: Likewise.
5892 * tree-ssa-coalesce.c: Likewise.
5893 * tree-ssa-copy.c: Likewise.
5894 * tree-ssa-copyrename.c: Likewise.
5895 * tree-ssa-dce.c: Likewise.
5896 * tree-ssa-dom.c: Likewise.
5897 * tree-ssa-dse.c: Likewise.
5898 * tree-ssa-forwprop.c: Likewise.
5899 * tree-ssa-ifcombine.c: Likewise.
5900 * tree-ssa-live.c: Likewise.
5901 * tree-ssa-loop-ch.c: Likewise.
5902 * tree-ssa-loop-im.c: Likewise.
5903 * tree-ssa-loop-ivcanon.c: Likewise.
5904 * tree-ssa-loop-ivopts.c: Likewise.
5905 * tree-ssa-loop-manip.c: Likewise.
5906 * tree-ssa-loop-niter.c: Likewise.
5907 * tree-ssa-loop-prefetch.c: Likewise.
5908 * tree-ssa-loop-unswitch.c: Likewise.
5909 * tree-ssa-loop.c: Likewise.
5910 * tree-ssa-math-opts.c: Likewise.
5911 * tree-ssa-operands.c: Likewise.
5912 * tree-ssa-phiopt.c: Likewise.
5913 * tree-ssa-phiprop.c: Likewise.
5914 * tree-ssa-pre.c: Likewise.
5915 * tree-ssa-propagate.c: Likewise.
5916 * tree-ssa-reassoc.c: Likewise.
5917 * tree-ssa-sccvn.c: Likewise.
5918 * tree-ssa-scopedtables.c: Likewise.
5919 * tree-ssa-sink.c: Likewise.
5920 * tree-ssa-strlen.c: Likewise.
5921 * tree-ssa-structalias.c: Likewise.
5922 * tree-ssa-tail-merge.c: Likewise.
5923 * tree-ssa-ter.c: Likewise.
5924 * tree-ssa-threadedge.c: Likewise.
5925 * tree-ssa-threadupdate.c: Likewise.
5926 * tree-ssa-uncprop.c: Likewise.
5927 * tree-ssa-uninit.c: Likewise.
5928 * tree-ssa.c: Likewise.
5929 * tree-ssanames.c: Likewise.
5930 * tree-stdarg.c: Likewise.
5931 * tree-streamer-in.c: Likewise.
5932 * tree-streamer-out.c: Likewise.
5933 * tree-streamer.c: Likewise.
5934 * tree-switch-conversion.c: Likewise.
5935 * tree-tailcall.c: Likewise.
5936 * tree-vect-data-refs.c: Likewise.
5937 * tree-vect-generic.c: Likewise.
5938 * tree-vect-loop-manip.c: Likewise.
5939 * tree-vect-loop.c: Likewise.
5940 * tree-vect-patterns.c: Likewise.
5941 * tree-vect-slp.c: Likewise.
5942 * tree-vect-stmts.c: Likewise.
5943 * tree-vectorizer.c: Likewise.
5944 * tree-vrp.c: Likewise.
5945 * tree.c: Likewise.
5946 * tsan.c: Likewise.
5947 * ubsan.c: Likewise.
5948 * valtrack.c: Likewise.
5949 * value-prof.c: Likewise.
5950 * var-tracking.c: Likewise.
5951 * varasm.c: Likewise.
5952 * varpool.c: Likewise.
5953 * vmsdbgout.c: Likewise.
5954 * vtable-verify.c: Likewise.
5955 * web.c: Likewise.
5956 * wide-int.cc: Likewise.
5957 * xcoffout.c: Likewise.
5958 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5959 * common/common-targhooks.c: Likewise.
5960 * config/aarch64/aarch64-builtins.c: Likewise.
5961 * config/aarch64/aarch64.c: Likewise.
5962 * config/alpha/alpha.c: Likewise.
5963 * config/arc/arc.c: Likewise.
5964 * config/arm/aarch-common.c: Likewise.
5965 * config/arm/arm-builtins.c: Likewise.
5966 * config/arm/arm-c.c: Likewise.
5967 * config/arm/arm.c: Likewise.
5968 * config/avr/avr-c.c: Likewise.
5969 * config/avr/avr-log.c: Likewise.
5970 * config/avr/avr.c: Likewise.
5971 * config/bfin/bfin.c: Likewise.
5972 * config/c6x/c6x.c: Likewise.
5973 * config/cr16/cr16.c: Likewise.
5974 * config/cris/cris.c: Likewise.
5975 * config/darwin-c.c: Likewise.
5976 * config/darwin.c: Likewise.
5977 * config/default-c.c: Likewise.
5978 * config/epiphany/epiphany.c: Likewise.
5979 * config/epiphany/mode-switch-use.c: Likewise.
5980 * config/epiphany/resolve-sw-modes.c: Likewise.
5981 * config/fr30/fr30.c: Likewise.
5982 * config/frv/frv.c: Likewise.
5983 * config/ft32/ft32.c: Likewise.
5984 * config/glibc-c.c: Likewise.
5985 * config/h8300/h8300.c: Likewise.
5986 * config/i386/i386-c.c: Likewise.
5987 * config/i386/i386.c: Likewise.
5988 * config/i386/msformat-c.c: Likewise.
5989 * config/i386/winnt-cxx.c: Likewise.
5990 * config/i386/winnt-stubs.c: Likewise.
5991 * config/i386/winnt.c: Likewise.
5992 * config/ia64/ia64-c.c: Likewise.
5993 * config/ia64/ia64.c: Likewise.
5994 * config/iq2000/iq2000.c: Likewise.
5995 * config/lm32/lm32.c: Likewise.
5996 * config/m32c/m32c-pragma.c: Likewise.
5997 * config/m32c/m32c.c: Likewise.
5998 * config/m32r/m32r.c: Likewise.
5999 * config/m68k/m68k.c: Likewise.
6000 * config/mcore/mcore.c: Likewise.
6001 * config/mep/mep-pragma.c: Likewise.
6002 * config/mep/mep.c: Likewise.
6003 * config/microblaze/microblaze-c.c: Likewise.
6004 * config/microblaze/microblaze.c: Likewise.
6005 * config/mips/mips.c: Likewise.
6006 * config/mmix/mmix.c: Likewise.
6007 * config/mn10300/mn10300.c: Likewise.
6008 * config/moxie/moxie.c: Likewise.
6009 * config/msp430/msp430-c.c: Likewise.
6010 * config/msp430/msp430.c: Likewise.
6011 * config/nds32/nds32-cost.c: Likewise.
6012 * config/nds32/nds32-fp-as-gp.c: Likewise.
6013 * config/nds32/nds32-intrinsic.c: Likewise.
6014 * config/nds32/nds32-isr.c: Likewise.
6015 * config/nds32/nds32-md-auxiliary.c: Likewise.
6016 * config/nds32/nds32-memory-manipulation.c: Likewise.
6017 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6018 * config/nds32/nds32-predicates.c: Likewise.
6019 * config/nds32/nds32.c: Likewise.
6020 * config/nios2/nios2.c: Likewise.
6021 * config/nvptx/nvptx.c: Likewise.
6022 * config/pa/pa.c: Likewise.
6023 * config/pdp11/pdp11.c: Likewise.
6024 * config/rl78/rl78-c.c: Likewise.
6025 * config/rl78/rl78.c: Likewise.
6026 * config/rs6000/rs6000-c.c: Likewise.
6027 * config/rs6000/rs6000.c: Likewise.
6028 * config/rx/rx.c: Likewise.
6029 * config/s390/s390-c.c: Likewise.
6030 * config/s390/s390.c: Likewise.
6031 * config/sh/sh-c.c: Likewise.
6032 * config/sh/sh-mem.cc: Likewise.
6033 * config/sh/sh.c: Likewise.
6034 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6035 * config/sh/sh_treg_combine.cc: Likewise.
6036 * config/sol2-c.c: Likewise.
6037 * config/sol2-cxx.c: Likewise.
6038 * config/sol2-stubs.c: Likewise.
6039 * config/sol2.c: Likewise.
6040 * config/sparc/sparc-c.c: Likewise.
6041 * config/sparc/sparc.c: Likewise.
6042 * config/spu/spu-c.c: Likewise.
6043 * config/spu/spu.c: Likewise.
6044 * config/stormy16/stormy16.c: Likewise.
6045 * config/tilegx/mul-tables.c: Likewise.
6046 * config/tilegx/tilegx-c.c: Likewise.
6047 * config/tilegx/tilegx.c: Likewise.
6048 * config/tilepro/mul-tables.c: Likewise.
6049 * config/tilepro/tilepro-c.c: Likewise.
6050 * config/tilepro/tilepro.c: Likewise.
6051 * config/v850/v850-c.c: Likewise.
6052 * config/v850/v850.c: Likewise.
6053 * config/vax/vax.c: Likewise.
6054 * config/visium/visium.c: Likewise.
6055 * config/vms/vms-c.c: Likewise.
6056 * config/vms/vms.c: Likewise.
6057 * config/vxworks.c: Likewise.
6058 * config/winnt-c.c: Likewise.
6059 * config/xtensa/xtensa.c: Likewise.
6060
6061 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
6062
6063 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6064 function.
6065 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6066
6067 2015-06-17 Richard Biener <rguenther@suse.de>
6068
6069 PR tree-optimization/66251
6070 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6071 stmts for SLP strided stores.
6072
6073 Revert
6074 2015-05-22 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/66251
6077 * tree-vect-stmts.c (vectorizable_conversion): Properly
6078 set STMT_VINFO_VEC_STMT even for the SLP case.
6079
6080 2015-05-26 Michael Matz <matz@suse.de>
6081
6082 PR middle-end/66251
6083 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6084 STMT_VINFO_VEC_STMT, also with SLP.
6085
6086 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
6087
6088 PR target/56766
6089 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6090 (*avx_addsubv4df3_1s): Ditto.
6091 (*sse3_addsubv2df3_1): Ditto.
6092 (*sse3_addsubv2df3_1s): Ditto.
6093 (*avx_addsubv8sf3_1): Ditto.
6094 (*avx_addsubv8sf3_1s): Ditto.
6095 (*sse3_addsubv4sf3_1): Ditto.
6096 (*sse3_addsubv4sf3_1s): Ditto.
6097
6098 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
6099
6100 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6101 (SYSROOT_SUFFIX_SPEC): Update.
6102 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6103 (STARTFILE_PREFIX_SPEC): Update.
6104 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6105 (MULTILIB_REQUIRED): New.
6106 (MULTILIB_OSDIRNAMES): New.
6107 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6108 (MULTILIB_REQUIRED): New.
6109 (MULTILIB_OSDIRNAMES): New.
6110
6111 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
6112
6113 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6114 * config/aarch64/aarch64-options-extensions.def: Update "fP",
6115 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
6116 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6117 (AARCH64_FL_PAN): New.
6118 (AARCH64_FL_LOR): New.
6119 (AARCH64_FL_RDMA): New.
6120 (AARCH64_FL_FOR_ARCH8_1): New.
6121 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6122 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6123
6124 2015-06-16 Martin Liska <mliska@suse.cz>
6125
6126 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6127 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6128 guard.
6129
6130 2015-06-16 Richard Biener <rguenther@suse.de>
6131
6132 * tree-vect-stmts.c (vectorizable_store): Adjust.
6133 (vectorizable_load): Likewise.
6134 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6135 Simplify.
6136 (vect_create_data_ref_ptr): Likewise.
6137 (bump_vector_ptr): Adjust.
6138
6139 2015-06-16 Richard Biener <rguenther@suse.de>
6140
6141 * tree-vect-stmts.c (vectorizable_load): Properly start loads
6142 with the first element if this is grouped loads.
6143
6144 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
6145
6146 * config/arm/arm-protos.h (struct tune_params): Rename
6147 log_op_non_sc to log_op_non_short_circuit, and rename enum
6148 values to expand SC to SHORT_CIRCUIT.
6149 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6150 to LOG_OP_NON_SHORT_CIRCUIT.
6151 (arm_fastmul_tune):Likewise
6152 (arm_strongarm_tune): Likewise.
6153 (arm_xscale_tune): Likewise.
6154 (arm_9e_tune): Likewise.
6155 (arm_marvell_pj4_tune): Likewise.
6156 (arm_v6t2_tune): Likewise.
6157 (arm_cortex_tune): Likewise.
6158 (arm_cortex_a8_tune): Likewise.
6159 (arm_cortex_a7_tune): Likewise.
6160 (arm_cortex_a15_tune): Likewise.
6161 (arm_cortex_a53_tune): Likewise.
6162 (arm_cortex_a57_tune): Likewise.
6163 (arm_xgene1_tune): Likewise.
6164 (arm_cortex_a5_tune): Likewise.
6165 (arm_cortex_a9_tune): Likewise.
6166 (arm_cortex_a12_tune): Likewise.
6167 (arm_v7m_tune): Likewise.
6168 (arm_cortex_m7_tune): Likewise.
6169 (arm_v6m_tune): Likewise.
6170 (arm_fa726te_tune): Likewise.
6171
6172 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
6173
6174 * altivec.md: Delete UNSPEC_VMLADDUHM.
6175 (mulv4si3_p8): New pattern.
6176 (mulv4si3): Use it for POWER8.
6177 (mulv8hi3): Use vmladduhm with zero addend.
6178 (altivec_vmladduhm): Descriptive RTL.
6179
6180 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
6181
6182 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6183 to use neon_move instead of mov_imm.
6184 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6185 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6186
6187 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6188 aarch64_float_const_zero_rtx_p check before TFmode check.
6189 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6190 an fp zero.
6191 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
6192 code and attributes to match. Change condition from register_operand
6193 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
6194 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
6195 to store2.
6196
6197 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
6198
6199 PR debug/66535
6200 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6201 there is no parent.
6202
6203 2015-06-14 Shiva Chen <shiva0217@gmail.com>
6204
6205 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6206 HOST_WIDE_INT parameter.
6207
6208 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
6209
6210 PR ipa/66181
6211 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6212 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6213 TYPE_NO_FORCE_BLK.
6214 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6215
6216 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
6217
6218 * rtl.h (classify_insn): Declare.
6219 * emit-rtl.c (classify_insn): Move to...
6220 * rtl.c: ...here and add generator support.
6221 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6222 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6223 * genemit.c (gen_emit_seq): New function.
6224 (gen_expand, gen_split): Use it.
6225
6226 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
6227
6228 * tree.c (make_vector_stat): Fix comment to state that the
6229 function returns a VECTOR_CST.
6230
6231 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
6232
6233 * gensupport.h (add_implicit_parallel): Declare.
6234 * genrecog.c (add_implicit_parallel): Move to...
6235 * gensupport.c (add_implicit_parallel): ...here.
6236 (process_one_cond_exec): Use it.
6237 * genemit.c (gen_insn): Likewise.
6238
6239 2015-06-13 Iain Sandoe <iain@codesourcery.com>
6240
6241 PR bootstrap/66448
6242 * passes.c (rest_of_decl_compilation): Do not register globals for
6243 early debug if they are declared in built-ins.
6244
6245 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
6246
6247 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6248
6249 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6250
6251 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6252 manually swapping.
6253 (noce_try_cmove_arith): Likewise.
6254 (noce_get_alt_condition): Likewise.
6255
6256 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6257
6258 * common/config/i386/i386-common.c
6259 (OPTION_MASK_ISA_MWAITX_SET): New.
6260 (ix86_handle_option): Handle mwaitx.
6261 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6262 (x86_64-*-*): Likewise.
6263 * config/i386/mwaitxintrin.h: New header.
6264 * config/i386/cpuid.h (bit_MWAITX): Define.
6265 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6266 MWAITX support.
6267 * config/i386/i386.opt (mwaitx): New.
6268 * config/i386/i386-builtin-types.def
6269 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6270 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6271 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6272 (PTA_MWAITX): New.
6273 (ix86_option_override_internal): Handle new option.
6274 (processor_alias_table): Added PTA_MWAITX.
6275 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6276 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6277 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6278 IX86_BUILTIN_MONITORX built-ins.
6279 * config/i386/i386.h (TARGET_MWAITX): New.
6280 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6281 UNSPEC_MONITORX.
6282 (mwaitx): New pattern.
6283 (monitorx_<mode>): New pattern.
6284 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6285 * doc/extend.texi: Document monitorx and mwaitx builtins.
6286 * doc/invoke.texi: Document -mmwaitx option.
6287
6288 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6289
6290 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6291 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6292
6293 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6294
6295 * dbxout.c (xcoff_debug_hooks): Provide a function for
6296 register_main_translation_unit hook.
6297
6298 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6299
6300 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6301 variants cases from switch.
6302 (rs6000_post_atomic_barrier): Same.
6303 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6304 (rs6000_expand_atomic_exchange): Same.
6305 (rs6000_expand_atomic_op): Same.
6306 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6307 SYNC variants cases from switch.
6308 (atomic_load): Same.
6309 (atomic_store): Same.
6310
6311 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6312
6313 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6314 CONST_INT for goto.
6315
6316 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6317
6318 PR bootstrap/66448
6319 * dwarf2out.c (check_die): Check for common duplicate attributes.
6320 (add_location_or_const_value_attribute): Do not add duplicate
6321 attributes.
6322 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6323 time around.
6324 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6325 (gen_type_die_with_usage): Call check_die.
6326 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6327
6328 2015-06-11 Jason Merrill <jason@redhat.com>
6329
6330 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6331 dies.
6332
6333 2015-06-11 Marek Polacek <polacek@redhat.com>
6334
6335 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6336
6337 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6338
6339 PR bootstrap/66252
6340 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6341 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6342 (*addx_extend_sp32): Fix pasto.
6343 (*subx_extend): Rename into...
6344 (*subx_extend_sp32): ...this.
6345 (*adddi3_extend_sp32): Add earlyclobber.
6346 (*subdi3_insn_sp32): Likewise.
6347 (*subdi3_extend_sp32): Likewise.
6348 (*and_not_di_sp32): Likewise.
6349 (*or_not_di_sp32): Likewise.
6350 (*xor_not_di_sp32): Likewise.
6351 (*negdi2_sp32): Likewise.
6352 (*one_cmpldi2_sp32): Likewise.
6353
6354 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6355
6356 * debug.h (struct gcc_debug_hooks): Add a
6357 register_main_translation_unit hook.
6358 * debug.c (do_nothing_debug_hooks): Provide a function for this
6359 new hook.
6360 * dbxout.c (dbx_debug_hooks): Likewise.
6361 * sdbout.c (sdb_debug_hooks): Likewise.
6362 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6363 * dwarf2out.c (main_translation_unit): New global variable.
6364 (dwarf2out_register_main_translation_unit): New function
6365 implementing the new hook.
6366 (dwarf2_debug_hooks): Assign
6367 dwarf2out_register_main_translation_unit to this new hook.
6368 (dwarf2out_init): Associate any main translation unit to
6369 comp_unit_die ().
6370
6371 2015-06-11 Marek Polacek <polacek@redhat.com>
6372
6373 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6374
6375 2015-06-11 Marek Polacek <polacek@redhat.com>
6376
6377 * match.pd: Use single_use throughout.
6378
6379 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380
6381 * config/arm/arm.c (arm_option_params_internal): When optimising
6382 for speed set max_insns_skipped when arm_restrict_it.
6383
6384 2015-06-11 Christian Bruel <christian.bruel@st.com>
6385
6386 PR target/52144
6387 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6388 macros in ...
6389 (arm_cpu_builtins): New function.
6390 (arm_pragma_target_parse): Call arm_cpu_builtins.
6391 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6392 (arm_register_target_pragmas): Likewise.
6393 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6394 Call arm_register_target_pragmas.
6395 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6396 (arm_pragma_target_parse): Likewise.
6397
6398 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6399
6400 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6401 of the second operand.
6402
6403 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6404
6405 PR target/66473
6406 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6407 to prepare mask operand for AVX512 modes.
6408
6409 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6410
6411 PR target/66474
6412 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6413 if you use a constraint that targets a VSX register, you must use
6414 %x<n> in the template.
6415
6416 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6417
6418 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6419 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6420 (define_insn "trap"): New definition.
6421
6422 2015-06-10 Richard Biener <rguenther@suse.de>
6423
6424 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6425 out from ...
6426 (vect_supported_load_permutation_p): ... here. Handle
6427 supportable permutations in reductions.
6428 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6429 for vectorizing strided group loads.
6430
6431 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6432
6433 PR target/66470
6434 * config/i386/i386.c (ix86_split_long_move): For collisions
6435 involving direct tls segment refs, move the UNSPEC_TP possibly
6436 wrapped in ZERO_EXTEND out of the address for lea, to each of
6437 the memory loads.
6438
6439 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6440
6441 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6442 dmb sy. Adjust tabs.
6443
6444 2015-06-10 Tom de Vries <tom@codesourcery.com>
6445
6446 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6447
6448 2015-06-10 Martin Liska <mliska@suse.cz>
6449
6450 PR bootstrap/66471
6451 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6452 all enum values in mem_alloc_origin.
6453 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6454 name.
6455 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6456 * bitmap.c (bitmap_register): Likewise.
6457 (dump_bitmap_statistics): Likewise.
6458 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6459 (ggc_record_overhead): Likewise.
6460 * hash-map.h: Likewise.
6461 * hash-set.h: Likewise.
6462 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6463 * hash-table.h: Likewise.
6464 * vec.c (vec_prefix::register_overhead): Likewise.
6465 (vec_prefix::release_overhead): Likewise.
6466 (dump_vec_loc_statistics): Likewise.
6467
6468 2015-06-09 Christian Bruel <christian.bruel@st.com>
6469
6470 PR target/52144
6471 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6472 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6473 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6474 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6475 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6476 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6477 (arm_valid_target_attribute_p): Likewise.
6478 (arm_set_current_function, arm_can_inline_p): Likewise.
6479 (arm_valid_target_attribute_rec): Likewise.
6480 (arm_previous_fndecl): New variable.
6481 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6482 (TARGET_CAN_INLINE_P): Define.
6483 (arm_asm_trampoline_template): Emit mode.
6484 (arm_file_start): Don't set unified syntax.
6485 (arm_declare_function_name): Set unified syntax and mode.
6486 (arm_option_override): Init target_option_default_node.
6487 and target_option_current_node.
6488 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6489 (*call_symbol): Likewise.
6490 * doc/extend.texi: Document ARM/Thumb target attribute.
6491 * doc/invoke.texi: Likewise.
6492
6493 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6494
6495 Revert:
6496 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6497 PR rtl-optimization/64164
6498 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6499 * tree-ssa-copyrename.c: Removed.
6500 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6501 -ftree-coalesce-vars.
6502 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6503 * common.opt (ftree-copyrename): Ignore.
6504 (ftree-coalesce-inlined-vars): Likewise.
6505 * doc/invoke.texi: Remove the ignored options above.
6506 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6507 * tree-ssa-coalesce.h: ... here.
6508 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6509 headers required by it.
6510 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6511 across variables when flag_tree_coalesce_vars. Check register
6512 use and promoted modes to allow coalescing. Moved to
6513 tree-ssa-coalesce.c.
6514 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6515 with its member functions to tree-ssa-coalesce.c.
6516 (var_map_base_init): Likewise. Renamed to
6517 compute_samebase_partition_bases.
6518 (partition_view_normal): Drop want_bases parameter.
6519 (partition_view_bitmap): Likewise.
6520 * tree-ssa-live.h: Adjust declarations.
6521 * tree-ssa-coalesce.c: Include explow.h.
6522 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6523 default defs at the entry point.
6524 (dump_part_var_map): New.
6525 (compute_optimized_partition_bases): New, called by...
6526 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6527 of compute_samebase_partition_bases. Adjust.
6528 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6529 * cfgexpand.c (leader_merge): New.
6530 (get_rtl_for_parm_ssa_default_def): New.
6531 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6532 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6533 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6534 redundant MEM attr setting.
6535 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6536 from...
6537 (expand_one_stack_var): ... this. New wrapper to check and
6538 skip already expanded SSA partitions.
6539 (record_alignment_for_reg_var): New, factored out of...
6540 (expand_one_var): ... this.
6541 (expand_one_ssa_partition): New.
6542 (adjust_one_expanded_partition_var): New.
6543 (expand_one_register_var): Check and skip already expanded SSA
6544 partitions.
6545 (expand_used_vars): Don't create DECLs for anonymous SSA
6546 names. Expand all SSA partitions, then adjust all SSA names.
6547 (pass::execute): Replace the loops that set
6548 SA.partition_to_pseudo from partition leaders and cleared
6549 DECL_RTL for multi-location variables, and that which used to
6550 rename vars and set attrs, with one that clears DECL_RTL and
6551 checks that PARMs and RESULTs default_defs match DECL_RTL.
6552 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6553 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6554 * explow.c (promote_ssa_mode): New.
6555 * explow.h (promote_ssa_mode): Declare.
6556 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6557 * function.c: Include cfgexpand.h.
6558 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6559 (use_register_for_parm_decl): Wrapper for the above to
6560 special-case the result_ptr.
6561 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6562 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6563 multiple locations.
6564 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6565 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6566 (assign_parm_setup_block): Prefer SSA-assigned location.
6567 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6568 if stack_parm is NULL.
6569 (assign_parm_setup_stack): Prefer SSA-assigned location.
6570 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6571 rtl before testing for pointer bounds. Special-case result_ptr.
6572 (expand_function_start): Maybe reset DECL_RTL of result.
6573 Prefer SSA-assigned location for result and static chain.
6574 Factor out DECL_RESULT and SET_DECL_RTL.
6575 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6576 anonymous SSA names. Use promote_ssa_mode.
6577 (get_temp_reg): Likewise.
6578 (remove_ssa_form): Adjust.
6579 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6580 and get its reg_usage for reg invalidation.
6581 (compute_bb_dataflow): Pass it insn.
6582 (emit_notes_in_bb): Likewise.
6583 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6584 fail assert on conversion between unsigned types.
6585
6586 2015-06-09 Tom de Vries <tom@codesourcery.com>
6587
6588 PR tree-optimization/65460
6589 * omp-low.c (expand_omp_target): Set parallelized_function on
6590 cgraph_node for child_fn.
6591
6592 2015-06-09 Tom de Vries <tom@codesourcery.com>
6593
6594 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6595 parallelized_function before add_new_function.
6596
6597 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6598
6599 * gcc-plugin.h: Move decls to plugin.h and include it.
6600 * plugin.h: Relocate decls from gcc-plugin.h
6601 * ggc-page.c: Include required header files.
6602 * passes.c: Likewise.
6603 * cgraphunit.c: Likewise.
6604
6605 2015-06-09 Tom de Vries <tom@codesourcery.com>
6606
6607 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6608
6609 2015-06-09 Jason Merrill <jason@redhat.com>
6610
6611 PR bootstrap/66448
6612 * toplev.c (check_global_declaration): Don't warn about a clone.
6613
6614 2015-06-09 Marek Polacek <polacek@redhat.com>
6615
6616 PR tree-optimization/66299
6617 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6618 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6619 patterns.
6620
6621 2015-06-09 Richard Biener <rguenther@suse.de>
6622
6623 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6624 (vect_analyze_slp_instance): Instead do not falsely drop
6625 load permutations.
6626
6627 2015-06-09 Richard Biener <rguenther@suse.de>
6628
6629 PR middle-end/66423
6630 * match.pd: Handle A % (unsigned)(1 << B).
6631
6632 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6633
6634 * varasm.c (output_object_block_htab): Remove.
6635 (output_object_block_compare): New.
6636 (output_object_blocks): Sort named object_blocks before outputting
6637 them.
6638
6639 2015-06-09 Richard Biener <rguenther@suse.de>
6640
6641 PR tree-optimization/66419
6642 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6643 consider GROUP_GAP when detecting a perfect subchain.
6644
6645 2015-06-09 Nick Clifton <nickc@redhat.com>
6646
6647 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6648 place read only data in the .frodata section.
6649
6650 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6651
6652 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6653 (atomic_store<mode>): Likewise.
6654
6655 2015-06-09 Richard Biener <rguenther@suse.de>
6656
6657 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6658
6659 2015-06-09 Richard Biener <rguenther@suse.de>
6660
6661 PR middle-end/66413
6662 * tree-inline.c (insert_init_debug_bind): Unshare value.
6663
6664 2015-06-09 Richard Biener <rguenther@suse.de>
6665
6666 PR tree-optimization/66396
6667 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6668 Rename virtual operands.
6669
6670 2015-06-09 Tom de Vries <tom@codesourcery.com>
6671
6672 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6673 always return false.
6674
6675 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6676
6677 PR rtl-optimization/64164
6678 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6679 * tree-ssa-copyrename.c: Removed.
6680 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6681 -ftree-coalesce-vars.
6682 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6683 * common.opt (ftree-copyrename): Ignore.
6684 (ftree-coalesce-inlined-vars): Likewise.
6685 * doc/invoke.texi: Remove the ignored options above.
6686 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6687 * tree-ssa-coalesce.h: ... here.
6688 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6689 headers required by it.
6690 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6691 across variables when flag_tree_coalesce_vars. Check register
6692 use and promoted modes to allow coalescing. Moved to
6693 tree-ssa-coalesce.c.
6694 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6695 with its member functions to tree-ssa-coalesce.c.
6696 (var_map_base_init): Likewise. Renamed to
6697 compute_samebase_partition_bases.
6698 (partition_view_normal): Drop want_bases parameter.
6699 (partition_view_bitmap): Likewise.
6700 * tree-ssa-live.h: Adjust declarations.
6701 * tree-ssa-coalesce.c: Include explow.h.
6702 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6703 default defs at the entry point.
6704 (dump_part_var_map): New.
6705 (compute_optimized_partition_bases): New, called by...
6706 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6707 of compute_samebase_partition_bases. Adjust.
6708 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6709 * cfgexpand.c (leader_merge): New.
6710 (get_rtl_for_parm_ssa_default_def): New.
6711 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6712 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6713 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6714 redundant MEM attr setting.
6715 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6716 from...
6717 (expand_one_stack_var): ... this. New wrapper to check and
6718 skip already expanded SSA partitions.
6719 (record_alignment_for_reg_var): New, factored out of...
6720 (expand_one_var): ... this.
6721 (expand_one_ssa_partition): New.
6722 (adjust_one_expanded_partition_var): New.
6723 (expand_one_register_var): Check and skip already expanded SSA
6724 partitions.
6725 (expand_used_vars): Don't create DECLs for anonymous SSA
6726 names. Expand all SSA partitions, then adjust all SSA names.
6727 (pass::execute): Replace the loops that set
6728 SA.partition_to_pseudo from partition leaders and cleared
6729 DECL_RTL for multi-location variables, and that which used to
6730 rename vars and set attrs, with one that clears DECL_RTL and
6731 checks that PARMs and RESULTs default_defs match DECL_RTL.
6732 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6733 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6734 * explow.c (promote_ssa_mode): New.
6735 * explow.h (promote_ssa_mode): Declare.
6736 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6737 * function.c: Include cfgexpand.h.
6738 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6739 (use_register_for_parm_decl): Wrapper for the above to
6740 special-case the result_ptr.
6741 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6742 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6743 multiple locations.
6744 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6745 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6746 (assign_parm_setup_block): Prefer SSA-assigned location.
6747 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6748 if stack_parm is NULL.
6749 (assign_parm_setup_stack): Prefer SSA-assigned location.
6750 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6751 rtl before testing for pointer bounds. Special-case result_ptr.
6752 (expand_function_start): Maybe reset DECL_RTL of result.
6753 Prefer SSA-assigned location for result and static chain.
6754 Factor out DECL_RESULT and SET_DECL_RTL.
6755 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6756 anonymous SSA names. Use promote_ssa_mode.
6757 (get_temp_reg): Likewise.
6758 (remove_ssa_form): Adjust.
6759 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6760 and get its reg_usage for reg invalidation.
6761 (compute_bb_dataflow): Pass it insn.
6762 (emit_notes_in_bb): Likewise.
6763 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6764 fail assert on conversion between unsigned types.
6765
6766 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6767
6768 PR debug/58315
6769 * tree-inline.c (reset_debug_binding): New.
6770 (reset_debug_bindings): Likewise.
6771 (expand_call_inline): Call it.
6772
6773 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6774
6775 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6776 TYPE_STRING_FLAG.
6777
6778 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6779
6780 * lto-streamer-out.c (lto_output_location): Stream
6781 reserved locations correctly.
6782 * lto-streamer-in.c (lto_output_location): Likewise.
6783
6784 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
6785
6786 * coretypes.h: Include hash-table.h and hash-set.h for host files.
6787 * ggc.h: Don't include statistics.h>
6788 * hash-map.h: Remove all includes.
6789 * hash-set.h: Likewise.
6790 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6791 the include list. Remove <new>.
6792 * inchash.h: Remove all includes.
6793 * mem-stats.h: Likewise.
6794 * vec.h: No special processing for generators or ggc.
6795 * alias.c : Adjust include files.
6796 * alloc-pool.c : Likewise.
6797 * alloc-pool.h : Likewise.
6798 * asan.c : Likewise.
6799 * attribs.c : Likewise.
6800 * auto-inc-dec.c : Likewise.
6801 * auto-profile.c : Likewise.
6802 * bb-reorder.c : Likewise.
6803 * bitmap.c : Likewise.
6804 * bitmap.h : Likewise.
6805 * bt-load.c : Likewise.
6806 * builtins.c : Likewise.
6807 * caller-save.c : Likewise.
6808 * calls.c : Likewise.
6809 * ccmp.c : Likewise.
6810 * cfg.c : Likewise.
6811 * cfganal.c : Likewise.
6812 * cfgbuild.c : Likewise.
6813 * cfgcleanup.c : Likewise.
6814 * cfgexpand.c : Likewise.
6815 * cfghooks.c : Likewise.
6816 * cfgloop.c : Likewise.
6817 * cfgloop.h : Likewise.
6818 * cfgloopanal.c : Likewise.
6819 * cfgloopmanip.c : Likewise.
6820 * cfgrtl.c : Likewise.
6821 * cgraph.c : Likewise.
6822 * cgraphbuild.c : Likewise.
6823 * cgraphclones.c : Likewise.
6824 * cgraphunit.c : Likewise.
6825 * cilk-common.c : Likewise.
6826 * combine-stack-adj.c : Likewise.
6827 * combine.c : Likewise.
6828 * compare-elim.c : Likewise.
6829 * context.c : Likewise.
6830 * convert.c : Likewise.
6831 * coverage.c : Likewise.
6832 * cppbuiltin.c : Likewise.
6833 * cprop.c : Likewise.
6834 * cse.c : Likewise.
6835 * cselib.c : Likewise.
6836 * data-streamer-in.c : Likewise.
6837 * data-streamer-out.c : Likewise.
6838 * data-streamer.c : Likewise.
6839 * data-streamer.h : Likewise.
6840 * dbxout.c : Likewise.
6841 * dce.c : Likewise.
6842 * ddg.c : Likewise.
6843 * debug.c : Likewise.
6844 * df-core.c : Likewise.
6845 * df-problems.c : Likewise.
6846 * df-scan.c : Likewise.
6847 * df.h : Likewise.
6848 * dfp.c : Likewise.
6849 * dojump.c : Likewise.
6850 * dominance.c : Likewise.
6851 * domwalk.c : Likewise.
6852 * double-int.c : Likewise.
6853 * dse.c : Likewise.
6854 * dumpfile.c : Likewise.
6855 * dwarf2asm.c : Likewise.
6856 * dwarf2cfi.c : Likewise.
6857 * dwarf2out.c : Likewise.
6858 * emit-rtl.c : Likewise.
6859 * et-forest.c : Likewise.
6860 * except.c : Likewise.
6861 * except.h : Likewise.
6862 * explow.c : Likewise.
6863 * expmed.c : Likewise.
6864 * expr.c : Likewise.
6865 * final.c : Likewise.
6866 * fixed-value.c : Likewise.
6867 * fold-const.c : Likewise.
6868 * function.c : Likewise.
6869 * fwprop.c : Likewise.
6870 * gcc-plugin.h : Likewise.
6871 * gcc.c : Likewise.
6872 * gcse-common.c : Likewise.
6873 * gcse.c : Likewise.
6874 * genattrtab.c : Likewise.
6875 * genautomata.c : Likewise.
6876 * genconditions.c : Likewise.
6877 * genemit.c : Likewise.
6878 * generic-match-head.c : Likewise.
6879 * genextract.c : Likewise.
6880 * gengtype-state.c : Likewise.
6881 * gengtype.c : Likewise.
6882 * genhooks.c : Likewise.
6883 * genmatch.c : Likewise.
6884 * genmodes.c : Likewise.
6885 * genrecog.c : Likewise.
6886 * gensupport.c : Likewise.
6887 * ggc-common.c : Likewise.
6888 * ggc-internal.h : Likewise.
6889 * ggc-none.c : Likewise.
6890 * ggc-page.c : Likewise.
6891 * gimple-builder.c : Likewise.
6892 * gimple-expr.c : Likewise.
6893 * gimple-fold.c : Likewise.
6894 * gimple-iterator.c : Likewise.
6895 * gimple-low.c : Likewise.
6896 * gimple-match-head.c : Likewise.
6897 * gimple-pretty-print.c : Likewise.
6898 * gimple-ssa-isolate-paths.c : Likewise.
6899 * gimple-ssa-strength-reduction.c : Likewise.
6900 * gimple-ssa.h : Likewise.
6901 * gimple-streamer-in.c : Likewise.
6902 * gimple-streamer-out.c : Likewise.
6903 * gimple-streamer.h : Likewise.
6904 * gimple-walk.c : Likewise.
6905 * gimple.c : Likewise.
6906 * gimplify-me.c : Likewise.
6907 * gimplify.c : Likewise.
6908 * godump.c : Likewise.
6909 * graph.c : Likewise.
6910 * graphds.c : Likewise.
6911 * graphite-blocking.c : Likewise.
6912 * graphite-dependences.c : Likewise.
6913 * graphite-interchange.c : Likewise.
6914 * graphite-isl-ast-to-gimple.c : Likewise.
6915 * graphite-optimize-isl.c : Likewise.
6916 * graphite-poly.c : Likewise.
6917 * graphite-scop-detection.c : Likewise.
6918 * graphite-sese-to-poly.c : Likewise.
6919 * graphite.c : Likewise.
6920 * haifa-sched.c : Likewise.
6921 * hard-reg-set.h : Likewise.
6922 * hw-doloop.c : Likewise.
6923 * ifcvt.c : Likewise.
6924 * inchash.c : Likewise.
6925 * incpath.c : Likewise.
6926 * init-regs.c : Likewise.
6927 * input.c : Likewise.
6928 * internal-fn.c : Likewise.
6929 * ipa-chkp.c : Likewise.
6930 * ipa-comdats.c : Likewise.
6931 * ipa-cp.c : Likewise.
6932 * ipa-devirt.c : Likewise.
6933 * ipa-icf-gimple.c : Likewise.
6934 * ipa-icf.c : Likewise.
6935 * ipa-inline-analysis.c : Likewise.
6936 * ipa-inline-transform.c : Likewise.
6937 * ipa-inline.c : Likewise.
6938 * ipa-polymorphic-call.c : Likewise.
6939 * ipa-profile.c : Likewise.
6940 * ipa-prop.c : Likewise.
6941 * ipa-pure-const.c : Likewise.
6942 * ipa-ref.c : Likewise.
6943 * ipa-reference.c : Likewise.
6944 * ipa-split.c : Likewise.
6945 * ipa-utils.c : Likewise.
6946 * ipa-visibility.c : Likewise.
6947 * ipa.c : Likewise.
6948 * ira-build.c : Likewise.
6949 * ira-color.c : Likewise.
6950 * ira-conflicts.c : Likewise.
6951 * ira-costs.c : Likewise.
6952 * ira-emit.c : Likewise.
6953 * ira-lives.c : Likewise.
6954 * ira.c : Likewise.
6955 * jump.c : Likewise.
6956 * langhooks.c : Likewise.
6957 * lcm.c : Likewise.
6958 * libfuncs.h : Likewise.
6959 * lists.c : Likewise.
6960 * loop-doloop.c : Likewise.
6961 * loop-init.c : Likewise.
6962 * loop-invariant.c : Likewise.
6963 * loop-iv.c : Likewise.
6964 * loop-unroll.c : Likewise.
6965 * lower-subreg.c : Likewise.
6966 * lra-assigns.c : Likewise.
6967 * lra-coalesce.c : Likewise.
6968 * lra-constraints.c : Likewise.
6969 * lra-eliminations.c : Likewise.
6970 * lra-lives.c : Likewise.
6971 * lra-remat.c : Likewise.
6972 * lra-spills.c : Likewise.
6973 * lra.c : Likewise.
6974 * lto-cgraph.c : Likewise.
6975 * lto-compress.c : Likewise.
6976 * lto-opts.c : Likewise.
6977 * lto-section-in.c : Likewise.
6978 * lto-section-out.c : Likewise.
6979 * lto-streamer-in.c : Likewise.
6980 * lto-streamer-out.c : Likewise.
6981 * lto-streamer.c : Likewise.
6982 * lto-streamer.h : Likewise.
6983 * mcf.c : Likewise.
6984 * mode-switching.c : Likewise.
6985 * modulo-sched.c : Likewise.
6986 * omega.c : Likewise.
6987 * omp-low.c : Likewise.
6988 * optabs.c : Likewise.
6989 * opts-global.c : Likewise.
6990 * opts.h : Likewise.
6991 * passes.c : Likewise.
6992 * plugin.c : Likewise.
6993 * postreload-gcse.c : Likewise.
6994 * postreload.c : Likewise.
6995 * predict.c : Likewise.
6996 * print-rtl.c : Likewise.
6997 * print-tree.c : Likewise.
6998 * profile.c : Likewise.
6999 * read-md.c : Likewise.
7000 * read-md.h : Likewise.
7001 * read-rtl.c : Likewise.
7002 * real.c : Likewise.
7003 * realmpfr.c : Likewise.
7004 * recog.c : Likewise.
7005 * ree.c : Likewise.
7006 * reg-stack.c : Likewise.
7007 * regcprop.c : Likewise.
7008 * reginfo.c : Likewise.
7009 * regrename.c : Likewise.
7010 * regstat.c : Likewise.
7011 * reload.c : Likewise.
7012 * reload1.c : Likewise.
7013 * reorg.c : Likewise.
7014 * resource.c : Likewise.
7015 * rtl-chkp.c : Likewise.
7016 * rtl.c : Likewise.
7017 * rtl.h : Likewise.
7018 * rtlanal.c : Likewise.
7019 * rtlhash.c : Likewise.
7020 * rtlhash.h : Likewise.
7021 * rtlhooks.c : Likewise.
7022 * sanopt.c : Likewise.
7023 * sched-deps.c : Likewise.
7024 * sched-ebb.c : Likewise.
7025 * sched-rgn.c : Likewise.
7026 * sched-vis.c : Likewise.
7027 * sdbout.c : Likewise.
7028 * sel-sched-dump.c : Likewise.
7029 * sel-sched-ir.c : Likewise.
7030 * sel-sched-ir.h : Likewise.
7031 * sel-sched.c : Likewise.
7032 * sese.c : Likewise.
7033 * shrink-wrap.c : Likewise.
7034 * shrink-wrap.h : Likewise.
7035 * simplify-rtx.c : Likewise.
7036 * stack-ptr-mod.c : Likewise.
7037 * statistics.c : Likewise.
7038 * stmt.c : Likewise.
7039 * stor-layout.c : Likewise.
7040 * store-motion.c : Likewise.
7041 * stringpool.c : Likewise.
7042 * symtab.c : Likewise.
7043 * target-globals.c : Likewise.
7044 * targhooks.c : Likewise.
7045 * tlink.c : Likewise.
7046 * toplev.c : Likewise.
7047 * tracer.c : Likewise.
7048 * trans-mem.c : Likewise.
7049 * tree-affine.c : Likewise.
7050 * tree-affine.h : Likewise.
7051 * tree-browser.c : Likewise.
7052 * tree-call-cdce.c : Likewise.
7053 * tree-cfg.c : Likewise.
7054 * tree-cfgcleanup.c : Likewise.
7055 * tree-chkp-opt.c : Likewise.
7056 * tree-chkp.c : Likewise.
7057 * tree-chrec.c : Likewise.
7058 * tree-complex.c : Likewise.
7059 * tree-data-ref.c : Likewise.
7060 * tree-dfa.c : Likewise.
7061 * tree-diagnostic.c : Likewise.
7062 * tree-dump.c : Likewise.
7063 * tree-eh.c : Likewise.
7064 * tree-eh.h : Likewise.
7065 * tree-emutls.c : Likewise.
7066 * tree-hasher.h : Likewise.
7067 * tree-if-conv.c : Likewise.
7068 * tree-inline.c : Likewise.
7069 * tree-inline.h : Likewise.
7070 * tree-into-ssa.c : Likewise.
7071 * tree-iterator.c : Likewise.
7072 * tree-loop-distribution.c : Likewise.
7073 * tree-nested.c : Likewise.
7074 * tree-nrv.c : Likewise.
7075 * tree-object-size.c : Likewise.
7076 * tree-outof-ssa.c : Likewise.
7077 * tree-parloops.c : Likewise.
7078 * tree-phinodes.c : Likewise.
7079 * tree-predcom.c : Likewise.
7080 * tree-pretty-print.c : Likewise.
7081 * tree-profile.c : Likewise.
7082 * tree-scalar-evolution.c : Likewise.
7083 * tree-sra.c : Likewise.
7084 * tree-ssa-address.c : Likewise.
7085 * tree-ssa-alias.c : Likewise.
7086 * tree-ssa-ccp.c : Likewise.
7087 * tree-ssa-coalesce.c : Likewise.
7088 * tree-ssa-copy.c : Likewise.
7089 * tree-ssa-copyrename.c : Likewise.
7090 * tree-ssa-dce.c : Likewise.
7091 * tree-ssa-dom.c : Likewise.
7092 * tree-ssa-dse.c : Likewise.
7093 * tree-ssa-forwprop.c : Likewise.
7094 * tree-ssa-ifcombine.c : Likewise.
7095 * tree-ssa-live.c : Likewise.
7096 * tree-ssa-loop-ch.c : Likewise.
7097 * tree-ssa-loop-im.c : Likewise.
7098 * tree-ssa-loop-ivcanon.c : Likewise.
7099 * tree-ssa-loop-ivopts.c : Likewise.
7100 * tree-ssa-loop-manip.c : Likewise.
7101 * tree-ssa-loop-niter.c : Likewise.
7102 * tree-ssa-loop-prefetch.c : Likewise.
7103 * tree-ssa-loop-unswitch.c : Likewise.
7104 * tree-ssa-loop.c : Likewise.
7105 * tree-ssa-math-opts.c : Likewise.
7106 * tree-ssa-operands.c : Likewise.
7107 * tree-ssa-phiopt.c : Likewise.
7108 * tree-ssa-phiprop.c : Likewise.
7109 * tree-ssa-pre.c : Likewise.
7110 * tree-ssa-propagate.c : Likewise.
7111 * tree-ssa-reassoc.c : Likewise.
7112 * tree-ssa-sccvn.c : Likewise.
7113 * tree-ssa-scopedtables.c : Likewise.
7114 * tree-ssa-sink.c : Likewise.
7115 * tree-ssa-strlen.c : Likewise.
7116 * tree-ssa-structalias.c : Likewise.
7117 * tree-ssa-tail-merge.c : Likewise.
7118 * tree-ssa-ter.c : Likewise.
7119 * tree-ssa-threadedge.c : Likewise.
7120 * tree-ssa-threadupdate.c : Likewise.
7121 * tree-ssa-uncprop.c : Likewise.
7122 * tree-ssa-uninit.c : Likewise.
7123 * tree-ssa.c : Likewise.
7124 * tree-ssanames.c : Likewise.
7125 * tree-stdarg.c : Likewise.
7126 * tree-streamer-in.c : Likewise.
7127 * tree-streamer-out.c : Likewise.
7128 * tree-streamer.c : Likewise.
7129 * tree-streamer.h : Likewise.
7130 * tree-switch-conversion.c : Likewise.
7131 * tree-tailcall.c : Likewise.
7132 * tree-vect-data-refs.c : Likewise.
7133 * tree-vect-generic.c : Likewise.
7134 * tree-vect-loop-manip.c : Likewise.
7135 * tree-vect-loop.c : Likewise.
7136 * tree-vect-patterns.c : Likewise.
7137 * tree-vect-slp.c : Likewise.
7138 * tree-vect-stmts.c : Likewise.
7139 * tree-vectorizer.c : Likewise.
7140 * tree-vectorizer.h : Likewise.
7141 * tree-vrp.c : Likewise.
7142 * tree.c : Likewise.
7143 * tsan.c : Likewise.
7144 * ubsan.c : Likewise.
7145 * valtrack.c : Likewise.
7146 * valtrack.h : Likewise.
7147 * value-prof.c : Likewise.
7148 * var-tracking.c : Likewise.
7149 * varasm.c : Likewise.
7150 * varpool.c : Likewise.
7151 * vec.c: Likewise.
7152 * vmsdbgout.c : Likewise.
7153 * vtable-verify.c : Likewise.
7154 * vtable-verify.h : Likewise.
7155 * web.c : Likewise.
7156 * wide-int.cc : Likewise.
7157 * xcoffout.c : Likewise.
7158 * config/aarch64/aarch64-builtins.c : Likewise.
7159 * config/aarch64/aarch64.c : Likewise.
7160 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7161 * config/alpha/alpha.c : Likewise.
7162 * config/arc/arc.c : Likewise.
7163 * config/arm/aarch-common.c : Likewise.
7164 * config/arm/arm-builtins.c : Likewise.
7165 * config/arm/arm-c.c : Likewise.
7166 * config/arm/arm.c : Likewise.
7167 * config/avr/avr-c.c : Likewise.
7168 * config/avr/avr-log.c : Likewise.
7169 * config/avr/avr.c : Likewise.
7170 * config/bfin/bfin.c : Likewise.
7171 * config/c6x/c6x.c : Likewise.
7172 * config/cr16/cr16.c : Likewise.
7173 * config/cris/cris.c : Likewise.
7174 * config/darwin-c.c : Likewise.
7175 * config/darwin.c : Likewise.
7176 * config/default-c.c : Likewise.
7177 * config/epiphany/epiphany.c : Likewise.
7178 * config/epiphany/mode-switch-use.c : Likewise.
7179 * config/epiphany/resolve-sw-modes.c : Likewise.
7180 * config/fr30/fr30.c : Likewise.
7181 * config/frv/frv.c : Likewise.
7182 * config/ft32/ft32.c : Likewise.
7183 * config/glibc-c.c : Likewise.
7184 * config/h8300/h8300.c : Likewise.
7185 * config/i386/i386-c.c : Likewise.
7186 * config/i386/i386.c : Likewise.
7187 * config/i386/msformat-c.c : Likewise.
7188 * config/i386/winnt-cxx.c : Likewise.
7189 * config/i386/winnt-stubs.c : Likewise.
7190 * config/i386/winnt.c : Likewise.
7191 * config/ia64/ia64-c.c : Likewise.
7192 * config/ia64/ia64.c : Likewise.
7193 * config/iq2000/iq2000.c : Likewise.
7194 * config/lm32/lm32.c : Likewise.
7195 * config/m32c/m32c-pragma.c : Likewise.
7196 * config/m32c/m32c.c : Likewise.
7197 * config/m32r/m32r.c : Likewise.
7198 * config/m68k/m68k.c : Likewise.
7199 * config/mcore/mcore.c : Likewise.
7200 * config/mep/mep-pragma.c : Likewise.
7201 * config/mep/mep.c : Likewise.
7202 * config/microblaze/microblaze-c.c : Likewise.
7203 * config/microblaze/microblaze.c : Likewise.
7204 * config/mips/mips.c : Likewise.
7205 * config/mmix/mmix.c : Likewise.
7206 * config/mn10300/mn10300.c : Likewise.
7207 * config/moxie/moxie.c : Likewise.
7208 * config/msp430/msp430-c.c : Likewise.
7209 * config/msp430/msp430.c : Likewise.
7210 * config/nds32/nds32-cost.c : Likewise.
7211 * config/nds32/nds32-fp-as-gp.c : Likewise.
7212 * config/nds32/nds32-intrinsic.c : Likewise.
7213 * config/nds32/nds32-isr.c : Likewise.
7214 * config/nds32/nds32-md-auxiliary.c : Likewise.
7215 * config/nds32/nds32-memory-manipulation.c : Likewise.
7216 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7217 * config/nds32/nds32-predicates.c : Likewise.
7218 * config/nds32/nds32.c : Likewise.
7219 * config/nios2/nios2.c : Likewise.
7220 * config/nvptx/nvptx.c : Likewise.
7221 * config/pa/pa.c : Likewise.
7222 * config/pdp11/pdp11.c : Likewise.
7223 * config/rl78/rl78-c.c : Likewise.
7224 * config/rl78/rl78.c : Likewise.
7225 * config/rs6000/rs6000-c.c : Likewise.
7226 * config/rs6000/rs6000.c : Likewise.
7227 * config/rx/rx.c : Likewise.
7228 * config/s390/s390-c.c : Likewise.
7229 * config/s390/s390.c : Likewise.
7230 * config/sh/sh-c.c : Likewise.
7231 * config/sh/sh-mem.cc : Likewise.
7232 * config/sh/sh.c : Likewise.
7233 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7234 * config/sh/sh_treg_combine.cc : Likewise.
7235 * config/sol2-c.c : Likewise.
7236 * config/sol2-cxx.c : Likewise.
7237 * config/sol2-stubs.c : Likewise.
7238 * config/sol2.c : Likewise.
7239 * config/sparc/sparc-c.c : Likewise.
7240 * config/sparc/sparc.c : Likewise.
7241 * config/spu/spu-c.c : Likewise.
7242 * config/spu/spu.c : Likewise.
7243 * config/stormy16/stormy16.c : Likewise.
7244 * config/tilegx/mul-tables.c : Likewise.
7245 * config/tilegx/tilegx-c.c : Likewise.
7246 * config/tilegx/tilegx.c : Likewise.
7247 * config/tilepro/mul-tables.c : Likewise.
7248 * config/tilepro/tilepro-c.c : Likewise.
7249 * config/tilepro/tilepro.c : Likewise.
7250 * config/v850/v850-c.c : Likewise.
7251 * config/v850/v850.c : Likewise.
7252 * config/vax/vax.c : Likewise.
7253 * config/visium/visium.c : Likewise.
7254 * config/vms/vms-c.c : Likewise.
7255 * config/vms/vms.c : Likewise.
7256 * config/vxworks.c : Likewise.
7257 * config/winnt-c.c : Likewise.
7258 * config/xtensa/xtensa.c : Likewise.
7259
7260 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7261
7262 PR lto/65378
7263 * ipa-utils.h (warn_types_mismatch): Update prototype.
7264 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7265 parameters.
7266 (type_mismatch_p): New function.
7267 (warn_types_mismatch): Reorg to work better on non-C++ types.
7268 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7269 (add_type_duplicate): Update.
7270
7271 2015-06-08 Tom de Vries <tom@codesourcery.com>
7272
7273 PR rtl-optimization/66444
7274 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7275 call_used_regs.
7276
7277 2015-06-08 Richard Biener <rguenther@suse.de>
7278
7279 PR tree-optimization/66422
7280 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7281 block after inserted gcc_unreachable.
7282
7283 2015-06-08 Nick Clifton <nickc@redhat.com>
7284
7285 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7286 (rx_promote_function_mode): Likewise.
7287 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7288
7289 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7290
7291 * genattrtab.c (insn_alternatives): Change type from int *
7292 to uint64_t *.
7293 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7294 (get_attr_value): Change type of num_alt to uint64_t.
7295 (compute_alternative_mask): Change return type from
7296 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7297 (make_alternative_compare, mk_attr_alt): Change argument type
7298 from int to uint64_t.
7299 (simplify_test_exp): Change type of i from int to uint64_t.
7300 Shift ((uint64_t) 1) instead of 1 up.
7301 (main): Adjust oballocvec first argument from int to uint64_t.
7302 Shift ((uint64_t) 1) instead of 1 up.
7303
7304 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 PR other/65366
7307 * gdbhooks.py: Import sys.
7308 (intptr): New function. Replace int(...) by intptr(...).
7309
7310 2015-06-08 Richard Biener <rguenther@suse.de>
7311
7312 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7313 adjustment for gaps at the end of a SLP load group properly.
7314 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7315 all permutations we can generate.
7316 (vect_transform_slp_perm_load): Use the correct group-size.
7317
7318 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7319
7320 * genmatch.c (expr::gen_transform): For conditions, guess the type
7321 from the second operand.
7322
7323 2015-06-08 Tom de Vries <tom@codesourcery.com>
7324
7325 PR tree-optimization/66442
7326 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7327 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7328 if the loop latch is not a singleton. Use
7329 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7330
7331 2015-06-08 Marek Polacek <polacek@redhat.com>
7332
7333 PR sanitizer/66452
7334 * toplev.c (check_global_declaration): Don't warn about artificial
7335 decls.
7336
7337 2015-06-08 Tom de Vries <tom@codesourcery.com>
7338
7339 PR tree-optimization/66436
7340 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7341 dump file.
7342 * gimplify.c: Add tree-dump.h include.
7343 (gimplify_function_tree): Dump function to gimple dump file.
7344 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7345 dump file.
7346
7347 2015-06-08 Tom de Vries <tom@codesourcery.com>
7348
7349 PR tree-optimization/66435
7350 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7351 function.
7352
7353 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7354
7355 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7356 of ptr_type_node to not be ptr_to_node.
7357 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7358 TREE_TYPE of pointers.
7359 * gimple-expr.c (useless_type_conversion): Reorder the check for
7360 function pointers and TYPE_CANONICAL.
7361
7362 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7363
7364 PR bootstrap/66319
7365 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7366 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7367 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7368 later.
7369 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7370 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7371 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7372 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7373 and non iso if unix2003.
7374
7375 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7376
7377 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7378
7379 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7380
7381 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7382 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7383 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7384 except.c, final.c, function.c, gcse-common.c, genemit.c,
7385 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7386 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7387 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7388 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7389 more derived ones.
7390
7391 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7392
7393 * combine.c (combine_split_insns): Remove cast.
7394 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7395 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7396 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7397 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7398 * genemit.c (gen_split): Change return type of generated functions to
7399 rtx_insn.
7400 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7401 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7402 gen_peephole2_* functions.
7403 (print_subroutine, main): Likewise.
7404 * recog.c (peephole2_optimize): Remove cast.
7405 (peep2_next_insn): Promote return type to rtx_insn.
7406 * recog.h (peep2_next_insn): Fix prototype.
7407 * rtl.h (try_split, split_insns): Likewise.
7408
7409 2015-06-06 DJ Delorie <dj@redhat.com>
7410
7411 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7412 and subtraction too.
7413
7414 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7415
7416 PR target/66410
7417 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7418 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7419 instead of Snd. Disparage Sid/z alternative with '^'.
7420
7421 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7422
7423 * dwarf2out.c: Remove deferred_locations*.
7424 (dwarf2_debug_hooks): Add early_finish hook.
7425 Remove global_decl hook.
7426 Add early_global_decl and late_global_decl hook.
7427 New global early_dwarf.
7428 New structure set_early_dwarf.
7429 (output_die): Indicate whether a DIE was generated early
7430 when generating assembly with -dA.
7431 (struct limbo_die_struct): Document created_for field.
7432 Remove file_table_last_lookup.
7433 (remove_AT): Return TRUE if successful.
7434 (remove_child_TAG): Clear die_parent.
7435 (reparent_child): New function abstracted from...
7436 (splice_child_die): ...here.
7437 (new_die): ICE if a DIE ends up in limbo too late.
7438 (check_die): New.
7439 (defer_location): Remove.
7440 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7441 (fill_variable_array_bounds): New.
7442 (decl_start_label): Call fill_variable_array_bounds.
7443 (gen_formal_parameter_die): Rewrite to reuse previously generated
7444 DIEs.
7445 (gen_subprogram_die): Same.
7446 (gen_variable_die): Same.
7447 (gen_const_die): Same.
7448 (gen_label_die): Same.
7449 (gen_lexical_block_die): Same.
7450 (decl_will_get_specification_p): New.
7451 (local_function_static): New.
7452 (gen_struct_or_union_type_die): Fill in variable-length fields.
7453 (gen_typedef_die): Fill in variable-length typedefs.
7454 (gen_tagged_type_die): Gracefully return on error_mark_node.
7455 Handle re-entrancy.
7456 (gen_type_die_with_usage): Handle variable-length types.
7457 Remove duplicate code for ARRAY_TYPE case.
7458 (process_scope_var): Only process imported modules during early
7459 dwarf.
7460 (dwarf2out_early_global_decl): New.
7461 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7462 (dwarf2out_type_decl): Set early_dwarf while calling
7463 dwarf2out_decl.
7464 (dwarf2out_decl): Verify that we did not recreate a previously
7465 generated DIE.
7466 Do not return on DECL_EXTERNALs in VAR_DECLs.
7467 Abstract some code to local_function_static.
7468 (lookup_filename): Remove use of file_table_last_lookup.
7469 Gracefully exit on missing file_name.
7470 (dwarf2out_finish): Verify limbo list.
7471 Remove deferred_locations_list use.
7472 Move deferred_asm_name and limbo flushing to...
7473 (dwarf2out_early_finish): ...here. New.
7474 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7475 deferred_asm_name, and file_table_last_lookup.
7476 * cgraph.h (referred_to_p): Add default argument.
7477 * cgraphunit.c (referred_to_p): Add and handle include_self
7478 argument.
7479 (analyze_functions): Add first_time argument.
7480 Call check_global_declaration for all symbols.
7481 Call late_global_decl for nodes for moribund nodes.
7482 (finalize_compilation_unit): Add new argument to
7483 analyze_functions.
7484 Call early_global_decl for functions.
7485 Call early_finish debug hook.
7486 * dbxout.c (dbxout_early_global_decl): New.
7487 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7488 (dbx_debug_hooks): Add new hooks.
7489 (xcoff_debug_hooks): Same.
7490 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7491 Add early and late debug hooks.
7492 Remove global_decl hook.
7493 * debug.h (struct gcc_debug_hooks): Add early_finish,
7494 early_global_decl, and late_global_decl fields.
7495 Remove global_decl field.
7496 Document gcc_debug_hooks.
7497 * gengtype.c (output_typename): Remove.
7498 * godump.c (go_early_global_decl): New.
7499 (go_late_global_decl): New.
7500 (go_global_decl): Remove.
7501 (dump_go_spec_init): Remove global_decl. Add
7502 {early,late}_global_decl.
7503 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7504 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7505 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7506 (write_global_declarations): Remove.
7507 (global_decl_processing): New.
7508 * langhooks.h (struct lang_hooks_for_decls): Remove
7509 final_write_globals field.
7510 Add post_compilation_parsing_cleanups field.
7511 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7512 * sdbout.c: Add early and late_global_decl hooks. Remove
7513 sdbout_global_decl hook.
7514 Add early_finish field for sdb_debug_hooks.
7515 (sdbout_global_decl): Remove.
7516 (sdbout_early_global_decl): New.
7517 (sdbout_late_global_decl): New.
7518 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7519 * toplev.c (check_global_declaration): Rename from
7520 check_global_declaration_1.
7521 Adapt to use symtab infrastructure.
7522 (check_global_declarations): Remove.
7523 (emit_debug_global_declarations): Remove.
7524 (compile_file): Remove call to final_write_globals langhook.
7525 Run the actual compilation process.
7526 Perform any post compilation parser cleanups.
7527 Generate late debug info.
7528 * toplev.h (check_global_declaration): New.
7529 (check_global_declaration_1): Remove.
7530 (check_global_declarations): Remove.
7531 (write_global_declarations): Remove.
7532 (emit_debug_global_declarations): Remove.
7533 (global_decl_processing): New.
7534 * tree-core.h (struct tree_block): Add DIE field.
7535 * tree.h (BLOCK_DIE): New.
7536 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7537 throughout.
7538 (vmsdbgout_early_global_decl): New.
7539 (vmsdbgout_late_global_decl): New.
7540 Add early_finish debug hook field to vmsdbg_debug_hooks.
7541 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7542 Add early and late_global_decl debug hooks.
7543
7544 2015-06-05 Julian Brown <julian@codesourcery.com>
7545 Sandra Loosemore <sandra@codesourcery.com>
7546
7547 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7548 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7549 to print-sysroot-suffix.sh script.
7550
7551 2015-06-05 Tom de Vries <tom@codesourcery.com>
7552
7553 merge from gomp4 branch:
7554 2015-05-28 Tom de Vries <tom@codesourcery.com>
7555
7556 PR tree-optimization/65443
7557 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7558 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7559 (try_transform_to_exit_first_loop_alt): New function.
7560 (transform_to_exit_first_loop): Use
7561 try_transform_to_exit_first_loop_alt.
7562
7563 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7564
7565 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7566 emit_cmp_and_jump_insns with the mode of target.
7567
7568 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7569
7570 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7571
7572 2015-06-04 DJ Delorie <dj@redhat.com>
7573
7574 * config/msp430/msp430.md (movsi_s): New. Special case for
7575 storing a 20-bit symbol into a 32-bit register.
7576 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7577 * config/msp430/predicates.md (msp430_symbol_operand): New.
7578
7579 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7580
7581 * c-family/c-common.c (noplt): New attribute.
7582 (handle_noplt_attribute): New handler.
7583 * calls.c (prepare_call_address): Check for noplt
7584 attribute.
7585 * config/i386/i386.c (ix86_expand_call): Check
7586 for noplt attribute.
7587 (ix86_nopic_noplt_attribute_p): New function.
7588 (ix86_output_call_insn): Output indirect call for non-pic
7589 no plt calls.
7590 * doc/extend.texi (noplt): Document new attribute.
7591 * doc/invoke.texi: Document new attribute.
7592
7593 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7594
7595 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7596 real.h, and fixed-value.h when included in host source files.
7597 * double-int.h: Remove redundant #includes listed above.
7598 * fixed-value.h: Likewise.
7599 * real.h: Likewise.
7600 * wide-int.h: Likewise.
7601 * inchash.h: Likewise.
7602 * rtl.h: Add some include files When included from a generator file.
7603 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7604 * internal-fn.h: Don't include coretypes.h.
7605 * alias.c: Adjust includes for restructured coretypes.h.
7606 * asan.c: Likewise.
7607 * attribs.c: Likewise.
7608 * auto-inc-dec.c: Likewise.
7609 * auto-profile.c: Likewise.
7610 * bb-reorder.c: Likewise.
7611 * bt-load.c: Likewise.
7612 * builtins.c: Likewise.
7613 * caller-save.c: Likewise.
7614 * calls.c: Likewise.
7615 * ccmp.c: Likewise.
7616 * cfg.c: Likewise.
7617 * cfganal.c: Likewise.
7618 * cfgbuild.c: Likewise.
7619 * cfgcleanup.c: Likewise.
7620 * cfgexpand.c: Likewise.
7621 * cfghooks.c: Likewise.
7622 * cfgloop.c: Likewise.
7623 * cfgloop.h: Likewise.
7624 * cfgloopanal.c: Likewise.
7625 * cfgloopmanip.c: Likewise.
7626 * cfgrtl.c: Likewise.
7627 * cgraph.c: Likewise.
7628 * cgraphbuild.c: Likewise.
7629 * cgraphclones.c: Likewise.
7630 * cgraphunit.c: Likewise.
7631 * cilk-common.c: Likewise.
7632 * combine-stack-adj.c: Likewise.
7633 * combine.c: Likewise.
7634 * compare-elim.c: Likewise.
7635 * convert.c: Likewise.
7636 * coverage.c: Likewise.
7637 * cppbuiltin.c: Likewise.
7638 * cprop.c: Likewise.
7639 * cse.c: Likewise.
7640 * cselib.c: Likewise.
7641 * data-streamer-in.c: Likewise.
7642 * data-streamer-out.c: Likewise.
7643 * data-streamer.c: Likewise.
7644 * dbxout.c: Likewise.
7645 * dce.c: Likewise.
7646 * ddg.c: Likewise.
7647 * debug.c: Likewise.
7648 * df-core.c: Likewise.
7649 * df-problems.c: Likewise.
7650 * df-scan.c: Likewise.
7651 * df.h: Likewise.
7652 * dfp.c: Likewise.
7653 * dojump.c: Likewise.
7654 * dominance.c: Likewise.
7655 * domwalk.c: Likewise.
7656 * double-int.c: Likewise.
7657 * dse.c: Likewise.
7658 * dumpfile.c: Likewise.
7659 * dwarf2asm.c: Likewise.
7660 * dwarf2cfi.c: Likewise.
7661 * dwarf2out.c: Likewise.
7662 * dwarf2out.h: Likewise.
7663 * emit-rtl.c: Likewise.
7664 * et-forest.c: Likewise.
7665 * except.c: Likewise.
7666 * explow.c: Likewise.
7667 * expmed.c: Likewise.
7668 * expr.c: Likewise.
7669 * final.c: Likewise.
7670 * fixed-value.c: Likewise.
7671 * fold-const.c: Likewise.
7672 * function.c: Likewise.
7673 * fwprop.c: Likewise.
7674 * gcc-plugin.h: Likewise.
7675 * gcse.c: Likewise.
7676 * generic-match-head.c: Likewise.
7677 * ggc-page.c: Likewise.
7678 * gimple-builder.c: Likewise.
7679 * gimple-expr.c: Likewise.
7680 * gimple-fold.c: Likewise.
7681 * gimple-iterator.c: Likewise.
7682 * gimple-low.c: Likewise.
7683 * gimple-match-head.c: Likewise.
7684 * gimple-pretty-print.c: Likewise.
7685 * gimple-ssa-isolate-paths.c: Likewise.
7686 * gimple-ssa-strength-reduction.c: Likewise.
7687 * gimple-streamer-in.c: Likewise.
7688 * gimple-streamer-out.c: Likewise.
7689 * gimple-streamer.h: Likewise.
7690 * gimple-walk.c: Likewise.
7691 * gimple.c: Likewise.
7692 * gimplify-me.c: Likewise.
7693 * gimplify.c: Likewise.
7694 * godump.c: Likewise.
7695 * graph.c: Likewise.
7696 * graphite-blocking.c: Likewise.
7697 * graphite-dependences.c: Likewise.
7698 * graphite-interchange.c: Likewise.
7699 * graphite-isl-ast-to-gimple.c: Likewise.
7700 * graphite-optimize-isl.c: Likewise.
7701 * graphite-poly.c: Likewise.
7702 * graphite-scop-detection.c: Likewise.
7703 * graphite-sese-to-poly.c: Likewise.
7704 * graphite.c: Likewise.
7705 * haifa-sched.c: Likewise.
7706 * hooks.h: Likewise.
7707 * hw-doloop.c: Likewise.
7708 * ifcvt.c: Likewise.
7709 * incpath.c: Likewise.
7710 * init-regs.c: Likewise.
7711 * internal-fn.c: Likewise.
7712 * ipa-chkp.c: Likewise.
7713 * ipa-comdats.c: Likewise.
7714 * ipa-cp.c: Likewise.
7715 * ipa-devirt.c: Likewise.
7716 * ipa-icf-gimple.c: Likewise.
7717 * ipa-icf.c: Likewise.
7718 * ipa-inline-analysis.c: Likewise.
7719 * ipa-inline-transform.c: Likewise.
7720 * ipa-inline.c: Likewise.
7721 * ipa-polymorphic-call.c: Likewise.
7722 * ipa-profile.c: Likewise.
7723 * ipa-prop.c: Likewise.
7724 * ipa-pure-const.c: Likewise.
7725 * ipa-ref.c: Likewise.
7726 * ipa-reference.c: Likewise.
7727 * ipa-split.c: Likewise.
7728 * ipa-utils.c: Likewise.
7729 * ipa-visibility.c: Likewise.
7730 * ipa.c: Likewise.
7731 * ira-build.c: Likewise.
7732 * ira-color.c: Likewise.
7733 * ira-conflicts.c: Likewise.
7734 * ira-costs.c: Likewise.
7735 * ira-emit.c: Likewise.
7736 * ira-lives.c: Likewise.
7737 * ira.c: Likewise.
7738 * jump.c: Likewise.
7739 * langhooks.c: Likewise.
7740 * lcm.c: Likewise.
7741 * loop-doloop.c: Likewise.
7742 * loop-init.c: Likewise.
7743 * loop-invariant.c: Likewise.
7744 * loop-iv.c: Likewise.
7745 * loop-unroll.c: Likewise.
7746 * lower-subreg.c: Likewise.
7747 * lra-assigns.c: Likewise.
7748 * lra-coalesce.c: Likewise.
7749 * lra-constraints.c: Likewise.
7750 * lra-eliminations.c: Likewise.
7751 * lra-lives.c: Likewise.
7752 * lra-remat.c: Likewise.
7753 * lra-spills.c: Likewise.
7754 * lra.c: Likewise.
7755 * lto-cgraph.c: Likewise.
7756 * lto-compress.c: Likewise.
7757 * lto-opts.c: Likewise.
7758 * lto-section-in.c: Likewise.
7759 * lto-section-out.c: Likewise.
7760 * lto-streamer-in.c: Likewise.
7761 * lto-streamer-out.c: Likewise.
7762 * lto-streamer.c: Likewise.
7763 * mcf.c: Likewise.
7764 * mode-switching.c: Likewise.
7765 * modulo-sched.c: Likewise.
7766 * omega.c: Likewise.
7767 * omp-low.c: Likewise.
7768 * optabs.c: Likewise.
7769 * opts-global.c: Likewise.
7770 * passes.c: Likewise.
7771 * plugin.c: Likewise.
7772 * postreload-gcse.c: Likewise.
7773 * postreload.c: Likewise.
7774 * predict.c: Likewise.
7775 * print-rtl.c: Likewise.
7776 * print-tree.c: Likewise.
7777 * profile.c: Likewise.
7778 * real.c: Likewise.
7779 * realmpfr.c: Likewise.
7780 * realmpfr.h: Likewise.
7781 * recog.c: Likewise.
7782 * ree.c: Likewise.
7783 * reg-stack.c: Likewise.
7784 * regcprop.c: Likewise.
7785 * reginfo.c: Likewise.
7786 * regrename.c: Likewise.
7787 * regs.h: Likewise.
7788 * regstat.c: Likewise.
7789 * reload.c: Likewise.
7790 * reload1.c: Likewise.
7791 * reorg.c: Likewise.
7792 * resource.c: Likewise.
7793 * rtl-chkp.c: Likewise.
7794 * rtlanal.c: Likewise.
7795 * rtlhooks.c: Likewise.
7796 * sanopt.c: Likewise.
7797 * sched-deps.c: Likewise.
7798 * sched-ebb.c: Likewise.
7799 * sched-rgn.c: Likewise.
7800 * sched-vis.c: Likewise.
7801 * sdbout.c: Likewise.
7802 * sel-sched-dump.c: Likewise.
7803 * sel-sched-ir.c: Likewise.
7804 * sel-sched.c: Likewise.
7805 * sese.c: Likewise.
7806 * shrink-wrap.c: Likewise.
7807 * shrink-wrap.h: Likewise.
7808 * simplify-rtx.c: Likewise.
7809 * stack-ptr-mod.c: Likewise.
7810 * statistics.c: Likewise.
7811 * stmt.c: Likewise.
7812 * stor-layout.c: Likewise.
7813 * store-motion.c: Likewise.
7814 * stringpool.c: Likewise.
7815 * symtab.c: Likewise.
7816 * target-globals.c: Likewise.
7817 * targhooks.c: Likewise.
7818 * toplev.c: Likewise.
7819 * tracer.c: Likewise.
7820 * trans-mem.c: Likewise.
7821 * tree-affine.c: Likewise.
7822 * tree-affine.h: Likewise.
7823 * tree-browser.c: Likewise.
7824 * tree-call-cdce.c: Likewise.
7825 * tree-cfg.c: Likewise.
7826 * tree-cfgcleanup.c: Likewise.
7827 * tree-chkp-opt.c: Likewise.
7828 * tree-chkp.c: Likewise.
7829 * tree-chrec.c: Likewise.
7830 * tree-complex.c: Likewise.
7831 * tree-data-ref.c: Likewise.
7832 * tree-dfa.c: Likewise.
7833 * tree-diagnostic.c: Likewise.
7834 * tree-dump.c: Likewise.
7835 * tree-eh.c: Likewise.
7836 * tree-emutls.c: Likewise.
7837 * tree-if-conv.c: Likewise.
7838 * tree-inline.c: Likewise.
7839 * tree-into-ssa.c: Likewise.
7840 * tree-iterator.c: Likewise.
7841 * tree-loop-distribution.c: Likewise.
7842 * tree-nested.c: Likewise.
7843 * tree-nrv.c: Likewise.
7844 * tree-object-size.c: Likewise.
7845 * tree-outof-ssa.c: Likewise.
7846 * tree-parloops.c: Likewise.
7847 * tree-phinodes.c: Likewise.
7848 * tree-predcom.c: Likewise.
7849 * tree-pretty-print.c: Likewise.
7850 * tree-pretty-print.h: Likewise.
7851 * tree-profile.c: Likewise.
7852 * tree-scalar-evolution.c: Likewise.
7853 * tree-sra.c: Likewise.
7854 * tree-ssa-address.c: Likewise.
7855 * tree-ssa-alias.c: Likewise.
7856 * tree-ssa-ccp.c: Likewise.
7857 * tree-ssa-coalesce.c: Likewise.
7858 * tree-ssa-copy.c: Likewise.
7859 * tree-ssa-copyrename.c: Likewise.
7860 * tree-ssa-dce.c: Likewise.
7861 * tree-ssa-dom.c: Likewise.
7862 * tree-ssa-dse.c: Likewise.
7863 * tree-ssa-forwprop.c: Likewise.
7864 * tree-ssa-ifcombine.c: Likewise.
7865 * tree-ssa-live.c: Likewise.
7866 * tree-ssa-loop-ch.c: Likewise.
7867 * tree-ssa-loop-im.c: Likewise.
7868 * tree-ssa-loop-ivcanon.c: Likewise.
7869 * tree-ssa-loop-ivopts.c: Likewise.
7870 * tree-ssa-loop-manip.c: Likewise.
7871 * tree-ssa-loop-niter.c: Likewise.
7872 * tree-ssa-loop-prefetch.c: Likewise.
7873 * tree-ssa-loop-unswitch.c: Likewise.
7874 * tree-ssa-loop.c: Likewise.
7875 * tree-ssa-loop.h: Likewise.
7876 * tree-ssa-math-opts.c: Likewise.
7877 * tree-ssa-operands.c: Likewise.
7878 * tree-ssa-phiopt.c: Likewise.
7879 * tree-ssa-phiprop.c: Likewise.
7880 * tree-ssa-pre.c: Likewise.
7881 * tree-ssa-propagate.c: Likewise.
7882 * tree-ssa-reassoc.c: Likewise.
7883 * tree-ssa-sccvn.c: Likewise.
7884 * tree-ssa-scopedtables.c: Likewise.
7885 * tree-ssa-sink.c: Likewise.
7886 * tree-ssa-strlen.c: Likewise.
7887 * tree-ssa-structalias.c: Likewise.
7888 * tree-ssa-tail-merge.c: Likewise.
7889 * tree-ssa-ter.c: Likewise.
7890 * tree-ssa-threadedge.c: Likewise.
7891 * tree-ssa-threadupdate.c: Likewise.
7892 * tree-ssa-uncprop.c: Likewise.
7893 * tree-ssa-uninit.c: Likewise.
7894 * tree-ssa.c: Likewise.
7895 * tree-ssanames.c: Likewise.
7896 * tree-stdarg.c: Likewise.
7897 * tree-streamer-in.c: Likewise.
7898 * tree-streamer-out.c: Likewise.
7899 * tree-streamer.c: Likewise.
7900 * tree-switch-conversion.c: Likewise.
7901 * tree-tailcall.c: Likewise.
7902 * tree-vect-data-refs.c: Likewise.
7903 * tree-vect-generic.c: Likewise.
7904 * tree-vect-loop-manip.c: Likewise.
7905 * tree-vect-loop.c: Likewise.
7906 * tree-vect-patterns.c: Likewise.
7907 * tree-vect-slp.c: Likewise.
7908 * tree-vect-stmts.c: Likewise.
7909 * tree-vectorizer.c: Likewise.
7910 * tree-vrp.c: Likewise.
7911 * tree.c: Likewise.
7912 * tsan.c: Likewise.
7913 * ubsan.c: Likewise.
7914 * valtrack.c: Likewise.
7915 * value-prof.c: Likewise.
7916 * var-tracking.c: Likewise.
7917 * varasm.c: Likewise.
7918 * varpool.c: Likewise.
7919 * vmsdbgout.c: Likewise.
7920 * vtable-verify.c: Likewise.
7921 * web.c: Likewise.
7922 * wide-int-print.cc: Likewise.
7923 * wide-int-print.h: Likewise.
7924 * wide-int.cc: Likewise.
7925 * xcoffout.c: Likewise.
7926 * config/aarch64/aarch64-builtins.c: Likewise.
7927 * config/aarch64/aarch64.c: Likewise.
7928 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7929 * config/alpha/alpha.c: Likewise.
7930 * config/arc/arc.c: Likewise.
7931 * config/arm/aarch-common.c: Likewise.
7932 * config/arm/arm-builtins.c: Likewise.
7933 * config/arm/arm-c.c: Likewise.
7934 * config/arm/arm.c: Likewise.
7935 * config/avr/avr-c.c: Likewise.
7936 * config/avr/avr-log.c: Likewise.
7937 * config/avr/avr.c: Likewise.
7938 * config/bfin/bfin.c: Likewise.
7939 * config/c6x/c6x.c: Likewise.
7940 * config/cr16/cr16.c: Likewise.
7941 * config/cris/cris.c: Likewise.
7942 * config/darwin-c.c: Likewise.
7943 * config/darwin.c: Likewise.
7944 * config/default-c.c: Likewise.
7945 * config/epiphany/epiphany.c: Likewise.
7946 * config/epiphany/mode-switch-use.c: Likewise.
7947 * config/epiphany/resolve-sw-modes.c: Likewise.
7948 * config/fr30/fr30.c: Likewise.
7949 * config/frv/frv.c: Likewise.
7950 * config/ft32/ft32.c: Likewise.
7951 * config/glibc-c.c: Likewise.
7952 * config/h8300/h8300.c: Likewise.
7953 * config/i386/i386-c.c: Likewise.
7954 * config/i386/i386.c: Likewise.
7955 * config/i386/msformat-c.c: Likewise.
7956 * config/i386/winnt-cxx.c: Likewise.
7957 * config/i386/winnt-stubs.c: Likewise.
7958 * config/i386/winnt.c: Likewise.
7959 * config/ia64/ia64-c.c: Likewise.
7960 * config/ia64/ia64.c: Likewise.
7961 * config/iq2000/iq2000.c: Likewise.
7962 * config/lm32/lm32.c: Likewise.
7963 * config/m32c/m32c-pragma.c: Likewise.
7964 * config/m32c/m32c.c: Likewise.
7965 * config/m32r/m32r.c: Likewise.
7966 * config/m68k/m68k.c: Likewise.
7967 * config/mcore/mcore.c: Likewise.
7968 * config/mep/mep-pragma.c: Likewise.
7969 * config/mep/mep.c: Likewise.
7970 * config/microblaze/microblaze-c.c: Likewise.
7971 * config/microblaze/microblaze.c: Likewise.
7972 * config/mips/mips.c: Likewise.
7973 * config/mmix/mmix.c: Likewise.
7974 * config/mn10300/mn10300.c: Likewise.
7975 * config/moxie/moxie.c: Likewise.
7976 * config/msp430/msp430-c.c: Likewise.
7977 * config/msp430/msp430.c: Likewise.
7978 * config/nds32/nds32-cost.c: Likewise.
7979 * config/nds32/nds32-fp-as-gp.c: Likewise.
7980 * config/nds32/nds32-intrinsic.c: Likewise.
7981 * config/nds32/nds32-isr.c: Likewise.
7982 * config/nds32/nds32-md-auxiliary.c: Likewise.
7983 * config/nds32/nds32-memory-manipulation.c: Likewise.
7984 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7985 * config/nds32/nds32-predicates.c: Likewise.
7986 * config/nds32/nds32.c: Likewise.
7987 * config/nios2/nios2.c: Likewise.
7988 * config/nvptx/nvptx.c: Likewise.
7989 * config/pa/pa.c: Likewise.
7990 * config/pdp11/pdp11.c: Likewise.
7991 * config/rl78/rl78-c.c: Likewise.
7992 * config/rl78/rl78.c: Likewise.
7993 * config/rs6000/rs6000-c.c: Likewise.
7994 * config/rs6000/rs6000.c: Likewise.
7995 * config/rx/rx.c: Likewise.
7996 * config/s390/s390-c.c: Likewise.
7997 * config/s390/s390.c: Likewise.
7998 * config/sh/sh-c.c: Likewise.
7999 * config/sh/sh-mem.cc: Likewise.
8000 * config/sh/sh.c: Likewise.
8001 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8002 * config/sh/sh_treg_combine.cc: Likewise.
8003 * config/sol2-c.c: Likewise.
8004 * config/sol2-cxx.c: Likewise.
8005 * config/sol2-stubs.c: Likewise.
8006 * config/sol2.c: Likewise.
8007 * config/sparc/sparc-c.c: Likewise.
8008 * config/sparc/sparc.c: Likewise.
8009 * config/spu/spu-c.c: Likewise.
8010 * config/spu/spu.c: Likewise.
8011 * config/stormy16/stormy16.c: Likewise.
8012 * config/tilegx/mul-tables.c: Likewise.
8013 * config/tilegx/tilegx-c.c: Likewise.
8014 * config/tilegx/tilegx.c: Likewise.
8015 * config/tilepro/mul-tables.c: Likewise.
8016 * config/tilepro/tilepro-c.c: Likewise.
8017 * config/tilepro/tilepro.c: Likewise.
8018 * config/v850/v850-c.c: Likewise.
8019 * config/v850/v850.c: Likewise.
8020 * config/vax/vax.c: Likewise.
8021 * config/visium/visium.c: Likewise.
8022 * config/vms/vms-c.c: Likewise.
8023 * config/vms/vms.c: Likewise.
8024 * config/vxworks.c: Likewise.
8025 * config/winnt-c.c: Likewise.
8026 * config/xtensa/xtensa.c: Likewise.
8027 * common/config/bfin/bfin-common.c: Likewise.
8028
8029 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
8030
8031 * tree.h (tree_code_for_canonical_type_merging): New function.
8032 * tree.c (gimple_canonical_types_compatible_p): Use
8033 tree_code_for_canonical_type_merging..
8034
8035 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8036
8037 PR c++/66192
8038 PR target/66200
8039 * doc/tm.texi: Regenerate.
8040 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8041 * target.def (TARGET_RELAXED_ORDERING): Likewise.
8042 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8043 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8044 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8045 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8046 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8047 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8048 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8049
8050 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8051
8052 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8053 register fma steering pass.
8054 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8055 AARCH64_TUNE_FMA_STEERING.
8056
8057 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
8058
8059 * tree.c (verify_type_variant): Verify that type and variant is
8060 compatible.
8061 (gimple_canonical_types_compatible_p): Look for main variants.
8062
8063 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8064
8065 * config.gcc (powerpc*-*-*): Add support for a new configure
8066 option --with-advance-toolchain=<xxx> which overrides using the
8067 default header files, libraries and dynamic linker.
8068
8069 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8070 specs to support the configure --with-advance-toolchain=<xxx>
8071 option.
8072 (INCLUDE_EXTRA_SPEC): Likewise.
8073 (LINK_OS_EXTRA_SPEC32): Likewise.
8074 (LINK_OK_EXTRA_SPEC64): Likewise.
8075 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8076 (DYNAMIC_LINKER_PREFIX): Likewise.
8077 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8078 toolchain support.
8079 (GLIBC_DYNAMIC_LINKER32): Likewise.
8080 (GLIBC_DYNAMIC_LINKER64): Likewise.
8081 (LINK_OS_LINUX_SPEC32): Likewise.
8082 (LINK_OS_LINUX_SPEC64): Likewise.
8083
8084 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8085 configuration option.
8086
8087 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
8088
8089 PR target/66275
8090 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8091 to determine current function ABI.
8092 (ix86_function_value_regno_p): Ditto.
8093
8094 2015-06-03 Martin Liska <mliska@suse.cz>
8095
8096 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8097 * bitmap.h (struct bitmap_usage): Likewise.
8098 * ggc-common.c (struct ggc_usage): Likewise.
8099 * mem-stats.h (struct mem_location): Likewise.
8100 (struct mem_usage): Likewise.
8101 * vec.c (struct vec_usage): Likewise.
8102
8103 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
8104
8105 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8106 -Bsymbolic.
8107
8108 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
8109
8110 * doc/plugins.texi (enum plugin_event): New event.
8111 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8112 and PLUGIN_FINISH_FUNCTION.
8113 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8114 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8115
8116 2015-06-03 Richard Biener <rguenther@suse.de>
8117
8118 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8119 compute GROUP_GAP for the first element.
8120 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8121 on in-group gaps.
8122
8123 2015-06-03 Nick Clifton <nickc@redhat.com>
8124
8125 * config/rl78/rl78-real.md: Add peepholes to avoid a register
8126 copy when calling a function.
8127 * config/rl78/rl78.c (need_to_save): Do not push the frame
8128 pointer in an interrupt handler prologue if it is never used.
8129
8130 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8131
8132 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8133
8134 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8135
8136 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8137 reference when cloning alias node.
8138
8139 2015-06-03 Martin Liska <mliska@suse.cz>
8140
8141 * alloc-pool.h (struct pool_usage): Correct space padding.
8142 * ggc-page.c (ggc_print_statistics): Align columns in a report.
8143 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8144 * tree.c (dump_tree_statistics): Align columns in a report.
8145
8146 2015-06-03 Martin Liska <mliska@suse.cz>
8147
8148 * alloc-pool.c (allocate_pool_descriptor): Remove.
8149 (struct pool_output_info): Likewise.
8150 (print_alloc_pool_statistics): Likewise.
8151 (dump_alloc_pool_statistics): Likewise.
8152 * alloc-pool.h (struct pool_usage): New struct.
8153 (pool_allocator::initialize): Change usage of memory statistics
8154 to a new interface.
8155 (pool_allocator::release): Likewise.
8156 (pool_allocator::allocate): Likewise.
8157 (pool_allocator::remove): Likewise.
8158 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8159 for a pool allocator.
8160 * mem-stats.h (struct mem_location): Add new ctor.
8161 (struct mem_usage): Add counter for number of
8162 instances.
8163 (mem_alloc_description::register_descriptor): New overload of
8164 * mem-stats.h (mem_location::to_string): New function.
8165 * bitmap.h (struct bitmap_usage): Use this new function.
8166 * ggc-common.c (struct ggc_usage): Likewise.
8167 the function.
8168
8169 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8170
8171 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8172 of GCC_INSN_FLAGS_H block.
8173
8174 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8175
8176 * explow.c (plus_constant): Update check after force_const_mem call
8177 to see if the value returned is not a NULL_RTX.
8178
8179 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8180
8181 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8182 remove instumentation thunks calling reachable functions.
8183 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8184 * lto/lto-partition.c (privatize_symbol_name_1): New.
8185 (privatize_symbol_name): Privatize both decl and orig_decl
8186 names for instrumented functions.
8187 * cgraph.c (cgraph_node::verify_node): Add transparent
8188 alias chain check for instrumented node.
8189
8190 2015-06-03 Marek Polacek <polacek@redhat.com>
8191
8192 PR c/64223
8193 PR c/29358
8194 * tree.c (attribute_value_equal): Handle attribute format.
8195 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8196
8197 2015-06-03 Richard Biener <rguenther@suse.de>
8198
8199 PR tree-optimization/63916
8200 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8201 Forward-propagate non-invariant addresses by splicing their
8202 reference ops if the result isn't going to be used by PRE.
8203 (vn_reference_lookup_3): Remove pointless assert.
8204
8205 2015-06-03 Richard Biener <rguenther@suse.de>
8206
8207 PR tree-optimization/66375
8208 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8209 add to the evolution before following SSA edges.
8210
8211 2015-06-03 Bin Cheng <bin.cheng@arm.com>
8212
8213 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8214 (dump_use, dump_cand, find_induction_variables): Pass new argument
8215 to dump_iv.
8216 (record_use): Preserve the ssa name information in IV.
8217
8218 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8219
8220 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8221 NO_MODE_TEST.
8222 (add_mode_tests): Don't add mode tests if the predicate only
8223 accepts scalar constant integers. Otherwise, allow the mode
8224 of "op" to be VOIDmode if the predicate does accept such integers.
8225
8226 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
8227
8228 PR target/66258
8229 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8230 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8231 (aarch64_secondary_reload): Likewise
8232 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8233 to !TARGET_FLOAT.
8234 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8235 Likewise.
8236
8237 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
8238 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8239
8240 PR target/65768
8241 * cprop.c (try_replace_reg): Check cost of constants before propagating.
8242
8243 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8244
8245 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8246 provide access to the IBM extended double floating point mode if
8247 long double is IEEE 128-bit floating point.
8248 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8249 point if long double is the IBM extended double type.
8250
8251 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8252 enable adding IEEE 128-bit floating point support.
8253 (-mfloat128-software): Likewise.
8254 (-mfloat128-sw): Likewise.
8255
8256 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8257 128-bit floating point types to occupy any register if
8258 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8259 -mfloat128-software is enabled.
8260 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8261 support.
8262 (rs6000_option_override_internal): Add -mfloat128-* support.
8263 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8264
8265 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8266 and float128 type nodes.
8267 (ieee128_float_type_node): Likewise.
8268 (ibm128_float_type_node): Likewise.
8269
8270 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8271
8272 PR target/66136
8273 * config/aarch64/geniterators.sh: Rewrite in awk.
8274
8275 2015-06-02 Martin Liska <mliska@suse.cz>
8276
8277 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8278 values to avoid -Wmaybe-uninitialized errors.
8279
8280 2015-06-02 Richard Biener <rguenther@suse.de>
8281
8282 PR debug/65549
8283 * dwarf2out.c (lookup_context_die): New function.
8284 (resolve_addr): Avoid forcing a full DIE for the
8285 target of a DW_TAG_GNU_call_site during late compilation.
8286 Instead create a stub DIE without a type if we have a
8287 context DIE present.
8288
8289 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8290
8291 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8292
8293 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8294
8295 PR tree-optimization/48052
8296 * cfgloop.h (struct control_iv): New.
8297 (struct loop): New field control_ivs.
8298 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8299 (number_of_iterations_lt): Set no_overflow information.
8300 (number_of_iterations_exit): Init control iv in niter struct.
8301 (record_control_iv): New.
8302 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8303 (loop_exits_before_overflow): New. Interface factored out of
8304 scev_probably_wraps_p.
8305 (scev_probably_wraps_p): Factor loop niter related code into
8306 loop_exits_before_overflow.
8307 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8308 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8309
8310 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8311
8312 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8313 the target doesn't belong to the current function.
8314
8315 2015-06-02 Marek Polacek <polacek@redhat.com>
8316
8317 PR middle-end/66345
8318 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8319 get_maxval_strlen does not produce an INTEGER_CST.
8320
8321 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8322
8323 * config/arc/constraints.md: Use lower-case names in match_code.
8324 * config/mmix/constraints.md: Likewise.
8325
8326 2015-06-02 Richard Biener <rguenther@suse.de>
8327
8328 PR tree-optimization/65961
8329 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8330 check and clarify dump message.
8331 (vect_build_slp_tree): If all children are built up from scalars
8332 build up the parent from scalars instead.
8333 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8334
8335 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8336
8337 PR other/65366
8338 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8339 instead of print ... .
8340
8341 2015-06-02 Alan Modra <amodra@gmail.com>
8342
8343 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8344 2014-08-11 change.
8345
8346 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8347
8348 PR tree-optimization/52563
8349 PR tree-optimization/62173
8350 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8351 (alloc_iv, set_iv): New parameter.
8352 (determine_biv_step): Delete.
8353 (find_bivs): Inline original determine_biv_step. Pass new
8354 argument to set_iv.
8355 (idx_find_step): Use no_overflow information for conversion.
8356 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8357 resolve_mixers handle folded_casts.
8358 (instantiate_scev_name): Change bool parameter to bool pointer.
8359 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8360 (instantiate_array_ref, instantiate_scev_not): Ditto.
8361 (instantiate_scev_3, instantiate_scev_2): Ditto.
8362 (instantiate_scev_1, instantiate_scev_r): Ditto.
8363 (instantiate_scev_convert, ): Change parameter. Pass argument
8364 to chrec_convert_aggressive.
8365 (instantiate_scev): Change argument.
8366 (resolve_mixers): New parameter and set it.
8367 (scev_const_prop): New argument.
8368 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8369 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8370 of chrec_conert_1.
8371 (chrec_convert): New parameter. Move definition below.
8372 (chrec_convert_aggressive): New parameter and set it. Call
8373 convert_affine_scev.
8374 * tree-chrec.h (chrec_convert): New parameter.
8375 (chrec_convert_aggressive): Ditto.
8376
8377 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8378
8379 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8380 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8381 the LHS of a no-return call if its type has variable size.
8382 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8383 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8384
8385 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8386
8387 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8388 * config.in: Regenerate.
8389
8390 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8391
8392 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8393 consecutive accesses within outer-loop with force_vectorize
8394 for references with zero step in inner-loop.
8395
8396 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8397
8398 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8399 rather than from gcc/build directory.
8400
8401 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8402
8403 PR target/65697
8404 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8405 for __sync memory models, emit initial loads and final barriers as
8406 appropriate.
8407
8408 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8409
8410 PR target/65697
8411 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8412 (aarch64_split_atomic_op): Check for __sync memory models, emit
8413 appropriate initial loads and final barriers.
8414
8415 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8416
8417 * Makefile.in: Fix gcov dependencies that should
8418 not point to a build folder.
8419
8420 2015-06-01 Richard Biener <rguenther@suse.de>
8421
8422 Revert
8423 2015-05-29 Richard Biener <rguenther@suse.de>
8424
8425 PR tree-optimization/66314
8426 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8427 parameter that says which loop the new block belongs to.
8428 (ssa_create_duplicates): Blocks duplicated for the threaded
8429 path belong to the loop of the thread destination.
8430
8431 2015-06-01 Martin Liska <mliska@suse.cz>
8432
8433 * sched-deps.c: Include pool-alloc.h before
8434 cselib.h header file is included.
8435
8436 2015-06-01 Richard Biener <rguenther@suse.de>
8437
8438 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8439 functions.
8440
8441 2015-06-01 Martin Liska <mliska@suse.cz>
8442
8443 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8444 a function local variable.
8445
8446 2015-06-01 Martin Liska <mliska@suse.cz>
8447
8448 * alloc-pool.c (create_alloc_pool): Remove.
8449 (empty_alloc_pool): Likewise.
8450 (free_alloc_pool): Likewise.
8451 (free_alloc_pool_if_empty): Likewise.
8452 (pool_alloc): Likewise.
8453 (pool_free): Likewise.
8454 * alloc-pool.h: Remove old declarations.
8455
8456 2015-06-01 Martin Liska <mliska@suse.cz>
8457
8458 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8459 (ira_create_object): Likewise.
8460 (ira_create_allocno): Likewise.
8461 (ira_create_live_range): Likewise.
8462 (copy_live_range): Likewise.
8463 (ira_finish_live_range): Likewise.
8464 (ira_free_allocno_costs): Likewise.
8465 (finish_allocno): Likewise.
8466 (finish_allocnos): Likewise.
8467 (initiate_prefs): Likewise.
8468 (ira_create_pref): Likewise.
8469 (finish_pref): Likewise.
8470 (finish_prefs): Likewise.
8471 (initiate_copies): Likewise.
8472 (ira_create_copy): Likewise.
8473 (finish_copy): Likewise.
8474 (finish_copies): Likewise.
8475 (finish_prefs): Likewise.
8476
8477 2015-06-01 Martin Liska <mliska@suse.cz>
8478
8479 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8480 (allocate_and_init_ipcp_value): Likewise.
8481 (ipcp_lattice::add_value): Likewise.
8482 (merge_agg_lats_step): Likewise.
8483 (ipcp_driver): Likewise.
8484 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8485 (ipa_free_all_structures_after_iinln): Likewise.
8486 * ipa-prop.h: Likewise.
8487
8488 2015-06-01 Martin Liska <mliska@suse.cz>
8489
8490 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8491 pool allocator.
8492 (set_hint_predicate): Likewise.
8493 (inline_summary_alloc): Likewise.
8494 (reset_inline_edge_summary): Likewise.
8495 (reset_inline_summary): Likewise.
8496 (set_cond_stmt_execution_predicate): Likewise.
8497 (set_switch_stmt_execution_predicate): Likewise.
8498 (compute_bb_predicates): Likewise.
8499 (estimate_function_body_sizes): Likewise.
8500 (inline_free_summary): Likewise.
8501
8502 2015-06-01 Martin Liska <mliska@suse.cz>
8503
8504 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8505 (ipa_edge_duplication_hook): Likewise.
8506 (ipa_free_all_structures_after_ipa_cp): Likewise.
8507 (ipa_free_all_structures_after_iinln): Likewise.
8508
8509 2015-06-01 Martin Liska <mliska@suse.cz>
8510
8511 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8512 (ipa_profile_generate_summary): Likewise.
8513 (ipa_profile_read_summary): Likewise.
8514 (ipa_profile): Likewise.
8515
8516 2015-06-01 Martin Liska <mliska@suse.cz>
8517
8518 * tree-ssa-structalias.c (new_var_info): Use new type-based
8519 pool allocator.
8520 (new_constraint): Likewise.
8521 (init_alias_vars): Likewise.
8522 (delete_points_to_sets): Likewise.
8523
8524 2015-06-01 Martin Liska <mliska@suse.cz>
8525
8526 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8527 (free_strinfo): Likewise.
8528 (pass_strlen::execute): Likewise.
8529
8530 2015-06-01 Martin Liska <mliska@suse.cz>
8531
8532 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8533 pool allocator.
8534 (vn_reference_insert_pieces): Likewise.
8535 (vn_phi_insert): Likewise.
8536 (visit_reference_op_call): Likewise.
8537 (copy_phi): Likewise.
8538 (copy_reference): Likewise.
8539 (process_scc): Likewise.
8540 (allocate_vn_table): Likewise.
8541 (free_vn_table): Likewise.
8542
8543 2015-06-01 Martin Liska <mliska@suse.cz>
8544
8545 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8546 pool allocator.
8547 (add_repeat_to_ops_vec): Likewise.
8548 (get_ops): Likewise.
8549 (maybe_optimize_range_tests): Likewise.
8550 (init_reassoc): Likewise.
8551 (fini_reassoc): Likewise.
8552
8553 2015-06-01 Martin Liska <mliska@suse.cz>
8554
8555 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8556 pool allocator.
8557 (bitmap_set_new): Likewise.
8558 (get_or_alloc_expr_for_constant): Likewise.
8559 (get_or_alloc_expr_for): Likewise.
8560 (phi_translate_1): Likewise.
8561 (compute_avail): Likewise.
8562 (init_pre): Likewise.
8563 (fini_pre): Likewise.
8564
8565 2015-06-01 Martin Liska <mliska@suse.cz>
8566
8567 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8568 (delete_dep_node): Likewise.
8569 (create_deps_list): Likewise.
8570 (free_deps_list): Likewise.
8571 (sched_deps_init): Likewise.
8572 (sched_deps_finish): Likewise.
8573
8574 2015-06-01 Martin Liska <mliska@suse.cz>
8575
8576 * regcprop.c (free_debug_insn_changes): Use new type-based
8577 pool allocator.
8578 (replace_oldest_value_reg): Likewise.
8579 (pass_cprop_hardreg::execute): Likewise.
8580
8581 2015-06-01 Martin Liska <mliska@suse.cz>
8582
8583 * ira-build.c (initiate_cost_vectors): Use new type-based
8584 pool allocator.
8585 (ira_allocate_cost_vector): Likewise.
8586 (ira_free_cost_vector): Likewise.
8587 (finish_cost_vectors): Likewise.
8588
8589 2015-06-01 Martin Liska <mliska@suse.cz>
8590
8591 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8592 pool allocator.
8593 (free_sched_pools): Likewise.
8594 * sel-sched-ir.h (_list_alloc): Likewise.
8595 (_list_remove): Likewise.
8596
8597 2015-06-01 Martin Liska <mliska@suse.cz>
8598
8599 * stmt.c (add_case_node): Use new type-based pool allocator.
8600 (expand_case): Likewise.
8601 (expand_sjlj_dispatch_table): Likewise.
8602
8603 2015-06-01 Martin Liska <mliska@suse.cz>
8604
8605 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8606 (free_bb): Likewise.
8607 (pass_cse_reciprocals::execute): Likewise.
8608
8609 2015-06-01 Martin Liska <mliska@suse.cz>
8610
8611 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8612 (sra_deinitialize) Likewise.
8613 (create_access_1) Likewise.
8614 (build_accesses_from_assign) Likewise.
8615 (create_artificial_child_access) Likewise.
8616
8617 2015-06-01 Martin Liska <mliska@suse.cz>
8618
8619 * dse.c (get_group_info):Use new type-based pool allocator.
8620 (dse_step0) Likewise.
8621 (free_store_info) Likewise.
8622 (delete_dead_store_insn) Likewise.
8623 (free_read_records) Likewise.
8624 (record_store) Likewise.
8625 (replace_read) Likewise.
8626 (check_mem_read_rtx) Likewise.
8627 (scan_insn) Likewise.
8628 (dse_step1) Likewise.
8629 (dse_step7) Likewise.
8630
8631 2015-06-01 Martin Liska <mliska@suse.cz>
8632
8633 * df-scan.c (struct df_scan_problem_data):Use new type-based
8634 pool allocator.
8635 (df_scan_free_internal) Likewise.
8636 (df_scan_alloc) Likewise.
8637 (df_grow_reg_info) Likewise.
8638 (df_free_ref) Likewise.
8639 (df_insn_create_insn_record) Likewise.
8640 (df_mw_hardreg_chain_delete) Likewise.
8641 (df_insn_info_delete) Likewise.
8642 (df_free_collection_rec) Likewise.
8643 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8644 (df_sort_and_compress_mws) Likewise.
8645 (df_ref_create_structure) Likewise.
8646 (df_ref_record) Likewise.
8647
8648 2015-06-01 Martin Liska <mliska@suse.cz>
8649
8650 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8651 (df_chain_unlink_1) Likewise.
8652 (df_chain_unlink) Likewise.
8653 (df_chain_remove_problem) Likewise.
8654 (df_chain_alloc) Likewise.
8655 (df_chain_free) Likewise.
8656 * df.h (struct dataflow) Likewise.
8657
8658 2015-06-01 Martin Liska <mliska@suse.cz>
8659
8660 * cselib.c (new_elt_list):Use new type-based pool allocator.
8661 (new_elt_loc_list) Likewise.
8662 (unchain_one_elt_list) Likewise.
8663 (unchain_one_elt_loc_list) Likewise.
8664 (unchain_one_value) Likewise.
8665 (new_cselib_val) Likewise.
8666 (cselib_init) Likewise.
8667 (cselib_finish) Likewise.
8668
8669 2015-06-01 Martin Liska <mliska@suse.cz>
8670
8671 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8672 (sh_reorg) Likewise.
8673
8674 2015-06-01 Martin Liska <mliska@suse.cz>
8675
8676 * cfg.c (initialize_original_copy_tables):Use new type-based
8677 pool allocator.
8678 (free_original_copy_tables) Likewise.
8679 (copy_original_table_clear) Likewise.
8680 (copy_original_table_set) Likewise.
8681
8682 2015-06-01 Martin Liska <mliska@suse.cz>
8683
8684 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8685 pool allocator.
8686 (asan_mem_ref_new) Likewise.
8687 (free_mem_ref_resources) Likewise.
8688
8689 2015-06-01 Martin Liska <mliska@suse.cz>
8690
8691 * var-tracking.c (variable_htab_free):Use new type-based
8692 pool allocator.
8693 (attrs_list_clear) Likewise.
8694 (attrs_list_insert) Likewise.
8695 (attrs_list_copy) Likewise.
8696 (shared_hash_unshare) Likewise.
8697 (shared_hash_destroy) Likewise.
8698 (unshare_variable) Likewise.
8699 (var_reg_delete_and_set) Likewise.
8700 (var_reg_delete) Likewise.
8701 (var_regno_delete) Likewise.
8702 (drop_overlapping_mem_locs) Likewise.
8703 (variable_union) Likewise.
8704 (insert_into_intersection) Likewise.
8705 (canonicalize_values_star) Likewise.
8706 (variable_merge_over_cur) Likewise.
8707 (dataflow_set_merge) Likewise.
8708 (remove_duplicate_values) Likewise.
8709 (variable_post_merge_new_vals) Likewise.
8710 (dataflow_set_preserve_mem_locs) Likewise.
8711 (dataflow_set_remove_mem_locs) Likewise.
8712 (variable_from_dropped) Likewise.
8713 (variable_was_changed) Likewise.
8714 (set_slot_part) Likewise.
8715 (clobber_slot_part) Likewise.
8716 (delete_slot_part) Likewise.
8717 (loc_exp_insert_dep) Likewise.
8718 (notify_dependents_of_changed_value) Likewise.
8719 (emit_notes_for_differences_1) Likewise.
8720 (vt_emit_notes) Likewise.
8721 (vt_initialize) Likewise.
8722 (vt_finalize) Likewise.
8723
8724 2015-06-01 Martin Liska <mliska@suse.cz>
8725
8726 * ira-color.c (init_update_cost_records):Use new type-based
8727 pool allocator.
8728 (get_update_cost_record) Likewise.
8729 (free_update_cost_record_list) Likewise.
8730 (finish_update_cost_records) Likewise.
8731 (initiate_cost_update) Likewise.
8732
8733 2015-06-01 Martin Liska <mliska@suse.cz>
8734
8735 * lra.c (init_insn_regs): Use new type-based pool allocator.
8736 (new_insn_reg) Likewise.
8737 (free_insn_reg) Likewise.
8738 (free_insn_regs) Likewise.
8739 (finish_insn_regs) Likewise.
8740 (init_insn_recog_data) Likewise.
8741 (init_reg_info) Likewise.
8742 (finish_reg_info) Likewise.
8743 (lra_free_copies) Likewise.
8744 (lra_create_copy) Likewise.
8745 (invalidate_insn_data_regno_info) Likewise.
8746
8747 2015-06-01 Martin Liska <mliska@suse.cz>
8748
8749 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8750 (free_live_range_list) Likewise.
8751 (create_live_range) Likewise.
8752 (copy_live_range) Likewise.
8753 (lra_merge_live_ranges) Likewise.
8754 (remove_some_program_points_and_update_live_ranges) Likewise.
8755 (lra_live_ranges_init) Likewise.
8756 (lra_live_ranges_finish) Likewise.
8757
8758 2015-06-01 Martin Liska <mliska@suse.cz>
8759
8760 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8761 (et_new_tree): Likewise.
8762 (et_free_tree): Likewise.
8763 (et_free_tree_force): Likewise.
8764 (et_free_pools): Likewise.
8765 (et_split): Likewise.
8766
8767 2015-06-01 Martin Liska <mliska@suse.cz>
8768
8769 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8770 to header file.
8771 * alloc-pool.h (pool_allocator::pool_allocator): New function.
8772 (pool_allocator::release): Likewise.
8773 (inline pool_allocator::release_if_empty): Likewise.
8774 (inline pool_allocator::~pool_allocator): Likewise.
8775 (pool_allocator::allocate): Likewise.
8776 (pool_allocator::remove): Likewise.
8777
8778 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8779
8780 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8781 in comment.
8782
8783 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8784
8785 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8786 to fusible_ops.
8787 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8788 (arm_macro_fusion_p): Likewise.
8789 (arm_macro_fusion_pair_p): Likewise.
8790
8791 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8792
8793 * config/aarch64/aarch64-protos.h (tune_params): Rename
8794 fuseable_ops to fusible_ops.
8795 * config/aarch64/aarch64.c (generic_tunings): Rename
8796 fuseable_ops to fusible_ops.
8797 (cortexa53_tunings): Likewise.
8798 (cortexa57_tunings): Likewise.
8799 (thunderx_tunings): Likewise.
8800 (xgene1_tunings): Likewise.
8801 (aarch64_macro_fusion_p): Likewise.
8802 (aarch64_macro_fusion_pair_p): Likewise.
8803
8804 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
8805
8806 * config/s390/driver-native.c: New file.
8807 * config/s390/x-native: New file.
8808 * config.host: Add new files for s390.
8809 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8810 and -march=native
8811 * config.gcc: Likewise.
8812 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8813 * config/s390/s390-opts.h (enum processor_type): Ditto.
8814 * config/s390/s390.c (s390_option_override): Catch unhandled
8815 PROCESSOR_NATIVE
8816
8817 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
8818
8819 PR target/65527
8820 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8821 redirection for instrumented calls.
8822 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8823 (append_compiler_options): Append -fcheck-pointer-bounds.
8824 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8825 (chkp_redirect_edge): New.
8826 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8827 (chkp_redirect_edge): New.
8828
8829 2015-06-01 Richard Biener <rguenther@suse.de>
8830
8831 PR tree-optimization/66280
8832 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8833 def-use walking.
8834
8835 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8836
8837 * config/aarch64/aarch64.md
8838 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8839 logic_shift_imm.
8840
8841 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8842
8843 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8844 Remove obsolete kludge.
8845
8846 2015-06-01 Richard Biener <rguenther@suse.de>
8847
8848 * tree-ssa-reassoc.c (get_rank): Simplify.
8849
8850 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
8851
8852 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8853 * configure: Regenerated.
8854
8855 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
8856
8857 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8858 issue (add space between string literal and macro).
8859 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8860
8861 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
8862
8863 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8864 implict or explicit -fPIE or -fpie.
8865
8866 2015-05-30 Mike Frysinger <vapier@gentoo.org>
8867
8868 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8869
8870 2015-05-28 DJ Delorie <dj@redhat.com>
8871
8872 * expmed.c (extract_bit_field_1): Avoid clobbering a
8873 yet-to-be-used base/index register.
8874
8875 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
8876
8877 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8878 (alias_stats): Add num_universal.
8879 (alias_set_subset_of): Special case pointers; be ready for NULL
8880 children.
8881 (alias_sets_conflict_p): Special case pointers; be ready for NULL
8882 children.
8883 (init_alias_set_entry): Break out from ...
8884 (record_alias_subset): ... here; propagate new fields;
8885 allocate children only when really needed.
8886 (get_alias_set): Do less generous pointer globbing.
8887 (dump_alias_stats_in_alias_c): Update statistics.
8888
8889 2015-05-30 Alan Modra <amodra@gmail.com>
8890
8891 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8892 correct block for use of r12.
8893 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8894
8895 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8896
8897 PR target/66215
8898 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8899 with -mhotpatch=.
8900
8901 2015-05-29 Jakub Jelinek <jakub@redhat.com>
8902
8903 PR tree-optimization/66142
8904 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8905 virtual phis that feed themselves.
8906
8907 2015-05-29 Richard Biener <rguenther@suse.de>
8908
8909 PR tree-optimization/66314
8910 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8911 parameter that says which loop the new block belongs to.
8912 (ssa_create_duplicates): Blocks duplicated for the threaded
8913 path belong to the loop of the thread destination.
8914
8915 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8916
8917 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8918 to cleanup-saved-temps.
8919 * doc/sourcebuild.texi (Clean up generated test files): Expand
8920 introduction.
8921 (dg-keep-saved-temps): Document new proc.
8922 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8923 cleanup-saved-temps): Remove.
8924
8925 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
8926
8927 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8928 gcc_AC_CHECK_DECLS.
8929 * configure: Regenerate.
8930
8931 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8932
8933 * config/nios2/linux.h (CPP_SPEC): Define.
8934
8935 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8936
8937 * config/microblaze/linux.h (CPP_SPEC): Define.
8938
8939 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8940
8941 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8942 -pthread is specified.
8943
8944 2015-05-28 Richard Biener <rguenther@suse.de>
8945
8946 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8947 (vect_fixup_scalar_cycles_with_patterns): Likewise.
8948 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8949 after pattern recog.
8950 (vect_create_epilog_for_reduction): Properly handle reductions
8951 with patterns.
8952 (vectorizable_reduction): Likewise.
8953 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8954 reduction chains.
8955 (vect_get_constant_vectors): Create the correct number of
8956 initial values for reductions.
8957 (vect_schedule_slp_instance): Handle reduction chains that are
8958 type changing properly.
8959 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8960
8961 2015-05-28 Richard Biener <rguenther@suse.de>
8962
8963 PR tree-optimization/66142
8964 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8965 values better in memcpy destination handling. Handle non-aliasing
8966 we discover here.
8967
8968 2015-05-28 Lawrence Velázquez <vq@larryv.me>
8969
8970 PR target/63810
8971 * config/darwin-c.c (version_components): New global enum.
8972 (parse_version, version_as_legacy_macro)
8973 (version_as_modern_macro, macosx_version_as_macro): New functions.
8974 (version_as_macro): Remove.
8975 (darwin_cpp_builtins): Use new function.
8976
8977 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
8978
8979 * builtins.c (expand_builtin_acc_on_device): Mark parameters
8980 with ATTRIBUTE_UNUSED.
8981
8982 2015-05-28 Julian Brown <julian@codesourcery.com>
8983
8984 PR libgomp/65742
8985
8986 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
8987 sequence for !ACCEL_COMPILER.
8988
8989 2015-05-28 Nick Clifton <nickc@redhat.com>
8990
8991 * config/rx/rx.c (push_regs): New function. Extracts code from...
8992 (rx_expand_prologue): ... here. Use push_regs to push even small
8993 spans of registers.
8994 (pop_regs): New function.
8995 (rx_expand_epilogue): Use pop_regs to pop even small spans of
8996 registers.
8997
8998 2015-05-28 Richard Biener <rguenther@suse.de>
8999
9000 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9001 member.
9002 (SLP_INSTANCE_BODY_COST_VEC): Remove.
9003 (vect_update_slp_costs_according_to_vf): Likewise.
9004 (vect_slp_analyze_operations): Update prototype.
9005 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9006 vect_update_slp_costs_according_to_vf, adjust.
9007 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9008 (vect_analyze_slp_cost_1): Likewise.
9009 (vect_analyze_slp_cost): Likewise. Properly deal with
9010 widening reduction ops. Commit body costs.
9011 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
9012 cost for loops from here.
9013 (vect_slp_analyze_operations): But do it from here when
9014 the vectorization factor is known and stmts are analyzed.
9015 (vect_bb_vectorization_profitable_p): Simplify.
9016 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9017 (vect_update_slp_costs_according_to_vf): Remove.
9018
9019 2015-05-27 Magnus Granberg <zorry@gentoo.org>
9020 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9023 (BUILD_CFLAGS): Likewise.
9024 (BUILD_CXXFLAGS): Likewise.
9025 (LINKER): Add @NO_PIE_FLAG@.
9026 (BUILD_LDFLAGS): Likewise.
9027 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9028 --enable-default-pie.
9029 * common.opt (fPIE): Initialize to -1.
9030 (fpie): Likewise.
9031 (no-pie): New option.
9032 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9033 * configure.ac: Add --enable-default-pie.
9034 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
9035 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
9036 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
9037 * gcc.c (NO_PIE_SPEC): New.
9038 (PIE_SPEC): Likewise.
9039 (NO_FPIE1_SPEC): Likewise.
9040 (FPIE1_SPEC): Likewise.
9041 (NO_FPIE2_SPEC): Likewise.
9042 (FPIE2_SPEC): Likewise.
9043 (NO_FPIE2_SPEC): Likewise.
9044 (FPIE_SPEC): Likewise.
9045 (NO_FPIE_SPEC): Likewise.
9046 (NO_FPIC1_SPEC): Likewise.
9047 (FPIC1_SPEC): Likewise.
9048 (NO_FPIC2_SPEC): Likewise.
9049 (FPIC2_SPEC): Likewise.
9050 (NO_FPIC2_SPEC): Likewise.
9051 (FPIC_SPEC): Likewise.
9052 (NO_FPIC_SPEC): Likewise.
9053 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9054 (FPIE1_OR_FPIC1_SPEC): Likewise.
9055 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9056 (FPIE2_OR_FPIC2_SPEC): Likewise.
9057 (NO_FPIE_AND_FPIC_SPEC): Likewise.
9058 (FPIE_OR_FPIC_SPEC): Likewise.
9059 (LD_PIE_SPEC): Likewise.
9060 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
9061 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9062 * config/darwin.h (PIE_SPEC): Renamed to ...
9063 (DARWIN_PIE_SPEC): This.
9064 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9065 * config/darwin9.h (PIE_SPEC): Renamed to ...
9066 (DARWIN_PIE_SPEC): This.
9067 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9068 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9069 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9070 FPIE2_OR_FPIC2_SPEC.
9071 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9072 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9073 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9074 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9075 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9076 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9077 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9078 * config/m32r/m32r.h (ASM_SPEC): Likewise.
9079 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9080 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9081 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9082 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9083 * config/sparc/linux.h (ASM_SPEC): Likewise.
9084 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9085 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9086 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9087 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9088 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9089 * config/sparc/sparc.h (ASM_SPEC): Likewise.
9090 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9091 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9092 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9093 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9094 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9095 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9096 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9097 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9098 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9099 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9100 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9101 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9102 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9103 * config/vax/linux.h (ASM_SPEC): Likewise.
9104 * doc/install.texi: Document --enable-default-pie.
9105 * doc/invoke.texi: Document -no-pie.
9106 * config.in: Regenerated.
9107 * configure: Likewise.
9108
9109 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9110
9111 PR rtl-optimization/66168
9112 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9113 can_move_invariant_reg.
9114
9115 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
9116
9117 PR target/66148
9118 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9119 REG_EQUAL note when doing insert.
9120
9121 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9122 instead of "%d" for 'o' operand.
9123
9124 2015-05-27 Nathan Sidwell <nathan@acm.org>
9125
9126 PR c++/66270
9127 * tree.c (build_pointer_type_for_mode): Canonical type does not
9128 inherit can_alias_all.
9129 (build_reference_type_for_mode): Likewise.
9130
9131 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
9132
9133 * expr.h (array_at_struct_end_p): Move to...
9134 (array_ref_element_size): Likewise.
9135 (component_ref_field_offset): Likewise.
9136 * tree.h (array_ref_element_size): ...here.
9137 (array_at_struct_end_p): Likewise.
9138 (component_ref_field_offset): Likewise.
9139 * expr.c (array_ref_element_size): Move to...
9140 (array_ref_low_bound): Likewise.
9141 (array_at_struct_end_p): Likewise.
9142 (array_ref_up_bound): Likewise.
9143 (component_ref_field_offset): Likewise.
9144 * tree.c (array_ref_element_size): ...here.
9145 (array_ref_low_bound): Likewise.
9146 (array_ref_up_bound): Likewise.
9147 (array_at_struct_end_p): Likewise.
9148 (component_ref_field_offset): Likewise.
9149
9150 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9151 Szabolcs Nagy <szabolcs.nagy@arm.com>
9152
9153 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9154
9155 2015-05-27 Jason Merrill <jason@redhat.com>
9156
9157 PR bootstrap/66304
9158 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9159 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9160 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9161
9162 2015-05-22 Aditya Kumar <hiraditya@msn.com>
9163
9164 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9165 is true.
9166
9167 * statistics.c (statistics_fini_pass): Print pass name.
9168
9169 2015-05-27 Richard Biener <rguenther@suse.de>
9170
9171 PR tree-optimization/66272
9172 Revert parts of
9173 2014-08-15 Richard Biener <rguenther@suse.de>
9174
9175 PR tree-optimization/62031
9176 * tree-data-ref.c (dr_analyze_indices): Do not set
9177 DR_UNCONSTRAINED_BASE.
9178 (dr_may_alias_p): All indirect accesses have to go the
9179 formerly DR_UNCONSTRAINED_BASE path.
9180 * tree-data-ref.h (struct indices): Remove
9181 unconstrained_base member.
9182 (DR_UNCONSTRAINED_BASE): Remove.
9183
9184 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
9185
9186 * dwarf2out.c: Remove block_map.
9187 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9188 (gen_lexical_block_die): Same.
9189 (dwarf2out_function_decl): Remove block_map use.
9190 (dwarf2out_c_finalize): Same.
9191 * tree-core.h (struct tree_block): Add die field.
9192 * tree.h (BLOCK_DIE): New.
9193
9194 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9195
9196 PR target/65358
9197 * expr.c (memory_load_overlap): New function.
9198 (emit_push_insn): When pushing partial args to the stack would
9199 clobber the register part load the overlapping part into a pseudo
9200 and put it into the hard reg after pushing. Change return type
9201 to bool. Add bool argument.
9202 * expr.h (emit_push_insn): Change return type to bool.
9203 Add bool argument.
9204 * calls.c (expand_call): Cancel sibcall optimization when encountering
9205 partial argument on targets with ARGS_GROW_DOWNWARD and
9206 !STACK_GROWS_DOWNWARD.
9207 (emit_library_call_value_1): Update callsite of emit_push_insn.
9208 (store_one_arg): Likewise.
9209
9210 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9211
9212 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9213
9214 2015-05-27 Martin Liska <mliska@suse.cz>
9215
9216 * Makefile.in: Add additional dependencies related to memory report
9217 enhancement.
9218 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9219 * bitmap.c (struct bitmap_descriptor_d): Remove.
9220 (struct loc): Likewise.
9221 (struct bitmap_desc_hasher): Likewise.
9222 (bitmap_desc_hasher::hash): Likewise.
9223 (bitmap_desc_hasher::equal): Likewise.
9224 (get_bitmap_descriptor): Likewise.
9225 (bitmap_register): User new memory descriptor API.
9226 (register_overhead): Likewise.
9227 (bitmap_find_bit): Register nsearches and search_iter statistics.
9228 (struct bitmap_output_info): Remove.
9229 (print_statistics): Likewise.
9230 (dump_bitmap_statistics): Use new memory descriptor.
9231 * bitmap.h (struct bitmap_usage): New class.
9232 * genmatch.c: Extend header file inclusion.
9233 * genpreds.c: Likewise.
9234 * ggc-common.c (struct ggc_usage): New class.
9235 (struct ggc_loc_desc_hasher): Remove.
9236 (ggc_loc_desc_hasher::hash): Likewise.
9237 (ggc_loc_desc_hasher::equal): Likewise.
9238 (struct ggc_ptr_hash_entry): Likewise.
9239 (struct ptr_hash_hasher): Likewise.
9240 (ptr_hash_hasher::hash): Likewise.
9241 (ptr_hash_hasher::equal): Likewise.
9242 (make_loc_descriptor): Likewise.
9243 (ggc_prune_ptr): Likewise.
9244 (dump_ggc_loc_statistics): Use new memory descriptor.
9245 (ggc_record_overhead): Likewise.
9246 (ggc_free_overhead): Likewise.
9247 (final_cmp_statistic): Remove.
9248 (cmp_statistic): Likewise.
9249 (ggc_add_statistics): Liekwise.
9250 (ggc_prune_overhead_list): Likewise.
9251 * hash-map-traits.h: New file.
9252 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9253 separate header file.
9254 * hash-set.h: Pass memory statistics info to ctor.
9255 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9256 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9257 (hash_table::~hash_table): Register memory release operation.
9258 (hash_table::alloc_entries): Handle memory allocation operation.
9259 (hash_table::expand): Likewise.
9260 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9261 file.
9262 (iterative_hash_host_wide_int): Likewise.
9263 * inchash.h (class hash): Likewise.
9264 * mem-stats-traits.h: New file.
9265 * mem-stats.h: New file.
9266 (mem_location): Add new class.
9267 (mem_usage): Likewise.
9268 (mem_alloc_description): Likewise.
9269 * sese.c: Add new header file inclusision.
9270 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9271 and hash_set.
9272 * tree-sra.c: Add new header file inclusision.
9273 * vec.c (struct vec_descriptor): Remove.
9274 (hash_descriptor): Likewise.
9275 (struct vec_usage): Likewise.
9276 (struct ptr_hash_entry): Likewise.
9277 (hash_ptr): Likewise.
9278 (eq_ptr): Likewise.
9279 (vec_prefix::register_overhead): Use new memory descriptor API.
9280 (vec_prefix::release_overhead): Likewise.
9281 (add_statistics): Remove.
9282 (dump_vec_loc_statistics): Use new memory descriptor API.
9283 * vec.h (struct vec_prefix): Likewise.
9284 (va_heap::reserve): Likewise.
9285 (va_heap::release): Likewise.
9286 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9287
9288 2015-05-27 Richard Biener <rguenther@suse.de>
9289
9290 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9291 earlier and remove ??? comment.
9292 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9293 and got called from loop analysis bail out. Always pass the SLP
9294 node to the vectorizable_* functions.
9295 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9296 the premature SLP check here.
9297 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9298 detected SLP stmts.
9299 (vect_detect_hybrid_slp_1): Likewise.
9300
9301 2015-05-26 Jeff Law <law@redhat.com>
9302
9303 * combine.c (find_split_point): Verify that the shift count is a
9304 constant when choosing (plus (ashift ...)) as a split point.
9305
9306 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9307 No functional changes.
9308
9309 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9310
9311 * ipa-polymorphic-call.c
9312 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9313 case when call target is already known.
9314
9315 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9316
9317 PR target/65979
9318 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9319 take into account the case that operands[1] and operands[2]
9320 are the same register.
9321
9322 2015-05-26 Michael Matz <matz@suse.de>
9323
9324 PR middle-end/66251
9325
9326 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9327 stores.
9328 (vect_create_vectorized_demotion_stmts): Always set
9329 STMT_VINFO_VEC_STMT, also with SLP.
9330 (vectorizable_store): Handle strided group stores.
9331
9332 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9333
9334 PR target/66049
9335 * config/aarch64/aarch64.md
9336 (*adds_shift_imm_<mode>): New pattern.
9337 (*subs_shift_imm_<mode>): Likewise.
9338 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9339 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9340 (*add_uxt<mode>_shift2): Likewise.
9341 (*add_uxtsi_shift2_uxtw): Likewise.
9342 (*sub_uxt<mode>_shift2): Likewise.
9343 (*sub_uxtsi_shift2_uxtw): Likewise.
9344
9345 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9346
9347 * config/rs6000/constraints.md (Y, U): Use match_test.
9348
9349 2015-05-26 Christian Bruel <christian.bruel@st.com>
9350
9351 PR target/52144
9352 * config/arm/arm.c (arm_option_check_internal)
9353 (arm_option_params_internal): Check opts->target_flags to set macros.
9354 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9355 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9356 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9357 (builtin_define): Replaced with def_or_undef_macro.
9358 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9359 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9360 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9361 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9362 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9363 (TARGET_ARM_FEATURE_LDREX_P)
9364 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9365 * config/arm/arm-c.c (def_or_undef_macro): New function.
9366 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9367
9368 2015-05-26 Christian Bruel <christian.bruel@st.com>
9369
9370 * c-common.h (builtin_define_with_int_value)
9371 (builtin_define_type_sizeof): Declare.
9372 * c-cppbuiltin.c (builtin_define_with_int_value)
9373 (builtin_define_type_sizeof): Externalize.
9374 (builtin_define_std): Cleanup declaration.
9375 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9376 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9377 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9378 (builtin_define, builtin_assert): New macros.
9379
9380 2015-05-26 Richard Biener <rguenther@suse.de>
9381
9382 PR tree-optimization/66142
9383 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9384 MEM_REFs for the same base address.
9385
9386 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9387
9388 PR ipa/66181
9389 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9390
9391 2015-05-26 Jason Merrill <jason@redhat.com>
9392
9393 * configure.ac: Set CXXFLAGS for ISL test.
9394 * configure: Regenerate.
9395
9396 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9397 strstr and basename.
9398 * configure: Regenerate.
9399
9400 2015-05-26 Richard Biener <rguenther@suse.de>
9401
9402 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9403 X % C -> X & (C - 1) for C being a power-of two to ...
9404 * match.pd: ... patterns.
9405
9406 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9407
9408 * match.pd (swapped_tcc_comparison): New operator list.
9409 (-A CMP -B): New simplification.
9410 * fold-const.c (fold_comparison): Remove corresponding code.
9411
9412 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9413
9414 * caller-save.c (init_caller_save): Base temporary register numbers
9415 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9416 * cfgloopanal.c (init_set_costs): Likewise.
9417 * dojump.c (prefer_and_bit_test): Likewise.
9418 * expr.c (init_expr_target): Likewise.
9419 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9420 * lower-subreg.c (init_lower_subreg): Likewise.
9421 * postreload.c (reload_cse_regs_1): Likewise.
9422
9423 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9424
9425 * gensupport.h (compute_test_codes): Declare.
9426 * gensupport.c (compute_predicate_codes): Rename to...
9427 (compute_test_codes): ...this. Generalize error message.
9428 (process_define_predicate): Update accordingly.
9429 * genpreds.c (compute_maybe_allows): Delete.
9430 (add_constraint): Use compute_test_codes to determine whether
9431 something can accept a SUBREG, REG or MEM.
9432
9433 2015-05-26 Torvald Riegel <triegel@redhat.com>
9434
9435 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9436 'memory model' to align with C++11; fix description of memory orders;
9437 fix a few typos.
9438
9439 2015-05-26 Richard Biener <rguenther@suse.de>
9440
9441 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9442 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9443 detect whether we apply SLP. Remove call to
9444 vect_update_slp_costs_according_to_vf.
9445 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9446 vect_update_slp_costs_according_to_vf from here. Dispatch
9447 to vect_slp_analyze_operations to analyze SLP stmts.
9448 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9449 unused bb_vec_info parameter, adjust assert.
9450 (vect_slp_analyze_operations): Pass in the slp instance tree
9451 instead of bb_vec_info.
9452 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9453 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9454
9455 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9456
9457 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9458 Q_REGS. Expand comment.
9459 (REG_CLASS_NAMES): Ditto.
9460 (REG_CLASS_CONTENTS): Ditto.
9461
9462 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9463
9464 PR target/66274
9465 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9466 when LEGACY_INT_REGNO_P is processed.
9467
9468 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9469
9470 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9471
9472 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9473
9474 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9475 register if not marked dead/unused, before return.
9476
9477 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9478
9479 PR lto/66180
9480 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9481 is set; check for assembler name at LTO time.
9482 (type_in_anonymous_namespace): Remove hacks, check that all
9483 anonymous types are called "<anon>"
9484 (odr_type_p): Simplify; add check for "<anon>"
9485 (odr_subtypes_equivalent): Add odr_type_p check.
9486 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9487 assembler name.
9488
9489 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9490
9491 * ipa-utils.h (method_class_type): Remove.
9492 * cgraphunit.c (walk_polymorphic_call_targets): Use
9493 TYPE_METHOD_BASETYPE.
9494 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9495 on main variants only.
9496 (method_class_type): Remove.
9497 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9498 (build_type_inheritance_graph): Likewise.
9499 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9500 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9501 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9502
9503 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9504
9505 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9506 is_typedef_decl, typedef_variant_p): Constify.
9507 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9508 is_typedef_decl, typedef_variant_p): Constify.
9509
9510 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9511
9512 * defaults.h (gen_tablejump): New function.
9513 (HAVE_tablejump): Add default value.
9514 * expr.c: Adjust.
9515 * stmt.c: Likewise.
9516
9517 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9518
9519 * defaults.h (gen_store_multiple): New function.
9520 (HAVE_store_multiple): Add default value.
9521 * expr.c (move_block_from_reg): Adjust.
9522
9523 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9524
9525 * defaults.h (gen_load_multiple): New function.
9526 (HAVE_load_multiple): Add default value.
9527 * expr.c (move_block_to_reg): Adjust.
9528
9529 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9530
9531 * defaults.h (gen_mem_signal_fence): New function.
9532 (HAVE_mem_signal_fence): Add default value.
9533 * optabs.c: Adjust.
9534
9535 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9536
9537 * defaults.h (gen_memory_barrier): New function.
9538 (HAVE_memory_barrier): Add default value.
9539 * optabs.c: Adjust.
9540
9541 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9542
9543 * defaults.h (gen_mem_thread_fence): New function.
9544 (HAVE_mem_thread_fence): Add default definition.
9545 * optabs.c: Adjust.
9546
9547 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9548
9549 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9550 instead of if it is defined.
9551 (combine_simplify_rtx): Likewise.
9552 * lra-constraints.c (process_address_1): Likewise.
9553 * config/darwin.c: Adjust.
9554 * genconfig.c (main): Always define HAVE_lo_sum.
9555
9556 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9557
9558 * genmatch.c (parser::parse_operation): Reject expanding
9559 operator-list inside 'for'.
9560
9561 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9562
9563 * genmatch.c (parser::parse_for): Reject iterator if used as
9564 operator-list.
9565
9566 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9567
9568 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9569 after end of id-list.
9570
9571 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9572
9573 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9574 we do not try to compute canonical type for type that does not need
9575 alias set.
9576 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9577 FUNCITON_TYPE.
9578 * tree.h (type_with_alias_set_p): New.
9579
9580 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9581
9582 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9583 function attributes.
9584 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9585
9586 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9587
9588 * Makefile.in (check_gcc_parallelize): Delete.
9589 (lang_checks_parallelized): Update comment.
9590
9591 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9592
9593 PR rtl-optimization/66237
9594 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9595 location of an "as_a" cast.
9596
9597 2015-05-22 Jeff Law <law@redhat.com>
9598
9599 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9600 (peepholes with non-canonical RTL sources): Remove.
9601 (peepholes for indexed stores of FP regs in integer modes): Match and
9602 generate canonical RTL.
9603
9604 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9605
9606 PR tree-optimization/63387
9607 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9608 ((x ord x) & (y ord y) -> (x ord y),
9609 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9610 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9611 vectors like scalars.
9612
9613 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9614
9615 * convert.c (convert_to_integer, convert_to_vector): Include the
9616 types in the error message.
9617
9618 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9619
9620 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9621 simplifications.
9622
9623 2015-05-22 Jeff Law <law@redhat.com>
9624
9625 * config/pa/pa.md (integer_indexed_store splitters): Use
9626 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9627 insns -- adjusting the constant 2nd operand accordingly.
9628
9629 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9630 (plus (ashift X log2) Y) if it is a split point.
9631
9632 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9633 out of hppa_legitimize_address to handle both forms of a multiply
9634 by 2, 4 or 8.
9635 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9636 Always generate the ASHIFT variant as the result is not directly
9637 used in a MEM. Update comments and refactor slightly to improve
9638 readability.
9639
9640 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9641
9642 PR target/65491
9643 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9644 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9645 (aarch64_composite_type_p): Return false if given type and mode are
9646 for a short vector.
9647
9648 2015-05-22 Richard Biener <rguenther@suse.de>
9649
9650 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9651 member.
9652 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9653 patterns when determining whether SLP is pure.
9654 (vect_is_slp_reduction): Remove check for pattern stmts.
9655 (vect_is_simple_reduction_1): Remove dead code.
9656 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9657 (vect_get_and_check_slp_defs): Pass in the stmt number.
9658 Allow the first def in a reduction to be not a pattern stmt when
9659 the rest of the stmts def are patterns.
9660 (vect_build_slp_tree_1): Allow tcc_expression codes like
9661 SAD_EXPR and DOT_PROD_EXPR.
9662 (vect_build_slp_tree): Adjust.
9663 (vect_analyze_slp): Refactor and move BB vect error message ...
9664 (vect_slp_analyze_bb_1): ... here.
9665
9666 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9667
9668 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9669 for CSWTCH temporary.
9670
9671 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9672
9673 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9674 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9675 unknown unspecs.
9676
9677 2015-05-22 Richard Biener <rguenther@suse.de>
9678
9679 PR tree-optimization/66251
9680 * tree-vect-stmts.c (vectorizable_conversion): Properly
9681 set STMT_VINFO_VEC_STMT even for the SLP case.
9682
9683 2015-05-22 Marek Polacek <polacek@redhat.com>
9684
9685 * doc/extend.texi: Use @pxref instead of @xref.
9686
9687 2015-05-22 hiraditya <hiraditya@msn.com>
9688
9689 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9690 redundant if.
9691
9692 2015-05-22 Richard Biener <rguenther@suse.de>
9693
9694 PR tree-optimization/65701
9695 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9696 Move peeling cost models into one place. Peel for alignment
9697 for single loads only if an aligned load is cheaper than
9698 an unaligned load.
9699
9700 2015-05-22 Marek Polacek <polacek@redhat.com>
9701
9702 PR c/47043
9703 * doc/extend.texi (Enumerator Attributes): New section.
9704 Document syntax of enumerator attributes.
9705
9706 2015-05-22 Richard Biener <rguenther@suse.de>
9707
9708 * tree-vect-loop.c (get_reduction_op): New function.
9709 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9710 Make ready for BB reductions.
9711 (vect_create_epilog_for_reduction): Use get_reduction_op.
9712 (vectorizable_reduction): Init reduc_index to a valid value.
9713 Adjust vect_model_reduction_cost call.
9714 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9715 operand for reduction defaults. Add SAD_EXPR support.
9716 Assert we have a neutral op for SLP reductions.
9717 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9718 walking pattern stmt ops only recurse to SSA names.
9719
9720 2015-05-22 Richard Biener <rguenther@suse.de>
9721
9722 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9723 assert with guard, remove check on detected reduction.
9724 (vect_recog_sad_pattern): Likewise.
9725 (vect_recog_widen_sum_pattern): Likewise.
9726
9727 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9728
9729 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9730 __always_inline__ attribute.
9731 (vaesdq_u8): Likewise.
9732 (vaesmcq_u8): Likewise.
9733 (vaesimcq_u8): Likewise.
9734 (vsha1cq_u32): Likewise.
9735 (vsha1mq_u32): Likewise.
9736 (vsha1pq_u32): Likewise.
9737 (vsha1h_u32): Likewise.
9738 (vsha1su0q_u32): Likewise.
9739 (vsha1su1q_u32): Likewise.
9740 (vsha256hq_u32): Likewise.
9741 (vsha256h2q_u32): Likewise.
9742 (vsha256su0q_u32): Likewise.
9743 (vsha256su1q_u32): Likewise.
9744 (vmull_p64): Likewise.
9745 (vmull_high_p64): Likewise.
9746
9747 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9748
9749 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9750 preprocessor.
9751 * output.h: Likewise.
9752 * genconfig.c (main): Alwways define HAVE_peephole.
9753 * genpeep.c: Don't emit checks of HAVE_peephole.
9754
9755 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9756
9757 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9758 check HAVE_conditional_move with the preprocessor.
9759
9760 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9761
9762 * genconfig.c (main): Always define HAVE_conditional_move.
9763 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9764 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9765 is defined.
9766
9767 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9768
9769 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9770 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9771 and FRAME_POINTER_REGNUM with the preprocessor.
9772
9773 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9774
9775 * defaults.h: Add default for STACK_PUSH_CODE.
9776 * expr.c: Don't redefine STACK_PUSH_CODE.
9777 * recog.c: Likewise.
9778
9779 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9780
9781 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9782 sched-deps.c: Use if instead of preprocessor checks with
9783 STACK_GROWS_DOWNWARD.
9784
9785 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9786
9787 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9788 is defined.
9789 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9790 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9791 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9792 * doc/tm.texi: Regenerate.
9793
9794 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
9795
9796 PR target/66232
9797 * config/i386/constraints.md (Bg): New constraint for GOT memory
9798 operand.
9799 * config/i386/i386.md (*call_got_x32): New pattern.
9800 (*call_value_got_x32): Likewise.
9801 * config/i386/predicates.md (GOT_memory_operand): New predicate.
9802
9803 2015-05-21 Jakub Jelinek <jakub@redhat.com>
9804
9805 PR tree-optimization/66233
9806 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9807 Simplify.
9808
9809 2015-05-21 Jeff Law <law@redhat.com>
9810
9811 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9812 than MULT for shadd sequences.
9813
9814 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
9815
9816 * alias.c (alias_stats): New static var.
9817 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9818 (dump_alias_stats_in_alias_c): New function.
9819 * alias.h (dump_alias_stats_in_alias_c): Declare.
9820 * tree-ssa-alias.c (dump_alias_stats): Call it.
9821
9822 2015-05-08 Michael Matz <matz@suse.de>
9823
9824 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9825 to strided_p.
9826 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9827 (STMT_VINFO_STRIDED_P): ... this.
9828 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9829 (vect_verify_datarefs_alignment): Likewise.
9830 (vect_enhance_data_refs_alignment): Likewise.
9831 (vect_analyze_data_ref_access): Likewise.
9832 (vect_analyze_data_refs): Accept strided stores.
9833 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9834 (vect_model_load_cost): Adjust for macro rename.
9835 (vectorizable_mask_load_store): Likewise.
9836 (vectorizable_load): Likewise.
9837 (vectorizable_store): Open code strided stores.
9838
9839 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9840
9841 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9842 Document sqrt_insn.
9843
9844 2015-05-21 Richard Biener <rguenther@suse.de>
9845
9846 PR c++/66211
9847 * match.pd: Guard pattern optimzing (int)(float)int
9848 conversions to apply only on GIMPLE.
9849
9850 2015-05-21 Jeff Law <law@redhat.com>
9851
9852 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9853 multiply-accumulate/shift-add insn generation.
9854
9855 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
9856
9857 PR target/54236
9858 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9859 operands[1] are the same.
9860
9861 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9862
9863 PR middle-end/66221
9864 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9865 build_distinct_type_copy to copy bounds.
9866
9867 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
9868
9869 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9870 Change to unsigned int.
9871
9872 2015-05-20 Jeff Law <law@redhat.com>
9873
9874 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9875 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9876 (pa_shadd_constant_p): Allow constants for shadd insns rather
9877 than valid scaling constants for memory addresses.
9878 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9879 * config/pa/predicates.md (mem_shadd_operand): New predicate.
9880 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9881 (shift-add insns using ASHIFT): New patterns.
9882
9883 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
9884
9885 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9886 feasible.
9887 (fix_up_fall_thru_edges): Likewise.
9888 (fix_crossing_conditional_branches): Likewise. Promote jump targets
9889 from to rtx_insn to rtx_code_label where feasible.
9890 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9891 gen_move_insn (returned type changed to rtx_insn).
9892 * builtins.c (expand_errno_check): Fix arguments of
9893 do_compare_rtx_and_jump (now expects rtx_code_label).
9894 (expand_builtin_acc_on_device): Likewise.
9895 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9896 invert_jump (now exprects rtx_jump_insn).
9897 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9898 (construct_init_block): Use rtx_code_label.
9899 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9900 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9901 calling redirect_jump.
9902 (patch_jump_insn): Likewise.
9903 (redirect_branch_edge): Likewise.
9904 (force_nonfallthru_and_redirect): Likewise.
9905 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9906 when suitable.
9907 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9908 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9909 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9910 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9911 to store the value retured by gen_label_rtx.
9912 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9913 rtx_jump_insn.
9914 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9915 (split_branches): Fix calls of redirect_jump.
9916 * dojump.c (jumpifnot): Promote argument type from rtx to
9917 rtx_code_label.
9918 (jumpifnot_1): Likewise.
9919 (jumpif): Likewise.
9920 (jumpif_1): Likewise.
9921 (do_jump_1): Likewise.
9922 (do_jump): Likewise. Use rtx_code_label when feasible.
9923 (do_jump_by_parts_greater_rtx): Likewise.
9924 (do_jump_by_parts_zero_rtx): Likewise.
9925 (do_jump_by_parts_equality_rtx): Likewise.
9926 (do_compare_rtx_and_jump): Likewise.
9927 * dojump.h: Update function prototypes.
9928 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9929 returns rtx_insn).
9930 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9931 rtx_jump_insn.
9932 (emit_label_before): Likewise.
9933 (emit_jump_insn_after_noloc): Likewise.
9934 (emit_jump_insn_after_setloc): Likewise.
9935 (emit_jump_insn_after): Likewise
9936 (emit_jump_insn_before_setloc): Likewise.
9937 (emit_jump_insn_before): Likewise.
9938 (emit_label_before): Promote return type to rtx_code_label.
9939 (emit_label): Likewise.
9940 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9941 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9942 gen_move_insn.
9943 (emit_stack_restore): Likewise.
9944 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9945 (do_cmp_and_jump): Likewise.
9946 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9947 from rtx to rtx_code_label.
9948 (gen_move_insn_uncast): New function.
9949 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9950 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9951 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9952 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9953 invert_jump_1 and redirect_jump_1.
9954 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9955 do_compare_rtx_and_jump.
9956 (expand_addsub_overflow): Likewise.
9957 (expand_neg_overflow): Likewise.
9958 (expand_mul_overflow): Likewise.
9959 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9960 return value of gen_move_insn.
9961 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9962 * loop-doloop.c (add_test): Use rtx_code_label.
9963 (doloop_modify): Likewise.
9964 (doloop_optimize): Likewise.
9965 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9966 * lra-constraints.c (emit_spill_move): Remove cast of value returned
9967 by gen_move_insn.
9968 (inherit_reload_reg): Add cast when calling dump_insn_slim.
9969 (split_reg): Likewise.
9970 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9971 gen_move_insn.
9972 * optabs.c (expand_binop_directly): Remove casts of values returned by
9973 maybe_gen_insn.
9974 (expand_unop_direct): Likewise.
9975 (expand_abs): Likewise.
9976 (maybe_emit_unop_insn): Likewise.
9977 (maybe_gen_insn): Promote return type to rtx_insn.
9978 * optabs.h: Update prototype of maybe_gen_insn.
9979 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
9980 redundant cast.
9981 * recog.c (struct peep2_insn_data): Promote type of insn field to
9982 rtx_insn.
9983 (peep2_reinit_state): Use NULL instead of NULL_RTX.
9984 (peep2_attempt): Remove casts of insn in peep2_insn_data.
9985 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
9986 * recog.h (struct insn_gen_fn): Promote return types of function
9987 pointers and operator ().from rtx to rtx_insn.
9988 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
9989 (fill_eager_delay_slots): Likewise.
9990 (relax_delay_slots): Likewise.
9991 (make_return_insns): Likewise.
9992 (dbr_schedule): Likewise.
9993 (optimize_skips): Likewise.
9994 (reorg_redirect_jump): Likewise.
9995 (fill_slots_from_thread): Likewise.
9996 * reorg.h: Update prototypes.
9997 * resource.c (find_dead_or_set_registers): Use dyn_cast to
9998 rtx_jump_insn instead of check. Use it's jump_target method.
9999 * rtl.h (rtx_jump_insn::jump_label): Define new method.
10000 (rtx_jump_insn::jump_target): Define new method.
10001 (rtx_jump_insn::set_jump_target): Define new method.
10002 * rtlanal.c (tablejump_p): Promote type of one local variable.
10003 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10004 (sched_analyze_insn): Likewise.
10005 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10006 (print_insn): Likewise.
10007 * stmt.c (label_rtx): Promote return type to rtx_insn.
10008 (force_label_rtx): Likewise.
10009 (jump_target_rtx): Define new function.
10010 (expand_label): Use it, get rid of one cast.
10011 (expand_naked_return): Promote rtx to rtx_code_label.
10012 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10013 (expand_case): Use rtx_code_label instread of rtx where feasible.
10014 (expand_sjlj_dispatch_table): Likewise.
10015 (emit_case_nodes): Likewise.
10016 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
10017 * store-motion.c (insert_store): Make use of new return type of
10018 gen_move_insn and remove a cast.
10019 (replace_store_insn): Likewise.
10020
10021 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
10022
10023 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10024 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10025
10026 2015-05-20 Jeff Law <law@redhat.com>
10027
10028 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10029 dispose of the jump thread path when the jump threading
10030 opportunity is cancelled.
10031
10032 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10033
10034 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10035 when printing the caret character.
10036
10037 2015-05-20 Marek Polacek <polacek@redhat.com>
10038
10039 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10040
10041 2015-05-20 Marek Polacek <polacek@redhat.com>
10042
10043 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10044 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10045 * gimple-fold.c (canonicalize_bool): Likewise.
10046 (same_bool_result_p): Likewise.
10047 * tree-if-conv.c (parse_predicate): Likewise.
10048
10049 2015-05-20 Marek Polacek <polacek@redhat.com>
10050
10051 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10052 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10053
10054 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10055
10056 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10057 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10058 values.
10059
10060 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
10061
10062 * config/mips/mips.h (micromips_globals): Declare.
10063
10064 2015-05-20 David Malcolm <dmalcolm@redhat.com>
10065
10066 * timevar.def (TV_INITIALIZE_RTL): New.
10067 * toplev.c (initialize_rtl): Use an auto_timevar to account this
10068 function's time to TV_INITIALIZE_RTL.
10069
10070 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
10071
10072 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10073 gimple_build_nop calls.
10074 (chkp_find_bounds_for_elem): Likewise.
10075 (chkp_get_zero_bounds): Likewise.
10076 (chkp_get_none_bounds): Likewise.
10077 (chkp_get_bounds_by_definition): Likewise.
10078 (chkp_generate_extern_var_bounds): Likewise.
10079 (chkp_get_bounds_for_decl_addr): Likewise.
10080 (chkp_get_bounds_for_string_cst): Likewise.
10081
10082 2015-05-20 Bin Cheng <bin.cheng@arm.com>
10083
10084 PR tree-optimization/65447
10085 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10086 (dump_use, dump_uses): Support to dump sub use.
10087 (record_use): New parameters to support sub use. Remove call to
10088 dump_use.
10089 (record_sub_use, record_group_use): New functions.
10090 (compute_max_addr_offset, split_all_small_groups): New functions.
10091 (group_address_uses, rewrite_use_address): New functions.
10092 (strip_offset): New declaration.
10093 (find_interesting_uses_address): Call record_group_use.
10094 (add_candidate): New assertion.
10095 (infinite_cost_p): Move definition forward.
10096 (add_costs): Check INFTY cost and return immediately.
10097 (get_computation_cost_at): Clear setup cost and dependent bitmap
10098 for sub uses.
10099 (determine_use_iv_cost_address): Compute cost for sub uses.
10100 (rewrite_use_address_1): Rename from old rewrite_use_address.
10101 (free_loop_data): Free sub uses.
10102 (tree_ssa_iv_optimize_loop): Call group_address_uses.
10103
10104 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10105 Jim Wilson <jim.wilson@linaro.org>
10106
10107 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10108 new fields loadv and storev.
10109 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10110 Initialize loadv and storev.
10111 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10112 (cortexa53_extra_costs): Likewise.
10113 (cortexa57_extra_costs): Likewise.
10114 (xgene1_extra_costs): Likewise.
10115 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10116 rtx_costs.
10117
10118 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10119
10120 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10121 storev.
10122 (cortexa8_extra_costs): Likewise.
10123 (cortexa5_extra_costs): Likewise.
10124 (cortexa7_extra_costs): Likewise.
10125 (cortexa12_extra_costs): Likewise.
10126 (cortexa15_extra_costs): Likewise.
10127 (v7m_extra_costs): Likewise.
10128
10129 2015-05-20 Jeff Law <law@redhat.com>
10130
10131 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10132 instead of open-coded version. Also delete the jump thread created
10133 within this function.
10134
10135 2015-05-20 Alan Modra <amodra@gmail.com>
10136
10137 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10138 stack adjusting insn. Formatting.
10139 (rs6000_emit_prologue): Track stack adjusting insn, and use of
10140 r12. If possible, emit first -fsplit-stack arg pointer insn
10141 before stack adjust. Don't use r12 to save cr if split-stack.
10142
10143 2015-05-20 Alan Modra <amodra@gmail.com>
10144
10145 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10146 Define.
10147 (rs6000_supports_split_stack): New function.
10148 * gcc/config/rs6000/rs6000.c (machine_function): Add
10149 split_stack_arg_pointer.
10150 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10151 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10152 rather than virtual_incoming_args_rtx.
10153 (rs6000_va_start): Likewise.
10154 (split_stack_arg_pointer_used_p): New function.
10155 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10156 (morestack_ref): New var.
10157 (gen_add3_const, rs6000_expand_split_stack_prologue,
10158 rs6000_internal_arg_pointer, rs6000_live_on_entry,
10159 rs6000_split_stack_space_check): New functions.
10160 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10161 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10162 (UNSPECV_SPLIT_STACK_RETURN): Define.
10163 (split_stack_prologue, load_split_stack_limit,
10164 load_split_stack_limit_di, load_split_stack_limit_si,
10165 split_stack_return, split_stack_space_check): New expands and insns.
10166 * gcc/config/rs6000/rs6000-protos.h
10167 (rs6000_expand_split_stack_prologue): Declare.
10168 (rs6000_split_stack_space_check): Declare.
10169
10170 2015-05-20 Alan Modra <amodra@gmail.com>
10171
10172 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10173 (direct_return): Test vrsave_size rather than vrsave_mask.
10174 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
10175 (rs6000_emit_epilogue): Likewise.
10176
10177 2015-05-20 Alan Modra <amodra@gmail.com>
10178
10179 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10180 when not saving registers.
10181 (debug_stack_info): Adjust to omit printing unused offsets,
10182 as before.
10183 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10184 expression.
10185
10186 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10187
10188 PR c++/65835
10189 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10190 value_type to const char *.
10191
10192 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
10193
10194 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10195 to build a biarch toolchain again.
10196
10197 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10198
10199 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10200 or implicit declarations.
10201 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10202 into it.
10203 (get_odr_type): Check type has linkage before adding bases.
10204 (register_odr_type): Check that type has linkage before adding it.
10205 (type_known_to_have_no_deriavations_p): Rename to ..
10206 (type_known_to_have_no_derivations_p): This one.
10207 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10208 (type_known_to_have_no_derivations_p): This one.
10209 * ipa-polymorphic-call.c
10210 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10211 type has linkage.
10212
10213 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10214
10215 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10216 (layout_type): Use RECORD_OR_UNION_TYPE_P.
10217
10218 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10219
10220 * config/s390/s390.c (s390_vector_bool_type_p): New function.
10221 (s390_invalid_binary_op): New function.
10222 (TARGET_INVALID_BINARY_OP): Define macro.
10223
10224 2015-05-19 David Sherwood <david.sherwood@arm.com>
10225
10226 * loop-invariant.c (create_new_invariant): Don't calculate address cost
10227 if mode is not a scalar integer.
10228 (get_inv_cost): Increase computational cost for unused invariants.
10229
10230 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10231
10232 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
10233 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
10234 * config/s390/s390-builtin-types.def: New file.
10235 * config/s390/s390-builtins.def: New file.
10236 * config/s390/s390-builtins.h: New file.
10237 * config/s390/s390-c.c: New file.
10238 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10239 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10240 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10241 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10242 prototypes.
10243 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10244 Include.
10245 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10246 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10247 variable definitions.
10248 (s390_const_operand_ok): New function.
10249 (s390_expand_builtin): Rewrite.
10250 (s390_init_builtins): New function.
10251 (s390_handle_vectorbool_attribute): New function.
10252 (s390_attribute_table): Add s390_vector_bool attribute.
10253 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10254 (s390_branch_condition_mask): Generate masks for new modes.
10255 (s390_expand_vec_compare_cc): New function.
10256 (s390_mangle_type): Add mangling for vector bool types.
10257 (enum s390_builtin): Remove.
10258 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10259 efpc builtins.
10260 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10261 s390_cpu_cpp_builtins.
10262 (REGISTER_TARGET_PRAGMAS): New macro.
10263 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10264 (insn_cmp mode attribute): Add new CC modes.
10265 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10266 (lcbb): New pattern definition.
10267 * config/s390/s390intrin.h: Include vecintrin.h.
10268 * config/s390/t-s390: New file.
10269 * config/s390/vecintrin.h: New file.
10270 * config/s390/vector.md: Include vx-builtins.md.
10271 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10272 support.
10273
10274 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10275
10276 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10277 CCVFHE.
10278 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10279 (s390_select_ccmode): Likewise.
10280 (s390_canonicalize_comparison): Swap operands if necessary.
10281 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10282 single element vector instructions.
10283 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10284 (s390_branch_condition_mask): Generate CC masks for the new modes.
10285 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10286 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10287 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10288 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10289 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10290 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10291 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10292 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10293 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10294 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10295 (sqrt<mode>2): Add vector instruction.
10296
10297 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10298
10299 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10300 constraints.
10301 * config/s390/predicates.md (const0_operand, constm1_operand)
10302 (constable_operand): Accept vector operands.
10303 * config/s390/s390-modes.def: Add supported vector modes.
10304 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10305 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10306 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10307 (s390_expand_vec_compare, s390_expand_vcond)
10308 (s390_expand_vec_init): Add prototypes.
10309 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10310 (s390_vector_mode_supported_p): New function.
10311 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10312 (s390_contiguous_bitmask_vector_p): New function.
10313 (s390_bytemask_vector_p): New function.
10314 (s390_split_ok_p): Vector regs don't work either.
10315 (regclass_map): Add VEC_REGS.
10316 (s390_legitimate_constant_p): Handle vector constants.
10317 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10318 (legitimate_reload_vector_constant_p): New function.
10319 (s390_preferred_reload_class): Handle CONST_VECTOR.
10320 (s390_reload_symref_address): Likewise.
10321 (s390_secondary_reload): Vector memory instructions only support
10322 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10323 (s390_emit_ccraw_jump): New function.
10324 (s390_expand_vec_strlen): New function.
10325 (s390_expand_vec_compare): New function.
10326 (s390_expand_vcond): New function.
10327 (s390_expand_vec_init): New function.
10328 (s390_dwarf_frame_reg_mode): New function.
10329 (print_operand): Handle addresses with 'O' and 'R' constraints.
10330 (NR_C_MODES, constant_modes): Add vector modes.
10331 (s390_output_pool_entry): Handle vector constants.
10332 (s390_hard_regno_mode_ok): Handle vector registers.
10333 (s390_class_max_nregs): Likewise.
10334 (s390_cannot_change_mode_class): New function.
10335 (s390_invalid_arg_for_unprototyped_fn): New function.
10336 (s390_function_arg_vector): New function.
10337 (s390_function_arg_float): Remove size variable.
10338 (s390_pass_by_reference): Handle vector arguments.
10339 (s390_function_arg_advance): Likewise.
10340 (s390_function_arg): Likewise.
10341 (s390_return_in_memory): Vector values are returned in a VR if
10342 possible.
10343 (s390_function_and_libcall_value): Handle vector arguments.
10344 (s390_gimplify_va_arg): Likewise.
10345 (s390_call_saved_register_used): Consider the arguments named.
10346 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10347 targets.
10348 (s390_preferred_simd_mode): New function.
10349 (s390_support_vector_misalignment): New function.
10350 (s390_vector_alignment): New function.
10351 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10352 (TARGET_VECTOR_MODE_SUPPORTED_P)
10353 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10354 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10355 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10356 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10357 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10358 (FIRST_PSEUDO_REGISTER): Increase value.
10359 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10360 (VECTOR_REG_P): Define macros.
10361 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10362 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10363 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10364 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10365 Add vector registers.
10366 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10367 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10368 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10369 memory.
10370 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10371 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10372 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10373 (VR*_REGNUM): New constants.
10374 (ALL): New mode iterator.
10375 (INTALL): Remove mode iterator.
10376 Include vector.md.
10377 (movti): Implement TImode moves for VRs.
10378 Disable TImode splitter for VR targets.
10379 Implement splitting TImode GPR<->VR moves.
10380 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10381 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10382 reload<mode>_la_in, reload<mode>_la_out.
10383 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10384 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10385 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10386 (mov<mode> SF SD): Prefer lder, lde for loading.
10387 Add lrl and strl instructions.
10388 Add vector instructions.
10389 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10390 Call s390_expand_vec_strlen on z13.
10391 (*cc_to_int): Change predicate to nonimmediate_operand.
10392 (addti3): Rename to *addti3. New expander.
10393 (subti3): Rename to *subti3. New expander.
10394 * config/s390/vector.md: New file.
10395
10396 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10397
10398 * common/config/s390/s390-common.c (processor_flags_table): Add
10399 z13.
10400 * config.gcc: Add z13.
10401 * config/s390/s390-opts.h (enum processor_type): Add
10402 PROCESSOR_2964_Z13.
10403 * config/s390/s390.c (s390_adjust_priority): Check for
10404 PROCESSOR_2964_Z13.
10405 (s390_reorg): Likewise.
10406 (s390_sched_reorder): Likewise.
10407 (s390_sched_variable_issue): Likewise.
10408 (s390_loop_unroll_adjust): Likewise.
10409 (s390_option_override): Likewise. Default to -mvx when available.
10410 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10411 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10412 (TARGET_VX_ABI): Define macros.
10413 macros.
10414 (TARGET_DEFAULT): Add MASK_OPT_VX.
10415 * config/s390/s390.md ("cpu" attribute): Add z13.
10416 ("cpu_facility" attribute): Add vec.
10417 * config/s390/s390.opt (processor_type): Add z13.
10418 (mvx): New options.
10419 * doc/invoke.texi: Add z13 option for -march.
10420
10421 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10422
10423 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10424 mode check to make sure that only scalar integer values are
10425 accepted.
10426
10427 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10428
10429 * tree.c (verify_type_variant): Fix #undef.
10430 (gimple_canonical_types_compatible_p): Move here from lto.c
10431 (verify_type): Verify TYPE_CANONICAL compatibility.
10432 * tree.h (gimple_canonical_types_compatible_p): Declare.
10433
10434 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10435
10436 PR middle-end/66199
10437 * tree.h (OMP_TEAMS_COMBINED): Define.
10438 * gimplify.c (enum gimplify_omp_var_data): Add
10439 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10440 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10441 (omp_notice_variable): Accept both ORT_TEAMS
10442 and ORT_COMBINED_TEAMS. Don't recurse if
10443 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10444 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10445 GOVD_FIRSTPRIVATE.
10446 (omp_no_lastprivate): New function.
10447 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10448 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10449 notice_outer and set appropriate bits, otherwise make
10450 sure default(none) combined constructs won't complain.
10451 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10452 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10453 omp_no_lastprivate either remove the clause or turn it
10454 into OMP_CLAUSE_PRIVATE.
10455 (gimplify_omp_for): Fix up handling of implicit
10456 lastprivate or linear iterators.
10457 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10458 ORT_COMBINED_TEAMS.
10459 * omp-low.c (lower_omp_for_lastprivate): For combined
10460 for simd use fd.loop.n2 from the for rather than simd.
10461
10462 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10463
10464 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10465 instead of gen_rtx_raw_REG.
10466 (cris_expand_epilogue): Likewise.
10467 * config/microblaze/microblaze.c (microblaze_classify_address):
10468 Likewise.
10469 * config/sparc/sparc.md: Likewise.
10470
10471 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10472
10473 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10474 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10475 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10476 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10477 Use CASE_CONST_SCALAR_INT.
10478 (print_operand) <case 'M'>: Use mode_width_operand to check the
10479 value of the constant.
10480 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10481 * config/alpha/predicates.md (input_operand): Use general_operand
10482 instead of match_code as operand check.
10483 (symbolic_operand): Use match_code with subexpression digits.
10484 * config/alpha/constraints.md (Q): Ditto.
10485
10486 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10487
10488 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10489
10490 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10491
10492 * config/s390/s390.c (s390_secondary_reload): Fix check for
10493 load/store relative.
10494
10495 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10496
10497 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10498 alternative_mask to uint64_t.
10499
10500 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10501
10502 PR tree-optimization/66187
10503 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10504 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10505 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10506
10507 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10508
10509 * diagnostic.c (diagnostic_report_current_module): Strengthen
10510 local "new_map" from const line_map * to
10511 const line_map_ordinary *.
10512 * genmatch.c (error_cb): Likewise for local "map".
10513 (output_line_directive): Likewise for local "map".
10514 * input.c (expand_location_1): Likewise for local "map".
10515 Pass NULL rather than &map to
10516 linemap_unwind_to_first_non_reserved_loc, since the value is never
10517 read from there, and the value written back not read from here.
10518 (is_location_from_builtin_token): Strengthen local "map" from
10519 const line_map * to const line_map_ordinary *.
10520 (dump_location_info): Strengthen locals "map" from
10521 line_map *, one to const line_map_ordinary *, the other
10522 to const line_map_macro *.
10523 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10524 const line_map * to const line_map_macro *.
10525 (maybe_unwind_expanded_macro_loc): Add a call to
10526 linemap_check_macro when writing to the "map" field of the
10527 loc_map_pair.
10528 Introduce local const line_map_ordinary * "ord_map", using it in
10529 place of "map" in the part of the function where we know we have
10530 an ordinary map. Strengthen local "m" from const line_map * to
10531 const line_map_ordinary *.
10532
10533 2015-05-19 Nick Clifton <nickc@redhat.com>
10534
10535 PR target/66156
10536 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10537 separate source and destination registers.
10538
10539 2015-05-19 Richard Biener <rguenther@suse.de>
10540
10541 PR tree-optimization/66165
10542 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10543 for no load permutation.
10544
10545 PR tree-optimization/66185
10546 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10547 when building the SLP node from scalars.
10548
10549 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10550 Tristan Gingold <gingold@adacore.com>
10551
10552 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10553 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10554 (expand_stack_restore): Call record_new_stack_level.
10555 (expand_stack_save): Do not call do_pending_stack_adjust.
10556 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10557 * calls.c (expand_call): Call record_new_stack_level for alloca.
10558 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10559 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10560 (update_sjlj_context): New global function.
10561 * except.h (update_sjlj_context): Declare.
10562 * explow.c (record_new_stack_level): New global function.
10563 (allocate_dynamic_stack_space): Call record_new_stack_level.
10564 * explow.h (record_new_stack_level): Declare.
10565 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10566 * cfgrtl.c (duplicate_insn_chain): Likewise.
10567
10568 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10569
10570 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10571 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10572 STACK_GROWS_DOWNWARD as normal if.
10573 (expand_call): Likewise.
10574
10575 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10576
10577 PR target/54236
10578 * config/sh/sh.md (*round_int_even): New insn_and_split and
10579 accompanying new unnamed split.
10580
10581 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10582
10583 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10584 (bitmap_clear_range): Likewise.
10585 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10586 bitmap_set_range unconditionally.
10587 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10588 * df-scan.c (df_mark_reg): Likewise.
10589 * haifa-sched.c (setup_ref_regs): Likewise.
10590 * sched-rgn.c (update_live_1): Likewise.
10591
10592 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10593
10594 * regs.h (END_HARD_REGNO): Delete.
10595 (END_REGNO): Move to...
10596 * rtl.h: ...here.
10597 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10598 * caller-save.c (mark_set_regs): Likewise.
10599 * combine.c (move_deaths, distribute_notes): Likewise.
10600 * cse.c (invalidate, invalidate_for_call): Likewise.
10601 * df-scan.c (df_ref_record): Likewise.
10602 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10603 (record_last_reg_set_info): Likewise.
10604 * reg-stack.c (convert_regs_exit): Likewise.
10605 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10606 * resource.c (update_live_status): Likewise.
10607 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10608
10609 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10610
10611 * rtl.h (reg_info): Add an nregs field.
10612 (REG_NREGS): Use it.
10613 (SET_REGNO_RAW): Delete.
10614 (set_regno_raw): New function.
10615 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10616 (END_REGNO): Redefine in terms of REG_NREGS.
10617 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10618 SET_REGNO_RAW.
10619 * emit-rtl.c (set_mode_and_regno): Likewise.
10620 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10621 instead of SET_REGNO_RAW.
10622
10623 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10624
10625 * rtl.h (PUT_MODE_RAW): New macro.
10626 (PUT_REG_NOTE_KIND): Use it.
10627 (set_mode_and_regno): Declare.
10628 (gen_raw_REG): Change regno to "unsigned int".
10629 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10630 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10631 use set_mode_and_regno to change the mode of registers.
10632 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10633 * emit-rtl.c (set_mode_and_regno): New function.
10634 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10635 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10636 * expr.c (init_expr_target): Likewise.
10637 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10638 * postreload.c (reload_cse_simplify_operands): Likewise.
10639
10640 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10641
10642 * caller-save.c (init_caller_save): Use word_mode and
10643 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10644 * expr.c (init_expr_target): Likewise.
10645 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10646 * postreload.c (reload_cse_regs_1): Likewise.
10647
10648 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10649
10650 * rtl.def (REG): Change format to "r".
10651 * rtl.h (rtunion): Remove rt_reg.
10652 (reg_info): New structure.
10653 (rtx_def): Add reg field to main union.
10654 (X0REGATTR): Delete.
10655 (REG_CHECK): New macro.
10656 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10657 * rtl.c (rtx_format): Document "r".
10658 (rtx_code_size): Handle REG specially.
10659 * gengenrtl.c (special_format): Return true for formats
10660 that include 'r'.
10661 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10662 Deal with REG_ATTRS after the field loop.
10663 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10664 * expmed.c (init_expmed): Call gen_raw_REG instead of
10665 gen_rtx_raw_REG.
10666 * expr.c (init_expr_target): Likewise.
10667 * regcprop.c (maybe_mode_change): Likewise.
10668 * varasm.c (make_decl_rtl): Likewise.
10669 * final.c (leaf_renumber_regs_insn): Return early after
10670 handling REGs.
10671 * genemit.c (gen_exp): Handle 'r' fields.
10672 * genpeep.c (match_rtx): Likewise.
10673 * gensupport.c (subst_pattern_match): Likewise.
10674 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10675 (alter_constraints, subst_dup): Likewise.
10676 * read-rtl.c (read_rtx_code): Likewise.
10677 * print-rtl.c (print_rtx): Likewise.
10678 * genrecog.c (find_operand, find_matching_operand): Likewise.
10679 (validate_pattern, match_pattern_2): Likewise.
10680 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10681 (rtx_test::regno_field): New function.
10682 (operator ==, safe_to_hoist_p, transition_parameter_type)
10683 (parameter_type_string, print_parameter_value)
10684 (print_nonbool_test, print_test): Handle new enum values.
10685 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10686 * lra-constraints.c (operands_match_p): Likewise.
10687
10688 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10689
10690 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10691 Change type of new_regno to unsigned int.
10692 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10693 new_regno to unsigned int.
10694 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10695 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10696 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10697 (SET_REGNO_RAW): Add space after ",".
10698
10699 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * rtl.h (REG_NREGS): New macro
10702 * alias.c (record_set): Use it.
10703 * cfgcleanup.c (mark_effect): Likewise.
10704 * combine.c (likely_spilled_retval_1): Likewise.
10705 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10706 (move_deaths, distribute_notes): Likewise.
10707 * cselib.c (cselib_record_set): Likewise.
10708 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10709 * df-scan.c (df_mark_reg): Likewise.
10710 * dse.c (look_for_hardregs): Likewise.
10711 * dwarf2out.c (reg_loc_descriptor): Likewise.
10712 (multiple_reg_loc_descriptor): Likewise.
10713 * expr.c (write_complex_part, read_complex_part): Likewise.
10714 (emit_move_complex): Likewise.
10715 * haifa-sched.c (setup_ref_regs): Likewise.
10716 * ira-lives.c (mark_hard_reg_live): Likewise.
10717 * lra.c (lra_set_insn_recog_data): Likewise.
10718 * mode-switching.c (create_pre_exit): Likewise.
10719 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10720 (reload_combine_recognize_pattern): Likewise.
10721 (reload_combine_note_use, move2add_record_mode): Likewise.
10722 (reload_cse_move2add): Likewise.
10723 * reg-stack.c (subst_stack_regs_pat): Likewise.
10724 * regcprop.c (kill_value, copy_value): Likewise.
10725 (copyprop_hardreg_forward_1): Likewise.
10726 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10727 (build_def_use): Likewise.
10728 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10729 (deps_analyze_insn): Likewise.
10730 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10731 * sel-sched.c (count_occurrences_equiv): Likewise.
10732 * valtrack.c (dead_debug_insert_temp): Likewise.
10733
10734 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10735
10736 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10737 * dse.c (note_add_store): Likewise.
10738 * ira-lives.c (mark_hard_reg_dead): Likewise.
10739 * loop-invariant.c (mark_reg_store): Likewise.
10740 (mark_reg_death): Likewise.
10741 * postreload.c (reload_combine): Likewise.
10742 (reload_combine_note_store): Likewise.
10743 (reload_combine_note_use): Likewise.
10744 * recog.c (peep2_reg_dead_p): Likewise.
10745
10746 2015-05-19 Alan Modra <amodra@gmail.com>
10747
10748 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10749 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10750 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10751 unused predicates.
10752 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10753 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10754 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10755 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10756
10757 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10758
10759 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10760 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10761 (join2_loadhi): Likewise.
10762 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10763 load-load and store-stores.
10764 * config/mips/mips.opt (mload-store-pairs): New option.
10765 (TARGET_LOAD_STORE_PAIRS): New macro.
10766 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10767 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10768 * config/mips/mips.c (mips_load_store_bonding_p): New function.
10769
10770 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
10771
10772 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10773 explicit swaps.
10774 * dojump.c (do_compare_rtx_and_jump): Likewise.
10775 * expmed.c (emit_store_flag_1): Likewise.
10776 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10777 * final.c (sprint_ul): Use std::reverse for reversing a string.
10778 * fold-const.c (extract_muldiv_1): Use std::swap.
10779 * genmodes.c (emit_mode_int_n): Likewise.
10780 * ifcvt.c (dead_or_predicable): Likewise.
10781 * ira-build.c (ira_merge_live_ranges): Likewise.
10782 (swap_allocno_copy_ends_if_necessary): Likewise.
10783 * ira.c (ira_setup_alts): Likewise.
10784 * loop-iv.c (iv_analyze_expr): Likewise.
10785 (implies_p): Likewise.
10786 (canon_condition): Likewise.
10787 * lra-constraints.c (swap_operands): Likewise.
10788 * lra-lives.c (lra_merge_live_ranges): Likewise.
10789 * omega.c (swap): Remove.
10790 (bswap): Remove.
10791 (omega_unprotect_1): Use std::swap.
10792 (omega_solve_geq): Likewise.
10793 * optabs.c (expand_binop_directly): Likewise.
10794 (expand_binop): Likewise.
10795 (emit_conditional_move): Likewise.
10796 (emit_conditional_add): Likewise.
10797 * postreload.c (reload_cse_simplify_operands): Likewise.
10798 * reg-stack.c (emit_swap_insn): Likewise.
10799 (swap_to_top): Likewise.
10800 (compare_for_stack_reg): Likewise.
10801 (subst_asm_stack_regs): Likewise.
10802 * reload.c (find_reloads): Likewise.
10803 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10804 * sel-sched.c (invoke_reorder_hooks): Likewise.
10805 (create_block_for_bookkeeping): Likewise.
10806 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10807 (lambda_matrix_right_hermite): Use std::swap.
10808 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10809 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10810 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10811 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10812 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10813 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10814 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10815 * tree-vrp.c (compare_ranges): Likewise.
10816 * var-tracking.c (add_with_sets): Likewise.
10817 (vt_find_locations): Likewise.
10818
10819 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
10820
10821 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10822 pie executables.
10823 (FBSD_ENDFILE_SPEC): Likewise.
10824 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10825 config/freebsd-spec.h.
10826 (ENDFILE_SPEC): Likewise.
10827
10828 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
10829 Richard Henderson <rth@redhat.com>
10830
10831 PR target/57032
10832 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10833 Check for a memory location that is not a reference (using an AND)
10834 to an unaligned location here.
10835 * config/alpha/predicates.md (normal_memory_operand): Remove.
10836
10837 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
10838
10839 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10840 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10841
10842 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
10843
10844 * config/mips/mips.c (micromips_globals): New variable.
10845 (mips_set_compression_mode): Save and reinitialize target-dependent
10846 state for microMIPS.
10847
10848 2015-05-18 Martin Liska <mliska@suse.cz>
10849
10850 * dbgcnt.def: Add new counter.
10851 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10852
10853 2015-05-18 Martin Liska <mliska@suse.cz>
10854
10855 * dbgcnt.def: Sort counters.
10856 * opts.c (common_handle_option): Do not compile if
10857 -fdbg-cnt-list is enabled.
10858
10859 2015-05-18 Tom de Vries <tom@codesourcery.com>
10860
10861 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10862 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
10863 address operator to va_list operand.
10864 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10865 unconditionally.
10866 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10867 operand.
10868 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10869 * config/s390/s390.c (s390_gimplify_va_arg): Same.
10870 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10871
10872 2015-05-18 Tom de Vries <tom@codesourcery.com>
10873
10874 * tree-ssa-tail-merge.c: Fix whitespace.
10875
10876 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
10877
10878 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10879 cortex-a17, and cortex-a17.cortex-a7.
10880
10881 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
10882
10883 PR target/54236
10884 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10885
10886 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
10887
10888 PR target/66174
10889 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10890 QImode inner modes for TARGET_AVX512BW. Force mask operand
10891 to a register for AVX512F modes.
10892
10893 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10894
10895 * toplev.c (emit_debug_global_declarations): Do not output debug info
10896 when doing slim LTO objects.
10897
10898 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10899
10900 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10901 odr_types_equivalent_p): Declare.
10902 (odr_type_p): Use gcc_checking_assert.
10903 (type_in_anonymous_namespace_p) Declare.
10904 (type_with_linkage_p): Declare.
10905 * common.opt (Wlto-type-mismatch): New warning.
10906 * ipa-devirt.c (compound_type_base): New function.
10907 (odr_or_derived_type_p): New function.
10908 (odr_types_equivalent_p): New function.
10909 (add_type_duplicate): Simplify.
10910 (type_with_linkage_p): Add hack to prevent false positives on C types
10911 (type_in_anonymous_namespace_p): Likewise.
10912 * tree.c (need_assembler_name_p): Use type_with_linkage.
10913 * tree.h (type_in_anonymous_namespace_p): Remove.
10914 * doc/invoke.texi (-Wlto-type-mismatch): Document
10915
10916 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10917
10918 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10919 (verify_type): Verify STRING_FLAG.
10920
10921 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10922
10923 PR fortran/44054
10924 * tree-pretty-print.c (percent_K_format): Replace locus pointer
10925 with accessor function.
10926 * tree-diagnostic.c (diagnostic_report_current_function): Use
10927 diagnostic_location function.
10928 (maybe_unwind_expanded_macro_loc): Likewise.
10929 (virt_loc_aware_diagnostic_finalizer): Likewise.
10930 (default_tree_printer): Replace locus pointer with accessor function.
10931 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10932 (diagnostic_set_info_translated): Initialize second location.
10933 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10934 (diagnostic_show_locus): Handle two locations. Call
10935 diagnostic_print_caret_line.
10936 (diagnostic_print_caret_line): New.
10937 (default_diagnostic_starter): Use diagnostic_location function.
10938 (diagnostic_report_diagnostic): Use diagnostic_location function.
10939 (verbatim): Do not set text.locus.
10940 * diagnostic.h (struct diagnostic_info): Remove location field.
10941 (struct diagnostic_context): Make caret_chars an array of two.
10942 (diagnostic_location): New inline.
10943 (diagnostic_expand_location): Handle two locations.
10944 (diagnostic_same_line): New inline.
10945 (diagnostic_print_caret_line): Declare.
10946 (CARET_LINE_MARGIN): New constant.
10947 * pretty-print.c (pp_printf): Do not set text.locus.
10948 (pp_verbatim): Do not set text.locus.
10949 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10950 (struct text_info): Replace locus pointer with locations
10951 array. Add accessor functions.
10952
10953 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
10954 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10955
10956 PR target/65768
10957 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10958 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10959 large constants in register instead of splitting them.
10960
10961 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
10962
10963 PR target/66140
10964 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10965 replacements in memory addresses.
10966 (get_unaligned_address): Ditto.
10967
10968 2015-05-16 James Bowman <james.bowman@ftdichip.com>
10969
10970 * config/ft32/*: New files for FT32 port.
10971 * doc/install.texi: Add FT32 information.
10972 * doc/invoke.texi: Add FT32 information.
10973 * doc/md.texi: Add FT32 information.
10974 * doc/contrib.texi: Self added.
10975
10976 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
10977
10978 PR tree-optimization/64454
10979 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
10980 (-1 - A -> ~A): Remove unnecessary condition.
10981
10982 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10983
10984 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
10985 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10986 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
10987
10988 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
10989
10990 * ipa-chkp.h (chkp_wrap_function): New.
10991 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
10992 (chkp_wrap_function_name): New.
10993 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
10994 to get wrapper name.
10995 * lto-cgraph.c: Include ipa-chkp.h.
10996 (input_cgraph_1): Avoid alias chain for wrappers.
10997
10998 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10999
11000 PR middle-end/66134
11001 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11002 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11003
11004 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11005
11006 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11007 (AARCH64_FL_SLOWMUL): Delete.
11008 (AARCH64_FL_CRC): Redefine to 1<<3.
11009 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11010
11011 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11012
11013 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11014 casting.
11015
11016 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11017
11018 * config/alpha/alpha.md (extendqidi2): Use general_operand
11019 instead of some_operand for operand[1] predicate.
11020 (extendhidi2): Ditto.
11021 (cbranchdi4): Use general_operand instead of some_operand
11022 for operand[1] and operands[2] predicates.
11023 (cstoredi4): Ditto.
11024 * config/alpha/predicates.md (some_operand): Remove unused predicate.
11025 (some_ni_operand): Ditto.
11026
11027 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11028
11029 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11030 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
11031 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11032 low part of the constant using alpha_emit_set_const_1.
11033 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11034
11035 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
11036
11037 * varasm.c (output_constant_pool_1): Pass down alignment from
11038 constant pool entry's descriptor to output_constant_pool_2.
11039 (output_object_block): Add comment prior to call to
11040 output_constant_pool_1.
11041
11042 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
11043
11044 PR rtl-optimization/65862
11045 * target.def (ira_change_pseudo_allocno_class): New hook.
11046 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11047 value of the hook.
11048 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11049 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11050 hook.
11051 * ira-costs.c (find_costs_and_classes): Call the hook and change
11052 classes when it is necessary.
11053 * doc/tm.texi: Update.
11054
11055 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
11056
11057 * config/i386/i386.md (sibcall_memory): Check that register with
11058 callee address is not also used as one of the arguments, instead
11059 of checking that it is not live after the sibcall.
11060 (sibcall_pop_memory): Ditto.
11061 (sibcall_value_memory): Ditto.
11062 (sibcall_value_pop_memory): Ditto.
11063
11064 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
11065
11066 * generic-match-head.c (types_match): Handle non-types.
11067 * gimple-match-head.c (types_match): Likewise.
11068 * match.pd: Remove unnecessary TREE_TYPE for types_match.
11069
11070 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
11071
11072 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11073 (csneg3<mode>_insn): Enable expansion of pattern.
11074
11075 2015-05-14 Nick Clifton <nickc@redhat.com>
11076
11077 * config/rl78/rl78.c (rl78_select_section): Select the correct
11078 default section based upon the category of the decl.
11079
11080 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11081
11082 PR rtl-optimization/30967
11083 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11084 destination mode for the cost of scc patterns.
11085
11086 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11087
11088 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11089 using SWIM248 mode iterator.
11090 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11091 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
11092 for operand[2] constraint.
11093 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11094
11095 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11096
11097 PR middle-end/66133
11098 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11099 make sure it is never noreturn, even when the task body does not
11100 return.
11101 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11102 right before GIMPLE_OMP_RETURN.
11103 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11104 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
11105 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11106
11107 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11108
11109 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11110 * tree-ssa-math-opts.c: Include params.h
11111 (pow_synth_sqrt_info): New struct.
11112 (representable_as_half_series_p): New function.
11113 (get_fn_chain): Likewise.
11114 (print_nested_fn): Likewise.
11115 (dump_fractional_sqrt_sequence): Likewise.
11116 (dump_integer_part): Likewise.
11117 (expand_pow_as_sqrts): Likewise.
11118 (gimple_expand_builtin_pow): Use above to attempt to expand
11119 pow as series of square roots. Removed now unused variables.
11120
11121 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11122
11123 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11124 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11125 Remove *p0 and *p1 arguments. Rewrite function.
11126 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11127 (alpha_split_const_mov): Update calls to alpha_extract_integer and
11128 alpha_emit_set_long_const.
11129 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11130 (alpha_output_mi_thunk_osf): Ditto.
11131 * config/alpha/alpha.md (movti): Do not check operands[1]
11132 for CONST_DOUBLE.
11133
11134 2015-05-13 Richard Biener <rguenther@suse.de>
11135
11136 PR tree-optimization/66129
11137 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11138 commutative.
11139 (vect_schedule_slp_instance): Fix typo.
11140
11141 2015-05-13 David Malcolm <dmalcolm@redhat.com>
11142
11143 * common.opt (fdump-internal-locations): New option.
11144 * input.c: Include diagnostic-core.h.
11145 (get_end_location): New function.
11146 (write_digit): New function.
11147 (write_digit_row): New function.
11148 (dump_location_range): New function.
11149 (dump_labelled_location_range): New function.
11150 (dump_location_info): New function.
11151 * input.h (dump_location_info): New prototype.
11152 * toplev.c (compile_file): Handle flag_dump_locations.
11153
11154 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
11155
11156 * gimple-expr.h (is_gimple_constant): Reorder.
11157 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11158
11159 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11160
11161 * combine.c (simplify_set): When generating a CC set, if the
11162 source already is in the correct mode, do not wrap it in a
11163 compare. Simplify the rest of that code.
11164
11165 2015-05-13 Richard Biener <rguenther@suse.de>
11166
11167 PR tree-optimization/66123
11168 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11169 a taken edge.
11170
11171 2015-05-13 Richard Biener <rguenther@suse.de>
11172
11173 PR middle-end/66110
11174 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11175 specially.
11176 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11177
11178 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11179
11180 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11181 * aclocal.m4: Regenerated with automake-1.11.6.
11182
11183 2015-05-13 Tom de Vries <tom@codesourcery.com>
11184
11185 PR tree-optimization/66010
11186 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11187 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11188 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
11189 and rval based on do_deref.
11190
11191 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11192
11193 PR target/65103
11194 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11195 link time constants into adress expressions and therefore set
11196 their cost to 0.
11197
11198 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11199
11200 PR target/66112
11201 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11202 Use SWI248 iterator instead of SWI.
11203 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
11204 Use eq_attr "alternative" "0" instead of match_test in
11205 length_immediate attribute computation.
11206 (*mulvhi4, *mulvhi4_1): New define_insns.
11207
11208 PR target/66112
11209 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11210 SIGNED to get precision of non-negative value.
11211
11212 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11213
11214 PR target/66048
11215 * function.c (diddle_return_value_1): Process bounds first.
11216 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11217 register.
11218
11219 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11220
11221 PR rtl-optimization/64616
11222 * loop-invariant.c (can_move_invariant_reg): New.
11223 (move_invariant_reg): Call above new function to decide whether
11224 instruction can just be moved, skipping creation of temporary
11225 register.
11226
11227 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11228
11229 PR target/pr66047.c
11230 * i386.c (ix86_function_sseregparm): Only return -1 if local function
11231 with implied regparm is called from -mno-sse function.
11232 (init_cumulative_args): Output error if ix86_function_sseregparm
11233 return -1 and SSE register would be needed.
11234 (function_arg_advance_32): Likewise.
11235 (function_arg_32): Likewise.
11236 * i386.h (ix86_args): Add decl field.
11237
11238 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11239
11240 PR ipa/65873
11241 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11242 inlines across optimization boundary.
11243
11244 2015-05-12 Jason Merrill <jason@redhat.com>
11245
11246 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11247 string literal and macro name.
11248
11249 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11250
11251 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11252 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11253 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11254
11255 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11256
11257 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11258 (-Wmisleading-indentation): New option.
11259 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11260
11261 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11262
11263 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11264 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11265 (alpha_extract_integer): Ditto.
11266 (alpha_legitimate_constant_p): Ditto.
11267 (alpha_split_tmode_pair): Ditto.
11268 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11269 (alpha_expand_mov): Ditto.
11270 (print_operand): Remove handling of 'H' modifier.
11271 <case 'm'>: Remove CONST_DOUBLE handling.
11272 (summarize_insn): Handle CONST_WIDE_INT.
11273 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11274 (anddi3): Ditto.
11275 (movti): Handle CONST_WIDE_INT.
11276 * config/alpha/constraints.md ('H'): Remove constraint definition.
11277 ('G'): Do not match MODE_FLOAT class.
11278 * config/alpha/predicates.md (const0_operand): Also match
11279 const_wide_int.
11280 (non_add_const_operand): Ditto.
11281 (non_zero_const_operand): Ditto.
11282 (some_operand): Ditto.
11283 (input_operand): Ditto. Handle CONST_WIDE_INT.
11284 (and_operand): Do not match const_double.
11285 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11286
11287 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11288
11289 PR target/65697
11290 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11291 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11292 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11293 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11294 is_mm_seq_cst, is_mm_sync): New accessor functions.
11295 * builtins.c (expand_builtin_sync_operation,
11296 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11297 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11298 (get_memmodel, expand_builtin_atomic_compare_exchange,
11299 expand_builtin_atomic_load, expand_builtin_atomic_store,
11300 expand_builtin_atomic_clear): Use new accessor routines.
11301 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11302 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11303 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11304 MEMMODEL_SYNC_ACQUIRE.
11305 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11306 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11307 expand_atomic_store): Use new accessors.
11308 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11309 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11310 final enum to use MEMMODEL_LAST.
11311 * c-family/c-common.c: Use new accessor for memmodel_base.
11312 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11313 accessors.
11314 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11315 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11316 mem_thread_fence, *dmb): Likewise.
11317 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11318 alpha_split_compare_and_swap_12): Likewise.
11319 * config/arm/arm.c (arm_expand_compare_and_swap,
11320 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11321 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11322 atomic_loaddi): Likewise.
11323 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11324 Likewise.
11325 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11326 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11327 use new accessors.
11328 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11329 atomic_store<mode>, atomic_compare_and_swap<mode>,
11330 atomic_exchange<mode>): Use new accessors.
11331 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11332 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11333 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11334 rs6000_post_atomic_barrier): Add new cases.
11335 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11336 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11337 (atomic_load<mode>): Add new cases and use new accessors.
11338 (store_quadpti): Add new cases.
11339 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11340 accessors.
11341 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11342 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11343 model, not 8.
11344
11345 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11346
11347 * ipa-devirt.c (type_with_linkage_p): New function.
11348 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11349 type has linkage.
11350 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11351 (can_be_name_hashed_p): Simplify.
11352 (hash_odr_name): Check that type has linkage before checking if it is
11353 anonymous.
11354 (types_same_for_odr): Likewise.
11355 (odr_name_hasher::equal): Likewise.
11356 (odr_subtypes_equivalent_p): Likewise.
11357 (warn_types_mismatch): Likewise.
11358 (get_odr_type): Likewise.
11359 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11360 * ipa-utils.h (odr_type_p): Move offline.
11361 * tree.c (need_assembler_name_p): Fix handling of types
11362 without linkages.
11363 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11364
11365 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11366
11367 * timevar.c (timevar_enable): Delete in favor of...
11368 (g_timer): New global.
11369 (struct timevar_def): Move to timevar.h inside class timer.
11370 (struct timevar_stack_def): Likewise.
11371 (timevars): Delete global in favor of field "m_timevars" within
11372 class timer in timevar.h
11373 (stack): Likewise, in favor of field "m_stack".
11374 (unused_stack_instances): Likewise, in favor of field
11375 "m_unused_stack_instances".
11376 (start_time): Likewise, in favor of field "m_start_time".
11377 (get_time): Eliminate check for timevar_enable.
11378 (timer::timer): New function, built from part of timevar_init.
11379 (timevar_init): Rewrite idempotency test from using
11380 "timevar_enable" bool to using dynamic allocation of "g_timer".
11381 Move rest of implementation into timer's constructor.
11382 (timevar_push_1): Rename to...
11383 (timer::push): ...this, adding "m_" prefixes to variables that
11384 are now fields of timer.
11385 (timevar_pop_1): Likewise, rename to...
11386 (timer::pop): ...this, and add "m_" prefixes.
11387 (timevar_start): Replace test for "timevar_enable" with one for
11388 "g_timer", and move bulk of implementation to...
11389 (timer::start): ...here, adding "m_" prefixes.
11390 (timevar_stop): Likewise, from here...
11391 (timer::stop): ...to here.
11392 (timevar_cond_start): Likewise, from here...
11393 (timer::cond_start): ...to here.
11394 (timevar_cond_stop): Likewise, from here...
11395 (timer::cond_stop): ...to here.
11396 (validate_phases): Rename to...
11397 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11398 locals "total" and "tv" const.
11399 (timevar_print): Rename to...
11400 (timer::print): ...this, and add "m_" prefixes. Make locals
11401 "total" and "tv" const. Eliminate test for timevar_enable.
11402 * timevar.h (timevar_enable): Eliminate.
11403 (g_timer): New declaration.
11404 (timevar_push_1): Eliminate.
11405 (timevar_pop_1): Eliminate.
11406 (timevar_print): Eliminate.
11407 (class timer): New class.
11408 (timevar_push): Rewrite to use g_timer.
11409 (timevar_pop): Likewise.
11410 * toplev.c (toplev::~toplev): Likewise.
11411
11412 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11413
11414 * arm-protos.h (arm_sched_autopref): Delete.
11415 (tune_params): Re-organize, use enums for flag values.
11416 (FUSE_OPS): New macro.
11417 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11418 (ARM_PREFETCH_BENEFICIAL): Likewise.
11419 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11420 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11421 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11422 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11423 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11424 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11425 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11426 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11427 format.
11428 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11429 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11430 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11431
11432 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11433
11434 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11435 "break".
11436
11437 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11438 Sandra Loosemore <sandra@codesourcery.com>
11439
11440 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11441 value.
11442 (REG_CLASS_NAMES): Add "IJMP_REGS".
11443 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11444 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11445 use new "c" register constraint.
11446 * config/nios2/constraint.md (c): New register constraint
11447 corresponding to IJMP_REGS.
11448
11449 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11450
11451 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11452 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11453 define_splits): Delete, revamp, transmogrify into ...
11454 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11455 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11456 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11457 New.
11458
11459 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11460
11461 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11462 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11463
11464 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11465
11466 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11467 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11468 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11469 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11470 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11471 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11472 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11473 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11474 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11475 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11476 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11477 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11478 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11479 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11480 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11481 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11482 and 30 corresponding splitters): Delete.
11483
11484 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11485
11486 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11487 zero_extract.
11488
11489 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11490
11491 * combine.c (recog_for_combine_1): New function, factored out
11492 from recog_for_combine.
11493 (change_zero_ext): New function.
11494 (recog_for_combine): If recog fails, try again with the pattern
11495 modified by change_zero_ext; if that still fails, restore the
11496 pattern.
11497
11498 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11499
11500 * combine.c (get_undo_marker): New function.
11501 (undo_to_marker): New function, largely factored out from ...
11502 (undo_all): ... this. Adjust.
11503
11504 2015-05-12 Richard Biener <rguenther@suse.de>
11505
11506 PR tree-optimization/66101
11507 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11508 fixup if we turn a loop exit edge to a fallthru edge.
11509
11510 2015-05-12 Richard Biener <rguenther@suse.de>
11511
11512 PR tree-optimization/37021
11513 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11514 (SLP_TREE_TWO_OPERATORS): New define.
11515 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11516 SLP_TREE_TWO_OPERATORS.
11517 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11518 SLP node.
11519 (vect_build_slp_tree): Adjust.
11520 (vect_analyze_slp_cost_1): Likewise.
11521 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11522 emitting two vector stmts and mixing the results.
11523
11524 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11525
11526 * call.c (print_z_candidates): Remove dead code.
11527
11528 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11529
11530 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11531 and zEC12_simple_fp.
11532 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11533 to 1.
11534
11535 2015-05-12 Tom de Vries <tom@codesourcery.com>
11536
11537 PR tree-optimization/66010
11538 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11539 ifn_va_arg.
11540 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11541 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11542 va_lists are passed, and remove corresponding handling.
11543 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11544 do_deref argument to ifn_va_arg.
11545 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11546 ifn_va_arg.
11547
11548 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11549
11550 PR target/65955
11551 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11552 REG before taking its REGNO.
11553
11554 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11555
11556 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11557 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11558 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11559 present to get more accurate information about the number of sign bit
11560 copies and non zero bits.
11561
11562 2015-05-12 Richard Biener <rguenther@suse.de>
11563
11564 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11565 do not allow unrolling.
11566
11567 2015-05-11 Richard Henderson <rth@redhat.com>
11568
11569 * config/i386/i386-modes.def (CCP): New.
11570 * config/i386/i386.c (put_condition_code): Handle it.
11571 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11572
11573 2015-05-11 Richard Henderson <rth@redhat.com>
11574
11575 * target.def (md_asm_clobbers): Replace with...
11576 (md_asm_adjust): this.
11577 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11578 (TARGET_MD_ASM_ADJUST): New.
11579 * tm.texi: Rebuild.
11580 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11581 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11582 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11583
11584 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11585 constraints instead of lists of outputs and inputs.
11586 (expand_asm_stmt): Save and restore input_location around the
11587 body of the function. Move asm data into vectors instead of
11588 building tree lists. Generate cleanup sequences as needed,
11589 rather than waiting til the end. Use new md_asm_adjust hook.
11590
11591 * config/vxworks.c: Include vec.h before target.h.
11592 * gimple.c: Likewise.
11593 * incpath.c: Likewise.
11594 * mode-switching.c: Likewise.
11595
11596 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11597 (cris_md_asm_adjust): this.
11598 (TARGET_MD_ASM_CLOBBERS): Remove.
11599 (TARGET_MD_ASM_ADJUST): New.
11600 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11601 (ix86_md_asm_adjust): this.
11602 (TARGET_MD_ASM_CLOBBERS): Remove.
11603 (TARGET_MD_ASM_ADJUST): New.
11604 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11605 (mn10300_md_asm_adjust): this.
11606 (TARGET_MD_ASM_CLOBBERS): Remove.
11607 (TARGET_MD_ASM_ADJUST): New.
11608 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11609 (rs6000_md_asm_adjust): this.
11610 (TARGET_MD_ASM_CLOBBERS): Remove.
11611 (TARGET_MD_ASM_ADJUST): New.
11612 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11613 (visium_md_asm_adjust): this.
11614 (TARGET_MD_ASM_CLOBBERS): Remove.
11615 (TARGET_MD_ASM_ADJUST): New.
11616
11617 2015-05-11 Richard Henderson <rth@redhat.com>
11618
11619 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11620 if noutputs is zero.
11621 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11622
11623 * cfgexpand.c (expand_asm_operands): Merge into...
11624 (expand_asm_stmt): ... here.
11625
11626 * cfgexpand.c (expand_asm_operands): Don't call
11627 resolve_asm_operand_names.
11628 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11629
11630 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11631
11632 * dwarf2out.c (gen_member_die): Sanity check that we access
11633 TYPE_MAIN_VARIANT for TYPE_METHODS.
11634 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11635 checking TYPE_METHODS.
11636 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11637 if non-null.
11638 (build_distinct_type_copy): Clear TYPE_METHODS.
11639 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11640 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11641 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11642
11643 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11644
11645 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11646 (emit_pattern_before_setloc): Likewise.
11647
11648 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11649
11650 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11651 for define_peephole2s.
11652 (get_peephole2_pattern): New function.
11653 (main): Use it. Call validate_pattern.
11654
11655 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11656
11657 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11658 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11659 (Last callee saved reg is different for AVR_TINY architecture)
11660
11661 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11662
11663 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11664 when looking for memory references.
11665
11666 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11667
11668 PR target/65753
11669 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11670 via function pointers.
11671
11672 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11673
11674 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11675 indirect call by forcing address into a pseudo with -fno-plt.
11676 * common.opt (flag_plt): New option.
11677 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11678 ([-fno-plt]): Document.
11679
11680 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11681
11682 PR bootstrap/66105
11683 * config/rs6000/option-defaults.h: Add space between string literal
11684 and macro name.
11685
11686 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11687
11688 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11689 accross ARM targets.
11690
11691 2015-05-11 Christian Bruel <christian.bruel@st.com>
11692
11693 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11694 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11695
11696 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11697
11698 PR rtl-optimization/66076
11699 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11700 Don't grow the heap array if it is already big enough from a
11701 previous iteration.
11702
11703 2015-05-11 Christian Bruel <christian.bruel@st.com>
11704
11705 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11706 (is_called_in_ARM_mode): Remove.
11707 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11708 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11709 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11710 arm_declare_function_name.
11711
11712 2015-05-11 Christian Bruel <christian.bruel@st.com>
11713
11714 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11715 (arm_option_params_internal); New function.
11716 (arm_option_check_internal): New function.
11717 (arm_option_override_internal): New function.
11718 (thumb_code, thumb1_code): Remove.
11719 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11720 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11721 (thumb_code, thumb1_code): Remove.
11722 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11723
11724 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11725
11726 * config/alpha/alpha.c (alpha_emit_set_const_1)
11727 (alpha_emit_set_long_const, alpha_extract_integer)
11728 (alpha_legitimate_constant_p, alpha_split_const_mov)
11729 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11730 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11731 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11732 HOST_WIDE_INT_1U.
11733 * config/alpha/predicates.md (mode_mask_operand): Do not match
11734 const_double RTX.
11735 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11736 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11737 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11738 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11739 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11740
11741 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11742
11743 PR target/65780
11744 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11745 default_binds_local_p_2.
11746 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11747 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11748
11749 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11750
11751 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11752
11753 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11754
11755 Patch by Richard Biener
11756 * coverage.c (coverage_obj_init): Delay building of type variant
11757 until the type is finished.
11758
11759 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11760
11761 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11762 mismatch between C and C++ type; compoare correctly ARG_TYPES
11763 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11764 (odr_types_equivalent_p): Fix wording of warning about attributes;
11765 it is OK to match prototype and non-prototype.
11766
11767 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11768
11769 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11770 TYPE_ARG_TYPES list.
11771 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11772 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11773
11774 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11775
11776 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11777 * tree.h (is_lang_specific): Constify.
11778
11779 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
11780
11781 PR tree-optimization/64454
11782 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11783 Rewrite.
11784
11785 2015-05-08 Jason Merrill <jason@redhat.com>
11786
11787 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11788 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11789 config/darwin.h, config/darwin9.h, config/elfos.h,
11790 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11791 config/microblaze/microblaze.h, config/mips/mips.h,
11792 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11793 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11794 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11795 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11796 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11797 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11798 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11799 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11800 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11801 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11802 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11803 between string literal and macro name.
11804
11805 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11806
11807 * jump.c: Change argument types to rtx_insn *.
11808 * rtl.h: Adjust.
11809
11810 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11811
11812 * lra-constraints.c: Change argument type to rtx_insn *.
11813
11814 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11815
11816 * df-problems.c: Change argument type to rtx_insn *.
11817
11818 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11819
11820 * combine.c: Change argument type to rtx_insn *.
11821
11822 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11823
11824 * rtl.h: Adjust.
11825 * rtlanal.c: Change argument type to rtx_insn *.
11826
11827 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11828
11829 * sched-deps.c: Change argument types to rtx_insn *.
11830 * sched-int.h: Adjust.
11831
11832 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11833
11834 * dwarf2cfi.c: Change argument type to rtx_insn *.
11835
11836 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11837
11838 * ira.c (decrease_live_ranges_number): Changetype of local
11839 variable to rtx_insn *.
11840 * recog.c: Change argument types to rtx_insn *.
11841 * recog.h: Adjust.
11842
11843 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11844
11845 * reorg.c: Change argument types to rtx_insn *.
11846
11847 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11848
11849 * ira-color.c: Change argument types to rtx_insn *.
11850 * lra-eliminations.c: Likewise.
11851 * ira.h: Adjust.
11852
11853 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11854
11855 * gcse.c: Change argument types to rtx_insn *.
11856
11857 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11858
11859 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11860
11861 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11862
11863 * emit-rtl.c (emit_debug_insn_before): Change argument type to
11864 rtx_insn *.
11865 * rtl.h: Adjust.
11866
11867 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11868
11869 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11870 * rtl.h: Adjust.
11871
11872 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11873
11874 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11875 * rtl.h: Adjust.
11876
11877 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11878
11879 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11880 * rtl.h: Adjust.
11881
11882 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11883
11884 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11885 * rtl.h: Adjust.
11886
11887 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11888
11889 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11890 to rtx_insn *.
11891 * rtl.h: Adjust.
11892
11893 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11894
11895 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11896 to rtx_insn *.
11897 * rtl.h: Likewise.
11898
11899 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11900
11901 * except.c (can_nonlocal_goto): Change type of argument to
11902 rtx_insn *.
11903 * rtl.h: Adjust.
11904
11905 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11906
11907 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11908 * rtl.h: Adjust.
11909
11910 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11911
11912 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11913 * cfgrtl.c (can_delete_label_p): Adjust.
11914 * rtl.h: likewise.
11915
11916 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11917
11918 * reorg.c (stop_search_p): Change argument to rtx_insn *.
11919
11920 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11921
11922 * except.c (make_reg_eh_region_note): Change argument to
11923 rtx_insn *.
11924 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11925 * except.h: Adjust.
11926
11927 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11928
11929 * mode-switching.c (commit_mode_sets): Change type of local
11930 variable from rtx to rtx_insn *.
11931
11932 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
11933
11934 * doc/install.texi (--enable-languages): Add missing jit and lto info.
11935 Add ^ to grep command.
11936 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11937 arg to last gimple_simplify declaration. Add missing gimple_build
11938 declaration for built-in function case with four tree args.
11939
11940 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11941 Szabolcs Nagy <szabolcs.nagy@arm.com>
11942
11943 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11944 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11945 (GNU_USER_DYNAMIC_LINKERN32): Update.
11946
11947 2015-05-08 Richard Biener <rguenther@suse.de>
11948
11949 PR tree-optimization/66036
11950 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11951 Handle strided group loads.
11952 (vect_verify_datarefs_alignment): Likewise.
11953 (vect_enhance_data_refs_alignment): Likewise.
11954 (vect_analyze_group_access): Likewise.
11955 (vect_analyze_data_ref_access): Likewise.
11956 (vect_analyze_data_ref_accesses): Likewise.
11957 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11958 (vectorizable_load): Likewise.
11959
11960 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
11961
11962 * config/rs6000/rs6000.md: Require operand inequality in one
11963 of the peepholes.
11964
11965 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
11966 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11967
11968 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11969 from (set ...).
11970 * config/rx/rx.md (movdi, movdf): Likewise.
11971 Likewise for define_peephole2s.
11972
11973 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11974
11975 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
11976 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
11977 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
11978 vtst_u64): Rewrite using gcc vector extensions.
11979
11980 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11981
11982 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
11983 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
11984
11985 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11986
11987 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
11988
11989 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
11990
11991 * config/glibc-stdint.h (OPTION_MUSL): Define.
11992 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
11993 Change the definition based on OPTION_MUSL for 64 bit targets.
11994 * config/linux.h (OPTION_MUSL): Redefine.
11995 * config/alpha/linux.h (OPTION_MUSL): Redefine.
11996 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
11997 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
11998
11999 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12000 Szabolcs Nagy <szabolcs.nagy@arm.com>
12001
12002 * config.gcc (LIBC_MUSL): New tm_defines macro.
12003 * config/linux.h (OPTION_MUSL): Define.
12004 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12005 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12006 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12007 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12008 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12009 * config/linux.opt (mmusl): New option.
12010 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12011 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12012 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12013 * configure: Regenerate.
12014
12015 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
12016 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12017
12018 PR target/48904
12019 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12020 * config/i386/knetbsd-gnu64.h: New file.
12021
12022 2015-05-08 Marek Polacek <polacek@redhat.com>
12023
12024 PR c/64918
12025 * doc/invoke.texi: Document -Woverride-init-side-effects.
12026
12027 2015-05-07 Marek Polacek <polacek@redhat.com>
12028
12029 PR c/65179
12030 * doc/invoke.texi: Document -Wshift-negative-value.
12031
12032 2015-05-06 Aditya Kumar <hiraditya@msn.com>
12033
12034 * gcov-tool.c (do_merge): Refactore to remove int ret.
12035 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12036 !type == FUNC to type != FUNC.
12037 * reload.h (struct target_reload): Changee to type of
12038 x_spill_indirect_levels from bool to unsigned char.
12039
12040 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
12041
12042 * rtl.h (always_void_p): New function.
12043 * gengenrtl.c (always_void_p): Likewise.
12044 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12045 with code foo are always VOIDmode.
12046 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12047 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12048 compare-elim.c, config/aarch64/aarch64.c,
12049 config/aarch64/aarch64.md, config/alpha/alpha.c,
12050 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12051 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12052 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12053 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12054 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12055 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12056 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12057 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12058 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12059 config/ia64/vect.md, config/iq2000/iq2000.c,
12060 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12061 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12062 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12063 config/mep/mep.c, config/microblaze/microblaze.c,
12064 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12065 config/mn10300/mn10300.c, config/msp430/msp430.c,
12066 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12067 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12068 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12069 config/rs6000/altivec.md, config/rs6000/rs6000.c,
12070 config/rs6000/rs6000.md, config/rs6000/vector.md,
12071 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12072 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12073 config/sh/sh.md, config/sh/sh_treg_combine.cc,
12074 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12075 config/spu/spu.md, config/stormy16/stormy16.c,
12076 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12077 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12078 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12079 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12080 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12081 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12082 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12083 var-tracking.c: Update calls accordingly.
12084
12085 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12086
12087 PR middle-end/192
12088 PR middle-end/54303
12089 * varasm.c (function_mergeable_rodata_prefix): New function.
12090 (mergeable_string_section): Use it.
12091 (mergeable_constant_section): Use it.
12092
12093 2015-05-07 Jeff Law <law@redhat.com>
12094
12095 PR target/39726
12096 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12097 simplifier to narrow arithmetic.
12098 * generic-match-head.c: (types_match, single_use): New functions.
12099 * gimple-match-head.c: (types_match, single_use): New functions.
12100
12101 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12102
12103 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12104 rtx type.
12105
12106 2015-05-07 Richard Biener <rguenther@suse.de>
12107
12108 PR tree-optimization/66002
12109 * passes.def: Schedule another pass_merge_phi after ifcombine, right
12110 before phiopt.
12111
12112 2015-05-07 Marek Polacek <polacek@redhat.com>
12113 Martin Uecker <uecker@eecs.berkeley.edu>
12114
12115 * doc/invoke.texi: Document -fsanitize=bounds-strict.
12116 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12117 into SANITIZE_NONDEFAULT.
12118 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12119
12120 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
12121
12122 PR target/66015
12123 * config/alpha/alpha.c (alpha_override_options_after_change): New.
12124 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12125 (alpha_override_options): Move align_loops, align_jumps and
12126 align_functions handling into alpha_override_options_after_change.
12127
12128 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
12129 Chris Jones <chrisj@nvidia.com>
12130 Joshua Conner <jconner@nvidia.com>
12131
12132 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12133 linking of crtfastmath.o.
12134 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12135
12136 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12137
12138 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12139 (cstore<mode>4_unsigned_imm): New expander.
12140 (cstore<mode>4): Remove empty constraint strings. Use the new
12141 expanders.
12142
12143 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
12144
12145 PR target/64208
12146 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12147 alternatives.
12148
12149 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12150
12151 * config/aarch64/geniterators.sh: Use standard BRE in sed.
12152
12153 2015-05-06 Alan Modra <amodra@gmail.com>
12154
12155 PR target/66033
12156 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12157 (UNSPEC_NOP): Define.
12158 (reload_vsx_from_gpr<mode>): Add missing DONE.
12159 (reload_gpr_from_vsx<mode>): Likewise.
12160 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12161 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12162
12163 2015-05-06 Christian Bruel <christian.bruel@st.com>
12164
12165 PR target/66015
12166 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12167 align_jumps, align_functions into aarch64_override_options_after_change.
12168
12169 2015-05-06 Richard Biener <rguenther@suse.de>
12170
12171 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12172 vect_transform_slp_perm_load to check if we support a permutation
12173 for basic-block vectorization.
12174
12175 2015-05-06 Nick Clifton <nickc@redhat.com>
12176
12177 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12178 used, even if it is not being used as a frame pointer.
12179
12180 2015-05-05 Jason Merrill <jason@redhat.com>
12181
12182 * dwarf2out.c (gen_member_die): Don't emit anything for an
12183 anonymous class constructor.
12184
12185 2015-05-05 David Malcolm <dmalcolm@redhat.com>
12186
12187 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12188 that it reflects the block structure.
12189 (afdo_propagate_edge): Likewise.
12190 (afdo_calculate_branch_prob): Likewise.
12191 (afdo_annotate_cfg): Likewise.
12192 * cfgcleanup.c (equal_different_set_p): Likewise.
12193 (try_crossjump_to_edge): Likewise.
12194 * cgraph.c (cgraph_node::verify_node): Likewise.
12195 * cgraphunit.c (expand_all_functions): Likewise.
12196 * config/i386/i386.c (ix86_expand_copysign): Likewise.
12197 (exact_dependency_1): Likewise.
12198 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12199 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12200 * gensupport.c (process_define_subst): Likewise.
12201 * lto-wrapper.c (merge_and_complain): Likewise.
12202 * tree-if-conv.c (if_convertible_bb_p): Likewise.
12203 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12204 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12205 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12206 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12207 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12208 * tree-vect-stmts.c (vectorizable_shift): Likewise.
12209 * tree-vrp.c (vrp_finalize): Likewise.
12210 * tree.c (variably_modified_type_p): Likewise.
12211
12212 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
12213
12214 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12215 on darwin12 and later.
12216 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12217 file to pass -rdynamic on darwin12 and later.
12218 * config/darwin.opt (rdynamic): Add.
12219
12220 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12221
12222 * doc/extend.texi (C Extensions): Update menu for moved Variable
12223 Attributes and Type Attributes sections.
12224
12225 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12226
12227 PR target/65990
12228 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12229 if rep_8byte stringop strategy was specified for 32-bit target.
12230
12231 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
12232
12233 PR target/65915
12234 * config/i386/i386.md (vector convert to float spltiter): Check for
12235 xmm16+, when splitting scalar float conversion.
12236 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12237
12238 2015-05-05 Nick Clifton <nickc@redhat.com>
12239
12240 * config/msp430/msp430-opts.h (enum msp430_regions): New.
12241 * config/msp430/msp430.c (msp430_override_options): Complain if
12242 -mcode-region or -mdata-region is used on a non MSP430X.
12243 (msp430_section_attr): New function. Checks lower, upper and
12244 either attributes.
12245 (msp430_attribute_table): Add lower, upper and either.
12246 (gen_prefix): New function. Generates a prefix for a section
12247 name.
12248 (msp430_select_section): New function - handles the choice of
12249 section for an object. Takes into account memory region
12250 attributes and options.
12251 (msp430_function_section): Use gen_prefix.
12252 (TARGET_SECTION_TYPE_FLAGS): Define.
12253 (msp430_section_type_flags): New function.
12254 (TARGET_ASM_UNIQUE_SECTION): Define.
12255 (msp430_unique_section): New function.
12256 (msp430_output_aligned_decl_common): New function.
12257 (msp430_do_not_relax_short_jumps): New function.
12258 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12259 Define.
12260 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12261 * config/msp430/msp430-protos.h
12262 (msp430_do_not_relax_short_jumps): New prototype.
12263 (msp430_output_aligned_decl_common): New prototype.
12264 * config/msp430/msp430.md (length): New attribute.
12265 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12266 then use a long code sequence for short jumps.
12267 * config/msp430/msp430.opt (mcode-region): New.
12268 (mdata-region): New.
12269 * doc/invoke.texi: Document new options.
12270 * doc/extend.texi: Document new attributes.
12271
12272 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12273
12274 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12275 (tune_params): Add field branch_costs.
12276 (aarch64_branch_cost): Declare.
12277 * gcc/config/aarch64.c (generic_branch_cost): New.
12278 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12279 (cortexa53_tunings): Likewise.
12280 (cortexa57_tunings): Likewise.
12281 (thunderx_tunings): Likewise.
12282 (xgene1_tunings): Likewise.
12283 (aarch64_branch_cost): Define.
12284 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12285
12286 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12287
12288 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12289 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12290 * config/i386/i386.md: Ditto.
12291 * config/i386/winnt.c: Ditto.
12292
12293 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12294
12295 * doc/extend.texi (__atomic Builtins): Move implementation details
12296 to the end of the description, rewrite opening paragraphs, state
12297 difference with __sync builtins, state C11/C++11 assumptions,
12298 weaken itemized descriptions, add explanation of memory model
12299 behaviour, expand description of compare-exchange, simplify text.
12300
12301 2015-05-05 Renlin Li <renlin.li@arm.com>
12302
12303 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12304
12305 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12306
12307 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12308 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12309 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12310 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12311 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12312 * configure: Regenerate.
12313 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12314 * doc/install.texi (aarch64*-*-*): Document new
12315 --enable-fix-cortex-a53-843419 option.
12316 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12317 and -mno-fix-cortex-a53-843419 options.
12318
12319 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12320
12321 PR target/65871
12322 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12323
12324 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12325
12326 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12327 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12328 compatibility problems.
12329
12330 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12331
12332 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12333 constraints.
12334 (cbranchsi4_reg): New.
12335 * config/microblaze/microblaze.c
12336 (microblaze_expand_conditional_branch_reg): New.
12337 * config/microblaze/microblaze-protos.h
12338 (microblaze_expand_conditional_branch_reg): New prototype.
12339
12340 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12341
12342 * config/microblaze/microblaze.md (peephole2): New.
12343
12344 2015-05-04 Jeff Law <law@redhat.com>
12345
12346 Revert:
12347 2015-05-04 Jeff Law <law@redhat.com>
12348
12349 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12350 simplifier to narrow arithmetic.
12351 * generic-match-head.c: (types_match, single_use): New functions.
12352 * gimple-match-head.c: (types_match, single_use): New functions.
12353
12354 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12355
12356 PR target/65987
12357 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12358 (split_branches): Likewise.
12359
12360 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12361
12362 * common.opt (fdelete-null-pointer-checks): Init to -1.
12363 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12364 override flag_delete_null_pointer_checks default.
12365 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12366 behavior re address zero. Better document target-specific behavior.
12367 (-fisolate-errneous-paths-dereference): Mention relationship to
12368 -fdelete-null-pointer-checks.
12369
12370 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12371
12372 PR tree-optimization/65984
12373 * ubsan.c: Include tree-cfg.h.
12374 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12375 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12376
12377 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12378
12379 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12380 to CONST_DOUBLE_P predicate.
12381 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12382 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12383 allow only operands that satisfy standard_sse_constant_p predicate.
12384 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12385 to CONST_DOUBLE_P predicate.
12386
12387 2015-05-04 Jeff Law <law@redhat.com>
12388
12389 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12390 simplifier to narrow arithmetic.
12391 * generic-match-head.c: (types_match, single_use): New functions.
12392 * gimple-match-head.c: (types_match, single_use): New functions.
12393
12394 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12395
12396 * config/arm/arm.c: Restore bootstrap.
12397
12398 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12399
12400 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12401 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12402 as CONST_WIDE_INT, not CONST_DOUBLE.
12403 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12404 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12405 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12406 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12407 (ix86_build_signbit_mask): Rewrite using wide ints.
12408 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12409 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12410 (find_constant): Ditto.
12411 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12412 using gen_int_mode.
12413 * config/i386/predicates.md (x86_64_immediate_operand)
12414 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12415 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12416 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12417 (const0_operand): Also match const_wide_int.
12418 (constm1_operand): Ditto.
12419 (const1_operand): Ditto.
12420
12421 2015-05-04 Richard Biener <rguenther@suse.de>
12422
12423 PR tree-optimization/65965
12424 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12425 store groups at gaps.
12426
12427 2015-05-04 Richard Biener <rguenther@suse.de>
12428
12429 PR tree-optimization/65935
12430 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12431 then make sure to apply that swapping to the IL.
12432
12433 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12434
12435 * Makefile.in (PATCHLEVEL_c): New variable.
12436 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12437 expand the same way as if DEVPHASE_c was non-empty.
12438
12439 2015-05-04 Kai Tietz <ktietz@redhat.com>
12440
12441 PR target/65559
12442 * lto-wrapper.c (run_gcc): Open filename
12443 in binary-mode.
12444
12445 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12446
12447 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12448 sections up in file, to immediately after the Function Attributes
12449 section.
12450
12451 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12452
12453 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12454
12455 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12456
12457 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12458 (insert_partition_copy_on_edge): Adjust.
12459 (insert_rtx_to_part_on_edge): Likewise.
12460 (insert_part_to_rtx_on_edge): Likewise.
12461
12462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12463
12464 * function.c (set_return_jump_label): Change type of argument to
12465 rtx_insn *.
12466 * function.h (set_return_jump_label): Adjust.
12467
12468 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12469
12470 * reload.h (struct reg_equivs_t): Change type of init to
12471 rtx_insn *.
12472 * ira.c (fix_reg_equiv_init): Adjust.
12473 * reload1.c (eliminate_regs_1): Likewise.
12474 (init_eliminable_invariants): Likewise.
12475
12476 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12477
12478 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12479 * cselib.h (fp_setter_insn): Adjust.
12480
12481 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12482
12483 * recog.c (struct validate_replace_src_data): Change type of
12484 insn field to rtx_insn *.
12485 (validate_replace_src_group): Change type of argument to rtx_insn *.
12486 * recog.h (validate_replace_src_group): Adjust.
12487
12488 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12489
12490 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12491 * sched-deps.c: Likewise.
12492 * sched-int.h: Likewise.
12493 * sched-rgn.c: Likewise.
12494 * sel-sched.c: Likewise.
12495
12496 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12497
12498 to rtx_insn *.
12499 * config/i386/i386.c: Change the type of some arguments to
12500 rtx_insn *.
12501 * config/arm/arm.c: Likewise.
12502
12503 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12504
12505 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12506
12507 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12508
12509 * regcprop.c (kill_autoinc_value): Change type of argument to
12510 rtx_insn *.
12511
12512 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12513
12514 * genrecog.c (print_subroutine): Adjust.
12515 * recog.c (get_bool_attr_mask_uncached): Likewise.
12516 * recog.h (struct recog_data_d): Change the type of insn to
12517 rtx_insn *.
12518
12519 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12520
12521 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12522
12523 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12524
12525 * df-problems.c (df_set_note): Change type of argument to
12526 rtx_insn *.
12527
12528 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12529
12530 * builtins.c (expand_builtin_trap): Change type of local
12531 variable to rtx_insn *.
12532 (add_sched_insns_for_speculation): Likewise.
12533 (ix86_emit_save_regs): Likewise.
12534 (get_scratch_register_on_entry): Likewise.
12535 (ix86_emit_restore_reg_using_pop): Likewise.
12536 (ix86_emit_leave): Likewise.
12537 (ix86_emit_restore_regs_using_mov): Likewise.
12538 (ix86_expand_epilogue): Likewise.
12539 Likewise.
12540 (rl78_alloc_physical_registers_umul): Likewise.
12541 * cselib.c (discard_useless_locs): Likewise.
12542 (cselib_invalidate_regno): Likewise.
12543 (cselib_invalidate_mem): Likewise.
12544 * function.c (expand_function_start): Likewise.
12545 (emit_use_return_register_into_block): Likewise.
12546 * gcse.c: Likewise.
12547 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12548 * ifcvt.c (noce_get_alt_condition): Likewise.
12549 * loop-doloop.c (doloop_condition_get): Likewise.
12550 * lra-constraints.c (inherit_in_ebb): Likewise.
12551 * modulo-sched.c (sms_schedule_by_order): Likewise.
12552 * recog.c (next_insn_tests_no_inequality): Likewise.
12553 * reorg.c (emit_delay_sequence): Likewise.
12554 (update_reg_dead_notes): Likewise.
12555 (fix_reg_dead_note): Likewise.
12556 (fill_slots_from_thread): Likewise.
12557 (delete_computation): Likewise.
12558
12559 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12560
12561 * doc/extend.texi (Variable Attributes): Add menu and proper
12562 @nodes to subsections. Move Microsoft Windows attributes to
12563 their own subsection.
12564 (Type Attributes): Reorganize introduction to remove duplicate
12565 list of attributes. Add menu and proper @nodes to subsections.
12566 Alphabetize the main table of common attributes.
12567
12568 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12569
12570 * match.pd: New simplification patterns.
12571 (x + (x & 1)) -> ((x + 1) & ~1)
12572 (x & ~(x & y)) -> ((x & ~y))
12573 (x | ~(x | y)) -> ((x | ~y))
12574
12575 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12576
12577 * target.def (attribute_table): Mention that struct attribute_spec
12578 is defined in tree-core.h rather than tree.h
12579 * doc/tm.texi: Regenerate.
12580
12581 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12582
12583 * genrecog.c (test): Rename to rtx_test. Update rest of file
12584 accordingly.
12585
12586 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12587
12588 PR translation/65959
12589 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12590
12591 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12592
12593 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12594 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12595 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12596 Return value depending on target.
12597 (generic_tunings): Initialize new target settings.
12598 (cortexa53_tunings): Likewise.
12599 (cortexa57_tunings): Likewise.
12600 (thunderx_tunings): Likewise.
12601 (xgene1_tunings): Likewise.
12602
12603 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12604
12605 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12606 Make Cortex-A53 shift costs more accurate.
12607
12608 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12609
12610 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12611 UNSIGNED_FLOAT.
12612
12613 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12614
12615 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12616 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12617
12618 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12619
12620 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12621 Add cost of op0 in the compare-with-fpzero case.
12622
12623 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12624
12625 * builtins.c (fold_builtin_1): Remove spurious second
12626 semicolon.
12627 * cgraph.h (symtab_node::get_availability): Likewise.
12628 * opts.c (common_handle_option): Remove spurious second semicolon.
12629 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12630 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12631
12632 2015-04-30 Caroline Tice <cmtice@google.com>
12633
12634 PR gcov-profile/65929
12635 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12636 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12637 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12638 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12639 * doc/tm.texi: Regenerate.
12640 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12641 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12642 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12643 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12644
12645 2015-04-30 Marek Polacek <polacek@redhat.com>
12646
12647 * varasm.c (handle_cache_entry): Fix logic.
12648
12649 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12650
12651 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12652 (*extrsi5_insn_uxtw_alt): Likewise.
12653 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12654 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12655 operations.
12656
12657 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12658
12659 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12660 fabd in ABS case.
12661
12662 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12663
12664 * config/aarch64/aarch64.md
12665 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12666 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12667 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12668 appropriately. Handle alternative EON form.
12669
12670 2015-04-30 Renlin Li <renlin.li@arm.com>
12671
12672 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12673 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12674
12675 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12676
12677 PR ipa/65873
12678 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12679 -fstrict-aliasing boundaries.
12680
12681 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12682
12683 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12684 and [SU]MNEGL patterns.
12685
12686 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12687
12688 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12689 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12690 combined arithmetic-shift ops. Properly handle all shift and extend
12691 operations that can occur in combination with PLUS/MINUS.
12692 Rename maybe_fma to compound_p.
12693 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12694 arithmetic and shift operations.
12695
12696 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12697
12698 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12699 rather than arith_shift cost when costing ADD/MINUS of an
12700 extended value.
12701
12702 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12703
12704 PR lto/65948
12705 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12706 to itself.
12707
12708 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12709
12710 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12711 are for the same position.
12712
12713 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12714
12715 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12716 vectorize_loops.
12717 (vectorize_loops): Use it.
12718
12719 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12720
12721 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12722 for aggregate types.
12723 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12724 type to be non_ODR.
12725 * tree.c (need_assembler_name_p): Compute mangled name for
12726 non-fundamental types and integer types.
12727
12728 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12729
12730 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12731 manual swaps.
12732 * expr.c (expand_expr_real_2): Likewise.
12733
12734 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12735
12736 * tree.c (build_common_builtin_nodes): Do not build
12737 __builtin_alloca_with_align as equivalent of library alloca.
12738
12739 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12740
12741 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12742 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12743 bugus variants.
12744 * tree.c: Include print-tree.h and ipa-utils.h
12745 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12746 (free_lang_data_in_cgraph): Call verify_type.
12747 (verify_type_variant): New function.
12748 (verify_type): New function.
12749 * tree.h (verify_type): Declare.
12750
12751 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12752
12753 * config/mips/mips-cpus.def: (mips4): Change default processor
12754 from PROCESSOR_R8000 to PROCESSOR_R10000.
12755
12756 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12757
12758 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12759 la/jalr instead of jal.
12760
12761 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12762
12763 PR target/65871
12764 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12765 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12766 (setcc+movzbl peephole2): Check also clobbered reg.
12767 (setcc+andl peephole2): Ditto.
12768
12769 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12770
12771 PR libgomp/65099
12772 * config/nvptx/mkoffload.c (target_ilp32): New variable.
12773 (main): Set it depending on "-foffload-abi=[...]".
12774 (compile_native, main): Use it to pass "-m32" or "-m64" to the
12775 compiler.
12776
12777 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12778
12779 PR target/65770
12780 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12781 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12782 Flip lane index back at assembly time for bigendian.
12783
12784 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12785
12786 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12787 * gimplify.c (gimplify_omp_workshare): Use it.
12788
12789 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12790
12791 * Makefile.in (build/genrecog.o): Depend on inchash.h.
12792 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12793 build/inchash.o
12794 * genrecog.c: Rewrite most of the code except for the third page.
12795
12796 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12797
12798 * inchash.h, inchash.c: Include bconfig.h for build objects.
12799 * Makefile.in (build/inchash.o): New rule.
12800
12801 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
12802
12803 PR target/65924
12804 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12805 number in type attribute expression.
12806
12807 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12808
12809 * loop-iv.c (canon_condition): Generalize to all types of integer
12810 constant.
12811
12812 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
12813
12814 * gimple-walk.c: Prune duplicate or unneeded includes.
12815 (walk_gimple_asm): Only call parse_input_constraint or
12816 parse_output_constraint if their findings are used.
12817 Honour parse_input_constraint and parse_output_constraint
12818 result.
12819
12820 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12821
12822 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12823
12824 2015-04-29 Tom de Vries <tom@codesourcery.com>
12825
12826 PR tree-optimization/65893
12827 * passes.def (pass_all_optimizations): Move pass_stdarg to after
12828 pass_dce.
12829
12830 2015-04-29 Richard Biener <rguenther@suse.de>
12831
12832 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12833 compute GROUP_SIZE for basic-block SLP.
12834 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12835 take into account gaps.
12836 (vect_get_mask_element): Properly reject references to previous
12837 vectors.
12838 (vect_transform_slp_perm_load): Likewise.
12839
12840 2015-04-29 Christian Bruel <christian.bruel@st.com>
12841
12842 PR target/64835
12843 * config/i386/i386.c (ix86_default_align): New function.
12844 (ix86_override_options_after_change): Call ix86_default_align.
12845 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12846 (ix86_override_options_after_change): New function.
12847
12848 2015-04-28 Jeff Law <law@redhat.com>
12849
12850 * tree-ssa-dom.c (record_equality); Fix comment typos.
12851
12852 2015-04-28 Tom de Vries <tom@codesourcery.com>
12853
12854 PR tree-optimization/65887
12855 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12856
12857 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
12858
12859 * doc/extend.texi (Declaring Attributes of Functions): Split into
12860 subsections by target. Alphabetize the table of common attributes.
12861 Rewrite some of the introductory text to reflect the new structure.
12862 Update some cross-references to point to the new subsections.
12863 (Attribute Syntax): Put paragraph about "__" naming here. Remove
12864 duplicate copies in the discussion of function, label, and type
12865 attributes.
12866
12867 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
12868
12869 PR bootstrap/65910
12870 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12871
12872 2015-04-28 Jason Merrill <jason@redhat.com>
12873
12874 PR c++/65734
12875 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12876 (finalize_type_size): Respect TYPE_USER_ALIGN.
12877 (layout_type) [ARRAY_TYPE]: Likewise.
12878
12879 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
12880
12881 * config/arm/arm.md (*arm_movt): Fix type attribute.
12882 (*cmpsi_shiftsi): Likewise.
12883 (*cmpsi_shiftsi_swp): Likewise.
12884 (*movsicc_insn): Likewise.
12885 (*cond_move): Likewise.
12886 (*if_plus_move): Likewise.
12887 (*if_move_plus): Likewise.
12888 (*if_arith_move): Likewise.
12889 (*if_move_arith): Likewise.
12890 (*if_shift_move): Likewise.
12891 (*if_move_shift): Likewise.
12892 (*arm_movtas_ze): Likewise.
12893 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12894 redundancy and type attribute.
12895 (*thumb2_movsi_insn): Fix type attribute.
12896 (*thumb2_addsi_short): Likewise.
12897 (thumb2_addsi3_compare0): Likewise.
12898 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12899 attributes accordingly.
12900
12901 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12902
12903 PR other/65911
12904 * function.c (pad_to_arg_alignment): Add parentheses.
12905
12906 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
12907
12908 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12909 libgcc/config/frv/elf-lib.h.
12910
12911 2015-04-28 Tom de Vries <tom@codesourcery.com>
12912
12913 * tree-call-cdce.c: Fix example in header comment.
12914
12915 2015-04-28 Richard Biener <rguenther@suse.de>
12916
12917 PR tree-optimization/62283
12918 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12919 fails fatally and we are vectorizing a basic-block simply
12920 cause the child to be constructed piecewise.
12921 (vect_analyze_slp_cost_1): Adjust.
12922 (vect_detect_hybrid_slp_stmts): Likewise.
12923 (vect_bb_slp_scalar_cost): Likewise.
12924 (vect_get_constant_vectors): For piecewise constructed
12925 constants place them after the last def.
12926 (vect_get_slp_defs): Adjust.
12927 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12928 externals for basic-block vectorization.
12929
12930 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12931
12932 PR target/63503
12933 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12934 aarch64-*-*.
12935 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12936 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12937 (AARCH64_TUNE_FMA_STEERING): Likewise.
12938 * config/aarch64/aarch64-cores.def: Set
12939 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12940 FMUL/FMADD instructions.
12941 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12942 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
12943 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12944 * config/aarch64/cortex-a57-fma-steering.h: New file.
12945 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12946
12947 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
12948
12949 * gensupport.c (std_preds): Add missing codes to address_operand entry.
12950
12951 2015-04-28 Richard Biener <rguenther@suse.de>
12952
12953 PR tree-optimization/65851
12954 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12955 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
12956 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
12957 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12958 (ccp_visit_phi_node): Adjust.
12959 (evaluate_stmt): For simplifications to SSA names return its
12960 lattice value if that isn't VARYING. Return immediately when
12961 simplified to a constant.
12962 (visit_assignment): Adjust.
12963 (ccp_visit_stmt): Likewise.
12964
12965 2015-04-28 Tom de Vries <tom@codesourcery.com>
12966
12967 PR tree-optimization/65818
12968 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12969 evaluated.
12970
12971 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12972
12973 * calls.c (save_fixed_argument_area): Don't check
12974 ARGS_GROW_DOWNWARD with the preprocessor.
12975 (restore_fixed_argument_area): Likewise.
12976 (mem_overlaps_already_clobbered_arg_p): Likewise.
12977 (check_sibcall_argument_overlap): Likewise.
12978 (expand_call): Likewise.
12979 (emit_library_call_value_1): Likewise.
12980 (store_one_arg): Likewise.
12981 * function.c (assign_parms): Likewise.
12982 (locate_and_pad_parm): Likewise.
12983 (pad_to_arg_alignment): Likewise.
12984 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12985
12986 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12987
12988 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
12989 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
12990 * calls.c (save_fixed_argument_area): Don't chekc if
12991 ARGS_GROW_DOWNWARD is defined.
12992 (restore_fixed_argument_area): Likewise.
12993 (mem_overlaps_already_clobbered_arg_p): Likewise.
12994 (check_sibcall_argument_overlap): Likewise.
12995 (expand_call): Likewise.
12996 (emit_library_call_value_1): Likewise.
12997 (store_one_arg): Likewise.
12998 * function.c (assign_parms): Likewise.
12999 (locate_and_pad_parm): Likewise.
13000 (pad_to_arg_alignment): Likewise.
13001 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13002
13003 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13004
13005 * defaults.h (gen_epilogue): New function.
13006 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13007 defined.
13008 * cfgrtl.c (cfg_layout_finalize): Likewise.
13009 * df-scan.c: Likewise.
13010 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13011 (reposition_prologue_and_epilogue_notes): Likewise.
13012 * reorg.c (find_end_label): Likewise.
13013 * toplev.c: Likewise.
13014
13015 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13016
13017 * bb-reorder.c (HAVE_return): Don't check if its undefined.
13018 * defaults.h (gen_simple_return): New function.
13019 (gen_simple_return): Likewise.
13020 (HAVE_return): Add default definition to false.
13021 (HAVE_simple_return): Likewise.
13022 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13023 HAVE_return and HAVE_simple_return are defined.
13024 * function.c (gen_return_pattern): Likewise.
13025 (convert_jumps_to_returns): Likewise.
13026 (thread_prologue_and_epilogue_insns): Likewise.
13027 * reorg.c (find_end_label): Likewise.
13028 (dbr_schedule): Likewise.
13029 * shrink-wrap.c: Likewise.
13030 * shrink-wrap.h: Likewise.
13031
13032 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13033
13034 * defaults.h (EPILOGUE_USES): Add default definition of false.
13035 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13036 * resource.c (init_resource_info): Likewise.
13037
13038 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13039
13040 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13041 to false.
13042 * dwarf2out.c (field_byte_offset): REmove check if
13043 PCC_BITFIELD_TYPE_MATTERS is defined.
13044 * stor-layout.c (layout_decl): Likewise.
13045 (update_alignment_for_field): Likewise.
13046 (place_field): Likewise.
13047
13048 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13049
13050 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13051 true.
13052 * regrename.c (check_new_reg_p): Remove check if
13053 HARD_REGNO_RENAME_OK is defined.
13054 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13055
13056 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13057
13058 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13059 * cse.c (fold_rtx): Likewise.
13060 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13061 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13062 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13063 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13064 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13065 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13066 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13067 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13068 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13069 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13070 * Likewise.
13071 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13072 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13073 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13074 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13075 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13076 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13077 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13078 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13079 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13080 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13081 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13082 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13083 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13084 * doc/tm.texi: Regenerate.
13085 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13086 either true or false.
13087
13088 2015-04-27 Jeff Law <law@redhat.com>
13089
13090 PR tree-optimization/65217
13091 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13092 of them has a single use, make sure it is the LHS of the implied
13093 copy.
13094
13095 2015-04-28 Alan Modra <amodra@gmail.com>
13096
13097 PR target/65810
13098 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13099 (offsettable_ok_by_alignment): Use minimum of decl and toc
13100 pointer alignment. Replace dead code with assertion.
13101 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
13102 case if size exceeds toc pointer alignment.
13103 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13104 (rs6000_emit_move): Likewise.
13105 * configure.ac: Add linker toc pointer alignment check.
13106 * configure: Regenerate.
13107 * config.in: Regenerate.
13108
13109 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
13110
13111 * config.gcc: Add h8300-*-linux.
13112 * config/h8300/linux.h: New.
13113 * config/h8300/t-linux: New.
13114 * config/h8300/h8300.c (h8300_option_override): Normal mode
13115 is not supported for h8300-*-linux.
13116 (h8300_file_start): Target priority change.
13117 (get_shift_alg): Likewise.
13118 (h8300_shift_need_scratch_p): Likewise.
13119 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13120 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13121
13122 2015-04-27 Caroline Tice <cmtice@google.com>
13123
13124 * final.c (final_scan_insn): Output cold_function_name as function
13125 type.
13126 * varasm.c (cold_function_name): Make global.
13127 (assemble_start_function): Re-set cold_function_name.
13128 (assemble_end_function): Output cold partition size.
13129 * varasm.h (cold_function_name): Declare global.
13130
13131 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
13132
13133 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13134 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13135 constraint.
13136 (*movxi_internal_avx512f): Ditto.
13137 (define_split): Check for xmm16+, when splitting scalar float_extend.
13138 (*extendsfdf2_mixed): Use "v" constraint.
13139 (define_split): Check for xmm16+, when splitting scalar float_truncate.
13140 (*truncdfsf_fast_sse): Use "v" constraint.
13141 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13142 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13143 (define_peephole2): Check for xmm16+, when converting scalar
13144 float_truncate.
13145 (define_peephole2): Check for xmm16+, when converting scalar
13146 float_extend.
13147 (*fop_<mode>_comm_mixed): Use "v" constraint.
13148 (*fop_<mode>_comm_sse): Ditto.
13149 (*fop_<mode>_1_mixed): Ditto.
13150 (*sqrt<mode>2_sse): Ditto.
13151 (*ieee_s<ieee_maxmin><mode>3): Ditto.
13152
13153 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13154
13155 * combine.c (simplify_if_then_else): Use std::swap instead
13156 of manually swapping.
13157 (known_cond): Likewise.
13158 (simplify_comparison): Likewise.
13159
13160 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
13161
13162 PR target/64579
13163 * config/rs6000/htm.md: Remove all define_expands.
13164 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13165 UNSPECV_HTM_TABORTWCI): Remove.
13166 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13167 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13168 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13169 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13170 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13171 tabortwci_internal): Remove define_insns.
13172 (tabort<wd>c, tabort<wd>ci): New define_insns.
13173 (tabort): Use gpc_reg_operand.
13174 (tcheck): Remove operand.
13175 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13176 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13177 expected value.
13178 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13179 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
13180 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13181 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13182 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13183 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13184 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13185 (tcheck): Remove builtin argument.
13186 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13187 not TARGET_64BIT.
13188 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
13189 tabortdc and tabortdci builtins when not in 64-bit mode.
13190 Modify code to handle the loss of the HTM define_expands.
13191 Emit code to copy the CR register to TARGET.
13192 (htm_init_builtins): Modify code to handle the loss of the HTM
13193 define_expands.
13194 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13195 (RS6000_BTC_64BIT): Likewise.
13196 (RS6000_BTC_CR): New macro.
13197 * doc/extend.texi: Update documentation for htm builtins.
13198
13199 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13200
13201 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13202 of manually swapping.
13203 (simplify_associative_operation): Likewise.
13204 (simplify_binary_operation): Likewise.
13205 (simplify_plus_minus): Likewise.
13206 (simplify_relational_operation): Likewise.
13207 (simplify_ternary_operation): Likewise.
13208
13209 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13210
13211 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13212 (xs_hi_nonmemory_operand): Remove error.
13213 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13214 general_operand rather than xs_hi_general_operand.
13215
13216 2015-04-27 Richard Biener <rguenther@suse.de>
13217
13218 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13219 (record_equivalences_from_stmt): Valueize rhs.
13220 (record_equality): Canonicalize x and y order via
13221 tree_swap_operands_p. Do not swap operands for same loop depth.
13222
13223 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
13224
13225 PR target/65296
13226 PR target/65895
13227 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13228 Add hint how to use own spec file.
13229
13230 2015-04-27 Jakub Jelinek <jakub@redhat.com>
13231
13232 PR tree-optimization/65875
13233 * tree-vrp.c (update_value_range): If in is_new case setting
13234 old_vr to VR_VARYING, also set new_vr to it. Remove
13235 old_vr->type == VR_VARYING test.
13236 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13237 SSA_PROP_INTERESTING if update_value_range returned true,
13238 but new range is VR_VARYING.
13239
13240 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13241
13242 * combine.c (sign_extend_short_imm): New.
13243 (set_nonzero_bits_and_sign_copies): Use above new function for sign
13244 extension of src short immediate.
13245 (reg_nonzero_bits_for_combine): Likewise for tem.
13246
13247 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13248
13249 * stor-layout.c (self_referential_component_ref_p): New predicate.
13250 (copy_self_referential_tree_r): Use it.
13251 (self_referential_size): Punt for simple operations directly involving
13252 self-referential component references.
13253 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13254
13255 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13256
13257 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13258
13259 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13260
13261 * vec.h (vec): Make splice arguments const. Update definitions
13262 accordingly.
13263
13264 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13265
13266 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13267 alternatives.
13268
13269 2015-04-26 Tom de Vries <tom@codesourcery.com>
13270
13271 PR tree-optimization/65826
13272 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13273
13274 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13275
13276 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13277 (*madd3<mode>): Ditto.
13278 (*msub4<mode>): Ditto.
13279 (*msub3<mode>): Ditto.
13280 (*nmadd4<mode>): Ditto.
13281 (*nmadd3<mode>): Ditto.
13282 (*nmadd4<mode>_fastmath): Ditto.
13283 (*nmadd3<mode>_fastmath): Ditto.
13284 (*nmsub4<mode>): Ditto.
13285 (*nmsub3<mode>): Ditto.
13286 (*nmsub4<mode>_fastmath): Ditto.
13287 (*nmsub3<mode>_fastmath): Ditto.
13288
13289 2015-04-24 Jason Merrill <jason@redhat.com>
13290
13291 PR c++/50800
13292 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13293 down when building TYPE_CANONICAL.
13294 (build_pointer_type_for_mode): Likewise.
13295
13296 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13297
13298 * genrecog.c (validate_pattern): Check matching constraint refers
13299 to a lower numbered operand.
13300
13301 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13302
13303 PR target/65849
13304 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13305 save to independent variables use the Save attribute. This will
13306 allow these options to be modified with the #pragma/attribute
13307 target support.
13308 (-mallow-movmisalign): Likewise.
13309 (-mallow-df-permute): Likewise.
13310 (-msched-groups): Likewise.
13311 (-malways-hint): Likewise.
13312 (-malign-branch-targets): Likewise.
13313 (-mvectorize-builtins): Likewise.
13314 (-msave-toc-indirect): Likewise.
13315
13316 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13317 can be set via the #pragma/attribute target support.
13318 (rs6000_opt_vars): Likewise.
13319 (rs6000_inner_target_options): If VSX was set, also set
13320 -mno-avoid-indexed-addresses.
13321
13322 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13323
13324 * config/arm/iterators.md (shiftable_ops): Rename to...
13325 (SHIFTABLE_OPS): ... This. Update use in comments.
13326 (ior_xor): Rename to...
13327 (IOR_XOR): ... This.
13328 (vqh_ops): Rename to...
13329 (VQH_OPS): ... This.
13330 (vqhs_ops): Rename to...
13331 (VQHS_OPS): ... This.
13332 (rshifts): Rename to...
13333 (RSHIFTS): ... This.
13334 (returns): Rename to...
13335 (RETURNS): ... This.
13336 * config/arm/arm.md: Update uses of the above.
13337 * config/arm/neon.md: Likewise.
13338
13339 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13340
13341 * config.host (case ${host}): Add aarch64*-*-linux case.
13342 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13343 fields to all the cores.
13344 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13345 Add MCPU_MTUNE_NATIVE_SPECS.
13346 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13347 field to all extensions.
13348 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13349 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13350 Adjust definition of AARCH64_OPT_EXTENSION.
13351 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13352 (MCPU_MTUNE_NATIVE_SPECS): Define.
13353 * config/aarch64/driver-aarch64.c: New file.
13354 * config/aarch64/x-arch64: New file.
13355 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13356 -mtune and -march.
13357
13358 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13359 Wei Mi <wmi@google.com>
13360
13361 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13362 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13363 (ix86_operands_ok_for_move_multiple): Ditto.
13364 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13365 (movlpd/movhpd to movupd peephole2): Ditto.
13366
13367 2015-04-24 Marek Polacek <polacek@redhat.com>
13368
13369 PR c/61534
13370 * input.h (from_macro_expansion_at): Define.
13371
13372 PR c/63357
13373 * doc/invoke.texi: Update description of -Wlogical-op.
13374
13375 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13376
13377 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13378 ternary operator in fprintf and harmonize spacing.
13379
13380 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13381
13382 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13383 Mark operand1 commutative.
13384
13385 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13386
13387 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13388 input operands in memory.
13389 (*vec_concatv2si_sse4_1): Ditto.
13390 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13391 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13392 register_operand.
13393 (vec_extract_hi_v32hi): Ditto.
13394 (vec_extract_hi_v64hi): Ditto.
13395 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13396
13397 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13398 Steven Bosscher <steven@gcc.gnu.org>
13399
13400 PR rtl-optimization/34503
13401 * cprop.c (cprop_reg_p): New.
13402 (hash_scan_set): Use above function to check if register can be
13403 propagated.
13404 (find_avail_set): Return up to two sets, one whose source is a
13405 register and one whose source is a constant. Sets are returned in an
13406 array passed as parameter rather than as a return value.
13407 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13408 sets returned by find_avail_set, starting with the one whose source is
13409 a constant. Use cprop_reg_p to check if register can be propagated.
13410 (do_local_cprop): Use cprop_reg_p to check if register can be
13411 propagated.
13412 (implicit_set_cond_p): Likewise.
13413
13414 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13415
13416 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13417 (sem_function::equals): IGNORED_NODES parameter is now unused;
13418 update call of equals_private.
13419 (sem_function::equals_private): Do not call equals_wpa; skip
13420 gimple body matching if there is no body.
13421 (sem_function::init): Add logic to hash tthunk info.
13422 (sem_function::parse): Also parse thunks.
13423 * ipa-icf.h (equals_private): Update declaration.
13424
13425 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13426
13427 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13428 asterisk from name so this can be generated directly.
13429 (*altivec_stvx_<mode>_internal): Likewise.
13430 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13431 that this is never called during or after reload/lra.
13432 (rs6000_frame_related): Remove split_reg
13433 argument and logic that references it.
13434 (emit_frame_save): Remove last parameter from call to
13435 rs6000_frame_related.
13436 (rs6000_emit_prologue): Remove last parameter from eight calls to
13437 rs6000_frame_related. Force generation of stvx instruction for
13438 Altivec register saves. Remove split_reg handling, which is no
13439 longer needed.
13440 (rs6000_emit_epilogue): Force generation of lvx instruction for
13441 Altivec register restores.
13442
13443 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13444
13445 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13446 match category changes in ISA 2.07B.
13447
13448 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13449
13450 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13451 iterators.
13452 (cmp_op, cmp_type): New code attributes.
13453 (NEON_VCMP, NEON_VACMP): New int iterators.
13454 (cmp_op_unsp): New int attribute.
13455 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13456 (neon_vceq<mode>): Delete.
13457 (neon_vc<cmp_op><mode>_insn): New pattern.
13458 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13459 (neon_vcgeu<mode>): Delete.
13460 (neon_vcle<mode>): Likewise.
13461 (neon_vclt<mode>: Likewise.
13462 (neon_vcage<mode>): Likewise.
13463 (neon_vcagt<mode>): Likewise.
13464 (neon_vca<cmp_op><mode>): New define_expand.
13465 (neon_vca<cmp_op><mode>_insn): New pattern.
13466 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13467
13468 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13469
13470 * tree.h (attribute_value_equal): Declare.
13471 * tree.c (attribute_value_equal): Export.
13472
13473 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13474
13475 * ipa-icf.c (sem_item::compare_attributes): New function.
13476 (sem_item::compare_referenced_symbol_properties): Compare variable
13477 attributes.
13478 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13479 (sem_function::param_used_p): New function.
13480 (sem_function::equals_wpa): Fix attribute comparsion; match
13481 parameter type codes; do not compare paremter flags when
13482 they are not used; compare edge flags; compare indirect calls.
13483 (sem_item::update_hash_by_addr_refs): Hash reference type.
13484 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13485 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13486 reference use type.
13487 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13488 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13489
13490 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13491
13492 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13493 cleanup.
13494 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13495 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13496 (sem_item::compare_referenced_symbol_properties): New.
13497 (sem_item::hash_referenced_symbol_properties): New.
13498 (sem_item::compare_cgraph_references): Rename to ...
13499 (sem_item::compare_symbol_references): ... this one; use
13500 compare_referenced_symbol_properties.
13501 (sem_function::equals_wpa): Do not compare
13502 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13503 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13504 (sem_item::update_hash_by_addr_refs): Call
13505 hash_referenced_symbol_properties.
13506 (sem_item::update_hash_by_local_refs): Cleanup.
13507 (sem_function::merge): Do not mix up symbol properties.
13508 (sem_variable::equals_wpa): Use compare_symbol_references.
13509 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13510 (sem_item::hash_referenced_symbol_properties): New.
13511 (sem_item::compare_symbol_references): New.
13512 (sem_item::compare_cgraph_references): Remove.
13513
13514 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13515
13516 PR target/26702
13517 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13518 Emit size of local.
13519
13520 2015-04-23 Nick Clifton <nickc@redhat.com>
13521
13522 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13523 ATTRIBUTE_UNUSED to x parameter.
13524 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13525
13526 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13527
13528 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13529 TARGET_CRYPTO to TARGET_P8_VECTOR>
13530 (crypto_vpermxor_<mode>): Likewise.
13531 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13532 (BU_CRYPTO_3A): Likewise.
13533 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13534 (BU_CRYPTO_OVERLOAD_3A): New #define.
13535 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13536 (VPMSUMH): Likewise.
13537 (VPMSUMW): Likewise.
13538 (VPMSUMD): Likewise.
13539 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13540 (VPERMXOR_V4SI): Likewise.
13541 (VPERMXOR_V8HI): Likewise.
13542 (VPERMXOR_V16QI): Likewise.
13543 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13544 BU_CRYPTO_OVERLOAD_2A.
13545 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13546 BU_CRYPTO_OVERLOAD_3A.
13547 * config/rs6000/rs6000.opt (mcrypto): Change description of
13548 option.
13549
13550 2015-04-23 Richard Biener <rguenther@suse.de>
13551
13552 * passes.def: Remove copy propagation passes run directly after CCP.
13553 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13554 SSA names.
13555 (ccp_visit_phi_node): Rework to handle first executable edge
13556 specially.
13557
13558 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13559
13560 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13561 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13562 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13563 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13564 (thumb_legimitimize_reload_address): Remove.
13565 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13566 Remove.
13567 (thumb_legimitimize_reload_address): Remove.
13568
13569 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13570
13571 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13572
13573 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13574
13575 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13576 MAX_LDM_STM_OPS.
13577 (store_multiple): Likewise.
13578
13579 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13580
13581 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13582 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13583 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13584 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13585 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13586 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13587 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13588 Specify issue_rate value.
13589 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13590 large switch statement.
13591 (arm_marvell_pj4_tune): New struct.
13592 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13593 struct.
13594
13595 2015-04-23 Richard Biener <rguenther@suse.de>
13596
13597 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13598 (vect_find_last_store_in_slp_instance): Rename to ...
13599 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13600 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13601 and vec_construct for external defs when estimating prologue cost.
13602 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13603 Compute costs here only when vectorizing loops.
13604 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13605 have been determined.
13606 (vect_schedule_slp_instance): Simplify vectorized code placement
13607 and prepare for in-BB external defs.
13608 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13609 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13610 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13611 guard.
13612 (vect_model_load_cost): Likewise.
13613 (vectorizable_store): Instead add it here.
13614 (vectorizable_load): Likewise.
13615 (vect_is_simple_use): Dump def type textually.
13616
13617 2015-04-23 Richard Biener <rguenther@suse.de>
13618
13619 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13620 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13621 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13622 instead of get_eh_region_from_lp_number.
13623 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13624 the SCEV cache.
13625
13626 2015-04-23 Anton Blanchard <anton@samba.org>
13627
13628 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13629 need for -mprofile-kernel to save LR to stack.
13630
13631 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13632
13633 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13634 adjustments.
13635 (insn_is_swappable_p): Return 1 for a convert from double to
13636 single precision when all of its uses are splats of BE element
13637 zero.
13638
13639 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13640
13641 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13642
13643 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13644
13645 PR target/65456
13646 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13647 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13648 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13649 option.
13650 (rs6000_builtin_mask_for_load): Return 0 for targets with
13651 efficient unaligned VSX accesses so that the vectorizer will use
13652 direct unaligned loads.
13653 (rs6000_builtin_support_vector_misalignment): Always return true
13654 for targets with efficient unaligned VSX accesses.
13655 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13656 stores on targets with efficient unaligned VSX accesses is almost
13657 always the same as the cost of an aligned load or store, so model
13658 it that way.
13659 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13660 unaligned vectors if we have efficient unaligned VSX accesses.
13661 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13662 undocumented option.
13663
13664 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13665
13666 Revert:
13667 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13668
13669 * config.gcc (LIBC_MUSL): New tm_defines macro.
13670 * config/linux.h (OPTION_MUSL): Define.
13671 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13672 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13673 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13674
13675 * config/linux.opt (mmusl): New option.
13676 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13677 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13678
13679 * configure: Regenerate.
13680
13681 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13682
13683 * config.gcc (LIBC_MUSL): New tm_defines macro.
13684 * config/linux.h (OPTION_MUSL): Define.
13685 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13686 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13687 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13688
13689 * config/linux.opt (mmusl): New option.
13690 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13691 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13692
13693 * configure: Regenerate.
13694
13695 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13696
13697 * doc/invoke.texi (-fsanitize-sections): Update description.
13698 * asan.c (set_sanitized_sections): Parse incoming arg.
13699 (section_sanitized_p): Support wildcards.
13700
13701 2015-04-22 Tom de Vries <tom@codesourcery.com>
13702
13703 PR tree-optimization/65823
13704 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13705 equality between ap_copy and ap.
13706
13707 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13708
13709 PR target/47098
13710 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13711
13712 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13713
13714 PR target/47122
13715 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13716
13717 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13718
13719 PR target/55144
13720 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13721 remove already contained t-files.
13722
13723 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13724
13725 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13726 Remove unneeded forward declarations.
13727 (suitable_for_tail_call_opt_p): Commentary typo fix.
13728
13729 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13730
13731 * varasm.c (emit_bss): Remove redundant guard.
13732
13733 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13734
13735 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13736
13737 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13738
13739 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13740
13741 2015-04-22 Hale Wang <hale.wang@arm.com>
13742 Terry Guo <terry.guo@arm.com>
13743
13744 PR rtl-optimization/64818
13745 * combine.c (can_combine_p): Don't combine user-specified
13746 register if it is in an asm input.
13747
13748 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13749
13750 PR ipa/65076
13751 * passes.def (early_optimizations): Add pass_dse.
13752
13753 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13754
13755 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13756 * reorg.c (redundant_insn): Remove ifdef
13757 INSN_REFERENCES_ARE_DELAYED.
13758 * resource.c (mark_referenced_resources): Likewise.
13759
13760 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13761
13762 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13763 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13764 * resource.c (mark_set_resources): Likewise.
13765
13766 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13767
13768 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13769 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13770 (flow_find_head_matching_sequence): Likewise.
13771 (try_head_merge_bb): Likewise.
13772 * combine.c (can_combine_p): Likewise.
13773 (try_combine): Likewise.
13774 (distribute_notes): Likewise.
13775 * df-problems.c (can_move_insns_across): Likewise.
13776 * final.c (final): Likewise.
13777 * gcse.c (insert_insn_end_basic_block): Likewise.
13778 * ira.c (find_moveable_pseudos): Likewise.
13779 * reorg.c (try_merge_delay_insns): Likewise.
13780 (fill_simple_delay_slots): Likewise.
13781 (fill_slots_from_thread): Likewise.
13782 * sched-deps.c (sched_analyze_2): Likewise.
13783
13784 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13785
13786 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13787 PIC_OFFSET_TABLE_REGNUM.
13788
13789 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13790
13791 * alias.c (init_alias_target): Remove ifdef
13792 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13793 * df-scan.c (df_insn_refs_collect): Likewise.
13794 (df_get_regular_block_artificial_uses): Likewise.
13795 (df_get_eh_block_artificial_uses): Likewise.
13796 (df_get_entry_block_def_set): Likewise.
13797 (df_get_exit_block_use_set): Likewise.
13798 * emit-rtl.c (gen_rtx_REG): Likewise.
13799 * ira.c (ira_setup_eliminable_regset): Likewise.
13800 * reginfo.c (init_reg_sets_1): Likewise.
13801 * regrename.c (rename_chains): Likewise.
13802 * reload1.c (reload): Likewise.
13803 (eliminate_regs_in_insn): Likewise.
13804 * resource.c (mark_referenced_resources): Likewise.
13805 (init_resource_info): Likewise.
13806
13807 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13808
13809 * defaults.h (MASK_RETURN_ADDR): New definition.
13810 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13811 MASK_RETURN_ADDR.
13812
13813 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13814
13815 * defaults.h (RETURN_ADDR_OFFSET): New definition.
13816 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13817 RETURN_ADDR_OFFSET.
13818 (expand_builtin_frob_return_addr): Likewise.
13819
13820 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13821
13822 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13823 (try_redirect_by_replacing_jump): Likewise.
13824 (rtl_tidy_fallthru_edge): Likewise.
13825 * combine.c (insn_a_feeds_b): Likewise.
13826 (find_split_point): Likewise.
13827 (simplify_set): Likewise.
13828 * cprop.c (cprop_jump): Likewise.
13829 * cse.c (cse_extended_basic_block): Likewise.
13830 * df-problems.c (can_move_insns_across): Likewise.
13831 * function.c (emit_use_return_register_into_block): Likewise.
13832 * haifa-sched.c (sched_init): Likewise.
13833 * ira.c (find_moveable_pseudos): Likewise.
13834 * loop-invariant.c (find_invariant_insn): Likewise.
13835 * lra-constraints.c (curr_insn_transform): Likewise.
13836 * postreload.c (reload_combine_recognize_const_pattern):
13837 * Likewise.
13838 * reload.c (find_reloads): Likewise.
13839 * reorg.c (delete_scheduled_jump): Likewise.
13840 (steal_delay_list_from_target): Likewise.
13841 (steal_delay_list_from_fallthrough): Likewise.
13842 (redundant_insn): Likewise.
13843 (fill_simple_delay_slots): Likewise.
13844 (fill_slots_from_thread): Likewise.
13845 (delete_computation): Likewise.
13846 * sched-rgn.c (add_branch_dependences): Likewise.
13847
13848 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13849
13850 * genconfig.c (main): Always define HAVE_cc0.
13851 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13852 HAVE_cc0.
13853 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13854 (flow_find_head_matching_sequence): Likewise.
13855 (try_head_merge_bb): Likewise.
13856 * cfgrtl.c (rtl_merge_blocks): Likewise.
13857 (try_redirect_by_replacing_jump): Likewise.
13858 (rtl_tidy_fallthru_edge): Likewise.
13859 * combine.c (do_SUBST_MODE): Likewise.
13860 (insn_a_feeds_b): Likewise.
13861 (combine_instructions): Likewise.
13862 (can_combine_p): Likewise.
13863 (try_combine): Likewise.
13864 (find_split_point): Likewise.
13865 (subst): Likewise.
13866 (simplify_set): Likewise.
13867 (distribute_notes): Likewise.
13868 * cprop.c (cprop_jump): Likewise.
13869 * cse.c (cse_extended_basic_block): Likewise.
13870 * df-problems.c (can_move_insns_across): Likewise.
13871 * final.c (final): Likewise.
13872 (final_scan_insn): Likewise.
13873 * function.c (emit_use_return_register_into_block): Likewise.
13874 * gcse.c (insert_insn_end_basic_block): Likewise.
13875 * haifa-sched.c (sched_init): Likewise.
13876 * ira.c (find_moveable_pseudos): Likewise.
13877 * loop-invariant.c (find_invariant_insn): Likewise.
13878 * lra-constraints.c (curr_insn_transform): Likewise.
13879 * optabs.c (prepare_cmp_insn): Likewise.
13880 * postreload.c (reload_combine_recognize_const_pattern):
13881 * Likewise.
13882 * reload.c (find_reloads): Likewise.
13883 (find_reloads_address_1): Likewise.
13884 * reorg.c (delete_scheduled_jump): Likewise.
13885 (steal_delay_list_from_target): Likewise.
13886 (steal_delay_list_from_fallthrough): Likewise.
13887 (try_merge_delay_insns): Likewise.
13888 (redundant_insn): Likewise.
13889 (fill_simple_delay_slots): Likewise.
13890 (fill_slots_from_thread): Likewise.
13891 (delete_computation): Likewise.
13892 (relax_delay_slots): Likewise.
13893 * sched-deps.c (sched_analyze_2): Likewise.
13894 * sched-rgn.c (add_branch_dependences): Likewise.
13895
13896 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13897
13898 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13899 that is trivially ded on non cc0 targets.
13900 (simplify_set): Likewise.
13901 (mark_used_regs_combine): Likewise.
13902 * cse.c (new_basic_block): Likewise.
13903 (fold_rtx): Likewise.
13904 (cse_insn): Likewise.
13905 (cse_extended_basic_block): Likewise.
13906 (set_live_p): Likewise.
13907 * rtlanal.c (canonicalize_condition): Likewise.
13908 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13909
13910 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13911
13912 * conditions.h: Define macros even if HAVE_cc0 is undefined.
13913 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13914 * final.c: Likewise.
13915 * jump.c: Likewise.
13916 * recog.c: Likewise.
13917 * recog.h: Declare functions even when HAVE_cc0 is undefined.
13918 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13919
13920 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13921
13922 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13923 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13924 * builtins.c (expand_builtin): Remove check if
13925 EH_RETURN_DATA_REGNO is defined.
13926 * df-scan.c (df_bb_refs_collect): Likewise.
13927 (df_get_exit_block_use_set): Likewise.
13928 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13929 * ira-lives.c (process_bb_node_lives): Likewise.
13930 * lra-lives.c (process_bb_lives): Likewise.
13931
13932 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13933
13934 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13935 FIRST_PSEUDO_REG): New.
13936 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13937 (ARG_POINTER_REGNUM): Define to ARGP_REG.
13938 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13939 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13940 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13941 (FIRST_INT_REG): New.
13942 (LAST_INT_REG): New.
13943 (FIRST_*_REG): Define using *_REG.
13944 (LAST_*_REG): Ditto.
13945 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13946 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13947 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13948
13949 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13950
13951 * expmed.c: (synth_mult): Only assume overlapping
13952 shift with previous steps in alg_sub_t_m2 case.
13953
13954 2015-04-21 Richard Biener <rguenther@suse.de>
13955
13956 PR tree-optimization/65650
13957 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13958 transitions involving copies.
13959 (set_lattice_value): Adjust for copy lattice state.
13960 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13961 if that doesn't dominate the merge point.
13962 (bit_value_unop): Adjust what we treat as varying mask.
13963 (bit_value_binop): Likewise.
13964 (bit_value_assume_aligned): Likewise.
13965 (evaluate_stmt): When we simplified to a SSA name record a copy
13966 instead of dropping to varying.
13967 (visit_assignment): Simplify.
13968
13969 * gimple-match.h (gimple_simplify): Add another callback.
13970 * gimple-fold.c (fold_stmt_1): Adjust caller.
13971 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13972 for the 2nd callback.
13973 * gimple-match-head.c (gimple_simplify): Add a callback that is
13974 used to valueize the stmt operands and use it that way.
13975
13976 2015-04-21 Richard Biener <rguenther@suse.de>
13977
13978 PR tree-optimization/65788
13979 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
13980
13981 2015-04-21 Richard Biener <rguenther@suse.de>
13982
13983 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
13984 vec_construct cost by vec_stmt_cost.
13985
13986 2015-04-21 Richard Biener <rguenther@suse.de>
13987
13988 * cfghooks.h (create_basic_block): Replace with two overloads
13989 for RTL and GIMPLE.
13990 (split_block): Likewise.
13991 * cfghooks.c (split_block): Rename to ...
13992 (split_block_1): ... this.
13993 (split_block): Add two type-safe overloads for RTL and GIMPLE.
13994 (split_block_after_labels): Call split_block_1.
13995 (create_basic_block): Rename to ...
13996 (create_basic_block_1): ... this.
13997 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
13998 (create_empty_bb): Call create_basic_block_1.
13999 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14000 split_block_after_labels.
14001 * omp-low.c (expand_parallel_call): Likewise.
14002 (expand_omp_target): Likewise.
14003 (simd_clone_adjust): Likewise.
14004 * tree-chkp.c (chkp_get_entry_block): Likewise.
14005 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14006 create_basic_block overload.
14007 (cgraph_node::expand_thunk): Likewise.
14008 * tree-cfg.c (make_blocks): Likewise.
14009 (handle_abnormal_edges): Likewise.
14010 * tree-inline.c (copy_bb): Likewise.
14011
14012 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14013
14014 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14015 New pattern.
14016 (*xor_one_cmplsidi3_ze): Likewise.
14017
14018 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
14019
14020 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14021 use df_remove_problem rather than manually removing problems, leaving
14022 holes in df->problems_in_order[].
14023
14024 2015-04-21 Tom de Vries <tom@codesourcery.com>
14025
14026 PR tree-optimization/65802
14027 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14028
14029 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14030
14031 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14032 Increase to 128.
14033 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14034 at '.'. Assert that there's enough space for everything.
14035
14036 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14037
14038 PR tree-optimization/64950
14039 Revert:
14040 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14041
14042 PR target/41089
14043 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14044 as volatile.
14045
14046 2015-04-20 Shiva Chen <shiva0217@gmail.com>
14047
14048 PR rtl-optimization/64916
14049 * cfgcleanup.c (values_equal_p): New function.
14050 (can_replace_by): Use it.
14051
14052 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
14053
14054 PR c++/65801
14055 * doc/invoke.texi ([-Wnarrowing]): Update.
14056
14057 2015-04-20 Jeff Law <law@redhat.com>
14058
14059 PR tree-optimization/65658
14060 * tree-ssa-threadupdate.c (redirection_block_p): Remove
14061 redundant test for GIMPLE_ASSIGN in last change.
14062
14063 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
14064
14065 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14066 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14067 (legitimize_tls_address): Ditto.
14068 (ix86_expand_move): Ditto.
14069 (ix86_expand_binary_operator): Remove reload_in_progress checks.
14070 (ix86_expand_unary_operator): Ditto.
14071 * config/i386/predicates.md (index_register_operand): Ditto.
14072
14073 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
14074
14075 * reorg.c (try_merge_delay_insns): Improve correctness checking
14076 for targets with multiple delay slots.
14077
14078 2015-04-20 Jeff Law <law@redhat.com>
14079
14080 PR tree-optimization/65658
14081 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14082 statements too.
14083
14084 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14085
14086 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14087 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14088 Delete.
14089
14090 2015-04-20 Jakub Jelinek <jakub@redhat.com>
14091
14092 PR debug/65807
14093 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14094
14095 2015-04-20 Richard Biener <rguenther@suse.de>
14096
14097 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14098 * gimple-fold.c (gimple_build_valueize): New function.
14099 (gimple_build): Always use gimple_build_valueize as valueize hook.
14100
14101 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14102
14103 PR target/64134
14104 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14105 and overwrite variable parts if <= 1/2 the elements are variable.
14106
14107 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
14108
14109 PR rtl-optimization/65805
14110 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14111 Don't use difference of offset and previous offset if
14112 update_sp_offset is non-zero.
14113 (eliminate_regs_in_insn): Ditto.
14114 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14115 lra_eliminate_regs_1 call.
14116 * lra-constraints.c (get_equiv_with_elimination): Ditto.
14117
14118 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
14119
14120 * hash-table.h: Remove version of hash_table that stored value_type *.
14121 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14122 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14123 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14124 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14125 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14126 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14127 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14128 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14129 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14130 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14131 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14132 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14133 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14134 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14135 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14136 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14137
14138 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14139 Jakub Jelinek <jakub@redhat.com>
14140
14141 PR target/65787
14142 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14143 subsequent SH_NONE operand does not overwrite an existing *special
14144 value.
14145 (adjust_extract): Handle case where a vec_extract operation is
14146 wrapped in a PARALLEL.
14147
14148 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14149
14150 PR target/65780
14151 * config/i386/i386.c (ix86_binds_local_p): Define only if
14152 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14153
14154 2015-04-17 Jeff Law <law@redhat.com>
14155
14156 PR tree-optimization/47679
14157 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14158 * tree-ssa-scopedtables.c: New file.
14159 * tree-ssa-scopedtables.h: New file.
14160 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14161 (const_and_copies): Change name/type.
14162 (record_const_or_copy): Move into tree-ssa-scopedtables.c
14163 (record_const_or_copy_1): Similarly.
14164 (restore_vars_to_original_value): Similarly.
14165 (pass_dominator::execute): Create and destroy const_and_copies table.
14166 (thread_across_edge): Update passing of const_and_copies.
14167 (record_temporary_equivalence): Use method calls rather than
14168 manipulating const_and_copies directly.
14169 (record_equality, cprop_into_successor_phis): Similarly.
14170 (dom_opt_dom_walker::before_dom_children): Similarly.
14171 (dom_opt_dom_walker::after_dom_children): Similarly.
14172 (eliminate_redundant_computations): Similarly.
14173 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14174 (record_temporary_equivalence): Likewise.
14175 (invalidate_equivalences): Likewise.
14176 (record_temporary_equivalences_from_phis): Update due to type
14177 change of const_and_copies. Use method calls rather than
14178 manipulating the stack directly.
14179 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14180 (thread_through_normal_block, thread_across_edge): Likewise.
14181 (thread_across_edge): Likewise.
14182 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14183 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
14184 of equiv_stack.
14185 (identify_jump_threads): Update due to type change of equiv_stack.
14186 (finalize_jump_threads): Delete the equiv_stack when complete.
14187
14188 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
14189
14190 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14191 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14192 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14193
14194 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
14195
14196 PR target/65535
14197 * config.gcc: Exit with a comment when we do not have a major version
14198 number for the FreeBSD target.
14199
14200 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14201
14202 PR target/65689
14203 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14204 maybe_allows_mem bitfields.
14205 (maybe_allows_none_start, maybe_allows_none_end,
14206 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14207 maybe_allows_mem_end): New variables.
14208 (compute_maybe_allows): New function.
14209 (add_constraint): Use it to initialize maybe_allows_reg and
14210 maybe_allows_mem fields.
14211 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14212 is_address constraints such that those that allow neither mem nor
14213 reg come first, then those that only allow reg but not mem, then
14214 those that only allow mem but not reg, then the rest.
14215 (write_allows_reg_mem_function): New function.
14216 (write_tm_preds_h): Call it.
14217 * stmt.c (parse_output_constraint, parse_input_constraint): Use
14218 the generated insn_extra_constraint_allows_reg_mem function
14219 instead of always setting *allows_reg = true; *allows_mem = true;
14220 for unknown extra constraints.
14221
14222 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14223
14224 PR target/65780
14225 * output.h (default_binds_local_p_3): New.
14226 * varasm.c (default_binds_local_p_3): Make it public. Take an
14227 argument to indicate if common symbol may be local. If common
14228 symbol may be local, treat non-external variable as defined
14229 locally.
14230 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14231 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14232 * config/i386/i386.c (ix86_binds_local_p): New.
14233 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14234 ix86_binds_local_p.
14235
14236 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14237
14238 PR debug/65771
14239 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14240 trying mem_loc_descriptor on XEXP (rtl, 0).
14241
14242 2015-04-17 Martin Liska <mliska@suse.cz>
14243
14244 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14245 Release symbol_compare_collection.
14246 * ipa-reference.c: Add TODO that a vector should be released.
14247
14248 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14249
14250 PR target/65296
14251 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14252 to new AVR-LibC file layout (bug #44574).
14253 (*avrlibc_devicelib): Same.
14254 * config/avr/avr-mcus.def: Adjust comments.
14255 * config/avr/avr.opt (nodevicelib): Adjust help.
14256
14257 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14258
14259 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14260
14261 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14262
14263 PR c++/64527
14264 * gimplify.c (gimplify_init_constructor): Always emit a
14265 side-effecting constructor.
14266
14267 2015-04-17 Tom de Vries <tom@codesourcery.com>
14268
14269 PR tree-optimization/64950
14270 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14271 in cfun->curr_properties.
14272 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14273 if we generate an IFN_VA_ARG.
14274 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14275 function if PROP_gimple_lva is not set in src function.
14276
14277 2015-04-17 Tom de Vries <tom@codesourcery.com>
14278 Michael Matz <matz@suse.de>
14279
14280 PR tree-optimization/64950
14281 * gimple-iterator.c (update_modified_stmts): Remove static.
14282 * gimple-iterator.h (update_modified_stmts): Declare.
14283 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14284 (gimplify_va_arg_internal): New function.
14285 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14286 * gimplify.h (gimplify_va_arg_internal): Declare.
14287 * internal-fn.c (expand_VA_ARG): New unreachable function.
14288 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14289 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14290 (expand_ifn_va_arg): New function.
14291 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14292 (pass_stdarg::execute): Call expand_ifn_va_arg.
14293 (pass_data_lower_vaarg): New pass_data.
14294 (pass_lower_vaarg): New gimple_opt_pass.
14295 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14296 (make_pass_lower_vaarg): New function.
14297 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14298 properties_required field.
14299 * passes.def (all_passes): Add pass_lower_vaarg.
14300 * tree-pass.h (PROP_gimple_lva): Add define.
14301 (make_pass_lower_vaarg): Declare.
14302
14303 2015-04-17 Tom de Vries <tom@codesourcery.com>
14304
14305 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14306 * calls.c (call_expr_flags): Same.
14307
14308 2015-04-17 Tom de Vries <tom@codesourcery.com>
14309
14310 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14311 (pass_stdarg::execute): ... here.
14312
14313 2015-04-17 Tom de Vries <tom@codesourcery.com>
14314 Michael Matz <matz@suse.de>
14315
14316 * tree-cfg.c (make_blocks_1): Factor out of ...
14317 (make_blocks): ... here.
14318 (make_edges_bb): Factor out of ...
14319 (make_edges): ... here.
14320 (gimple_find_sub_bbs): New function.
14321 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14322
14323 2015-04-17 Tom de Vries <tom@codesourcery.com>
14324
14325 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14326
14327 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14328
14329 * asan.c (set_sanitized_sections): New function.
14330 (section_sanitized_p): Ditto.
14331 (asan_protect_global): Optionally sanitize user-defined
14332 sections.
14333 * asan.h (set_sanitized_sections): Declare new function.
14334 * common.opt (fsanitize-sections): New option.
14335 * doc/invoke.texi (-fsanitize-sections): Document new option.
14336 * opts-global.c (handle_common_deferred_options): Handle new
14337 option.
14338
14339 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14340
14341 PR debug/65771
14342 * dwarf2out.c (loc_list_from_tree): Return NULL
14343 for DEBUG_EXPR_DECL.
14344
14345 2015-04-17 Christian Bruel <christian.bruel@st.com>
14346
14347 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14348 same attributes.
14349
14350 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14351
14352 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14353 node itself when computing left conflict subnode size.
14354
14355 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14356
14357 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14358 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14359 *fop_<mode>_1_sse using enabled attribute. Use
14360 register_mixssei387nonimm_operand operand 1 predicate. Change
14361 alternative 3 constraints from "x" to "v".
14362
14363 2015-04-16 Richard Biener <rguenther@suse.de>
14364
14365 PR tree-optimization/65774
14366 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14367 bit-value tracking on.
14368
14369 2015-04-16 Richard Biener <rguenther@suse.de>
14370
14371 PR tree-optimization/64277
14372 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14373 simplify upper bound handling.
14374 (search_for_addr_array): Simplify.
14375 (check_array_bounds): Handle ADDR_EXPRs here.
14376 (check_all_array_refs): Simplify.
14377
14378 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14379
14380 * config/i386/i386.c (print_reg): Rewrite function.
14381
14382 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14383
14384 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14385 Invert the condition.
14386
14387 2015-04-16 Renlin Li <renlin.li@arm.com>
14388
14389 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14390 simplifications for UNSIGNED_FLOAT.
14391
14392 2015-04-16 Nick Clifton <nickc@redhat.com>
14393
14394 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14395 MUL_UNINIT.
14396 (enum rl78_cpu_type): New.
14397 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14398 (umulhi3_shift_virt): Remove m constraint from operand 1.
14399 (umulqihi3_virt): Likewise.
14400 * config/rl78/rl78.c (rl78_option_override): Add code to process
14401 -mcpu and -mmul options.
14402 (rl78_alloc_physical_registers): Add code to handle divhi and
14403 divsi valloc attributes.
14404 (set_origin): Likewise.
14405 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14406 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14407 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14408 __RL78_Gxx__.
14409 (ASM_SPEC): Pass -mcpu on to assembler.
14410 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14411 (mulqi3_rl78): Likewise.
14412 (mulhi3_g13): Likewise.
14413 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14414 (mulsi3): Likewise.
14415 (mulhi3_g14): Add clobbers of AX and BC.
14416 (mulsi3_g14): Likewise.
14417 (mulsi3_g13): Likewise.
14418 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14419 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14420 * config/rl78/rl78.opt (mmul): Initialise value to
14421 RL78_MUL_UNINIT.
14422 (mcpu): New option.
14423 (m13, m14, mrl78): New option aliases.
14424 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14425 (MULTILIB_DIRNAMES): Add g13 and g14.
14426 * doc/invoke.texi: Document -mcpu and -mmul options.
14427
14428 2015-04-16 Richard Biener <rguenther@suse.de>
14429
14430 * tree-ssa-ccp.c (likely_value): See if we have operands that
14431 are marked as never simulate again and return CONSTANT in this
14432 case.
14433 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14434 not have any operands that will be simulated again as
14435 not being simulated again.
14436
14437 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14438
14439 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14440 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14441 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14442 attribute.
14443 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14444 enabled attribute.
14445 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14446 *float<SWI48:mode><MODEF:mode>2_sse.
14447 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14448 enabled attribute.
14449 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14450 enabled attribute.
14451
14452 2015-04-15 Tom de Vries <tom@codesourcery.com>
14453
14454 PR other/65487
14455 * function.c (push_dummy_function): New function.
14456 (init_dummy_function_start): Use push_dummy_function.
14457 (pop_dummy_function): New function. Factored out of ...
14458 (expand_dummy_function_end): ... here.
14459 * function.h (push_dummy_function, pop_dummy_function): Declare.
14460 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14461 pop_dummy_function.
14462 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14463
14464 2015-04-15 Jeff Law <law@redhat.com>
14465
14466 PR tree-optimization/47679
14467 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14468 need for forward declaration in upcoming changes.
14469 (record_conditions, record_edge_info): Likewise.
14470
14471 PR rtl-optimization/42522
14472 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14473 SIGN_EXTRACT as a whole object rather than simplifying
14474 its operand.
14475
14476 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14477
14478 PR ipa/65765
14479 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14480 and GIMPLE_PREDICT use break instead of return true. For
14481 GIMPLE_EH_DISPATCH, compare dispatch region.
14482
14483 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14484
14485 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14486 details about the implementation. Make clear preference for
14487 __atomic builtins. Reduce possibility of future change.
14488
14489 2015-04-15 Nick Clifton <nickc@redhat.com>
14490
14491 * config/rx/rx.opt (mallow-string-insns): New option.
14492 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14493 builtin if string instructions are denied.
14494 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14495 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14496 appropriate.
14497 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14498 * config/rx/rx.md (movstr): Enable pattern only if string
14499 instructions are allowed.
14500 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14501 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14502 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14503 (MULTILIB_DIRNAMES): Add no-strings.
14504 * doc/invoke.texi: Document -mno-allow-string-insns.
14505
14506 2015-04-15 Alan Modra <amodra@gmail.com>
14507
14508 PR target/65408
14509 PR target/58744
14510 PR middle-end/36043
14511 * calls.c (load_register_parameters): Don't load past end of
14512 mem unless suitably aligned.
14513
14514 2015-04-15 Nick Clifton <nickc@redhat.com>
14515
14516 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14517 decrement instruction as being frame related.
14518 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14519 based addresses.
14520 If zero extending a function address enclose the operation in
14521 %code(...).
14522 (rl78_preferred_reload_class): New function.
14523 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14524 * config/rl78/rl78.md: Remove useless constraints in expanders.
14525 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14526 (mulhi3_rl78): Likewise.
14527 (mulhi3_g13): Likewise.
14528 (mulsi3_rl78): Likewise.
14529 (es_addr): Move to before the multiply patterns.
14530
14531 2015-04-15 Alan Modra <amodra@gmail.com>
14532
14533 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14534 and sequence_stack. Add seq.
14535 (seq_stack): Delete.
14536 * function.c (prepare_function_start): Don't access x_last_insn.
14537 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14538 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14539 * emit_rtl.c (start_sequence, push_topmost_sequence,
14540 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14541 sequence accessors.
14542 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14543 remove_insn): Likewise. Simplify.
14544 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14545 and pop_topmost_sequence.
14546 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14547 debug insns.
14548 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14549
14550 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14551
14552 PR target/65729
14553 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14554 the assertiion.
14555
14556 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14559 (LEGACY_INT_REGNO_P): Ditto.
14560 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14561 (ANY_MASK_REG_P): Remove.
14562 (BND_REG_P): Rename from ANY_BND_REG_P.
14563 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14564 legacy integer registers. Do not handle MMX_REG_P in a special way.
14565 Merge 64byte and 32byte SSE handling.
14566
14567 2015-04-14 Nick Clifton <nickc@redhat.com>
14568
14569 * expr.c (expand_assignment): Force an address offset computation
14570 into a register before changing its mode.
14571 (expand_expr_real_1): Likewise.
14572
14573 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14574
14575 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14576 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14577 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14578 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14579 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14580 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14581 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14582 and __aarch64_vget_lane_any.
14583
14584 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14585
14586 PR rtl-optimization/65761
14587 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14588 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14589
14590 2015-04-14 Richard Biener <rguenther@suse.de>
14591
14592 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14593 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14594
14595 2015-04-14 Richard Biener <rguenther@suse.de>
14596
14597 PR tree-optimization/65758
14598 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14599 against -1.
14600 (ccp_lattice_meet): Likewise.
14601 (bit_value_unop): Likewise.
14602 (bit_value_binop): Likewise.
14603 (bit_value_assume_aligned): Likewise.
14604
14605 2015-04-14 Christian Bruel <christian.bruel@st.com>
14606
14607 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14608 function.
14609
14610 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14611
14612 PR tree-optimization/63387
14613 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14614 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14615
14616 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14617
14618 * config/i386/predicates.md (any_QIreg_operand): Rename from
14619 q_regs_operand. Do not process subregs.
14620 (QIreg_operand): Use QI_REGNO_P predicate.
14621 (ext_QIreg_operand): Ditto.
14622 (ext_register_operand): Ditto.
14623 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14624 (AND splitters): Ditto.
14625 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14626 (AND with -256 splitter): Use any_QIreg_operand predicate and
14627 SWI248 mode for operand 0.
14628 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14629 mode for operand 0.
14630 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14631
14632 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14633
14634 * doc/plugins.texi: Rewrite first introductory paragraph.
14635
14636 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14637
14638 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14639 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14640
14641 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14642
14643 * ipa-profie.c (ipa_profile): Check number of parameters
14644 and possible polymorphic call targets before
14645 devirtualizing.
14646
14647 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14648
14649 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14650 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14651
14652 2015-04-13 Richard Biener <rguenther@suse.de>
14653
14654 PR tree-optimization/65204
14655 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14656 takens for bit-CCP.
14657
14658 2015-04-13 Richard Biener <rguenther@suse.de>
14659
14660 PR target/65660
14661 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14662 and cond_not_taken_branch_cost to 4 and 2.
14663 (bdver2_cost): Likewise.
14664 (bdver3_cost): Likewise.
14665 (bdver4_cost): Likewise.
14666
14667 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14668
14669 * hash-table.h (hash_table constructor): Add mem stats.
14670 (alloc_entries): Likewise.
14671
14672 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14673
14674 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14675 * passes.c (execute_one_pass): Only add transform if pass has one.
14676
14677 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14678
14679 * config/i386/i386.c (ix86_option_override_internal): Don't set
14680 -fprefetch-loop-arrays if optimizing for size.
14681
14682 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14683 Gerald Pfeifer <gerald@pfeifer.com>
14684
14685 * doc/contrib.texi (Contributors): Add Martin Jambor and
14686 Michael Matz.
14687
14688 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14689
14690 * BASE-VER: Set to 6.0.0.
14691
14692 PR tree-optimization/65747
14693 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14694 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14695
14696 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14697
14698 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14699 sentence. Improve grammar.
14700
14701 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14702
14703 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14704
14705 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14706
14707 PR ipa/65743
14708 * ipa-inline-transform.c (speculation_removed): Remove static var.
14709 (check_speculations): New function.
14710 (clone_inlined_nodes): Do not check spculations.
14711 (inline_call): Call check_speculations.
14712 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14713 consider non-invariants.
14714
14715 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14716 Martin Liska <mliska@suse.cz>
14717
14718 PR ipa/65722
14719 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14720 variable can not match.
14721 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14722 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14723
14724 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14725
14726 PR tree-optimization/65735
14727 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14728 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14729 same bb rather than just into the same phi node.
14730 (thread_through_normal_block): Adjust caller.
14731
14732 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14733
14734 * doc/contrib.texi (Contributors): Add Ira Rosen.
14735
14736 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14737
14738 * gcov.c (find_source): Fix miswording in error message.
14739 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14740 (ix86_expand_sse_comi_round): Fix typo in error message.
14741
14742 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14743
14744 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14745
14746 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14747
14748 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14749
14750 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14751
14752 PR target/65710
14753 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14754 Print bad_spills_num and insn_pseudos_num.
14755
14756 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14757
14758 PR target/65694
14759 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14760 when creating +1 values for SImode.
14761
14762 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14763
14764 PR target/65729
14765 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14766 assert.
14767
14768 2015-04-10 Jakub Jelinek <jakub@redhat.com>
14769 Iain Sandoe <iain@codesourcery.com>
14770
14771 PR target/65351
14772 * configure: Regenerate.
14773
14774 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14775
14776 PR target/65671
14777 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14778
14779 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
14780
14781 * doc/contrib.texi (Contributors): Add John Marino.
14782
14783 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14784
14785 PR tree-optimization/65709
14786 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14787 TREE_TYPE (TREE_TYPE (t)).
14788
14789 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
14790
14791 PR target/65710
14792 * lra-int.h (lra_bad_spill_regno_start): New.
14793 * lra.c (lra_bad_spill_regno_start): New.
14794 (lra): Set up lra_bad_spill_regno_start. Set up
14795 lra_constraint_new_regno_start unconditionally.
14796 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14797 spill preferences.
14798
14799 2015-04-09 Marek Polacek <polacek@redhat.com>
14800 Jakub Jelinek <jakub@redhat.com>
14801
14802 PR middle-end/65554
14803 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14804 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14805 of STRIP_NOPS.
14806
14807 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
14808
14809 PR rtl-optimization/65693
14810 * combine.c (is_parallel_of_n_reg_sets): Move outside of
14811 #ifndef HAVE_cc0.
14812
14813 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
14814
14815 PR target/65296
14816 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14817 device specs file if "device-specs%s" didn't resolve to a path.
14818
14819 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14820
14821 PR target/65676
14822 * config/i386/i386.c (fixup_modeless_constant): New.
14823 (ix86_expand_args_builtin): Fixup modeless constant operand.
14824 (ix86_expand_round_builtin): Ditto.
14825 (ix86_expand_special_args_builtin): Ditto.
14826 (ix86_expand_builtin): Ditto.
14827
14828 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14829
14830 PR target/65693
14831 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14832 any pow2 integer in between 2 and 0x80000000U inclusive.
14833
14834 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
14835
14836 PR rtl-optimization/65693
14837 * combine.c (is_parallel_of_n_reg_sets): Change first argument
14838 from an rtx_insn * to an rtx.
14839 (try_combine): Adjust both callers. Use it once more.
14840
14841 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14842
14843 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14844 (chkp_make_static_const_bounds): Search existing
14845 symbol by assembler name. Use make_decl_one_only.
14846 (chkp_get_zero_bounds_var): Remove node search which
14847 is now performed in chkp_make_static_const_bounds.
14848 (chkp_get_none_bounds_var): Likewise.
14849
14850 2015-04-08 Michael Witten <mfwitten@gmail.com>
14851
14852 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14853 to an example.
14854
14855 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14856
14857 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14858
14859 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14860
14861 * doc/extend.texi (__sync Builtins): Fix grammar.
14862
14863 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14864
14865 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14866
14867 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14868
14869 * varasm.c (emit_local): Move definition of align.
14870
14871 2015-04-08 Julian Brown <julian@codesourcery.com>
14872
14873 * config/nvptx/mkoffload.c (process): Support variable mapping.
14874
14875 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
14876
14877 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14878 alpha_links **.
14879 (alpha_write_one_linkage): Correct typo.
14880
14881 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14882
14883 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14884
14885 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14886
14887 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14888
14889 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14890
14891 * tree-chkp.h (chkp_insert_retbnd_call): New.
14892 * tree-chkp.c (chkp_insert_retbnd_call): New.
14893 * ipa-split.c (insert_bndret_call_after): Remove.
14894 (split_function): Use chkp_insert_retbnd_call.
14895 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14896 bounds for instrumented functions.
14897
14898 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
14899
14900 PR ipa/65540
14901 * calls.c (initialize_argument_information): When producing tail
14902 call also turn SSA_NAMES passed by references to original PARM_DECLs
14903
14904 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
14905
14906 PR target/65648
14907 * lra-remat.c (do_remat): Process input and non-input insn
14908 registers separately.
14909
14910 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14911
14912 PR debug/65678
14913 * valtrack.c (debug_lowpart_subreg): New function.
14914 (dead_debug_insert_temp): Use it.
14915
14916 PR middle-end/65680
14917 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14918 into signed HOST_WIDE_INT the same as negative bit_offset.
14919
14920 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
14921
14922 * ipa-comdats.c (ipa_comdats): Visit all thunks
14923 to set proper comdat group.
14924
14925 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14926
14927 PR target/65489
14928 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14929 on constants for NEON VSTRUCT modes.
14930
14931 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14932 Iain Sandoe <iain@codesourcery.com>
14933
14934 PR target/65351
14935 * configure: Regenerate.
14936
14937 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14938
14939 PR target/65614
14940 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14941 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14942 that LFD is used to load double constants instead of LFS. Add
14943 defaults for all costs structures. Add comments for missing
14944 initialization fields.
14945 (size32_cost): Likewise.
14946 (size64_cost): Likewise.
14947 (rs64a_cost): Likewise.
14948 (mpccore_cost): Likewise.
14949 (ppc403_cost): Likewise.
14950 (ppc405_cost): Likewise.
14951 (ppc440_cost): Likewise.
14952 (ppc476_cost): Likewise.
14953 (ppc601_cost): Likewise.
14954 (ppc603_cost): Likewise.
14955 (ppc604_cost): Likewise.
14956 (ppc604e_cost): Likewise.
14957 (ppc620_cost): Likewise.
14958 (ppc630_cost): Likewise.
14959 (ppccell_cost): Likewise.
14960 (ppc750_cost): Likewise.
14961 (ppc7450_cost): Likewise.
14962 (ppc8540_cost): Likewise.
14963 (ppce300c2c3_cost): Likewise.
14964 (ppce500mc_cost): Likewise.
14965 (ppce500mc64_cost): Likewise.
14966 (ppce5500_cost): Likewise.
14967 (ppce6500_cost): Likewise.
14968 (titan_cost): Likewise.
14969 (power4_cost): Likewise.
14970 (power6_cost): Likewise.
14971 (power7_cost): Likewise.
14972 (power8_cost): Likewise.
14973 (ppca2_cost): Likewise.
14974 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
14975
14976 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
14977 instead of XXLOR to copy SFmode to clear out dirty bits created
14978 when SFmode denormals are generated.
14979 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
14980 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
14981
14982 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14983
14984 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
14985 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
14986 * config/aarch64/aarch64-tune.md: Regenerate.
14987
14988 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14989
14990 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
14991 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
14992 * config/arm/arm-cores.def (exynos-m1): New core.
14993 * config/arm/arm-tune.md: Regenerate.
14994 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
14995 * config/arm/bpabi.h: Likewise.
14996
14997 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
14998
14999 * ipa-cp (set_single_call_flag): Remove too
15000 restrictive assert.
15001
15002 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15003
15004 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15005 GOMP_offload_unregister from the destructor.
15006
15007 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15008
15009 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15010 flags for instrumentation thunk.
15011 (chkp_produce_thunks): Likewise.
15012
15013 2015-04-05 Martin Liska <mliska@suse.cz>
15014
15015 PR ipa/65665
15016 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15017 has computed data structure.
15018 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15019
15020 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
15021
15022 * invoke.texi (inline-unit-growth): Increase growth to 20%
15023 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15024
15025 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
15026
15027 PR target/65647
15028 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
15029 value checking.
15030 (lra_rematerialization_iter): New.
15031 * lra.c (lra): Initialize lra_rematerialization_iter.
15032 Stop updating lra_constraint_new_regno_start after switching of
15033 inheritance and rematerialization.
15034 * lra-remat.c (lra_rematerialization_iter): New.
15035 (lra_remat): Add printing pass iteration. Do rematerialization
15036 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15037
15038 2015-04-04 Richard Biener <rguenther@suse.de>
15039
15040 PR tree-optimization/64909
15041 PR tree-optimization/65660
15042 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15043 to take a cost vector for scalar iteration cost.
15044 (vect_get_single_scalar_iteration_cost): Likewise.
15045 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15046 Compute the scalar iteration cost into a cost vector.
15047 (vect_get_known_peeling_cost): Use the scalar cost vector to
15048 account for the cost of the peeled iterations.
15049 (vect_estimate_min_profitable_iters): Likewise.
15050 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15051 Likewise.
15052
15053 2015-04-04 Alan Modra <amodra@gmail.com>
15054
15055 PR target/65576
15056 PR target/65240
15057 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15058 0.0 constant unless TARGET_VSX.
15059 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15060 alternative.
15061
15062 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15063
15064 PR ipa/65654
15065 * ipa-inline-transform.c (inline_call): Skip sanity check to work
15066 around the ICE
15067
15068 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15069
15070 PR ipa/65655
15071 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15072 speculative indirect edges to avoid ordering issue.
15073
15074 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15075
15076 PR ipa/65076
15077 * ipa-inline.c (edge_badness): Add combined size to the denominator.
15078
15079 2015-04-03 Jakub Jelinek <jakub@redhat.com>
15080
15081 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15082 TYPE_ARTIFICIAL on the .omp_data* types.
15083
15084 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15085
15086 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15087 instrumentation thunks.
15088
15089 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15090
15091 * config/i386/i386.c (ix86_expand_call): Avoid nested
15092 PARALLEL in returned call value.
15093
15094 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15095
15096 * lto-cgraph.c (input_cgraph_1): Always link instrumented
15097 assembler name with original one.
15098
15099 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15100
15101 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15102
15103 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15104
15105 Revert parts of r216820.
15106 * config/i386/i386.md (movqi_internal): Correct type calculation
15107 for alternatives 3 and 5.
15108
15109 2015-04-02 Jakub Jelinek <jakub@redhat.com>
15110
15111 PR preprocessor/61977
15112 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15113 predefine __vector/__bool/__pixel macros nor context sensitive
15114 macros for CLK_ASM.
15115 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15116
15117 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
15118
15119 * config/pa/pa.c (pa_output_move_double): Directly handle register
15120 indexed memory operand. Simplify handling of scaled register indexed
15121 memory operands.
15122
15123 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15124
15125 PR driver/65444
15126 * config/i386/linux-common.h (MPX_SPEC): New.
15127 (CHKP_SPEC): Add MPX_SPEC.
15128 * doc/invoke.texi (-fcheck-pointer-boudns): Document
15129 possible issues with '-z bndplt' support in linker.
15130
15131 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15132
15133 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15134 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15135 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15136 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15137 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15138
15139 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
15140
15141 * config/i386/sync.md (UNSPEC_MOVA): Remove.
15142 (atomic_load<mode>): Change operand 0 predicate to
15143 nonimmediate_operand and fix up the destination when needed.
15144 Use UNSPEC_LDA.
15145 (atomic_loaddi_fpu): Use UNSPEC_LDA.
15146 (atomic_store<mode>): Change operand 1 predicate to
15147 nonimmendate_operand and move the source to register when needed.
15148 Use UNSPEC_STA.
15149 (atomic_store<mode>_1): Use UNSPEC_STA.
15150 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15151 Fix moves from memory operand. Use UNSPEC_STA.
15152
15153 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15154
15155 * expmed.c (strict_volatile_bitfield_p): Check that the access will
15156 not cross a MODESIZE boundary.
15157 (store_bit_field, extract_bit_field): Added assertions in the
15158 strict volatile bitfields code path.
15159
15160 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
15161
15162 PR target/65624
15163 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15164 Increase args array size by one to avoid buffer overflow.
15165
15166 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15167
15168 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15169 split_part.
15170 * ipa-inline.c (edge_badness): Add wrapper penalty.
15171 (sum_callers): Move up.
15172 (inline_small_functions): Set single_caller.
15173 * ipa-inline.h (inline_summary): Add single_caller.
15174 * ipa-split.c (split_function): Set split_part.
15175 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15176 * cgraph.h (cgraph_node): Add split_part.
15177
15178 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
15179
15180 PR target/58945
15181 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15182 Do not split operands 0 and operands 2 to halfmode.
15183 (atomic_compare_and_swap<mode>): Update for
15184 atomic_compare_and_swap<dwi>_doubleword changes.
15185
15186 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15187
15188 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15189 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15190 no caching is done.
15191
15192 2015-03-31 Martin Liska <mliska@suse.cz>
15193
15194 PR ipa/65557
15195 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15196 has already filled up function summary.
15197 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15198
15199 2015-03-31 Richard Biener <rguenther@suse.de>
15200
15201 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15202 of types.
15203
15204 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
15205
15206 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15207 nested functions.
15208 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15209 (s390_asm_output_function_label): Adapt to new signature of
15210 s390_function_num_hotpatch_hw
15211 Optimise the code generating assembler output.
15212 Add comments to assembler file.
15213
15214 2015-03-31 Richard Biener <rguenther@suse.de>
15215
15216 PR middle-end/65626
15217 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15218 of the noreturn call so it is last and cleanup_control_flow_bb
15219 can do the CFG part.
15220
15221 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
15222
15223 PR target/65531
15224 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15225 same_comdat_group for external symbols.
15226 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15227 infinite same_comdat_group traversal loop.
15228
15229 2015-03-31 Jakub Jelinek <jakub@redhat.com>
15230
15231 PR plugins/61176
15232 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15233 automatically to $headers.
15234
15235 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15236
15237 PR ipa/65610
15238 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15239 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15240 function.
15241 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15242 Use it.
15243 * ipa-prop.c (param_type_may_change_p): Likewise.
15244 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15245 (remove_unused_scope_block_p): Add in_ctor_dtor_block
15246 argument. Before inlining, preserve
15247 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15248 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15249 recursive calls.
15250 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15251
15252 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15253
15254 PR ipa/65076
15255 * ipa-inline.c (edge_badness): Base denominator on callee's
15256 grwoth squared.
15257
15258 2015-03-27 Martin Jambor <mjambor@suse.cz>
15259
15260 PR ipa/65478
15261 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15262 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15263 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15264 node_calling_single_call.
15265 * ipa-cp.c (count_callers): New function.
15266 (set_single_call_flag): Likewise.
15267 (initialize_node_lattices): Count callers and set single_flag_call if
15268 necessary.
15269 (incorporate_penalties): New function.
15270 (good_cloning_opportunity_p): Use it, dump new flags.
15271 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15272 * doc/invoke.texi (ipa-cp-recursion-penalty,
15273 ipa-cp-single-call-pentalty): Document.
15274
15275 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15276
15277 PR ipa/65588
15278 * symtab.c (symtab_node::get_partitioning_class): Register vars
15279 are duplicated.
15280 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15281 decls for non-symbols.
15282
15283 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15284
15285 PR target/65248
15286 * output.h (default_binds_local_p_2): New.
15287 * varasm.c (default_binds_local_p_2): Renamed to ...
15288 (default_binds_local_p_3): This. Don't return true on protected
15289 data symbol if protected data may be external.
15290 (default_binds_local_p): Use default_binds_local_p_3.
15291 (default_binds_local_p_1): Likewise.
15292 (default_binds_local_p_2): New.
15293 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15294 default_binds_local_p_2 if TARGET_MACHO is undefined.
15295
15296 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15297
15298 PR target/65593
15299 * config/i386/i386.c (legitimize_pic_address): If base
15300 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15301 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15302
15303 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15304
15305 PR target/65531
15306 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15307 comdat groups.
15308
15309 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15310
15311 PR ipa/65600
15312 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15313 of optimized out indirect call.
15314 (redirect_to_unreachable): Always build symbol table node for
15315 BUILT_IN_UNREACHABLE
15316
15317 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15318
15319 PR target/65407
15320 * ira-costs.c (record_reg_classes): Process all constraint string
15321 containing 0-9.
15322
15323 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15324
15325 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15326 memory_operand.
15327
15328 PR target/65052
15329 * config/c6x/constraints.md (S3): New constraint.
15330 * config/c6x/c6x.md (real_jump): Use it.
15331
15332 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15333
15334 PR middle-end/65595
15335 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15336 do redirection if the call is not optimized out.
15337
15338 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15339
15340 PR target/65495
15341 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15342 (fchkp-check-incomplete-type): Add LTO.
15343 (fchkp-zero-input-bounds-for-main): Likewise.
15344 (fchkp-first-field-has-own-bounds): Likewise.
15345 (fchkp-narrow-bounds): Likewise.
15346 (fchkp-narrow-to-innermost-array): Likewise.
15347 (fchkp-use-static-bounds): Likewise.
15348 (fchkp-use-static-const-bounds): Likewise.
15349 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15350
15351 2015-03-27 Marek Polacek <polacek@redhat.com>
15352
15353 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15354
15355 2015-03-27 Marek Polacek <polacek@redhat.com>
15356
15357 PR sanitizer/65583
15358 * ubsan.c (ubsan_create_edge): New function.
15359 (instrument_bool_enum_load): Call it.
15360 (instrument_nonnull_arg): Likewise.
15361 (instrument_nonnull_return): Likewise.
15362 (instrument_object_size): Likewise.
15363
15364 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15365
15366 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15367 auto_vec.
15368
15369 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15370
15371 PR lto/65536
15372 * lto-streamer.h (class lto_location_cache): New.
15373 (struct data_in): Add location_cache.
15374 (lto_input_location): Update prototype.
15375 (stream_input_location_now): New.
15376 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15377 pointer to location.
15378 (stream_input_location): Update.
15379 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15380 (warn_odr): Apply location cache before warning.
15381 (lto_input_location): Update prototype.
15382 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15383 Use stream_input_location_now.
15384 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15385 variable.
15386 (lto_location_cache::cmp_loc): New function.
15387 (lto_location_cache::apply_location_cache): New function.
15388 (lto_location_cache::accept_location_cache): New function.
15389 (lto_location_cache::revert_location_cache): New function.
15390 (lto_location_cache::input_location): New function.
15391 (lto_input_location): Do location caching.
15392 (stream_input_location_now): New function.
15393 (input_eh_region, input_struct_function_base): Use
15394 stream_input_location_now.
15395 (lto_data_in_create): use new.
15396 (lto_data_in_delete): Use delete.
15397 * tree-streamer-in.c (unpack_ts_block_value_fields,
15398 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15399 lto_input_ts_exp_tree_pointers): Update for cached location api.
15400
15401 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15402
15403 PR ipa/65076
15404 * passes.def: Add pass_nothrow.
15405 * ipa-pure-const.c: (pass_data_nothrow): New.
15406 (pass_nothrow): New.
15407 (pass_nothrow::execute): New.
15408 (make_pass_nothrow): New.
15409 * tree-pass.h (make_pass_nothrow): Declare.
15410
15411 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15412
15413 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15414 edge to change by speculation resolution or redirection.
15415 (edge_set_predicate): Likewise.
15416 (inline_summary_t::duplicate): Likewise.
15417 (remap_edge_summaries): Likewise.
15418
15419 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15420
15421 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15422 New macros.
15423 (can_inline_edge_p): Relax option matching for always inline functions.
15424
15425 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15426
15427 PR target/65561
15428 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15429 Check operand 4 and operand 0 for equality.
15430 (avx512f_vextract<shuffletype>32x4_1_maskm):
15431 Check operand 6 and operand 0 for equality.
15432 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15433 for equality.
15434 (vec_extract_hi_<mode>_maskm): Ditto.
15435
15436 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15437
15438 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15439 dead calls back to live.
15440 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15441 cross check to ...
15442 (cgraph_node::verify_node): ... here; verify only callee edges,
15443 not caller.
15444 * cif-code.def (CILK_SPAWN): New code.
15445
15446 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15447
15448 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15449 (edge_set_predicate): Use it to mark unreachable edges.
15450 (inline_summary_t::duplicate): Remove unnecesary code.
15451 (remap_edge_summaries): Likewise.
15452 (dump_inline_summary): Report contains_cilk_spawn.
15453 (compute_inline_parameters): Compute contains_cilk_spawn.
15454 (inline_read_section, inline_write_summary): Stream
15455 contains_cilk_spawn.
15456 * ipa-inline.c (can_inline_edge_p): Do not touch
15457 DECL_STRUCT_FUNCTION that may not be available;
15458 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15459 remove check for callee_fun->can_throw_non_call_exceptions and
15460 replace it by optimization attribute check; check for flag_exceptions.
15461 * ipa-inline-transform.c (inline_call): Maintain
15462 DECL_FUNCTION_PERSONALITY
15463 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15464
15465 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15466
15467 PR tree-optimization/65551
15468 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15469 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15470
15471 2015-03-26 Richard Biener <rguenther@suse.de>
15472
15473 PR middle-end/65555
15474 * tree-cfg.c (verify_gimple_call): Do not require a call to
15475 have no LHS if it wasn't recognized as control altering yet.
15476
15477 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15478
15479 PR tree-optimization/64715
15480 * passes.def: Add another instance of pass_object_sizes before ccp1.
15481 * tree-object-size.c (pass_object_sizes::execute): In
15482 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15483 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15484 __bos result and the computed constant. Remove redundant
15485 checks, obsoleted by gimple_call_builtin_p test.
15486
15487 * var-tracking.c (variable_tracking_main_1): Don't track
15488 variables for targetm.no_register_allocation targets.
15489
15490 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15491
15492 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15493 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15494
15495 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15496
15497 PR target/65569
15498 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15499 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15500 0.0 is correctly setup.
15501 (extenddftf2_internal): Likewise.
15502
15503 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15504
15505 PR tree-optimization/65177
15506 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15507 (bb_in_bbs): New.
15508 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15509 edges not adjacent on the path to the original code.
15510
15511 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15512
15513 PR bootstrap/65537
15514 * doc/install.texi (Building a native compiler): Document new
15515 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15516 configuration assumes that the host supports the linker plugin.
15517
15518 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15519
15520 PR target/65508
15521 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15522 chain for generated call.
15523
15524 2015-03-25 Richard Biener <rguenther@suse.de>
15525
15526 * passes.c (pass_manager::execute_early_local_passes): Guard
15527 execution of pass_chkp_instrumentation_passes with
15528 flag_check_pointer_bounds.
15529 (pass_chkp_instrumentation_passes::gate): Likewise.
15530
15531 2015-03-25 Martin Liska <mliska@suse.cz>
15532
15533 PR tree-optimization/65538
15534 * symbol-summary.h (function_summary::~function_summary):
15535 Relese memory for allocated summaries.
15536 (function_summary::release): New function.
15537
15538 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15539
15540 PR lto/65515
15541 * lto-streamer-out.c (DFS::worklist): New struct.
15542 (DFS::worklist_vec): New data member.
15543 (DFS::next_dfs_num): Remove.
15544 (DFS::DFS): Rewritten using worklist instead of recursion,
15545 using most of code from DFS::DFS_write_tree.
15546 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15547 pass it to DFS_write_tree calls.
15548 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15549 quick initial checks push it into worklist_vec and return.
15550
15551 2015-03-25 Richard Biener <rguenther@suse.de>
15552
15553 PR middle-end/65519
15554 * genmatch.c (expr::gen_transform): Re-write to avoid
15555 using gimple_build.
15556
15557 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15558
15559 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15560
15561 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15562
15563 * config/arm/arm.opt (print_tune_info): New option.
15564 * config/arm/arm.c (arm_print_tune_info): New function.
15565 (arm_file_start): Call arm_print_tune_info.
15566 * config/arm/arm-protos.h (struct tune_params): Add comment.
15567 * doc/invoke.texi (@item -mprint-tune-info): New item.
15568 (-mtune): mention it in ARM Option Summary.
15569
15570 2015-03-25 DJ Delorie <dj@redhat.com>
15571
15572 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15573 correct clause.
15574
15575 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15576 Martin Liska <mliska@suse.cz>
15577
15578 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15579 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15580 (sem_item::add_type): New function.
15581 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15582 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15583 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15584 (sem_function::equals_wpa): Fix typo.
15585 * ipa-icf.h (sem_item::add_type): New function.
15586 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15587 order.
15588
15589 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15590
15591 PR tree-optimization/65533
15592 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15593 with swapped operands, call vect_free_slp_tree on
15594 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15595 vector.
15596
15597 2015-03-24 Richard Biener <rguenther@suse.de>
15598
15599 PR middle-end/65517
15600 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15601 for fixup if necessary.
15602
15603 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15604
15605 * doc/extend.texi (Function Attributes): Add @cindex entries
15606 for all attributes and regularize their format. Delete text
15607 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15608 information about "eightbit_data", "tiny_data", and "model"
15609 variable attributes to the Variable Attributes section. Fix
15610 some obvious typos and copy-editing issues.
15611 (Variable Attributes, Type Attributes): Likewise add/fix
15612 @cindex entries for all attributes.
15613
15614 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15615
15616 PR target/65523
15617 * tree-chkp.c (chkp_build_returned_bound): Ignore
15618 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15619
15620 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15621
15622 PR target/65505
15623 * config/sh/predicates.md (simple_mem_operand,
15624 displacement_mem_operand): Add test for reg.
15625 (short_displacement_mem_operand): Test for displacement_mem_operand
15626 before invoking sh_disp_addr_displacement.
15627 * config/sh/constraints.md (Sdd, Sra): Simplify.
15628 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15629 Remove redundant displacement_mem_operand tests.
15630
15631 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15632
15633 PR target/65296
15634 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15635 the same -mmcu=MCU more than once.
15636
15637 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15638
15639 PR bootstrap/65522
15640 * ipa-devirt.c: Remove duplicate demangle.h include.
15641
15642 PR target/65504
15643 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15644 on the pseudo.
15645 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15646 REG_POINTER on *destptr after adjusting it for prologue size.
15647
15648 PR ipa/65521
15649 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15650 ultimate_alias_target ()->order ints instead of
15651 ultimate_alias_target () pointers.
15652
15653 2015-03-23 Richard Biener <rguenther@suse.de>
15654
15655 PR tree-optimization/65518
15656 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15657 interleaving cases we generate absymal code for.
15658
15659 2015-03-23 Richard Biener <rguenther@suse.de>
15660
15661 PR tree-optimization/65494
15662 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15663 matches here.
15664 (vect_analyze_slp_instance): But do that here, always and once.
15665
15666 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15667
15668 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15669 adding T or multiplying by T+1 and subracting T.
15670
15671 2015-03-22 Jeff Law <law@redhat.com>
15672
15673 PR rtl-optimization/64317
15674 * Makefile.in (OBJS): Add gcse-common.c
15675 * gcse.c: Include gcse-common.h
15676 (struct modify_pair_s): Move structure definition to gcse-common.h
15677 (compute_transp): Move function to gcse-common.c.
15678 (canon_list_insert): Similarly.
15679 (record_last_mem_set_info): Break out some code and put it into
15680 gcse-common.c. Call into the new common code.
15681 (compute_local_properties): Pass additional arguments to compute_transp.
15682 * postreload-gcse.c: Include gcse-common.h and df.h
15683 (modify_mem_list_set, blocks_with_calls): New variables.
15684 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15685 (get_bb_avail_insn): Pass in the expression index too.
15686 (alloc_mem): Allocate memory for the new bitmaps and lists.
15687 (free_mem): Free memory for the new bitmaps and lists.
15688 (insert_expr_in_table): Record a bitmap index for each entry we
15689 add to the table.
15690 (record_last_mem_set_info): Call into common code in gcse-common.c.
15691 (get_bb_avail_insn): If no available insn was found in the requested
15692 BB. If BB has a single predecessor, see if the expression is
15693 transparent in BB and available in that single predecessor.
15694 (compute_expr_transp): New wrapper for compute_transp.
15695 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15696 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15697 (gcse_after_reload_main): If there are elements in the hash table,
15698 then compute transparency for all the elements in the hash table.
15699 * gcse-common.h: New file.
15700 * gcse-common.c: New file.
15701
15702 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15703
15704 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15705 as an adjective.
15706 (System Headers): Likewise.
15707 (Ifdef): Likewise.
15708 (Traditional macros): Likewise.
15709 (Invocation): Likewise.
15710 (Option Index): Likewise.
15711 * doc/cppopts.texi (-M): Likewise.
15712 (-finput-charset): Likewise.
15713 (--help): Likewise.
15714 * doc.invoke.texi (AVR Options): Likewise.
15715 (V850 Options): Likewise.
15716
15717 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15718
15719 PR ipa/65475
15720 * ipa-devirt.c: Include demangle.h
15721 (odr_type_d): Add field rtti_broken.
15722 (odr_subtypes_equivalent_p): Do not require name to match.
15723 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15724 bypass the tests; be ready for function referneces in vtables that are
15725 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15726 (warn_odr): Give up for nameless types.
15727 (warn_types_mismatch): Report mismatch in mangled names;
15728 report mismatch in anonymous namespaces; look into component types to
15729 give useful error; report when mismatch is dragged in from other ODR
15730 type.
15731 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15732 duplicated diagnostics.
15733 (add_type_duplicate): Reorder checks so more informative ones come
15734 first; fix typo; do not output "the extra base is defined here" when
15735 we did not warn.
15736 (BINFO_N_BASE_BINFOS): Relax sanity check.
15737
15738 2015-03-22 Martin Liska <mliska@suse.cz>
15739 Jakub Jelinek <jakub@redhat.com>
15740
15741 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15742 masks that can potentially include a builtin.
15743 (ix86_add_new_builtins): Introduce fast filter for isa values
15744 that cannot trigger builtin inclusion.
15745
15746 2015-03-22 Martin Liska <mliska@suse.cz>
15747
15748 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15749 (sem_item::update_hash_by_local_refs): Likewise.
15750 (sem_variable::get_hash): Empty line is fixed.
15751 (sem_item_optimizer::execute): Include adding of hash references.
15752 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15753 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15754 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15755 (sem_item::update_hash_by_local_refs): Likewise.
15756
15757 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15758
15759 PR ipa/65502
15760 * ipa-comdats.c (enqueue_references): Walk through thunks.
15761 (ipa_comdats): Likewise.
15762 (set_comdat_group_1): New function.
15763
15764 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15765
15766 PR ipa/65475
15767 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15768 non-polymorphic
15769
15770 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
15771 Gerald Pfeifer <gerald@pfeifer.com>
15772
15773 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15774
15775 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15776 Sandra Loosemore <sandra@codesourcery.com>
15777
15778 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15779 function parameter declaration.
15780 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15781 Update arguments to nios2_adjust_call_address().
15782 (sibcall_internal): Rename from *sibcall.
15783 (sibcall_value_internal): Rename from *sibcall_value.
15784 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15785 (nios2_large_got_address): Add target temp reg parameter.
15786 (nios2_got_address): Adjust call to nios2_large_got_address, add
15787 force_reg around it.
15788 (nios2_load_pic_address): Add target temp reg parameter, replace call
15789 to nios2_got_address with corresponding code.
15790 (nios2_legitimize_constant_address): Update call to
15791 nios2_load_pic_address.
15792 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15793 to use temp reg for PIC loading purposes.
15794 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15795 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15796 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15797
15798 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15799
15800 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15801 usage of "the @option{...}".
15802 (-Wopenmp-simd): Likewise.
15803 (-fsanitize-recover): Likewise.
15804 (-fsanitize-undefined-trap-on-error): Likewise.
15805 (-flto): Likewise.
15806 (tracer-dynamic-coverage-feedback): Likewise.
15807 (reorder-block-duplicate-feedback): Likewise.
15808 (loop-unroll-jam-size): Likewise.
15809 (-B): Likewise.
15810 (-I-): Likewise.
15811 (-mabs=legacy): Likewise.
15812 (-mupper-regs-df): Likewise.
15813 (-mupper-regs-sf): Likewise.
15814 (-mpointers-to-nested-functions): Likewise.
15815
15816 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15817
15818 * doc/extend.texi (Cilk Plus Builtins): Add markup.
15819
15820 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15821
15822 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15823 additional index entries and cross-references.
15824 (-fchkp-check-incomplete-type): Likewise.
15825 (-fchkp-first-field-has-own-bounds): Likewise.
15826 (-fchkp-narrow-to-innermost-array): Likewise.
15827 (-fchkp-use-fast-string-functions): Likewise.
15828 (-fchkp-use-nochk-string-functions): Likewise.
15829 (-fchkp-use-static-const-bounds): Likewise.
15830 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15831 (-fchkp-instrument-marked-only): Likewise.
15832 (-fchkp-use-wrappers): Likewise.
15833 (-static-libmpx): Likewise.
15834 (-static-libmpxwrappers): Likewise.
15835 * doc/extend.texi (bnd_legacy): Likewise.
15836 (bnd_instrument): Likewise.
15837 (bnd_variable_size): Likewise.
15838 (Pointer Bounds Checker builtins): Likewise.
15839
15840 2015-03-21 Tom de Vries <tom@codesourcery.com>
15841
15842 PR tree-optimization/65458
15843 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15844 * cgraph.h (cgraph_node): Add parallelized_function field.
15845 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15846 (input_overwrite_node): Read parallelized_function field.
15847 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15848 parallelized_function on cgraph_node for child_fn.
15849 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15850 Remove include of gt-tree-parloops.h.
15851 (parallelized_functions): Remove static variable.
15852 (parallelized_function_p): Rewrite using parallelized_function field of
15853 cgraph_node.
15854 (create_loop_fn): Remove adding to parallelized_functions.
15855 * Makefile.in (GTFILES): Remove tree-parloops.c
15856
15857 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
15858
15859 PR rtl-optimization/64366
15860 * lra.c (lra_update_insn_regno_info): Consider regs in
15861 CALL_INSN_FUNCTION_USAGE memory.
15862
15863 2015-03-20 Richard Biener <rguenther@suse.de>
15864
15865 PR middle-end/64715
15866 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15867 for type comparison and gcc_checking_assert.
15868 (chrec_fold_plus_poly_poly): Likewise.
15869 (chrec_fold_multiply_poly_poly): Likewise.
15870 (chrec_convert_1): Likewise.
15871 * gimplify.c (gimplify_expr): Remove premature folding of
15872 &X + CST to &MEM[&X, CST].
15873
15874 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15875
15876 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15877 already is final.
15878 (ipa_inline): Recompute inline_failed codes.
15879 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15880 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15881 CIF_FINAL_ERROR.
15882
15883 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
15884
15885 PR rtl-optimization/60851
15886 * recog.c (constrain_operands): Accept a pseudo register before reload
15887 for LRA enabled targets.
15888
15889 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15890
15891 PR target/65240
15892 * config/rs6000/predicates.md (easy_fp_constant): Remove special
15893 -ffast-math handling that kept non-0 constants live in the RTL
15894 until reload. Remove logic testing the number of instructions it
15895 took to create a constant in a GPR that was never used, due to a
15896 test for soft-float earlier.
15897 (memory_fp_constant): Delete, no longer used.
15898
15899 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15900 alternatives for loading non-0 constants into GPRs for hard
15901 floating point that is no longer needed due to changes in
15902 easy_fp_constant. Add support for loading 0.0 into GPRs.
15903 (mov<mode>_hardfloat32): Likewise.
15904 (mov<mode>_hardfloat64): Likewise.
15905 (mov<mode>_64bit_dm): Likewise.
15906 (movtd_64bit_nodm): Likewise.
15907 (pre-reload move FP constant define_split): Delete define_split,
15908 since it is no longer used.
15909 (extenddftf2_internal): Remove GHF constraints that are not valid
15910 for extenddftf2.
15911
15912 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
15913
15914 PR rtl-optimization/63491
15915 * lra-constraints.c (check_and_process_move): Use src instead of
15916 sreg. Remove some dead code.
15917
15918 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
15919
15920 PR ipa/65380
15921 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15922 (sem_variable::merge): Likewise.
15923
15924 2015-03-19 Martin Liska <mliska@suse.cz>
15925
15926 PR ipa/65465
15927 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15928 all fields of cgraph_thunk_info.
15929
15930 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
15931
15932 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15933 clone instrumented thunks.
15934
15935 2015-03-19 Richard Biener <rguenther@suse.de>
15936
15937 Revert
15938 2015-03-10 Richard Biener <rguenther@suse.de>
15939
15940 PR middle-end/63155
15941 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15942 * tree-ssa-coalesce.c: Include timevar.h.
15943 (attempt_coalesce): Handle graph being NULL.
15944 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15945 Split out abnormal coalescing to ...
15946 (perform_abnormal_coalescing): ... this function.
15947 (coalesce_ssa_name): Perform abnormal coalescing without computing
15948 live/conflict.
15949 (verify_ssa_coalescing_worker): New function.
15950 (verify_ssa_coalescing): Likewise.
15951
15952 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
15953 Jakub Jelinek <jakub@redhat.com>
15954
15955 PR sanitizer/65400
15956 * tsan.c (instrument_gimple): Clear tail call flag on
15957 calls.
15958
15959 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15960
15961 PR sanitizer/65400
15962 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15963 call in the return bb.
15964 (find_split_points): Add RETURN_BB argument, don't call
15965 find_return_bb.
15966 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
15967 if true append TSAN_FUNC_EXIT internal call after the call to
15968 the split off function.
15969 (execute_split_functions): Call find_return_bb here.
15970 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15971 Adjust find_split_points and split_function calls.
15972
15973 2015-03-18 DJ Delorie <dj@redhat.com>
15974
15975 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
15976 (iorqi3_virt): Likewise.
15977
15978 2015-03-18 Tom de Vries <tom@codesourcery.com>
15979
15980 * tree-parloops.c (parallelize_loops): Make static.
15981 * tree-parloops.h (parallelize_loops): Remove extern declaration.
15982
15983 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
15984
15985 PR middle-end/64491
15986 Revert:
15987 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
15988
15989 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
15990 condition would be removed due to undefined behaviour.
15991
15992 2015-03-18 Martin Liska <mliska@suse.cz>
15993
15994 PR ipa/65432
15995 * cgraph.c (cgraph_node::get_create): Remove unnecessary
15996 xstrdup_for_dump wrapper.
15997 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
15998 sem_item::name.
15999 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16000 with xstrdup_for_dump.
16001 (sem_variable::equals): Likewise.
16002 (sem_item_optimizer::read_section): Use symtab_node::name instead of
16003 sem_item::name.
16004 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16005 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16006 symtab_node::asm_name with xstrdup_for_dump.
16007 (congruence_class::dump): Use symtab_node::name instead of
16008 sem_item::name.
16009 * ipa-icf.h (symtab_node::name): Remove.
16010 (symtab_node::asm_name): Likewise.
16011
16012 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16013
16014 PR tree-optimization/65450
16015 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16016 function.
16017 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16018 it instead of duplicate_ssa_name_ptr_info.
16019
16020 PR target/65222
16021 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16022
16023 2015-03-18 Richard Biener <rguenther@suse.de>
16024
16025 * tree-data-ref.h (struct access_matrix): Remove.
16026 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16027 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16028 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16029 (am_vector_index_for_loop): Likewise.
16030 (struct data_reference): Remove access_matrix member.
16031 (DR_ACCESS_MATRIX): Remove.
16032 (lambda_vector_new): Add comment.
16033 (lambda_matrix_new): Use XOBNEWVEC.
16034
16035 2015-03-18 Richard Biener <rguenther@suse.de>
16036
16037 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16038 (pass_ch::execute): Cleanup the CFG only if we did sth.
16039 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16040
16041 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16042
16043 * expmed.c (synth_mult): Use std::swap instead of manually
16044 swapping algorithms.
16045
16046 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16047
16048 PR target/65078
16049 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16050
16051 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
16052
16053 PR target/65296
16054 * config/avr/avr.opt (-nodevicelib): New option.
16055 * doc/invoke.texi (AVR Options): Document it.
16056 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16057 libgcc.a, libc.a, libm.a.
16058 * config/avr/specs.h: Same.
16059 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16060 which don't (directly) depend on the device. Print more help.
16061 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16062 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16063 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16064 case of an error.
16065 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16066 for specs file name.
16067 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16068 * config/avr/avr-mcus.def: Adjust initializers and comments.
16069
16070 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
16071
16072 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16073 DECL_ONE_ONLY to check if decl is one only.
16074 * ipa-split.c (consider_split): Limit splitt of one only functions.
16075
16076 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16077
16078 PR tree-optimization/65427
16079 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16080 functions.
16081 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16082
16083 2015-03-16 Marek Polacek <polacek@redhat.com>
16084
16085 * cgraph.h (add_new_static_var): Remove declaration.
16086 * varpool.c (add_new_static_var): Remove function.
16087
16088 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16089
16090 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16091 instead of vec<tree> * with vec_alloc and release for args.
16092 Adjust all users.
16093
16094 PR middle-end/65431
16095 * omp-low.c (delete_omp_context): Only splay_tree_delete
16096 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16097 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
16098
16099 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
16100
16101 PR sanitizer/64820
16102 * cfgexpand.c (align_base): New function.
16103 (alloc_stack_frame_space): Call it.
16104 (expand_stack_vars): Align prev_frame to be sure
16105 data->asan_vec elements aligned properly.
16106
16107 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
16108
16109 PR middle-end/65409
16110 * expr.c (store_field): Do not do a direct block copy if the source is
16111 a PARALLEL with BLKmode.
16112
16113 2015-03-16 Tom de Vries <tom@codesourcery.com>
16114
16115 PR middle-end/65414
16116 Revert:
16117 2015-03-12 Tom de Vries <tom@codesourcery.com>
16118
16119 PR rtl-optimization/64895
16120 * lra-lives.c (check_pseudos_live_through_calls): Use
16121 actual_call_used_reg_set instead of call_used_reg_set, if available.
16122
16123 2015-03-16 Alan Modra <amodra@gmail.com>
16124
16125 PR target/63150
16126 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16127 Modify Z->r bswapdi splitter to use dest in place of scratch.
16128 In r->Z and Z->r bswapdi splitter rename word_high, word_low
16129 to word1, word2 and rearrange logic to suit.
16130 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16131 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
16132 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16133 Add one '?' on r->r. Modify Z->r splitter to avoid need for
16134 early clobber.
16135
16136 2015-03-14 Jakub Jelinek <jakub@redhat.com>
16137
16138 PR tree-optimization/65369
16139 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16140 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16141 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16142
16143 PR tree-optimization/65418
16144 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16145 are casts in the first PLUS_EXPR operand, ensure tbias and
16146 *totallowp are in the inner type.
16147
16148 PR rtl-optimization/65401
16149 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16150 argument. If true, adjust_address_nv of x with big-endian
16151 correction for the mode widening to GET_MODE (y).
16152 (make_field_assignment): Don't do MEM mode widening here.
16153 Use MEM_P instead of GET_CODE == MEM.
16154
16155 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16156
16157 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16158 the external decls.
16159
16160 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16161
16162 PR target/64600
16163 * config/arm/arm.c (arm_gen_constant, AND case): Use
16164 ARM_SIGN_EXTEND when constructing AND mask.
16165
16166 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16167
16168 * graph.c (print_graph_cfg): Make function names visible and append
16169 parenthesis to it. Also make groups of basic blocks belonging to the
16170 same function visible.
16171
16172 2015-03-12 Richard Biener <rguenther@suse.de>
16173
16174 PR middle-end/44563
16175 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16176 to avoid quadratic behavior with inline expansion splitting blocks.
16177 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16178 with the successor if the predecessor will be merged with it.
16179 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16180 entry block with its successor.
16181
16182 2015-03-13 Richard Biener <rguenther@suse.de>
16183
16184 PR middle-end/44563
16185 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16186 (cleanup_tree_cfg_1): Do not call it.
16187 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16188 (fixup_noreturn_call): Mark the stmt as control altering.
16189 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16190 here.
16191 (pass_data_fixup_cfg): Produce a dump file.
16192 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16193 (need_noreturn_fixup): New global.
16194 (pass_dominator::execute): Fixup queued noreturn calls.
16195 (optimize_stmt): Queue calls that became noreturn for fixup.
16196 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16197 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16198 (el_to_fixup): New global.
16199 (eliminate_dom_walker::before_dom_childre): Queue calls that
16200 became noreturn for fixup.
16201 (eliminate): Fixup queued noreturn calls.
16202 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16203 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16204 (substitute_and_fold_dom_walker::before_dom_children): Queue
16205 alls that became noreturn for fixup.
16206 (substitute_and_fold): Fixup queued noreturn calls.
16207
16208 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
16209
16210 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16211 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16212 are building; for methods check ODR type of class they belong to if
16213 they may lead to a polymorphic call.
16214 (sem_function::compare_polymorphic_p): Be bit smarter about testing
16215 when function may lead to a polymorphic call.
16216 (sem_function::compare_type_list): Remove.
16217 (sem_variable::equals): Update use of compatible_types_p.
16218 (sem_variable::parse_tree_refs): Remove.
16219 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16220 cdtor.
16221 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16222 matching here.
16223 (func_checker::compatible_polymorphic_types_p): Break out from ...
16224 (unc_checker::compatible_types_p): ... here.
16225 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16226 Declare.
16227 (unc_checker::compatible_types_p): Update.
16228 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16229 Remove.
16230
16231 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16232
16233 PR rtl-optimization/65235
16234 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16235 When first element of vec_concat is const_int, calculate its size
16236 using second element.
16237
16238 2015-03-12 Richard Biener <rguenther@suse.de>
16239
16240 PR middle-end/65270
16241 * fold-const.c (operand_equal_p): Fix ordering of resetting
16242 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16243
16244 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16245
16246 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16247 to s390_reorg ().
16248 (s390_asm_output_function_label): Likewise.
16249 * config/s390/s390.c (s390_asm_output_function_label):
16250 Fix function label alignment with -mhtopatch.
16251 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16252 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16253 ("nop_2_byte"): New define_insn.
16254 ("nop_4_byte"): Likewise.
16255 ("nop_6_byte"): Likewise.
16256 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16257 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16258
16259 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16260
16261 PR target/65103
16262 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16263 register.
16264
16265 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16266
16267 PR target/65044
16268 * toplev.c (process_options): Restrict Pointer Bounds Checker
16269 usage with Address Sanitizer.
16270
16271 2015-03-12 Richard Biener <rguenther@suse.de>
16272
16273 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16274 to split on.
16275 * omp-low.c (expand_omp_taskreg): Split block before removing
16276 the stmt.
16277 (expand_omp_target): Likewise.
16278 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16279 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16280 stmt to split_block.
16281
16282 2015-03-12 Tom de Vries <tom@codesourcery.com>
16283
16284 PR rtl-optimization/64895
16285 * lra-lives.c (check_pseudos_live_through_calls): Use
16286 actual_call_used_reg_set instead of call_used_reg_set, if available.
16287
16288 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16289
16290 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16291 (cgraph_node::remove): Likewise.
16292 (cgraph_node::get_untransformed_body): Likewise.
16293 * varpool.c (varpool_node::remove): Likewise.
16294 (varpool_node::get_constructor): Add sanity check.
16295
16296 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16297
16298 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16299 old GCC versions.
16300 (-fabi-compat-version): Likewise.
16301 (-ffriend-injection): Likewise.
16302 (-Wdeclaration-after-statement): Likewise.
16303 (-fomit-frame-pointer): Likewise.
16304 (-ftree-coalesce-inlined-vars): Likewise.
16305 (-fvisibility=): Likewise.
16306 * doc/extend.texi (Typeof): Likewise.
16307 (Zero Length): Likewise.
16308 (Escaped Newlines): Likewise.
16309 (Compound Literals): Likewise.
16310 (Function Attributes): Likewise.
16311 (Label Attributes): Likewise.
16312 (Type Attributes): Likewise.
16313 (Function Names): Likewise.
16314 (Other Builtins): Likewise.
16315 (Function Specific Option Pragmas): Likewise.
16316 (C++ Interface): Likewise.
16317
16318 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16319
16320 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16321
16322 2015-03-11 Marek Polacek <polacek@redhat.com>
16323
16324 PR tree-optimization/65388
16325 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16326
16327 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16328
16329 PR target/65296
16330 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16331 * configure: Regenerate.
16332 * config.in: Regenerate.
16333 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16334 [-mn-flash]: Document it.
16335 [__AVR_ARCH__]: Document avrtiny.
16336
16337 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16338 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16339 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16340
16341 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16342
16343 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16344
16345 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16346
16347 PR target/65242
16348 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16349 allow reloads of PLUS in floating point/VSX registers.
16350
16351 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16352
16353 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16354 crypto_sha256_fast.
16355 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16356
16357 2015-03-11 Richard Biener <rguenther@suse.de>
16358
16359 PR tree-optimization/65310
16360 * tree-sra.c (build_ref_for_offset): Also preserve larger
16361 alignment.
16362
16363 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16364
16365 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16366
16367 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16368
16369 PR target/65368
16370 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16371 new define_expand.
16372 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16373
16374 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16375
16376 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16377 (sem_function::equals_wpa): ... here.
16378
16379 2015-03-10 Marek Polacek <polacek@redhat.com>
16380 Jakub Jelinek <jakub@redhat.com>
16381
16382 PR sanitizer/65367
16383 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16384 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16385 separately.
16386
16387 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16388
16389 PR target/65286
16390 * config/rs6000/t-linux: For powerpc64* target set
16391 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16392
16393 2015-03-10 Richard Biener <rguenther@suse.de>
16394
16395 PR middle-end/44563
16396 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16397 for redirect_all_calls.
16398
16399 2015-03-10 Marek Polacek <polacek@redhat.com>
16400
16401 * gdbinit.in (pcfun): Define and document.
16402
16403 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16404
16405 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16406 of libgomp-plugin.h.
16407 (find_target_compiler): Support a case when the path to gcc is
16408 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16409 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16410 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16411 libgomp-plugin.h.
16412 (main): Use GCC_INSTALL_NAME as target_driver_name.
16413 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16414 define.
16415 (mkoffload.o): Remove obsolete include path and defines.
16416 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16417
16418 2015-03-10 Richard Biener <rguenther@suse.de>
16419
16420 PR middle-end/63155
16421 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16422 * tree-ssa-coalesce.c: Include timevar.h.
16423 (attempt_coalesce): Handle graph being NULL.
16424 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16425 Split out abnormal coalescing to ...
16426 (perform_abnormal_coalescing): ... this function.
16427 (coalesce_ssa_name): Perform abnormal coalescing without computing
16428 live/conflict.
16429 (verify_ssa_coalescing_worker): New function.
16430 (verify_ssa_coalescing): Likewise.
16431
16432 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16433
16434 PR target/65296
16435 * config.gcc (extra_options) [avr]: Remove.
16436 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16437 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16438 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16439
16440 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16441 (-mmcu=): Add Var and MissingArgError properties.
16442 (-march=): Remove.
16443 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16444 * config/avr/t-multilib: Regenerate.
16445 * config/avr/specs.h: New file.
16446 * config/avr/driver-avr.c: New file.
16447 * config/avr/genopt.sh: Remove file.
16448 * config/avr/avr-tables.opt: Remove file.
16449 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16450 * config/avr/avr-c.c: Same.
16451 * avr-arch.h: Same.
16452 (avr_current_device): Remove proto.
16453 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16454 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16455 (EXTRA_SPEC_FUNCTIONS): Define.
16456 (avr_devicespecs_file): New specs function proto.
16457 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16458 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16459 (avr_current_device): Remove definition and usage.
16460 (avr_set_core_architecture): New static function.
16461 (avr_option_override): Use it.
16462 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16463 (mcu_name): New static array.
16464 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16465 (avr_inform_devices, avr_inform_core_architectures): New functions.
16466 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16467 (avrlibc.h) [WITH_AVRLIBC]: Include.
16468 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16469 (print_mcu): Rewrite from scratch.
16470 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16471 Forward to avr-specific specs defined in device-specs file.
16472 * config/avr/t-avr (driver-avr.o): New rule.
16473 (avr-devices.o): Depend on avr-arch.h.
16474 (avr-mcus): No more depend on avr-tables.opt.
16475 (avr-tables.opt): Remove rule.
16476 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16477
16478 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16479
16480 * c-family/c.opt (fchkp-use-wrappers): New.
16481 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16482 (chkp_wrap_function): New.
16483 (chkp_build_instrumented_fndecl): Support wrapped
16484 functions.
16485 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16486 (-fchkp-check-incomplete-type): New.
16487 (-fchkp-first-field-has-own-bounds): New.
16488 (-fchkp-narrow-bounds): New.
16489 (-fchkp-narrow-to-innermost-array): New.
16490 (-fchkp-optimize): New.
16491 (-fchkp-use-fast-string-functions): New.
16492 (-fchkp-use-nochk-string-functions): New.
16493 (-fchkp-use-static-bounds): New.
16494 (-fchkp-use-static-const-bounds): New.
16495 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16496 (-fchkp-check-read): New.
16497 (-fchkp-check-write): New.
16498 (-fchkp-store-bounds): New.
16499 (-fchkp-instrument-calls): New.
16500 (-fchkp-instrument-marked-only): New.
16501 (-fchkp-use-wrappers): New.
16502 (-static-libmpx): New.
16503 (-static-libmpxwrappers): New.
16504
16505 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16506
16507 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16508 (CHKP_SPEC): Add wrappers library.
16509 * c-family/c.opt (static-libmpxwrappers): New.
16510
16511 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16512
16513 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16514 (LIBMPX_SPEC): New.
16515 (CHKP_SPEC): New.
16516 * gcc.c (CHKP_SPEC): New.
16517 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16518 * c-family/c.opt (static-libmpx): New.
16519
16520 2015-03-10 Richard Biener <rguenther@suse.de>
16521
16522 PR middle-end/44563
16523 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16524 for compare_type.
16525 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16526 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16527 (cgraph_add_edge_to_call_site_hash): Likewise.
16528 (cgraph_node::get_edge): Likewise.
16529 (cgraph_edge::set_call_stmt): Likewise.
16530 (cgraph_edge::remove_caller): Likewise.
16531
16532 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16533
16534 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16535 (callee_saved_gpr_regs_size): ... this.
16536 (callee_saved_regs_first_regno): Rename to ...
16537 (callee_saved_first_gpr_regno): ... this.
16538 (callee_saved_regs_last_regno) Rename to ...
16539 (callee_saved_last_gpr_regno): ... this.
16540 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16541 variables.
16542 (nds32_initial_elimination_offset): Likewise.
16543 (nds32_expand_prologue): Likewise.
16544 (nds32_expand_epilogue): Likewise.
16545 (nds32_expand_prologue_v3push): Likewise.
16546 (nds32_expand_epilogue_v3pop): Likewise.
16547 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16548 Adjust renamed variables.
16549 (nds32_output_stack_pop): Likewise.
16550
16551 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16552
16553 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16554 code in comment.
16555
16556 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16557
16558 PR rtl-optimization/65321
16559 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16560 than shift mode.
16561 * var-tracking.c (use_narrower_mode): Likewise.
16562
16563 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16564
16565 PR tree-optimization/65355
16566 * varasm.c (notice_global_symbol): Do not produce RTL.
16567 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16568 anchor.
16569 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16570 check for section anchors.
16571
16572 2015-03-10 Alan Modra <amodra@gmail.com>
16573
16574 PR target/65286
16575 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16576 to be single-arch by default. Set cpu_is_64bit for powerpc64
16577 given --with-cpu=native.
16578 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16579 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16580 and powerpc64le.
16581 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16582 rs6000_isa_flags rather than TARGET_64BIT.
16583
16584 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16585 Kaz Kojima <kkojima@gcc.gnu.org>
16586
16587 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16588
16589 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16590
16591 PR lto/65361
16592 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16593 on a TREE_BINFO, instead use BINFO_TYPE.
16594
16595 2015-03-09 Richard Biener <rguenther@suse.de>
16596
16597 PR middle-end/65270
16598 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16599 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16600 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16601 of that. When comparing dereferences compare alignment.
16602 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16603
16604 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16605
16606 * ipa-inline-analysis.c (check_callers): Check
16607 node->can_remove_if_no_direct_calls_and_refs_p.
16608 (growth_likely_positive): Reorganize to call
16609 can_remove_if_no_direct_calls_p later.
16610 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16611 will_be_removed_from_program_if_no_direct_calls_p): Add
16612 will_inline parameter.
16613 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16614 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16615 Handle inliner case correctly.
16616
16617 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16618
16619 PR tree-optimization/63743
16620 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16621 had its definition forwarded by TER.
16622
16623 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16624
16625 PR lto/65316
16626 * ipa-utils.h (types_odr_comparable): Add strict argument.
16627 * ipa-devirt.c: Fix whitespace;
16628 (odr_hasher): Remove.
16629 (odr_name_hasher, odr_vtable_hasher): New hashers.
16630 (can_be_name_hashed_p): New predicate.
16631 (hash_type_name): remove.
16632 (hash_odr_name): New.
16633 (odr_name_hasher::hash): new.
16634 (can_be_vtable_hashed_p): New.
16635 (hash_odr_vtable): New.
16636 (odr_vtable_hasher::hash): New.
16637 (types_same_for_odr): Add strict parameter.
16638 (types_odr_comparable): Likewise.
16639 (odr_name_hasher::equal): New.
16640 (odr_vtable_hasher::equal): New.
16641 (odr_name_hasher::remove): New.
16642 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16643 (odr_vtable_hash_type): New.
16644 (odr_vtable_hash): New.
16645 (odr_subtypes_equivalent_p): Do strict comparsion.
16646 (add_type_duplicate): Merge type names; cleanup; avoid type
16647 duplicates.
16648 (register_odr_type): Initialize vtable hash.
16649 (build_type_inheritance_graph): Likewise
16650 (get_odr_type): Reorg to use two hashes.
16651 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16652 output.
16653 (ipa_devirt): Dump type_inheritance_graph.
16654 (types_same_for_odr): Add strict mode.
16655
16656 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16657
16658 PR ipa/65334
16659 * cgraph.h (symtab_node): Add definition_alignment,
16660 can_increase_alignment_p and increase_alignment.
16661 * symtab.c (symtab_node::can_increase_alignment_p,
16662 increase_alignment_1, symtab_node::increase_alignment,
16663 symtab_node::definition_alignment): New.
16664 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16665 can_increase_alignment_p.
16666 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16667 * tree-vect-stmts.c (ensure_base_align): Likewise.
16668 * varasm.c (function_section_1): Use definition_alignment.
16669 (assemble_start_function): Likewise.
16670 (emit_local): likewise.
16671 (build_constant_desc): Likewsie.
16672 (output_constant_def_contents): Likewise.
16673 (place_block_symbol): Likewise.
16674 (output_object_block): Likewise.
16675
16676 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16677
16678 PR ipa/65316
16679 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16680 when outputting debug.
16681
16682 2015-03-07 Marek Polacek <polacek@redhat.com>
16683 Martin Uecker <uecker@eecs.berkeley.edu>
16684
16685 PR sanitizer/65280
16686 * doc/invoke.texi: Update description of -fsanitize=bounds.
16687
16688 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16689
16690 * tree-ssa-phiopt.c (neg_replacement): Remove.
16691 (tree_ssa_phiopt_worker): Remove negate optimization.
16692
16693 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16694
16695 PR ipa/65302
16696 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16697
16698 2015-03-06 Richard Biener <rguenther@suse.de>
16699
16700 PR middle-end/64928
16701 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16702 and liveout_obstack members.
16703 (calculate_live_on_exit): Remove.
16704 (calculate_live_ranges): Change declaration.
16705 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16706 (new_tree_live_info): Adjust.
16707 (calculate_live_ranges): Delete livein when not wanted.
16708 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16709 Deal with partly deleted live info.
16710 (loe_visit_block): Remove temporary bitmap by using
16711 bitmap_ior_and_compl_into.
16712 (live_worklist): Adjust accordingly.
16713 (calculate_live_on_exit): Make static.
16714 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16715 we do not need livein.
16716
16717 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16718
16719 * real.c (real_from_string): Fix typo in assertion.
16720
16721 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16722
16723 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16724 the patch.
16725
16726 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16727
16728 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16729
16730 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16731
16732 PR target/64342
16733 * lra-assigns.c (find_hard_regno_for): Rename to
16734 find_hard_regno_for_1. Add a new parameter.
16735 (find_hard_regno_for): New function using find_hard_regno_for_1.
16736
16737 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16738
16739 PR rtl-optimization/65067
16740 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16741 strict volatile bitfield handling.
16742
16743 2015-03-05 Martin Liska <mliska@suse.cz>
16744
16745 PR ipa/65318
16746 * ipa-icf.c (sem_variable::equals): Compare variables types.
16747
16748 2015-03-05 Richard Henderson <rth@redhat.com>
16749
16750 PR target/65121
16751 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16752 correctly check weak symbol binding.
16753
16754 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16755
16756 PR middle-end/65315
16757 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16758 needed alignment.
16759
16760 2015-03-05 Martin Liska <mliska@suse.cz>
16761
16762 * ipa-inline.c (inline_small_functions): Set default value to
16763 prevent warning during bootstrap.
16764 * tree.h: Add pragma guard that ignores false positives during
16765 bootstrap.
16766
16767 2015-03-05 Richard Biener <rguenther@suse.de>
16768
16769 PR tree-optimization/65310
16770 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16771 Properly preserve alignment of the base of the access.
16772
16773 2015-03-05 Richard Biener <rguenther@suse.de>
16774
16775 PR ipa/65270
16776 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16777 Compare dependence info.
16778
16779 2015-03-05 Richard Biener <rguenther@suse.de>
16780
16781 PR middle-end/65233
16782 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16783 tree-into-ssa.h.
16784 (walk_ssa_copies): Revert last chage. Instead do not walk
16785 SSA names registered for SSA update.
16786
16787 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16788
16789 PR ipa/65270
16790 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16791 vtable references for their containing type.
16792 (sem_function::equals_wpa): Compare TYPE_RESTRICT
16793 and type attributes.
16794
16795 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
16796
16797 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16798 before negating it.
16799 * stor-layout.c (finalize_record_size): Revert latest change.
16800
16801 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
16802
16803 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16804
16805 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16806
16807 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16808 for correct comdat handling.
16809 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16810 Likewise.
16811 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16812 (used_from_object_file_p_worker): Remove.
16813 (cgraph_node::only_called_directly_or_alised): Add
16814 used_from_object_file_p.
16815 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16816 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16817 can_remove_if_no_direct_calls_and_refs_p.
16818
16819 2015-03-04 Nick Clifton <nickc@redhat.com>
16820
16821 * config/rl78/rl78.h (enum reg_class): Remove real registers from
16822 General register class.
16823 * config/rl78/rl78-real.md: Replace general register constraints
16824 with real+virtual register constraints.
16825
16826 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16827
16828 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16829 from checking for -mhtm option.
16830
16831 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16832
16833 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16834 (struct ipa_sra_check_caller_data): Add has_thunk field.
16835 (ipa_sra_check_caller): Check for thunk.
16836 (ipa_sra_preliminary_function_checks): Give up on function with
16837 thunks.
16838 (ipa_early_sra): Use call_for_symbol_and_aliases.
16839
16840 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
16841
16842 PR target/65249
16843 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16844 called for __stack_chk_guard symbol.
16845
16846 2015-03-03 DJ Delorie <dj@redhat.com>
16847
16848 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16849 inc/dec.
16850 (*addhi3_real): Likewise.
16851 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16852 pattern to match incrementing memory.
16853 * config/rl78/predicates.md (rl78_1_2_operand): New.
16854 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16855 it's the same and only mem.
16856 (rl78_alloc_physical_registers_op2): If there's effectively only
16857 one MEM, transcode it into HL.
16858 (rl78_far_p): Reject addresses that aren't legitimate.
16859
16860 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16861
16862 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16863 negating it.
16864
16865 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16866
16867 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16868
16869 Implement call0 ABI for xtensa
16870 * config/xtensa/constraints.md ("a" constraint): Include stack
16871 pointer in case of call0 ABI.
16872 ("q" constraint): Make empty in case of call0 ABI.
16873 ("D" constraint): Include stack pointer in case of call0 ABI.
16874 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16875 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16876 prototypes.
16877 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16878 variable.
16879 (xtensa_regno_to_class): Make it a local variable in the
16880 function xtensa_regno_to_class.
16881 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16882 macro, function prototype and implementation.
16883 (reg_nonleaf_alloc_order): Make it a local variable in the
16884 function order_regs_for_local_alloc.
16885 (xtensa_conditional_register_usage): New function.
16886 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16887 (xtensa_valid_move): Allow direct moves to stack pointer
16888 register in call0 ABI.
16889 (xtensa_setup_frame_addresses): Only spill register windows in
16890 windowed ABI.
16891 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16892 call0 ABI respectively.
16893 (xtensa_function_arg_1): Only mark a7 register for copying in
16894 windowed ABI.
16895 (xtensa_call_save_reg): New function.
16896 (compute_frame_size): Add space for callee saved register
16897 storage to the frame size in call0 ABI.
16898 (xtensa_expand_prologue): Generate code to set up stack frame
16899 and save callee-saved registers in call0 ABI.
16900 (xtensa_expand_epilogue): New function.
16901 (xtensa_set_return_address): New function.
16902 (xtensa_return_addr): Calculate return address in call0 ABI.
16903 (xtensa_builtin_saveregs): Only mark a7 register for copying and
16904 emit copying code in windowed ABI.
16905 (order_regs_for_local_alloc): Add preferred register allocation
16906 order for non-leaf function in call0 ABI.
16907 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16908 (xtensa_asm_trampoline_template): Add trampoline generation for
16909 call0 ABI.
16910 (xtensa_trampoline_init): Add trampoline initialization for
16911 call0 ABI.
16912 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16913 functions.
16914 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16915 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16916 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16917 ABI call-used registers.
16918 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16919 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16920 call0 ABI.
16921 (REG_CLASS_CONTENTS): Include all registers into the preferred
16922 reload registers set, adjust the set in the
16923 xtensa_conditional_register_usage.
16924 (xtensa_regno_to_class): Drop variable declaration.
16925 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16926 function.
16927 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16928 respectively.
16929 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16930 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16931 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16932 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16933 location in call0 ABI.
16934 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16935 stack adjustment size when handling exception.
16936 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16937 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16938 definitions.
16939 ("return" pattern): Generate ret.n/ret in call0 ABI.
16940 ("epilogue" pattern): Expand epilogue.
16941 ("nonlocal_goto" pattern): Use default in call0 ABI.
16942 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16943 emit eh_set_a0_* depending on ABI.
16944 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16945 ("eh_set_a0_call0", "blockage"): New patterns.
16946
16947 2015-03-03 Martin Liska <mliska@suse.cz>
16948
16949 PR ipa/65287
16950 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16951
16952 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16953
16954 PR 65138/target
16955 * config/rs6000/rs6000-tables.opt: Regenerate table.
16956
16957 2015-03-03 Renlin Li <renlin.li@arm.com>
16958
16959 * doc/md.texi (@item ^): Change ? into ^.
16960
16961 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
16962
16963 * doc/tm.texi: Regenerated.
16964
16965 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16966
16967 * builtins.c (expand_builtin_return_addr): Add
16968 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16969 surrounding #ifdef.
16970 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16971 definition to 1.
16972 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
16973 Likewise.
16974 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
16975 undefined.
16976 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
16977 paragraph.
16978
16979 2015-03-03 Martin Jambor <mjambor@suse.cz>
16980 Eric Botcazou <ebotcazou@adacore.com>
16981
16982 * tree-sra.c (ipa_sra_check_caller_data): New type.
16983 (has_caller_p): Removed.
16984 (ipa_sra_check_caller): New function.
16985 (ipa_sra_preliminary_function_checks): Use it.
16986
16987 2015-03-03 Martin Liska <mliska@suse.cz>
16988
16989 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
16990 instead of if branch.
16991
16992 2015-03-03 Martin Liska <mliska@suse.cz>
16993
16994 PR ipa/65282
16995 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
16996
16997 2015-03-23 Jeff Law <law@redhat.com>
16998
16999 PR tree-optimization/65241
17000 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17001 hash table if INSERT is true.
17002
17003 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17004
17005 PR target/65296
17006 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17007
17008 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17009
17010 PR target/64331
17011 * config/avr/avr.c (context.h, tree-pass.h): Include them.
17012 (avr_pass_data_recompute_notes): New static variable.
17013 (avr_pass_recompute_notes): New class.
17014 (avr_register_passes): New static function.
17015 (avr_option_override): Call it.
17016
17017 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17018
17019 Fix various problems with specs file generation.
17020
17021 PR target/65296
17022 * config.gcc (extra_gcc_objs) [avr]: Remove.
17023 * config/avr/driver-avr.c: Remove file.
17024 * config/avr/t-avr (driver-avr.o): Remove rule.
17025 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17026 INCLUDES to build. Depend on TM_H.
17027 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
17028 build warnings. Fix non-matching types and non-existing %-codes.
17029 (tm.h): Include.
17030 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17031 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17032 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17033 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17034 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17035 (LIBGCC_SPEC): Remove definitions.
17036
17037 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
17038
17039 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17040 to create a register in testing mode.
17041
17042 2015-03-03 Martin Liska <mliska@suse.cz>
17043 Jan Hubicka <hubicka@ucw.cz>
17044
17045 PR ipa/65263
17046 * cgraph.c (cgraph_node::has_thunk_p): New function.
17047 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17048 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17049 (sem_function::merge): Assert is changed.
17050
17051 2015-03-03 Martin Liska <mliska@suse.cz>
17052 Martin Jambor <mjambor@suse.cz>
17053
17054 PR ipa/65087
17055 * ipa-icf.c (sem_item_optimizer::execute): Change function
17056 return value to boolean.
17057 (sem_item_optimizer::merge_classes): Likewise.
17058 (ipa_icf_driver): Return TODO_remove_functions in case there's
17059 a merge operation processed.
17060 * ipa-icf.h: Change function return value to boolean.
17061
17062 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17063
17064 PR 65138/target
17065 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17066 processor type for 64-bit little endian PowerPC.
17067
17068 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17069 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
17070 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
17071 printing built-in mask so it does not pass NULL pointers.
17072
17073 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17074 -mcpu=powerpc64le.
17075
17076 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
17077
17078 PR target/58158
17079 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17080 !ISA_HAS_FP_CONDMOVE.
17081
17082 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
17083
17084 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17085 reload_completed.
17086
17087 2015-03-02 Ulrich Drepper <drepper@gmail.com>
17088
17089 * doc/invoke.texi (Options for Code Generation Conventions):
17090 Fix URL of DSO paper.
17091
17092 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17093
17094 PR ipa/65130
17095 * ipa-inline.c (check_callers): Looks for recursion.
17096 (inline_to_all_callers): Give up on uninlinable or recursive edges.
17097 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17098 summary of inline clones.
17099 (do_estimate_growth_1): Fix recursion check.
17100
17101 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17102
17103 PR ipa/64988
17104 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17105 comdat groups.
17106
17107 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17108 Aldy Hernandez <aldyh@redhat.com>
17109
17110 PR lto/65276
17111 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17112 when checking TYPE_BINFO.
17113
17114 2015-03-02 Richard Biener <rguenther@suse.de>
17115
17116 PR ipa/65270
17117 * ipa-icf-gimple.c: Include builtins.h.
17118 (func_checker::compare_memory_operand): Compare base alignment.
17119
17120 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17121
17122 PR target/65184
17123 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17124 are never passed by reference.
17125
17126 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17127
17128 PR target/65183
17129 * tree-chkp.c (chkp_check_lower): Don't check against
17130 zero bounds for already instrumented functions.
17131 (chkp_check_upper): Likewise.
17132 (chkp_fini): Clean pass local data to avoid wrong reusage.
17133
17134 2015-02-28 Martin Liska <mliska@suse.cz>
17135 Jan Hubicka <hubicka@ucw.cz>
17136
17137 * ipa-icf.c (sem_variable::equals): Improve debug output;
17138 get variable constructor.
17139 (sem_variable::parse): Do not filter out too early; give up on
17140 volatile and register vars.
17141 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17142 variables.
17143 * ipa-icf.h (sem_variable::init): Do not set ctor.
17144 (sem_variable::ctor): Remove.
17145
17146 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
17147
17148 PR middle-end/65233
17149 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17150
17151 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17152
17153 * ipa-icf.c: Include stor-layout.h
17154 (sem_function::compare_cgraph_references): Rename to ...
17155 (sem_item::compare_cgraph_references): ... this one.
17156 (sem_variable::equals_wpa): New function
17157 (sem_variable::equals): Do not check stuff already verified by
17158 equals_wpa.
17159 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17160 * ipa-icf.h (sem_item): Add compare_cgraph_references.
17161 (sem_function): Remove compare_cgraph_references.
17162 (sem_variable): Turns equals_wpa into non-inline.
17163
17164 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17165
17166 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17167 (sem_item::add_expr): New function.
17168 (sem_function::hash_stmt): Handle operands of most statements.
17169 (sem_variable::get_hash): Hash the actual constructor.
17170 * ipa-icf.h (sem_item): Add add_expr.
17171 (sem_function): Update prototype of hash_stmt
17172
17173 2015-02-28 Martin Liska <mliska@suse.cz>
17174 Jan Hubicka <hubicka@ucw.cz>
17175
17176 PR ipa/65245
17177 * ipa-icf-gimple.c (func_checker::compare_function_decl):
17178 Remove.
17179 (func_checker::compare_variable_decl): Skip symtab vars.
17180 (func_checker::compare_cst_or_decl): Update.
17181 * ipa-icf.c (sem_function::parse): Do not consider aliases.
17182 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17183 use correct symtab predicates.
17184 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17185 (sem_variable::parse): Update comment.
17186 (sem_item_optimizer::build_graph): Consider ultimate aliases
17187 for references.
17188
17189 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17190
17191 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17192 of OBJ_TYPE_REF.
17193
17194 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17195
17196 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17197 (sem_variable::merge) Likewise.
17198
17199 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17200
17201 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17202 target; also match flag_ipa_devirt.
17203
17204 2015-03-01 Martin Liska <mliska@suse.cz>
17205 Jan Hubicka <hubicka@ucw.cz>
17206
17207 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17208 Validate variable alignment.
17209 * ipa-icf.c (sem_function::equals_private): Be more precise
17210 about non-common function attributes.
17211 (sem_variable::equals): Likewise.
17212
17213 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17214
17215 PR ipa/65237
17216 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17217 across COMDAT group boundary.
17218
17219 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17220
17221 PR ipa/65232
17222 * ipa-icf.c (clear_decl_rtl): New function.
17223 (sem_function::merge): Clear RTL before forming alias.
17224 (sem_variable::merge): Clear RTL before forming alias.
17225
17226 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17227
17228 PR ipa/65236
17229 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17230
17231 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
17232
17233 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17234 to neon_to_gp<q>.
17235
17236 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17237
17238 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17239 a typo in the description.
17240
17241 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17242
17243 PR target/64317
17244 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17245 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17246 * lra-constraints.c: Include "params.h".
17247 (EBB_PROBABILITY_CUTOFF): Use
17248 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17249 (lra_inheritance): Use '<' instead of '<=' for
17250 EBB_PROBABILITY_CUTOFF.
17251 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17252 Document change.
17253
17254 2015-02-27 Martin Liska <mliska@suse.cz>
17255
17256 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17257 vector length condition.
17258
17259 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17260
17261 * doc/extend.texi (x86 transactional memory intrinsics):
17262 Reorganize discussion of _xbegin. Clarify that the return
17263 value is a bit mask. Expand example and move to end of section.
17264
17265 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17266 Aldy Hernandez <aldyh@redhat.com>
17267
17268 PR rtl-optimization/65220
17269 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17270
17271 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17272
17273 PR target/65032
17274 * lra-remat.c (update_scratch_ops): New.
17275 (do_remat): Call it.
17276 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17277 (remove_scratches): ... here.
17278 * lra-int.h (lra_register_new_scratch_op): New prototype.
17279
17280 2015-02-27 Marek Polacek <polacek@redhat.com>
17281
17282 PR c/65040
17283 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17284 -Wformat-signedness anymore.
17285
17286 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17287
17288 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17289 function.
17290 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17291
17292 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17293
17294 * config/s390/s390.c (enum s390_builtin):
17295 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17296 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17297 (s390_init_builtins): Generate new builtin functions.
17298 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17299 (s390_sfpc, s390_efpc): New pattern definitions.
17300
17301 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17302
17303 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17304 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17305 (s390_builtin_decls): New array.
17306 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17307 (s390_builtin_decl): New function.
17308 (TARGET_BUILTIN_DECL): Define macro.
17309
17310 2015-02-27 Richard Biener <rguenther@suse.de>
17311
17312 PR middle-end/63175
17313 * builtins.c (get_object_alignment_2): Make sure to re-apply
17314 the ANDed mask after recursing to its operand gets us a new
17315 misalignment bit position.
17316
17317 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17318 Martin Liska <mliska@suse.cz>
17319
17320 PR bootstrap/65150
17321 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17322 Use address_matters_p.
17323 (redirect_all_callers, set_addressable): New functions.
17324 (sem_function::merge): Reorganize and fix merging issues.
17325 (sem_variable::merge): Likewise.
17326 (sem_variable::compare_sections): Remove.
17327 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17328 Optimization flag.
17329 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17330 redirect them.
17331 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17332 decl is used.
17333 (address_matters_1): New function.
17334 (symtab_node::address_matters_p): New function.
17335 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17336 check for merged flag.
17337 * cgraph.h (address_matters_p): Declare.
17338 (symtab_node::address_taken_from_non_vtable_p): Remove.
17339 (symtab_node::address_can_be_compared_p): New method.
17340 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17341 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17342 Remove.
17343 (comdat_can_be_unshared_p_1) Use address_matters_p.
17344 (update_vtable_references): Fix formating.
17345 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17346 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17347 * cgraphclones.c: Preserve merged and icf_merged flags.
17348
17349 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17350
17351 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17352 (Label Attributes): Likewise.
17353 (Cilk Plus Builtins): Likewise.
17354 (ARC SIMD Built-in Functions): Likewise.
17355 (ARM C Language Extensions (ACLE)): Likewise.
17356 (PowerPC Built-in Functions): Likewise.
17357 (PowerPC Hardware Transactional Memory Built-in Functions):
17358 Likewise.
17359
17360 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17361
17362 PR tree-optimization/65216
17363 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17364 new stmt and new SSA_NAME for lhs whenever the arguments have
17365 changed and weren't just swapped. Fix comment typo.
17366
17367 PR tree-optimization/65215
17368 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17369 for PDP endian targets.
17370 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17371 Fix up formatting issues.
17372 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17373 size is smaller than the original, adjust MEM_REF offset by the
17374 difference of sizes. Use is_gimple_mem_ref_addr instead of
17375 is_gimple_min_invariant test to avoid adding address temporaries.
17376
17377 2015-02-26 Martin Liska <mliska@suse.cz>
17378 Jan Hubicka <hubicka@ucw.cz>
17379
17380 PR ipa/64693
17381 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17382 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17383 (sem_item_optimizer::process_cong_reduction): Include division by
17384 sensitive references.
17385 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17386 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17387 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17388
17389 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17390
17391 PR target/65192
17392 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17393 Remove.
17394 * config/avr/avr.c: Same.
17395 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17396 Refuse any constant address not in 0..0xbf.
17397 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17398 tiny_valid_direct_memory_access_range from insn conditions.
17399 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17400
17401 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17402
17403 PR target/61142
17404 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17405 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17406 * config/sh/predicates.md (const_logical_operand): New predicate.
17407 * config/sh/sh.md: Add new peephole2 patterns.
17408
17409 2015-02-26 Marek Polacek <polacek@redhat.com>
17410
17411 PR ipa/65008
17412 * ipa-inline.c (early_inliner): Recompute inline parameters.
17413
17414 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17415
17416 PR target/65171
17417 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17418 instructions with TImode operands are included in the analysis.
17419
17420 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17421
17422 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17423 of an EDGE_FSM_THREAD.
17424
17425 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17426
17427 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17428
17429 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17430
17431 PR debug/46102
17432 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17433
17434 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17435
17436 PR tree-optimization/65048
17437 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17438 (thread_through_all_blocks): Call valid_jump_thread_path.
17439 Remove invalid FSM jump-thread paths.
17440
17441 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17442
17443 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17444 (ipa_write_optimization_summaries): Likewise.
17445 * tree-streamer.h: Include data-streamer.h.
17446 (streamer_mode_table): Declare extern variable.
17447 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17448 * lto-streamer-out.c (lto_output_init_mode_table,
17449 lto_write_mode_table): New functions.
17450 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17451 offloading LTO.
17452 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17453 (lto_create_simple_input_block): Add mode_table argument to the
17454 lto_input_block constructors.
17455 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17456 Likewise.
17457 * data-streamer-in.c (string_for_index): Likewise.
17458 * ipa-inline-analysis.c (inline_read_section): Likewise.
17459 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17460 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17461 * lto-streamer-in.c (lto_read_body_or_constructor,
17462 lto_input_toplevel_asms): Likewise.
17463 (lto_input_mode_table): New function.
17464 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17465 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17466 Use bp_pack_machine_mode.
17467 * real.h (struct real_format): Add name field.
17468 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17469 (class lto_input_block): Add mode_table member.
17470 (lto_input_block::lto_input_block): Add mode_table_ argument,
17471 initialize mode_table.
17472 (struct lto_file_decl_data): Add mode_table field.
17473 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17474 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17475 unpack_ts_decl_common_value_fields,
17476 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17477 * tree-streamer.c (streamer_mode_table): New variable.
17478 * real.c (ieee_single_format, mips_single_format,
17479 motorola_single_format, spu_single_format, ieee_double_format,
17480 mips_double_format, motorola_double_format,
17481 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17482 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17483 ibm_extended_format, mips_extended_format, ieee_quad_format,
17484 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17485 decimal_single_format, decimal_double_format, decimal_quad_format,
17486 ieee_half_format, arm_half_format, real_internal_format): Add name
17487 field.
17488 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17489
17490 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17491
17492 PR target/65161
17493 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17494 reordering for selective scheduling.
17495
17496 2015-02-26 Terry Guo <terry.guo@arm.com>
17497
17498 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17499 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17500 (arm_arch_no_volatile_ce): Declare new global variable.
17501 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17502 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17503 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17504 (TARGET_NO_VOLATILE_CE): New macro.
17505 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17506 volatile memory access in IT block
17507
17508 2015-02-25 Kai Tietz <ktietz@redhat.com>
17509
17510 PR tree-optimization/61917
17511 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17512 that reduc_def_stmt is null.
17513
17514 2015-02-25 Martin Liska <mliska@suse.cz>
17515
17516 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17517 hard register variables.
17518
17519 2015-02-25 Kai Tietz <ktietz@redhat.com>
17520
17521 PR target/64212
17522 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17523 (symtab::noninterposable_alias): Likewise.
17524
17525 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17526
17527 PR target/65167
17528 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17529 bounds registers.
17530 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17531
17532 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17533
17534 PR target/64997
17535 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17536 as split condition; force split via '#' in output pattern.
17537
17538 2015-02-25 Richard Biener <rguenther@suse.de>
17539 Kai Tietz <ktietz@redhat.com>
17540
17541 PR tree-optimization/61917
17542 * tree-vect-loop.c (vectorizable_reduction): Allow
17543 vect_internal_def without reduction to exit graceful.
17544
17545 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17546
17547 PR target/65196
17548 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17549 only with NONDEBUG_INSN_P.
17550
17551 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17552
17553 Use variadic macros with avr-log.c.
17554
17555 * config/avr/avr-protos.h (avr_vdump): New prototype.
17556 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17557 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17558 * config/avr/avr-log.c: Adjust comments.
17559 (avr_vdump): New function.
17560 (avr_vadump): Pass caller as 2nd argument instead of format string.
17561 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17562 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17563
17564 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17565
17566 PR lto/64374
17567 * target.def (target_option_stream_in): New target hook.
17568 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17569 targetm.target_option.post_stream_in if non-NULL.
17570 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17571 * doc/tm.texi: Updated.
17572 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17573 function.
17574 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17575
17576 2015-02-24 Jeff Law <law@redhat.com>
17577
17578 PR target/65117
17579 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17580 of operand 0 and operand 2.
17581 (zero_cost_loop_end, loop_end): Similarly.
17582
17583 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17584
17585 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17586 CXX_MEM_STAT_INFO.
17587
17588 2015-02-24 DJ Delorie <dj@redhat.com>
17589
17590 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17591 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17592 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17593 instead of hardcoding SImode.
17594
17595 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17596
17597 * omp-low.c (create_omp_child_function): Tag entrypoint
17598 functions with a special attribute.
17599
17600 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17601
17602 PR target/65058
17603 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17604
17605 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17606
17607 PR rtl-optimization/65123
17608 * lra-remat.c (operand_to_remat): Check hard regs in insn
17609 definition too.
17610
17611 2015-02-24 Nick Clifton <nickc@redhat.com>
17612
17613 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17614 to the assembler.
17615
17616 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17617
17618 PR libgomp/64625
17619 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17620 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17621 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17622 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17623 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17624 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17625 (BUILT_IN_GOACC_PARALLEL): Specify as
17626 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17627 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17628 * builtin-types.def
17629 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17630 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17631 Remove function types.
17632 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17633 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17634 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17635 New function types.
17636
17637 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17638
17639 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17640
17641 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17642
17643 PR tree-optimization/65170
17644 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17645 if val[1] < 0, clear also val[2] and return 3.
17646
17647 2015-02-24 Alan Modra <amodra@gmail.com>
17648
17649 PR target/65172
17650 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17651 when *base is a reg. Handle nested plus addresses. Simplify
17652 pre_modify test.
17653
17654 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17655
17656 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17657 use natural alignment when optimizing for size.
17658
17659 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17660
17661 PR target/65153
17662 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17663 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17664 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17665
17666 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17667
17668 PR fortran/63427
17669 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17670 too big for a wide_int. Implement missing wrapping operation.
17671
17672 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17673
17674 PR target/65163
17675 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17676 instead of const_int 4294901760.
17677
17678 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17679
17680 * config/avr/t-avr: Fix typo in comment.
17681
17682 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17683
17684 * doc/rtl.texi (fma): Clarify documentation.
17685
17686 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17687
17688 PR debug/58123
17689 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17690 over input_location.
17691
17692 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17693
17694 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17695 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17696 restrict alignments to absolute_biggest_alignment.
17697 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17698 Define.
17699 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17700 * doc/tm.texi: Regenerate.
17701 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17702
17703 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17704
17705 PR target/64172
17706 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17707
17708 2015-02-20 Richard Biener <rguenther@suse.de>
17709
17710 PR tree-optimization/65136
17711 * tree-ssa-propagate.c: Include cfgloop.h.
17712 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17713 arguments with constants.
17714
17715 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17716 Martin Liska <mliska@suse.cz>
17717
17718 PR target/63892
17719 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17720 don't try to create_thunk if stdarg_p. If
17721 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17722 redirect_callers if possible.
17723 (sem_item_optimizer::execute): Call unregister_hooks here...
17724 (ipa_icf_driver): ... instead of here.
17725
17726 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17727
17728 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17729 Mark operand 0 as earlyclobber in 2nd alternative.
17730 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17731 Write negated shift amount into QI lowpart operand 0 and use it
17732 in the shift step.
17733 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17734
17735 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17736
17737 * cgraph.h (clone_function_name_1): Declare.
17738 * cgraphclones.c (clone_function_name_1): New function.
17739 (clone_function_name): Use it.
17740 * lto-partition.c: Include "stringpool.h".
17741 (must_not_rename, maybe_rewrite_identifier)
17742 (validize_symbol_for_target): New static functions.
17743 (privatize_symbol_name): Use must_not_rename.
17744 (promote_symbol): Call validize_symbol_for_target.
17745 (lto_promote_cross_file_statics): Likewise.
17746 (lto_promote_statics_nonwpa): Likewise.
17747
17748 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17749
17750 PR target/64452
17751 * config/avr/avr.md (pushhi_insn): New insn.
17752 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17753
17754 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17755 Jakub Jelinek <jakub@redhat.com>
17756
17757 * tree-streamer.c (preload_common_nodes): Don't preload
17758 TI_VA_LIST* for offloading.
17759 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17760 in_lto_p.
17761
17762 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17763
17764 * config/pa/pa.c (pa_emit_move_sequence): Always force
17765 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
17766 note on insn.
17767
17768 * config/pa/pa.c (pa_reloc_rw_mask): New function.
17769 (TARGET_ASM_RELOC_RW_MASK): Define.
17770 (pa_cannot_force_const_mem): Revert previous change.
17771
17772 2015-02-19 Martin Jambor <mjmabor@suse.cz>
17773 Jan Hubicka <hubicka@ucw.cz>
17774
17775 PR ipa/65028
17776 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17777 across jump functions.
17778
17779 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
17780
17781 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17782
17783 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
17784
17785 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17786
17787 2015-02-19 Richard Henderson <rth@redhat.com>
17788
17789 PR middle-end/65074
17790 * varasm.c (default_binds_local_p_2): Don't test node->definition;
17791 test DECL_EXTERNAL independent of symtab_node.
17792
17793 2015-02-19 Jakub Jelinek <jakub@redhat.com>
17794
17795 PR lto/65012
17796 * varpool.c (varpool_node::get_constructor): Return early
17797 if this->lto_file_data is NULL.
17798
17799 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17800
17801 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17802 (rank_for_schedule_debug): Update.
17803 (ready_sort): Make static. Move sorting logic to ...
17804 (ready_sort_debug, ready_sort_real): New static functions.
17805 (schedule_block): Sort both debug insns and real insns in preparation
17806 for ready list trimming. Improve debug output.
17807 * sched-int.h (ready_sort): Remove global declaration.
17808
17809 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
17810
17811 * ipa-icf.c (sem_function::equals_private): Adjust.
17812 (sem_function::bb_dict_test): Take a vec<int> * instead of
17813 auto_vec<int>.
17814 * ipa-icf.h (bb_dict_test): Likewise.
17815
17816 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17817
17818 PR gcov-profile/64634
17819 * tree-eh.c (frob_into_branch_around): Fix up typos
17820 in function comment.
17821 (lower_catch): Put eh_seq resulting from EH lowering of
17822 the cleanup sequence after the cleanup rather than before it.
17823
17824 2015-02-18 Tom de Vries <tom@codesourcery.com>
17825
17826 * common.opt (fstdarg-opt): New option.
17827 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17828 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17829 (@item -fstdarg-opt): New item.
17830
17831 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
17832
17833 PR target/65064
17834 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17835 for common symbols.
17836
17837 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17838
17839 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17840 insn-modes.h.
17841 (ALL_HOST_OBJS): Add mkoffload.o.
17842 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17843
17844 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
17845
17846 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17847 (compare_virtual_tables): Be smarter about skipping typeinfos;
17848 do sane output on virtual table table mismatch.
17849 (warn_odr): Be ready for forward declarations of enums;
17850 output sane info on base mismatch and virtual table mismatch.
17851 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17852 when only one type is polymorphic.
17853 (get_odr_type): Fix hashtable corruption.
17854 (dump_odr_type): Dump mangled names.
17855
17856 2015-02-18 Richard Biener <rguenther@suse.de>
17857
17858 PR tree-optimization/65063
17859 * tree-predcom.c (determine_unroll_factor): Return 1 if we
17860 have replaced looparound PHIs.
17861
17862 2015-02-18 Martin Liska <mliska@suse.cz>
17863
17864 * lto-streamer.c (lto_streamer_init): Encapsulate
17865 streamer_check_handled_ts_structures with checking macro.
17866
17867 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17868
17869 PR ipa/65087
17870 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17871 section if !implicit_section.
17872 (cgraph_node::create_version_clone_with_body): Likewise.
17873 * trans-mem.c (ipa_tm_create_version): Likewise.
17874
17875 2015-02-18 Richard Biener <rguenther@suse.de>
17876
17877 PR tree-optimization/62217
17878 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17879 into BIVs.
17880
17881 2015-02-18 Marek Polacek <polacek@redhat.com>
17882
17883 PR sanitizer/65081
17884 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17885 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17886 is in range [-16K, -1]. Don't issue run-time error if
17887 (ptr > ptr + offset).
17888
17889 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
17890
17891 * doc/install.texi (nvptx-*-none): New section.
17892 * doc/invoke.texi (Nvidia PTX Options): Likewise.
17893 * config/nvptx/nvptx.opt: Update.
17894
17895 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17896 (access_check): New functions, copied from
17897 config/i386/intelmic-mkoffload.c.
17898 (main): For non-installed testing, look in all COMPILER_PATHs for
17899 GCC_INSTALL_NAME.
17900
17901 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17902
17903 2015-02-18 Andrew Pinski <apinski@cavium.com>
17904 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17905
17906 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17907 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17908
17909 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17910
17911 * ipa-visibility.c (function_and_variable_visibility): Only
17912 check locality if node is not already local.
17913 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17914 call_for_symbol_and_aliases instead of
17915 call_for_symbol_thunks_and_aliases.
17916 (ipa_inline): Likewise.
17917 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17918 first walk aliases.
17919 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17920 call_for_symbol_and_aliases.
17921 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17922 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17923 (ipa_propagate_frequency): Update.
17924 (ipa_profile): Add opt_for_fn gueards.
17925
17926 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17927
17928 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17929 * doc/invoke.texi (SH options): Document it.
17930 * config/sh/sh.c (sh_insn_length_adjustment): Check
17931 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17932
17933 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
17934
17935 * common.opt (fipa-cp-alignment): New.
17936 * ipa-cp.c (ipcp_store_alignment_results): Check
17937 flag_ipa_cp_alignment.
17938 * opts.c (default_options_table): Enable -fipa-cp-alignment for
17939 -O2.
17940 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17941 * doc/invoke.texi: Document -fipa-cp-alignment.
17942
17943 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17944
17945 PR target/64793
17946 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17947 to nil. Adjust comments.
17948
17949 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17950
17951 * ipa-visibility.c (function_and_variable_visibility): Only
17952 check locality if node is not already local.
17953 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17954 call_for_symbol_and_aliases instead of
17955 call_for_symbol_thunks_and_aliases.
17956 (ipa_inline): Likewise.
17957 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17958 first walk aliases.
17959 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17960 call_for_symbol_and_aliases.
17961 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17962 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17963 (ipa_propagate_frequency): Update.
17964 (ipa_profile): Add opt_for_fn guards.
17965
17966 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
17967
17968 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17969 skipping of "strange" tokens.
17970
17971 2015-02-17 Jeff Law <law@redhat.com>
17972
17973 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
17974 obsolete comment.
17975
17976 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
17977
17978 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
17979 as forcing a HARD_DEP between instructions, thereby
17980 disallowing rewriting to break dependencies.
17981
17982 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
17983
17984 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
17985 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
17986 variables in boundary that have no inlitalizer encoded and are
17987 not aliases.
17988 * varasm.c (default_binds_local_p_2): External definitions do not
17989 count as definitions here.
17990
17991 2015-02-16 Jeff Law <law@redhat.com>
17992
17993 PR tree-optimization/64823
17994 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
17995 statements.
17996 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17997 threading through blocks with PHIs, but no statements.
17998 (thread_through_normal_block): Distinguish between blocks where
17999 we did not process all the statements and blocks with no statements.
18000
18001 2015-02-16 Jakub Jelinek <jakub@redhat.com>
18002 James Greenhalgh <james.greenhalgh@arm.com>
18003
18004 PR ipa/64963
18005 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18006 section if not linkonce. Fix up formatting.
18007 (cgraph_node::create_version_clone_with_body): Copy section.
18008 * trans-mem.c (ipa_tm_create_version): Likewise.
18009
18010 2015-02-16 Richard Biener <rguenther@suse.de>
18011
18012 PR tree-optimization/65077
18013 * tree-ssa-structalias.c (get_constraint_for_1): Handle
18014 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18015 (find_func_aliases): Allow float values to carry pointers again.
18016
18017 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
18018
18019 * doc/install.texi (Specific): Reorder targets list to put
18020 aarch64 in alphabetical order. Add a link to aarch64*-*-*
18021 from the top menu.
18022
18023 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18024 David Edelsohn <dje.gcc@gmail.com>
18025
18026 PR target/65058
18027 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18028 mapping class to external variable or function reference.
18029 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18030 mapping class.
18031
18032 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
18033
18034 PR target/53348
18035 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18036 ASM_WEAKEN_DECL if defined.
18037
18038 2015-02-16 Richard Biener <rguenther@suse.de>
18039
18040 PR lto/65015
18041 * varasm.c (default_file_start): For LTO produced units
18042 emit <artificial> as file directive.
18043
18044 2015-02-16 Richard Biener <rguenther@suse.de>
18045
18046 PR tree-optimization/63593
18047 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18048 stmts and releasing SSA names until...
18049 (execute_pred_commoning): ... after processing all chains.
18050
18051 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18052
18053 PR ipa/65059
18054 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18055 external functions.
18056
18057 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
18058
18059 * doc/bugreport.texi: Adjust section titles throughout the file
18060 to use "Title Case".
18061 * doc/extend.texi: Likewise.
18062 * doc/gcov.texi: Likewise.
18063 * doc/implement-c.texi: Likewise.
18064 * doc/implement-cxx.texi: Likewise.
18065 * doc/invoke.texi: Likewise.
18066 * doc/objc.texi: Likewise.
18067 * doc/standards.texi: Likewise.
18068 * doc/trouble.texi: Likewise.
18069
18070 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
18071
18072 * cgraph.h (symtab_node::has_aliases_p): Simplify.
18073 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18074 * tree.c (lookup_binfo_at_offset): Make static.
18075 (get_binfo_at_offset): Do not shadow offset; add explanatory
18076 comment.
18077
18078 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
18079
18080 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18081 for all floading point loads and stores except those using a register
18082 index address.
18083 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18084 to a register.
18085
18086 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18087
18088 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18089 (do_estimate_growth_1): Record if any uninlinable edge was seen.
18090 (estimate_growth): Handle uninlinable edges correctly.
18091 (check_callers): New.
18092 (growth_likely_positive): Handle aliases correctly.
18093
18094 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18095
18096 * ipa-chkp.c: Use iterate_direct_aliases.
18097 * symtab.c (resolution_used_from_other_file_p): Move inline.
18098 (symtab_node::create_reference): Fix formating.
18099 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18100 (symtab_node::iterate_reference): Move inline.
18101 (symtab_node::iterate_referring): Move inline.
18102 (symtab_node::iterate_direct_aliases): Move inline.
18103 (symtab_node::used_from_object_file_p_worker): Inline into ...
18104 (symtab_node::used_from_object_file_p): ... this one; move inline.
18105 (symtab_node::call_for_symbol_and_aliases): Move inline;
18106 use iterate_direct_aliases.
18107 (symtab_node::call_for_symbol_and_aliases_1): New method.
18108 (cgraph_node::call_for_symbol_and_aliases): Move inline;
18109 use iterate_direct_aliases.
18110 (cgraph_node::call_for_symbol_and_aliases_1): New method.
18111 (varpool_node::call_for_node_and_aliases): Rename to ...
18112 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18113 use iterate_direct_aliases.
18114 (varpool_node::call_for_symbol_and_aliases_1): New method.
18115 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18116 (ipa_discover_readonly_nonaddressable_var): Update.
18117 * ipa-devirt.c: Fix formating.
18118 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18119 Move inline.
18120 (cgraph_node::call_for_symbol_and_aliases): Move inline.
18121 (cgraph_node::call_for_symbol_and_aliases_1): New function..
18122 * cgraph.h (used_from_object_file_p_worker): Remove.
18123 (resolution_used_from_other_file_p): Move inline.
18124 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18125 (symtab_node::iterate_reference): Move inline.
18126 (symtab_node::iterate_referring): Move inline.
18127 (symtab_node::iterate_direct_aliases): Move inline.
18128 (symtab_node::used_from_object_file_p_worker): Inline into ...
18129 (symtab_node::used_from_object_file_p): Move inline.
18130 * tree-emutls.c (ipa_lower_emutls): Update.
18131 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18132 (varpool_node::call_for_node_and_aliases): Remove.
18133
18134 2015-02-14 Jakub Jelinek <jakub@redhat.com>
18135
18136 PR tree-optimization/62209
18137 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18138 op == range->exp, insert seq and gimplified code after labels
18139 instead of after the phi.
18140
18141 2015-02-13 Jeff Law <law@redhat.com>
18142
18143 PR bootstrap/65060
18144 Revert my change for tree-optimization/64823.
18145
18146 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18147
18148 PR tree-optimization/65053
18149 * tree-ssa-phiopt.c (value_replacement): When moving assign before
18150 cond, either reset VR on lhs or set it to phi result VR.
18151
18152 2015-02-13 Jeff Law <law@redhat.com>
18153
18154 PR tree-optimization/64823
18155 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18156 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18157 threading through blocks with PHIs, but no statements.
18158 (thread_through_normal_block): Distinguish between blocks where
18159 we did not process all the statements and blocks with no statements.
18160
18161 PR rtl-optimization/47477
18162 * match.pd (convert (plus/minus (convert @0) (convert @1): New
18163 simplifier to narrow arithmetic.
18164
18165 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
18166
18167 PR ipa/65028
18168 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18169 polymorphic call info when type is not known to be preserved.
18170
18171 2015-02-13 Maritn Jambor <mjambor@suse.cz>
18172
18173 PR ipa/65028
18174 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18175 (inline_call): Use it.
18176
18177 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
18178
18179 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18180 GOMP_DEVICE_NVIDIA_PTX.
18181
18182 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18183
18184 PR ipa/65034
18185 * stmt.c (emit_case_nodes): Use void_type_node instead of
18186 NULL_TREE as LABEL_DECL type.
18187
18188 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
18189
18190 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18191 constraints.
18192 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18193 symbolic references to data to be forced to constant memory on the
18194 SOM target.
18195
18196 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
18197
18198 PR tree-optimization/65002
18199 * tree-cfg.c (pass_data_fixup_cfg): Don't update
18200 SSA on start.
18201 * tree-sra.c (some_callers_have_no_vuse_p): New.
18202 (ipa_early_sra): Reject functions whose callers
18203 assume function is read only.
18204
18205 2015-02-13 Richard Biener <rguenther@suse.de>
18206
18207 PR lto/65015
18208 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18209 for LTO produced CUs.
18210
18211 2015-02-13 Bin Cheng <bin.cheng@arm.com>
18212
18213 PR tree-optimization/64705
18214 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18215 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18216 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18217 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18218 expand_simple_operations.
18219
18220 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
18221 Richard Henderson <rth@redhat.com>
18222
18223 PR rtl/32219
18224 * cgraphunit.c (cgraph_node::finalize_function): Set definition
18225 before notice_global_symbol.
18226 (varpool_node::finalize_decl): Likewise.
18227 * varasm.c (default_binds_local_p_2): Rename from
18228 default_binds_local_p_1, add weak_dominate argument. Use direct
18229 returns instead of assigning to local variable. Unify varpool and
18230 cgraph paths via symtab_node. Reject undef weak variables before
18231 testing visibility. Reorder tests for simplicity.
18232 (default_binds_local_p): Use default_binds_local_p_2.
18233 (default_binds_local_p_1): Likewise.
18234 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18235 via symtab_node.
18236 (default_elf_asm_output_external): Emit visibility when specified.
18237
18238 2015-02-13 Alan Modra <amodra@gmail.com>
18239
18240 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18241 code setting up r11 for out-of-line fp restore.
18242
18243 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
18244
18245 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18246 (muser-mode): Likewise.
18247
18248 2015-02-13 Alan Modra <amodra@gmail.com>
18249
18250 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18251 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18252
18253 2015-02-12 David Howells <dhowells@redhat.com>
18254
18255 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18256 warning.
18257 * tree-ssa-uninit.c (dump_predicates): Likewise.
18258 * opts.c (print_filtered_help): Likewise.
18259
18260 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18261
18262 * dwarf2out.c (output_die): Use "%s", name instead of name to
18263 avoid -Wformat-security warning.
18264
18265 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18266 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18267 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18268 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18269
18270 2015-02-12 Jason Merrill <jason@redhat.com>
18271
18272 * common.opt (-flifetime-dse): New.
18273
18274 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18275
18276 PR sanitizer/65019
18277 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18278
18279 PR tree-optimization/65014
18280 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18281 use original second operand of arg0 or arg1 instead of
18282 that adjusted by STRIP_NOPS.
18283
18284 2015-02-11 Jeff Law <law@redhat.com>
18285
18286 PR target/63347
18287 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18288 that needs to be queued, just queue it for a single cycle.
18289
18290 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18291
18292 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18293 bodies of thunks; comment on why.
18294 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18295 symbols are extern.
18296
18297 2015-02-11 Richard Henderson <rth@redhat.com>
18298
18299 PR sanitize/65000
18300 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18301 regions of __builtin_eh_copy_values.
18302
18303 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18304
18305 PR middle-end/65003
18306 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18307 ultimate alias is MEM with SYMBOL_REF satisfying
18308 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18309 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18310
18311 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18312
18313 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18314 "diagnostic-core.h".
18315 (main): Initialize progname, and call diagnostic_initialize.
18316
18317 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18318 instead of __OPENMP_TARGET__.
18319
18320 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18321 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18322 hard-coding PTX_ID.
18323
18324 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18325
18326 * doc/sourcebuild.texi (pie_enabled): Document.
18327
18328 2015-02-11 Martin Liska <mliska@suse.cz>
18329
18330 PR ipa/64813
18331 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18332 a return value for call to a function that is noreturn.
18333
18334 2015-02-11 Richard Biener <rguenther@suse.de>
18335
18336 PR lto/65015
18337 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18338 and -fresolution.
18339
18340 2015-02-11 Andrew Pinski <apinski@cavium.com>
18341
18342 PR target/64893
18343 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18344 Change the first argument type to size_type_node and add another
18345 size_type_node.
18346 (aarch64_simd_expand_builtin): Handle the new argument to
18347 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18348 print an out when the first two arguments are not
18349 nonzero integer constants.
18350 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18351 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18352
18353 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18354
18355 PR target/61925
18356 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18357 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18358 (ix86_set_current_function): Rewritten.
18359 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18360 when creating builtin fndecls.
18361
18362 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18363
18364 PR ipa/65005
18365 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18366 function.
18367 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18368 have no comdat group.
18369 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18370 (lto_output_varpool_node): Always output alias info.
18371 (output_refs): Output refs of boundary aliases, too.
18372 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18373 (output_symtab): Output call eges in thunks in boundary.
18374 (get_alias_symbol): Remove.
18375 (input_node, input_varpool_node): Do not special case weakrefs.
18376 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18377 alias and thunks targets in the boundary; do not take removed symbols
18378 from their comdat groups.
18379 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18380 (cgraph_node::global_info): Remove.
18381 (cgraph_node::rtl_info): Look through aliases and thunks.
18382 * cgrpah.h (global_info): Remove.
18383 (non_local_p): Remove.
18384
18385 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18386 Sandra Loosemore <sandra@codesourcery.com>
18387
18388 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18389 to inline asm. List dialects in proper order.
18390
18391 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18392 Sandra Loosemore <sandra@codesourcery.com>
18393
18394 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18395
18396 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18397
18398 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18399 modified) reference to Solaris.
18400
18401 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18402
18403 * doc/extend.texi (Extended Asm): Fix typos.
18404
18405 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18406
18407 PR sanitizer/65004
18408 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18409
18410 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18411
18412 PR target/64661
18413 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18414 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18415 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18416 * config/sh/constraints.md (Ara, Add): New constraints.
18417 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18418 predicates.
18419 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18420 atomic_mem_operand_0. Don't use force_reg on the memory address.
18421 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18422 Sra constraint. Convert to insn_and_split. Add workaround for
18423 PR 64974.
18424 (atomic_compare_and_swap<mode>_hard): Copy to
18425 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18426 Use atomic_mem_operand_0 predicate.
18427 (atomic_compare_and_swap<mode>_soft_gusa,
18428 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18429 AraAdd constraints.
18430 (atomic_compare_and_swap<mode>_soft_tcb,
18431 atomic_compare_and_swap<mode>_soft_imask,
18432 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18433 atomic_mem_operand_0 predicate and SraSdd constraints.
18434 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18435 constraint.
18436 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18437 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18438 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18439 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18440 force_reg on the memory address.
18441 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18442 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18443 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18444 atomic_mem_operand_1 predicate and Sra constraint.
18445 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18446 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18447 Use atomic_mem_operand_1 predicate.
18448 (atomic_<fetchop_name><mode>_hard): Copy to
18449 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18450 Use atomic_mem_operand_1 predicate.
18451 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18452 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18453 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18454 insn_and_split. Use atomic_mem_operand_1 predicate.
18455 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18456 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18457 Use atomic_mem_operand_1 predicate.
18458 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18459 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18460 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18461 in generated insn with original mem operand before emitting the insn.
18462 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18463 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18464 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18465 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18466 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18467 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18468 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18469 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18470 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18471 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18472 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18473 atomic_not_fetch<mode>_soft_tcb,
18474 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18475 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18476 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18477 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18478
18479 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18480
18481 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18482 and 3 earlyclobber operands.
18483
18484 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18485
18486 * common.opt (fstack-reuse): Mark as optimization.
18487
18488 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18489
18490 PR ipa/64982
18491 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18492
18493 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18494
18495 PR tree-optimization/64326
18496 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18497
18498 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18499
18500 PR gcov-profile/61889
18501 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18502
18503 2015-02-10 Richard Biener <rguenther@suse.de>
18504
18505 PR tree-optimization/64995
18506 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18507 value we use is final.
18508 (visit_reference_op_store): Always valueize op.
18509 (visit_use): Properly valueize vuses.
18510
18511 2015-02-10 Richard Biener <rguenther@suse.de>
18512
18513 PR tree-optimization/64909
18514 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18515 pass a scalar-stmt count estimate to the cost model.
18516 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18517
18518 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18519
18520 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18521 enabled by default together with var-tracking.
18522
18523 2015-02-10 Nick Clifton <nickc@redhat.com>
18524
18525 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18526 included in previous rl78 commit.
18527
18528 2015-02-10 Richard Biener <rguenther@suse.de>
18529
18530 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18531 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18532 return the bitpack.
18533
18534 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18535
18536 PR gcov-profile/61889
18537 * config.in: regenerate.
18538 * configure.in: Likewise.
18539 * configure.ac: Check for ftw.h.
18540 * gcov-tool.c: Check for ftw.h before using nftw.
18541
18542 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18543
18544 PR lto/64076
18545 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18546 assert when not in lto mode.
18547
18548 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18549
18550 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18551 initialization/assignment of conflict_size.
18552
18553 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18554
18555 PR ipa/64978
18556 * ipa-cp.c (gather_caller_stats): Skip thunks.
18557 (propagate_constants_topo): Skip aliases.
18558
18559 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18560
18561 PR target/64761
18562 * config/sh/sh.c (sh_option_override): Don't change
18563 -freorder-blocks-and-partition to -freorder-blocks even when
18564 unwinding is enabled.
18565 (sh_can_follow_jump): Return false if the followee jump is
18566 a crossing jump when -freorder-blocks-and-partition is specified.
18567 * config/sh/sh.md (*jump_compact_crossing): New insn.
18568
18569 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18570 Kaz Kojima <kkojima@gcc.gnu.org>
18571
18572 PR target/64761
18573 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18574 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18575 (sh_can_redirect_branch): Rename to ...
18576 (sh_can_follow_jump): ... this. Constify argument types.
18577 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18578 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18579 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18580 * doc/tm.texi: Regenerate.
18581
18582 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18583
18584 PR sanitizer/64981
18585 * builtins.c (expand_builtin): Call targetm.expand_builtin
18586 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18587
18588 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18589
18590 PR ipa/61548
18591 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18592
18593 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18594
18595 PR ipa/63566
18596 * ipa-icf.c (set_local): New function.
18597 (sem_function::merge): Use it.
18598
18599 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18600
18601 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18602 (add_type_duplicate): Fix comparison of BINFOs.
18603
18604 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18605
18606 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18607 on getting VOID pointer.
18608
18609 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18610
18611 PR target/64979
18612 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18613 va_list escapes.
18614
18615 2015-02-09 Richard Biener <rguenther@suse.de>
18616
18617 * genmatch.c (replace_id): Copy expr_type.
18618
18619 2015-02-09 Richard Biener <rguenther@suse.de>
18620
18621 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18622 (streamer_write_tree_bitfields): Declare.
18623 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18624 properly unpack padding.
18625 (unpack_value_fields): Inline ...
18626 (streamer_read_tree_bitfields): ... here.
18627 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18628 and properly add padding bits.
18629 (streamer_pack_tree_bitfields): Fold into ...
18630 (streamer_write_tree_bitfields): ... this new function,
18631 exposing the bitpack object.
18632 * lto-streamer-out.c (lto_write_tree_1): Call
18633 streamer_write_tree_bitfields.
18634
18635 2015-02-09 Richard Biener <rguenther@suse.de>
18636
18637 PR tree-optimization/54000
18638 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18639 (struct ivopts_data): Add loop_loc member.
18640 (tree_ssa_iv_optimize_loop): Dump loop location.
18641 (create_new_ivs): Likewise, also dump number of IVs generated.
18642
18643 2015-02-09 Martin Liska <mliska@suse.cz>
18644
18645 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18646 just if not yet registered.
18647 (ipa_icf_generate_summary): Register callgraph hooks.
18648
18649 2015-02-08 Andrew Pinski <apinski@cavium.com>
18650
18651 * config/aarch64/aarch64.c (gty_dummy): Delete.
18652
18653 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18654
18655 PR ipa/63566
18656 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18657 (cgraph_node::local_p): Remove thunk related FIXME.
18658
18659 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18660
18661 PR ipa/63566
18662 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18663 is local and optimized.
18664 (ix86_function_sseregparm): Likewise; also use target's SSE math
18665 settings; error out instead of silently generating wrong code
18666 on mismatches.
18667 (init_cumulative_args): Look through aliases.
18668
18669 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18670
18671 PR ipa/63566
18672 * ipa-split.c (execute_split_functions): Split if function has aliases.
18673
18674 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18675
18676 PR ipa/63566
18677 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18678 aliases before trying to expand it.
18679 (cgraph_node::expand_thunk): Fix formating.
18680
18681 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18682
18683 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18684 (Using Assembly Language with C): Expand introduction.
18685 (Basic Asm): Copy-edit. Add more information about uses of
18686 basic asm.
18687 (Extended Asm): Copy-edit. Document new escape syntax and
18688 %l[label] syntax.
18689 (Global Reg Vars): Copy-edit.
18690 (Local Reg Vars): Likewise.
18691
18692 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18693
18694 PR debug/2714
18695 PR bootstrap/64256
18696 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18697 (DBX_CONTIN_CHAR): Define.
18698
18699 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18700 Brian Rzycki <b.rzycki@samsung.com>
18701
18702 PR tree-optimization/64878
18703 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18704 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18705 Stop recursion at loop phi nodes after having visited a loop phi node.
18706
18707 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18708
18709 * toplev.c (process_options): Change flag_ipa_ra before creating
18710 optimization_{default,current}_node.
18711
18712 PR ipa/64896
18713 * cgraphunit.c (cgraph_node::expand_thunk): If
18714 restype is not is_gimple_reg_type nor the thunk_fndecl
18715 returns aggregate_value_p, set restmp to a temporary variable
18716 instead of resdecl.
18717
18718 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18719
18720 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18721
18722 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18723
18724 PR target/64205
18725 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18726 add a general secondary reload handler for SDmode, unless we have
18727 both read/write support for SDmode.
18728
18729 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18730
18731 PR middle-end/64937
18732 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18733 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18734 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18735 1 before, push it to abstract_vec.
18736 (dwarf2out_abstract_function): Adjust caller. Don't call
18737 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18738 DECL_ABSTRACT_P flags for all abstract_vec elts.
18739
18740 2015-02-06 Renlin Li <renlin.li@arm.com>
18741
18742 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18743 complex gimple.
18744 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18745
18746 2015-02-06 Jeff Law <law@redhat.com>
18747
18748 PR target/64889
18749 * config/h8300/h8300.c (push): New argument "in_prologue".
18750 Pass "in_prologue" along to "F".
18751 (h8300_push_pop): Corresponding changes.
18752 (h8300_expand_prologue): Likewise.
18753 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18754
18755 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18756
18757 PR rtl-optimization/64957
18758 PR debug/64817
18759 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18760 IOR rather than for AND.
18761
18762 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18763
18764 PR target/62631
18765 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18766 of shift-add and (add + shift) operations. Rename local variable.
18767
18768 2015-02-05 Jeff Law <law@redhat.com>
18769
18770 PR target/17306
18771 * config/h8300/constraints.md (U): Correctly dectect
18772 "eightbit_data" memory addresses.
18773 * config/h8300/h8300.c (eightbit_constant_address_p): Also
18774 handle (const (plus (symbol_ref (x)))) where x is declared
18775 as an 8-bit data memory address.
18776 * config/h8300/h8300.md (call, call_value): Correctly detect
18777 "funcvec" functions.
18778
18779 PR target/43264
18780 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18781 24 to 28 bits for the H8/300.
18782
18783 2015-02-06 Alan Modra <amodra@gmail.com>
18784
18785 PR target/64876
18786 * config/rs6000/rs6000.c (chain_already_loaded): New function.
18787 (rs6000_call_aix): Use it.
18788
18789 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
18790
18791 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18792 check.
18793
18794 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
18795
18796 * config/h8300/constraints.md ("U" constraint): Use strict
18797 variant of REG_OK_FOR_BASE_P after reload has started.
18798
18799 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
18800
18801 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18802 define to zero if !TARGET_NEON.
18803 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18804
18805 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18806 Trevor Saunders <tsaunders@mozilla.com>
18807
18808 PR ipa/61548
18809 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18810
18811 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18812
18813 PR ipa/61548
18814 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18815 when removing varpool nodes.
18816
18817 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18818
18819 PR ipa/61548
18820 * varpool.c (varpool_node::remove): Fix order of variables.
18821
18822 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18823
18824 PR ipa/64686
18825 * ipa-inline.c (inline_small_functions): Fix ordering issue between
18826 speculation resolution and key updates.
18827
18828 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18829
18830 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18831 about not letting any speculative edges unupdated.
18832
18833 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18834
18835 PR gcov/64123
18836 * gcov-io.c (gcov_var): Export.
18837
18838 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18839
18840 PR middle-end/64922
18841 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18842 edges that become speculative.
18843
18844 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18845
18846 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18847 or DW_LANG_Fortran08.
18848 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18849 DW_LANG_Fortran08.
18850 (gen_compile_unit_die): Handle "GNU Fortran2003" and
18851 "GNU Fortran2008" language strings.
18852 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18853 * langhooks.h (lang_GNU_Fortran): New prototype.
18854 * langhooks.c (lang_GNU_Fortran): New function.
18855 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18856 lang_GNU_Fortran.
18857
18858 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18859
18860 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18861 (RTX_OK_FOR_OLO10_P): Likewise.
18862
18863 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18864
18865 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18866
18867 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18868
18869 PR middle-end/64922
18870 * gimple.c: Include gimple-ssa.h.
18871 (maybe_remove_unused_call_args): New function.
18872 * gimple.h (maybe_remove_unused_call_args): Declare.
18873 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18874 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18875 * gimple-fold.c (gimple_fold_call): Likewise.
18876
18877 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
18878
18879 PR rtl-optimization/64905
18880 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18881 pointer alignment if it isn't needed.
18882
18883 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18884
18885 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18886 cortex-a72.cortex-a53.
18887 * config/aarch64/aarch64-tune.md: Regenerate.
18888 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18889
18890 2015-02-04 Nick Clifton <nickc@redhat.com>
18891
18892 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18893 inside a MEM.
18894
18895 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18896
18897 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18898 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18899 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18900 of DEF_BUILTIN.
18901 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18902 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18903 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18904 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18905 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18906 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18907 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18908 * tree-core.h (enum built_in_function): In between
18909 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18910 for builtins that use DEF_BUILTIN_CHKP macro.
18911
18912 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
18913
18914 PR debug/64817
18915 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18916 operands for tcc_comparison exprs. Fix typos.
18917
18918 PR debug/64817
18919 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18920 of two XORs that have an intervening AND or IOR.
18921
18922 PR debug/64817
18923 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18924 simplification of XOR of AND to not allocate new rtx before
18925 committing to a simplification.
18926
18927 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18928
18929 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18930 manual swaps in all peepholes.
18931
18932 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18933
18934 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18935 of manual swapping implementation.
18936 (aarch64_expand_vec_perm_const_1): Likewise.
18937
18938 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
18939
18940 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18941 (generic_addrcost_table): Remove NAMED_PARAM.
18942 (cortexa57_addrcost_table): Likewise.
18943 (xgene1_addrcost_table): Likewise.
18944 (generic_regmove_table): Likewise.
18945 (cortexa53_regmove_table): Likewise.
18946 (xgene1_regmove_table): Likewise.
18947 (generic_vector_table): Likewise.
18948 (cortexa57_vector_table): Likewise.
18949 (xgene1_vector_table): Likewise.
18950 (generic_tunings): Likewise.
18951 (cortexa53_tunings): Likewise.
18952 (cortexa57_tunings): Likewise.
18953 (xgene1_tunings): Likewise.
18954
18955 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18956
18957 * config/arm/arm-cores.def: Add cortex-a72 and
18958 cortex-a72.cortex-a53.
18959 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18960 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18961 * config/arm/arm-tune.md: Regenerate.
18962 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18963 "cortex-a72.cortex-a53".
18964 * doc/invoke.texi (ARM Options/-mtune): Likewise.
18965
18966 2015-02-04 Nick Clifton <nickc@redhat.com>
18967
18968 PR target/64408
18969 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18970 of accepted codes.
18971 (nonimmediate_di_operand): Likewise.
18972
18973 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
18974 prefixes of known F5 using MSP430 MCUs.
18975
18976 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18977
18978 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
18979 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
18980 instead of __builtin_sqrt.
18981
18982 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
18983
18984 * varasm.c (do_assemble_alias): Follow transparent alias
18985 chain for target.
18986 (default_assemble_visibility): Follow transparent alias
18987 chain for decl name.
18988
18989 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18990
18991 PR middle-end/62103
18992 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
18993 to compute size of referenced value in the constant case.
18994
18995 2015-02-03 Jakub Jelinek <jakub@redhat.com>
18996
18997 PR rtl-optimization/64756
18998 * cse.c (invalidate_dest): New function.
18999 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
19000 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19001 invalidate and do not record it.
19002
19003 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
19004
19005 PR target/64660
19006 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19007 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19008 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19009 atomic_nand<mode>_soft_tcb): New insns.
19010 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19011 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19012 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19013 Split into atomic_not_fetchsi_hard if operands[0] is unused.
19014 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19015 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19016 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
19017 atomic_not<mode>_hard if operands[0] is unused.
19018 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19019 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19020 if operands[0] is unused.
19021 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
19022 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19023 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19024 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19025 unused.
19026 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
19027 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19028 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19029 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19030 if operands[0] is unused.
19031 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
19032 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19033 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
19034 atomic_nand_fetchsi_hard if operands[0] is unused.
19035 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
19036 atomic_nand<mode>_hard if operands[0] is unused.
19037 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
19038 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19039 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
19040 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19041 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
19042 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19043 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19044 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19045 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
19046 atomic_not<mode>_hard if operands[0] is unused.
19047 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19048 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19049 unused.
19050 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19051 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19052 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
19053 atomic_nand<mode>_hard if operands[0] is unused.
19054 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19055 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19056
19057 2015-02-03 David Malcolm <dmalcolm@redhat.com>
19058
19059 PR jit/64810
19060 * Makefile.in (GCC_OBJS): Add gcc-main.o.
19061 * gcc-main.c: New file, containing "main" taken from gcc.c.
19062 * gcc.c (do_self_spec): Free decoded_options.
19063 (class driver): Move declaration to gcc.h.
19064 (main): Move declaration and implementation to new file
19065 gcc-main.c.
19066 (driver_get_configure_time_options): New function.
19067 * gcc.h (class driver): Move this declaration here, from
19068 gcc.c.
19069 (driver_get_configure_time_options): New declaration.
19070
19071 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
19072
19073 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19074 cross-module inlining.
19075 * cgraph.h (cgraph_node): Add flag merged.
19076 * ipa-icf.c (sem_function::merge): Maintain it.
19077
19078 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
19079
19080 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19081 instead of OBJECT_P.
19082
19083 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
19084
19085 PR target/62631
19086 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19087 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19088 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19089 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19090
19091 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19092
19093 PR other/63504
19094 * combine.c (reg_n_sets_max): New variable.
19095 (can_change_dest_mode, reg_nonzero_bits_for_combine,
19096 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19097 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19098 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19099 (rest_of_handle_combine): Initialize reg_n_sets_max.
19100
19101 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
19102
19103 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19104 if some always_inline was inlined, apply changes before inlining
19105 heuristically.
19106
19107 2015-02-02 David Malcolm <dmalcolm@redhat.com>
19108
19109 PR jit/64810
19110 * config/arm/arm.c (arm_option_override): Set
19111 arm_selected_arch/cpu/tune to NULL on entry.
19112
19113 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
19114 Andrew Pinski <pinskia@gcc.gnu.org>
19115 Jakub Jelinek <jakub@gcc.gnu.org>
19116
19117 PR target/64231
19118 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19119 integer typing for small model. Use IN_RANGE.
19120
19121 2015-02-02 Richard Biener <rguenther@suse.de>
19122
19123 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19124 * tree-vrp.c (vrp_valueize_1): Likewise.
19125
19126 2015-02-02 Alan Modra <amodra@gmail.com>
19127
19128 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19129 than mem for toc_restore.
19130 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19131 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19132 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19133
19134 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
19135
19136 PR target/64047
19137 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19138 explicit default options.
19139
19140 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
19141
19142 PR ipa/64872
19143 * ipa-utils.c (ipa_merge_profiles): Add release argument.
19144 * ipa-icf.c (sem_function::merge): Do not release body when merging.
19145 * ipa-utils.h (ipa_merge_profiles): Update prototype.
19146
19147 2015-02-01 Jakub Jelinek <jakub@redhat.com>
19148
19149 PR debug/64817
19150 * cfgexpand.c (deep_ter_debug_map): New variable.
19151 (avoid_deep_ter_for_debug): New function.
19152 (expand_debug_expr): If TERed SSA_NAME is in
19153 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19154 instead of trying to expand SSA_NAME's def stmt.
19155 (expand_debug_locations): When expanding debug bind
19156 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19157 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19158 value.
19159 (pass_expand::execute): Call avoid_deep_ter_for_debug on
19160 all debug bind stmts. Delete deep_ter_debug_map after
19161 expand_debug_location if non-NULL and clear it.
19162
19163 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
19164
19165 PR target/64851
19166 * config/sh/sync.md (atomic_fetch_notsi_hard,
19167 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19168 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19169 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19170 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19171 atomic_not_fetch<mode>_soft_imask): New insns.
19172
19173 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19174
19175 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19176 (rank_for_schedule_debug): Split from ...
19177 (rank_for_schedule): ... this.
19178 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19179 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19180
19181 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19182
19183 * doc/md.texi (Machine Constraints): Alphabetize table by target.
19184 * doc/extend.texi (x86 Variable Attributes): Move section to
19185 correct alphabetization after renaming.
19186 (x86 Type Attributes): Likewise.
19187 (Target Builtins): Re-alphabetize menu.
19188 (x86 Built-in Functions): Move section to correct alphabetization
19189 after renaming.
19190 (x86 transactional memory intrinsics): Likewise.
19191 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19192 and x86 Windows Options in table and menu.
19193 (x86 Options): Move section to correct alphabetization after
19194 renaming.
19195 (x86 Windows Options): Likewise.
19196
19197 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19198
19199 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19200 preferred names of the architecture and its 32- and 64-bit
19201 variants.
19202 * doc/invoke.texi: Likewise.
19203 * doc/md.texi: Likewise.
19204
19205 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19206
19207 PR target/64882
19208 * config/i386/predicates.md (address_no_seg_operand): Reject
19209 non-CONST_INT_P operands in invalid mode.
19210
19211 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19212
19213 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19214 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
19215 * config/i386/predicates.md (address_no_seg_operand): Call
19216 address_operand with VOIDmode.
19217 (vsib_address_operand): Ditto.
19218 (address_mpx_no_base_operand): Ditto.
19219 (address_mpx_no_index_operand): Ditto.
19220
19221 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19222
19223 PR target/64688
19224 * lra-constraints.c (original_subreg_reg_mode): New.
19225 (simplify_operand_subreg): Try to simplify subreg of const. Use
19226 original_subreg_reg_mode for it.
19227 (swap_operands): Update original_subreg_reg_mode.
19228 (curr_insn_transform): Set up original_subreg_reg_mode.
19229
19230 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19231
19232 PR target/64617
19233 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19234 function.
19235 (process_alt_operands): Use it.
19236 (curr_insn_transform): Check the optional reload pseudo class is
19237 ok for the mode.
19238
19239 2015-01-30 Joseph Myers <joseph@codesourcery.com>
19240
19241 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19242 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19243 prototype.
19244 * toplev.h (init_asm_output): Update comment on use of
19245 UNKNOWN_LOCATION with fatal_error.
19246 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19247 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19248 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19249 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19250 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19251 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19252 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19253 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19254 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19255 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19256 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19257 fatal_error changed to pass input_location as first argument.
19258
19259 2015-01-30 Martin Liska <mliska@suse.cz>
19260
19261 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19262 in #pragma GCC diagnostic guards.
19263
19264 2015-01-30 Richard Biener <rguenther@suse.de>
19265
19266 PR tree-optimization/64829
19267 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19268 not add a widening conversion pattern but hand off extra
19269 widenings to callers.
19270 (vect_recog_widen_mult_pattern): Handle extra widening produced
19271 by vect_handle_widen_op_by_const.
19272 (vect_recog_widen_shift_pattern): Likewise.
19273 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19274 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19275 (vect_init_vector_1): Likewise.
19276 (vect_get_vec_def_for_operand): Likewise.
19277 (vect_finish_stmt_generation): Likewise.
19278 (vectorizable_load): Likewise.
19279 (vect_analyze_stmt): Likewise.
19280 (vect_is_simple_use): Likewise.
19281
19282 2015-01-29 Jeff Law <law@redhat.com>
19283
19284 * combine.c (try_combine): Fix typo in comment.
19285
19286 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19287
19288 PR target/64580
19289 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19290 (rs6000_stack_info): Add assert.
19291 (rs6000_output_savres_externs): New function, split off from...
19292 (rs6000_output_function_prologue): ... here. Do not call it for
19293 thunks.
19294
19295 2015-01-29 Jeff Law <law@redhat.com>
19296
19297 PR target/15184
19298 * combine.c (try_combine): If I0 is a memory load and I3 a store
19299 to a related address, increase the "goodness" of doing a 4-insn
19300 combination with I0-I3.
19301 (make_field_assignment): Handle SUBREGs in the ior+and case.
19302
19303 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19304
19305 PR tree-optimization/64746
19306 * tree-if-conv.c (mask_exists): New function.
19307 (predicate_mem_writes): Save created mask with given size for further
19308 use.
19309 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19310 (ifcvt_repair_bool_pattern): Collect all statements that are root
19311 of bool pattern and use iterative algorithm to remove multiple uses
19312 of predicates, display number of required iterations.
19313
19314 2015-01-29 Richard Biener <rguenther@suse.de>
19315
19316 PR tree-optimization/64853
19317 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19318 stmt will get simulated again.
19319 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19320
19321 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19322
19323 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19324 return_in_pc. Remove redundant assignments.
19325 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19326 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19327
19328 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19329
19330 * config/i386/i386.c (ix86_mode_after): Make static.
19331
19332 2015-01-29 Richard Biener <rguenther@suse.de>
19333
19334 PR tree-optimization/64844
19335 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19336 dump cost model analysis.
19337 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19338 Do not register adjusted load/store costs here.
19339
19340 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19341 Uros Bizjak <ubizjak@gmail.com>
19342
19343 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19344 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19345 using x86_use_pseudo_pic_reg.
19346 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19347 support for fixed PIC register.
19348 (ix86_use_pseudo_pic_reg): Not static any more.
19349
19350 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19351
19352 PR middle-end/64805
19353 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19354 to avoid error in cgraph node verification.
19355
19356 2015-01-29 Marek Polacek <polacek@redhat.com>
19357
19358 * doc/standards.texi: Reflect that the default for C is gnu11.
19359
19360 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19361
19362 PR target/64761
19363 * reorg.c (switch_text_sections_between_p): New function.
19364 (relax_delay_slots): Call it when testing if the jump insn
19365 is removable. Use targetm.can_follow_jump when testing if
19366 the conditional branch can follow an unconditional jump.
19367
19368 2015-01-27 Caroline Tice <cmtice@google.com>
19369
19370 Committing VTV Cywin/Ming patch for Patrick Wollgast
19371 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19372 if -fvtable-verify=preinit/std is used.
19373 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19374 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19375 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19376 if -fvtable-verify=preinit/std is used.
19377 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19378 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19379 if -fvtable-verify=preinit/std is used.
19380 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19381 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19382 * varasm.c (assemble_variable): Add code to properly set the comdat
19383 section and name for the .vtable_map_vars section in case the
19384 target is PE or COFF.
19385
19386 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19387
19388 PR ipa/64801
19389 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19390 make sane BB profile.
19391 (cgraph_node::expand_thunk): Make sane BB profile.
19392 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19393 * cgraph.h (init_lowered_empty_function): Update prototype.
19394 * config/i386/i386.c (make_resolver_func): Update call.
19395 * predict.c (gate): Disable branch prediction pass if
19396 profile is already there.
19397
19398 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19399
19400 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19401 * opth-gen.awk: Likewise.
19402 * common.opt: Mark flag_fp_contract_mode as Optimization.
19403
19404 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19405
19406 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19407 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19408
19409 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19410
19411 PR target/64659
19412 * config/sh/predicates.md (atomic_arith_operand,
19413 atomic_logical_operand): Remove.
19414 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19415 (atomic_arith_operand_0): New predicate.
19416 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19417 Use atomic_arith_operand_0 for input values.
19418 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19419 atomic_compare_and_swap<mode>_soft_gusa,
19420 atomic_compare_and_swap<mode>_soft_tcb,
19421 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19422 arith_reg_operand instead of register_operand.
19423 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19424 atomic_arith_operand_0 for newval input.
19425 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19426 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19427 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19428 arith_reg_operand instead of register_operand.
19429 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19430 fetchop_predicate_1, fetchop_constraint_1_llcs,
19431 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19432 fetchop_constraint_1_imask): New code iterator attributes.
19433 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19434 register_operand. Use fetchop_predicate_1.
19435 (atomic_fetch_<fetchop_name>si_hard,
19436 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19437 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19438 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19439 and arith_reg_operand instead of register_operand. Use
19440 fetchop_predicate_1, fetchop_constraint_1_gusa.
19441 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19442 and arith_reg_operand instead of register_operand. Use
19443 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19444 to allow R0 usage.
19445 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19446 and arith_reg_operand instead of register_operand. Use
19447 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19448 to allow R0 usage.
19449 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19450 register_operand. Use atomic_logical_operand_1.
19451 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19452 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19453 arith_reg_operand instead of register_operand.
19454 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19455 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19456 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19457 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19458 register_operand. Use fetchop_predicate_1.
19459 (atomic_<fetchop_name>_fetchsi_hard,
19460 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19461 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19462 fetchop_constraint_1_llcs.
19463 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19464 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19465 fetchop_constraint_1_gusa.
19466 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19467 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19468 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19469 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19470 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19471 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19472 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19473 register_operand. Use atomic_logical_operand_1.
19474 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19475 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19476 arith_reg_operand instead of register_operand.
19477 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19478 arith_reg_operand instead of register_operand. Use logical_operand
19479 and K08. Adjust asm sequence to allow R0 usage.
19480 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19481 arith_reg_operand instead of register_operand. Use logical_operand
19482 and K08.
19483
19484 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19485
19486 PR other/63504
19487 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19488 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19489 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19490 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19491 all bits in *val_wide.
19492
19493 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19494
19495 * varpool.c (tls_model_names): Fix names.
19496 (varpool_node::dump): Dump tls- prefix for tls models.
19497
19498 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19499 Bernd Schmidt <bernds@codesourcery.com>
19500 Nathan Sidwell <nathan@codesourcery.com>
19501
19502 * config/nvptx/mkoffload.c: New file.
19503 * config/nvptx/t-nvptx: Add build rules for it.
19504 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19505 (extra_programs): Add mkoffload.
19506 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19507 function.
19508 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19509
19510 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19511
19512 PR middle-end/64809
19513 * cfgexpand.c (reorder_operands): Skip debug gimples.
19514
19515 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19516
19517 PR tree-optimization/64277
19518 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19519 range info when possible to refine estimation.
19520
19521 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19522
19523 PR tree-optimization/64718
19524 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19525 be a 16bit unsigned integer when n->range is 16.
19526 (bswap_replace): Convert src to that type if necessary for all bswap
19527 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19528 set in pass_optimize_bswap::execute ().
19529
19530 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19531
19532 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19533 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19534 integer and floating point variants.
19535 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19536
19537 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19538
19539 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19540 for all vector modes.
19541
19542 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19543
19544 PR bootstrap/64612
19545 * doc/sourcebuild.texi (comdat_group): Document.
19546
19547 2015-01-28 Terry Guo <terry.guo@arm.com>
19548
19549 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19550
19551 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19552
19553 * toplev.c (print_version): Add param "show_global_state", and
19554 only print GGC and plugin information if it is true.
19555 (init_asm_output): Pass in "true" for the new param when calling
19556 print_version.
19557 (process_options): Likewise.
19558 (toplev::main): Likewise.
19559 * toplev.h (print_version): Add new param to decl.
19560
19561 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19562
19563 PR ipa/60871
19564 PR ipa/64139
19565 * tree.c (lookup_binfo_at_offset): New function.
19566 (get_binfo_at_offset): Use it.
19567
19568 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19569
19570 PR ipa/64282
19571 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19572 on vtable being vtable.
19573
19574 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19575
19576 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19577 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19578 -mhotpatch= option.
19579 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19580 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19581 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19582 Renamed.
19583 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19584 (s390_hotpatch_hw_max): New name.
19585 (s390_hotpatch_trampoline_halfwords): Renamed.
19586 (s390_hotpatch_hw_before_label): New name.
19587 (get_hotpatch_attribute): Removed.
19588 (s390_hotpatch_hw_after_label): New name.
19589 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19590 attribute.
19591 (s390_attribute_table): Ditto.
19592 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19593 (s390_function_num_hotpatch_hw): New name.
19594 Remove special handling of inline functions and hotpatching.
19595 Return number of nops before and after the function label.
19596 (s390_can_inline_p): Removed.
19597 (s390_asm_output_function_label): Emit a configurable number of nops
19598 after the function label.
19599 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19600 (TARGET_CAN_INLINE_P) Removed.
19601 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19602
19603 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19604 Jiong Wang <jiong.wang@arm.com>
19605
19606 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19607 of scratch reg.
19608 (cb<optab><mode>1): Likewise.
19609 * config/aarch64/iterators.md (bcond): New define_code_attr.
19610
19611 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19612
19613 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19614 memory accesses.
19615
19616 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19617
19618 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19619 FPR->GPR moves.
19620
19621 2015-01-27 Richard Biener <rguenther@suse.de>
19622
19623 * tree-vrp.c (update_value_range): Intersect the range with
19624 old recorded SSA name range information.
19625
19626 2015-01-27 Nick Clifton <nickc@redhat.com>
19627
19628 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19629 BC, DE and HL registers directly, not via AX.
19630 When decrementing the stack pointer by a large amount, transfer SP
19631 into AX and perform the subtraction there.
19632 (rl78_expand_epilogue): Perform the inverse of the above
19633 enhancements.
19634
19635 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19636
19637 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19638
19639 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19640 Yury Gribov <y.gribov@samsung.com>
19641
19642 PR ubsan/64741
19643 * ubsan.c (ubsan_source_location): Refactor code.
19644 (ubsan_type_descriptor): Update type size. Refactor code.
19645
19646 2015-01-27 Richard Biener <rguenther@suse.de>
19647
19648 PR tree-optimization/56273
19649 PR tree-optimization/59124
19650 PR tree-optimization/64277
19651 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19652 from the first VRP pass.
19653
19654 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19655
19656 PR ipa/64776
19657 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19658 handle the first argument in the same loop as all the other arguments.
19659
19660 PR rtl-optimization/61058
19661 * jump.c (cleanup_barriers): Update basic block boundaries
19662 if BLOCK_FOR_INSN is non-NULL on PREV.
19663
19664 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19665
19666 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19667 bounds narrowing, already instrumented calls and calls to
19668 not instrumentable functions.
19669
19670 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19671
19672 PR tree-optimization/64807
19673 * wide-int.cc (wi::divmod_internal): Clear
19674 b_dividend[dividend_blocks_needed].
19675
19676 2015-01-26 DJ Delorie <dj@redhat.com>
19677
19678 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19679 volatile memory references.
19680
19681 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19682
19683 PR target/49263
19684 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19685 remove_insn.
19686 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19687 shifts if it already fits into K08.
19688
19689 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19690
19691 PR ipa/64730
19692 * ipa-inline.c (inline_small_functions): Print "unknown" even
19693 if edge->call_stmt is non-NULL, but has builtins or unknown
19694 location.
19695
19696 PR middle-end/64421
19697 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19698 with asterisk, skip the first character.
19699
19700 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19701
19702 PR target/64806
19703 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19704 order change.
19705
19706 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19707
19708 PR target/64795
19709 * config/i386/i386.md (*movdi_internal): Also check operand 0
19710 to determine TYPE_LEA operand.
19711 (*movsi_internal): Ditto.
19712
19713 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19714
19715 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19716 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19717
19718 2015-01-26 Renlin Li <renlin.li@arm.com>
19719
19720 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19721 the comment.
19722 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19723 for higher part.
19724
19725 2015-01-26 Richard Biener <rguenther@suse.de>
19726
19727 PR middle-end/64764
19728 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19729 combining two BIT_AND_EXPR predicates.
19730
19731 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19732
19733 PR bootstrap/64754
19734 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19735
19736 2015-01-26 Terry Guo <terry.guo@arm.com>
19737
19738 * config/arm/arm.c (arm_file_start): Update the assignment of
19739 Tag_ABI_HardFP_use.
19740
19741 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19742
19743 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19744 pipeline model.
19745 config/arm/arm.md: Include the new Cortex-A57 model.
19746 (generic_sched): Don't use generic_sched when tuning for
19747 Cortex-A57.
19748
19749 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19750 Uros Bizjak <ubizjak@gmail.com>
19751
19752 * config/i386/i386.c (get_builtin_code_for_version): Add
19753 support for BMI and BMI2 multiversion functions.
19754
19755 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19756
19757 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19758 (extract_bit_field): Likewise.
19759 (extract_low_bits): Likewise.
19760 (expand_mult): Likewise.
19761 (expand_mult_highpart_adjust): Likewise.
19762
19763 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19764
19765 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19766 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19767 * config/i386/i386.c (processor_model): Add
19768 M_INTEL_COREI7_BROADWELL.
19769 (arch_names_table): Add "broadwell".
19770
19771 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
19772
19773 PR target/49263
19774 PR target/53987
19775 PR target/64345
19776 PR target/59533
19777 PR target/52933
19778 PR target/54236
19779 PR target/51244
19780 * config/sh/sh-protos.h
19781 (sh_extending_set_of_reg::can_use_as_unextended_reg,
19782 sh_extending_set_of_reg::use_as_unextended_reg,
19783 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19784 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19785 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19786 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19787 (sh_treg_insns): New class.
19788 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19789 (scope_counter): New class.
19790 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19791 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19792 sh_extending_set_of_reg::can_use_as_unextended_reg,
19793 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19794 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19795 sh_split_treg_set_expr): New functions.
19796 (addsubcosts): Handle treg_set_expr.
19797 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19798 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19799 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19800 (sh_insn_operands_modified_between_p): Make non-static.
19801 * config/sh/predicates.md (zero_extend_movu_operand): Allow
19802 simple_mem_operand in addition to displacement_mem_operand.
19803 (zero_extend_operand): Don't allow zero_extend_movu_operand.
19804 (treg_set_expr, treg_set_expr_not_const01,
19805 arith_reg_or_treg_set_expr): New predicates.
19806 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19807 arith_or_int_operand instead of logical_operand. Convert to
19808 insn_and_split. Try to optimize constant operand in splitter.
19809 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
19810 (*tstqi_t_zero): Delete.
19811 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19812 (tstsi_t_and_not): Delete.
19813 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19814 Convert to insn_and_split.
19815 (unnamed split, tstsi_t_zero_extract_xor,
19816 tstsi_t_zero_extract_subreg_xor_little,
19817 tstsi_t_zero_extract_subreg_xor_big): Delete.
19818 (*tstsi_t_shift_mask): New insn_and_split.
19819 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19820 to recombine with surrounding insns when splitting.
19821 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19822 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19823 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19824 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19825 (*cbranch_div0s: Delete.
19826 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19827 Try to recombine with surrounding insns when splitting. Add operand
19828 order variants.
19829 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19830 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19831 *addc_r_r_msb, *addc_2r_msb): Delete.
19832 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
19833 order variant.
19834 (*addc_negreg_t): New insn_and_split.
19835 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19836 Try to recombine with surrounding insns when splitting.
19837 Add operand order variants.
19838 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19839 insn_and_split patterns.
19840 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
19841 surrounding insns when splitting.
19842 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19843 (*rotcl): Likewise. Add zero_extract variant.
19844 (*ashrsi2_31): New insn_and_split.
19845 (*negc): Convert to insn_and_split. Use treg_set_expr.
19846 (*zero_extend<mode>si2_disp_mem): Update comment.
19847 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19848 condition.
19849 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
19850 with surrounding insns when splitting.
19851 (any_treg_expr_to_reg): New insn_and_split.
19852 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19853 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19854 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19855 *zero_extract_2): New single bit zero extract patterns.
19856 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19857 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19858 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19859 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19860 set destination.
19861 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19862 register_operand for set source.
19863
19864 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
19865
19866 * i386.opt (prefetch_sse): New targetsave.
19867 * i386.c (ix86_function_specific_save): Save prefetch_sse.
19868 (ix86_function_specific_restore): Restore prefetch_sse and initialize
19869 ix86_cost/ix86_tune_cost.
19870
19871 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19872
19873 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19874 Support the JIT by using 0 as the language type.
19875
19876 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
19877
19878 PR target/64317
19879 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
19880 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19881 (mark_regno_live, process_bb_lives): Pass new parameter value to
19882 make_hard_regno_born.
19883
19884 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19885
19886 PR rtl-optimization/63637
19887 PR rtl-optimization/60663
19888 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19889 if elt->cost is MAX_COST for ASM_OPERANDS.
19890 (find_sets_in_insn): Fix up comment typo.
19891 (cse_insn): Don't set src_volatile for all non-volatile
19892 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19893 or with "memory" clobber. Set elt->cost to MAX_COST
19894 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
19895 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19896
19897 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19898
19899 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19900 alternative 1.
19901
19902 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19903
19904 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19905 libgcc/config/i386/elf-lib.h.
19906
19907 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19908
19909 PR driver/64737
19910 * gcc.c (print_configuration): Don't print a blank line at the end
19911 here...
19912 (run_attempt): ... but here unstead.
19913
19914 PR middle-end/64734
19915 * omp-low.c (scan_sharing_clauses): Don't ignore
19916 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19917 on target data/update constructs.
19918
19919 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19920
19921 PR target/50928
19922 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19923 (DEBUG_RELOAD): Removed define.
19924 (m32c_limit_reload_class): Enable traces with if DEBUG0.
19925 (m32c_function_arg): Added a type cast.
19926 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19927 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19928 * config/m32c/bitops.md (andqi3_16): Likewise.
19929 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19930 (push_a01_l): Likewise.
19931
19932 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19933
19934 PR jit/64721
19935 * main.c (main): Construct toplev instances with init_signals=true.
19936 * toplev.c (general_init): Add param "init_signals", and use it to
19937 conditionalize the calls to signal and host_hooks.extra_signals.
19938 (toplev::toplev): Add param "init_signals".
19939 (toplev::main): When invoking general_init, pass m_init_signals
19940 to control whether signal-handlers are installed.
19941 * toplev.h (toplev::toplev): Add param "init_signals".
19942 (toplev::m_init_signals): New field.
19943
19944 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19945
19946 PR jit/64722
19947 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19948 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19949 latter may be affected by the former (e.g. on i686).
19950
19951 2015-01-23 Martin Liska <mliska@suse.cz>
19952
19953 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19954 false positive during profiledbootstrap.
19955
19956 2015-01-23 Tom de Vries <tom@codesourcery.com>
19957
19958 PR libgomp/64672
19959 * lto-opts.c (lto_write_options): Output non-explicit conservative
19960 -fno-openacc.
19961 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19962 (append_compiler_options): Pass -fopenacc through.
19963
19964 2015-01-23 Tom de Vries <tom@codesourcery.com>
19965
19966 PR libgomp/64707
19967 * lto-opts.c (lto_write_options): Output non-explicit conservative
19968 -fno-openmp.
19969 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19970 (append_compiler_options): Pass -fopenmp through.
19971
19972 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19973
19974 PR debug/64511
19975 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
19976 GTY markup.
19977
19978 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
19979 * diagnostic.def (DK_ICE_NOBT): New kind.
19980 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
19981 like DK_ICE, but never print backtrace.
19982 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
19983 (internal_error_no_backtrace): New function.
19984 * gcc.c (execute): Use internal_error_no_backtrace instead of
19985 internal_error.
19986
19987 2015-01-22 Jeff Law <law@redhat.com>
19988
19989 PR target/52076
19990 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
19991 improve code density for small immediate to memory case.
19992 (insv): Better handle bitfield assignments when the field is
19993 being set to all ones.
19994 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
19995 operand predicate.
19996
19997 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19998 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR middle-end/64729
20001 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20002 for !TARGET_LIBC_PROVIDES_SSP version and
20003 -fstack-protector-{all,strong,explicit} otherwise.
20004 * config/freebsd.h (LINK_SSP_SPEC): Handle
20005 -fstack-protector-{strong,explicit}.
20006
20007 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
20008 H.J. Lu <hongjiu.lu@intel.com>
20009
20010 PR ipa/64694
20011 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20012 heap.
20013
20014 2015-01-22 Wei Mi <wmi@google.com>
20015
20016 PR rtl-optimization/64557
20017 * dse.c (record_store): Call get_addr for mem_addr.
20018 (check_mem_read_rtx): Likewise.
20019
20020 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
20021
20022 * fold-const.c (const_binop): Add early return for non-tcc_binary.
20023
20024 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
20025
20026 * toplev.c (init_local_tick): Process the failure when read
20027 fails for random_seed.
20028
20029 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20030 'pretty_name' to avoid memory overflow.
20031
20032 2015-01-22 Richard Biener <rguenther@suse.de>
20033
20034 PR middle-end/64728
20035 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20036 abnormal coalescing on undefined SSA names.
20037
20038 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
20039
20040 PR target/64688
20041 PR target/64477
20042 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20043 for alternative 3.
20044 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20045
20046 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
20047
20048 PR middle-end/63325
20049 * fold-const.c (fold_checksum_tree): Don't include value of
20050 expr->decl_with_vis.symtab_node in the checksum.
20051
20052 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20053
20054 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20055
20056 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
20057
20058 PR driver/64690
20059 * gcc.c (insert_comments): New function.
20060 (try_generate_repro): Call it.
20061 (append_text): Removed.
20062
20063 2015-01-22 Richard Biener <rguenther@suse.de>
20064
20065 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20066 with IL incompatible options. Properly honor user optimize
20067 attributes.
20068
20069 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
20070
20071 PR rtl-optimization/64682
20072 * combine.c (distribute_notes): When moving a death note for
20073 a register that is set in the new I2, make sure to put it
20074 before that new I2.
20075
20076 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
20077
20078 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20079 not TARGET_DEFAULT.
20080
20081 2015-01-21 Jakub Jelinek <jakub@redhat.com>
20082
20083 PR debug/64511
20084 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20085 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20086 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20087
20088 PR sanitizer/64706
20089 * doc/invoke.texi (-fsanitize=vptr): Document.
20090
20091 PR rtl-optimization/62078
20092 * dse.c: Include cfgcleanup.h.
20093 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20094 anything call purge_all_dead_edges and cleanup_cfg at the end
20095 of the pass.
20096
20097 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
20098
20099 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20100 edges.
20101
20102 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20103
20104 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20105 decl attribute.
20106
20107 2015-01-21 David Sherwood <david.sherwood@arm.com>
20108 Tejas Belagod <Tejas.Belagod@arm.com>
20109
20110 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20111 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20112 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20113 Removed.
20114
20115 2015-01-21 David Sherwood <david.sherwood@arm.com>
20116 Tejas Belagod <Tejas.Belagod@arm.com>
20117
20118 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20119 (aarch64_reverse_mask): New decls.
20120 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20121 (insn_count): New mode_attr.
20122 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20123 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20124 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20125 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20126 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20127 (aarch64_simd_st4): New patterns.
20128 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20129 (aarch64_reverse_mask): New functions.
20130
20131 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
20132
20133 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20134 Declare.
20135 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20136 addressing modes for BE.
20137 (aarch64_print_operand): Add 'R' specifier.
20138 (aarch64_simd_disambiguate_copy): Delete.
20139 (aarch64_simd_emit_reg_reg_move): New function.
20140 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20141 in define_splits for structural moves.
20142 (mov<mode>): Use less restrictive predicates.
20143 (*aarch64_mov<mode>): Simplify and only allow for LE.
20144 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20145
20146 2015-01-21 Alan Hayward <alan.hayward@arm.com>
20147
20148 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20149
20150 2015-01-21 Richard Henderson <rth@redhat.com>
20151
20152 PR target/64669
20153 * ccmp.c (used_in_cond_stmt_p): Remove.
20154 (expand_ccmp_expr): Don't use it.
20155
20156 2015-01-21 Nick Clifton <nickc@redhat.com>
20157
20158 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20159 PARALLELs.
20160
20161 2015-01-21 Richard Biener <rguenther@suse.de>
20162
20163 PR middle-end/64313
20164 * tree-core.h (builtin_info, builtin_info_type): Turn from
20165 an object with two arrays into an array of an object with
20166 decl and two flags, implicit_p and declared_p.
20167 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20168 set_builtin_decl, set_builtin_decl_implicit_p,
20169 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20170 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20171 * builtins.c (builtin_info): Adjust.
20172 * gimplify.c (gimplify_addr_expr): References to builtins
20173 that have been declared by the user makes them eligible for
20174 use by the compiler. Call set_builtin_decl_implicit_p on them.
20175
20176 2015-01-20 Jeff Law <law@redhat.com>
20177
20178 PR target/59946
20179 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20180 allow pc-relative addresses in operand predicates or constraints.
20181
20182 2015-01-21 Bin Cheng <bin.cheng@arm.com>
20183
20184 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20185 neon on aarch32 processors for stringops.
20186
20187 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20188
20189 PR ipa/63576
20190 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20191
20192 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20193
20194 PR lto/45375
20195 * ipa-inline.c: Include lto-streamer.h
20196 (report_inline_failed_reason): Output source file differences and
20197 flags on optimization/target node mismatch.
20198 (can_inline_edge_p): Consider caller to be the outer inline function;
20199 be less restrictive about matching opimize and optimize_size attributes.
20200 (inline_account_function_p): Break out from ...
20201 (inline_small_functions): ... here.
20202 * ipa-inline-transform.c (clone_inlined_nodes): Use
20203 inline_account_function_p.
20204 (inline_call): Use optimize attribution; use inline_account_function_p.
20205 (inline_transform): Use opt_for_fn.
20206 * ipa-inline.h (inline_account_function_p): Declare.
20207
20208 2015-01-20 Jakub Jelinek <jakub@redhat.com>
20209
20210 PR debug/64663
20211 * dwarf2out.c (decl_piece_node): Don't put bitsize into
20212 mode if bitsize <= 0.
20213 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20214 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20215 sizes and positions.
20216
20217 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
20218
20219 * config/nios2/nios2.c (nios2_asm_file_end): Implement
20220 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20221 needed.
20222 (TARGET_ASM_FILE_END): Define.
20223
20224 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20225
20226 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20227 (struct tune_params): Use the enum.
20228 * arm.c (arm_*_tune): Update.
20229 (arm_option_override): Update.
20230
20231 2015-01-20 Richard Biener <rguenther@suse.de>
20232
20233 PR ipa/64684
20234 * ipa-reference.c (add_static_var): Inline ...
20235 (analyze_function): ... here after splitting out from ...
20236 (is_proper_for_analysis): ... this.
20237
20238 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
20239
20240 PR target/64149
20241 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20242 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20243 replace the conditional with it's true branch.
20244 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20245 (arm_lra_p): Remove.
20246
20247 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20248
20249 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20250
20251 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20252
20253 * config/tilegx/mul-tables.c: Move symtab.h include after
20254 coretypes.h include.
20255 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20256 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20257 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20258 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20259 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20260
20261 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20262
20263 PR bootstrap/64676
20264 Revert:
20265 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20266
20267 PR rtl-optimization/64081
20268 * loop-iv.c (def_pred_latch_p): New function.
20269 (latch_dominating_def): Allow specific cases with non-single
20270 definitions.
20271 (iv_get_reaching_def): Likewise.
20272 (check_complex_exit_p): New function.
20273 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20274 with exits not executing on any iteration.
20275
20276 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20277
20278 PR lto/45375
20279 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20280 to set branch cost.
20281
20282 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20283
20284 PR lto/45375
20285 * i386.c (gate): Check flag_expensive_optimizations and
20286 optimize_size.
20287 (ix86_option_override_internal): Drop optimize_size condition
20288 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20289 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20290 MASK_PREFER_AVX128.
20291 (ix86_avx256_split_vector_move_misalign,
20292 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20293 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20294 optimize_insn_for_speed_p check.
20295
20296 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20297
20298 * config/mips/mips.h (FP_ASM_SPEC): New define.
20299 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20300 instead.
20301
20302 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20303
20304 PR target/53988
20305 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20306 nullptr for insn when reaching the first insn.
20307 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20308 (sh_insn_operands_modified_between_p): Add nullptr check.
20309 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20310 sign extending mem load if the insn contains any UNSPEC or
20311 UNSPEC_VOLATILE.
20312
20313 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20314
20315 * params.def (inline-unit-growth): Drop to 15%.
20316 * invoke.texi (inline-unit-growth): Document change.
20317
20318 2015-01-19 Martin Liska <mliska@suse.cz>
20319
20320 PR ipa/64668
20321 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20322 function for second argument of OBJ_TYPE_REF.
20323
20324 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20325
20326 PR ipa/64218
20327 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20328 whether function is an alias.
20329
20330 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20331
20332 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20333 cases.
20334
20335 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20336
20337 PR rtl-optimization/64671
20338 * lra-remat.c (operand_to_remat): Don't consider jump and call
20339 insns.
20340
20341 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20342
20343 PR target/59828
20344 * config/rs6000/default64.h: Include rs6000-cpus.def.
20345 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20346 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20347 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20348 and POWER8.
20349 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20350 POWER8.
20351 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20352 pseudo-op to specify assembler dialect.
20353
20354 2015-01-19 Martin Liska <mliska@suse.cz>
20355
20356 PR ipa/64664
20357 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20358 Handle safe potentially removed nodes during filtering.
20359
20360 2015-01-19 Martin Liska <mliska@suse.cz>
20361
20362 * doc/extend.texi (no_icf): Add new attribute description.
20363 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20364 where the pass attempts to merge a function with no_icf attribute.
20365
20366 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20367
20368 PR target/64532
20369 * doc/md.texi (ARM Options): Document register constraints.
20370
20371 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20372 Andrew Pinski <apinski@cavium.com>
20373
20374 PR target/64304
20375 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20376 (ashl<mode>3): Don't expand if operands[2] is not constant.
20377
20378 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20379
20380 PR target/64448
20381 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20382 Match xor-and-xor RTL pattern.
20383
20384 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20385
20386 PR rtl-optimization/64081
20387 * loop-iv.c (def_pred_latch_p): New function.
20388 (latch_dominating_def): Allow specific cases with non-single
20389 definitions.
20390 (iv_get_reaching_def): Likewise.
20391 (check_complex_exit_p): New function.
20392 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20393 with exits not executing on any iteration.
20394
20395 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20396
20397 * common.opt (fgraphite): Fix a typo.
20398
20399 2015-01-19 Felix Yang <felix.yang@huawei.com>
20400
20401 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20402 pattern.
20403 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20404 uminp, smax_nanp, smin_nanp): New builtins.
20405 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20406 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20407 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20408 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20409 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20410 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20411 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20412 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20413 vpminnms_f32): Rewrite using builtin functions.
20414
20415 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20416
20417 PR libgomp/64625
20418 * omp-low.c (offload_symbol_decl): Remove variable.
20419 (get_offload_symbol_decl): Remove function.
20420 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20421 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20422 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20423 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20424 BUILT_IN_GOACC_UPDATE don't pass it at all.
20425
20426 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20427
20428 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20429 callers.
20430
20431 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20432
20433 * ipa-chkp.c (chkp_produce_thunks): Add early param
20434 to split thunks production into two passes. Keep
20435 'always_inline' function bodies after the first pass.
20436 (pass_data_ipa_chkp_early_produce_thunks): New.
20437 (pass_ipa_chkp_early_produce_thunks): New.
20438 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20439 chkp_produce_thunks signature.
20440 (make_pass_ipa_chkp_early_produce_thunks): New.
20441 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20442 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20443 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20444
20445 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20446
20447 * cgraph.c (cgraph_node::dump): Dump profile flags.
20448
20449 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20450
20451 PR target/64652
20452 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20453 reg appear first in the parallel.
20454
20455 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20456
20457 * ipa-reference.c (set_reference_optimization_summary,
20458 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20459 disabled.
20460 (ignore_module_statics): New static var.
20461 (propagate_bits): If ipa-reference is disabled, do not look into local
20462 properties.
20463 (analyze_function): Disable analysis when ipa_reference is disabled.
20464 (generate_summary): Do not dump when reference is disabled;
20465 collect vars accessed from functions with ipa-reference disabled.
20466 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20467 node flags.
20468 (gate): Enable for LTO.
20469 (ignore_edge_p): New function.
20470 (propagate): Skip functions w/o ipa-reference analysis.
20471 * optc-save-gen.awk: Handle optimize_debug correctly.
20472 * opth-gen.awk: Likewise.
20473 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20474 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20475 fira-share-save-slots, fira-share-spill-slots,
20476 fmodulo-sched-allow-regmoves, fpartial-inlining,
20477 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20478 ftracer, ftree-parallelize-loops, fassociative-math,
20479 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20480 Optimization
20481 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20482 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20483 Optimization.
20484 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20485 Fix for IPA.
20486
20487 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20488
20489 PR ipa/64378
20490 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20491 flag correctly.
20492 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20493
20494 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20495
20496 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20497 Remove duplicate option listings.
20498
20499 2015-01-18 Felix Yang <felix.yang@huawei.com>
20500
20501 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20502 (autofdo_source_profile::get_callsite_total_count,
20503 function_instance::get_function_instance_by_decl,
20504 string_table::get_index, string_table::get_index_by_decl,
20505 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20506 Fix comment typos. Reformatting and minor code rearrangement.
20507
20508 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20509
20510 * config/rs6000/rs6000.md (probe_stack): Delete.
20511 (probe_stack_address): New.
20512
20513 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20514
20515 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20516 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20517
20518 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20519
20520 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20521 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20522 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20523 snafu.
20524 (rs6000_libcall_value): Use the new function.
20525
20526 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20527
20528 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20529
20530 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20531
20532 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20533 implement a more precise life analysis for it during backward scan.
20534
20535 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20536
20537 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20538
20539 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20540
20541 PR rtl-optimization/52773
20542 * calls.c (emit_library_call_value): When pushing arguments use
20543 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20544 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20545 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20546
20547 2015-01-17 Jeff Law <law@redhat.com>
20548
20549 PR rtl-optimization/32790
20550 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20551 not ZERO_EXTEND in SET_DESTs.
20552
20553 2015-01-17 Alan Modra <amodra@gmail.com>
20554
20555 * cprop.c (do_local_cprop): Revert last change.
20556
20557 2015-01-16 DJ Delorie <dj@redhat.com>
20558 Nick Clifton <nickc@redhat.com>
20559
20560 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20561 (addhi3_real): Likewise. Fix [HL+0] syntax.
20562 (subqi3_real): Likewise.
20563 (subhi3_real): Likewise.
20564 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20565 (cbranchhi4_real): Likewise.
20566 (cbranchhi4_real_inverted): Likewise.
20567 (cbranchsi4_real_lt): Likewise.
20568 (cbranchsi4_real_ge): Likewise.
20569 (cbranchsi4_real_ge): Likewise.
20570 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20571 (sub<mode>3_virt): Likewise.
20572 (cbranchqi4_virt): Likewise.
20573 (cbranchhi4_virt): Likewise.
20574 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20575 always use '[reg+imm]' even when imm is zero.
20576 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20577 (rl78_general_operand): New.
20578 (rl78_nonimmediate_operand): New.
20579 (rl78_nonfar_operand): Use them.
20580 (rl78_nonfar_nonimm_operand): Likewise.
20581 (rl78_stack_based_mem): Fix.
20582 * config/rl78/constraints.md (Ibqi): New.
20583 (IBqi): New.
20584 (Wsa): New.
20585 (Wsf): New.
20586 (Cs1): Fix.
20587 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20588 (iorqi3): Likewise.
20589 (xorqi3): Likewise.
20590 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20591
20592 * config/rl78/constrains (Qs8): New constraint.
20593 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20594 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20595 * config/rl78/rl78-real.md (update_Z): New attribute.
20596 Update patterns to set it.
20597 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20598 shorter compare and branch sequence can be used.
20599 (cbranchhi4_real): Likewise.
20600 (cbranchhi4_real_inverted): Likewise.
20601
20602 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20603 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20604 address space.
20605 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20606 (rl78_option_override): Allow -mes0 only if C.
20607 (characterize_address): Support subregs of symbol_refs.
20608 (rl78_addr_space_address_mode): Move. Add __near.
20609 (rl78_far_p): Likewise.
20610 (rl78_addr_space_pointer_mode): Likewise.
20611 (rl78_as_legitimate_address): Likewise.
20612 (rl78_addr_space_subset_p): Likewise.
20613 (rl78_addr_space_convert): Likewise.
20614 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20615 symbols with -mes0.
20616 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20617 addressing.
20618 (rl78_alloc_physical_registers_op1): Change logic to prefer
20619 symbol[BC] addressing.
20620 (frodata_section): New.
20621 (rl78_asm_init_sections): Initialize it.
20622 (rl78_select_section): Put __far readonly symbols in .frodata.
20623 (rl78_make_type_far): New.
20624 (rl78_insert_attributes): Force all readonly symbols to be
20625 __far when -mes0.
20626 (rl78_asm_out_integer): New.
20627 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20628 * config/rl78/rl78.opt (-mes0): New.
20629
20630 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20631 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20632 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20633 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20634 (rl78_saddr_p): New.
20635 (rl78_output_aligned_common): New.
20636 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20637 (rl78_handle_saddr_attribute): New.
20638 (rl78_handle_naked_attribute): New.
20639 (rl78_attribute_table): Add saddr.
20640 (rl78_print_operand_1): Don't print '!' on saddr operands.
20641 (rl78_print_operand_1): Strip encodings.
20642 (rl78_sfr_p): New.
20643 (rl78_strip_name_encoding): New.
20644 (rl78_attrlist_to_encoding): New.
20645 (rl78_encode_section_info): New.
20646 (rl78_asm_init_sections): New.
20647 (rl78_select_section): New.
20648 (rl78_output_labelref): New.
20649 (rl78_output_aligned_common): New.
20650 (rl78_asm_out_integer): New.
20651 (rl78_asm_ctor_dtor): New.
20652 (rl78_asm_constructor): New.
20653 (rl78_asm_destructor): New.
20654
20655 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20656 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20657 (transcode_memory_rtx): Update.
20658 (rl78_expand_epilogue): Use A_REG instead of 0.
20659
20660 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20661
20662 * config/arm/arm-protos.h (struct tune_params): New field
20663 sched_autopref_queue_depth.
20664 * config/arm/arm.c (sched-int.h): Include header.
20665 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20666 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20667 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20668 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20669 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20670 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20671 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20672 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20673 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20674 * config/arm/t-arm (arm.o): Update.
20675 * haifa-sched.c (update_insn_after_change): Update.
20676 (rank_for_schedule): Use auto-prefetcher model, if requested.
20677 (autopref_multipass_init): New static function.
20678 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20679 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20680 variable for debug dumps.
20681 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20682 (autopref_multipass_dfa_lookahead_guard): New global function that
20683 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20684 (init_h_i_d): Update.
20685 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20686 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20687 (autopref_multipass_data_): Structure for auto-prefetcher data.
20688 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20689 (struct _haifa_insn_data:autopref_multipass_data): New field.
20690 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20691 (autopref_multipass_dfa_lookahead_guard): Declare.
20692
20693 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20694
20695 * rtlanal.c (get_base_term): Handle SCRATCH.
20696
20697 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20698
20699 * config/aarch64/aarch64.c
20700 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20701 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20702 * config/arm/arm.c
20703 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20704 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20705
20706 2015-01-17 Alan Modra <amodra@gmail.com>
20707
20708 * cprop.c (do_local_cprop): Disallow replacement of fixed
20709 hard registers.
20710
20711 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20712
20713 PR target/62066
20714 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20715 early return 0.
20716
20717 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20718
20719 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20720 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20721
20722 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20723
20724 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20725 * config/arm/thumb1.md: ... Here.
20726
20727 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20728
20729 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20730 TImode for TARGET_32BIT.
20731
20732 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20733
20734 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20735 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20736 as ...
20737 (rs6000_abi_word_mode): New function.
20738
20739 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20740
20741 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20742 instead of UNITS_PER_WORD to describe the size of stack slots.
20743
20744 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20745
20746 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20747 as rs6000_promote_function_mode. Move comment to there.
20748 (rs6000_promote_function_mode): New function.
20749
20750 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20751
20752 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20753 -mpowerpc64 is active.
20754
20755 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20756
20757 PR middle-end/64353
20758 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20759 virtuals on start.
20760
20761 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20762
20763 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20764 introduced in revision 219724.
20765
20766 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20767 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20768
20769 PR target/64263
20770 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20771 destination is not a GP reg.
20772 (*movdi_aarch64): Likewise.
20773
20774 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
20775
20776 PR target/64623
20777 * config/rs6000/default64.h: Revert ISA change.
20778
20779 2015-01-16 Richard Biener <rguenther@suse.de>
20780
20781 PR middle-end/64614
20782 * tree-ssa-uninit.c: Include tree-cfg.h.
20783 (MAX_SWITCH_CASES): New define.
20784 (convert_control_dep_chain_into_preds): Handle switch statements.
20785 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20786 (normalize_one_pred_1): Do not split bit-manipulations.
20787 Record (x & CST).
20788
20789 2015-01-16 Richard Biener <rguenther@suse.de>
20790
20791 PR tree-optimization/64568
20792 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20793 complex load rewriting for TARGET_MEM_REFs.
20794
20795 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
20796
20797 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20798
20799 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
20800
20801 PR target/64149
20802 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20803 variable.
20804 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20805 (aarch64_lra_p): Remove.
20806
20807 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20808
20809 PR target/64363
20810 * ipa-chkp.h (chkp_instrumentable_p): New.
20811 * ipa-chkp.c: Include tree-inline.h.
20812 (chkp_instrumentable_p): New.
20813 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20814 Fix processing of not instrumentable functions.
20815 (chkp_versioning): Use chkp_instrumentable_p. Warn about
20816 not instrumentable functions.
20817 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20818 chkp_instrumentable_p.
20819 * tree-inline.h (copy_forbidden): New.
20820 * tree-inline.c (copy_forbidden): Not static anymore.
20821
20822 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20823
20824 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20825 ptr1, ptr2 unused.
20826
20827 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20828
20829 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20830 type OP_OUT to OP_INOUT.
20831
20832 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20833
20834 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20835 (high x) y) to y if x and y have the same base.
20836
20837 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20838
20839 * config/arm/cortex-a57.md: New.
20840 * config/aarch64/aarch64.md: Include it.
20841 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20842 * config/aarch64/aarch64-tune.md: Regenerate.
20843
20844 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
20845
20846 PR target/64015
20847 * ccmp.c (expand_ccmp_next): New function.
20848 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20849 and compare insn sequence.
20850 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20851 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20852 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20853 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20854 (*ccmp_ior): Changed to ccmp_ior<mode>.
20855 (cmp<mode>): New pattern.
20856 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20857 parameters.
20858 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20859
20860 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
20861
20862 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20863 _mm256_bsrli_epi128): New.
20864 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20865
20866 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20867
20868 * expmed.c (store_bit_field_using_insv): Improve warning message.
20869 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20870
20871 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20872
20873 PR rtl-optimization/64011
20874 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20875 there is partial overflow.
20876
20877 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20878
20879 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20880 prototype.
20881 (nds32_expand_epilogue_v3pop): Likewise.
20882 * config/nds32/nds32.md (sibcall): Define this for sibling call
20883 optimization.
20884 (sibcall_register): Likewise.
20885 (sibcall_immediate): Likewise.
20886 (sibcall_value): Likewise.
20887 (sibcall_value_register): Likewise.
20888 (sibcall_value_immediate): Likewise.
20889 (sibcall_epilogue): Likewise.
20890 (epilogue): Pass false to indicate this is not a sibcall epilogue.
20891 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20892 (nds32_expand_epilogue_v3pop): Likewise.
20893
20894 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20895
20896 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20897 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20898 (return_internal): New.
20899 (return): Define this named pattern.
20900 (simple_return): Define this named pattern.
20901 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20902 pattern instead of unspec_volatile_func_return.
20903 (nds32_expand_epilogue_v3pop): Likewise.
20904 (nds32_can_use_return_insn): New function.
20905
20906 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20907
20908 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20909 * config/nds32/nds32.md (pop25return): New.
20910 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20911 pop25return pattern.
20912
20913 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20914
20915 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20916 -mforbid-fp-as-gp, and -mex9 options.
20917
20918 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20919
20920 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20921 remove -mgp-direct option.
20922
20923 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20924
20925 * doc/invoke.texi (--param early-inlining-insns): Update default value.
20926 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20927
20928 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20929
20930 * ipa-inline.c (inline_small_functions): Work around hints
20931 cache issue.
20932
20933 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
20934
20935 PR target/59710
20936 * doc/invoke.texi (Option Summary): Document new Nios II
20937 -mgpopt= syntax.
20938 (Nios II Options): Likewise.
20939 * config/nios2/nios2.opt: Add -mgpopt= option support.
20940 Modify existing -mgpopt and -mno-gpopt options to be aliases.
20941 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20942 * config/nios2/nios2.c (nios2_option_override): Adjust
20943 -mgpopt defaulting.
20944 (nios2_in_small_data_p): Return true for explicit small data
20945 sections even with -G0.
20946 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20947 option choices.
20948
20949 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20950
20951 PR ipa/64612
20952 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20953 of comdat locals.
20954 (inline_call): Fix removal of aliases.
20955
20956 2015-01-15 Jakub Jelinek <jakub@redhat.com>
20957
20958 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20959 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20960 * opts.c (common_handle_option): Add -fsanitize=vptr.
20961 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20962 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20963 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20964 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20965 (ubsan_expand_vptr_ifn): New prototype.
20966 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20967 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20968 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20969 expand_LOOP_VECTORIZED): Make argument nameless, remove
20970 ATTRIBUTE_UNUSED.
20971 (expand_UBSAN_VPTR): New function.
20972 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
20973 in fn spec.
20974 (UBSAN_VPTR): New internal function.
20975 * sanopt.c (tree_map_traits): Renamed to ...
20976 (sanopt_tree_map_traits): ... this.
20977 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
20978 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
20979 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
20980 (maybe_optimize_ubsan_vptr_ifn): New function.
20981 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
20982 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
20983 -fsanitize=vptr.
20984 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
20985 internal calls like pure functions for aliasing, even when they
20986 have other side-effects that prevent making them ECF_PURE.
20987 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
20988 (ubsan_expand_vptr_ifn): New function.
20989
20990 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
20991
20992 PR rtl-optimization/64110
20993 * stmt.c (parse_output_constraint): Process '^' and '$'.
20994 (parse_input_constraint): Ditto.
20995 * lra-constraints.c (process_alt_operands): Process the new
20996 constraints.
20997 * ira-costs.c (record_reg_classes): Process the new constraint
20998 '^'.
20999 * genoutput.c (indep_constraints): Add '^' and '$'.
21000 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21001 * doc/md.texi: Add description of the new constraints.
21002
21003 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
21004 Bernd Schmidt <bernds@codesourcery.com>
21005 Cesar Philippidis <cesar@codesourcery.com>
21006 James Norris <jnorris@codesourcery.com>
21007 Tom de Vries <tom@codesourcery.com>
21008 Ilmir Usmanov <i.usmanov@samsung.com>
21009 Dmitry Bocharnikov <dmitry.b@samsung.com>
21010 Evgeny Gavrin <e.gavrin@samsung.com>
21011 Jakub Jelinek <jakub@redhat.com>
21012
21013 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21014 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21015 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21016 New function types.
21017 * builtins.c: Include "gomp-constants.h".
21018 (expand_builtin_acc_on_device): New function.
21019 (expand_builtin, is_inexpensive_builtin): Handle
21020 BUILT_IN_ACC_ON_DEVICE.
21021 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21022 New macros.
21023 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21024 flag_openmp.
21025 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21026 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21027 i386/intelmic-offload.h.
21028 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21029 to libgomp and its dependencies.
21030 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21031 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21032 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21033 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21034 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21035 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21036 * doc/generic.texi: Update for OpenACC changes.
21037 * doc/gimple.texi: Likewise.
21038 * doc/invoke.texi: Likewise.
21039 * doc/sourcebuild.texi: Likewise.
21040 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21041 GF_OMP_FOR_KIND_OACC_LOOP.
21042 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21043 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21044 GF_OMP_TARGET_KIND_OACC_UPDATE,
21045 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21046 Dump more data.
21047 * gimple.c: Update comments for OpenACC changes.
21048 * gimple.def: Likewise.
21049 * gimple.h: Likewise.
21050 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21051 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21052 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21053 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21054 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21055 appropriate place.
21056 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21057 * gimplify.c: Include "gomp-constants.h".
21058 Update comments for OpenACC changes.
21059 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21060 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21061 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21062 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21063 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21064 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21065 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21066 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21067 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21068 OMP_CLAUSE_SEQ.
21069 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21070 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21071 OMP_CLAUSE_SET_MAP_KIND.
21072 (gimplify_oacc_cache): New function.
21073 (gimplify_omp_for): Handle OACC_LOOP.
21074 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21075 OACC_DATA.
21076 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21077 OACC_EXIT_DATA, OACC_UPDATE.
21078 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21079 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21080 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21081 (gimplify_body): Consider flag_openacc next to flag_openmp.
21082 * lto-streamer-out.c: Include "gomp-constants.h".
21083 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21084 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21085 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21086 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21087 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21088 (BUILT_IN_ACC_ON_DEVICE): New builtins.
21089 * omp-low.c: Include "gomp-constants.h".
21090 Update comments for OpenACC changes.
21091 (struct omp_context): Add reduction_map, gwv_below, gwv_this
21092 members.
21093 (extract_omp_for_data, use_pointer_for_field, install_var_field)
21094 (new_omp_context, delete_omp_context, scan_sharing_clauses)
21095 (create_omp_child_function, scan_omp_for, scan_omp_target)
21096 (check_omp_nesting_restrictions, lower_reduction_clauses)
21097 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21098 Update for OpenACC changes.
21099 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21100 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21101 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21102 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21103 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21104 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
21105 OMP_CLAUSE_MAP_*.
21106 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21107 Handle GF_OMP_FOR_KIND_OACC_LOOP.
21108 (expand_omp_target, lower_omp_target): Handle
21109 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21110 GF_OMP_TARGET_KIND_OACC_UPDATE,
21111 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21112 GF_OMP_TARGET_KIND_OACC_DATA.
21113 (pass_expand_omp::execute, execute_lower_omp)
21114 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21115 flag_openmp.
21116 (offload_symbol_decl): New variable.
21117 (oacc_get_reduction_array_id, oacc_max_threads)
21118 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21119 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21120 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21121 (oacc_gimple_assign, oacc_initialize_reduction_data)
21122 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21123 functions.
21124 (is_targetreg_ctx): Remove function.
21125 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21126 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21127 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21128 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21129 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21130 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21131 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21132 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21133 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21134 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21135 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21136 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21137 * tree-core.h: Update comments for OpenACC changes.
21138 (enum omp_clause_map_kind): Remove.
21139 (struct tree_omp_clause): Change type of map_kind member from enum
21140 omp_clause_map_kind to unsigned char.
21141 * tree-inline.c: Update comments for OpenACC changes.
21142 * tree-nested.c: Likewise. Include "gomp-constants.h".
21143 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21144 (convert_tramp_reference_stmt, convert_gimple_call): Update for
21145 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21146 OMP_CLAUSE_SET_MAP_KIND.
21147 * tree-pretty-print.c: Include "gomp-constants.h".
21148 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21149 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21150 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21151 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21152 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21153 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
21154 instead of OMP_CLAUSE_MAP_*.
21155 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21156 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21157 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21158 * tree-streamer-in.c: Include "gomp-constants.h".
21159 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21160 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
21161 * tree-streamer-out.c: Include "gomp-constants.h".
21162 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21163 OMP_CLAUSE_MAP_*.
21164 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21165 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21166 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21167 * tree.c (omp_clause_num_ops): Update accordingly.
21168 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21169 Likewise.
21170 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21171 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21172 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21173 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21174 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21175 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21176 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21177 (OMP_CLAUSE_SET_MAP_KIND): New macro.
21178 * varpool.c (varpool_node::get_create): Consider flag_openacc next
21179 to flag_openmp.
21180 * config/i386/intelmic-offload.h: New file.
21181 * config/nvptx/offload.h: Likewise.
21182
21183 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21184
21185 * explow.h: Remove duplicate contents.
21186 * dojump.h: Likewise.
21187
21188 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
21189
21190 * arm.c (arm_xgene_tune): Add default initializer for instruction
21191 fusion.
21192
21193 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21194
21195 PR ipa/64068
21196 PR ipa/64559
21197 * ipa.c (symbol_table::remove_unreachable_nodes):
21198 Do not put abstract origins into boundary.
21199
21200 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
21201
21202 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21203 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21204
21205 2015-01-15 Steve Ellcey <sellcey@mips.com>
21206
21207 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21208 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21209 builtins.def, and chkp-builtins.def.
21210
21211 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
21212
21213 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21214 ISA 2.7 (POWER8).
21215
21216 2015-01-15 Richard Biener <rguenther@suse.de>
21217
21218 PR tree-optimization/61743
21219 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21220 information on PHIs for some simple cases.
21221
21222 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21223
21224 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21225 Include xgene1.md.
21226 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21227 * config/arm/arm-cores.def (xgene1): New entry.
21228 * config/arm/arm-tables.opt: Regenerate.
21229 * config/arm/arm-tune.md: Regenerate.
21230 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21231
21232 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21233
21234 * tree-if-conv.c: Include hash-map.h.
21235 (aggressive_if_conv): New variable.
21236 (fold_build_cond_expr): Add simplification of non-zero condition.
21237 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21238 destination block is not always executed.
21239 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21240 than two predecessors if AGGRESSIVE_IF_CONV is true.
21241 (if_convertible_stmt_p): Fix commentary.
21242 (all_preds_critical_p): New function.
21243 (has_pred_critical_p): New function.
21244 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21245 BB can have more than two predecessors and all incoming edges can be
21246 critical.
21247 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21248 to compute predicate for true edge.
21249 (find_phi_replacement_condition): Delete this function.
21250 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21251 Allow interchange PHI arguments if EXTENDED is false.
21252 Change check that block containing reduction statement candidate
21253 is predecessor of phi-block since phi may have more than two arguments.
21254 (phi_args_hash_traits): New helper structure.
21255 (struct phi_args_hash_traits): New type.
21256 (phi_args_hash_traits::hash): New function.
21257 (phi_args_hash_traits::equal_keys): New function.
21258 (gen_phi_arg_condition): New function.
21259 (predicate_scalar_phi): Add handling of phi nodes with more than two
21260 arguments, delete COND and TRUE_BB arguments, insert body of
21261 find_phi_replacement_condition to predicate ordinary phi nodes.
21262 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21263 delete call of find_phi_replacement_condition and invoke
21264 predicate_scalar_phi with two arguments.
21265 (insert_gimplified_predicates): Add assert that non-predicated block
21266 don't have statements to insert.
21267 (ifcvt_split_critical_edges): New function.
21268 (ifcvt_split_def_stmt): Likewise.
21269 (ifcvt_walk_pattern_tree): Likewise.
21270 (stmt_is_root_of_bool_pattern): Likewise.
21271 (ifcvt_repair_bool_pattern): Likewise.
21272 (ifcvt_local_dce): Likewise.
21273 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21274 is copy of inner or outer loop force_vectorize field, invoke
21275 ifcvt_split_critical_edges, ifcvt_local_dce and
21276 ifcvt_repair_bool_pattern for aggressive if-conversion.
21277
21278 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21279
21280 * config/aarch64/aarch64.md: Include xgene1.md.
21281 * config/aarch64/xgene1.md: New file.
21282
21283 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21284
21285 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21286 xgene1 (APM XGene-1) core definition.
21287 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21288 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21289 * doc/invoke.texi: Document -mcpu=xgene1.
21290
21291 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21292
21293 * dojump.h: New header file.
21294 * explow.h: Likewise.
21295 * expr.h: Remove includes.
21296 Move expmed.c prototypes to expmed.h.
21297 Move dojump.c prototypes to dojump.h.
21298 Move alias.c prototypes to alias.h.
21299 Move explow.c prototypes to explow.h.
21300 Move calls.c prototypes to calls.h.
21301 Move emit-rtl.c prototypes to emit-rtl.h.
21302 Move varasm.c prototypes to varasm.h.
21303 Move stmt.c prototypes to stmt.h.
21304 (saved_pending_stack_adjust): Move to dojump.h.
21305 (adjust_address): Move to explow.h.
21306 (adjust_address_nv): Move to emit-rtl.h.
21307 (adjust_bitfield_address): Likewise.
21308 (adjust_bitfield_address_size): Likewise.
21309 (adjust_bitfield_address_nv): Likewise.
21310 (adjust_automodify_address_nv): Likewise.
21311 * explow.c (expr_size): Move to expr.c.
21312 (int_expr_size): Likewise.
21313 (tree_expr_size): Likewise.
21314 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21315 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21316 * genemit.c (main): Generate includes statistics.h, real.h,
21317 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21318 stmt.h.
21319 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21320 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21321 explow.h, emit-rtl.h, stmt.h.
21322 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21323 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21324 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21325 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21326 emit-rtl.h, varasm.h, stmt.h.
21327 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21328 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21329 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21330 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21331 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21332 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21333 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21334 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21335 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21336 tm.h tree.h varasm.h vec.h wide-int.h.
21337 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21338 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21339 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21340 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21341 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21342 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21343 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21344 * loop-iv.c: Likewise.
21345 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21346 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21347 statistics.h stmt.h tree.h varasm.h wide-int.h.
21348 * lra-constraints.c: Likewise.
21349 * lra-eliminations.c: Likewise.
21350 * lra-lives.c: Likewise.
21351 * lra-remat.c: Likewise.
21352 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21353 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21354 statistics.h stmt.h tree.h varasm.h wide-int.h.
21355 * hw-doloop.c: Likewise.
21356 * ira-color.c: Likewise.
21357 * ira-emit.c: Likewise.
21358 * loop-doloop.c: Likewise.
21359 * loop-invariant.c: Likewise.
21360 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21361 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21362 statistics.h stmt.h tree.h varasm.h wide-int.h.
21363 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21364 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21365 statistics.h stmt.h tree.h varasm.h wide-int.h.
21366 * combine-stack-adj.c: Likewise.
21367 * cse.c: Likewise.
21368 * ddg.c: Likewise.
21369 * ifcvt.c: Likewise.
21370 * ira-costs.c: Likewise.
21371 * jump.c: Likewise.
21372 * lra-coalesce.c: Likewise.
21373 * lra-spills.c: Likewise.
21374 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21375 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21376 stmt.h varasm.h wide-int.h.
21377 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21378 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21379 varasm.h.
21380 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21381 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21382 statistics.h stmt.h varasm.h wide-int.h.
21383 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21384 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21385 varasm.h wide-int.h.
21386 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21387 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21388 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21389 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21390 statistics.h stmt.h.
21391 * config/tilepro/tilepro.c: Likewise.
21392 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21393 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21394 * config/pdp11/pdp11.c: Likewise.
21395 * config/xtensa/xtensa.c: Likewise.
21396 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21397 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21398 varasm.h.
21399 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21400 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21401 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21402 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21403 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21404 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21405 * rtl-chkp.c: Likewise.
21406 * tree-chkp-opt.c: Likewise.
21407 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21408 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21409 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21410 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21411 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21412 statistics.h stmt.h.
21413 * tree-vect-data-refs.c: Likewise.
21414 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21415 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21416 rtl.h statistics.h stmt.h varasm.h.
21417 * internal-fn.c: Likewise.
21418 * ipa-icf-gimple.c: Likewise.
21419 * lto-section-out.c: Likewise.
21420 * tree-data-ref.c: Likewise.
21421 * tree-nested.c: Likewise.
21422 * tree-outof-ssa.c: Likewise.
21423 * tree-predcom.c: Likewise.
21424 * tree-pretty-print.c: Likewise.
21425 * tree-scalar-evolution.c: Likewise.
21426 * tree-ssa-strlen.c: Likewise.
21427 * tree-vect-loop.c: Likewise.
21428 * tree-vect-patterns.c: Likewise.
21429 * tree-vect-slp.c: Likewise.
21430 * tree-vect-stmts.c: Likewise.
21431 * tsan.c: Likewise.
21432 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21433 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21434 stmt.h.
21435 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21436 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21437 statistics.h stmt.h varasm.h.
21438 * loop-unroll.c: Likewise.
21439 * ubsan.c: Likewise.
21440 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21441 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21442 stmt.h varasm.h.
21443 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21444 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21445 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21446 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21447 statistics.h stmt.h.
21448 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21449 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21450 statistics.h stmt.h varasm.h.
21451 * gimple-match-head.c: Likewise.
21452 * lto-cgraph.c: Likewise.
21453 * lto-section-in.c: Likewise.
21454 * lto-streamer-in.c: Likewise.
21455 * lto-streamer-out.c: Likewise.
21456 * tree-affine.c: Likewise.
21457 * tree-cfg.c: Likewise.
21458 * tree-cfgcleanup.c: Likewise.
21459 * tree-if-conv.c: Likewise.
21460 * tree-into-ssa.c: Likewise.
21461 * tree-ssa-alias.c: Likewise.
21462 * tree-ssa-copyrename.c: Likewise.
21463 * tree-ssa-dse.c: Likewise.
21464 * tree-ssa-forwprop.c: Likewise.
21465 * tree-ssa-live.c: Likewise.
21466 * tree-ssa-math-opts.c: Likewise.
21467 * tree-ssa-pre.c: Likewise.
21468 * tree-ssa-sccvn.c: Likewise.
21469 * tree-tailcall.c: Likewise.
21470 * tree-vect-generic.c: Likewise.
21471 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21472 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21473 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21474 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21475 * varasm.c: Likewise.
21476 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21477 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21478 varasm.h.
21479 * init-regs.c: Likewise.
21480 * ira.c: Likewise.
21481 * omp-low.c: Likewise.
21482 * stack-ptr-mod.c: Likewise.
21483 * tree-ssa-reassoc.c: Likewise.
21484 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21485 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21486 varasm.h.
21487 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21488 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21489 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21490 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21491 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21492 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21493 * tree-ssa-phiopt.c: Likewise.
21494 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21495 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21496 * config/fr30/fr30.c: Likewise.
21497 * config/frv/frv.c: Likewise.
21498 * expr.c: Likewise.
21499 * final.c: Likewise.
21500 * optabs.c: Likewise.
21501 * passes.c: Likewise.
21502 * simplify-rtx.c: Likewise.
21503 * stmt.c: Likewise.
21504 * toplev.c: Likewise.
21505 * var-tracking.c: Likewise.
21506 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21507 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21508 * lower-subreg.c: Likewise.
21509 * postreload-gcse.c: Likewise.
21510 * ree.c: Likewise.
21511 * reginfo.c: Likewise.
21512 * store-motion.c: Likewise.
21513 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21514 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21515 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21516 fixed-value.h hashtab.h statistics.h stmt.h.
21517 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21518 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21519 * except.c: Likewise.
21520 * explow.c: Likewise.
21521 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21522 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21523 varasm.h.
21524 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21525 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21526 * tree-ssa-structalias.c: Likewise.
21527 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21528 fixed-value.h insn-config.h real.h statistics.h.
21529 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21530 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21531 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21532 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21533 * cfgbuild.c: Likewise.
21534 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21535 fixed-value.h real.h rtl.h statistics.h stmt.h.
21536 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21537 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21538 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21539 fixed-value.h real.h statistics.h stmt.h.
21540 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21541 fixed-value.h real.h statistics.h stmt.h varasm.h.
21542 * cprop.c: Likewise.
21543 * modulo-sched.c: Likewise.
21544 * postreload.c: Likewise.
21545 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21546 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21547 statistics.h stmt.h varasm.h.
21548 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21549 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21550 rtl.h statistics.h stmt.h varasm.h.
21551 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21552 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21553 varasm.h.
21554 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21555 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21556 varasm.h.
21557 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21558 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21559 varasm.h.
21560 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21561 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21562 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21563 function.h real.h statistics.h stmt.h varasm.h.
21564 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21565 insn-config.h real.h statistics.h stmt.h.
21566 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21567 statistics.h stmt.h.
21568 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21569 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21570 statistics.h stmt.h varasm.h.
21571 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21572 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21573 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21574 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21575 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21576 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21577 statistics.h stmt.h varasm.h.
21578 * ipa-polymorphic-call.c: Likewise.
21579 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21580 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21581 statistics.h stmt.h.
21582 * config/c6x/c6x.c: Likewise.
21583 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21584 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21585 statistics.h stmt.h varasm.h.
21586 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21587 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21588 stmt.h varasm.h.
21589 * ipa-split.c: Likewise.
21590 * tree-eh.c: Likewise.
21591 * tree-ssa-dce.c: Likewise.
21592 * tree-ssa-loop-niter.c: Likewise.
21593 * tree-vrp.c: Likewise.
21594 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21595 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21596 stmt.h.
21597 * config/nds32/nds32-fp-as-gp.c: Likewise.
21598 * config/nds32/nds32-intrinsic.c: Likewise.
21599 * config/nds32/nds32-isr.c: Likewise.
21600 * config/nds32/nds32-md-auxiliary.c: Likewise.
21601 * config/nds32/nds32-memory-manipulation.c: Likewise.
21602 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21603 * config/nds32/nds32-predicates.c: Likewise.
21604 * config/nds32/nds32.c: Likewise.
21605 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21606 fixed-value.h hashtab.h real.h statistics.h.
21607 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21608 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21609 * config/arm/arm.c: Likewise.
21610 * config/avr/avr.c: Likewise.
21611 * config/bfin/bfin.c: Likewise.
21612 * config/h8300/h8300.c: Likewise.
21613 * config/i386/i386.c: Likewise.
21614 * config/ia64/ia64.c: Likewise.
21615 * config/iq2000/iq2000.c: Likewise.
21616 * config/m32c/m32c.c: Likewise.
21617 * config/m32r/m32r.c: Likewise.
21618 * config/m68k/m68k.c: Likewise.
21619 * config/mcore/mcore.c: Likewise.
21620 * config/mep/mep.c: Likewise.
21621 * config/mips/mips.c: Likewise.
21622 * config/mn10300/mn10300.c: Likewise.
21623 * config/moxie/moxie.c: Likewise.
21624 * config/pa/pa.c: Likewise.
21625 * config/rl78/rl78.c: Likewise.
21626 * config/rx/rx.c: Likewise.
21627 * config/s390/s390.c: Likewise.
21628 * config/sh/sh.c: Likewise.
21629 * config/sparc/sparc.c: Likewise.
21630 * config/spu/spu.c: Likewise.
21631 * config/stormy16/stormy16.c: Likewise.
21632 * config/v850/v850.c: Likewise.
21633 * config/vax/vax.c: Likewise.
21634 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21635 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21636 * config/msp430/msp430.c: Likewise.
21637 * predict.c: Likewise.
21638 * value-prof.c: Likewise.
21639 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21640 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21641 * config/microblaze/microblaze.c: Likewise.
21642 * config/nios2/nios2.c: Likewise.
21643 * config/rs6000/rs6000.c: Likewise.
21644 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21645 insn-config.h real.h rtl.h statistics.h stmt.h.
21646 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21647 insn-config.h real.h statistics.h stmt.h.
21648 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21649 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21650 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21651 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21652 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21653 fixed-value.h real.h statistics.h stmt.h.
21654 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21655 fixed-value.h statistics.h stmt.h.
21656 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21657 stmt.h.
21658
21659 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21660
21661 * gengtype.c (create_user_defined_type): Workaround
21662 -Wmaybe-uninitialized false positives.
21663 * cse.c (fold_rtx): Likewise.
21664 * loop-invariant.c (gain_for_invariant): Likewise.
21665
21666 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21667
21668 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21669 set the memory attributes in all cases but clear MEM_EXPR if need be.
21670
21671 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21672
21673 PR tree-optimization/64434
21674 * cfgexpand.c (reorder_operands): New function.
21675 (expand_gimple_basic_block): Insert call of reorder_operands if
21676 optimized is true.
21677
21678 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21679
21680 * config/mips/micromips.md (*swp): Remove explicit parallel.
21681 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21682 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21683 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21684 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21685 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21686 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21687 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21688 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21689 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21690 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21691 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21692 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21693 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21694 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21695 (mips_wrdsp): Likewise.
21696 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21697 parallel.
21698 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21699 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21700 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21701 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21702 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21703 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21704 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21705 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21706 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21707
21708 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21709
21710 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21711 (mips_print_operand): Support 'y' to print exact log2 in decimal
21712 of a const_int.
21713 * config/mips/mips.h (ISA_HAS_LSA): New define.
21714 (ISA_HAS_DLSA): Likewise.
21715 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21716 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21717
21718 2015-01-15 Martin Liska <mliska@suse.cz>
21719
21720 PR target/64377
21721 * optc-save-gen.awk: Add support for array types.
21722
21723 2015-01-15 Richard Biener <rguenther@suse.de>
21724
21725 PR middle-end/64365
21726 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21727 for MEM_REF access functions with the same base can never partially
21728 overlap.
21729
21730 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21731
21732 * common.opt: New option -fstack-protector-explicit.
21733 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21734 (stack_protect_decl_phase): Handle stack_protect attribute for
21735 explicit stack protection requests.
21736 (expand_used_vars): Similarly.
21737 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21738 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21739 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21740
21741 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21742
21743 PR target/53988
21744 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21745 reg-reg copies.
21746 (sh_extending_set_of_reg): New struct.
21747 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21748 sh_remove_reg_dead_or_unused_notes): New Declarations.
21749 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21750 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21751 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21752 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21753 convert to insn_and_split and use new function sh_split_tst_subregs.
21754
21755 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21756
21757 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21758 option.
21759 (Optimization Options): Move -fuse-ld documentation to...
21760 (Link Options): ...here.
21761
21762 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21763
21764 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21765 offsets.
21766 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21767 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21768 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21769 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21770 instead of ZR for the memory operand of LL/SC.
21771 (compare_and_swap_12, sync_add<mode>): Likewise.
21772 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21773 (sync_new_<optab>_12, sync_nand_12): Likewise.
21774 (sync_old_nand_12, sync_new_nand_12): Likewise.
21775 (sync_sub<mode>, sync_old_add<mode>): Likewise.
21776 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21777 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21778 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21779 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21780 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21781 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21782 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21783 * doc/md.texi (ZC): Update description.
21784
21785 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21786
21787 * builtins.c (expand_builtin_atomic_exchange): Remove error when
21788 memory model is CONSUME.
21789 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21790 expand_builtin_atomic_store): Change invalid memory model errors to
21791 warnings.
21792 (expand_builtin_atomic_clear): Change invalid model errors to warnings
21793 and issue warning for CONSUME.
21794
21795 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
21796
21797 * lto-cgraph: Update function comments for
21798 lto_symtab_encoder_encode_*.
21799
21800 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21801
21802 * Makefile.in (site.exp): Do not set ENABLE_LTO.
21803
21804 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21805
21806 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21807 * lto-cgraph.c (select_what_to_stream): Remove argument, use
21808 lto_stream_offload_p instead.
21809 * lto-streamer.h (select_what_to_stream): Remove argument.
21810 * passes.c (ipa_write_summaries): Likewise.
21811 * tree-pass.h (ipa_write_summaries): Likewise.
21812
21813 2015-01-14 Richard Biener <rguenther@suse.de>
21814
21815 PR tree-optimization/59354
21816 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21817 groups larger than the slp group size as having gaps.
21818
21819 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21820
21821 PR middle-end/59448
21822 * builtins.c (get_memmodel): Promote consume to acquire always.
21823
21824 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21825
21826 PR target/64386
21827 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21828 V32HImode.
21829
21830 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21831
21832 PR target/64393
21833 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21834 Enable AVX512BW.
21835 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21836 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21837 AVX512VBMI, as it implies AVX512BW.
21838
21839 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21840
21841 PR target/64387
21842 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21843 (vec_unpacks_hi_v16sf): Ditto.
21844
21845 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21846
21847 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21848 is not available.
21849
21850 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21851
21852 * doc/invoke.texi (mapcs): Mention deprecation.
21853 (mapcs-frame): Likewise.
21854
21855 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
21856
21857 PR target/64453
21858 * config/arm/arm.c (callee_saved_reg_p): Define.
21859 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21860 register is callee saved instead of !call_used_regs[reg].
21861 (thumb1_compute_save_reg_mask): Likewise.
21862
21863 2015-01-14 Hale Wang <hale.wang@arm.com>
21864
21865 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21866 Cortex-M7.
21867
21868 2015-01-14 Richard Biener <rguenther@suse.de>
21869
21870 PR lto/64415
21871 * tree-inline.c (insert_debug_decl_map): Check destination
21872 function MAY_HAVE_DEBUG_STMTS.
21873 (insert_init_debug_bind): Likewise.
21874 (insert_init_stmt): Remove redundant check.
21875 (remap_gimple_stmt): Drop debug stmts if the destination
21876 function has var-tracking assignments disabled.
21877
21878 2015-01-14 Martin Liska <mliska@suse.cz>
21879
21880 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21881 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21882
21883 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21884
21885 PR target/64460
21886 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21887 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21888
21889 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21890
21891 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21892 level from an ARCH; do not inject the default.
21893 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21894 MIPS_ISA_LEVEL_SPEC.
21895 (MIPS_ISA_NAN2008_SPEC): Update comment.
21896 (BASE_DRIVER_SELF_SPECS): Likewise.
21897 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21898 MIPS_DEFAULT_ISA_LEVEL_SPEC.
21899 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21900 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21901 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21902
21903 2015-01-14 Richard Biener <rguenther@suse.de>
21904
21905 PR tree-optimization/64493
21906 PR tree-optimization/64495
21907 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21908 assign the proper vectorized PHI to the inner loop exit PHIs.
21909
21910 2015-01-14 Joey Ye <joey.ye@arm.com>
21911
21912 * config/arm/arm.c (arm_compute_save_reg_mask):
21913 Do not save lr in case of tail call.
21914 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21915
21916 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
21917
21918 * tree-vrp.c (check_array_ref): Emit more warnings
21919 for warn_array_bounds >= 2.
21920 * common.opt: New option -Warray-bounds=.
21921 * doc/invoke.texi: Document -Warray-bounds=.
21922
21923 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
21924
21925 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21926 (mforbid-fp-as-gp): Remove.
21927 (mex9): Remove.
21928 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21929 (nds32_symbol_load_store_p): Remove.
21930 (nds32_fp_as_gp_check_available): Clean up implementation.
21931 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21932 cases.
21933 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21934 fp-as-gp and ex9 cases.
21935
21936 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21937
21938 * tree-profile.c (init_ic_make_global_vars): Drop workaround
21939 for bintuils bug 14342.
21940 (init_ic_make_global_vars): Likewise.
21941 (gimple_init_edge_profiler): Likewise.
21942 (gimple_gen_ic_func_profiler): Likewise.
21943
21944 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21945
21946 * ipa-inline.c (inline_small_functions): Swap the operands in
21947 enum.
21948
21949 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21950
21951 PR ipa/64481
21952 * ipa-inline-analysis.c (node_growth_cache): Remove.
21953 (initialize_growth_caches): Do not initialize it.
21954 (free_growth_caches): Do not free it.
21955 (do_estimate_growth): Rename to ...
21956 (estimate_growth): ... this one; drop growth cache code.
21957 (growth_likely_positive): Always go the heuristics way.
21958 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21959 (reset_edge_caches): Do not reset node growth.
21960 (heap_edge_removal_hook): Do not maintain cache.
21961 (inline_small_functions): Likewise; strenghten sanity check.
21962 (ipa_inline): Do not maintain caches.
21963 * ipa-inline.h (node_growth_cache): Remove.
21964 (do_estimate_growth): Remove to ...
21965 (estimate_growth): this one; remove inline version.
21966 (reset_node_growth_cache): Remove.
21967
21968 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21969
21970 PR ipa/64565
21971 * ipa-inline.c (inline_small_functions): Update callee keys after
21972 resolving speculation
21973 (inline_small_functions): Always check monotonicity of the queue.
21974
21975 2015-01-13 Marek Polacek <polacek@redhat.com>
21976
21977 PR middle-end/64391
21978 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
21979
21980 2015-01-13 Jakub Jelinek <jakub@redhat.com>
21981
21982 PR rtl-optimization/64286
21983 * ree.c (combine_reaching_defs): Move part of comment earlier,
21984 remove !SCALAR_INT_MODE_P check.
21985 (add_removable_extension): Don't add vector mode
21986 extensions if all uses of the source register aren't the same
21987 vector extensions.
21988
21989 2015-01-13 Renlin Li <renlin.li@arm.com>
21990
21991 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
21992 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
21993
21994 2015-01-13 Martin Liska <mliska@suse.cz>
21995
21996 * ipa-icf.c (sem_function::equals_private): Call new functions
21997 cl_target_option_print_diff and cl_optimization_print_diff.
21998 * optc-save-gen.awk (cl_target_option_print_diff): New function.
21999 (cl_optimization_print_diff): Likewise.
22000 * opth-gen.awk: Likewise.
22001
22002 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
22003
22004 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22005 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22006 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22007 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22008 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22009 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22010
22011 2015-01-13 Andrew Pinski <apinski@cavium.com>
22012
22013 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22014 instead of src mode.
22015
22016 2015-01-13 Richard Biener <rguenther@suse.de>
22017
22018 PR lto/64373
22019 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22020 DECL_CONTEXT.
22021
22022 2015-01-13 Andrew Pinski <apinski@cavium.com>
22023
22024 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22025 volatile mems.
22026 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22027
22028 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22029
22030 PR middle-end/63974
22031 * cfgexpand.c (expand_computed_goto): Don't call
22032 convert_memory_address here.
22033
22034 2015-01-13 Richard Biener <rguenther@suse.de>
22035
22036 PR tree-optimization/64406
22037 * tree-loop-distibution.c (pass_loop_distribution::execute):
22038 Reset the SCEV hashtable if we distributed anything.
22039
22040 2015-01-13 Richard Biener <rguenther@suse.de>
22041
22042 PR tree-optimization/64404
22043 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22044 SLP types for CSEd loads.
22045
22046 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22047
22048 PR tree-optimization/64436
22049 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22050 merge of two symbolic numbers for a bitwise OR to ...
22051 (perform_symbolic_merge): This. Also fix computation of the range and
22052 end of the symbolic number corresponding to the result of a bitwise OR.
22053
22054 2015-01-13 Richard Biener <rguenther@suse.de>
22055
22056 PR tree-optimization/64568
22057 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22058 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22059
22060 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22061
22062 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22063 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22064
22065 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22066
22067 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22068 target-specific symbol_ref flag.
22069 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22070 resides in rodata section.
22071 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22072 (nds32_encode_section_info): New function.
22073
22074 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22075
22076 * config/nds32/nds32.md (call): Use pseudo instruction bal which
22077 clobbers TA_REGNUM if large code model is specified.
22078 (call_register): Likewise.
22079 (call_immediate): Likewise.
22080 (call_value): Likewise.
22081 (call_value_register): Likewise.
22082 (call_value_immediate): Likewise.
22083
22084 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22085
22086 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22087 (TARGET_CMODEL_MEDIUM): New macro.
22088 (TARGET_CMODEL_LARGE): New macro.
22089 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22090 code model setting in assembly code.
22091
22092 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22093
22094 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22095 Remove MASK_GP_DIRECT flag.
22096 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22097 one of the multilib default options.
22098 * config/nds32/nds32.opt (mgp-direct): Remove.
22099 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22100 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
22101
22102 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22103
22104 * config/nds32/nds32.opt (mcmodel): Add new option.
22105 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22106 to describe code model.
22107
22108 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
22109
22110 PR target/64479
22111 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22112
22113 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
22114
22115 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22116 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22117 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22118 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22119 __builtin_sh_set_fpscr.
22120
22121 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22122
22123 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22124 after a funtion name just to indicate it is a function.
22125 ([-fsanitize-undefined-trap-on-error]): Likewise.
22126 ([-fdbg-cnt=]): Likewise.
22127 ([-mmemcpy]): Likewise.
22128 ([-mflush-func]): Likewise.
22129 ([-msynci]): Likewise.
22130
22131 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22132
22133 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22134 example.
22135
22136 2015-01-12 Jakub Jelinek <jakub@redhat.com>
22137
22138 PR tree-optimization/64563
22139 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22140 instead of != VR_VARYING.
22141
22142 PR target/64513
22143 * config/i386/i386.c (ix86_expand_prologue): Add
22144 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22145
22146 PR tree-optimization/64454
22147 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22148 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22149 for signed or [0, op1 - 1] for unsigned modulo.
22150 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22151 even if op1 does not satisfy integer_pow2p.
22152
22153 PR other/64370
22154 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22155
22156 2015-01-12 Jeff Law <law@redhat.com>
22157
22158 PR target/64461
22159 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22160 (trunchiqi2, truncsihi2): Similarly.
22161
22162 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22163 rather than calling F.
22164
22165 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
22166
22167 * tsan.c (instrument_expr): Use force_gimple_operand.
22168 Use may_be_nonaddressable_p instead of is_gimple_addressable.
22169
22170 2015-01-12 Richard Biener <rguenther@suse.de>
22171
22172 PR tree-optimization/64530
22173 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22174 back dr1.
22175
22176 2015-01-12 Richard Biener <rguenther@suse.de>
22177
22178 PR middle-end/64357
22179 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22180 latches properly.
22181
22182 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22183
22184 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22185 Cortex-A17 tuning parameters.
22186 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22187
22188 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22189
22190 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22191 * config/arm/arm.c (arm_macro_fusion_p): New function.
22192 (arm_macro_fusion_pair_p): Likewise.
22193 (TARGET_SCHED_MACRO_FUSION_P): Define.
22194 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22195 (ARM_FUSE_NOTHING): Likewise.
22196 (ARM_FUSE_MOVW_MOVT): Likewise.
22197 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22198 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22199 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22200 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22201 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22202 arm_cortex_a5_tune): Specify fuseable_ops value.
22203
22204 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
22205
22206 PR bootstrap/64561
22207 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22208 test for PIE with copy reloc.
22209 * configure: Regenerated.
22210
22211 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22212
22213 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22214 in gen_rtx_REG.
22215 (arm_tls_descseq_addr): Likewise.
22216 (arm_gen_movmemqi): Likewise.
22217 (arm_expand_epilogue_apcs_frame): Likewise.
22218 (arm_expand_epilogue): Likewise.
22219 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
22220 in gen_rtx_REG.
22221
22222 2015-01-12 Martin Liska <mliska@suse.cz>
22223
22224 PR ipa/64550
22225 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22226 volatility for correct operands.
22227
22228 2015-01-12 Martin Liska <mliska@suse.cz>
22229
22230 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22231 indication that a function is not leaf.
22232 (sem_function::compare_polymorphic_p): Likewise.
22233
22234 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22235
22236 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22237 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22238 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22239 fold-const.h, tree-check.h.
22240
22241 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22242
22243 PR ipa/63967
22244 PR ipa/64425
22245 * ipa-inline.c (compute_uninlined_call_time,
22246 compute_inlined_call_time): Use counts for extra precision when
22247 needed possible.
22248 (big_speedup_p): Fix formating.
22249 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22250 (relative_time_benefit): Remove.
22251 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22252 merge guessed and read profile paths.
22253 (inline_small_functions): Count only !optimize_size functions into
22254 initial size; be more lax about sanity check when profile is used;
22255 be sure to update inlined function profile when profile is read.
22256
22257 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22258
22259 PR ipa/63470
22260 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22261 cost when edge becomes direct.
22262 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22263 is resolved or when introducing new speculation.
22264
22265 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22266
22267 PR ipa/64551
22268 PR ipa/64552
22269 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22270 '||' to fix typo issue.
22271
22272 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22273 accept and return NULL.
22274
22275 2015-01-12 Martin Liska <mliska@suse.cz>
22276
22277 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22278 file for being inlined.
22279 (cgraph_set_edge_callee): Delete.
22280 (cgraph_edge::redirect_callee): Move function to header file
22281 for being inlined.
22282 (cgraph_edge::make_direct): Use new function.
22283 (cgraph_edge::dump_edge_flags): New function created from
22284 static dump_edge_flags function.
22285 (cgraph_node::dump): Use new function.
22286 (cgraph_edge::verify_count_and_frequency): New function created
22287 from verify_edge_count_and_frequency.
22288 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22289 from verify_edge_corresponds_to_fndecl.
22290 (verify_edge_corresponds_to_fndecl): Delete.
22291 (cgraph_node::verify_node): Use new function.
22292 * cgraph.h (cgraph_edge::set_callee): New function.
22293 (cgraph_edge::dump_edge_flags): Likewise.
22294 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22295
22296 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22297
22298 * ipa-utils.c (estimate_function_body_sizes): Do not
22299 free node params when called late with early=true.
22300
22301 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22302
22303 * doc/md.texi (Instruction Patterns): Rewrite text for
22304 clarity.
22305 (Example): Likewise.
22306
22307 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22308
22309 * doc/invoke.texi (Option Summary): Break long lines.
22310 [(-fdiagnostics-color)]: Put long literal in @smallexample
22311 instead of inline.
22312 [(-fsanitize-recover)]: Likewise.
22313 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22314 [(-ffast-math)]: Likewise.
22315 [(--param max-inline-insns-recursive)]: Likewise.
22316 [(--param max-inline-recursive-depth)]: Likewise.
22317 [(-mno-text-section-literals)]: Likewise.
22318
22319 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22320
22321 * doc/install.texi: Update for libgomp being renamed from "GNU
22322 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22323 Runtime Library".
22324 * doc/sourcebuild.texi: Likewise.
22325
22326 2015-01-10 Anthony Green <green@moxielogic.com>
22327
22328 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22329 mul.x availability for moxiebox configuration.
22330
22331 2015-01-09 Anthony Green <green@moxielogic.com>
22332
22333 * config/moxie/moxie.md: Tabify assembly output.
22334
22335 2015-01-09 Anthony Green <green@moxielogic.com>
22336
22337 * config/moxie/moxie.md (CC_REG): Correct register definition.
22338
22339 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22340
22341 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22342 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22343 of log files.
22344
22345 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22346
22347 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22348
22349 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22350 Jakub Jelinek <jakub@redhat.com>
22351
22352 PR middle-end/64412
22353 * lto-streamer.h (lto_stream_offload_p): New declaration.
22354 * lto-streamer.c (lto_stream_offload_p): New variable.
22355 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22356 at the same time as section_name_prefix.
22357 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22358 if lto_stream_offload_p.
22359 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22360 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22361 (write_ts_function_decl_tree_pointers): Don't
22362 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22363 * tree-streamer-in.c (unpack_value_fields): Don't stream
22364 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22365 (lto_input_ts_function_decl_tree_pointers): Don't stream
22366 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22367 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22368 instead of section_name_prefix string comparisons.
22369
22370 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22371
22372 PR rtl-optimization/64536
22373 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22374 tablejumps.
22375
22376 2015-01-09 Michael Collison <michael.collison@linaro.org>
22377
22378 PR tree-optimization/64322
22379 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22380 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22381
22382 2015-01-09 Tom de Vries <tom@codesourcery.com>
22383
22384 PR rtl-optimization/64539
22385 * regcprop.c (kill_clobbered_values): Factor out of ...
22386 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22387 instead of note_stores with kill_clobbered_value.
22388
22389 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22390
22391 * ginclude/unwind-arm-common.h: Revert previous commit.
22392
22393 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22394
22395 * config.gcc (arm*-*-freebsd*): New configuration.
22396 * config/arm/freebsd.h: New file.
22397 * config.host: Add extra components for arm*-*-freebsd*.
22398 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22399 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22400
22401 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22402
22403 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22404 for -mcpu=e6500.
22405 * config/rs6000/t-rtems: Add e6500 multilibs.
22406
22407 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22408
22409 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22410 MPC8540.
22411
22412 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22413
22414 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22415 MULTILIB_EXCEPTIONS.
22416
22417 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22418
22419 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22420 MULTILIB_EXCEPTIONS.
22421
22422 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22423
22424 * config/arm/t-rtems-eabi: Rename to...
22425 * config/arm/t-rtems: ...this.
22426 * config/arm/rtems-eabi.h: Rename to...
22427 * config/arm/rtems.h: ...this.
22428 * config.gcc (arm*-*-rtems*): Reflect changes above.
22429
22430 2015-01-09 Richard Biener <rguenther@suse.de>
22431
22432 PR tree-optimization/64410
22433 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22434 on the LHS.
22435 (execute_update_addresses_taken): Deal with that.
22436 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22437 loads/stores for complex variables.
22438
22439 2015-01-09 Martin Liska <mliska@suse.cz>
22440
22441 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22442 name comparison.
22443 (func_checker::compare_memory_operand): New function.
22444 (func_checker::compare_operand): Split case to newly
22445 added functions.
22446 (func_checker::compare_cst_or_decl): New function.
22447 (func_checker::compare_gimple_call): Identify
22448 memory operands.
22449 (func_checker::compare_gimple_assign): Likewise.
22450 * ipa-icf-gimple.h: New function.
22451
22452 2015-01-09 Martin Liska <mliska@suse.cz>
22453
22454 PR ipa/64503
22455 * sreal.c (sreal::dump): Change unsigned format to signed for
22456 m_exp value.
22457 (sreal::to_double): Replace exp2 with scalbln.
22458
22459 2015-01-09 Martin Liska <mliska@suse.cz>
22460
22461 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22462 * ipa-icf.c (sem_function::equals_private): Add support for target and
22463 (sem_item_optimizer::merge_classes): Remove redundant function
22464 optimization flags comparison.
22465 * tree.h (target_opts_for_fn): New function.
22466
22467 2015-01-09 Tom de Vries <tom@codesourcery.com>
22468
22469 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22470
22471 2015-01-09 Kito Cheng <kito@0xlab.org>
22472
22473 PR rtl-optimization/64348
22474 * lra-constraints.c (split_reg): Fix caller-save store/restore
22475 instruction generation.
22476
22477 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22478
22479 PR gcov-profile/61790
22480 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22481 long long. Fallback to int64_t if host doesn't have long long and
22482 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22483
22484 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22485
22486 PR tree-optimization/63989
22487 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22488 from 1000 to 10000.
22489 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22490 (get_stridx): If we don't have a record for certain SSA_NAME,
22491 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22492 constant offset, call get_stridx_plus_constant.
22493 (get_stridx_plus_constant): New function.
22494 (zero_length_string): Don't use get_stridx here.
22495
22496 PR target/55023
22497 PR middle-end/64388
22498 * dse.c (struct insn_info): Mention frame_read set also
22499 before reload for tail calls on some targets.
22500 (scan_insn): Revert 2014-12-22 change. Set frame_read
22501 also before reload for tail calls if
22502 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22503 instead of add_non_frame_wild_read for non-const/memset
22504 tail calls after reload.
22505
22506 2015-01-08 Jason Merrill <jason@redhat.com>
22507
22508 * ubsan.c (do_ubsan_in_current_function): New.
22509 (pass_ubsan::gate): Use it.
22510 * ubsan.h: Declare it.
22511 * convert.c (convert_to_integer): Use it.
22512
22513 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22514
22515 PR target/64338
22516 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22517 compare_code when it is unconditionally overwritten afterwards.
22518 Use ix86_reverse_condition instead of reverse_condition. Don't
22519 change code if *reverse_condition* returned UNKNOWN and don't
22520 swap ct/cf and negate diff in that case.
22521
22522 2015-01-08 Mike Stump <mikestump@comcast.net>
22523
22524 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22525 (pass_tsan_O0::gate): Likewise.
22526 * extend.texi (Function Attributes): Add no_sanitize_thread
22527 documentation.
22528
22529 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22530
22531 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22532 for registering builtins.
22533 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22534 add -fopenmp to the argv_obstack used when invoking
22535 compile_for_target.
22536
22537 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22538 add "-m32" or "-m64" to argv_obstack.
22539 (generate_host_descr_file): Likewise, when invoking host_compiler.
22540 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22541 ld.
22542
22543 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22544
22545 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22546 tstsi_t insns.
22547
22548 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22549
22550 PR target/55212
22551 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22552 constant load if constant operand fits into I08.
22553
22554 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22555
22556 PR sanitizer/64336
22557 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22558 and TREE_THIS_VOLATILE for MEM_REFs.
22559 (build5_stat): Fix up initialization of TREE_READONLY and
22560 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22561
22562 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22563
22564 PR target/64533
22565 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22566 of r for the second alternative of the destination operand.
22567
22568 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22569
22570 PR target/36557
22571 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22572
22573 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22574
22575 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22576 keywords.
22577 ([-fivar-visibility], [-fvisibility]): Likewise.
22578
22579 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22580
22581 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22582 the file where @code, @command, etc is more appropriate.
22583
22584 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22585
22586 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22587 of -mrecip= documentation.
22588
22589 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22590
22591 PR target/64505
22592 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22593 correct reload handler if -m32 -mpowerpc64 is used.
22594
22595 2015-01-06 Tom de Vries <tom@codesourcery.com>
22596
22597 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22598
22599 2015-01-08 Christian Bruel <christian.bruel@st.com>
22600
22601 PR target/64507
22602 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22603
22604 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22605
22606 PR tree-optimization/63259
22607 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22608 if optab exists for 16bit byteswap.
22609
22610 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22611
22612 * opts.c (common_handle_option): Add support for
22613 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22614 * doc/invoke.texi: Document -fno-sanitize=all,
22615 -f{,no-}sanitize-recover=all. Document that
22616 -fsanitize=float-cast-overflow is not enabled
22617 by -fsanitize=undefined. Fix up documentation
22618 of -f{,no-}sanitize-recover.
22619
22620 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22621
22622 * config.gcc: Add Visium support.
22623 * configure.ac: Likewise.
22624 * configure: Regenerate.
22625 * doc/extend.texi (interrupt attribute): Add Visium.
22626 * doc/invoke.texi: Document Visium options.
22627 * doc/install.texi: Document Visium target.
22628 * doc/md.texi: Document Visium constraints.
22629 * common/config/visium: New directory.
22630 * config/visium: Likewise.
22631
22632 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22633
22634 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22635 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22636
22637 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22638
22639 * combine.c (combine_validate_cost): Do not count the cost of a
22640 split I2 twice. Do not display it twice in the dump, either.
22641
22642 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22643
22644 Revert parts of r219199.
22645 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22646 <inttypes.h>.
22647 ([-Wtraditional]): Restore markup on <limits.h>.
22648
22649 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22650
22651 PR c++/31397
22652 * doc/invoke.texi: Document -Wsuggest-override.
22653
22654 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22655
22656 PR rtl-optimization/64287
22657 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22658 (process_options): Disable flag_ipa_ra if profiling.
22659
22660 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22661
22662 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22663
22664 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22665
22666 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22667 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22668 put under #if TARGET_LOOPS guard.
22669
22670 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22671
22672 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22673
22674 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22675
22676 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22677 * rtl.h (refers_to_regno_p): Add overload.
22678 * cse.c: Use it.
22679 * bt-load.c: Likewise.
22680 * combine.c: Likewise.
22681 * df-scan.c: Likewise.
22682 * sched-deps.c: Likewise.
22683 * config/s390/s390.c: Likewise.
22684 * config/m32r/m32r.c: Likewise.
22685 * config/rs6000/spe.md: Likewise.
22686 * config/rs6000/rs6000.c: Likewise.
22687 * config/pa/pa.c: Likewise.
22688 * config/stormy16/stormy16.c: Likewise.
22689 * config/cris/cris.c: Likewise.
22690 * config/arc/arc.md: Likewise.
22691 * config/arc/arc.c: Likewise.
22692 * config/sh/sh.md: Likewise.
22693 * config/sh/sh.c: Likewise.
22694 * config/frv/frv.c: Likewise.
22695
22696 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22697
22698 PR sanitizer/64265
22699 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22700 call as cleanup of the whole body.
22701 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22702 * tsan.c (replace_func_exit): New function.
22703 (instrument_func_exit): Moved earlier.
22704 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22705 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22706 been found.
22707 (tsan_pass): Don't call instrument_func_exit.
22708 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22709 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22710 inlining.
22711
22712 PR sanitizer/64344
22713 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22714 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22715 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22716 if the result is integer_zerop, return NULL_TREE.
22717 * convert.c (convert_to_integer): Pass expr as ARG.
22718
22719 PR tree-optimization/64465
22720 * tree-inline.c (redirect_all_calls): During inlining
22721 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22722 changed the stmt to a non-throwing call.
22723
22724 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22725
22726 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22727 etc markup throughout the file.
22728
22729 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22730
22731 Enable experimental TSAN support for Ada.
22732 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22733
22734 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22735
22736 PR tree-optimization/64494
22737 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22738 clear SSA_NAME_ANTI_RANGE_P flag.
22739
22740 2015-01-05 Marek Polacek <polacek@redhat.com>
22741
22742 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22743
22744 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22745
22746 Update copyright years.
22747
22748 * gcc.c (process_command): Update copyright notice dates.
22749 * gcov-dump.c: Ditto.
22750 * gcov.c: Ditto.
22751 * doc/cpp.texi: Bump @copying's copyright year.
22752 * doc/cppinternals.texi: Ditto.
22753 * doc/gcc.texi: Ditto.
22754 * doc/gccint.texi: Ditto.
22755 * doc/gcov.texi: Ditto.
22756 * doc/install.texi: Ditto.
22757 * doc/invoke.texi: Ditto.
22758
22759 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22760
22761 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22762
22763 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22764 verb tense, etc.
22765 ([-fvtable-verify], [-fvtv-debug]): Likewise.
22766 ([-Wabi]): Likewise.
22767 ([-fmessage-length]): Likewise.
22768 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22769 ([-Wno-discarded-qualifiers]): Likewise.
22770 ([-Wnodiscarded-array-qualifiers]): Likewise.
22771 ([-Wno-virtual-move-assign]): Likewise.
22772 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22773 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22774 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22775 ([-fsanitize-undefined-trap-on-error]): Likewise.
22776 ([-floop-interchange]): Likewise.
22777 ([-ftree-coalesce-inlined-vars]): Likewise.
22778 ([-fvect-cost-model]): Likewise.
22779 ([-flto]): Likewise.
22780 ([--param]): Likewise.
22781 (Spec Files): Likewise.
22782 ([-mstrict-align]): Likewise.
22783 ([-mfix-cortex-a53-835769]): Likewise.
22784 ([-march], [-mtune]): Likewise.
22785 ([-mpic-register]): Likewise.
22786 ([-munaligned-access]): Likewise.
22787 ([-msp8]): Likewise.
22788 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22789 (AVR Built-in Macros): Likewise.
22790 ([-mpreferred-stack-boundary]): Likewise.
22791 ([-mtune-crtl]): Likewise.
22792 ([-mashf]): Likewise.
22793 ([-mmcu=]): Likewise.
22794 ([-minrt]): Likewise.
22795 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22796 ([-mupper-regs]): Likewise.
22797 ([-matomic-model]): Likewise.
22798 ([-mdiv]): Likewise.
22799 ([-mzdcbranch]): Likewise.
22800 ([-mdisable-callt]): Likewise.
22801 ([-msoft-float]): Likewise.
22802 ([-m8byte-align]): Likewise.
22803 ([-fstack-reuse]): Likewise.
22804
22805 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22806
22807 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22808 Fix markup, light copy-editing.
22809 ([-fauto-profile]): Rewrite to fix formatting and content
22810 problems.
22811
22812 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22813
22814 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22815 Copy-edit description.
22816 ([-fisolate-erroneous-paths-attribute]): Likewise.
22817 * common.opt (fisolate-erroneous-paths-dereference):
22818 Copy-edit description.
22819 (fisolate-erroneous-paths-attribute): Likewise.
22820
22821 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22822
22823 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22824 tidy grammar.
22825
22826 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22827
22828 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22829 ([-fvtv-debug]): Likewise.
22830 ([-Wc++-compat]): Likewise.
22831 ([-Wc++11-compat]): Likewise.
22832 ([-Wc++14-compat]): Likewise.
22833 ([-Wno-sized-deallocation]): Likewise.
22834 ([-femit-class-debug-always]): Likewise.
22835 ([-femit-struct-debug-detailed]): Likewise.
22836 ([-fno-keep-inline-dllexport]): Likewise.
22837 ([-fira-algorithm]): Likewise.
22838 ([-fira-region]): Likewise.
22839 ([-flra-remat]): Likewise.
22840 ([-fipa-ra]): Likewise.
22841 ([-fhoist-adjacent-loads]): Likewise.
22842 ([-fisolate-erroneous-paths-dereference]): Likewise.
22843 ([-fisolate-erroneous-paths-attribute]): Likewise.
22844 ([-ftree-switch-conversion]): Likewise.
22845 ([-ftree-tail-merge]): Likewise.
22846 ([-ftree-loop-if-convert]): Likewise.
22847 ([-ftree-loop-if-convert-stores]): Likewise.
22848 ([-ftree-loop-distribution]): Likewise.
22849 ([-ftree-loop-distribute-patterns]): Likewise.
22850 ([-flto-compression-level]): Likewise.
22851 ([-flto-report]): Likewise.
22852 ([-flto-report-wpa]): Likewise.
22853 ([-fuse-linker-plugin]): Likewise.
22854 ([-mfix-cortex-a53-835769]): Likewise.
22855 ([-mno-fix-cortex-a53-835769]): Likewise.
22856 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22857 explicit listing; add a note to the discussion indicating they
22858 exist. Reorder table to group similar options. Add missing
22859 @opindex entries. Add @need commands throughout the table to
22860 allow it to be split across multiple pages.
22861 ([-m8bit-idiv]): Fix @opindex.
22862 ([-mavx256-split-unaligned-load]): Likewise.
22863 ([-mavx256-split-unaligned-store]): Likewise.
22864 ([-mstack-protector-guard]): Likewise.
22865 ([-mcpu=]): Likewise.
22866 ([-mcpu]): Likewise.
22867 ([-mpointer-size=]): Likewise.
22868
22869 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
22870
22871 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22872 instead of `m' constraint. Likewise for unnamed movb comparison
22873 patterns using reg_before_reload_operand predicate.
22874 * config/pa/predicates.md (reg_before_reload_operand): Tighten
22875 predicate to reject register index and LO_SUM DLT memory forms
22876 after reload.
22877
22878 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22879
22880 * doc/invoke.texi (Option Summary): Fix spelling of
22881 -fdevirtualize-at-ltrans.
22882 ([-fdevirtualize]): Fix markup.
22883 ([-fdevirtualize-speculatively]): Fix typo.
22884 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
22885 implementor-speaky.
22886 * common.opt (fdevirtualize-at-ltrans): Likewise.
22887 * ipa-devirt.c: Fix typos in comments throughout the file.
22888 (ipa_devirt): Fix typos in format strings for dump output.
22889
22890 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22891
22892 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22893 discussion of defaults, light copy-editing.
22894
22895 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22896
22897 * tsan.c (instrument_expr): corrected previous checkin.
22898
22899 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22900
22901 Instrument bit field and unaligned accesses for TSAN.
22902 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22903 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22904 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22905 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22906 unaligned memory regions.
22907
22908 2015-01-01 Anthony Green <green@moxielogic.com>
22909
22910 * config/moxie/predicates.md (moxie_general_movsrc_operand):
22911 Restrict move source register offsets to 16 bits.
22912 \f
22913 Copyright (C) 2015 Free Software Foundation, Inc.
22914
22915 Copying and distribution of this file, with or without modification,
22916 are permitted in any medium without royalty provided the copyright
22917 notice and this notice are preserved.