[AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2
3         PR target/65711
4         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5         -dynamic-linker within %{!static %{!shared, and -rdynamic within
6         %{!static.
7
8 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9
10         PR ipa/66566
11         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12         edge summary is available.
13
14 2015-07-24  Richard Biener  <rguenther@suse.de>
15
16         * genmatch.c (struct dt_node): Add statistic fields.
17         (dt_node::analyze): New method.
18         (decision_tree::gen_gimple): Call analyze on the root node
19         and print statistics to stderr.
20         (decision_tree::gen_generic): Likewise.
21
22 2015-07-24  Richard Biener  <rguenther@suse.de>
23
24         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
25         against the highest or lowest possible integer ...
26         * match.pd: ... as patterns here.
27
28 2015-07-24  Richard Biener  <rguenther@suse.de>
29
30         * genmatch.c (struct capture_info): Add same_as field.
31         (capture_info::capture_info): Initialize same_as.
32         (capture_info::walk_match): Compute same_as.
33         (capture_info::walk_result): Compute stuff for the leader.
34         (capture_info::walk_c_expr): Likewise.
35         (dt_simplify::gen_1): Only look at leaders when deciding
36         to force no side-effects or emit side-effects of omitted operands.
37
38 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
39
40         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
41         reg note to the GPR -> FPR save instructions.
42
43 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
44
45         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
46         cheaper.
47         (s390_expand_insv): Don't generate risbg pattern for constant zero
48         sources.
49         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
50         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
51         splitters.
52
53 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
54
55         * config/s390/s390.c (s390_reorg): Clean up handling of processors
56         with
57         -mtune=
58         (s390_issue_rate): Likewise.
59         (s390_sched_reorder): Likewise.
60         (s390_sched_variable_issue): Likewise.
61         (s390_loop_unroll_adjust): Likewise.
62         (s390_option_override):  Likewise.
63
64 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
65
66         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
67         processor capabilities with -march=native.
68         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
69         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
70         (S390_TARGET_BITS_STRING): Macro to simplify specs.
71
72 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
73
74         * config/s390/s390.c (s390_issue_rate): Handle
75         PROCESSOR_2094_Z9_EC.
76         (s390_option_override): Likewise.
77         (s390_adjust_priority): Likewise.
78
79 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
80
81         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
82         when cross compiling.
83
84 2015-07-24  Richard Biener  <rguenther@suse.de>
85
86         * fold-const.c (maybe_canonicalize_comparison_1): Move
87         A code CST canonicalization ...
88         * match.pd: ... to a pattern here.
89
90 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
91
92         Revert:
93         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
94         PR target/63521
95         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
96         (HONOR_REG_ALLOC_ORDER): Define.
97
98 2015-07-24  Richard Biener  <rguenther@suse.de>
99
100         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
101         * fold-const.c (fold_comparison): Move parameter does not
102         alias &local simplification ...
103         * match.pd: ... as a pattern here.
104
105 2015-07-24  Richard Biener  <rguenther@suse.de>
106
107         * gimple-fold.c (replace_stmt_with_simplification): Special-case
108         valueizing call operands.
109         * gimple-match-head.c (maybe_push_res_to_seq): Take
110         number of call arguments from ops array.
111         (do_valueize): New function.
112         (gimple_simplify): Return true if valueization changed
113         any operand even if the result didn't simplify further.
114
115 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
116
117         PR middle-end/25530
118         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
119
120 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
121
122          PR middle-end/25529
123          * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
124
125 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
126
127         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
128         instruction.
129
130 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
131
132         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
133         clean up.
134
135 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
136
137         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
138         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
139         targets here.
140         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
141         ms_va_list_type_node initialization.
142
143 2015-07-23  Jeff Law  <law@redhat.com>
144
145         PR lto/66752
146         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
147         unable to find X NE 0 in the tables, return X as the simplified
148         condition.
149         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
150         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
151         to VISISTED_BBS.  */
152         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
153         after removing the control flow statement and unnecessary edges.
154
155 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
156
157         * tree-pass.h (get_current_pass_name): Removed.
158
159 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
160
161         PR rtl-optimization/64164
162         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
163         * tree-ssa-copyrename.c: Removed.
164         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
165         -ftree-coalesce-vars.
166         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
167         * common.opt (ftree-copyrename): Ignore.
168         (ftree-coalesce-inlined-vars): Likewise.
169         * doc/invoke.texi: Remove the ignored options above.
170         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
171         * tree-ssa-coalesce.h: ... here.
172         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
173         headers required by it.
174         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
175         across variables when flag_tree_coalesce_vars.  Check register
176         use and promoted modes to allow coalescing.  Moved to
177         tree-ssa-coalesce.c.
178         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
179         with its member functions to tree-ssa-coalesce.c.
180         (var_map_base_init): Likewise.  Renamed to
181         compute_samebase_partition_bases.
182         (partition_view_normal): Drop want_bases parameter.
183         (partition_view_bitmap): Likewise.
184         * tree-ssa-live.h: Adjust declarations.
185         * tree-ssa-coalesce.c: Include explow.h.
186         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
187         default defs at the entry point.
188         (dump_part_var_map): New.
189         (compute_optimized_partition_bases): New, called by...
190         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
191         of compute_samebase_partition_bases.  Adjust.
192         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
193         * cfgexpand.c (leader_merge): New.
194         (get_rtl_for_parm_ssa_default_def): New.
195         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
196         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
197         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
198         redundant MEM attr setting.
199         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
200         from...
201         (expand_one_stack_var): ... this.  New wrapper to check and
202         skip already expanded SSA partitions.
203         (record_alignment_for_reg_var): New, factored out of...
204         (expand_one_var): ... this.
205         (expand_one_ssa_partition): New.
206         (adjust_one_expanded_partition_var): New.
207         (expand_one_register_var): Check and skip already expanded SSA
208         partitions.
209         (expand_used_vars): Don't create DECLs for anonymous SSA
210         names.  Expand all SSA partitions, then adjust all SSA names.
211         (pass::execute): Replace the loops that set
212         SA.partition_to_pseudo from partition leaders and cleared
213         DECL_RTL for multi-location variables, and that which used to
214         rename vars and set attrs, with one that clears DECL_RTL and
215         checks that PARMs and RESULTs default_defs match DECL_RTL.
216         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
217         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
218         * explow.c (promote_ssa_mode): New.
219         * explow.h (promote_ssa_mode): Declare.
220         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
221         * function.c: Include cfgexpand.h.
222         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
223         (use_register_for_parm_decl): Wrapper for the above to
224         special-case the result_ptr.
225         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
226         (split_complex_args): Take assign_parm_data_all argument.
227         Pass it to rtl_for_parm.  Set up rtl and context for split
228         args.
229         (assign_parms_augmented_arg_list): Adjust.
230         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
231         multiple locations.  Recognize split complex args.
232         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
233         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
234         (assign_parm_setup_block): Prefer SSA-assigned location.
235         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
236         if stack_parm is NULL.
237         (assign_parm_setup_stack): Prefer SSA-assigned location.
238         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
239         rtl before testing for pointer bounds.  Special-case result_ptr.
240         (expand_function_start): Maybe reset DECL_RTL of result.
241         Prefer SSA-assigned location for result and static chain.
242         Factor out DECL_RESULT and SET_DECL_RTL.
243         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
244         anonymous SSA names.  Use promote_ssa_mode.
245         (get_temp_reg): Likewise.
246         (remove_ssa_form): Adjust.
247         * stor-layout.c (layout_decl): Don't set mem attributes of
248         non-MEMs.
249         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
250         and get its reg_usage for reg invalidation.
251         (compute_bb_dataflow): Pass it insn.
252         (emit_notes_in_bb): Likewise.
253
254 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
255
256         PR target/66217
257         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
258         prototype.
259         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
260         (rs6000_emit_2insn_and): Handle dot forms.
261         * config/rs6000/rs6000.md (and<mode>3): Adjust.
262         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
263         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
264
265 2015-07-23  Richard Biener  <rguenther@suse.de>
266
267         * generic-match-head.c: Include cgraph.h.
268         * gimple-match-head.c: Likewise.
269         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
270         SSA names.
271         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
272         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
273         pattern.
274
275 2015-07-23  Richard Biener  <rguenther@suse.de>
276
277         * gimple-fold.c (fold_gimple_cond): Do not require folding
278         results to pass valid_gimple_rhs_p.
279         * tree-cfg.h (fold_cond_expr_cond): Remove.
280         * tree-cfg.c (fold_cond_expr_cond): Likewise.
281         (make_edges): Do not call it.
282         * tree-inline.c (tree_function_versioning): Likewise.
283
284 2015-07-23  Tom de Vries  <tom@codesourcery.com>
285
286         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
287         vect_force_simple_reduction.
288         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
289         (vect_is_simple_reduction_1): Add and handle
290         need_wrapping_integral_overflow parameter.
291         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
292         need_wrapping_integral_overflow parameter.
293         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
294         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
295         decl.
296
297 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
298
299         PR tree-optimization/66926,66951
300         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
301         INNER_LOOP and fix up condition for renaming virtual operands.
302
303 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
304
305         * combine.c (try_combine): Use std::swap instead of manually
306         swapping.
307
308 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
309
310         * config/mips/i6400.md: New file.
311         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
312         (mips64r6): Likewise.
313         (i6400): Define.
314         * config/mips/mips-tables.opt: Regenerate.
315         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
316         (mips_issue_rate): Add support for i6400.
317         (mips_multipass_dfa_lookahead): Likewise.
318         * config/mips/mips.h (TUNE_I6400): Define.
319         * config/mips/mips.md: Include i6400.md.
320         (processor): Add i6400.
321         * doc/invoke.texi (-march=@var{arch}): Add i6400.
322
323 2015-07-23  Richard Biener  <rguenther@suse.de>
324
325         PR middle-end/66916
326         * match.pd: Guard widen and sign-change comparison simplification
327         with single_use.
328
329 2015-07-23  Richard Biener  <rguenther@suse.de>
330
331         PR tree-optimization/66945
332         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
333         ::before_dom_children): Force the propagators idea of
334         non-executable edges to materialize, not what the folder
335         chooses.
336
337 2015-07-23  Richard Biener  <rguenther@suse.de>
338
339         * gimple.h (gimple_cond_make_false): Use 0 != 0.
340         (gimple_cond_make_true): Use 1 != 0.
341
342 2015-07-22  DJ Delorie  <dj@redhat.com>
343
344         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
345         slashes.
346
347         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
348         (ashrhi3): Likewise.
349         (lshrhi3): Likewise.
350         (movhi): Take advantage of zero-extend to load small constants.
351         (movpsi): Likewise.
352         (and<mode>3): Likewise.
353         (zero_extendqihi2): Likewise.
354         (zero_extendqisi2): New.
355         * config/msp430/constraints.md (N,O): New.
356         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
357
358 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
359
360         PR target/66954
361         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
362         to enum feature_priority and feature_list.
363         (fold_builtin_cpu): Add F_AES to enum processor_features
364         and isa_names_table.
365
366 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
367
368         PR driver/66737
369         * config/i386/linux-common.h (MPX_SPEC): Use linker option
370         for 64bit target only.
371
372 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
373
374         * config/nvptx/nvptx.c: Expand some comments.
375
376 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
377
378         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
379         (cortex_a53_advsimd): ...This.
380
381 2015-07-22  Richard Biener  <rguenther@suse.de>
382
383         * genmatch.c (expr::gen_transform): Clarify error message
384         and display location.
385
386 2015-07-22  Richard Biener  <rguenther@suse.de>
387
388         * genmatch.c (struct operand): Add location member.
389         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
390         constructors.
391         (struct simplify): Remove match_location and result_location
392         members.
393         (elsehwere): Adjust.
394
395 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
396
397         * config/mips/m5100.md: New file.
398         * config/mips/mips-cpus.def (m5100, m5101): Define.
399         * config/mips/mips-tables.opt: Regenerate.
400         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
401         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
402         -march=m5101 to -mips32r5.
403         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
404         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
405         !-msoft-float.
406         * config/mips/mips.md: Include m5100.md.
407         (processor): Add m5100.
408         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
409
410 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
411
412         * config/mips/mips-cpus.def (interaptiv): Define.
413         * config/mips/mips-tables.opt: Regenerate.
414         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
415         -mips32r2.
416         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
417         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
418
419 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
420
421         PR target/63521
422         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
423         (HONOR_REG_ALLOC_ORDER): Define.
424
425 2015-07-22  Richard Biener  <rguenther@suse.de>
426
427         PR tree-optimization/66952
428         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
429         blocks we end up executing unconditionally reset all SSA
430         info such as range and alignment.
431         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
432         * tree-ssanames.c (reset_flow_sensitive_info): New function.
433
434 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
435
436         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
437         typo in attribute.
438
439 2015-07-22  Richard Biener  <rguenther@suse.de>
440
441         * genmatch.c (parser::parse_result): Properly handle
442         match with result operands and conditions.
443
444 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
445
446         PR target/63870
447         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
448         Add qualifier_struct_load_store_lane_index.
449         (aarch64_types_loadstruct_lane_qualifiers): Use
450         qualifier_struct_load_store_lane_index for lane index argument for
451         last argument.
452         (aarch64_types_storestruct_lane_qualifiers): Ditto.
453         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
454         (aarch64_simd_expand_args): Add new argument describing mode of
455         builtin. Check lane bounds for arguments with
456         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
457         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
458         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
459         (aarch64_simd_expand_builtin): Handle arguments with
460         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
461         aarch64_simd_expand_args.
462         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
463         vst[234]_lane with BUILTIN_VALLDIF.
464         * config/aarch64/aarch64-simd.md:
465         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
466         endianness reversal on lane index.
467         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
468         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
469         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
470         (vec_store_lanesci_lane<mode>): Ditto.
471         (vec_store_lanesxi_lane<mode>): Ditto.
472         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
473         reversal of lane index.
474         (aarch64_ld3_lane<mode>): Ditto.
475         (aarch64_ld4_lane<mode>): Ditto.
476         (aarch64_st2_lane<mode>): Ditto.
477         (aarch64_st3_lane<mode>): Ditto.
478         (aarch64_st4_lane<mode>): Ditto.
479         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
480         to qmode. Add new mode parameter. Update uses.
481         (__LD3_LANE_FUNC): Ditto.
482         (__LD4_LANE_FUNC): Ditto.
483         (__ST2_LANE_FUNC): Ditto.
484         (__ST3_LANE_FUNC): Ditto.
485         (__ST4_LANE_FUNC): Ditto.
486
487 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
488
489         * doc/invoke.texi (Language Independent Options): Rename node to
490         Diagnostic Message Formatting Options.
491
492 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
493
494         PR ipa/66424.
495         * lra-remat.c (operand_to_remat): Prevent using insns with input
496         subregs processed separately by IRA.
497
498 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
499
500         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
501         straight loops.
502         (single_imm_use): Check for iterator node.
503         (num_imm_uses): Likewise.
504         * tree-ssa-operands.c (has_zero_uses_1): Delete.
505         (single_imm_use_1): Check for iterator node.
506
507 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
508             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
509
510         * configure.ac: Add check for new options in isl-0.15.
511         * config.in, configure: Rebuilt.
512         * graphite-blocking.c: Include <isl/constraint.h>
513         * graphite-interchange.c,  graphite-poly.c: Likewise.
514         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
515         * graphite.c: Likewise.
516         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
517         <isl/union_set.h>.
518         * graphite-dependences.c: Include <isl/constraint.h>.
519         (max_number_of_out_dimensions): Returns isl_stat.
520         (extend_schedule_1): Likewise
521         (extend_schedule): Corresponding changes.
522         * graphite-optimize-isl.c: Include <isl/constraint.h> and
523         <isl/union_set.h>.
524         (getSingleMap): Change return type of isl_stat.
525         (optimize_isl): Conditionally use
526         isl_options_set_schedule_serialize_sccs.
527         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
528         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
529
530 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
531
532         PR target/66956
533         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
534         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
535
536 2015-07-21  Richard Biener  <rguenther@suse.de>
537
538         PR tree-optimization/66948
539         * genmatch.c (capture_info::walk_match): Also recurse to
540         captures.  Properly compute expr state from captures of
541         captures.
542         * match.pd: Add single-use guards to
543         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
544
545 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
546
547         * config/nvptx/mkoffload.c (process): Add static destructor call.
548
549 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
550
551         PR middle-end/66915
552         * match.pd (A - B -> A + (-B)): Don't allow folding
553         when type if a fixed-point type.
554
555 2015-07-20  DJ Delorie  <dj@redhat.com>
556
557         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
558         (iorqi3_real): Likewise for set1.
559
560 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
561
562         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
563         for !TARGET_64BIT.
564
565 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
566
567         * graphite-isl-ast-to-gimple.c:
568         Refactor so that each function can access 'region'. This will help
569         maintain a parameter rename_map within a region.
570
571 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
572
573         * config/rs6000/rs6000.md (*lt0_disi): New.
574
575 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
576
577         PR target/66217
578         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
579         "available letters" comment.
580         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
581         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
582         and_2rld_operand):  Delete.
583         (and_operand): Adjust.
584         (rotate_mask_operator): New.
585         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
586         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
587         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
588         extract_ME): Delete.
589         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
590         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
591         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
592         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
593         rs6000_emit_2insn_and): New.
594         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
595         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
596         includes_rldic_lshift_p, includes_rldicr_lshift_p,
597         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
598         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
599         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
600         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
601         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
602         rs6000_emit_2insn_and): New.
603         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
604         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
605         handling.
606         <NOT>: Don't fall through to next case.
607         <AND>: Handle the various rotate-and-mask cases directly.
608         <IOR>: Always cost as one insn.
609         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
610         (and<mode>3): Adjust expander for the new patterns.
611         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
612         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
613         (*and<mode>3_imm_dot_shifted): New.
614         (*and<mode>3_mask): Delete, rewrite as ...
615         (and<mode>3_mask): ... New.
616         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
617         (andsi3_internal0_nomc): Delete.
618         (*andsi3_internal6): Delete.
619         (*and<mode>3_2insn): New.
620         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
621         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
622         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
623         *insvdi_internal3): Delete.
624         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
625         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
626         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
627         *ior<mode>_mask): New.
628         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
629         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
630         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
631         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
632         Delete.
633         (ashr<mode>3): Delete expander.
634         (*ashr<mode>3): Rename to ...
635         (ashr<mode>3): ... This.
636         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
637         (*rotldi3_internal4, *rotldi3_internal5 and split,
638         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
639         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
640         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
641         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
642         (splitter for loading a mask): Adjust.
643         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
644
645 2015-07-20  Marek Polacek  <polacek@redhat.com>
646
647         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
648         output_add_clobbers, output_added_clobbers_hard_reg_p,
649         gen_rtx_scratch): Remove declarations.
650
651 2015-07-20  Marek Polacek  <polacek@redhat.com>
652
653         PR c++/55095
654         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
655
656 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
657
658         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
659         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
660
661 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
662
663         * combine.c (combine_simplify_rtx): Move simplification step
664         before various transformations/substitutions.
665
666 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
667
668         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
669         (struct int_traits): Likewise.
670
671 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
672
673         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
674         function to vmsdbgout_function_decl.
675
676 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
677
678         PR target/66922
679         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
680         from misaligned positions.
681         (ix86_expand_pinsr): Reject insertions to misaligned positions.
682
683 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
684
685         PR middle-end/46851
686         PR middle-end/60340
687         * Makefile.in: Removed omega.o.
688         * common.opt: Document flag fcheck-data-deps as deprecated.
689         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
690         its associated params: omega-max-vars, omega-max-geqs,
691         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
692         omega-max-keys, omega-eliminate-redundant-constraints.
693         * doc/loop.texi: Remove all the section on Omega.
694         * graphite-blocking.c: Include missing params.h: it used to be
695         included through tree-data-ref.h and omega.h.
696         * graphite-isl-ast-to-gimple.c: Same.
697         * graphite-optimize-isl.c: Same.
698         * graphite-sese-to-poly.c: Same.
699         * graphite.c: Same.
700         * omega.c: Remove.
701         * omega.h: Remove.
702         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
703         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
704         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
705         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
706         * passes.def: Remove pass_check_data_deps.
707         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
708         (dump_conflict_function): Same.
709         (dump_subscript): Same.
710         (print_direction_vector): Same.
711         (print_dir_vectors): Same.
712         (print_lambda_vector): Same.
713         (print_dist_vectors): Same.
714         (dump_data_dependence_relation): Same.
715         (dump_data_dependence_relations): Same.
716         (dump_dist_dir_vectors): Same.
717         (dump_ddrs): Same.
718         (init_omega_eq_with_af): Removed.
719         (omega_extract_distance_vectors): Removed.
720         (omega_setup_subscript): Removed.
721         (init_omega_for_ddr_1): Removed.
722         (init_omega_for_ddr): Removed.
723         (ddr_consistent_p): Removed.
724         (compute_affine_dependence): Do not use omega to check data
725         dependences.
726         (compute_data_dependences_for_bb): Removed.
727         (analyze_all_data_dependences): Removed.
728         (tree_check_data_deps): Removed.
729         * tree-data-ref.h: Do not include omega.h.
730         (compute_data_dependences_for_bb): Removed.
731         (tree_check_data_deps): Removed.
732         * tree-ssa-loop.c (pass_check_data_deps): Removed.
733         (make_pass_check_data_deps): Removed.
734         * tree-ssa-phiopt.c: Include params.h.
735         * tree-vect-data-refs.c: Same.
736         * tree-vect-slp.c: Same.
737
738 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
739
740         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
741         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
742         (mem->fpreg splitters): Ditto.
743         (general_operand->nonimmediate_operand splitter): Use explicit modes.
744         Disable DFmode for TARGET_64BIT.
745
746 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
747
748         PR target/66906
749         * config/i386/i386.c (ix86_expand_prologue): Replicate static
750         chain on the stack.
751
752 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
753
754         * config/nvptx/mkoffload.c (process): Constify host data.
755         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
756         Constify host data.
757         (generate_host_descr_file): Likewise.
758
759 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
760             Sebastian Pop  <s.pop@samsung.com>
761
762         PR middle-end/61929
763         * graphite-dependences.c (add_pdr_constraints): Renamed
764         pdr->extent to pdr->subscript_sizes.
765         * graphite-interchange.c (build_linearized_memory_access): Add
766         back all gcc_assert's that the "isl_int to isl_val conversion"
767         patch has removed.  Refactored.
768         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
769         * graphite-poly.c (new_poly_dr): Same.
770         (free_poly_dr): Same.
771         * graphite-poly.h (struct poly_dr): Same.
772         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
773         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
774         * graphite-scop-detection.h: Fix space.
775         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
776         back all gcc_assert's removed by a previous patch.
777         (wrap): Remove the_isl_ctx global variable that the same patch has
778         added.
779         (build_loop_iteration_domains): Same.
780         (add_param_constraints): Same.
781         (pdr_add_data_dimensions): Same.  Refactored.
782         (build_poly_dr): Renamed extent to subscript_sizes.
783
784 2015-07-17  Marek Polacek  <polacek@redhat.com>
785
786         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
787         * match.pd: ... here.
788
789 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
790
791         * config/nvptx/mkoffload.c (process): Constify target data.
792         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
793         Constify target data.
794         (generate_target_offloadend_file): Likewise.
795
796 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
797
798         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
799         to allow renaming of PHI arguments on edges incoming from outer
800         loop header, add corresponding check before start PHI iterator.
801         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
802         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
803         with true force_vectorize.  Set-up dominator for outer loop too.
804         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
805         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
806         was marked with force_vectorize and has restricted cfg.
807         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
808         inner loop.
809         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
810         do peeling for outer loops.
811
812 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
813             Matthias Klose  <doko@ubuntu.com>
814
815         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
816         build-sysroot, sysroot from the `Miscenalleous configure options' to
817         the `Directories' section and strip trailing `/' from with_sysroot.
818         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
819         * configure: Regenerated.
820
821 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
822
823         PR target/66824
824         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
825         (TARGET_HARD_DF_REGS): Ditto.
826         (TARGET_HARD_XF_REGS): Ditto.
827         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
828         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
829         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
830         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
831         (*movsf_internal): Add alternatives 16 and 17. Enable
832         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
833
834 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
835
836         PR rtl-optimization/66891
837         * calls.c (expand_call): Wrap precompute_register_parameters with
838         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
839
840 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
841
842         * config/nvptx/mkoffload.c (process): Constify mapping variables.
843         Define target data struct and initialize it.
844
845 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
846
847         PR rtl-optimization/66626
848         * ira.h (emit-rtl.h): Include.
849         (non_spilled_static_chain_regno_p): New.
850         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
851         unless it is non spilled static chain pseudo.
852         (assign_hard_rego): Spill memory profitable allocno unless it is
853         non spilled static chain pseudo.
854         (allocno_spill_priority_compare): Put non spilled static chain
855         pseudo at the end of sorted array.
856         (improve_allocation): Do nothing if we have static chain and
857         non-local goto.
858         (allocno__priority_compare_func): Put non spilled static chain
859         pseudo at the beginning of sorted array.
860         (move_spill_restore): Ignore non spilled static chain pseudo.
861         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
862         to non spilled static chain pseudo.
863         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
864         pseudo at the beginning of sorted array.
865         (spill_for): Spill non spilled static chain pseudo last.
866         * lra-constraints.c (lra_constraints): Remove static chain pseudo
867         check for equivalence.
868
869 2015-07-16  Martin Liska  <mliska@suse.cz>
870
871         PR ipa/66896.
872         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
873         dst_ctx if it does not exist.
874
875 2015-07-16  Martin Liska  <mliska@suse.cz>
876
877         * hash-set.h (remove): New function.
878         (iterator): New iteration class for hash_set.
879
880 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
881
882         * genattrtab.c (make_canonical): Add a file_location parameter.
883         Use fatal_at rather than fatal.
884         (get_attr_value): Likewise.  Update call to make_canonical.
885         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
886         (make_internal_attr): Update calls accordingly.
887
888 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
889
890         * read-md.h (message_with_line, error_with_line): Delete.
891         * read-md.c (message_with_line, error_with_line): Delete.
892         * gensupport.h: Include read-md.h.
893         (md_rtx_info): New structure.
894         (read_md_rtx): Use it.  Return a bool success value.
895         * gensupport.c (read_md_rtx): Likewise.
896         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
897         (main): Update after interface changes.
898         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
899         (main): Update after interface changes.
900         * genattrtab.c (insn_code_number): Delete.
901         (optimize_attrs): Add a max_insn_code parameter and use it instead
902         of insn_code_number.
903         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
904         Use *_at rather than *_with_line functions.
905         (gen_insn): Likewise.
906         (gen_delay): Likewise.
907         (gen_insn_reserv): Likewise.
908         (gen_bypass): Take an md_rtx_info rather than an rtx.
909         (main): Update after interface changes.  Use a local max_insn_code
910         variable instead of insn_code_number.
911         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
912         an rtx.  Use fatal_at rather than fatal.
913         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
914         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
915         (gen_absence_set, gen_final_absence_set, gen_automaton)
916         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
917         (main): Update after interface changes.
918         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
919         and code number.
920         (main): Update after interface changes.
921         * genconditions.c (main): Use new read_md_rtx interface.
922         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
923         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
924         (main): Update after interface changes.
925         * genemit.c (insn_code_number, insn_index_number): Delete.
926         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
927         Use fatal_at rather than fatal.
928         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
929         rather than fatal.
930         (gen_split): Likewise.
931         (main): Update after interface changes.
932         * genextract.c (line_no): Delete.
933         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
934         Update call to walk_rtx.
935         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
936         rather than message_with_line.
937         (walk_rtx): Add an md_rtx_info argument.  Update call to
938         VEC_safe_set_locstr.
939         (main): Update after interface changes.
940         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
941         and lineno.  Use error_at rather than separate message_with_line
942         calls and have_error assignments.
943         (main): Update after interface changes.
944         * genmddump.c (main): Use new read_md_rtx interface.
945         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
946         (main): Update after interface changes.
947         * genoutput.c (next_code_number): Delete.
948         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
949         (gen_peephole, gen_expand, gen_split): Likewise.
950         (note_constraint): Likewise.  Use *_at rather than *_with_line
951         functions.
952         (main): Update after interface changes.
953         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
954         rtx and lineno.
955         (main): Update after interface changes.
956         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
957         than an rtx and lineno.
958         (process_define_constraint): Likewise.
959         (process_define_register_constraint): Likewise.
960         (main): Update after interface changes.
961         * genrecog.c (next_insn_code, pattern_lineno): Delete.
962         (validate_pattern): Replace top-level rtx with an md_rtx_info.
963         Use *_at rather than *_with_line functions.
964         (match_pattern_2): Likewise.
965         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
966         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
967         Use *_at rather than *_with_line functions.
968         * gentarget-def.c (add_insn): New function.
969         (main): Use it.  Use new read_md_rtx interface.
970
971 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
972
973         * gensupport.h (compute_test_codes): Take a file_location rather
974         than a line number.
975         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
976         rather than *_with_line functions.
977         (process_define_predicate): Update call to compute_test_codes.
978         * genpreds.c (validate_exp): Take a file_location rather than a
979         line number.  Use *_at functions rather than *_with_line functions.
980         (process_define_predicate): Update call to validate_exp.
981         (constraint_data): Replace lineno field with a file_location.
982         (add_constraint): Take a file_location rather than a line number.
983         Use *_at functions rather than *_with_line functions.  Fix error
984         message for address constraints.  Update after changes to
985         validate_exp, constraint_data and compute_test_codes.
986         (process_define_constraint): Update accordingly.
987         (process_define_register_constraint): Likewise.
988
989 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
990
991         * genoutput.c (data): Use a file_location to record the source
992         position.
993         (nothing): Delete.
994         (idata, idata_end): Remove initialization.
995         (constraint_data): Replace lineno with a file_location.
996         (output_insn_data): Update after changes to data.
997         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
998         (scan_operands): Likewise, using *_at rather than *_with_line
999         functions.
1000         (process_template): Likewise.
1001         (validate_insn_alternatives): Likewise.
1002         (validate_insn_operands): Likewise.
1003         (validate_optab_operands): Likewise.
1004         (init_insn_for_nothing): Initialize idata and idata_end.
1005         (note_constraint): Update after changes to constraint_data,
1006         using at rather than with_line functions.
1007         (mdep_constraint_len): Take a file_location rather than a
1008         line number.  Use at rather than with_line functions.
1009
1010 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1011
1012         * read-md.h (fatal_at): Declare.
1013         * read-md.c (fatal_at): New function.
1014         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
1015         to record the source position.
1016         (check_attr_test): Take a file_location instead of a line number.
1017         Use fatal_at instead of fatal.
1018         (check_attr_value): Update after above changes, using "at"
1019         rather than "with_line" reporting functions.
1020         (convert_set_attr_alternative): Likewise.
1021         (gen_attr): Likewise.
1022         (check_defs): Likewise.  Don't assign to read_md_filename.
1023         (gen_insn): Update initialization after above changes.
1024         (gen_delay): Likewise.
1025         (write_insn_cases): Print the filename for a define_peephole.
1026         (gen_insn_reserv): Take a line number as argument and update
1027         the call to check_attr_test.
1028         (main): Pass a line number to gen_insn_reserv.
1029
1030 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1031
1032         * read-md.h (file_location): New structure.
1033         (directive_handler_t): Take a file_location rather than a line number.
1034         (message_at, error_at): Declare.
1035         (read_skip_construct): Delete.
1036         * read-md.c (message_with_line_1): Replace with...
1037         (message_at_1): ...this new function.
1038         (message_at, error_at): New functions.
1039         (message_with_line, error_with_line): Update to use message_at_1.
1040         (handle_enum): Take a file_location rather than a line number
1041         and use error_at for error reporting.
1042         (handle_include): Likewise.
1043         (read_skip_construct): Likewise.  Make static.
1044         (handle_file): Update after above changes.  Pass a file_location
1045         rather than a line number to handle_directive.
1046         * gensupport.c (queue_elem): Replace separate filename and lineno
1047         with a file_location.
1048         (queue_pattern): Replace filename and lineno arguments with a
1049         file_location.  Update after change to queue_elem.
1050         (process_define_predicate): Replace lineno argument with a
1051         file_location and use error_at for error reporting.  Update
1052         after above changes.
1053         (process_rtx): Likewise.
1054         (subst_pattern_match): Likewise.
1055         (get_alternatives_number): Likewise.
1056         (alter_predicate_for_insn): Likewise.
1057         (rtx_handle_directive): Likewise.
1058         (is_predicable): Update after above changes, using error_at rather
1059         than error_with_line.
1060         (has_subst_attribute): Likewise.
1061         (identify_predicable_attribute): Likewise.
1062         (alter_attrs_for_subst_insn): Likewise.
1063         (process_one_cond_exec): Likewise.
1064         (process_substs_on_one_elem): Likewise.
1065         (process_define_subst): Likewise.
1066         (check_define_attr_duplicates): Likewise.
1067         (read_md_rtx): Update after change to queue_elem.
1068
1069 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1070
1071         * genoutput.c (next_index_number): Delete.
1072         (data): Remove index_number.
1073         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1074         (main): Remove manipulation of next_index_number.
1075
1076 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1077
1078         * genattrtab.c (check_attr_value): Remove handling of null attrs.
1079         (make_canonical): Likewise.
1080
1081 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1082
1083         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1084         instead of adjust_address_nv.
1085         (restore_stack_nonlocal): Likewise.
1086         (nonlocal_goto): Likewise.
1087
1088 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1089
1090         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1091         not have a corresponding loop header phi.
1092
1093 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1094
1095         * tree-parloops.c (create_loads_for_reductions): Handle case that
1096         reduction is unused.
1097
1098 2015-07-16  Richard Biener  <rguenther@suse.de>
1099
1100         PR tree-optimization/66894
1101         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1102         about deriving NE_EXPR from truncated values.
1103
1104 2015-07-16  Martin Liska  <mliska@suse.cz>
1105
1106         * alloc-pool.h
1107         (object_allocator): Add new class.
1108         (pool_allocator::initialize): Use the underlying class.
1109         (pool_allocator::allocate): Likewise.
1110         (pool_allocator::remove): Likewise.
1111         (operator new): A new generic allocator.
1112         * asan.c (struct asan_mem_ref): Remove unused members.
1113         (asan_mem_ref_new): Replace new operator with
1114         object_allocator::allocate.
1115         (free_mem_ref_resources): Change deallocation.
1116         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1117         with object_allocator.
1118         * config/sh/sh.c (add_constant): Replace new operator with
1119         object_allocator::allocate.
1120         (sh_reorg): Change call to a release method.
1121         * cselib.c (struct elt_list): Remove unused members.
1122         (new_elt_list): Replace new operator with
1123         object_allocator::allocate.
1124         (new_elt_loc_list): Likewise.
1125         (new_cselib_val): Likewise.
1126         (unchain_one_elt_list): Change delete operator with remove method.
1127         (unchain_one_elt_loc_list): Likewise.
1128         (unchain_one_value): Likewise.
1129         (cselib_finish): Release newly added static allocators.
1130         * cselib.h (struct cselib_val): Remove unused members.
1131         (struct elt_loc_list): Likewise.
1132         * df-problems.c (df_chain_alloc): Replace pool_allocator with
1133         object_allocator.
1134         * df-scan.c (struct df_scan_problem_data): Likewise.
1135         (df_scan_alloc): Likewise.
1136         * df.h (struct dataflow): Likewise.
1137         * dse.c (struct read_info_type): Likewise.
1138         (struct insn_info_type): Likewise.
1139         (struct dse_bb_info_type): Likewise.
1140         (struct group_info): Likewise.
1141         (struct deferred_change): Likewise.
1142         (get_group_info): Likewise.
1143         (delete_dead_store_insn): Likewise.
1144         (free_read_records): Likewise.
1145         (replace_read): Likewise.
1146         (check_mem_read_rtx): Likewise.
1147         (scan_insn): Likewise.
1148         (dse_step1): Likewise.
1149         (dse_step7): Likewise.
1150         * et-forest.c (struct et_occ): Remove unused members.
1151         (et_new_occ): Use allocate instead of new operator.
1152         (et_new_tree): Likewise.
1153         (et_free_tree): Call release method explicitly.
1154         (et_free_tree_force): Likewise.
1155         (et_free_pools): Likewise.
1156         (et_split): Use remove instead of delete operator.
1157         * et-forest.h (struct et_node): Remove unused members.
1158         * ipa-cp.c: Change pool_allocator to object_allocator.
1159         * ipa-inline-analysis.c: Likewise.
1160         * ipa-profile.c: Likewise.
1161         * ipa-prop.c: Likewise.
1162         * ipa-prop.h: Likewise.
1163         * ira-build.c (initiate_cost_vectors): Cast return value.
1164         (ira_allocate_cost_vector): Likewise.
1165         * ira-color.c (struct update_cost_record): Remove unused members.
1166         * lra-int.h (struct lra_live_range): Likewise.
1167         (struct lra_copy): Likewise.
1168         (struct lra_insn_reg): Likewise.
1169         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1170         * lra.c (new_insn_reg): Replace new operator with allocate method.
1171         (free_insn_regs): Same for operator delete.
1172         (finish_insn_regs): Release new static allocator.
1173         (finish_insn_recog_data): Likewise.
1174         (lra_free_copies): Replace delete operator with remove method.
1175         (lra_create_copy): Replace operator new with allocate method.
1176         (invalidate_insn_data_regno_info): Same for remove method.
1177         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1178         (free_debug_insn_changes): Replace delete operator with remove method.
1179         (replace_oldest_value_reg): Replace operator new with allocate method.
1180         (pass_cprop_hardreg::execute): Release new static variable.
1181         * sched-deps.c (sched_deps_init): Change pool_allocator to
1182         object_allocator.
1183         * sel-sched-ir.c: Likewise.
1184         * sel-sched-ir.h: Likewise.
1185         * stmt.c (expand_case): Likewise.
1186         (expand_sjlj_dispatch_table): Likewise.
1187         * tree-sra.c (struct access): Remove unused members.
1188         (struct assign_link): Likewise.
1189         (sra_deinitialize): Release newly added static pools.
1190         (create_access_1):Replace operator new with allocate method.
1191         (build_accesses_from_assign): Likewise.
1192         (create_artificial_child_access): Likewise.
1193         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1194         pool_allocator to object_allocator.
1195         * tree-ssa-pre.c: Likewise.
1196         * tree-ssa-reassoc.c: Likewise.
1197         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1198         * tree-ssa-strlen.c: Likewise.
1199         * tree-ssa-structalias.c: Likewise.
1200         * var-tracking.c (onepart_pool_allocate): New function.
1201         (unshare_variable): Use the newly added function.
1202         (variable_merge_over_cur): Likewise.
1203         (variable_from_dropped): Likewise.
1204         (variable_was_changed): Likewise.
1205         (set_slot_part): Likewise.
1206         (emit_notes_for_differences_1): Likewise.
1207         (vt_finalize): Release newly added static pools.
1208
1209 2015-07-16  Martin Jambor  <mjambor@suse.cz>
1210
1211         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
1212         all uses.  Fix two typos in its general comment.
1213         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
1214
1215 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
1216
1217         * config/i386/linux-common.h (LINK_MPX): New.
1218         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1219         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1220         indicating '-z bndplt' support by linker.
1221         * configure: Regenerate.
1222         * config.in: Regenerate.
1223
1224 2015-07-16  Richard Biener  <rguenther@suse.de>
1225
1226         * fold-const.c (fold_widened_comparison): Remove.
1227         (fold_sign_changed_comparison): Likewise.
1228         (fold_comparison): Move widened and sign-changed comparison
1229         simplification ...
1230         * match.pd: ... to patterns here.
1231         * generic-match-head.c: Include target.h.
1232         * gimple-match-head.c: Likewise.
1233
1234 2015-07-16  Richard Biener  <rguenther@suse.de>
1235
1236         * tree-ssa-dom.c (dom_valueize): New function.
1237         (record_temporary_equivalences): Also record equivalences
1238         for dominating stmts that have uses of equivalences we are
1239         about to record.
1240
1241 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
1242
1243         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1244         add_autoinc_candidates.
1245         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1246         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1247         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1248         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1249         Call new function.
1250         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1251         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1252         Remove parameter struct iv*.  Call add_autoinc_candidates here.
1253         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1254         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1255         Call new function.
1256         (find_iv_candidates): Call new functions.
1257
1258 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1259
1260         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1261         uninitialized-variable warning.
1262
1263 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1264
1265         PR target/65249
1266         * config/sh/sh.md (movdi): Split simple reg move to two movsi
1267         when the destination is R0.
1268
1269 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
1270
1271         PR target/66866
1272         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1273         * config/i386/i386.c (ix86_expand_pextr): New function.
1274         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
1275         for non-lowpart subregs.
1276         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1277         (insv<mode>): Use SWI248 mode iterator.
1278         (insv<mode>_1): Ditto.
1279
1280 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1281             Sebastian Pop  <s.pop@samsung.com>
1282
1283         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1284         iterator to use_stmt.
1285
1286 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1287             Sebastian Pop <s.pop@samsung.com>
1288
1289         * graphite-scop-detection.c (build_scops_1): Discard scops for
1290         which entry==exit.
1291
1292 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1293             Sebastian Pop <s.pop@samsung.com>
1294
1295         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1296         case of a return statement in scop.
1297
1298 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1299             Sebastian Pop <s.pop@samsung.com>
1300
1301         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1302         INTEGER_TYPE parameters.
1303         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1304         VECTOR_CST in scan_tree_for_params.
1305         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1306
1307 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1308
1309         * gimple-pretty-print.h: Don't include pretty-print.h.
1310         * tree-streamer.h: Don't include lto-streamer.h.
1311         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1312         * gimple-streamer-in.c: Remove redundant includes.
1313         * gimple-streamer-out.c: Likewise.
1314         * ipa-devirt.c: Likewise.
1315         * ipa-icf.c: Likewise.
1316         * ipa-inline-analysis.c: Likewise.
1317         * ipa-polymorphic-call.c: Likewise.
1318         * ipa-profile.c: Likewise.
1319         * ipa-prop.c: Likewise.
1320         * ipa-pure-const.c: Likewise.
1321         * lto-cgraph.c: Likewise.
1322         * lto-streamer-in.c: Likewise.
1323         * lto-streamer-out.c: Likewise.
1324         * lto-streamer.c: Likewise.
1325         * tree-streamer-in.c: Likewise.
1326         * tree-streamer-out.c: Likewise.
1327         * tree-streamer.c: Likewise.
1328
1329 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1330
1331         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1332         include input.h.
1333         * opts.c: Remove multiline #include comment.
1334
1335 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
1336
1337         * config/nvptx/mkoffload.c (process): Add C++ protection to
1338         emitted code.
1339
1340 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1341
1342         PR target/66854
1343         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1344         null before IEEE 128-bit floating point support patch.
1345
1346 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1347
1348         * simplify-rtx.c (simplify_ternary_operation): Add simplification
1349         for (!c) != {0,...,0} ? a : b for vector modes.
1350
1351 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
1352             Martin Jambor  <mjambor@suse.cz>
1353
1354         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1355         struct func_body_info* instead of struct ipa_node_params*, expecting
1356         fbi->info to be filled in.  Replace throughout.  Adjust call to
1357         ipa_load_from_parm_agg.
1358         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1359         instead of struct ipa_node_params*.  Adjust calls to other functions
1360         so that they pass either fbi or fbi->info.
1361         (set_switch_stmt_execution_predicate): Likewise.
1362         (will_be_nonconstant_predicate): Likewise.
1363         (compute_bb_predicates): Likewise.
1364         (estimate_function_body_sizes): Move asserts earlier.  Fill in
1365         struct func_body_info, replace parms_info with fbi.info.  Adjust
1366         calls to functions that now accept struct func_body_info.
1367         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1368         (struct func_body_info): Likewise.
1369         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1370         remove static.  Adjust callers.
1371         (ipa_load_from_parm_agg): Remove.
1372         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1373         (func_body_info): Likewise.
1374         (ipa_load_from_parm_agg): Adjust prototype.
1375
1376 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1377
1378         * gensupport.c (rtx_handle_directive): Adjust.
1379         * read-rtl.c (apply_iterators): Take vector to add rtxs to
1380         instead of expr list rtx.
1381         (add_define_attr_for_define_subst): Likewise.
1382         (add_define_subst_attr): Likewise.
1383         (read_subst_mapping): Likewise.
1384         (read_rtx): Likewise.
1385         * rtl.h (read_rtx): Adjust.
1386
1387 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1388
1389         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1390
1391 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1392
1393         PR target/58066
1394         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1395         (*tls_local_dynamic_base_64_<mode>): Ditto.
1396         (*tls_local_dynamic_base_64_largepic): Ditto.
1397         (tls_global_dynamic_64_<mode>): Update expander pattern.
1398         (tls_local_dynamic_base_64_<mode>): Ditto.
1399
1400 2015-07-15  Richard Biener  <rguenther@suse.de>
1401
1402         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1403         and bool_var == 1 -> bool_var simplifications ...
1404         * match.pd: ... to patterns here.  Factor out negate_expr_p
1405         cases from the A - B -> A + (-B) patterns as negate_expr_p
1406         predicate and add a -(A + B) -> (-B) - A pattern.
1407
1408 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
1409
1410         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1411
1412 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
1413             Robert Suchanek  <robert.suchanek@imgtec.com>
1414
1415         * config/mips/mips.c (mips_int_mask): New enum.
1416         (mips_shadow_set): Likewise.
1417         (int_mask): New variable.
1418         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1419         (machine_function): Add int_mask and use_shadow_register_set.
1420         (mips_attribute_table): Add attribute handlers for interrupt and
1421         use_shadow_register_set.
1422         (mips_interrupt_mask): New static function.
1423         (mips_handle_interrupt_attr): Likewise.
1424         (mips_handle_use_shadow_register_set_attr): Likewise.
1425         (mips_use_shadow_register_set): Change return type to enum
1426         mips_shadow_set.  Add argument handling for use_shadow_register_set
1427         attribute.
1428         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1429         compare with mips_shadow_set enum.
1430         (mips_compute_frame_info): Add interrupt mask and
1431         use_shadow_register_set to per-function information structure.
1432         Add a stack slot for EPC unconditionally.
1433         (mips_expand_prologue): Compare use_shadow_register_set value
1434         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
1435         masked interrupt register but in EIC mode use K0 and save Cause in K0.
1436         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
1437         copying the stack pointer from the shadow register set.
1438         * config/mips/mips.h (SR_IM0): New define.
1439         * config/mips/mips.md (mips_rdpgpr): Rename to...
1440         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
1441         * doc/extend.texi (Declaring Attributes of Functions): Document
1442         optional arguments for interrupt and use_shadow_register_set
1443         attributes.
1444
1445 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
1446
1447         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1448         interrupt attribute.
1449         (mips_expand_prologue): Disable the floating point unit in an ISR.
1450         * config/mips/mips.h (SR_COP1): New define.
1451
1452 2015-07-15  Richard Biener  <rguenther@suse.de>
1453
1454         * genmatch.c (parser::peek, parser::peek_ident): Add argument
1455         to tell how many tokens to peek ahead (default 1).
1456         (parser::eat_token, parser::eat_ident): Return token consumed.
1457         (parser::parse_result): Parse new switch statement.
1458         * match.pd: Use case statements where appropriate.
1459
1460 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1461
1462         PR rtl-optimization/58066
1463         * calls.c (expand_call): Precompute register parameters before stack
1464         alignment is performed.
1465
1466 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1467
1468         PR rtl-optimization/66838
1469         * postreload.c (reload_cse_move2add): Also process
1470         CALL_INSN_FUNCTION_USAGE when resetting information of
1471         call-clobbered registers.
1472
1473 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1474             Cesar Philippidis  <cesar@codesourcery.com>
1475             Chung-Lin Tang  <cltang@codesourcery.com>
1476
1477         * config/nios2/constraints.md (U, v): New constraints.
1478         * config/nios2/predicates.md (rdprs_dcache_operand): New.
1479         (ldstex_memory_operand): New.
1480         * config/nios2/sync.md: New file.
1481         * config/nios2/nios2.md (unspecv): Add new builtin function
1482         UNSPECV codes.
1483         (rdprs, flushd, flushda, wrpie, eni): New patterns.
1484         (top-level): Include sync.md.
1485         * config/nios2/nios2.c (N2_FTYPES): Add function types for
1486         new builtins.
1487         (N2_BUILTINS): Add arch field setting, add new builtins.
1488         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1489         for arch field.
1490         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1491         Also handle ldex/stex/ldsex/stsex builtins.
1492         (nios2_expand_rdprs_builtin): New function.
1493         (nios2_expand_cache_builtin): New function.
1494         (nios2_expand_wrpie_builtin): New function.
1495         (nios2_expand_eni_builtin): New function.
1496         (nios2_expand_builtin): Add arch field handling and new builtin
1497         cases.
1498         * doc/extend.texi (Altera Nios II Built-in Functions): Document
1499         new builtins.
1500         * doc/md.texi (Machine Constraints): Document U and v constraints.
1501
1502 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1503             Cesar Philippidis  <cesar@codesourcery.com>
1504             Chung-Lin Tang  <cltang@codesourcery.com>
1505
1506         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1507         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1508         callee_save_reg_size and uses_anonymous_args fields.
1509         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1510         (nios2_create_cfa_notes): New function.
1511         (nios2_adjust_stack): New function for adjusting stack.
1512         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1513         Use nios2_adjust_stack.
1514         (nios2_expand_epilogue): Likewise.
1515         (nios2_expand_return): New function.
1516         (nios2_can_use_return_insn): Update for CDX pop.n usage.
1517         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1518         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1519         * config/nios2/nios2.md (return): Use nios2_expand_return.
1520
1521 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1522             Cesar Philippidis  <cesar@codesourcery.com>
1523             Chung-Lin Tang  <cltang@codesourcery.com>
1524
1525         * config/nios2/predicates.md (pop_operation): New.
1526         (ldwm_operation, stwm_operation): New.
1527         (nios2_hard_register_operand): New.
1528         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1529         (ldstwm_operation_p): Declare.
1530         (gen_ldstwm_peep): Declare.
1531         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1532         (base_reg_adjustment_p): New.
1533         (pop_operation_p): New.
1534         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1535         (nios2_ldstwm_regset_p): New.
1536         (ldstwm_operation_p): New.
1537         (gen_ldst): New.
1538         (nios2_ldst_parallel): New.
1539         (struct ldswm_operand): Declare.
1540         (compare_ldstwm_operands): New.
1541         (can_use_cdx_ldstw): New.
1542         (gen_ldstwm_peep): New.
1543         * config/nios2/nios2-ldstwm.sml: New.
1544         * config/nios2/nios2.md: Include ldstwm.md.
1545         * config/nios2/ldstwm.md: Generated.
1546
1547 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1548             Cesar Philippidis  <cesar@codesourcery.com>
1549             Chung-Lin Tang  <cltang@codesourcery.com>
1550
1551         * config/nios2/nios2.h (LABEL_ALIGN): Define.
1552         (REG_ALLOC_ORDER): Define.
1553         (ADJUST_REG_ALLOC_ORDER): Define.
1554         (HONOR_REG_ALLOC_ORDER): Define.
1555         (CDX_REG_P): Define.
1556         (ANDCLEAR_INT): Define.
1557         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1558         (nios2_label_align): Declare.
1559         (nios2_cdx_narrow_form_p): Declare.
1560         (nios2_adjust_reg_alloc_order): Declare.
1561         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1562         operation.
1563         (nios2_large_unspec_reloc_p): New function, split from...
1564         (nios2_legitimate_pic_operand_p): ...here.
1565         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1566         (nios2_print_operand_punct_valid_p): New.
1567         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
1568         (split_mem_address): New.
1569         (split_alu_insn): New.
1570         (cdxreg): New.
1571         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1572         (enum nios2_add_insn_kind): New.
1573         (nios2_add_insn_names, nios2_add_insn_narrow): New.
1574         (nios2_add_insn_classify): New.
1575         (nios2_add_insn_asm): New.
1576         (nios2_cdx_narrow_form_p): New.
1577         (label_align, min_labelno, max_labelno): New.
1578         (nios2_reorg): New.
1579         (nios2_label_align): New.
1580         (nios2_adjust_reg_alloc_order): New.
1581         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1582         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1583         * config/nios2/constraints.md (P): New constraint.
1584         * config/nios2/predicates.md (const_and_operand): New.
1585         (and_operand): New.
1586         (stack_memory_operand): New.
1587         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1588         (length): Update to use nios2_cdx_narrow_form_p().
1589         (type): Add new insn type values.
1590         (control, alu, st, ld, shift): Update insn reservations with
1591         new insn type values.
1592         (*high, *lo_sum): Define new insn patterns for constant generation.
1593         (movqi_internal, movhi_internal, movsi_internal): Reduce
1594         alternatives, update asm template to handle CDX variants, update
1595         type attributes.
1596         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1597         template, update type attributes.
1598         (extendhisi2, extendqi<mode>2): Likewise.
1599         (addsi3): Change to use function for asm string.
1600         (subsi3): Add CDX notation to asm template, update type attributes.
1601         (negsi3, one_cmplsi3): Likewise.
1602         (andsi3): New pattern, specialized from logical patterns.
1603         (<code>si3): Remove and case, combine alternatives, update asm
1604         template.
1605         (<shift_op>si3): Add CDX notation, update type attributes.
1606         (rotrsi3): Update type attribute.
1607         (*merge, extzv, insv): New insn patterns.
1608         (return): Change to define_expand.
1609         (simple_return): Add CDX notation, update type attributes.
1610         (indirect_jump): Add CDX notation.
1611         (jump): Update asm cases, update length attribute expression.
1612         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1613         (nios2_cbranch): Update asm cases and length attribute expression
1614         to handle CDX variants.
1615         (nios2_cmp<code>): Update asm template.
1616         (nop): Add CDX notation, update type attributes.
1617         (trap): Add CDX notation.
1618         (ctrapsi4): Update asm cases and length attribute expression to
1619         handle CDX variant.
1620         * doc/md.texi (Machine Constraints): Document P constraint.
1621
1622 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1623             Cesar Philippidis  <cesar@codesourcery.com>
1624             Chung-Lin Tang  <cltang@codesourcery.com>
1625
1626         * config/nios2/nios2.h (SMALL_INT12): New macro.
1627         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1628         (nios2_valid_addr_expr_p): Use it.
1629         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1630         with implicit "io" instructions on R2.
1631         * config/nios2/constraints.md (w): New constraint.
1632         * config/nios2/predicates.md (ldstio_memory_operand): New.
1633         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1634         operand predicate and constraint.
1635         (ld<bh>io_signed, st<bhw>io>): Likewise.
1636         * doc/md.texi (Machine Constraints): Document w constraint.
1637
1638 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1639             Cesar Philippidis  <cesar@codesourcery.com>
1640             Chung-Lin Tang  <cltang@codesourcery.com>
1641
1642         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1643         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1644         Nios II architecture level.
1645         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1646         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1647         (OPTION_DEFAULT_SPECS): Define.
1648         (ASM_SPEC): Add -march= spec strings.
1649         * config/nios2/nios2.c (nios2_option_override): Check for
1650         conflicts involving new options.
1651         * config.gcc (nios2*-*-*): Support --with-arch=.
1652         * doc/invoke.texi (Option Summary, Nios II Options): Document
1653         -march=, -mbmx, and -mcdx.
1654
1655 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
1656
1657         PR rtl-optimization/66626
1658         * lra-constraints.c (lra_constraints): Prevent equivalence
1659         substitution for static chain pseudo in functions with nonlocal
1660         goto.
1661
1662 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1663
1664         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1665         (nios2_emit_stack_limit_check): Add size parameter.  Handle
1666         -fstack-limit-symbol as well as -fstack-limit-register.
1667         (nios2_expand_prologue): Emit only a single stack limit check,
1668         even if multiple stack adjustments are required.
1669         (nios2_option_override): Diagnose unsupported combination of -fpic
1670         and -stack-limit-symbol.
1671
1672 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
1673
1674         * Makefile.in (top_srcdir): New.
1675         * configure.ac: Use AM_ZLIB.
1676         * configure: Regeneated.
1677
1678 2015-07-14  Matthias Klose  <doko@ubuntu.com>
1679
1680         PR target/66840
1681         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1682
1683 2015-07-14  Richard Biener  <rguenther@suse.de>
1684
1685         PR tree-optimization/66863
1686         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1687         what we record for conversion use stmt lhs inequalities.
1688
1689 2015-07-14  Richard Biener  <rguenther@suse.de>
1690
1691         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1692         (decision_tree::gen_gimple): Likewise.
1693
1694 2015-07-14  Tom de Vries  <tom@codesourcery.com>
1695
1696         * gcc.c (greater_than_spec_func): Declare forward.
1697         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1698         -ftree-parallelize-loops={0,1}.
1699         (static_spec_functions): Add greater_than_spec_func function with name
1700         "gt".
1701         (greater_than_spec_func): New function.
1702
1703 2015-07-14  Richard Biener  <rguenther@suse.de>
1704
1705         * tree-ssa-dom.c (record_temporary_equivalences): Merge
1706         wideing type conversion case from record_equivalences_from_incoming_edge
1707         and use record_equality to record equivalences.
1708         (record_equivalences_from_incoming_edge): Call
1709         record_temporary_equivalences.
1710
1711 2015-07-14  Richard Biener  <rguenther@suse.de>
1712
1713         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1714         (struct if_expr): New.
1715         (struct with_expr): Likewise.
1716         (is_a_helper): Add helpers for if_expr and with_expr.
1717         (struct simplify): Add simplify_kind enum and member.  Remove
1718         ifexpr_vec member.
1719         (simplify::simplify): Adjust.
1720         (lower_commutative): Adjust.
1721         (lower_opt_convert): Likewise.
1722         (lower_cond): Likewise.
1723         (replace_id): Handle with_expr and if_expr.
1724         (lower_for): Adjust.
1725         (dt_simplify::gen_1): New recursive worker, split out from ...
1726         (dt_simplify::gen): ... here.  Deal with if and with expansion
1727         recursively.
1728         (capture_info::capture_info): Take context argument
1729         (capture_info::walk_result): Only analyze specific result.
1730         (parser::parse_result): New function.
1731         (parser::parse_simplify): Adjust to parse ifs with then end
1732         else case.
1733         (parser::parse_if): Simplify.
1734         (parser::parse_pattern): Pass down simplify kind.
1735         * match.pd: Convert if structure to new syntax.
1736
1737 2015-07-13  Marek Polacek  <polacek@redhat.com>
1738
1739         * rtl.c (rtx_equal_p_cb): Fix typo.
1740
1741 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
1742
1743         * omega.h: Don't include config.h, don't include params.h again if
1744         omega.h has already been included.
1745         * graphite-poly.h: Include sese.h.
1746         * graphite.c: Don't include sese.h, remove needless includes and
1747         minimize includes outside #ifdef HAVE_isl block.
1748         * graphite-blocking.c: Don't include sese.h, remove needless includes,
1749         and wrap entire file in #ifdef HAVE_isl
1750         * graphite-dependences.c: Likewise.
1751         * graphite-interchange.c: Likewise.
1752         * graphite-isl-ast-to-gimple.c: Likewise.
1753         * graphite-optimize-isl.c: Likewise.
1754         * graphite-poly.c: Likewise.
1755         * graphite-scop-detection.c: Likewise.
1756         * graphite-sese-to-poly.c: Likewise.
1757
1758 2015-07-13  Tom de Vries  <tom@codesourcery.com>
1759
1760         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1761
1762 2015-07-13  Renlin Li  <renlin.li@arm.com>
1763
1764         PR rtl/66556
1765         * simplify-rtx.c (simplify_const_relational_operation): Add
1766         side_effects_p checks.
1767
1768 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
1769
1770         * bitmap.h: Fix double word typos.
1771         * builtins.c: Same.
1772         * calls.c: Same.
1773         * cfgloopmanip.c: Same.
1774         * cgraph.c: Same.
1775         * cgraph.h: Same.
1776         * cgraphclones.c: Same.
1777         * combine.c: Same.
1778         * config/aarch64/aarch64-protos.h: Same.
1779         * config/aarch64/aarch64.c: Same.
1780         * config/aarch64/aarch64.md: Same.
1781         * config/arm/arm.md: Same.
1782         * config/arm/arm1020e.md: Same.
1783         * config/arm/arm1026ejs.md: Same.
1784         * config/arm/arm926ejs.md: Same.
1785         * config/arm/fa526.md: Same.
1786         * config/arm/fa606te.md: Same.
1787         * config/arm/fa626te.md: Same.
1788         * config/arm/fa726te.md: Same.
1789         * config/arm/fmp626.md: Same.
1790         * config/darwin.c: Same.
1791         * config/epiphany/epiphany.c: Same.
1792         * config/frv/frv.c: Same.
1793         * config/ft32/ft32.c: Same.
1794         * config/gnu-user.h: Same.
1795         * config/h8300/constraints.md: Same.
1796         * config/i386/i386.c: Same.
1797         * config/i386/i386.md: Same.
1798         * config/iq2000/iq2000.md: Same.
1799         * config/mips/mips.c: Same.
1800         * config/mmix/mmix.md: Same.
1801         * config/moxie/moxie.c: Same.
1802         * config/nds32/nds32.md: Same.
1803         * config/pa/pa.h: Same.
1804         * config/rs6000/aix.h: Same.
1805         * config/rs6000/rs6000.h: Same.
1806         * config/sh/sh.c: Same.
1807         * config/tilegx/tilegx.md: Same.
1808         * config/tilepro/gen-mul-tables.cc: Same.
1809         * cse.c: Same.
1810         * dbxout.c: Same.
1811         * doc/invoke.texi: Same.
1812         * dse.c: Same.
1813         * dwarf2out.c: Same.
1814         * final.c: Same.
1815         * gcc.c: Same.
1816         * genmatch.c: Same.
1817         * gimplify.c: Same.
1818         * hash-table.h: Same.
1819         * internal-fn.c: Same.
1820         * ipa-cp.c: Same.
1821         * ipa-devirt.c: Same.
1822         * ipa-icf.c: Same.
1823         * ipa-icf.h: Same.
1824         * ipa-profile.c: Same.
1825         * ipa-prop.c: Same.
1826         * ipa-prop.h: Same.
1827         * ira.c: Same.
1828         * omp-low.c: Same.
1829         * reg-stack.c: Same.
1830         * regcprop.c: Same.
1831         * reorg.c: Same.
1832         * rtl.h: Same.
1833         * sbitmap.h: Same.
1834         * tree-eh.c: Same.
1835         * tree-inline.c: Same.
1836         * tree-sra.c: Same.
1837         * tree-ssa-dom.c: Same.
1838         * tree-ssa-loop-ivopts.c: Same.
1839         * tree-ssa-structalias.c: Same.
1840         * tree-ssa-tail-merge.c: Same.
1841         * tree-ssa-ter.c: Same.
1842         * tree-ssa-threadupdate.c: Same.
1843         * tree-ssa-uninit.c: Same.
1844         * tree-ssanames.c: Same.
1845         * tree-vect-loop-manip.c: Same.
1846         * tree-vrp.c: Same.
1847         * tree.c: Same.
1848         * valtrack.c: Same.
1849         * vec.h: Same.
1850
1851 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1852
1853         PR middle-end/66726
1854         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1855         tree_ssa_phiopt_worker): Call it.
1856
1857 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1858
1859         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1860         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1861         REG_EQUAL note.
1862
1863 2015-07-11  Marek Polacek  <polacek@redhat.com>
1864
1865         PR middle-end/66353
1866         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1867         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1868         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1869         rather than bb_has_abnormal_call_pred.
1870         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1871         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1872         rather than bb_has_abnormal_call_pred.
1873
1874 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
1875
1876         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1877         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1878         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1879         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1880         v850_legitimate_address_p): New functions.
1881         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1882
1883 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1884
1885         PR target/66819
1886         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1887         indirect sibcall with register arguments if register available
1888         for argument passing.
1889         (init_cumulative_args): Set cfun->machine->arg_reg_available
1890         to (cum->nregs > 0) or to true if function has a variable
1891         argument list.
1892         (function_arg_advance_32): Set cfun->machine->arg_reg_available
1893         to false if cum->nregs <= 0.
1894         * config/i386/i386.h (machine_function): Add arg_reg_available.
1895
1896 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
1897
1898         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1899         and gen_higpart instead of gen_rtx_SUBREG.
1900         * config/i386/i386.md
1901         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1902         (read-modify peephole2): Use gen_lowpart instead of
1903         gen_rtx_SUBREG for operand 5.
1904
1905 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1906
1907         * config/tilepro/gen-mul-tables.cc (main): Change include list for
1908         generated files.
1909         * config/tilepro/mul-tables.c: Regenerate.
1910         * config/tilegx/mul-tables.c: Regenerate.
1911
1912 2015-07-10  Richard Biener  <rguenther@suse.de>
1913
1914         * fold-const.c (distribute_bit_expr): Remove.
1915         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1916         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1917         to A & (B | C) and simplifying A << C1 << C2 to ...
1918         * match.pd: ... patterns here.
1919
1920 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
1921
1922         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1923         Mark mem as READONLY and NOTRAP for PIC symbol.
1924
1925 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1926
1927         * gimple-predict.h: New file.
1928         (gimple_predict_predictor, gimple_predict_set_predictor,
1929         gimple_predict_outcome, gimple_predict_set_outcome,
1930         gimple_build_predict): Relocate here.
1931         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1932         gimple_predict_outcome, gimple_predict_set_outcome): Move to
1933         gimple-predict.h.
1934         * gimple.c (gimple_build_predict): Move to gimple-predict.h
1935         * basic-block.h: Don't include cfghooks.h.
1936         * backend.h: Don't include predict.h.
1937         * cfghooks.h: Include predict.h.
1938         * gimple-pretty-print.c: Include gimple-predict.h.
1939         * gimplify.c: Likwise.
1940         * predict.c: Adjust includes.
1941         * tree-inline.c: Likewise.
1942         * asan.c: Likewise.
1943         * auto-inc-dec.c: Likewise.
1944         * auto-profile.c: Likewise.
1945         * bb-reorder.c: Likewise.
1946         * builtins.c: Likewise.
1947         * caller-save.c: Likewise.
1948         * calls.c: Likewise.
1949         * cfganal.c: Likewise.
1950         * cfgbuild.c: Likewise.
1951         * cfg.c: Likewise.
1952         * cfgcleanup.c: Likewise.
1953         * cfgexpand.c: Likewise.
1954         * cfghooks.c: Likewise.
1955         * cfgloopanal.c: Likewise.
1956         * cfgloop.c: Likewise.
1957         * cfgloopmanip.c: Likewise.
1958         * cfgrtl.c: Likewise.
1959         * cgraph.c: Likewise.
1960         * cgraphunit.c: Likewise.
1961         * combine.c: Likewise.
1962         * cprop.c: Likewise.
1963         * cse.c: Likewise.
1964         * dce.c: Likewise.
1965         * dojump.c: Likewise.
1966         * dse.c: Likewise.
1967         * except.c: Likewise.
1968         * expmed.c: Likewise.
1969         * expr.c: Likewise.
1970         * final.c: Likewise.
1971         * fold-const.c: Likewise.
1972         * function.c: Likewise.
1973         * fwprop.c: Likewise.
1974         * gcc-plugin.h: Likewise.
1975         * gcse.c: Likewise.
1976         * genattrtab.c: Likewise.
1977         * genemit.c: Likewise.
1978         * gengtype.c: Likewise.
1979         * genopinit.c: Likewise.
1980         * genoutput.c: Likewise.
1981         * genpreds.c: Likewise.
1982         * genrecog.c: Likewise.
1983         * gimple-fold.c: Likewise.
1984         * gimple-iterator.c: Likewise.
1985         * gimple-ssa-isolate-paths.c: Likewise.
1986         * gimple-ssa-strength-reduction.c: Likewise.
1987         * graph.c: Likewise.
1988         * graphite-blocking.c: Likewise.
1989         * graphite.c: Likewise.
1990         * graphite-dependences.c: Likewise.
1991         * graphite-interchange.c: Likewise.
1992         * graphite-isl-ast-to-gimple.c: Likewise.
1993         * graphite-optimize-isl.c: Likewise.
1994         * graphite-poly.c: Likewise.
1995         * graphite-scop-detection.c: Likewise.
1996         * graphite-sese-to-poly.c: Likewise.
1997         * haifa-sched.c: Likewise.
1998         * ifcvt.c: Likewise.
1999         * internal-fn.c: Likewise.
2000         * ipa-cp.c: Likewise.
2001         * ipa-profile.c: Likewise.
2002         * ipa-split.c: Likewise.
2003         * ipa-utils.c: Likewise.
2004         * ira-build.c: Likewise.
2005         * ira-color.c: Likewise.
2006         * ira-conflicts.c: Likewise.
2007         * ira-costs.c: Likewise.
2008         * ira-emit.c: Likewise.
2009         * ira-lives.c: Likewise.
2010         * jump.c: Likewise.
2011         * loop-doloop.c: Likewise.
2012         * loop-init.c: Likewise.
2013         * loop-invariant.c: Likewise.
2014         * loop-unroll.c: Likewise.
2015         * lower-subreg.c: Likewise.
2016         * lra-assigns.c: Likewise.
2017         * lra.c: Likewise.
2018         * lra-coalesce.c: Likewise.
2019         * lra-constraints.c: Likewise.
2020         * lra-lives.c: Likewise.
2021         * lto-cgraph.c: Likewise.
2022         * lto-streamer-in.c: Likewise.
2023         * mode-switching.c: Likewise.
2024         * modulo-sched.c: Likewise.
2025         * omp-low.c: Likewise.
2026         * optabs.c: Likewise.
2027         * passes.c: Likewise.
2028         * postreload.c: Likewise.
2029         * postreload-gcse.c: Likewise.
2030         * profile.c: Likewise.
2031         * recog.c: Likewise.
2032         * regstat.c: Likewise.
2033         * reload1.c: Likewise.
2034         * reorg.c: Likewise.
2035         * rtlanal.c: Likewise.
2036         * sched-ebb.c: Likewise.
2037         * sel-sched-ir.c: Likewise.
2038         * sese.c: Likewise.
2039         * shrink-wrap.c: Likewise.
2040         * simplify-rtx.c: Likewise.
2041         * stmt.c: Likewise.
2042         * store-motion.c: Likewise.
2043         * tracer.c: Likewise.
2044         * trans-mem.c: Likewise.
2045         * tree-call-cdce.c: Likewise.
2046         * tree-cfg.c: Likewise.
2047         * tree-cfgcleanup.c: Likewise.
2048         * tree-chkp.c: Likewise.
2049         * tree-complex.c: Likewise.
2050         * tree-eh.c: Likewise.
2051         * tree-if-conv.c: Likewise.
2052         * tree-loop-distribution.c: Likewise.
2053         * tree-outof-ssa.c: Likewise.
2054         * tree-parloops.c: Likewise.
2055         * tree-predcom.c: Likewise.
2056         * tree-pretty-print.c: Likewise.
2057         * tree-profile.c: Likewise.
2058         * tree-sra.c: Likewise.
2059         * tree-ssa.c: Likewise.
2060         * tree-ssa-coalesce.c: Likewise.
2061         * tree-ssa-dce.c: Likewise.
2062         * tree-ssa-dom.c: Likewise.
2063         * tree-ssa-forwprop.c: Likewise.
2064         * tree-ssa-ifcombine.c: Likewise.
2065         * tree-ssa-loop-ch.c: Likewise.
2066         * tree-ssa-loop-im.c: Likewise.
2067         * tree-ssa-loop-ivcanon.c: Likewise.
2068         * tree-ssa-loop-ivopts.c: Likewise.
2069         * tree-ssa-loop-manip.c: Likewise.
2070         * tree-ssa-loop-prefetch.c: Likewise.
2071         * tree-ssa-loop-unswitch.c: Likewise.
2072         * tree-ssa-math-opts.c: Likewise.
2073         * tree-ssa-phiopt.c: Likewise.
2074         * tree-ssa-pre.c: Likewise.
2075         * tree-ssa-reassoc.c: Likewise.
2076         * tree-ssa-sink.c: Likewise.
2077         * tree-ssa-tail-merge.c: Likewise.
2078         * tree-ssa-threadedge.c: Likewise.
2079         * tree-ssa-threadupdate.c: Likewise.
2080         * tree-switch-conversion.c: Likewise.
2081         * tree-tailcall.c: Likewise.
2082         * tree-vect-data-refs.c: Likewise.
2083         * tree-vect-loop.c: Likewise.
2084         * tree-vect-loop-manip.c: Likewise.
2085         * tree-vectorizer.c: Likewise.
2086         * tree-vrp.c: Likewise.
2087         * ubsan.c: Likewise.
2088         * value-prof.c: Likewise.
2089         * varasm.c: Likewise.
2090         * var-tracking.c: Likewise.
2091         * config/aarch64/aarch64-builtins.c: Likewise.
2092         * config/aarch64/aarch64.c: Likewise.
2093         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2094         * config/alpha/alpha.c: Likewise.
2095         * config/arc/arc.c: Likewise.
2096         * config/arm/arm.c: Likewise.
2097         * config/avr/avr.c: Likewise.
2098         * config/bfin/bfin.c: Likewise.
2099         * config/c6x/c6x.c: Likewise.
2100         * config/cr16/cr16.c: Likewise.
2101         * config/cris/cris.c: Likewise.
2102         * config/darwin.c: Likewise.
2103         * config/darwin-c.c: Likewise.
2104         * config/epiphany/epiphany.c: Likewise.
2105         * config/epiphany/mode-switch-use.c: Likewise.
2106         * config/epiphany/resolve-sw-modes.c: Likewise.
2107         * config/fr30/fr30.c: Likewise.
2108         * config/frv/frv.c: Likewise.
2109         * config/ft32/ft32.c: Likewise.
2110         * config/h8300/h8300.c: Likewise.
2111         * config/i386/i386.c: Likewise.
2112         * config/i386/winnt.c: Likewise.
2113         * config/ia64/ia64.c: Likewise.
2114         * config/iq2000/iq2000.c: Likewise.
2115         * config/lm32/lm32.c: Likewise.
2116         * config/m32c/m32c.c: Likewise.
2117         * config/m32r/m32r.c: Likewise.
2118         * config/m68k/m68k.c: Likewise.
2119         * config/mcore/mcore.c: Likewise.
2120         * config/mep/mep.c: Likewise.
2121         * config/microblaze/microblaze.c: Likewise.
2122         * config/mips/mips.c: Likewise.
2123         * config/mmix/mmix.c: Likewise.
2124         * config/mn10300/mn10300.c: Likewise.
2125         * config/moxie/moxie.c: Likewise.
2126         * config/msp430/msp430.c: Likewise.
2127         * config/nds32/nds32.c: Likewise.
2128         * config/nds32/nds32-cost.c: Likewise.
2129         * config/nds32/nds32-fp-as-gp.c: Likewise.
2130         * config/nds32/nds32-intrinsic.c: Likewise.
2131         * config/nds32/nds32-isr.c: Likewise.
2132         * config/nds32/nds32-md-auxiliary.c: Likewise.
2133         * config/nds32/nds32-memory-manipulation.c: Likewise.
2134         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2135         * config/nds32/nds32-predicates.c: Likewise.
2136         * config/nios2/nios2.c: Likewise.
2137         * config/nvptx/nvptx.c: Likewise.
2138         * config/pa/pa.c: Likewise.
2139         * config/pdp11/pdp11.c: Likewise.
2140         * config/rl78/rl78.c: Likewise.
2141         * config/rs6000/rs6000.c: Likewise.
2142         * config/rx/rx.c: Likewise.
2143         * config/s390/s390.c: Likewise.
2144         * config/sh/sh.c: Likewise.
2145         * config/sh/sh-mem.cc: Likewise.
2146         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2147         * config/sh/sh_treg_combine.cc: Likewise.
2148         * config/sparc/sparc.c: Likewise.
2149         * config/spu/spu.c: Likewise.
2150         * config/stormy16/stormy16.c: Likewise.
2151         * config/tilegx/tilegx.c: Likewise.
2152         * config/tilepro/tilepro.c: Likewise.
2153         * config/v850/v850.c: Likewise.
2154         * config/vax/vax.c: Likewise.
2155         * config/visium/visium.c: Likewise.
2156         * config/xtensa/xtensa.c: Likewise.
2157
2158 2015-07-10  Richard Biener  <rguenther@suse.de>
2159
2160         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2161         (decision_tree::gen_gimple): Likewise.
2162         (decision_tree::gen_generic): Likewise.
2163
2164 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
2165
2166         PR target/66813
2167         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2168         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2169
2170 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
2171
2172         PR middle-end/66820
2173         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2174         or ORT_TASK contexts.
2175         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2176         is non-zero.
2177
2178 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2179
2180         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2181         above function.
2182
2183 2015-07-10  Tom de Vries  <tom@codesourcery.com>
2184
2185         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2186         insert nit + 1 bound.
2187
2188 2015-07-10  Richard Biener  <rguenther@suse.de>
2189
2190         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2191         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2192         (if_convertible_loop_p_1): For this always compute bb predicates.
2193         (if_convertible_loop_p): And free them.
2194
2195 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2196
2197         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2198         in dump message.
2199
2200 2015-07-10  Richard Biener  <rguenther@suse.de>
2201
2202         PR tree-optimization/66823
2203         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2204         inverted predicate.
2205
2206 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
2207
2208         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2209         to handle mips[32|64]r3 and mips[32|64]r5.
2210
2211 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
2212
2213         PR middle-end/66633
2214         * tree-nested.c (get_static_chain): Or in a flag into
2215         info->static_chain_added.
2216         (get_frame_field, get_nonlocal_debug_decl): Likewise.
2217         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2218         2015-07-01 changes.
2219         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2220         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2221         add it to clauses.
2222
2223         PR tree-optimization/66718
2224         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2225         field.
2226         (vect_simd_lane_linear): New function.
2227         (vectorizable_simd_clone_call): Support using linear arguments for
2228         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2229
2230 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2231
2232         PR target/66821
2233         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2234
2235 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2236
2237         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2238         Use machine mode, not enum machine_mode in the prototype.
2239
2240         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2241         classify 128-bit floating point support.
2242         (FLOAT128_IBM_P): Likewise.
2243         (FLOAT128_VECTOR_P): Likewise.
2244         (FLOAT128_2REG_P): Likewise.
2245         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2246         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2247         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2248         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2249
2250         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2251         tests against TFmode/TDmode, since those modes do not use VSX
2252         addresses.
2253         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2254         support.
2255         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2256         tests against TFmode, etc.
2257         (invalid_e500_subreg): Add tests against IFmode/KFmode.
2258         (reg_offset_addressing_ok_p): Likewise.
2259         (rs6000_legitimate_offset_address_p): Likewise.
2260         (rs6000_legitimize_address): Likewise.
2261         (rs6000_legitimize_reload_address): Likewise.
2262         (rs6000_legitimate_address_p): Clean up tests against TFmode and
2263         TDmode to use the new helper macros, which will include IFmode and
2264         KFmode.
2265         (rs6000_emit_move): Likewise.
2266         (rs6000_darwin64_record_arg_recurse): Likewise.
2267         (print_operand): Likewise.
2268         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2269         that uses a single vector register as a vector and not as a
2270         floating point register in terms of the calling sequence.
2271         (rs6000_discover_homogeneous_aggregate): Likewise.
2272         (rs6000_return_in_memory): Likewise.
2273         (init_cumulative_args): Likewise.
2274         (rs6000_function_arg_boundary): Likewise.
2275         (rs6000_function_arg_advance_1): Likewise.
2276         (rs6000_function_arg): Likewise.
2277         (rs6000_pass_by_reference): Likewise.
2278         (rs6000_gimplify_va_arg): Likewise.
2279         (rs6000_secondary_reload_memory): Use machine_mode not enum
2280         machine mode.
2281         (rs6000_split_multireg_move): Use new helper macros.
2282         (spe_func_has_64bit_regs_p): Likewise.
2283         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2284         (output_toc): Use new helper macros.
2285         (rs6000_register_move_cost): Likewise.
2286         (rs6000_function_value): Add IEEE 128-bit floating point calling
2287         sequence support.
2288         (rs6000_libcall_value): Likewise.
2289         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2290         floating point support.
2291         (rs6000_vector_mode_supported_p): Likewise.
2292
2293 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
2294
2295         PR rtl-optimization/66782
2296         * lra-int.h (struct lra_insn_recog_data): Add comment about
2297         clobbered hard regs for arg_hard_regs.
2298         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2299         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2300         Add condition for processing used hard regs.
2301         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2302         Process clobbered hard regs.
2303
2304 2015-07-09  Michael Matz  <matz@suse.de>
2305
2306         * genmatch.c (fprintf_indent): New function.
2307         (operand::gen_transform): Add indent parameter.
2308         (expr::gen_transform, c_expr::gen_transform,
2309         capture::gen_transform): Ditto and use fprintf_indent.
2310         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2311         (dt_operand::gen, dt_operand::gen_predicate,
2312         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2313         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2314         (decision_tree::gen_gimple): Adjust calls and indent generated
2315         code.
2316         (decision_tree::gen_generic): Ditto.
2317         (write_predicate): Ditto.
2318
2319 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2320
2321         PR target/66814
2322         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2323         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2324         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2325         {GENERAL,SSE,MMX}_REG_P where appropriate.
2326
2327 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2328
2329         * lto-streamer.h: Don't include target.h and alloc-pool.h.
2330         * builtins.c: Adjust includes.
2331         * gimple.c: Likewise.
2332         * ipa-icf.c: Likewise.
2333         * lto-opts.c: Likewise.
2334         * ipa-reference.c: Likewise.
2335         * lto-section-out.c: Likewise.
2336         * lto-streamer-in.c: Likewise.
2337         * lto-streamer-out.c: Likewise.
2338         * opts-global.c: Likewise.
2339         * symtab.c: Likewise.
2340         * tree-chkp.c: Likewise.
2341         * tree-ssa-live.c: Likewise.
2342         * tree-streamer-in.c: Likewise.
2343         * tree-streamer-out.c: Likewise.
2344         * config/darwin.c: Likewise.
2345         * config/i386/winnt.c: Likewise.
2346
2347 2015-07-09  Richard Biener  <rguenther@suse.de>
2348
2349         * genmatch.c (struct expr): Add force_single_use flag.
2350         (expr::expr): Add copy constructor.
2351         (capture_info::walk_match): Gather force_single_use captures.
2352         (expr::gen_transform): Use possibly NULLified sequence.
2353         (dt_simplify::gen): Apply single-use restrictions by NULLifying
2354         seq if any constrained expr is not single-use.
2355         (parser::parse_expr): Refactor to allow multiple flags.  Handle
2356         's' flag to force an expression have a single-use if the pattern
2357         simplifies to more than one statement.
2358         * match.pd: Convert most single_use conditionals to :s flags.
2359
2360 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2361
2362         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2363         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2364         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2365
2366 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2367
2368         * flags.h: Don't include flag-types.h or options.h.
2369         * opts-common.c: Adjust includes.
2370         * opts-global.c: Likewise.
2371         * common/config/epiphany/epiphany-common.c: Likewise.
2372
2373 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2374
2375         PR target/66818
2376         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2377         for IA MCU.
2378
2379 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2380
2381         PR target/66817
2382         * config/i386/i386.c (ix86_return_in_memory): Return true
2383         if int_size_in_bytes returns negative for IA MCU.
2384
2385 2015-07-09  Marek Polacek  <polacek@redhat.com>
2386
2387         PR tree-optimization/66718
2388         * Makefile.in (OBJS): Add gimple-laddress.o.
2389         * passes.def: Schedule pass_laddress.
2390         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2391         * tree-pass.h (make_pass_laddress): Declare.
2392         * gimple-laddress.c: New file.
2393
2394 2015-07-09  Richard Biener  <rguenther@suse.de>
2395
2396         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2397
2398 2015-07-09  Richard Biener  <rguenther@suse.de>
2399
2400         PR tree-optimization/66807
2401         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2402
2403 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
2404
2405         * function.c (stack_protect_epilogue): Use if rather than switch for
2406         check targetm.have_stack_protect_test.
2407
2408 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2409
2410         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2411         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2412         * config/arc/arc.h: Likewise.
2413         * config/arm/arm.h: Likewise.
2414         * config/bfin/bfin.h: Likewise.
2415         * config/epiphany/epiphany.h: Likewise.
2416         * config/frv/frv.h: Likewise.
2417         * config/ia64/ia64.h: Likewise.
2418         * config/iq2000/iq2000.h: Likewise.
2419         * config/lm32/lm32.h: Likewise.
2420         * config/m32r/m32r.h: Likewise.
2421         * config/mcore/mcore.h: Likewise.
2422         * config/mep/mep.h: Likewise.
2423         * config/microblaze/microblaze.h: Likewise.
2424         * config/mips/mips.h: Likewise.
2425         * config/mmix/mmix.h: Likewise.
2426         * config/mn10300/mn10300.h: Likewise.
2427         * config/nds32/nds32.h: Likewise.
2428         * config/nios2/nios2.h: Likewise.
2429         * config/pa/pa.h: Likewise.
2430         * config/rl78/rl78.h: Likewise.
2431         * config/sh/sh.h: Likewise.
2432         * config/sparc/sparc.h: Likewise.
2433         * config/stormy16/stormy16.h: Likewise.
2434         * config/tilegx/tilegx.h: Likewise.
2435         * config/tilepro/tilepro.h: Likewise.
2436         * config/v850/v850.h: Likewise.
2437         * config/xtensa/xtensa.h: Likewise.
2438         * doc/tm.texi: Regenerate.
2439         * doc/tm.texi.in: Adjust.
2440         * combine.c (simplify_set): Likewise.
2441         (simplify_comparison): Likewise.
2442         * expr.c (store_constructor): Likewise.
2443         * internal-fn.c (expand_arith_overflow): Likewise.
2444         * reload.c (push_reload): Likewise.
2445         (find_reloads): Likewise.
2446         (find_reloads_subreg_address): Likewise.
2447         * reload1.c (eliminate_regs_1): Likewise.
2448         * rtlanal.c (nonzero_bits1): Likewise.
2449         (num_sign_bit_copies1): Likewise.
2450         * simplify-rtx.c (simplify_truncation): Likewise.
2451
2452 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2453
2454         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2455         of AUTO_INC_DEC with the preprocessor.
2456         * combine.c (combine_instructions): Likewise.
2457         (can_combine_p): Likewise.
2458         (try_combine): Likewise.
2459         * emit-rtl.c (try_split): Likewise.
2460         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2461         * lower-subreg.c (resolve_simple_move): Likewise.
2462         * lra.c (update_inc_notes): Likewise.
2463         * recog.c (asm_operand_ok): Likewise.
2464         (constrain_operands): Likewise.
2465         * regrename.c (scan_rtx_address): Likewise.
2466         * reload.c (update_auto_inc_notes): Likewise.
2467         (reg_inc_found_and_valid_p): Likewise.
2468         * reload1.c (reload): Likewise.
2469         (emit_input_reload_insns): Likewise.
2470         (delete_output_reload): Likewise.
2471         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2472         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2473
2474 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2475
2476         * rtl.h: Always define AUTO_INC_DEC.
2477         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2478         * combine.c (combine_instructions): Likewise.
2479         (can_combine_p): Likewise.
2480         (try_combine): Likewise.
2481         * emit-rtl.c (try_split): Likewise.
2482         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2483         * lower-subreg.c (resolve_simple_move): Likewise.
2484         * lra.c (update_inc_notes): Likewise.
2485         * recog.c (asm_operand_ok): Likewise.
2486         (constrain_operands): Likewise.
2487         * regrename.c (scan_rtx_address): Likewise.
2488         * reload.c (update_auto_inc_notes): Likewise.
2489         (find_equiv_reg): Likewise.
2490         * reload1.c (reload): Likewise.
2491         (reload_as_needed): Likewise.
2492         (choose_reload_regs): Likewise.
2493         (emit_input_reload_insns): Likewise.
2494         (delete_output_reload): Likewise.
2495         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2496         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2497
2498 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2499
2500         * combine.c (can_combine_def_p): Don't check the value of
2501         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2502         (combinable_i3pat): Likewise.
2503         (mark_used_regs_combine): Likewise.
2504         * regrename.c (rename_chains): Likewise.
2505         * reload.c (find_reloads_address): Likewise.
2506         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2507
2508 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2509
2510         * combine.c (update_rsp_from_reg_equal): Don't check if
2511         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2512         (reg_nonzero_bits_for_combine): Likewise.
2513         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2514         1.
2515         * config/frv/frv.h: Likewise.
2516         * config/lm32/lm32.h: Likewise.
2517         * config/mep/mep.h: Likewise.
2518         * config/mips/mips.h: Likewise.
2519         * config/rs6000/rs6000.h: Likewise.
2520         * config/sh/sh.h: Likewise.
2521         * config/tilegx/tilegx.h (enum reg_class): Likewise.
2522         * config/tilepro/tilepro.h: Likewise.
2523         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2524         * doc/tm.texi: Regenerate.
2525         * doc/tm.texi.in: Adjust.
2526         * rtlanal.c (nonzero_bits1): Likewise.
2527
2528 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2529
2530         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2531         with the preprocessor.
2532         (combine_instructions): Likewise.
2533         (try_combine): Likewise.
2534         (subst): Likewise.
2535         (distribute_notes): Likewise.
2536
2537 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2538
2539         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2540         defined.
2541         (simplify_set): Likewise.
2542         * cse.c (cse_insn): Likewise.
2543         * fold-const.c (fold_single_bit_test): Likewise.
2544         (fold_unary_loc): Likewise.
2545         * postreload.c (reload_cse_simplify_set): Likewise.
2546         (reload_cse_simplify_operands): Likewise.
2547
2548 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
2549
2550         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2551         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2552
2553 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
2554
2555         PR target/66746
2556         * config/i386/x86intrin.h: Include <adxintrin.h> even if
2557         __iamcu__ is defined.
2558
2559 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2560
2561         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2562
2563 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
2564
2565         PR target/66523
2566         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2567         names from preservation.
2568
2569 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
2570
2571         PR target/66806
2572         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2573         change for IAMCU.
2574         (function_arg_advance_32): Don't pass vectors in registers for
2575         IAMCU.
2576         (function_arg_32): Likewise.
2577         (ix86_return_in_memory): Don't return vectors in registers for
2578         IAMCU.
2579
2580 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2581
2582         PR middle-end/66334
2583         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2584         hard regno live at the start of BB with incoming abnormal edges.
2585         * lra-lives.c (process_bb_lives): Ditto.
2586
2587 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2588
2589         PR libgomp/65099
2590         * config/nvptx/mkoffload.c (main): Create an offload image only in
2591         64-bit configurations.
2592
2593 2015-07-08  Martin Liska  <mliska@suse.cz>
2594
2595         PR bootstrap/66744
2596         * tree-sra.c (create_access_1): Call ctor without brackets.
2597         (create_artificial_child_access): Likewise.
2598
2599 2015-07-08  Richard Biener  <rguenther@suse.de>
2600
2601         PR tree-optimization/66793
2602         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2603         Properly split the block after stmts ending it.
2604
2605 2015-07-08  Richard Biener  <rguenther@suse.de>
2606
2607         PR tree-optimization/66794
2608         * passes.c (execute_function_todo): Assert that post-dominators
2609         are not computed.
2610         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2611         Free post-dominators.
2612
2613 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2614
2615         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2616         with early exit.
2617
2618 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2619
2620         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2621         more than or equal 8 and less than 32 when optimizing for size.
2622
2623 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2624
2625         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2626         COSTS_N_INSNS (1) and increment it appropriately throughout the
2627         function.
2628
2629 2015-07-08  Richard Biener  <rguenther@suse.de>
2630
2631         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2632
2633 2015-07-08  Alan Modra  <amodra@gmail.com>
2634
2635         * target.def (rtx_costs): Remove "code" param, add "mode".
2636         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2637         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
2638         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2639         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
2640         call.  Track mode when given in rtx.
2641         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
2642         (default_address_cost): Pass Pmode to rtx_cost.
2643         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2644         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2645         with NULL set.
2646         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
2647         (notreg_cost): Add mode param.  Use it.
2648         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
2649         mode param and pass to set_src_cost.  Update all calls.
2650         (hash_scan_set): Formatting.
2651         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2652         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2653         * hooks.h: Ditto.
2654         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2655         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2656         emit_store_flag): Update set_src_cost and rtx_cost calls.
2657         * auto-inc-dec.c (attempt_change): Likewise.
2658         * calls.c (precompute_register_parameters): Likewise.
2659         * combine.c (expand_compound_operation, make_extraction,
2660         force_to_mode, distribute_and_simplify_rtx): Likewise.
2661         * dojump.c (prefer_and_bit_test): Likewise.
2662         * dse.c (find_shift_sequence): Likewise.
2663         * expr.c (compress_float_constant): Likewise.
2664         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2665         * ifcvt.c (noce_try_sign_mask): Likewise.
2666         * loop-doloop.c (doloop_optimize): Likewise.
2667         * loop-invariant.c (create_new_invariant): Likewise.
2668         * lower-subreg.c (shift_cost, compute_costs): Likewise.
2669         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2670         lshift_cheap_p): Likewise.
2671         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2672         try_replace_in_use, reload_cse_move2add): Likewise.
2673         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2674         Likewise.
2675         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2676         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2677         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2678         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2679         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2680         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
2681         to rtx_cost calls.
2682         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2683         * config/arc/arc.c (arc_rtx_costs): Likewise.
2684         * config/arm/arm.c (arm_rtx_costs): Likewise.
2685         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2686         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2687         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2688         * config/cris/cris.c (cris_rtx_costs): Likewise.
2689         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2690         * config/frv/frv.c (frv_rtx_costs): Likewise.
2691         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2692         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2693         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2694         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2695         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2696         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2697         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2698         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2699         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2700         * config/mep/mep.c (mep_rtx_cost): Likewise.
2701         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2702         * config/mips/mips.c (mips_rtx_costs): Likewise.
2703         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2704         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2705         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2706         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2707         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2708         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2709         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2710         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2711         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2712         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2713         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2714         * config/s390/s390.c (s390_rtx_costs): Likewise.
2715         * config/sh/sh.c (sh_rtx_costs): Likewise.
2716         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2717         * config/spu/spu.c (spu_rtx_costs): Likewise.
2718         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2719         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2720         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2721         * config/v850/v850.c (v850_rtx_costs): Likewise.
2722         * config/vax/vax.c (vax_rtx_costs): Likewise.
2723         * config/visium/visium.c (visium_rtx_costs): Likewise.
2724         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2725         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2726         "code" param, and pass as outer_code to first rtx_cost call.  Pass
2727         mode to rtx_cost calls.
2728         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2729         calls.
2730         (aarch64_rtx_costs_wrapper): Update.
2731         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2732         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2733         rtx_cost calls.
2734         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2735         and rtx_cost calls.
2736         (avr_operand_rtx_cost): Similarly.
2737         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2738         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2739         * config/mips/mips.c (mips_stack_address_p): Comment typo.
2740         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2741         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2742         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2743         rtx_cost.
2744         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2745         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2746         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2747         * doc/tm.texi: Regenerate.
2748
2749 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2750
2751         * tree-core.h: Include symtab.h.
2752         * rtl.h: Include hard-reg-set.h but not flags.h.
2753         (HARD_CONST): Remove condition compilation involving HARD_CONST since
2754         hard-reg-set.h is always included.
2755         * regs.h: Don't include hard-reg-set.h or rtl.h.
2756         * cfg.h: Include dominance.h.
2757         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2758         * backend.h: New.  Aggregate commonly used backend header files.
2759         * gimple-ssa.h: Don't include tree-hasher.h.
2760         * ssa.h: New.  Aggregate commonly used SSA header files.
2761         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2762         * sel-sched-ir.h: Flatten includes.
2763         * lra-int.h: Flatten completely.
2764         * sel-sched-dump.h: Flatten includes.
2765         * ira-int.h: Flatten includes.
2766         * gimple-streamer.h: Remove all includes.
2767         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2768         * resource.h: Flatten hard-reg-set.h and df.h.
2769         * sched-int.h: Flatten insn-arrt.h and df.h.
2770         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2771         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2772         * genattrtab.c (write_header): Adjust generated includes.
2773         * genautomata.c (main): Likewise.
2774         * genconditions.c (write-header): Likewise.
2775         * genemit.c (main): Likewise.
2776         * gengtype.c (open_base_files): Likewise.
2777         * genopinit.c (main): Likewise.
2778         * genoutput.c (output_prologue): Likewise.
2779         * genpeep.c (main): Likewise.
2780         * genpreds.c (write_insn_preds_c): Likewise.
2781         * genrecog.c (write_header): Likewise.
2782         * alias.c: Adjust includes.
2783         * asan.c: Likewise.
2784         * attribs.c: Likewise.
2785         * auto-inc-dec.c: Likewise.
2786         * auto-profile.c: Likewise.
2787         * bb-reorder.c: Likewise.
2788         * bt-load.c: Likewise.
2789         * builtins.c: Likewise.
2790         * caller-save.c: Likewise.
2791         * calls.c: Likewise.
2792         * ccmp.c: Likewise.
2793         * cfg.c: Likewise.
2794         * cfganal.c: Likewise.
2795         * cfgbuild.c: Likewise.
2796         * cfgcleanup.c: Likewise.
2797         * cfgexpand.c: Likewise.
2798         * cfghooks.c: Likewise.
2799         * cfgloop.c: Likewise.
2800         * cfgloopanal.c: Likewise.
2801         * cfgloopmanip.c: Likewise.
2802         * cfgrtl.c: Likewise.
2803         * cgraph.c: Likewise.
2804         * cgraphbuild.c: Likewise.
2805         * cgraphclones.c: Likewise.
2806         * cgraphunit.c: Likewise.
2807         * cilk-common.c: Likewise.
2808         * combine-stack-adj.c: Likewise.
2809         * combine.c: Likewise.
2810         * compare-elim.c: Likewise.
2811         * convert.c: Likewise.
2812         * coverage.c: Likewise.
2813         * cppbuiltin.c: Likewise.
2814         * cprop.c: Likewise.
2815         * cse.c: Likewise.
2816         * cselib.c: Likewise.
2817         * data-streamer-in.c: Likewise.
2818         * data-streamer-out.c: Likewise.
2819         * data-streamer.c: Likewise.
2820         * dbxout.c: Likewise.
2821         * dce.c: Likewise.
2822         * ddg.c: Likewise.
2823         * debug.c: Likewise.
2824         * df-core.c: Likewise.
2825         * df-problems.c: Likewise.
2826         * df-scan.c: Likewise.
2827         * dfp.c: Likewise.
2828         * dojump.c: Likewise.
2829         * dominance.c: Likewise.
2830         * domwalk.c: Likewise.
2831         * double-int.c: Likewise.
2832         * dse.c: Likewise.
2833         * dumpfile.c: Likewise.
2834         * dwarf2asm.c: Likewise.
2835         * dwarf2cfi.c: Likewise.
2836         * dwarf2out.c: Likewise.
2837         * emit-rtl.c: Likewise.
2838         * et-forest.c: Likewise.
2839         * except.c: Likewise.
2840         * explow.c: Likewise.
2841         * expmed.c: Likewise.
2842         * expr.c: Likewise.
2843         * final.c: Likewise.
2844         * fixed-value.c: Likewise.
2845         * fold-const.c: Likewise.
2846         * function.c: Likewise.
2847         * fwprop.c: Likewise.
2848         * gcc-plugin.h: Likewise.
2849         * gcse-common.c: Likewise.
2850         * gcse.c: Likewise.
2851         * generic-match-head.c: Likewise.
2852         * ggc-page.c: Likewise.
2853         * gimple-builder.c: Likewise.
2854         * gimple-expr.c: Likewise.
2855         * gimple-fold.c: Likewise.
2856         * gimple-iterator.c: Likewise.
2857         * gimple-low.c: Likewise.
2858         * gimple-match-head.c: Likewise.
2859         * gimple-pretty-print.c: Likewise.
2860         * gimple-ssa-isolate-paths.c: Likewise.
2861         * gimple-ssa-strength-reduction.c: Likewise.
2862         * gimple-streamer-in.c: Likewise.
2863         * gimple-streamer-out.c: Likewise.
2864         * gimple-walk.c: Likewise.
2865         * gimple.c: Likewise.
2866         * gimplify-me.c: Likewise.
2867         * gimplify.c: Likewise.
2868         * godump.c: Likewise.
2869         * graph.c: Likewise.
2870         * graphite-blocking.c: Likewise.
2871         * graphite-dependences.c: Likewise.
2872         * graphite-interchange.c: Likewise.
2873         * graphite-isl-ast-to-gimple.c: Likewise.
2874         * graphite-optimize-isl.c: Likewise.
2875         * graphite-poly.c: Likewise.
2876         * graphite-scop-detection.c: Likewise.
2877         * graphite-sese-to-poly.c: Likewise.
2878         * graphite.c: Likewise.
2879         * haifa-sched.c: Likewise.
2880         * hw-doloop.c: Likewise.
2881         * ifcvt.c: Likewise.
2882         * init-regs.c: Likewise.
2883         * internal-fn.c: Likewise.
2884         * ipa-chkp.c: Likewise.
2885         * ipa-comdats.c: Likewise.
2886         * ipa-cp.c: Likewise.
2887         * ipa-devirt.c: Likewise.
2888         * ipa-icf-gimple.c: Likewise.
2889         * ipa-icf.c: Likewise.
2890         * ipa-inline-analysis.c: Likewise.
2891         * ipa-inline-transform.c: Likewise.
2892         * ipa-inline.c: Likewise.
2893         * ipa-polymorphic-call.c: Likewise.
2894         * ipa-profile.c: Likewise.
2895         * ipa-prop.c: Likewise.
2896         * ipa-pure-const.c: Likewise.
2897         * ipa-ref.c: Likewise.
2898         * ipa-reference.c: Likewise.
2899         * ipa-split.c: Likewise.
2900         * ipa-utils.c: Likewise.
2901         * ipa-visibility.c: Likewise.
2902         * ipa.c: Likewise.
2903         * ira-build.c: Likewise.
2904         * ira-color.c: Likewise.
2905         * ira-conflicts.c: Likewise.
2906         * ira-costs.c: Likewise.
2907         * ira-emit.c: Likewise.
2908         * ira-lives.c: Likewise.
2909         * ira.c: Likewise.
2910         * jump.c: Likewise.
2911         * langhooks.c: Likewise.
2912         * lcm.c: Likewise.
2913         * loop-doloop.c: Likewise.
2914         * loop-init.c: Likewise.
2915         * loop-invariant.c: Likewise.
2916         * loop-iv.c: Likewise.
2917         * loop-unroll.c: Likewise.
2918         * lower-subreg.c: Likewise.
2919         * lra-assigns.c: Likewise.
2920         * lra-coalesce.c: Likewise.
2921         * lra-constraints.c: Likewise.
2922         * lra-eliminations.c: Likewise.
2923         * lra-lives.c: Likewise.
2924         * lra-remat.c: Likewise.
2925         * lra-spills.c: Likewise.
2926         * lra.c: Likewise.
2927         * lto-cgraph.c: Likewise.
2928         * lto-compress.c: Likewise.
2929         * lto-opts.c: Likewise.
2930         * lto-section-in.c: Likewise.
2931         * lto-section-out.c: Likewise.
2932         * lto-streamer-in.c: Likewise.
2933         * lto-streamer-out.c: Likewise.
2934         * lto-streamer.c: Likewise.
2935         * mcf.c: Likewise.
2936         * mode-switching.c: Likewise.
2937         * modulo-sched.c: Likewise.
2938         * omega.c: Likewise.
2939         * omp-low.c: Likewise.
2940         * optabs.c: Likewise.
2941         * opts-global.c: Likewise.
2942         * passes.c: Likewise.
2943         * plugin.c: Likewise.
2944         * postreload-gcse.c: Likewise.
2945         * postreload.c: Likewise.
2946         * predict.c: Likewise.
2947         * print-rtl.c: Likewise.
2948         * print-tree.c: Likewise.
2949         * profile.c: Likewise.
2950         * real.c: Likewise.
2951         * realmpfr.c: Likewise.
2952         * recog.c: Likewise.
2953         * ree.c: Likewise.
2954         * reg-stack.c: Likewise.
2955         * regcprop.c: Likewise.
2956         * reginfo.c: Likewise.
2957         * regrename.c: Likewise.
2958         * regstat.c: Likewise.
2959         * reload.c: Likewise.
2960         * reload1.c: Likewise.
2961         * reorg.c: Likewise.
2962         * resource.c: Likewise.
2963         * rtl-chkp.c: Likewise.
2964         * rtlanal.c: Likewise.
2965         * rtlhooks.c: Likewise.
2966         * sanopt.c: Likewise.
2967         * sched-deps.c: Likewise.
2968         * sched-ebb.c: Likewise.
2969         * sched-rgn.c: Likewise.
2970         * sched-vis.c: Likewise.
2971         * sdbout.c: Likewise.
2972         * sel-sched-dump.c: Likewise.
2973         * sel-sched-ir.c: Likewise.
2974         * sel-sched.c: Likewise.
2975         * sese.c: Likewise.
2976         * shrink-wrap.c: Likewise.
2977         * simplify-rtx.c: Likewise.
2978         * stack-ptr-mod.c: Likewise.
2979         * stmt.c: Likewise.
2980         * stor-layout.c: Likewise.
2981         * store-motion.c: Likewise.
2982         * stringpool.c: Likewise.
2983         * symtab.c: Likewise.
2984         * target-globals.c: Likewise.
2985         * targhooks.c: Likewise.
2986         * toplev.c: Likewise.
2987         * tracer.c: Likewise.
2988         * trans-mem.c: Likewise.
2989         * tree-affine.c: Likewise.
2990         * tree-browser.c: Likewise.
2991         * tree-call-cdce.c: Likewise.
2992         * tree-cfg.c: Likewise.
2993         * tree-cfgcleanup.c: Likewise.
2994         * tree-chkp-opt.c: Likewise.
2995         * tree-chkp.c: Likewise.
2996         * tree-chrec.c: Likewise.
2997         * tree-complex.c: Likewise.
2998         * tree-data-ref.c: Likewise.
2999         * tree-dfa.c: Likewise.
3000         * tree-diagnostic.c: Likewise.
3001         * tree-dump.c: Likewise.
3002         * tree-eh.c: Likewise.
3003         * tree-emutls.c: Likewise.
3004         * tree-if-conv.c: Likewise.
3005         * tree-inline.c: Likewise.
3006         * tree-into-ssa.c: Likewise.
3007         * tree-iterator.c: Likewise.
3008         * tree-loop-distribution.c: Likewise.
3009         * tree-nested.c: Likewise.
3010         * tree-nrv.c: Likewise.
3011         * tree-object-size.c: Likewise.
3012         * tree-outof-ssa.c: Likewise.
3013         * tree-parloops.c: Likewise.
3014         * tree-phinodes.c: Likewise.
3015         * tree-predcom.c: Likewise.
3016         * tree-pretty-print.c: Likewise.
3017         * tree-profile.c: Likewise.
3018         * tree-scalar-evolution.c: Likewise.
3019         * tree-sra.c: Likewise.
3020         * tree-ssa-address.c: Likewise.
3021         * tree-ssa-alias.c: Likewise.
3022         * tree-ssa-ccp.c: Likewise.
3023         * tree-ssa-coalesce.c: Likewise.
3024         * tree-ssa-copy.c: Likewise.
3025         * tree-ssa-copyrename.c: Likewise.
3026         * tree-ssa-dce.c: Likewise.
3027         * tree-ssa-dom.c: Likewise.
3028         * tree-ssa-dse.c: Likewise.
3029         * tree-ssa-forwprop.c: Likewise.
3030         * tree-ssa-ifcombine.c: Likewise.
3031         * tree-ssa-live.c: Likewise.
3032         * tree-ssa-loop-ch.c: Likewise.
3033         * tree-ssa-loop-im.c: Likewise.
3034         * tree-ssa-loop-ivcanon.c: Likewise.
3035         * tree-ssa-loop-ivopts.c: Likewise.
3036         * tree-ssa-loop-manip.c: Likewise.
3037         * tree-ssa-loop-niter.c: Likewise.
3038         * tree-ssa-loop-prefetch.c: Likewise.
3039         * tree-ssa-loop-unswitch.c: Likewise.
3040         * tree-ssa-loop.c: Likewise.
3041         * tree-ssa-math-opts.c: Likewise.
3042         * tree-ssa-operands.c: Likewise.
3043         * tree-ssa-phiopt.c: Likewise.
3044         * tree-ssa-phiprop.c: Likewise.
3045         * tree-ssa-pre.c: Likewise.
3046         * tree-ssa-propagate.c: Likewise.
3047         * tree-ssa-reassoc.c: Likewise.
3048         * tree-ssa-sccvn.c: Likewise.
3049         * tree-ssa-scopedtables.c: Likewise.
3050         * tree-ssa-sink.c: Likewise.
3051         * tree-ssa-strlen.c: Likewise.
3052         * tree-ssa-structalias.c: Likewise.
3053         * tree-ssa-tail-merge.c: Likewise.
3054         * tree-ssa-ter.c: Likewise.
3055         * tree-ssa-threadedge.c: Likewise.
3056         * tree-ssa-threadupdate.c: Likewise.
3057         * tree-ssa-uncprop.c: Likewise.
3058         * tree-ssa-uninit.c: Likewise.
3059         * tree-ssa.c: Likewise.
3060         * tree-ssanames.c: Likewise.
3061         * tree-stdarg.c: Likewise.
3062         * tree-streamer-in.c: Likewise.
3063         * tree-streamer-out.c: Likewise.
3064         * tree-streamer.c: Likewise.
3065         * tree-switch-conversion.c: Likewise.
3066         * tree-tailcall.c: Likewise.
3067         * tree-vect-data-refs.c: Likewise.
3068         * tree-vect-generic.c: Likewise.
3069         * tree-vect-loop-manip.c: Likewise.
3070         * tree-vect-loop.c: Likewise.
3071         * tree-vect-patterns.c: Likewise.
3072         * tree-vect-slp.c: Likewise.
3073         * tree-vect-stmts.c: Likewise.
3074         * tree-vectorizer.c: Likewise.
3075         * tree-vrp.c: Likewise.
3076         * tree.c: Likewise.
3077         * tsan.c: Likewise.
3078         * ubsan.c: Likewise.
3079         * valtrack.c: Likewise.
3080         * value-prof.c: Likewise.
3081         * var-tracking.c: Likewise.
3082         * varasm.c: Likewise.
3083         * varpool.c: Likewise.
3084         * vmsdbgout.c: Likewise.
3085         * vtable-verify.c: Likewise.
3086         * web.c: Likewise.
3087         * wide-int.cc: Likewise.
3088         * xcoffout.c: Likewise.
3089         * config/aarch64/aarch64-builtins.c: Likewise.
3090         * config/aarch64/aarch64.c: Likewise.
3091         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3092         * config/alpha/alpha.c: Likewise.
3093         * config/arc/arc.c: Likewise.
3094         * config/arm/aarch-common.c: Likewise.
3095         * config/arm/arm-builtins.c: Likewise.
3096         * config/arm/arm-c.c: Likewise.
3097         * config/arm/arm.c: Likewise.
3098         * config/avr/avr-c.c: Likewise.
3099         * config/avr/avr-log.c: Likewise.
3100         * config/avr/avr.c: Likewise.
3101         * config/bfin/bfin.c: Likewise.
3102         * config/c6x/c6x.c: Likewise.
3103         * config/cr16/cr16.c: Likewise.
3104         * config/cris/cris.c: Likewise.
3105         * config/darwin-c.c: Likewise.
3106         * config/darwin.c: Likewise.
3107         * config/epiphany/epiphany.c: Likewise.
3108         * config/epiphany/mode-switch-use.c: Likewise.
3109         * config/epiphany/resolve-sw-modes.c: Likewise.
3110         * config/fr30/fr30.c: Likewise.
3111         * config/frv/frv.c: Likewise.
3112         * config/ft32/ft32.c: Likewise.
3113         * config/h8300/h8300.c: Likewise.
3114         * config/i386/i386-c.c: Likewise.
3115         * config/i386/i386.c: Likewise.
3116         * config/i386/msformat-c.c: Likewise.
3117         * config/i386/winnt-cxx.c: Likewise.
3118         * config/i386/winnt-stubs.c: Likewise.
3119         * config/i386/winnt.c: Likewise.
3120         * config/ia64/ia64-c.c: Likewise.
3121         * config/ia64/ia64.c: Likewise.
3122         * config/iq2000/iq2000.c: Likewise.
3123         * config/lm32/lm32.c: Likewise.
3124         * config/m32c/m32c-pragma.c: Likewise.
3125         * config/m32c/m32c.c: Likewise.
3126         * config/m32r/m32r.c: Likewise.
3127         * config/m68k/m68k.c: Likewise.
3128         * config/mcore/mcore.c: Likewise.
3129         * config/mep/mep-pragma.c: Likewise.
3130         * config/mep/mep.c: Likewise.
3131         * config/microblaze/microblaze-c.c: Likewise.
3132         * config/microblaze/microblaze.c: Likewise.
3133         * config/mips/mips.c: Likewise.
3134         * config/mmix/mmix.c: Likewise.
3135         * config/mn10300/mn10300.c: Likewise.
3136         * config/moxie/moxie.c: Likewise.
3137         * config/msp430/msp430-c.c: Likewise.
3138         * config/msp430/msp430.c: Likewise.
3139         * config/nds32/nds32-cost.c: Likewise.
3140         * config/nds32/nds32-fp-as-gp.c: Likewise.
3141         * config/nds32/nds32-intrinsic.c: Likewise.
3142         * config/nds32/nds32-isr.c: Likewise.
3143         * config/nds32/nds32-md-auxiliary.c: Likewise.
3144         * config/nds32/nds32-memory-manipulation.c: Likewise.
3145         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3146         * config/nds32/nds32-predicates.c: Likewise.
3147         * config/nds32/nds32.c: Likewise.
3148         * config/nios2/nios2.c: Likewise.
3149         * config/nvptx/nvptx.c: Likewise.
3150         * config/pa/pa.c: Likewise.
3151         * config/pdp11/pdp11.c: Likewise.
3152         * config/rl78/rl78-c.c: Likewise.
3153         * config/rl78/rl78.c: Likewise.
3154         * config/rs6000/rs6000-c.c: Likewise.
3155         * config/rs6000/rs6000.c: Likewise.
3156         * config/rx/rx.c: Likewise.
3157         * config/s390/s390-c.c: Likewise.
3158         * config/s390/s390.c: Likewise.
3159         * config/sh/sh-c.c: Likewise.
3160         * config/sh/sh-mem.cc: Likewise.
3161         * config/sh/sh.c: Likewise.
3162         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3163         * config/sh/sh_treg_combine.cc: Likewise.
3164         * config/sol2-c.c: Likewise.
3165         * config/sol2-cxx.c: Likewise.
3166         * config/sol2-stubs.c: Likewise.
3167         * config/sol2.c: Likewise.
3168         * config/sparc/sparc-c.c: Likewise.
3169         * config/sparc/sparc.c: Likewise.
3170         * config/spu/spu-c.c: Likewise.
3171         * config/spu/spu.c: Likewise.
3172         * config/stormy16/stormy16.c: Likewise.
3173         * config/tilegx/mul-tables.c: Likewise.
3174         * config/tilegx/tilegx-c.c: Likewise.
3175         * config/tilegx/tilegx.c: Likewise.
3176         * config/tilepro/mul-tables.c: Likewise.
3177         * config/tilepro/tilepro-c.c: Likewise.
3178         * config/tilepro/tilepro.c: Likewise.
3179         * config/v850/v850-c.c: Likewise.
3180         * config/v850/v850.c: Likewise.
3181         * config/vax/vax.c: Likewise.
3182         * config/visium/visium.c: Likewise.
3183         * config/vms/vms-c.c: Likewise.
3184         * config/vms/vms.c: Likewise.
3185         * config/vxworks.c: Likewise.
3186         * config/xtensa/xtensa.c: Likewise.
3187
3188 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
3189
3190         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3191         Remove operand constraints.  Change operand 2 predicate to
3192         nonmemory operand.  Limit const_int values to mode bitsize.  Only
3193         allow const_int values less than 32 when optimizing for size.
3194         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3195         Remove operand constraints.
3196         (*bt<mode>): Use SImode for const_int values less than 32.
3197         (regmode): Remove mode attribute.
3198
3199 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
3200
3201         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3202         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3203           moxie_legitimate_address_p): New functions.
3204           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3205
3206 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3207
3208         PR tree-optimization/66642
3209         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3210         header comment.  Rename split_edge variable to edge_at_split.  Split
3211         exit edge to create new loop exit bb.  Insert loop exit phis in new
3212         loop exit bb.
3213
3214 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3215
3216         * tree-cfg.c (get_virtual_phi): New function.
3217         * tree-cfg.h (get_virtual_phi): Declare.
3218         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3219         (rewrite_virtuals_into_loop_closed_ssa): New function.
3220         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3221         Declare.
3222         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3223         (transform_to_exit_first_loop_alt): Use
3224         rewrite_virtuals_into_loop_closed_ssa.
3225
3226 2015-07-07  Richard Biener  <rguenther@suse.de>
3227
3228         * fold-const.c (fold_binary_loc): Move
3229         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3230         * match.pd: ... here.
3231         Add (X * C1) % C2 -> 0 simplification pattern derived from
3232         extract_muldiv_1.
3233
3234 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3235
3236         PR target/66780
3237         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3238         change for target/65249.
3239
3240 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
3241
3242         * symtab.c (address_matters_1): Fix typo in comment above.
3243         (can_increase_alignment_p): Likewise.
3244
3245 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3246
3247         * function.c (free_after_compilation): Clear PROP_cfg in
3248         f->curr_properties.
3249
3250 2015-07-07  Richard Biener  <rguenther@suse.de>
3251
3252         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3253         add which use to.
3254         (add_control_edge): Remove excessive vertical space in dumping.
3255         (process_ssa_edge_worklist): Simulate at most one statement and
3256         return whether we did.  Do not simulate PHIs if they are in a
3257         BB not yet simulated.
3258         (ssa_propagate): Adjust to always drain the BB worklist whenever
3259         a BB is available there, likewise the VARYING edges list before
3260         the interesting edge list.
3261
3262 2015-07-07  Christian Bruel  <christian.bruel@st.com>
3263
3264         PR target/52144
3265         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3266
3267 2015-07-07  Richard Biener  <rguenther@suse.de>
3268
3269         PR middle-end/66739
3270         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3271         A - B.
3272
3273 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
3274
3275         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
3276         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
3277         Copy operand 0 to a temporary if !ext_register_operand.  Remove
3278         ancient extract_bit_field workaround.
3279         (insv<mode>_1): Rename from mov<mode>_insv_1.
3280         (*insvqi): Rename from *movqi_insv_2.
3281         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3282         for renamed insvsi_1.
3283         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3284
3285 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3286
3287         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
3288         call to nvptx_reorg_subreg.
3289
3290 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
3291
3292         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3293         * graphite-dependencies.c, graphite-interchange.c,
3294         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3295         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3296         Likewise.
3297
3298 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
3299
3300         * match.pd: Remove element_mode inside HONOR_*.
3301         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3302         (~X | X -> -1, ~X ^ X -> -1): Merge.
3303         * tree.c (build_each_one_cst): New function.
3304         * tree.h (build_each_one_cst): Likewise.
3305
3306 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3307
3308         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3309         PROCESSOR_IAMCU.
3310
3311 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
3312
3313         * config.gcc <mips*-*-*>: Add fused-madd.opt.
3314         * config/mips/mips.opt (mfused-madd): Remove.
3315         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3316         * config/mips/mips.h (TARGET_MIPS8000): New.
3317         (ISA_HAS_FP_MADD4_MSUB4): Remove.
3318         (ISA_HAS_FP_MADDF_MSUBF): Remove.
3319         (ISA_HAS_FP_MADD3_MSUB3): Remove.
3320         (ISA_HAS_NMADD4_NMSUB4): Remove.
3321         (ISA_HAS_NMADD3_NMSUB3): Remove.
3322         (ISA_HAS_FUSED_MADD4): New.
3323         (ISA_HAS_UNFUSED_MADD4): New.
3324         (ISA_HAS_FUSED_MADDF): New.
3325         (ISA_HAS_FUSED_MADD3): New.
3326         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3327         (*fma<mode>4_madd3) New.
3328         (*fma<mode>4_madd4) New.
3329         (*fma<mode>4_maddf) New.
3330         (fms<mode>4) New.
3331         (*fms<mode>4_msub3) New.
3332         (*fms<mode>4_msub4) New.
3333         (fnma<mode>4) New.
3334         (*fnma<mode>4_nmadd3) New.
3335         (*fnma<mode>4_nmadd4) New.
3336         (fnms<mode>4) New.
3337         (*fnms<mode>4_nmsub3) New.
3338         (*fnms<mode>4_nmsub4) New.
3339         (*madd4<mode>) Modify to be unfused only.
3340         (*msub4<mode>) Modify to be unfused only.
3341         (*nmadd4<mode>) Modify to be unfused only.
3342         (*nmsub4<mode>) Modify to be unfused only.
3343         (*madd3<mode>) Remove.
3344         (*msub3<mode>) Remove.
3345         (*nmadd3<mode>) Remove.
3346         (*nmsub3<mode>) Remove.
3347         (*nmadd3<mode>_fastmath) Remove.
3348         (*nmsub3<mode>_fastmath) Remove.
3349         (*nmadd4<mode>_fastmath) Update condition.
3350         (*nmsub4<mode>_fastmath) Update condition.
3351
3352 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
3353
3354         PR target/65956
3355         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3356         alignment attribute, exploring one level down for records and arrays.
3357
3358 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
3359
3360         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
3361         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
3362         Copy operand 1 to a temporary if !ext_register_operand.  Remove
3363         ancient extract_bit_field workaround.
3364         (*extv<mode>): Rename from *mov<mode>_extv_1.
3365         (*extvqi): Rename from *movqi_extv_1.
3366         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
3367         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
3368         to a temporary if !ext_register_operand.  Remove ancient
3369         extract_bit_field workaround.
3370         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3371         (*extzvqi): Rename from *movqi_extzv_2.
3372         (*testqi_ext_3): Remove modes from const_int_operand predicated
3373         operands.  Add "n" constraint.
3374         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3375         operand.  Add "J" constraint.
3376         (*btsq, *btrq, *btcq peephole2s): Remove mode from
3377         const_0_to_63 predicated operand.
3378         (regmode): New insn attribute.
3379         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
3380         to nonmemory_operand.  Use regmode insn attribute.
3381         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3382         (*jcc_bt<mode>_mask): Remove mode from operand 3.
3383         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3384         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3385         operands.  Use "N" constraint instead of "n".
3386
3387 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
3388
3389         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3390
3391 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3392
3393         PR target/66749
3394         * config/i386/i386.c (iamcu_cost): New.
3395         (m_IAMCU): Likewise.
3396         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3397         (processor_target_table): Add an entry for "iamcu".
3398         (processor_alias_table): Likewise.
3399         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3400         (ix86_adjust_cost): Likewise.
3401         (ia32_multipass_dfa_lookahead): Likewise.
3402         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3403         * config/i386/x86-tune.def: Updated for m_IAMCU.
3404
3405 2015-07-06  Richard Biener  <rguenther@suse.de>
3406
3407         PR tree-optimization/66772
3408         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3409         values are available in the PHI node BB when there are
3410         still unexecutable edges.
3411
3412 2015-07-06  Richard Biener  <rguenther@suse.de>
3413
3414         PR tree-optimization/66767
3415         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3416         Make sure to build the alignment test on a SSA name without
3417         final alignment info valid only if the alignment test
3418         evaluates to true.
3419
3420 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3421
3422         PR target/66620
3423         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3424         loop start when inserting LSETUP.
3425
3426 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3427
3428         PR target/53383
3429         * config/i386/i386.c (ix86_option_override_internal): Allow
3430         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3431
3432 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3433
3434         * read-md.c (decimal_string): Rename to ...
3435         (md_decimal_string): ... this.
3436         (handle_enum): Reflect this.
3437
3438 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3439
3440         PR target/66731
3441         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3442
3443 2015-07-06  Richard Biener  <rguenther@suse.de>
3444
3445         PR middle-end/66759
3446         * match.pd: Add missing constraint of y to REAL_CST in
3447         REAL_CST - x CMP y to y - CST CMP x simplification.
3448
3449 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
3450
3451         PR tree-optimization/66757
3452         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3453
3454 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
3455             Sandra Loosemore <sandra@codesourcery.com>
3456
3457         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3458         Delete extern declaration.
3459         (gprel_constant_p): Add extern declaration.
3460         * config/nios2/constraints.md ("S"): Use gprel_constant_p
3461         instead of nios2_symbol_ref_in_small_data_p.
3462         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3463         (nios2_symbol_ref_in_small_data_p): Make static.
3464         (gprel_constant_p): Make non-static.
3465
3466 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
3467
3468         * doc/fragments.texi (Target Fragment): Convert debian.org
3469         link to use https.
3470         * doc/install.texi (Configuration): Ditto.
3471
3472 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
3473
3474         PR tree-optimization/66718
3475         * tree-vect-stmts.c (vectorizable_call): Replace uses of
3476         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3477
3478         PR tree-optimization/66718
3479         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3480         vectorizable_load, vectorizable_condition): Move vectype,
3481         nunits, ncopies computation after checking what kind of statement
3482         stmt is.
3483
3484 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3485
3486         * target-insns.def (extv, extzv, insv): New targetm instruction
3487         patterns.
3488         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3489         interface.
3490         * recog.c (simplify_while_replacing): Likewise.
3491
3492 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3493
3494         * target-insns.def (doloop_begin, doloop_end): New targetm
3495         instruction patterns.
3496         * loop-init.c: Include target.h.
3497         (pass_loop2::gate): Use the new targetm patterns instead of
3498         HAVE_*/gen_* interface.
3499         (pass_rtl_doloop::gate): Likewise.
3500         (pass_rtl_doloop::execute): Remove preprocessor condition.
3501         * hw-doloop.c: Build unconditionally.
3502         * loop-doloop.c: Likewise.
3503         (doloop_optimize): Use the new targetm patterns instead of
3504         HAVE_*/gen_* interface.
3505         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3506         * modulo-sched.c (doloop_register_get): Likewise.
3507
3508 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3509
3510         * target-insns.def (clear_cache): New targetm instruction pattern.
3511         * builtins.c (expand_builtin___clear_cache): Use it instead of
3512         HAVE_*/gen_* interface.
3513
3514 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3515
3516         * target-insns.def (allocate_stack, check_stack, probe_stack)
3517         (probe_stack_address, split_stack_prologue, split_stack_space_check):
3518         New targetm instruction patterns.
3519         * explow.c (allocate_dynamic_stack_space): Use them instead of
3520         HAVE_*/gen_* interface.
3521         (emit_stack_probe): Likewise.
3522         (probe_stack_range): Likewise.
3523         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3524
3525 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3526
3527         * target-insns.def (stack_protect_set, stack_protect_test): New
3528         targetm instruction patterns.
3529         * cfgexpand.c (stack_protect_prologue): Use them instead of
3530         HAVE_*/gen_* interface.
3531         * function.c (stack_protect_epilogue): Likewise.
3532
3533 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3534
3535         * expr.h (gen_move_insn_uncast): Delete.
3536         * expr.c (gen_move_insn_uncast): Delete.
3537
3538 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3539
3540         * target-insns.def (restore_stack_block, restore_stack_function)
3541         (restore_stack_nonlocal, save_stack_block, save_stack_function)
3542         (save_stack_nonlocal): New targetm instruction patterns.
3543         * builtins.c (expand_builtin_apply): Use them instead of
3544         HAVE_*/gen_* interface.
3545         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3546
3547 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3548
3549         * target-insns.def (trap): New targetm instruction pattern.
3550         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3551         interface.
3552         * explow.c (allocate_dynamic_stack_space): Likewise.
3553         * ifcvt.c (find_if_header): Likewise.
3554
3555 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3556
3557         * target-insns.def (prefetch): New targetm instruction pattern.
3558         * tree-ssa-loop-prefetch.c: Include targeth.
3559         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3560         of HAVE_*/gen_* interface.
3561         * builtins.c (expand_builtin_prefetch): Likewise.
3562         * toplev.c (process_options): Likewise.
3563
3564 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3565
3566         * target-insns.def (untyped_call, untyped_return): New targetm
3567         instruction patterns.
3568         * builtins.c (expand_builtin_apply): Use them instead of
3569         HAVE_*/gen_* interface.
3570         (result_vector): Define unconditionally.
3571
3572 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3573
3574         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3575         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3576         (nonlocal_goto_receiver): New targetm instruction patterns.
3577         * builtins.c (expand_builtin_setjmp_setup): Use them instead
3578         of HAVE_*/gen_* interface.
3579         (expand_builtin_setjmp_receiver): Likewise.
3580         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3581         * except.c (expand_dw2_landing_pad_for_region): Likewise.
3582
3583 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3584
3585         * target.def: Add code_for_* hooks.
3586         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3587         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3588         * target-insns.def (casesi, tablejump): New targetm instruction
3589         patterns.
3590         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3591         (do_tablejump): Likewise.
3592         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3593         (expand_sjlj_dispatch_table): Likewise.
3594         * targhooks.c (default_case_values_threshold): Likewise.
3595
3596 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
3597
3598         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3599         Use rtx_insn * instead of rtx.
3600         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3601         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3602         (nios2_call_tls_get_addr): Likewise.
3603         (nios2_emit_expensive_div): Likewise.
3604         (nios2_emit_move_sequence): Change return type to bool.
3605         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3606         Change return type to bool.
3607
3608 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3609
3610         PR target/66747
3611         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3612
3613 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
3614
3615         PR target/66114
3616         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3617         of register_operand.  Remove constraint.
3618
3619 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
3620
3621         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3622         the first argument.
3623
3624 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
3625
3626         * attribs.c (decl_attributes): Guard inform with the return value
3627         of the preceding warning.
3628
3629 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3630
3631         * doc/invoke.texi (moverride): Move to correct section.
3632
3633 2015-07-03  Richard Biener  <rguenther@suse.de>
3634
3635         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3636         Copy from tree.c
3637         (dt_operand::gen_gimple_expr): After valueizing operands
3638         re-canonicalize operand order for commutative tree codes.
3639
3640 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3641
3642         PR target/66746.
3643         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3644         is defined.
3645         (__crc32w): Likewise.
3646         (__crc32d): Likewise.
3647         (__rdpmc): Likewise.
3648         (__rdtscp): Likewise.
3649         (_rdpmc): Likewise.
3650         (_rdtscp): Likewise.
3651         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3652         is defined.
3653
3654 2015-07-03  Richard Biener  <rguenther@suse.de>
3655
3656         * fold-const.c (fold_mathfn_compare): Remove.
3657         (fold_inf_compare): Likewise.
3658         (fold_comparison): Move floating point comparison simplifications...
3659         * match.pd: ... to patterns here.  Introduce simple_comparisons
3660         operator list and use it for patterns formerly in fold_comparison.
3661
3662 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3663
3664         PR tree-optimization/66119
3665         * toplev.c (process_options): Don't set up default values for
3666         the sra_max_scalarization_size_{speed,size} parameters.
3667         * tree-sra (analyze_all_variable_accesses): If no values
3668         have been set for the sra_max_scalarization_size_{speed,size}
3669         parameters, call get_move_ratio to get target defaults.
3670
3671 2015-07-03  Richard Biener  <rguenther@suse.de>
3672
3673         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3674         * match.pd: ... here.
3675
3676 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
3677
3678         PR target/37072
3679         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3680         is not actually the default on FreeBSD.
3681
3682 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3683
3684         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3685         definition.
3686         (CMPGE_8HI): Likewise.
3687         (CMPGE_4SI): Likewise.
3688         (CMPGE_2DI): Likewise.
3689         (CMPGE_U16QI): Likewise.
3690         (CMPGE_U8HI): Likewise.
3691         (CMPGE_U4SI): Likewise.
3692         (CMPGE_U2DI): Likewise.
3693         (CMPLE_16QI): Likewise.
3694         (CMPLE_8HI): Likewise.
3695         (CMPLE_4SI): Likewise.
3696         (CMPLE_2DI): Likewise.
3697         (CMPLE_U16QI): Likewise.
3698         (CMPLE_U8HI): Likewise.
3699         (CMPLE_U4SI): Likewise.
3700         (CMPLE_U2DI): Likewise.
3701         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3702         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3703         ALTIVEC_BUILTIN_VEC_CMPLE.
3704         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3705         floating-point vector modes.
3706         (vector_nlt<mode>): New define_expand.
3707         (vector_nltu<mode>): Likewise.
3708         (vector_ngt<mode>): Likewise.
3709         (vector_ngtu<mode>): Likewise.
3710
3711 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
3712
3713         PR rtl-optimization/66706
3714         * combine.c (make_compound_operation): If an AND of SUBREG of
3715         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3716
3717 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
3718
3719         * tree-pass.h (make_pass_ch_vect): New.
3720         * passes.def: Add pass_ch_vect just before pass_if_conversion.
3721
3722         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3723         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3724         make_pass_ch_vect): New.
3725         (pass_ch): Extend ch_base.
3726
3727         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3728         (ch_base::copy_headers): ...here.
3729
3730 2015-07-02  Richard Biener  <rguenther@suse.de>
3731
3732         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3733         * fold-const.c (get_pointer_modulus_and_residue): Remove.
3734         (fold_binary_loc): Implement (T)ptr & CST in terms of
3735         get_pointer_alignment_1.
3736         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3737         Make sure to build the alignment test on a SSA name without
3738         final alignment info valid only after the prologue.
3739
3740 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
3741
3742         * config/cris/cris.md ("epilogue"): Remove condition.
3743         ("prologue"): Ditto.
3744
3745 2015-07-02  Richard Biener  <rguenther@suse.de>
3746
3747         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3748         parameter to record a condition that is false.
3749         (record_conditions): When recording an extra NE_EXPR that is
3750         true also record a EQ_EXPR that is false.
3751
3752 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
3753
3754         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3755         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3756         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
3757         (set_iv, find_interesting_uses_address, add_candidate_1): New
3758         argument to alloc_iv.
3759         (find_interesting_uses_op, find_interesting_uses_cond): Don't
3760         duplicate struct iv.
3761         (free_loop_data): Don't free struct iv explicitly.
3762         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3763
3764 2015-07-01  DJ Delorie  <dj@redhat.com>
3765
3766         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3767         (LIB_SPEC): Add.
3768         (SUPPORTS_DISCRIMINATOR): Define.
3769
3770 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3771
3772         PR bootstrap/66685
3773         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3774         there are no CALLs in the same pattern.
3775
3776 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3777
3778         PR rtl-optimization/61047
3779         * rtlanal.c (get_initial_register_offset): New function.
3780         (rtx_addr_can_trap_p_1): Check offsets of stack references.
3781
3782 2015-07-01  Richard Biener  <rguenther@suse.de>
3783
3784         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3785         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3786         ~X CMP C -> X CMP' ~C to ...
3787         * match.pd: ... patterns here.
3788
3789 2015-07-01  Nick Clifton  <nickc@redhat.com>
3790
3791         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3792         a 16-bit value into a 20-bit memory slot.
3793
3794 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3795
3796         * doc/sourcebuild.texi (AArch64-specific attributes): Document
3797         "aarch64_tiny", "aarch64_small", "aarch64_large",
3798         "aarch64_little_endian", "aarch64_big_endian".
3799
3800 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3801
3802         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3803         Document "aarch64_small_fpic".
3804
3805 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3806
3807         * configure.ac: Add check for aarch64 assembler -fpic relocation
3808         modifier support.
3809         * configure: Regenerate.
3810         * config.in: Regenerate.
3811         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3812         to -fPIC if not support of -fpic relocation modifier in assembler.
3813
3814 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3815
3816         PR bootstrap/66685
3817         * rtl.c (classify_insn): Handle returns in PARALLELs.
3818
3819 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3820
3821         PR middle-end/66633
3822         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3823         to true if the function is nested and if not optimizing.
3824         (convert_local_omp_clauses): Initialize need_frame to true if the
3825         function contains nested functions and if not optimizing.
3826
3827 2015-07-01  Richard Biener  <rguenther@suse.de>
3828
3829         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3830         (X & Y) ^ Y -> ~X & Y transforms to ...
3831         * match.pd: ... here.
3832
3833 2015-07-01  Richard Biener <rguenther@suse.de>
3834
3835         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3836         of converts to avoid uninteresting noise from the conversion
3837         simplifying patterns.
3838
3839 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
3840
3841         * config/c6x/c6x.c (try_rename_operands): Do not depend on
3842         gcc_assert evaluating its argument for side-effect.
3843
3844 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3845
3846         PR target/64833
3847         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3848         flag_pic is set.
3849
3850 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3851
3852         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3853         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3854         (hash_scc): Add this_ref_p and ref_p parameters and pass them
3855         to the inner DFS walk.
3856
3857 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3858
3859         * target-insns.def (jump): New targetm instruction pattern.
3860         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3861         instead of gen_jump.
3862         (fix_up_crossing_landing_pad): Likewise.
3863         (add_labels_and_missing_jumps): Likewise.
3864         (fix_crossing_conditional_branches): Likewise.
3865         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3866         (force_nonfallthru_and_redirect): Likewise.
3867         * cse.c (cse_insn): Likewise.
3868         * expmed.c (expand_divmod): Likewise.
3869         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3870         * haifa-sched.c (init_before_recovery): Likewise.
3871         (sched_create_recovery_edges): Likewise.
3872         * ifcvt.c (find_cond_trap): Likewise.
3873         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3874         (expand_float, expand_fix): Likewise.
3875         * stmt.c (emit_jump): Likewise.
3876
3877 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3878
3879         * defaults.h (HAVE_load_multiple, gen_load_multiple)
3880         (HAVE_store_multiple, gen_store_multiple): Delete.
3881         * target-insns.def (load_multiple, store_multiple): New targetm
3882         instruction patterns.
3883         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3884         of HAVE_*/gen_* interface.
3885
3886 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3887
3888         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3889         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3890         (gen_mem_signal_fence): Delete.
3891         * target-insns.def (mem_signal_fence, mem_thread_fence)
3892         (memory_barrier): New targetm instruction patterns.
3893         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3894         interface.
3895         (expand_mem_signal_fence): Likewise.
3896
3897 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3898
3899         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3900         * target-insns.def (epilogue, prologue, sibcall_prologue): New
3901         targetm instruction patterns.
3902         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3903         interface.
3904         * calls.c (expand_call): Likewise.
3905         * cfgrtl.c (cfg_layout_finalize): Likewise.
3906         * df-scan.c (df_get_entry_block_def_set): Likewise.
3907         (df_get_exit_block_use_set): Likewise.
3908         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3909         * final.c (final_start_function): Likewise.
3910         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3911         (reposition_prologue_and_epilogue_notes): Likewise.
3912         * reorg.c (find_end_label): Likewise.
3913         * toplev.c (process_options): Likewise.
3914
3915 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
3916
3917         * typed-splay-tree.h: New file.
3918
3919 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
3920
3921         PR debug/66691
3922         * lra-int.h (lra_substitute_pseudo): Add a parameter.
3923         (lra_substitute_pseudo_within_insn): Ditto.
3924         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
3925         of constant.
3926         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
3927         to lra_substitute_pseudo.
3928         * lra-lives.c (process_bb_lives): Add an argument to
3929         lra_substitute_pseudo_within_insn call.
3930         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3931         argument to lra_substitute_pseudo and
3932         lra_substitute_pseudo_within_insn calls.
3933         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3934
3935 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3936
3937         * configure: Regenerated.
3938
3939 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3940
3941         * config.gcc: Support i[34567]86-*-elfiamcu target.
3942         * config/i386/iamcu.h: New.
3943         * config/i386/i386.opt: Add -miamcu.
3944         * doc/invoke.texi: Document -miamcu.
3945         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
3946         off x87/MMX/SSE/AVX codegen for -miamcu.
3947         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3948         __iamcu/__iamcu__ for -miamcu.
3949         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3950         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3951         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3952         * config/i386/i386.c (ix86_option_override_internal): Ignore and
3953         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
3954         MCU by default.  Default long double to 64-bit for Intel MCU.
3955         Turn on -freg-struct-return for Intel MCU.  Issue an error when
3956         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3957         AVX is turned on.
3958         (function_arg_advance_32): Pass value whose size is no larger
3959         than 8 bytes in registers for Intel MCU.
3960         (function_arg_32): Likewise.
3961         (ix86_return_in_memory): Return value whose size is no larger
3962         than 8 bytes in registers for Intel MCU.
3963         (iamcu_alignment): New function.
3964         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3965         true.
3966         (ix86_local_alignment): Don't increase alignment for Intel MCU.
3967         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3968         true.
3969
3970 2015-06-30  Marek Polacek  <polacek@redhat.com>
3971
3972         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
3973         both operands of the resulting expression.
3974
3975         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
3976         the final expression with the operand's type and then convert
3977         it to the type of the expression.
3978
3979 2015-06-30  Richard Biener  <rguenther@suse.de>
3980
3981         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3982         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3983         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3984         * match.pd: ... to patterns here.
3985
3986 2015-06-30  Richard Biener  <rguenther@suse.de>
3987
3988         PR tree-optimization/66704
3989         * tree-vect-data-refs.c (vect_setup_realignment): Use
3990         make_ssa_name for non-SSA name source.
3991
3992 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
3993
3994         PR middle-end/66702
3995         * omp-low.c (simd_clone_adjust): Handle addressable linear
3996         or uniform parameters or non-gimple type uniform parameters.
3997
3998 2015-06-30  Richard Biener  <rguenther@suse.de>
3999
4000         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
4001         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
4002         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
4003         * match.pd: ... here.
4004         Add a few cases of A - B -> A + (-B) when B "easily" negates.
4005         Move (x & y) | x -> x and friends before
4006         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
4007
4008 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4009
4010         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
4011         -mfix-ut699 is not specified.
4012         (leon3_load): Rename into...
4013         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
4014         is specified.
4015
4016 2015-06-30  Marek Polacek  <polacek@redhat.com>
4017
4018         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
4019         * match.pd: ... here.
4020
4021 2015-06-30  Richard Biener  <rguenther@suse.de>
4022
4023         * target-insns.def (canonicalize_funcptr_for_compare): Add.
4024         * fold-const.c (build_range_check): Replace uses of
4025         HAVE_canonicalize_funcptr_for_compare.
4026         (fold_widened_comparison): Likewise.
4027         (fold_sign_changed_comparison): Likewise.
4028         * dojump.c: Include "target.h".
4029         (do_compare_and_jump): Replace uses of
4030         HAVE_canonicalize_funcptr_for_compare and
4031         gen_canonicalize_funcptr_for_compare.
4032         * expr.c (do_store_flag): Likewise.
4033
4034 2015-06-30  Tom de Vries  <tom@codesourcery.com>
4035
4036         PR tree-optimization/66652
4037         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4038         max_loop_iterations to determine if nit + 1 overflows.
4039
4040 2015-06-30  Richard Biener  <rguenther@suse.de>
4041
4042         * tree-vrp.c (register_edge_assert_for_2): Also register
4043         asserts for dominating conversion results.
4044
4045 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
4046
4047         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4048         field in struct iv.
4049
4050 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
4051
4052         PR target/66509
4053         * configure.ac: Fix filds and fildq test for 64-bit.
4054         * configure: Regenerated.
4055
4056 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
4057
4058         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4059         (nvptx_reorg): Here.  Keep the non-subreg pieces.
4060
4061 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4064         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4065
4066 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
4067
4068         * config/i386/i386.md (*jcc_1): Use %! in asm template.
4069         Set attribute "length_nobnd" instead of "length".
4070         (*jcc_2): Ditto.
4071         (jump): Ditto.
4072         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4073
4074 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
4075
4076         * config/nios2/nios2.c (nios2_delegitimize_address): Make
4077         assert less restrictive.
4078
4079 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4080
4081         PR fortran/66605
4082         * cgraphunit.c (cgraph_node::finalize_function): Do not call
4083         do_warn_unused_parameter.
4084         * function.c (do_warn_unused_parameter): Move from here.
4085         * function.h (do_warn_unused_parameter): Do not declare.
4086
4087 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4088
4089         PR target/65697
4090         * gcc.target/arm/armv-sync-comp-swap.c: New.
4091         * gcc.target/arm/armv-sync-op-acquire.c: New.
4092         * gcc.target/arm/armv-sync-op-full.c: New.
4093         * gcc.target/arm/armv-sync-op-release.c: New.
4094
4095 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4096
4097         PR target/65697
4098         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4099         initial acquire barrier with final barrier.
4100
4101 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4102
4103         PR target/65697
4104         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4105         initial acquire barrier with final barrier.
4106
4107 2015-06-29  Richard Henderson  <rth@redhat.com>
4108
4109         * config/i386/constraints.md (Bf): New constraint.
4110         * config/i386/i386-c.c (ix86_target_macros): Define
4111         __GCC_ASM_FLAG_OUTPUTS__.
4112         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4113         as flags outputs.
4114         * doc/extend.texi (FlagOutputOperands): Document them.
4115
4116 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
4117
4118         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4119         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4120         unspec name.
4121         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4122         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4123         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4124         (aarch64_symbol_context): Ditto.
4125         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4126         and use new pattern name.
4127         (aarch64_expand_mov_immediate): Ditto.
4128         (aarch64_print_operand): Ditto.
4129         (aarch64_classify_tls_symbol): Ditto.
4130
4131 2015-06-29  Marek Polacek  <polacek@redhat.com>
4132             Marc Glisse  <marc.glisse@inria.fr>
4133
4134         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4135         * match.pd: ... pattern here.
4136
4137 2015-06-29  Tom de Vries  <tom@codesourcery.com>
4138
4139         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4140         function structure.
4141
4142 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4143
4144         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4145         feature description, split out the native option, add a link to
4146         the feature documentation, rearrange and slightly rewrite text.
4147         (Aarch64 options, -mcpu): Likewise.
4148         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
4149         +rdma implies Adv. SIMD.
4150
4151 2015-06-29  Marek Polacek  <polacek@redhat.com>
4152
4153         PR c/66322
4154         * function.c (stack_protect_epilogue): Remove a cast to int.
4155         * doc/invoke.texi: Update -Wswitch-bool description.
4156
4157 2015-06-29  Richard Biener  <rguenther@suse.de>
4158
4159         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4160         * fold-const.c (fold_binary_loc): Move &A - &B simplification
4161         via ptr_difference_const ...
4162         * match.pd: ... here.
4163         When matching (X ^ Y) == Y also match with swapped operands.
4164
4165 2015-06-29  Richard Biener  <rguenther@suse.de>
4166
4167         * lto-streamer.h (LTO_major_version): Bump to 5.
4168
4169 2015-06-29  Richard Biener  <rguenther@suse.de>
4170
4171         PR tree-optimization/66677
4172         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4173         STMT_VINFO_VEC_STMT clobbering less strict.
4174
4175 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
4176
4177         PR middle-end/64130
4178         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4179         division, compute max and min when value ranges for dividend and
4180         divisor are available.
4181
4182 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
4183             Sandra Loosemore <sandra@codesourcery.com>
4184
4185         * regrename.h (regrename_do_replace): Change to return bool.
4186         * regrename.c (rename_chains): Check return value of
4187         regname_do_replace.
4188         (regrename_do_replace): Re-validate the modified insns and
4189         return bool status.
4190         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4191         Update to match rename_chains changes.
4192         * config/c6x/c6x.c (try_rename_operands): Assert that
4193         regrename_do_replace returns true.
4194
4195 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
4196
4197         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4198         operand 2 here.  Use copy_addr_to_reg to copy non-index
4199         register operand 2 to a temporary.
4200         (<mode>_stx): Ditto for operand 1.
4201         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4202         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4203         (ix86_store_bounds): Ditto.
4204
4205 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
4206
4207         * print-tree.c (print_node) [TREE_VEC]: Print its length.
4208
4209 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
4210
4211         * gimple.c (gimple_call_set_fndecl): Remove.
4212         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4213         build1_loc directly instead of build_fold_addr_expr_loc.
4214
4215 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
4216
4217         * hash-map.h (hash_map::traverse): Use the definition of the
4218         Key typedef rather than the typedef itself.
4219
4220 2015-06-26  Martin Jambor  <mjambor@suse.cz>
4221
4222         PR debug/66301
4223         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4224         NULL instead of calling dump_enabled_p.
4225
4226 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4227
4228         * config/aarch64/aarch64.opt: (override): New.
4229         * doc/invoke.texi (override): Document.
4230         * config/aarch64/aarch64.c (aarch64_flag_desc): New
4231         (aarch64_fusible_pairs): Likewise.
4232         (aarch64_tuning_flags): Likewise.
4233         (aarch64_tuning_override_function): Likewise.
4234         (aarch64_tuning_override_functions): Likewise.
4235         (aarch64_parse_one_option_token): Likewise.
4236         (aarch64_parse_boolean_options): Likewise.
4237         (aarch64_parse_fuse_string): Likewise.
4238         (aarch64_parse_tune_string): Likewise.
4239         (aarch64_parse_one_override_token): Likewise.
4240         (aarch64_parse_override_string): Likewise.
4241         (aarch64_override_options): Parse the -override string if it
4242         is present.
4243
4244 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4245
4246         * config/aarch64/aarch64-protos.h (tune_params): Remove
4247         const from members.
4248         (aarch64_tune_params): Remove const, change to no longer be
4249         a pointer.
4250         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4251         change to no longer be a pointer, initialize to generic_tunings.
4252         (aarch64_min_divisions_for_recip_mul): Change dereference of
4253         aarch64_tune_params to member access.
4254         (aarch64_reassociation_width): Likewise.
4255         (aarch64_rtx_mult_cost): Likewise.
4256         (aarch64_address_cost): Likewise.
4257         (aarch64_branch_cost): Likewise.
4258         (aarch64_rtx_costs): Likewise.
4259         (aarch64_register_move_cost): Likewise.
4260         (aarch64_memory_move_cost): Likewise.
4261         (aarch64_sched_issue_rate): Likewise.
4262         (aarch64_builtin_vectorization_cost): Likewise.
4263         (aarch64_override_options): Take a copy of the selected tuning
4264         struct in to aarch64_tune_params, rather than just setting
4265         a pointer, change dereferences of aarch64_tune_params to member
4266         accesses.
4267         (aarch64_override_options_after_change): Change dereferences of
4268         aarch64_tune_params to member access.
4269         (aarch64_macro_fusion_p): Likewise.
4270         (aarch_macro_fusion_pair_p): Likewise.
4271         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4272
4273 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4274
4275         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4276         (aarch64_tune_flags): Likewise.
4277         (AARCH64_TUNE_FMA_STEERING): Likewise.
4278         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4279         to AARCH64_FL_USE_FMA_STEERING_PASS.
4280         (cortex-a57.cortex-a53): Likewise.
4281         (cortex-a72): Use cortexa72_tunings.
4282         (cortex-a72.cortex-a53): Likewise.
4283         (exynos-m1): Likewise.
4284         * config/aarch64/aarch64-protos.h (tune_params): Add
4285         a field: extra_tuning_flags.
4286         * config/aarch64/aarch64-tuning-flags.def: New.
4287         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4288         (aarch64_extra_tuning_flags): Likewise.
4289         (aarch64_tune_params): Declare here.
4290         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4291         (cortexa53_tunings): Likewise.
4292         (cortexa57_tunings): Likewise.
4293         (thunderx_tunings): Likewise.
4294         (xgene1_tunings): Likewise.
4295         (cortexa72_tunings): New.
4296         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4297          (gate): Check against aarch64_tune_params.
4298         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4299         aarch64-protos.h.
4300
4301 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4302
4303         * config/aarch64/aarch64-fusion-pairs.def: New.
4304         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4305         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4306         aarch64_fusion_pairs.
4307         (AARCH64_FUSE_MOV_MOVK): Likewise.
4308         (AARCH64_FUSE_ADRP_ADD): Likewise.
4309         (AARCH64_FUSE_MOVK_MOVK): Likewise.
4310         (AARCH64_FUSE_ADRP_LDR): Likewise.
4311         (AARCH64_FUSE_CMP_BRANCH): Likewise.
4312
4313 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4314
4315         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4316         SYMBOL_SMALL_GOT_28K.
4317         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4318         relocation modifiers.
4319         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4320         (ldr_got_small_28k_<mode>): New.
4321         (ldr_got_small_28k_sidi): New.
4322         * config/aarch64/iterators.md (got_modifier): New mode iterator.
4323         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4324         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4325         SYMBOL_SMALL_GOT_28K.
4326         (aarch64_rtx_costs): Add costs for new instruction sequences.
4327         (initialize_aarch64_code_model): Initialize new model.
4328         (aarch64_classify_symbol): Recognize new model and new symbol classification.
4329         (aarch64_asm_preferred_eh_data_format): Support new model.
4330         (aarch64_load_symref_appropriately): Generate new instruction
4331         sequences for -fpic.
4332         (TARGET_USE_PSEUDO_PIC_REG): New definition.
4333         (aarch64_use_pseudo_pic_reg): New function.
4334
4335 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4336
4337         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4338         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4339         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4340         (aarch64_expand_mov_immediate): Ditto.
4341         (aarch64_print_operand): Ditto.
4342         (aarch64_classify_symbol): Ditto.
4343
4344 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
4345
4346         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4347
4348 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
4349
4350         PR bootstrap/66638
4351         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4352         assertion failed.  Remove assertion itself.
4353
4354 2015-06-26  Richard Biener  <rguenther@suse.de>
4355
4356         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4357         and -A CMP CST -> A CMP -CST which is redundant with a pattern
4358         in match.pd.
4359         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4360         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4361         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4362         * match.pd: ... patterns here.
4363
4364 2015-06-26  Marek Polacek  <polacek@redhat.com>
4365
4366         * match.pd ((x | y) & ~(x & y) -> x ^ y,
4367         (x | y) & (~x ^ y) -> x & y): New patterns.
4368
4369 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
4370
4371         * rtl.h (emit): Add an optional boolean parameter to control
4372         whether barriers are emitted.
4373         * emit-rtl.c (emit): Likewise.
4374         * gensupport.c (get_emit_function): Return null rather than "emit".
4375         * genemit.c (gen_emit_seq): Handle the null return value.
4376         Don't emit barriers after the final instruction in the sequence.
4377         * gentarget-def.c (main): Don't emit barriers after the instruction.
4378
4379 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4380
4381         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4382         TARGET_UNIFIED_ASM.
4383
4384 2015-06-26  Richard Biener  <rguenther@suse.de>
4385
4386         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4387
4388 2015-06-26  Richard Biener  <rguenther@suse.de>
4389
4390         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4391         irrespective on whether the inner operation has a single use
4392         of both off are constant.
4393
4394 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
4395             Segher Boessenkool  <segher@kernel.crashing.org>
4396
4397         PR target/66412
4398         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4399         before doing PUT_MODE or PUT_CODE on operands to avoid
4400         in-place RTX modification.
4401
4402 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4403
4404         * gentarget-def.c (def_target_insn): Cast return of strtol to
4405         unsigned int.
4406
4407 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4408
4409         * gimple.h (gimple_call_set_fn): Move inline function.
4410         * gimple.c (gimple_call_set_fn): Relocate here.
4411
4412 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
4413
4414         PR target/65979
4415         PR target/66611
4416         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4417         the replacement insn will work.
4418
4419 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4420
4421         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4422         by default.
4423
4424 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4425
4426         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4427         * cgraph.h: Include ipa-ref.h and plugin-api.h.
4428         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4429         (symtab_node::address_can_be_compared_p): Move function.
4430         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4431         definition here.
4432         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4433         * auto-profile.c: Likewise.
4434         * bb-reorder.c: Likewise.
4435         * builtins.c: Likewise.
4436         * calls.c: Likewise.
4437         * cfgexpand.c: Likewise.
4438         * cgraphbuild.c: Likewise.
4439         * cgraphclones.c: Likewise.
4440         * cgraphunit.c: Likewise.
4441         * combine.c: Likewise.
4442         * coverage.c: Likewise.
4443         * data-streamer-in.c: Likewise.
4444         * data-streamer-out.c: Likewise.
4445         * data-streamer.c: Likewise.
4446         * dbxout.c: Likewise.
4447         * dwarf2out.c: Likewise.
4448         * except.c: Likewise.
4449         * expr.c: Likewise.
4450         * final.c: Likewise.
4451         * fold-const.c: Likewise.
4452         * ggc-page.c: Likewise.
4453         * gimple-fold.c: Likewise.
4454         * gimple-iterator.c: Likewise.
4455         * gimple-pretty-print.c: Likewise.
4456         * gimple-streamer-in.c: Likewise.
4457         * gimple-streamer-out.c: Likewise.
4458         * gimple.c: Likewise.
4459         * gimplify.c: Likewise.
4460         * ipa-chkp.c: Likewise.
4461         * ipa-comdats.c: Likewise.
4462         * ipa-cp.c: Likewise.
4463         * ipa-devirt.c: Likewise.
4464         * ipa-icf-gimple.c: Likewise.
4465         * ipa-icf.c: Likewise.
4466         * ipa-inline-analysis.c: Likewise.
4467         * ipa-inline-transform.c: Likewise.
4468         * ipa-inline.c: Likewise.
4469         * ipa-polymorphic-call.c: Likewise.
4470         * ipa-profile.c: Likewise.
4471         * ipa-prop.c: Likewise.
4472         * ipa-pure-const.c: Likewise.
4473         * ipa-ref.c: Likewise.
4474         * ipa-reference.c: Likewise.
4475         * ipa-split.c: Likewise.
4476         * ipa-utils.c: Likewise.
4477         * ipa-visibility.c: Likewise.
4478         * ipa.c: Likewise.
4479         * langhooks.c: Likewise.
4480         * lto-cgraph.c: Likewise.
4481         * lto-compress.c: Likewise.
4482         * lto-opts.c: Likewise.
4483         * lto-section-in.c: Likewise.
4484         * lto-section-out.c: Likewise.
4485         * lto-streamer-in.c: Likewise.
4486         * lto-streamer-out.c: Likewise.
4487         * lto-streamer.c: Likewise.
4488         * omp-low.c: Likewise.
4489         * opts-global.c: Likewise.
4490         * passes.c: Likewise.
4491         * predict.c: Likewise.
4492         * print-tree.c: Likewise.
4493         * profile.c: Likewise.
4494         * ree.c: Likewise.
4495         * sanopt.c: Likewise.
4496         * stor-layout.c: Likewise.
4497         * symtab.c: Likewise.
4498         * toplev.c: Likewise.
4499         * trans-mem.c: Likewise.
4500         * tree-cfg.c: Likewise.
4501         * tree-chkp.c: Likewise.
4502         * tree-eh.c: Likewise.
4503         * tree-emutls.c: Likewise.
4504         * tree-inline.c: Likewise.
4505         * tree-nested.c: Likewise.
4506         * tree-parloops.c: Likewise.
4507         * tree-pretty-print.c: Likewise.
4508         * tree-profile.c: Likewise.
4509         * tree-sra.c: Likewise.
4510         * tree-ssa-alias.c: Likewise.
4511         * tree-ssa-live.c: Likewise.
4512         * tree-ssa-loop-ivcanon.c: Likewise.
4513         * tree-ssa-loop-ivopts.c: Likewise.
4514         * tree-ssa-pre.c: Likewise.
4515         * tree-ssa-sccvn.c: Likewise.
4516         * tree-ssa-strlen.c: Likewise.
4517         * tree-ssa-structalias.c: Likewise.
4518         * tree-streamer-in.c: Likewise.
4519         * tree-streamer-out.c: Likewise.
4520         * tree-streamer.c: Likewise.
4521         * tree-switch-conversion.c: Likewise.
4522         * tree-tailcall.c: Likewise.
4523         * tree-vect-data-refs.c: Likewise.
4524         * tree-vect-stmts.c: Likewise.
4525         * tree-vectorizer.c: Likewise.
4526         * tree.c: Likewise.
4527         * tsan.c: Likewise.
4528         * ubsan.c: Likewise.
4529         * value-prof.c: Likewise.
4530         * varasm.c: Likewise.
4531         * varpool.c: Likewise.
4532         * config/arm/arm.c: Likewise.
4533         * config/bfin/bfin.c: Likewise.
4534         * config/c6x/c6x.c: Likewise.
4535         * config/cris/cris.c: Likewise.
4536         * config/darwin-c.c: Likewise.
4537         * config/darwin.c: Likewise.
4538         * config/i386/i386.c: Likewise.
4539         * config/i386/winnt.c: Likewise.
4540         * config/microblaze/microblaze.c: Likewise.
4541         * config/mips/mips.c: Likewise.
4542         * config/rs6000/rs6000.c: Likewise.
4543         * config/rx/rx.c: Likewise.
4544         * config/s390/s390.c: Likewise.
4545         * config/tilegx/mul-tables.c: Likewise.
4546
4547 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4548
4549         * config/aarch64/aarch64.c, config/alpha/alpha.c,
4550         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4551         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4552         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4553         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4554         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4555         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4556         config/microblaze/microblaze.c, config/mips/mips.c,
4557         config/mmix/mmix.c, config/mn10300/mn10300.c,
4558         config/moxie/moxie.c, config/msp430/msp430.c,
4559         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4560         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4561         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4562         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4563         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4564         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4565         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4566         target-def.h include.
4567         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
4568
4569 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4570
4571         * Makefile.in (TARGET_DEF): Add target-insns.def.
4572         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4573         (build/gentarget-def.o): New rule.
4574         (genprogrtl): Add target-def.
4575         * target-insns.def, gentarget-def.c: New files.
4576         * target.def: Add targetm.have_* and targetm.gen_* hooks,
4577         based on the contents of target-insns.def.
4578         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4579         (HAVE_return, gen_return): Delete.
4580         * target-def.h: Include insn-target-def.h.
4581         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4582         instead of direct calls.  Rely on them to do the appropriate assertions.
4583         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
4584         (convert_jumps_to_returns): Use targetm interface instead of
4585         direct calls.
4586         (thread_prologue_and_epilogue_insns): Likewise.
4587         * reorg.c (find_end_label, dbr_schedule): Likewise.
4588         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4589         * shrink-wrap.c (convert_to_simple_return): Likewise.
4590         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4591
4592 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4593
4594         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4595         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4596         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4597         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4598         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4599         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4600         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4601         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4602         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4603         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4604         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4605         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4606         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4607         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4608         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4609         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4610         includes to end.
4611
4612 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4613
4614         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4615         (unbounded_int_hashmap_traits::key_type): Likewise.
4616         * hash-map.h (hash_map): Get the key type from the traits.
4617         * hash-traits.h (default_hash_traits): By default, inherit from the
4618         template parameter.
4619         * alias.c (alias_set_traits): Delete.
4620         (alias_set_entry_d::children): Use alias_set_hash as the first
4621         template parameter.
4622         (record_alias_subset): Update accordingly.
4623         * except.c (tree_hash_traits): Delete.
4624         (type_to_runtime_map): Use tree_hash as the first template parameter.
4625         (init_eh): Update accordingly.
4626         * genmatch.c (capture_id_map_hasher): Delete.
4627         (cid_map_t): Use nofree_string_hash as first template parameter.
4628         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4629         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4630         Use symbol_compare_hash as the first template parameter in
4631         subdivide_hash_map.
4632         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4633         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4634         template parameter.
4635         * passes.c (pass_registry_hasher): Delete.
4636         (name_to_pass_map): Use nofree_string_hash as the first template
4637         parameter.
4638         (register_pass_name): Update accordingly.
4639         * sanopt.c (sanopt_tree_map_traits): Delete.
4640         (sanopt_tree_triplet_map_traits): Delete.
4641         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4642         template parameter.
4643         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4644         the first template parameter.
4645         * sese.c (rename_map_hasher): Delete.
4646         (rename_map_type): Use tree_ssa_name_hash as the first template
4647         parameter.
4648         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4649         (function_summary::m_map): Use map_hash as the first template
4650         parameter.
4651         (function_summary::release): Update accordingly.
4652         * tree-if-conv.c (phi_args_hash_traits): Delete.
4653         (predicate_scalar_phi): Use tree_operand_hash as the first template
4654         parameter to phi_arg_map.
4655         * tree-inline.h (dependence_hasher): Delete.
4656         (copy_body_data::dependence_map): Use dependence_hash as the first
4657         template parameter.
4658         * tree-inline.c (remap_dependence_clique): Update accordingly.
4659         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4660         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4661         parameter.
4662         (addr_stridxptr): Update accordingly.
4663         * value-prof.c (profile_id_traits): Delete.
4664         (cgraph_node_map): Use profile_id_hash as the first template
4665         parameter.
4666         (init_node_map): Update accordingly.
4667         * config/alpha/alpha.c (string_traits): Delete.
4668         (machine_function::links): Use nofree_string_hash as the first
4669         template parameter.
4670         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4671         * config/m32c/m32c.c (pragma_traits): Delete.
4672         (pragma_htab): Use nofree_string_hash as the first template parameter.
4673         (m32c_note_pragma_address): Update accordingly.
4674         * config/mep/mep.c (pragma_traits): Delete.
4675         (pragma_htab): Use nofree_string_hash as the first template parameter.
4676         (mep_note_pragma_flag): Update accordingly.
4677         * config/mips/mips.c (mips16_flip_traits): Delete.
4678         (mflip_mips16_htab): Use nofree_string_hash as the first template
4679         parameter.
4680         (mflip_mips16_use_mips16_p): Update accordingly.
4681         (local_alias_traits): Delete.
4682         (mips16_local_aliases): Use nofree_string_hash as the first template
4683         parameter.
4684         (mips16_local_alias): Update accordingly.
4685
4686 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4687
4688         * hash-map-traits.h (default_hashmap_traits): Delete.
4689
4690 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4691
4692         * hash-map-traits.h (unbounded_hashmap_traits): New class.
4693         (unbounded_int_hashmap_traits): Likewise.
4694         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4695
4696 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4697
4698         * ipa-icf.h (symbol_compare_hash): New class.
4699         (symbol_compare_hashmap_traits): Use it.
4700         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4701         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4702         (mem_alloc_description::reverse_mem_map_t): Remove redundant
4703         default_hashmap_traits.
4704         * sanopt.c (sanopt_tree_triplet_hash): New class.
4705         (sanopt_tree_triplet_map_traits): Use it.
4706
4707 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4708
4709         * gengtype-parse.c (require_template_declaration): Allow '+' in
4710         template parameters.  Consolidate cases.
4711         * hash-traits.h (int_hash): New class.
4712         * alias.c (alias_set_hash): New structure.
4713         (alias_set_traits): Use it.
4714         * symbol-summary.h (function_summary::map_hash): New class.
4715         (function_summary::summary_hashmap_traits): Use it.
4716         * tree-inline.h (dependence_hash): New class.
4717         (dependence_hasher): Use it.
4718         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4719         * value-prof.c (profile_id_hash): New class.
4720         (profile_id_traits): Use it.
4721
4722 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4723
4724         * config/mips/mips.c (mips16_flip_traits): Use it.
4725         (local_alias_traits, mips16_local_aliases): Convert from a map of
4726         rtxes to a map of symbol names.
4727         (mips16_local_alias): Update accordingly.
4728
4729 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4730
4731         * hash-traits.h (string_hash, nofree_string_hash): New classes.
4732         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4733         * passes.c (pass_registry_hasher): Likewise.
4734         * config/alpha/alpha.c (string_traits): Likewise.
4735         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4736         * config/m32c/m32c.c (pragma_traits): Likewise.
4737         * config/mep/mep.c (pragma_traits): Likewise.
4738
4739 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4740
4741         * tree-hash-traits.h (tree_hash): New class.
4742         * except.c: Include tree-hash-traits.h.
4743         (tree_hash_traits): Use tree_hash.
4744
4745 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4746
4747         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4748         * sese.c: Include tree-hash-traits.h.
4749         (rename_map_hasher): Use tree_ssa_name_hasher.
4750
4751 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4752
4753         * tree-hash-traits.h (tree_decl_hash): New class.
4754         * tree-ssa-strlen.c: Include tree-hash-traits.h.
4755         (stridxlist_hash_traits): Use tree_decl_hash.
4756
4757 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4758
4759         * tree-hash-traits.h: New file.
4760         (tree_operand_hash): New class.
4761         * sanopt.c: Include tree-hash-traits.h.
4762         (sanopt_tree_map_traits): Use tree_operand_hash.
4763         * tree-if-conv.c: Include tree-hash-traits.h.
4764         (phi_args_hash_traits): Use tree_operand_hash.
4765         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4766         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4767
4768 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4769
4770         * hash-map-traits.h: Include hash-traits.h.
4771         (simple_hashmap_traits): New class.
4772         * mem-stats.h (hash_map): Change the default traits to
4773         simple_hashmap_traits<default_hash_traits<Key> >.
4774
4775 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4776
4777         * hash-table.h: Update comments.
4778
4779 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4780
4781         * hash-traits.h (default_hash_traits): New structure.
4782         * hash-set.h (default_hashset_traits): Delete.
4783         (hash_set): Use default_hash_traits<Key> instead of
4784         default_hashset_traits.  Delete hash_entry type and use Key directly.
4785         * ipa-devirt.c (pair_traits): Delete.
4786         (default_hash_traits <type_pair>): Override.
4787         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4788         (odr_types_equivalent_p, add_type_duplicate): Likewise.
4789
4790 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4791
4792         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4793
4794 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4795
4796         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4797         (has_is_empty, is_empty_helper): Delete.
4798         (has_mark_deleted, mark_deleted_helper): Delete.
4799         (has_mark_empty, mark_empty_helper): Delete.
4800         (hash_table::is_deleted): Call the Descriptor unconditionally.
4801         (hash_table::is_empty): Likewise.
4802         (hash_table::mark_deleted): Likewise.
4803         (hash_table::mark_empty): Likewise.
4804
4805 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4806
4807         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
4808         redundant typedefs and members.
4809         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
4810         redundant typedefs.
4811         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4812         * ipa-devirt.c (odr_name_hasher): Likewise.
4813         (polymorphic_call_target_hasher): Likewise.
4814         * ira-costs.c (cost_classes_hasher): Likewise.
4815         * statistics.c (stats_counter_hasher): Likewise.
4816         * trans-mem.c (log_entry_hasher): Likewise.
4817         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4818         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4819         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4820         * var-tracking.c (variable_hasher): Likewise.
4821         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4822         Remove redundant typedefs and members.
4823
4824 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4825
4826         * hash-traits.h (ggc_cache_hasher): Rename to...
4827         (ggc_cache_remove): ...this and remove typedefs.
4828         (ggc_cache_ptr_hash): New class.
4829         * hash-table.h: Update commentary.
4830         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4831         rather than ggc_cache_hasher.
4832         (const_wide_int_hasher, reg_attr_hasher): Likewise.
4833         (const_double_hasher, const_fixed_hasher): Likewise.
4834         * function.c (insn_cache_hasher): Likewise.
4835         * trans-mem.c (tm_wrapper_hasher): Likewise.
4836         * tree.h (tree_decl_map_cache_hasher): Likewise.
4837         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4838         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4839         * ubsan.c (tree_type_map_cache_hasher): Likewise.
4840         * varasm.c (tm_clone_hasher): Likewise.
4841         * config/i386/i386.c (dllimport_hasher): Likewise.
4842         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4843         (tree_hasher): Likewise.
4844
4845 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4846
4847         * hash-traits.h (ggc_hasher): Rename to...
4848         (ggc_remover): ...this and remove typedefs.
4849         (ggc_cache_hasher): Update accordingly.  Add typedefs.
4850         (ggc_ptr_hash): New class.
4851         * hash-table.h: Update comment.
4852         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4853         ggc_hasher.
4854         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4855         (tree_descriptor_hasher): Likewise.
4856         * cgraph.c (function_version_hasher): Likewise.
4857         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4858         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4859         (dw_loc_list_hasher, addr_hasher): Likewise.
4860         * function.h (used_type_hasher): Likewise.
4861         * function.c (temp_address_hasher): Likewise.
4862         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4863         * libfuncs.h (libfunc_hasher): Likewise.
4864         * lto-streamer.h (decl_state_hasher): Likewise.
4865         * optabs.c (libfunc_decl_hasher): Likewise.
4866         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4867         * varasm.c (section_hasher, object_block_hasher): Likewise.
4868         (const_rtx_desc_hasher): Likewise.
4869         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4870         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4871
4872 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4873
4874         * hash-traits.h (free_ptr_hash): New class.
4875         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4876         rather than typed_free_remove.  Remove redudant typedefs.
4877         (external_ref_hasher): Likewise.
4878         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4879         (ehspec_hasher): Likewise.
4880         * ggc-common.c (saving_hasher): Likewise.
4881         * gimplify.c (gimplify_hasher): Likewise.
4882         * haifa-sched.c (delay_i2_hasher): Likewise.
4883         * loop-invariant.c (invariant_expr_hasher): Likewise.
4884         * loop-iv.c (biv_entry_hasher): Likewise.
4885         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4886         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4887         * tree-cfg.c (locus_discrim_hasher): Likewise.
4888         * tree-eh.c (finally_tree_hasher): Likewise.
4889         * tree-into-ssa.c (var_info_hasher): Likewise.
4890         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4891         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4892         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4893         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4894         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4895         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4896         (shared_bitmap_hasher): Likewise.
4897         * tree-ssa-threadupdate.c (redirection_data): Likewise.
4898         * tree-vectorizer.h (peel_info_hasher): Likewise.
4899         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4900         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4901
4902 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4903
4904         * hash-table.h: Update comments.
4905         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4906         (nofree_ptr_hash): New class.
4907         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4908         than typed_noop_remove.  Remove redudant typedefs.
4909         * attribs.c (attribute_hasher): Likewise.
4910         * cfg.c (bb_copy_hasher): Likewise.
4911         * cselib.c (cselib_hasher): Likewise.
4912         * dse.c (invariant_group_base_hasher): Likewise.
4913         * dwarf2cfi.c (trace_info_hasher): Likewise.
4914         * dwarf2out.c (macinfo_entry_hasher): Likewise.
4915         (comdat_type_hasher, loc_list_hasher): Likewise.
4916         * gcse.c (pre_ldst_expr_hasher): Likewise.
4917         * genmatch.c (id_base): Likewise.
4918         * genrecog.c (test_pattern_hasher): Likewise.
4919         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4920         * haifa-sched.c (delay_i1_hasher): Likewise.
4921         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4922         * ipa-icf.h (congruence_class_group_hash): Likewise.
4923         * ipa-profile.c (histogram_hash): Likewise.
4924         * ira-color.c (allocno_hard_regs_hasher): Likewise.
4925         * lto-streamer.h (string_slot_hasher): Likewise.
4926         * lto-streamer.c (tree_entry_hasher): Likewise.
4927         * plugin.c (event_hasher): Likewise.
4928         * postreload-gcse.c (expr_hasher): Likewise.
4929         * store-motion.c (st_expr_hasher): Likewise.
4930         * tree-sra.c (uid_decl_hasher): Likewise.
4931         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4932         (ssa_name_var_hash): Likewise.
4933         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4934         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4935         * tree-ssa-pre.c (pre_expr_d): Likewise.
4936         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4937         * vtable-verify.h (registration_hasher): Likewise.
4938         * vtable-verify.c (vtbl_map_hasher): Likewise.
4939         * config/arm/arm.c (libcall_hasher): Likewise.
4940         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4941         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4942         * config/sol2.c (comdat_entry_hasher): Likewise.
4943         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4944         (print_fold_checksum, fold_checksum_tree): Likewise.
4945         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4946         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4947         (fold_build_call_array_loc): Likewise.
4948         * tree-ssa-ccp.c (gimple_htab): Likewise.
4949         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4950         rather than pointer_type.
4951
4952 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4953
4954         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4955         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4956
4957 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4958
4959         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4960         (ggc_hasher::ggc_mx): Likewise.
4961         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
4962         that duplicate ggc_hasher ones.
4963
4964 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4965
4966         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4967         (gt_cleare_cache): Check here for deleted and empty entries.
4968         Replace handle_cache_entry with a call to keep_cache_entry.
4969         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4970         (ggc_cache_hasher::keep_cache_entry): New function.
4971         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4972         (tm_wrapper_hasher::keep_cache_entry): New function.
4973         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4974         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4975         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4976         (type_cache_hasher::keep_cache_entry): New function.
4977         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4978         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4979         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4980         (tree_type_map_cache_hasher::keep_cache_entry): New function.
4981         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4982         (tm_clone_hasher::keep_cache_entry): New function.
4983         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4984         (dllimport_hasher::keep_cache_entry): New function.
4985
4986 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4987
4988         * hash-table.h: Include hash-traits.h.
4989         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4990         (ggc_cache_hasher): Move to...
4991         * hash-traits.h: ...this new file.
4992
4993 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4994
4995         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4996         struct cl_optimization.
4997         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4998         * tree.c (make_node_stat): Allocate cl_optimization struct.
4999         (copy_node_stat): Allocate and copy cl_optimization struct.
5000
5001 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5002
5003         * function.h (struct incoming_args): Move struct.
5004         (pass_by_reference, reference_callee_copied): Remove prototypes.
5005         * emit-rtl.h (struct incoming_args): Relocate struct here.
5006         * calls.h (pass_by_reference, reference_callee_copied): Relocate
5007         prototypes here.
5008         * function.c (pass_by_reference, reference_callee_copied): Move.
5009         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
5010         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
5011         * ipa-chkp.c: Include calls.h.
5012
5013 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
5014
5015         * alias.h (alias_set_type): Move typedef.
5016         * coretypes.h (alias_set_type): Relocate typedef here.
5017         * rtl.h: Don't include alias.h.
5018
5019 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5020
5021         * cgraph.h (cgraph_rtl_info): Move to rtl.h
5022         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
5023         and instance.
5024         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
5025         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
5026         doesn't exist.
5027         * calls.c: Include hard-reg-set.h before rtl.h.
5028         * ira.c: Likewise.
5029
5030 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5031             Vladimir Makarov  <vmakarov@redhat.com>
5032
5033         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5034         Add assert.
5035
5036 2015-06-25  Richard Biener  <rguenther@suse.de>
5037
5038         * fold-const.c (fold_binary_loc): Move simplification of
5039         (X <<>> C1) & C2 ...
5040         * match.pd: ... here.
5041
5042 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
5043
5044         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5045
5046 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5047
5048         * match.pd: Add patterns for vec_conds between 1 and 0.
5049
5050 2015-06-25  Richard Biener  <rguenther@suse.de>
5051
5052         * tree-vect-stmts.c (vectorizable_conversion): Do not set
5053         STMT_VINFO_VEC_STMT for SLP.
5054         (vectorizable_store): Likewise.
5055         (vectorizable_load): Likewise.
5056         (vect_transform_stmt): Catch SLP vectorization clobbering
5057         STMT_VINFO_VEC_STMT.
5058
5059 2015-06-25  Richard Biener  <rguenther@suse.de>
5060
5061         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5062         dumping.
5063         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5064         cleanup resulting dead code and parameters.
5065         (vect_transform_slp_perm_load): Adjust.
5066
5067 2015-06-25  Nick Clifton  <nickc@redhat.com>
5068
5069         * config/bfin/bfin.c (bfin_expand_prologue): Set
5070         current_function_static_stack_size if flag_stack_usage_info is set.
5071         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5072         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5073         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5074         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5075
5076 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5077
5078         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5079         comment that the generated IV is unsigned.
5080
5081 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5082
5083         PR target/29693
5084         * config/arm/arm.c (arm_dbx_register_number): Return
5085         DWARF_FRAME_REGISTERS by default.
5086
5087 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5088
5089         * dominance.c (calculate_dominance_info): Fix verify_dominators call
5090         argument.  Call verify_dominator when reusing dominator info.
5091
5092 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5093
5094         PR target/66563
5095         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5096         an additional element of the unspec vector.  Modify indices
5097         of operands.
5098         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5099         * config/sh/sh.c (prepare_move_operands): Pass incremented
5100         const_int to gen_GOTaddr2picreg.
5101         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5102
5103 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5104
5105         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5106         Condition on TARGET_FLOAT.
5107
5108 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5109
5110         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5111         and (no)crypto.
5112
5113 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5114
5115         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5116
5117         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5118         aarch64_err_no_fpadvsimd.
5119
5120         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5121         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5122         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5123         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5124         Turn error into assert, test TARGET_FLOAT.
5125         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5126         TARGET_FLOAT.
5127
5128 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
5129
5130         PR debug/66482
5131         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5132
5133 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
5134
5135         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5136
5137 2015-06-24 Renlin Li <renlin.li@arm.com>
5138
5139         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5140         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5141
5142 2015-06-24  Richard Biener  <rguenther@suse.de>
5143
5144         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5145         (main): Likewise.
5146         (lower_opt_convert): Support lowering of conditional view_convert.
5147         (parser::parse_operation): Likewise.
5148         (parser::parse_for): Likewise.
5149
5150 2015-06-24  Renlin Li  <renlin.li@arm.com>
5151
5152         * varasm.c (emit_local): Use unsigned int for align variable.
5153
5154 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5155
5156         PR target/63408
5157         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5158         for negative numbers.
5159
5160 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5161
5162         PR rtl-optimization/66306
5163         * reload.c (find_reloads): Swap the match_dup info for
5164         commutative operands.
5165
5166 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5167
5168         * config/s390/vx-builtins.md
5169         ("vec_scatter_element<mode>_<non_vec_int>")
5170         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5171         attribute with bhfgq.
5172
5173 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5174
5175         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5176
5177 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5178
5179         * config/s390/s390-builtin-types.def: Add flag to indicate the
5180         options under which the function type is needed.
5181         * config/s390/s390-builtins.def: Add flag to indicate the options
5182         under which the builtin is enabled.
5183         * config/s390/s390-builtins.h: Add flags parameter to macro
5184         definitions.
5185         (bflags_for_builtin): New function.
5186         (flags_for_builtin): Renamed to ...
5187         (opflags_for_builtin): ... this.
5188         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5189         flags_for_builtin to bflags_for_builtin and
5190         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5191         * config/s390/s390.c: Add initialization of bflags_builtin and
5192         opflags_builtin arrays.
5193         Remove code for flags_builtin.
5194         (s390_init_builtins): Only create builtin function types if one of
5195         their flags is active.
5196         Only create builtins if all of their flags are active.
5197         (s390_expand_builtin): Rename flags_for_builtin to
5198         opflags_for_builtin.
5199
5200 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5201
5202         * config/s390/vecintrin.h: Remove internal builtins.
5203
5204 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5205
5206         * config/s390/s390.c (s390_secondary_reload): Fix check for
5207         GENERAL_REGS register class.
5208
5209 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5210
5211         * config/s390/s390.c (s390_support_vector_misalignment): Call
5212         default implementation for !TARGET_VX.
5213
5214 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5215
5216         * config/s390/s390.c (s390_legitimate_constant_p): Add
5217         TARGET_VX check.
5218
5219 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5220
5221         * config/s390/s390.c (s390_vector_abi): New variable definition.
5222         (s390_check_type_for_vector_abi): New function.
5223         (TARGET_ASM_FILE_END): New macro definition.
5224         (s390_asm_file_end): New function.
5225         (s390_function_arg): Call s390_check_type_for_vector_abi.
5226         (s390_gimplify_va_arg): Likewise.
5227         * configure: Regenerate.
5228         * configure.ac: Check for .gnu_attribute Binutils feature.
5229
5230 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
5231
5232         PR target/65803
5233         * config/bfin/bfin.c (hwloop_optimize): Initialize
5234         JUMP_LABEL for newly created jump.
5235
5236 2015-06-23  Tristan Gingold  <gingold@adacore.com>
5237
5238         * collect-utils.c (collect_wait): Unlink the response file here
5239         instead of...
5240         (do_wait): ...here.
5241         (utils_cleanup): ...and here.
5242
5243 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
5244
5245         * df-scan.c: Don't include target-def.h.
5246         * targhooks.c: Likewise.
5247         * config/arm/arm-c.c: Likewise.
5248         * config/i386/i386-c.c: Likewise.
5249         * config/nds32/nds32-cost.c: Likewise.
5250         * config/nds32/nds32-fp-as-gp.c: Likewise.
5251         * config/nds32/nds32-intrinsic.c: Likewise.
5252         * config/nds32/nds32-isr.c: Likewise.
5253         * config/nds32/nds32-md-auxiliary.c: Likewise.
5254         * config/nds32/nds32-memory-manipulation.c: Likewise.
5255         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5256         * config/nds32/nds32-predicates.c: Likewise.
5257
5258 2015-06-23  Richard Biener  <rguenther@suse.de>
5259
5260         PR tree-optimization/66636
5261         * tree-vect-stmts.c (vectorizable_store): Properly compute the
5262         def type for further defs for strided stores.
5263
5264 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
5265
5266         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5267         conditional selects.
5268         (setcc_int<mode>, setcc_float<mode>): Reformat.
5269
5270 2015-06-23  Marek Polacek  <polacek@redhat.com>
5271
5272         * match.pd ((x + y) - (x | y) -> x & y,
5273         (x + y) - (x & y) -> x | y): New patterns.
5274
5275 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
5276
5277         PR 65711
5278         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5279         '-dynamic-linker' within %{!shared: ...}.
5280
5281 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
5282
5283         PR target/66560
5284         * config/i386/predicates.md (addsub_vm_operator): New predicate.
5285         (addsub_vs_operator): Ditto.
5286         (addsub_vs_parallel): Ditto.
5287         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5288         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5289         Put minus RTX before plus and adjust vec_merge selector.
5290         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5291         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5292         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5293         (addsub vec_merge splitters): New combiner splitters.
5294         (addsub vec_select/vec_concat splitters): Ditto.
5295
5296 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
5297
5298         PR tree-optimization/66449
5299         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5300         POINTER_PLUS_EXPR for pointers.
5301
5302 2015-06-23  Alan Modra  <amodra@gmail.com>
5303
5304         * rtlanal.c (commutative_operand_precedence): Correct comments.
5305         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5306         declaration.  Return an int.  Distinguish REG,REG return from
5307         others.
5308         (struct simplify_plus_minus_op_data): Make local to function.
5309         (simplify_plus_minus): Don't set canonicalized if merely sorting
5310         registers.  Avoid packing ops if nothing changes.  White space fixes.
5311
5312 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
5313
5314         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5315         -fdump-ada-spec is passed but not if -fsyntax-only is.
5316
5317 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
5318
5319         PR bootstrap/63740
5320         * lra-lives.c (process_bb_lives): Check insn copying the same
5321         reload pseudo and don't create a copy for it.
5322
5323 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5324
5325         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5326         for cond_stmt.
5327
5328 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5329
5330         * builtins.def (DEF_GOMP_BUILTIN): Test
5331         'flag_tree_parallelize_loops > 1' instead of
5332         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
5333
5334 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5335
5336         * dominance.c (calculate_dominance_info): Verify dominators if
5337         early-out.
5338
5339 2015-06-22  Marek Polacek  <polacek@redhat.com>
5340
5341         * match.pd ((x ^ y) ^ (x | y) -> x & y,
5342         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5343         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5344         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5345
5346 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
5347
5348         PR target/65871
5349         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5350         cost of embedded comparison.
5351
5352 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5353
5354         PR target/65914
5355         * config/rs6000/predicates.md (altivec_register_operand): Permit
5356         virtual stack registers.
5357         (vsx_register_operand): Likewise.
5358         (vfloat_operand): Likewise.
5359         (vint_operand): Likewise.
5360         (vlogical_operand): Likewise.
5361
5362 2015-06-22  Richard Biener  <rguenther@suse.de>
5363
5364         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5365         and single_scalar_iteration_cost members.
5366         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5367         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5368         (vect_get_single_scalar_iteration_cost): Remove.
5369         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5370         Use LOOP_VINFO_SCALAR_ITERATION_COST.
5371         * tree-vect-loop.c (destroy_loop_vec_info): Free
5372         scalar_cost_vec.
5373         (vect_get_single_scalar_iteration_cost): Compute result into
5374         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5375         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
5376         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5377         (vect_estimate_min_profitable_iters): Use them.
5378
5379 2015-06-22  Christian Bruel  <christian.bruel@st.com>
5380
5381         PR target/52144
5382         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5383         (TARGET_INSERT_ATTRIBUTES): Define.
5384         (thumb_flipper): New var.
5385         * config/arm/arm.opt (-mflip-thumb): New switch.
5386
5387 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
5388             Martin Liska  <mliska@suse.cz>
5389
5390         PR ipa/65908
5391         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5392         construction of arg_types.
5393         (sem_function::sem_function): Likewise.
5394         (sem_function::~sem_function): Remove destruction of arg_types.
5395         (sem_function::compatible_parm_types_p): New function.
5396         (sem_function::equals_wpa): Reorg matching of return values
5397         and parameter types.
5398         (sem_function::equals_private): Reorg mathcing of argument types.
5399         (sem_function::parse_tree_args): Remove.
5400         * ipa-icf.h (init_wpa): Do not call it.
5401         (parse_tree_args): Remove.
5402         (compatible_parm_types_p): Declare.
5403         (result_type): Remove.
5404         (arg_types): Remove.
5405
5406 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
5407
5408         PR ipa/66351
5409         * ipa-polymorphic-call.c
5410         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5411         initializing alias oracle; fix formating; set base_alias_set if it
5412         is known.
5413
5414 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
5415
5416         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5417         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5418         (find_inc): Likewise.
5419         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5420         swapping.
5421         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5422         * df-scan.c (df_swap_refs): Remove.
5423         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5424         * dominance.c (link_roots): Use std::swap instead of manually swapping.
5425         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5426         * fold-const.c (fold_relational_const): Likewise.
5427         * genattrtab.c (simplify_test_exp): Likewise.
5428         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5429         gimple_simplify): Likewise.
5430         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5431         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5432         * ipa-devirt.c (add_type_duplicate): Likewise.
5433         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5434         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5435         * lra.c (lra_create_copy): Likewise.
5436         * lto-streamer-out.c (DFS::DFS): Likewise.
5437         * modulo-sched.c (get_sched_window): Likewise.
5438         * omega.c (omega_pretty_print_problem): Likewise.
5439         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5440         * reload1.c (reloads_unique_chain_p): Likewise.
5441         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5442         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5443         use std::swap.
5444         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5445         manually swapping.
5446         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5447         predicate_mem_writes): Likewise.
5448         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5449         * tree-predcom.c (combine_chains): Likewise.
5450         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5451         refs_may_alias_p_1): Likewise.
5452         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5453         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5454         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5455         number_of_iterations_cond): Likewise.
5456         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5457         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5458         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5459         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5460         * tree-vrp.c (extract_range_from_binary_expr_1,
5461         extract_range_from_unary_expr_1): Likewise.
5462
5463 2015-06-20  Marek Polacek  <polacek@redhat.com>
5464
5465         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5466
5467 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5468
5469         PR target/66591
5470         * config/sh/sh.c (prepare_move_operands): Replace subreg
5471         index term with R0 for base and index addressing.
5472
5473 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
5474
5475         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5476         op1 is an fp zero.
5477         (movsf_aarch64): Change condition from register_operand to
5478         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
5479         load1.  Change type for alternative 7 to store1.
5480         (movdf_aarch64): Likewise.
5481
5482 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
5483
5484         * config/vax/vax.md: Adjust sign/zero extend patterns to
5485         handle SUBREGs in operands[1].
5486
5487 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5488
5489         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5490         of manually swapping.
5491         (expand_vec_perm_interleave2): Likewise.
5492
5493 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
5494
5495         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5496         reuse bounds created for abnormal ssa names.
5497
5498 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
5499
5500         * config/nvptx/nvptx.md (allocate_stack): Rename to...
5501         (allocate_stack_<mode>): ... this, and add :P on both
5502         match_operand and unspec.
5503         (allocate_stack): New expander.
5504
5505 2015-06-19  Christian Bruel  <christian.bruel@st.com>
5506
5507         PR target/66541
5508         PR target/52144
5509         * config/arm/arm.c (arm_set_current_function): Handle
5510         explicit default options.
5511
5512 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
5513
5514         * config/i386/i386.md (*movsicc_noc_zext): New insn.
5515         (zero-extended cmove with mem peephole2): New pattern.
5516         (cmove with mem peephole2): Merge patterns.
5517
5518 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
5519
5520         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5521
5522 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
5523
5524         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5525         * config/mips/mips.md (*madd4<mode>): Ditto.
5526         (*nmadd3<mode>) Ditto.
5527         (*nmadd4<mode>_fastmath): Ditto.
5528         (*nmadd3<mode>_fastmath): Ditto.
5529         (*nmsub4<mode>): Ditto.
5530         (*nmsub3<mode>): Ditto.
5531         (*nmsub4<mode>_fastmath): Ditto.
5532         (*nmsub3<mode>_fastmath): Ditto.
5533
5534 2015-06-18  Michael Matz  <matz@suse.de>
5535
5536         PR middle-end/66253
5537         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5538         grouped strided stores.
5539         (vectorizable_load): Don't use the DR from first_stmt in
5540         the non-SLP grouped strided case.
5541
5542 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5543
5544         PR target/66569
5545         * function.c (assign_bounds): Add arguments assign_regs,
5546         assign_special, assign_bt.
5547         (assign_parms): For vararg functions handle bounds in BT
5548         and special slots after incoming vararg bounds.
5549
5550 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5551
5552         PR middle-end/66568
5553         * cfgexpand.c (expand_return): Handle missing bounds.
5554         (expand_gimple_stmt_1): Likewise.
5555         * tree-chkp.c (chkp_expand_zero_bounds): New.
5556         * tree-chkp.h (chkp_expand_zero_bounds): New.
5557
5558 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5559
5560         PR middle-end/66567
5561         * ipa-chkp.c (chkp_maybe_create_clone): Require
5562         functions to be instrumentable.
5563         * tree-chkp.c (chkp_replace_function_pointer): Use
5564         chkp_instrumentable_p instead of attribute check.
5565
5566 2015-06-18  Richard Biener  <rguenther@suse.de>
5567
5568         PR tree-optimization/66510
5569         * tree-vect-stmts.c (vectorizable_load): Properly compute the
5570         number of vector loads for SLP permuted loads.
5571         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5572         check the stride for loop vectorization.
5573         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5574         vectorization factor.
5575         (vect_analyze_group_access): If the group size is not a power
5576         of two require a epilogue loop.
5577         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5578         compute and optimizing and alias test pruning after final
5579         vectorization factor computation.
5580         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5581         vector alignment.
5582         (vect_transform_slp_perm_load): Properly compute the original
5583         number of vector load stmts.
5584
5585 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
5586
5587         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5588         "unlikely character , in @var" warning.
5589
5590 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
5591
5592         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5593         (ix86_function_arg_advance): Ditto.
5594         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
5595
5596 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5597
5598         * function.h (struct rtl_data): Remove struct and accessor macros.
5599         * emit-rtl.h (struct rtl_data): Relocate to here.
5600         * Makefile.in (GTFILES): Add emit-rtl.h.
5601         * df-core.c: Include emit-rtl.h.
5602         * genattrtab.c: Likewise.
5603         * genconditions.c: Likewise.
5604         * genpreds.c: Likewise.
5605         * genrecog.c: Likewise.
5606         * regcprop.c: Likewise.
5607         * resource.c: Likewise.
5608         * sched-rgn.c: Likewise.
5609         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5610         * config/i386/winnt.c: Likewise.
5611
5612 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
5613
5614         PR middle-end/66429
5615         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5616         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
5617         and has_force_vectorize_loops flags from cfun into
5618         child_cfun.
5619         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5620         if simduid is non-NULL.
5621         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5622         * passes.def (pass_simduid_cleanup): Add new pass after loop
5623         passes.
5624         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5625         indirection from htab argument's type.
5626         (shrink_simd_arrays): New function.
5627         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
5628         Don't call adjust_simduid_builtins if there are no loops.
5629         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5630         (pass_simduid_cleanup::execute): New method.
5631         (make_pass_simduid_cleanup): New function.
5632
5633 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
5634
5635         * tree-core.h (tree_target_option): Make opts field a pointer to a
5636         cl_target_option instead of an instance of the struct.
5637         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5638         the structure.
5639         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5640         TARGET_OPTION_NODE.
5641         (copy_node_stat): Allocate and copy struct cl_target_option.
5642
5643 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5644
5645         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5646         Remove conditional exposure of prototypes.
5647         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5648         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
5649         definitions in tree.h with functions.
5650         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5651         anon_aggrname_p.
5652         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5653
5654 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
5655
5656         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5657         (*cmp<mode>_signed): ... this.
5658         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5659         (*cmp<mode>_unsigned): ... this.  Remove %b.
5660
5661 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5662
5663         * coretypes.h: Include input.h and as-a.h.
5664         * rtl.h: Include input.h and as-a.h for generator files.
5665         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5666         * vec.c: Don't include diagnostic-core.h.
5667         * alias.c: Do not include input.h, line-map.h or is-a.h.
5668         * asan.c: Likewise.
5669         * attribs.c: Likewise.
5670         * auto-inc-dec.c: Likewise.
5671         * auto-profile.c: Likewise.
5672         * bb-reorder.c: Likewise.
5673         * bt-load.c: Likewise.
5674         * builtins.c: Likewise.
5675         * caller-save.c: Likewise.
5676         * calls.c: Likewise.
5677         * ccmp.c: Likewise.
5678         * cfg.c: Likewise.
5679         * cfganal.c: Likewise.
5680         * cfgbuild.c: Likewise.
5681         * cfgcleanup.c: Likewise.
5682         * cfgexpand.c: Likewise.
5683         * cfghooks.c: Likewise.
5684         * cfgloop.c: Likewise.
5685         * cfgloop.h: Likewise.
5686         * cfgloopanal.c: Likewise.
5687         * cfgloopmanip.c: Likewise.
5688         * cfgrtl.c: Likewise.
5689         * cgraph.c: Likewise.
5690         * cgraphbuild.c: Likewise.
5691         * cgraphclones.c: Likewise.
5692         * cgraphunit.c: Likewise.
5693         * cilk-common.c: Likewise.
5694         * combine-stack-adj.c: Likewise.
5695         * combine.c: Likewise.
5696         * compare-elim.c: Likewise.
5697         * convert.c: Likewise.
5698         * coverage.c: Likewise.
5699         * cppbuiltin.c: Likewise.
5700         * cprop.c: Likewise.
5701         * cse.c: Likewise.
5702         * cselib.c: Likewise.
5703         * data-streamer-in.c: Likewise.
5704         * data-streamer-out.c: Likewise.
5705         * data-streamer.c: Likewise.
5706         * dbxout.c: Likewise.
5707         * dce.c: Likewise.
5708         * ddg.c: Likewise.
5709         * debug.c: Likewise.
5710         * df-core.c: Likewise.
5711         * df-problems.c: Likewise.
5712         * df-scan.c: Likewise.
5713         * df.h: Likewise.
5714         * dfp.c: Likewise.
5715         * diagnostic-core.h: Likewise.
5716         * diagnostic.c: Likewise.
5717         * dojump.c: Likewise.
5718         * dominance.c: Likewise.
5719         * domwalk.c: Likewise.
5720         * double-int.c: Likewise.
5721         * dse.c: Likewise.
5722         * dumpfile.c: Likewise.
5723         * dumpfile.h: Likewise.
5724         * dwarf2asm.c: Likewise.
5725         * dwarf2cfi.c: Likewise.
5726         * dwarf2out.c: Likewise.
5727         * emit-rtl.c: Likewise.
5728         * et-forest.c: Likewise.
5729         * except.c: Likewise.
5730         * explow.c: Likewise.
5731         * expmed.c: Likewise.
5732         * expr.c: Likewise.
5733         * final.c: Likewise.
5734         * fixed-value.c: Likewise.
5735         * fold-const.c: Likewise.
5736         * function.c: Likewise.
5737         * fwprop.c: Likewise.
5738         * gcc-plugin.h: Likewise.
5739         * gcse.c: Likewise.
5740         * generic-match-head.c: Likewise.
5741         * ggc-page.c: Likewise.
5742         * gimple-builder.c: Likewise.
5743         * gimple-expr.c: Likewise.
5744         * gimple-fold.c: Likewise.
5745         * gimple-iterator.c: Likewise.
5746         * gimple-low.c: Likewise.
5747         * gimple-match-head.c: Likewise.
5748         * gimple-pretty-print.c: Likewise.
5749         * gimple-ssa-isolate-paths.c: Likewise.
5750         * gimple-ssa-strength-reduction.c: Likewise.
5751         * gimple-streamer-in.c: Likewise.
5752         * gimple-streamer-out.c: Likewise.
5753         * gimple-streamer.h: Likewise.
5754         * gimple-walk.c: Likewise.
5755         * gimple.c: Likewise.
5756         * gimplify-me.c: Likewise.
5757         * gimplify.c: Likewise.
5758         * godump.c: Likewise.
5759         * graph.c: Likewise.
5760         * graphite-blocking.c: Likewise.
5761         * graphite-dependences.c: Likewise.
5762         * graphite-interchange.c: Likewise.
5763         * graphite-isl-ast-to-gimple.c: Likewise.
5764         * graphite-optimize-isl.c: Likewise.
5765         * graphite-poly.c: Likewise.
5766         * graphite-scop-detection.c: Likewise.
5767         * graphite-sese-to-poly.c: Likewise.
5768         * graphite.c: Likewise.
5769         * haifa-sched.c: Likewise.
5770         * hw-doloop.c: Likewise.
5771         * ifcvt.c: Likewise.
5772         * init-regs.c: Likewise.
5773         * input.c: Likewise.
5774         * internal-fn.c: Likewise.
5775         * ipa-chkp.c: Likewise.
5776         * ipa-comdats.c: Likewise.
5777         * ipa-cp.c: Likewise.
5778         * ipa-devirt.c: Likewise.
5779         * ipa-icf-gimple.c: Likewise.
5780         * ipa-icf.c: Likewise.
5781         * ipa-inline-analysis.c: Likewise.
5782         * ipa-inline-transform.c: Likewise.
5783         * ipa-inline.c: Likewise.
5784         * ipa-polymorphic-call.c: Likewise.
5785         * ipa-profile.c: Likewise.
5786         * ipa-prop.c: Likewise.
5787         * ipa-pure-const.c: Likewise.
5788         * ipa-ref.c: Likewise.
5789         * ipa-reference.c: Likewise.
5790         * ipa-split.c: Likewise.
5791         * ipa-utils.c: Likewise.
5792         * ipa-visibility.c: Likewise.
5793         * ipa.c: Likewise.
5794         * ira-build.c: Likewise.
5795         * ira-color.c: Likewise.
5796         * ira-conflicts.c: Likewise.
5797         * ira-costs.c: Likewise.
5798         * ira-emit.c: Likewise.
5799         * ira-lives.c: Likewise.
5800         * ira.c: Likewise.
5801         * jump.c: Likewise.
5802         * langhooks.c: Likewise.
5803         * lcm.c: Likewise.
5804         * loop-doloop.c: Likewise.
5805         * loop-init.c: Likewise.
5806         * loop-invariant.c: Likewise.
5807         * loop-iv.c: Likewise.
5808         * loop-unroll.c: Likewise.
5809         * lower-subreg.c: Likewise.
5810         * lra-assigns.c: Likewise.
5811         * lra-coalesce.c: Likewise.
5812         * lra-constraints.c: Likewise.
5813         * lra-eliminations.c: Likewise.
5814         * lra-lives.c: Likewise.
5815         * lra-remat.c: Likewise.
5816         * lra-spills.c: Likewise.
5817         * lra.c: Likewise.
5818         * lto-cgraph.c: Likewise.
5819         * lto-compress.c: Likewise.
5820         * lto-opts.c: Likewise.
5821         * lto-section-in.c: Likewise.
5822         * lto-section-out.c: Likewise.
5823         * lto-streamer-in.c: Likewise.
5824         * lto-streamer-out.c: Likewise.
5825         * lto-streamer.c: Likewise.
5826         * mcf.c: Likewise.
5827         * mode-switching.c: Likewise.
5828         * modulo-sched.c: Likewise.
5829         * omega.c: Likewise.
5830         * omp-low.c: Likewise.
5831         * optabs.c: Likewise.
5832         * opts-global.c: Likewise.
5833         * opts.h: Likewise.
5834         * passes.c: Likewise.
5835         * plugin.c: Likewise.
5836         * postreload-gcse.c: Likewise.
5837         * postreload.c: Likewise.
5838         * predict.c: Likewise.
5839         * pretty-print.h: Likewise.
5840         * print-rtl.c: Likewise.
5841         * print-tree.c: Likewise.
5842         * profile.c: Likewise.
5843         * real.c: Likewise.
5844         * realmpfr.c: Likewise.
5845         * recog.c: Likewise.
5846         * ree.c: Likewise.
5847         * reg-stack.c: Likewise.
5848         * regcprop.c: Likewise.
5849         * reginfo.c: Likewise.
5850         * regrename.c: Likewise.
5851         * regstat.c: Likewise.
5852         * reload.c: Likewise.
5853         * reload1.c: Likewise.
5854         * reorg.c: Likewise.
5855         * resource.c: Likewise.
5856         * rtl-chkp.c: Likewise.
5857         * rtl-error.c: Likewise.
5858         * rtlanal.c: Likewise.
5859         * rtlhooks.c: Likewise.
5860         * sanopt.c: Likewise.
5861         * sched-deps.c: Likewise.
5862         * sched-ebb.c: Likewise.
5863         * sched-rgn.c: Likewise.
5864         * sched-vis.c: Likewise.
5865         * sdbout.c: Likewise.
5866         * sel-sched-dump.c: Likewise.
5867         * sel-sched-ir.c: Likewise.
5868         * sel-sched.c: Likewise.
5869         * sese.c: Likewise.
5870         * shrink-wrap.c: Likewise.
5871         * simplify-rtx.c: Likewise.
5872         * stack-ptr-mod.c: Likewise.
5873         * statistics.c: Likewise.
5874         * stmt.c: Likewise.
5875         * stor-layout.c: Likewise.
5876         * store-motion.c: Likewise.
5877         * streamer-hooks.c: Likewise.
5878         * stringpool.c: Likewise.
5879         * symtab.c: Likewise.
5880         * target-globals.c: Likewise.
5881         * targhooks.c: Likewise.
5882         * toplev.c: Likewise.
5883         * tracer.c: Likewise.
5884         * trans-mem.c: Likewise.
5885         * tree-affine.c: Likewise.
5886         * tree-browser.c: Likewise.
5887         * tree-call-cdce.c: Likewise.
5888         * tree-cfg.c: Likewise.
5889         * tree-cfgcleanup.c: Likewise.
5890         * tree-chkp-opt.c: Likewise.
5891         * tree-chkp.c: Likewise.
5892         * tree-chrec.c: Likewise.
5893         * tree-complex.c: Likewise.
5894         * tree-data-ref.c: Likewise.
5895         * tree-dfa.c: Likewise.
5896         * tree-diagnostic.c: Likewise.
5897         * tree-dump.c: Likewise.
5898         * tree-eh.c: Likewise.
5899         * tree-emutls.c: Likewise.
5900         * tree-if-conv.c: Likewise.
5901         * tree-inline.c: Likewise.
5902         * tree-into-ssa.c: Likewise.
5903         * tree-iterator.c: Likewise.
5904         * tree-loop-distribution.c: Likewise.
5905         * tree-nested.c: Likewise.
5906         * tree-nrv.c: Likewise.
5907         * tree-object-size.c: Likewise.
5908         * tree-outof-ssa.c: Likewise.
5909         * tree-parloops.c: Likewise.
5910         * tree-phinodes.c: Likewise.
5911         * tree-predcom.c: Likewise.
5912         * tree-pretty-print.c: Likewise.
5913         * tree-profile.c: Likewise.
5914         * tree-scalar-evolution.c: Likewise.
5915         * tree-sra.c: Likewise.
5916         * tree-ssa-address.c: Likewise.
5917         * tree-ssa-alias.c: Likewise.
5918         * tree-ssa-ccp.c: Likewise.
5919         * tree-ssa-coalesce.c: Likewise.
5920         * tree-ssa-copy.c: Likewise.
5921         * tree-ssa-copyrename.c: Likewise.
5922         * tree-ssa-dce.c: Likewise.
5923         * tree-ssa-dom.c: Likewise.
5924         * tree-ssa-dse.c: Likewise.
5925         * tree-ssa-forwprop.c: Likewise.
5926         * tree-ssa-ifcombine.c: Likewise.
5927         * tree-ssa-live.c: Likewise.
5928         * tree-ssa-loop-ch.c: Likewise.
5929         * tree-ssa-loop-im.c: Likewise.
5930         * tree-ssa-loop-ivcanon.c: Likewise.
5931         * tree-ssa-loop-ivopts.c: Likewise.
5932         * tree-ssa-loop-manip.c: Likewise.
5933         * tree-ssa-loop-niter.c: Likewise.
5934         * tree-ssa-loop-prefetch.c: Likewise.
5935         * tree-ssa-loop-unswitch.c: Likewise.
5936         * tree-ssa-loop.c: Likewise.
5937         * tree-ssa-math-opts.c: Likewise.
5938         * tree-ssa-operands.c: Likewise.
5939         * tree-ssa-phiopt.c: Likewise.
5940         * tree-ssa-phiprop.c: Likewise.
5941         * tree-ssa-pre.c: Likewise.
5942         * tree-ssa-propagate.c: Likewise.
5943         * tree-ssa-reassoc.c: Likewise.
5944         * tree-ssa-sccvn.c: Likewise.
5945         * tree-ssa-scopedtables.c: Likewise.
5946         * tree-ssa-sink.c: Likewise.
5947         * tree-ssa-strlen.c: Likewise.
5948         * tree-ssa-structalias.c: Likewise.
5949         * tree-ssa-tail-merge.c: Likewise.
5950         * tree-ssa-ter.c: Likewise.
5951         * tree-ssa-threadedge.c: Likewise.
5952         * tree-ssa-threadupdate.c: Likewise.
5953         * tree-ssa-uncprop.c: Likewise.
5954         * tree-ssa-uninit.c: Likewise.
5955         * tree-ssa.c: Likewise.
5956         * tree-ssanames.c: Likewise.
5957         * tree-stdarg.c: Likewise.
5958         * tree-streamer-in.c: Likewise.
5959         * tree-streamer-out.c: Likewise.
5960         * tree-streamer.c: Likewise.
5961         * tree-switch-conversion.c: Likewise.
5962         * tree-tailcall.c: Likewise.
5963         * tree-vect-data-refs.c: Likewise.
5964         * tree-vect-generic.c: Likewise.
5965         * tree-vect-loop-manip.c: Likewise.
5966         * tree-vect-loop.c: Likewise.
5967         * tree-vect-patterns.c: Likewise.
5968         * tree-vect-slp.c: Likewise.
5969         * tree-vect-stmts.c: Likewise.
5970         * tree-vectorizer.c: Likewise.
5971         * tree-vrp.c: Likewise.
5972         * tree.c: Likewise.
5973         * tsan.c: Likewise.
5974         * ubsan.c: Likewise.
5975         * valtrack.c: Likewise.
5976         * value-prof.c: Likewise.
5977         * var-tracking.c: Likewise.
5978         * varasm.c: Likewise.
5979         * varpool.c: Likewise.
5980         * vmsdbgout.c: Likewise.
5981         * vtable-verify.c: Likewise.
5982         * web.c: Likewise.
5983         * wide-int.cc: Likewise.
5984         * xcoffout.c: Likewise.
5985         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5986         * common/common-targhooks.c: Likewise.
5987         * config/aarch64/aarch64-builtins.c: Likewise.
5988         * config/aarch64/aarch64.c: Likewise.
5989         * config/alpha/alpha.c: Likewise.
5990         * config/arc/arc.c: Likewise.
5991         * config/arm/aarch-common.c: Likewise.
5992         * config/arm/arm-builtins.c: Likewise.
5993         * config/arm/arm-c.c: Likewise.
5994         * config/arm/arm.c: Likewise.
5995         * config/avr/avr-c.c: Likewise.
5996         * config/avr/avr-log.c: Likewise.
5997         * config/avr/avr.c: Likewise.
5998         * config/bfin/bfin.c: Likewise.
5999         * config/c6x/c6x.c: Likewise.
6000         * config/cr16/cr16.c: Likewise.
6001         * config/cris/cris.c: Likewise.
6002         * config/darwin-c.c: Likewise.
6003         * config/darwin.c: Likewise.
6004         * config/default-c.c: Likewise.
6005         * config/epiphany/epiphany.c: Likewise.
6006         * config/epiphany/mode-switch-use.c: Likewise.
6007         * config/epiphany/resolve-sw-modes.c: Likewise.
6008         * config/fr30/fr30.c: Likewise.
6009         * config/frv/frv.c: Likewise.
6010         * config/ft32/ft32.c: Likewise.
6011         * config/glibc-c.c: Likewise.
6012         * config/h8300/h8300.c: Likewise.
6013         * config/i386/i386-c.c: Likewise.
6014         * config/i386/i386.c: Likewise.
6015         * config/i386/msformat-c.c: Likewise.
6016         * config/i386/winnt-cxx.c: Likewise.
6017         * config/i386/winnt-stubs.c: Likewise.
6018         * config/i386/winnt.c: Likewise.
6019         * config/ia64/ia64-c.c: Likewise.
6020         * config/ia64/ia64.c: Likewise.
6021         * config/iq2000/iq2000.c: Likewise.
6022         * config/lm32/lm32.c: Likewise.
6023         * config/m32c/m32c-pragma.c: Likewise.
6024         * config/m32c/m32c.c: Likewise.
6025         * config/m32r/m32r.c: Likewise.
6026         * config/m68k/m68k.c: Likewise.
6027         * config/mcore/mcore.c: Likewise.
6028         * config/mep/mep-pragma.c: Likewise.
6029         * config/mep/mep.c: Likewise.
6030         * config/microblaze/microblaze-c.c: Likewise.
6031         * config/microblaze/microblaze.c: Likewise.
6032         * config/mips/mips.c: Likewise.
6033         * config/mmix/mmix.c: Likewise.
6034         * config/mn10300/mn10300.c: Likewise.
6035         * config/moxie/moxie.c: Likewise.
6036         * config/msp430/msp430-c.c: Likewise.
6037         * config/msp430/msp430.c: Likewise.
6038         * config/nds32/nds32-cost.c: Likewise.
6039         * config/nds32/nds32-fp-as-gp.c: Likewise.
6040         * config/nds32/nds32-intrinsic.c: Likewise.
6041         * config/nds32/nds32-isr.c: Likewise.
6042         * config/nds32/nds32-md-auxiliary.c: Likewise.
6043         * config/nds32/nds32-memory-manipulation.c: Likewise.
6044         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6045         * config/nds32/nds32-predicates.c: Likewise.
6046         * config/nds32/nds32.c: Likewise.
6047         * config/nios2/nios2.c: Likewise.
6048         * config/nvptx/nvptx.c: Likewise.
6049         * config/pa/pa.c: Likewise.
6050         * config/pdp11/pdp11.c: Likewise.
6051         * config/rl78/rl78-c.c: Likewise.
6052         * config/rl78/rl78.c: Likewise.
6053         * config/rs6000/rs6000-c.c: Likewise.
6054         * config/rs6000/rs6000.c: Likewise.
6055         * config/rx/rx.c: Likewise.
6056         * config/s390/s390-c.c: Likewise.
6057         * config/s390/s390.c: Likewise.
6058         * config/sh/sh-c.c: Likewise.
6059         * config/sh/sh-mem.cc: Likewise.
6060         * config/sh/sh.c: Likewise.
6061         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6062         * config/sh/sh_treg_combine.cc: Likewise.
6063         * config/sol2-c.c: Likewise.
6064         * config/sol2-cxx.c: Likewise.
6065         * config/sol2-stubs.c: Likewise.
6066         * config/sol2.c: Likewise.
6067         * config/sparc/sparc-c.c: Likewise.
6068         * config/sparc/sparc.c: Likewise.
6069         * config/spu/spu-c.c: Likewise.
6070         * config/spu/spu.c: Likewise.
6071         * config/stormy16/stormy16.c: Likewise.
6072         * config/tilegx/mul-tables.c: Likewise.
6073         * config/tilegx/tilegx-c.c: Likewise.
6074         * config/tilegx/tilegx.c: Likewise.
6075         * config/tilepro/mul-tables.c: Likewise.
6076         * config/tilepro/tilepro-c.c: Likewise.
6077         * config/tilepro/tilepro.c: Likewise.
6078         * config/v850/v850-c.c: Likewise.
6079         * config/v850/v850.c: Likewise.
6080         * config/vax/vax.c: Likewise.
6081         * config/visium/visium.c: Likewise.
6082         * config/vms/vms-c.c: Likewise.
6083         * config/vms/vms.c: Likewise.
6084         * config/vxworks.c: Likewise.
6085         * config/winnt-c.c: Likewise.
6086         * config/xtensa/xtensa.c: Likewise.
6087
6088 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
6089
6090         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6091         function.
6092         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6093
6094 2015-06-17  Richard Biener  <rguenther@suse.de>
6095
6096         PR tree-optimization/66251
6097         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6098         stmts for SLP strided stores.
6099
6100         Revert
6101         2015-05-22  Richard Biener  <rguenther@suse.de>
6102
6103         PR tree-optimization/66251
6104         * tree-vect-stmts.c (vectorizable_conversion): Properly
6105         set STMT_VINFO_VEC_STMT even for the SLP case.
6106
6107         2015-05-26  Michael Matz  <matz@suse.de>
6108
6109         PR middle-end/66251
6110         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6111         STMT_VINFO_VEC_STMT, also with SLP.
6112
6113 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
6114
6115         PR target/56766
6116         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6117         (*avx_addsubv4df3_1s): Ditto.
6118         (*sse3_addsubv2df3_1): Ditto.
6119         (*sse3_addsubv2df3_1s): Ditto.
6120         (*avx_addsubv8sf3_1): Ditto.
6121         (*avx_addsubv8sf3_1s): Ditto.
6122         (*sse3_addsubv4sf3_1): Ditto.
6123         (*sse3_addsubv4sf3_1s): Ditto.
6124
6125 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
6126
6127         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6128         (SYSROOT_SUFFIX_SPEC): Update.
6129         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6130         (STARTFILE_PREFIX_SPEC): Update.
6131         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6132         (MULTILIB_REQUIRED): New.
6133         (MULTILIB_OSDIRNAMES): New.
6134         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6135         (MULTILIB_REQUIRED): New.
6136         (MULTILIB_OSDIRNAMES): New.
6137
6138 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
6139
6140         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6141         * config/aarch64/aarch64-options-extensions.def: Update "fP",
6142         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
6143         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6144         (AARCH64_FL_PAN): New.
6145         (AARCH64_FL_LOR): New.
6146         (AARCH64_FL_RDMA): New.
6147         (AARCH64_FL_FOR_ARCH8_1): New.
6148         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6149         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6150
6151 2015-06-16  Martin Liska  <mliska@suse.cz>
6152
6153         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6154         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6155         guard.
6156
6157 2015-06-16  Richard Biener  <rguenther@suse.de>
6158
6159         * tree-vect-stmts.c (vectorizable_store): Adjust.
6160         (vectorizable_load): Likewise.
6161         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6162         Simplify.
6163         (vect_create_data_ref_ptr): Likewise.
6164         (bump_vector_ptr): Adjust.
6165
6166 2015-06-16  Richard Biener  <rguenther@suse.de>
6167
6168         * tree-vect-stmts.c (vectorizable_load): Properly start loads
6169         with the first element if this is grouped loads.
6170
6171 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
6172
6173         * config/arm/arm-protos.h (struct tune_params): Rename
6174         log_op_non_sc to log_op_non_short_circuit, and rename enum
6175         values to expand SC to SHORT_CIRCUIT.
6176         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6177         to LOG_OP_NON_SHORT_CIRCUIT.
6178         (arm_fastmul_tune):Likewise
6179         (arm_strongarm_tune): Likewise.
6180         (arm_xscale_tune): Likewise.
6181         (arm_9e_tune): Likewise.
6182         (arm_marvell_pj4_tune): Likewise.
6183         (arm_v6t2_tune): Likewise.
6184         (arm_cortex_tune): Likewise.
6185         (arm_cortex_a8_tune): Likewise.
6186         (arm_cortex_a7_tune): Likewise.
6187         (arm_cortex_a15_tune): Likewise.
6188         (arm_cortex_a53_tune): Likewise.
6189         (arm_cortex_a57_tune): Likewise.
6190         (arm_xgene1_tune): Likewise.
6191         (arm_cortex_a5_tune): Likewise.
6192         (arm_cortex_a9_tune): Likewise.
6193         (arm_cortex_a12_tune): Likewise.
6194         (arm_v7m_tune): Likewise.
6195         (arm_cortex_m7_tune): Likewise.
6196         (arm_v6m_tune): Likewise.
6197         (arm_fa726te_tune): Likewise.
6198
6199 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
6200
6201         * altivec.md: Delete UNSPEC_VMLADDUHM.
6202         (mulv4si3_p8): New pattern.
6203         (mulv4si3): Use it for POWER8.
6204         (mulv8hi3): Use vmladduhm with zero addend.
6205         (altivec_vmladduhm): Descriptive RTL.
6206
6207 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
6208
6209         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6210         to use neon_move instead of mov_imm.
6211         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6212         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6213
6214         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6215         aarch64_float_const_zero_rtx_p check before TFmode check.
6216         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6217         an fp zero.
6218         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
6219         code and attributes to match.  Change condition from register_operand
6220         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
6221         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
6222         to store2.
6223
6224 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
6225
6226         PR debug/66535
6227         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6228         there is no parent.
6229
6230 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
6231
6232         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6233         HOST_WIDE_INT parameter.
6234
6235 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
6236
6237         PR ipa/66181
6238         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6239         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6240         TYPE_NO_FORCE_BLK.
6241         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6242
6243 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
6244
6245         * rtl.h (classify_insn): Declare.
6246         * emit-rtl.c (classify_insn): Move to...
6247         * rtl.c: ...here and add generator support.
6248         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6249         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6250         * genemit.c (gen_emit_seq): New function.
6251         (gen_expand, gen_split): Use it.
6252
6253 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
6254
6255         * tree.c (make_vector_stat): Fix comment to state that the
6256         function returns a VECTOR_CST.
6257
6258 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
6259
6260         * gensupport.h (add_implicit_parallel): Declare.
6261         * genrecog.c (add_implicit_parallel): Move to...
6262         * gensupport.c (add_implicit_parallel): ...here.
6263         (process_one_cond_exec): Use it.
6264         * genemit.c (gen_insn): Likewise.
6265
6266 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
6267
6268         PR bootstrap/66448
6269         * passes.c (rest_of_decl_compilation): Do not register globals for
6270         early debug if they are declared in built-ins.
6271
6272 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
6273
6274         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6275
6276 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6277
6278         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6279         manually swapping.
6280         (noce_try_cmove_arith): Likewise.
6281         (noce_get_alt_condition): Likewise.
6282
6283 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6284
6285         * common/config/i386/i386-common.c
6286         (OPTION_MASK_ISA_MWAITX_SET): New.
6287         (ix86_handle_option): Handle mwaitx.
6288         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6289         (x86_64-*-*): Likewise.
6290         * config/i386/mwaitxintrin.h: New header.
6291         * config/i386/cpuid.h (bit_MWAITX):  Define.
6292         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6293         MWAITX support.
6294         * config/i386/i386.opt (mwaitx): New.
6295         * config/i386/i386-builtin-types.def
6296         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6297         * config/i386/i386-c.c: Define __MWAITX__ if needed.
6298         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6299         (PTA_MWAITX): New.
6300         (ix86_option_override_internal): Handle new option.
6301         (processor_alias_table): Added PTA_MWAITX.
6302         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6303         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6304         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6305         IX86_BUILTIN_MONITORX  built-ins.
6306         * config/i386/i386.h (TARGET_MWAITX): New.
6307         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6308         UNSPEC_MONITORX.
6309         (mwaitx):  New pattern.
6310         (monitorx_<mode>): New pattern.
6311         * config/i386/x86intrin.h: Include mwaitxintrin.h.
6312         * doc/extend.texi: Document monitorx and mwaitx builtins.
6313         * doc/invoke.texi: Document -mmwaitx option.
6314
6315 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
6316
6317         * emit-rtl.c (need_atomic_barrier_p): Mask model with
6318         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
6319
6320 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6321
6322         * dbxout.c (xcoff_debug_hooks): Provide a function for
6323         register_main_translation_unit hook.
6324
6325 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6326
6327         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6328         variants cases from switch.
6329         (rs6000_post_atomic_barrier): Same.
6330         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6331         (rs6000_expand_atomic_exchange): Same.
6332         (rs6000_expand_atomic_op): Same.
6333         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6334         SYNC variants cases from switch.
6335         (atomic_load): Same.
6336         (atomic_store): Same.
6337
6338 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
6339
6340         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6341         CONST_INT for goto.
6342
6343 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
6344
6345         PR bootstrap/66448
6346         * dwarf2out.c (check_die): Check for common duplicate attributes.
6347         (add_location_or_const_value_attribute): Do not add duplicate
6348         attributes.
6349         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6350         time around.
6351         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6352         (gen_type_die_with_usage): Call check_die.
6353         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6354
6355 2015-06-11  Jason Merrill  <jason@redhat.com>
6356
6357         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6358         dies.
6359
6360 2015-06-11  Marek Polacek  <polacek@redhat.com>
6361
6362         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6363
6364 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
6365
6366         PR bootstrap/66252
6367         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6368         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6369         (*addx_extend_sp32): Fix pasto.
6370         (*subx_extend): Rename into...
6371         (*subx_extend_sp32): ...this.
6372         (*adddi3_extend_sp32): Add earlyclobber.
6373         (*subdi3_insn_sp32): Likewise.
6374         (*subdi3_extend_sp32): Likewise.
6375         (*and_not_di_sp32): Likewise.
6376         (*or_not_di_sp32): Likewise.
6377         (*xor_not_di_sp32): Likewise.
6378         (*negdi2_sp32): Likewise.
6379         (*one_cmpldi2_sp32): Likewise.
6380
6381 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
6382
6383         * debug.h (struct gcc_debug_hooks): Add a
6384         register_main_translation_unit hook.
6385         * debug.c (do_nothing_debug_hooks): Provide a function for this
6386         new hook.
6387         * dbxout.c (dbx_debug_hooks): Likewise.
6388         * sdbout.c (sdb_debug_hooks): Likewise.
6389         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6390         * dwarf2out.c (main_translation_unit): New global variable.
6391         (dwarf2out_register_main_translation_unit): New function
6392         implementing the new hook.
6393         (dwarf2_debug_hooks): Assign
6394         dwarf2out_register_main_translation_unit to this new hook.
6395         (dwarf2out_init): Associate any main translation unit to
6396         comp_unit_die ().
6397
6398 2015-06-11  Marek Polacek  <polacek@redhat.com>
6399
6400         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6401
6402 2015-06-11  Marek Polacek  <polacek@redhat.com>
6403
6404         * match.pd: Use single_use throughout.
6405
6406 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6407
6408         * config/arm/arm.c (arm_option_params_internal): When optimising
6409         for speed set max_insns_skipped when arm_restrict_it.
6410
6411 2015-06-11  Christian Bruel  <christian.bruel@st.com>
6412
6413         PR target/52144
6414         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6415          macros in ...
6416         (arm_cpu_builtins): New function.
6417         (arm_pragma_target_parse): Call arm_cpu_builtins.
6418         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6419         (arm_register_target_pragmas): Likewise.
6420         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6421          Call arm_register_target_pragmas.
6422         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6423         (arm_pragma_target_parse): Likewise.
6424
6425 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
6426
6427         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6428         of the second operand.
6429
6430 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
6431
6432         PR target/66473
6433         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6434         to prepare mask operand for AVX512 modes.
6435
6436 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6437
6438         PR target/66474
6439         * doc/md.texi (Machine Constraints): Document that on the PowerPC
6440         if you use a constraint that targets a VSX register, you must use
6441         %x<n> in the template.
6442
6443 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
6444
6445         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6446         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6447         (define_insn "trap"): New definition.
6448
6449 2015-06-10  Richard Biener  <rguenther@suse.de>
6450
6451         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6452         out from ...
6453         (vect_supported_load_permutation_p): ... here.  Handle
6454         supportable permutations in reductions.
6455         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6456         for vectorizing strided group loads.
6457
6458 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
6459
6460         PR target/66470
6461         * config/i386/i386.c (ix86_split_long_move): For collisions
6462         involving direct tls segment refs, move the UNSPEC_TP possibly
6463         wrapped in ZERO_EXTEND out of the address for lea, to each of
6464         the memory loads.
6465
6466 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6467
6468         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6469         dmb sy. Adjust tabs.
6470
6471 2015-06-10  Tom de Vries  <tom@codesourcery.com>
6472
6473         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6474
6475 2015-06-10  Martin Liska  <mliska@suse.cz>
6476
6477         PR bootstrap/66471
6478         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6479         all enum values in mem_alloc_origin.
6480         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6481         name.
6482         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6483         * bitmap.c (bitmap_register): Likewise.
6484         (dump_bitmap_statistics): Likewise.
6485         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6486         (ggc_record_overhead): Likewise.
6487         * hash-map.h: Likewise.
6488         * hash-set.h: Likewise.
6489         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6490         * hash-table.h: Likewise.
6491         * vec.c (vec_prefix::register_overhead): Likewise.
6492         (vec_prefix::release_overhead): Likewise.
6493         (dump_vec_loc_statistics): Likewise.
6494
6495 2015-06-09  Christian Bruel  <christian.bruel@st.com>
6496
6497         PR target/52144
6498         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6499         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6500         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6501         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6502         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6503         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6504         (arm_valid_target_attribute_p): Likewise.
6505         (arm_set_current_function, arm_can_inline_p): Likewise.
6506         (arm_valid_target_attribute_rec): Likewise.
6507         (arm_previous_fndecl): New variable.
6508         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6509         (TARGET_CAN_INLINE_P): Define.
6510         (arm_asm_trampoline_template): Emit mode.
6511         (arm_file_start): Don't set unified syntax.
6512         (arm_declare_function_name): Set unified syntax and mode.
6513         (arm_option_override): Init target_option_default_node.
6514         and target_option_current_node.
6515         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6516         (*call_symbol): Likewise.
6517         * doc/extend.texi: Document ARM/Thumb target attribute.
6518         * doc/invoke.texi: Likewise.
6519
6520 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6521
6522         Revert:
6523         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6524         PR rtl-optimization/64164
6525         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6526         * tree-ssa-copyrename.c: Removed.
6527         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6528         -ftree-coalesce-vars.
6529         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6530         * common.opt (ftree-copyrename): Ignore.
6531         (ftree-coalesce-inlined-vars): Likewise.
6532         * doc/invoke.texi: Remove the ignored options above.
6533         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6534         * tree-ssa-coalesce.h: ... here.
6535         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6536         headers required by it.
6537         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6538         across variables when flag_tree_coalesce_vars.  Check register
6539         use and promoted modes to allow coalescing.  Moved to
6540         tree-ssa-coalesce.c.
6541         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6542         with its member functions to tree-ssa-coalesce.c.
6543         (var_map_base_init): Likewise.  Renamed to
6544         compute_samebase_partition_bases.
6545         (partition_view_normal): Drop want_bases parameter.
6546         (partition_view_bitmap): Likewise.
6547         * tree-ssa-live.h: Adjust declarations.
6548         * tree-ssa-coalesce.c: Include explow.h.
6549         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6550         default defs at the entry point.
6551         (dump_part_var_map): New.
6552         (compute_optimized_partition_bases): New, called by...
6553         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6554         of compute_samebase_partition_bases.  Adjust.
6555         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6556         * cfgexpand.c (leader_merge): New.
6557         (get_rtl_for_parm_ssa_default_def): New.
6558         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6559         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6560         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6561         redundant MEM attr setting.
6562         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6563         from...
6564         (expand_one_stack_var): ... this.  New wrapper to check and
6565         skip already expanded SSA partitions.
6566         (record_alignment_for_reg_var): New, factored out of...
6567         (expand_one_var): ... this.
6568         (expand_one_ssa_partition): New.
6569         (adjust_one_expanded_partition_var): New.
6570         (expand_one_register_var): Check and skip already expanded SSA
6571         partitions.
6572         (expand_used_vars): Don't create DECLs for anonymous SSA
6573         names.  Expand all SSA partitions, then adjust all SSA names.
6574         (pass::execute): Replace the loops that set
6575         SA.partition_to_pseudo from partition leaders and cleared
6576         DECL_RTL for multi-location variables, and that which used to
6577         rename vars and set attrs, with one that clears DECL_RTL and
6578         checks that PARMs and RESULTs default_defs match DECL_RTL.
6579         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6580         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6581         * explow.c (promote_ssa_mode): New.
6582         * explow.h (promote_ssa_mode): Declare.
6583         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6584         * function.c: Include cfgexpand.h.
6585         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6586         (use_register_for_parm_decl): Wrapper for the above to
6587         special-case the result_ptr.
6588         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6589         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6590         multiple locations.
6591         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6592         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6593         (assign_parm_setup_block): Prefer SSA-assigned location.
6594         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6595         if stack_parm is NULL.
6596         (assign_parm_setup_stack): Prefer SSA-assigned location.
6597         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6598         rtl before testing for pointer bounds.  Special-case result_ptr.
6599         (expand_function_start): Maybe reset DECL_RTL of result.
6600         Prefer SSA-assigned location for result and static chain.
6601         Factor out DECL_RESULT and SET_DECL_RTL.
6602         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6603         anonymous SSA names.  Use promote_ssa_mode.
6604         (get_temp_reg): Likewise.
6605         (remove_ssa_form): Adjust.
6606         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6607         and get its reg_usage for reg invalidation.
6608         (compute_bb_dataflow): Pass it insn.
6609         (emit_notes_in_bb): Likewise.
6610         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6611         fail assert on conversion between unsigned types.
6612
6613 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6614
6615         PR tree-optimization/65460
6616         * omp-low.c (expand_omp_target): Set parallelized_function on
6617         cgraph_node for child_fn.
6618
6619 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6620
6621         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6622         parallelized_function before add_new_function.
6623
6624 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
6625
6626         * gcc-plugin.h: Move decls to plugin.h and include it.
6627         * plugin.h: Relocate decls from gcc-plugin.h
6628         * ggc-page.c: Include required header files.
6629         * passes.c: Likewise.
6630         * cgraphunit.c: Likewise.
6631
6632 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6633
6634         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6635
6636 2015-06-09  Jason Merrill  <jason@redhat.com>
6637
6638         PR bootstrap/66448
6639         * toplev.c (check_global_declaration): Don't warn about a clone.
6640
6641 2015-06-09  Marek Polacek  <polacek@redhat.com>
6642
6643         PR tree-optimization/66299
6644         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6645         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6646         patterns.
6647
6648 2015-06-09  Richard Biener  <rguenther@suse.de>
6649
6650         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6651         (vect_analyze_slp_instance): Instead do not falsely drop
6652         load permutations.
6653
6654 2015-06-09  Richard Biener  <rguenther@suse.de>
6655
6656         PR middle-end/66423
6657         * match.pd: Handle A % (unsigned)(1 << B).
6658
6659 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
6660
6661         * varasm.c (output_object_block_htab): Remove.
6662         (output_object_block_compare): New.
6663         (output_object_blocks): Sort named object_blocks before outputting
6664         them.
6665
6666 2015-06-09  Richard Biener  <rguenther@suse.de>
6667
6668         PR tree-optimization/66419
6669         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6670         consider GROUP_GAP when detecting a perfect subchain.
6671
6672 2015-06-09  Nick Clifton  <nickc@redhat.com>
6673
6674         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6675         place read only data in the .frodata section.
6676
6677 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
6678
6679         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6680         (atomic_store<mode>): Likewise.
6681
6682 2015-06-09  Richard Biener  <rguenther@suse.de>
6683
6684         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6685
6686 2015-06-09  Richard Biener  <rguenther@suse.de>
6687
6688         PR middle-end/66413
6689         * tree-inline.c (insert_init_debug_bind): Unshare value.
6690
6691 2015-06-09  Richard Biener  <rguenther@suse.de>
6692
6693         PR tree-optimization/66396
6694         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6695         Rename virtual operands.
6696
6697 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6698
6699         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6700         always return false.
6701
6702 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6703
6704         PR rtl-optimization/64164
6705         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6706         * tree-ssa-copyrename.c: Removed.
6707         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6708         -ftree-coalesce-vars.
6709         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6710         * common.opt (ftree-copyrename): Ignore.
6711         (ftree-coalesce-inlined-vars): Likewise.
6712         * doc/invoke.texi: Remove the ignored options above.
6713         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6714         * tree-ssa-coalesce.h: ... here.
6715         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6716         headers required by it.
6717         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6718         across variables when flag_tree_coalesce_vars.  Check register
6719         use and promoted modes to allow coalescing.  Moved to
6720         tree-ssa-coalesce.c.
6721         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6722         with its member functions to tree-ssa-coalesce.c.
6723         (var_map_base_init): Likewise.  Renamed to
6724         compute_samebase_partition_bases.
6725         (partition_view_normal): Drop want_bases parameter.
6726         (partition_view_bitmap): Likewise.
6727         * tree-ssa-live.h: Adjust declarations.
6728         * tree-ssa-coalesce.c: Include explow.h.
6729         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6730         default defs at the entry point.
6731         (dump_part_var_map): New.
6732         (compute_optimized_partition_bases): New, called by...
6733         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6734         of compute_samebase_partition_bases.  Adjust.
6735         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6736         * cfgexpand.c (leader_merge): New.
6737         (get_rtl_for_parm_ssa_default_def): New.
6738         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6739         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6740         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6741         redundant MEM attr setting.
6742         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6743         from...
6744         (expand_one_stack_var): ... this.  New wrapper to check and
6745         skip already expanded SSA partitions.
6746         (record_alignment_for_reg_var): New, factored out of...
6747         (expand_one_var): ... this.
6748         (expand_one_ssa_partition): New.
6749         (adjust_one_expanded_partition_var): New.
6750         (expand_one_register_var): Check and skip already expanded SSA
6751         partitions.
6752         (expand_used_vars): Don't create DECLs for anonymous SSA
6753         names.  Expand all SSA partitions, then adjust all SSA names.
6754         (pass::execute): Replace the loops that set
6755         SA.partition_to_pseudo from partition leaders and cleared
6756         DECL_RTL for multi-location variables, and that which used to
6757         rename vars and set attrs, with one that clears DECL_RTL and
6758         checks that PARMs and RESULTs default_defs match DECL_RTL.
6759         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6760         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6761         * explow.c (promote_ssa_mode): New.
6762         * explow.h (promote_ssa_mode): Declare.
6763         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6764         * function.c: Include cfgexpand.h.
6765         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6766         (use_register_for_parm_decl): Wrapper for the above to
6767         special-case the result_ptr.
6768         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6769         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6770         multiple locations.
6771         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6772         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6773         (assign_parm_setup_block): Prefer SSA-assigned location.
6774         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6775         if stack_parm is NULL.
6776         (assign_parm_setup_stack): Prefer SSA-assigned location.
6777         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6778         rtl before testing for pointer bounds.  Special-case result_ptr.
6779         (expand_function_start): Maybe reset DECL_RTL of result.
6780         Prefer SSA-assigned location for result and static chain.
6781         Factor out DECL_RESULT and SET_DECL_RTL.
6782         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6783         anonymous SSA names.  Use promote_ssa_mode.
6784         (get_temp_reg): Likewise.
6785         (remove_ssa_form): Adjust.
6786         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6787         and get its reg_usage for reg invalidation.
6788         (compute_bb_dataflow): Pass it insn.
6789         (emit_notes_in_bb): Likewise.
6790         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6791         fail assert on conversion between unsigned types.
6792
6793 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6794
6795         PR debug/58315
6796         * tree-inline.c (reset_debug_binding): New.
6797         (reset_debug_bindings): Likewise.
6798         (expand_call_inline): Call it.
6799
6800 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6801
6802         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6803         TYPE_STRING_FLAG.
6804
6805 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6806
6807         * lto-streamer-out.c (lto_output_location): Stream
6808         reserved locations correctly.
6809         * lto-streamer-in.c (lto_output_location): Likewise.
6810
6811 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
6812
6813         * coretypes.h: Include hash-table.h and hash-set.h for host files.
6814         * ggc.h: Don't include statistics.h>
6815         * hash-map.h: Remove all includes.
6816         * hash-set.h: Likewise.
6817         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6818         the include list. Remove <new>.
6819         * inchash.h: Remove all includes.
6820         * mem-stats.h: Likewise.
6821         * vec.h: No special processing for generators or ggc.
6822         * alias.c : Adjust include files.
6823         * alloc-pool.c : Likewise.
6824         * alloc-pool.h : Likewise.
6825         * asan.c : Likewise.
6826         * attribs.c : Likewise.
6827         * auto-inc-dec.c : Likewise.
6828         * auto-profile.c : Likewise.
6829         * bb-reorder.c : Likewise.
6830         * bitmap.c : Likewise.
6831         * bitmap.h : Likewise.
6832         * bt-load.c : Likewise.
6833         * builtins.c : Likewise.
6834         * caller-save.c : Likewise.
6835         * calls.c : Likewise.
6836         * ccmp.c : Likewise.
6837         * cfg.c : Likewise.
6838         * cfganal.c : Likewise.
6839         * cfgbuild.c : Likewise.
6840         * cfgcleanup.c : Likewise.
6841         * cfgexpand.c : Likewise.
6842         * cfghooks.c : Likewise.
6843         * cfgloop.c : Likewise.
6844         * cfgloop.h : Likewise.
6845         * cfgloopanal.c : Likewise.
6846         * cfgloopmanip.c : Likewise.
6847         * cfgrtl.c : Likewise.
6848         * cgraph.c : Likewise.
6849         * cgraphbuild.c : Likewise.
6850         * cgraphclones.c : Likewise.
6851         * cgraphunit.c : Likewise.
6852         * cilk-common.c : Likewise.
6853         * combine-stack-adj.c : Likewise.
6854         * combine.c : Likewise.
6855         * compare-elim.c : Likewise.
6856         * context.c : Likewise.
6857         * convert.c : Likewise.
6858         * coverage.c : Likewise.
6859         * cppbuiltin.c : Likewise.
6860         * cprop.c : Likewise.
6861         * cse.c : Likewise.
6862         * cselib.c : Likewise.
6863         * data-streamer-in.c : Likewise.
6864         * data-streamer-out.c : Likewise.
6865         * data-streamer.c : Likewise.
6866         * data-streamer.h : Likewise.
6867         * dbxout.c : Likewise.
6868         * dce.c : Likewise.
6869         * ddg.c : Likewise.
6870         * debug.c : Likewise.
6871         * df-core.c : Likewise.
6872         * df-problems.c : Likewise.
6873         * df-scan.c : Likewise.
6874         * df.h : Likewise.
6875         * dfp.c : Likewise.
6876         * dojump.c : Likewise.
6877         * dominance.c : Likewise.
6878         * domwalk.c : Likewise.
6879         * double-int.c : Likewise.
6880         * dse.c : Likewise.
6881         * dumpfile.c : Likewise.
6882         * dwarf2asm.c : Likewise.
6883         * dwarf2cfi.c : Likewise.
6884         * dwarf2out.c : Likewise.
6885         * emit-rtl.c : Likewise.
6886         * et-forest.c : Likewise.
6887         * except.c : Likewise.
6888         * except.h : Likewise.
6889         * explow.c : Likewise.
6890         * expmed.c : Likewise.
6891         * expr.c : Likewise.
6892         * final.c : Likewise.
6893         * fixed-value.c : Likewise.
6894         * fold-const.c : Likewise.
6895         * function.c : Likewise.
6896         * fwprop.c : Likewise.
6897         * gcc-plugin.h : Likewise.
6898         * gcc.c : Likewise.
6899         * gcse-common.c : Likewise.
6900         * gcse.c : Likewise.
6901         * genattrtab.c : Likewise.
6902         * genautomata.c : Likewise.
6903         * genconditions.c : Likewise.
6904         * genemit.c : Likewise.
6905         * generic-match-head.c : Likewise.
6906         * genextract.c : Likewise.
6907         * gengtype-state.c : Likewise.
6908         * gengtype.c : Likewise.
6909         * genhooks.c : Likewise.
6910         * genmatch.c : Likewise.
6911         * genmodes.c : Likewise.
6912         * genrecog.c : Likewise.
6913         * gensupport.c : Likewise.
6914         * ggc-common.c : Likewise.
6915         * ggc-internal.h : Likewise.
6916         * ggc-none.c : Likewise.
6917         * ggc-page.c : Likewise.
6918         * gimple-builder.c : Likewise.
6919         * gimple-expr.c : Likewise.
6920         * gimple-fold.c : Likewise.
6921         * gimple-iterator.c : Likewise.
6922         * gimple-low.c : Likewise.
6923         * gimple-match-head.c : Likewise.
6924         * gimple-pretty-print.c : Likewise.
6925         * gimple-ssa-isolate-paths.c : Likewise.
6926         * gimple-ssa-strength-reduction.c : Likewise.
6927         * gimple-ssa.h : Likewise.
6928         * gimple-streamer-in.c : Likewise.
6929         * gimple-streamer-out.c : Likewise.
6930         * gimple-streamer.h : Likewise.
6931         * gimple-walk.c : Likewise.
6932         * gimple.c : Likewise.
6933         * gimplify-me.c : Likewise.
6934         * gimplify.c : Likewise.
6935         * godump.c : Likewise.
6936         * graph.c : Likewise.
6937         * graphds.c : Likewise.
6938         * graphite-blocking.c : Likewise.
6939         * graphite-dependences.c : Likewise.
6940         * graphite-interchange.c : Likewise.
6941         * graphite-isl-ast-to-gimple.c : Likewise.
6942         * graphite-optimize-isl.c : Likewise.
6943         * graphite-poly.c : Likewise.
6944         * graphite-scop-detection.c : Likewise.
6945         * graphite-sese-to-poly.c : Likewise.
6946         * graphite.c : Likewise.
6947         * haifa-sched.c : Likewise.
6948         * hard-reg-set.h : Likewise.
6949         * hw-doloop.c : Likewise.
6950         * ifcvt.c : Likewise.
6951         * inchash.c : Likewise.
6952         * incpath.c : Likewise.
6953         * init-regs.c : Likewise.
6954         * input.c : Likewise.
6955         * internal-fn.c : Likewise.
6956         * ipa-chkp.c : Likewise.
6957         * ipa-comdats.c : Likewise.
6958         * ipa-cp.c : Likewise.
6959         * ipa-devirt.c : Likewise.
6960         * ipa-icf-gimple.c : Likewise.
6961         * ipa-icf.c : Likewise.
6962         * ipa-inline-analysis.c : Likewise.
6963         * ipa-inline-transform.c : Likewise.
6964         * ipa-inline.c : Likewise.
6965         * ipa-polymorphic-call.c : Likewise.
6966         * ipa-profile.c : Likewise.
6967         * ipa-prop.c : Likewise.
6968         * ipa-pure-const.c : Likewise.
6969         * ipa-ref.c : Likewise.
6970         * ipa-reference.c : Likewise.
6971         * ipa-split.c : Likewise.
6972         * ipa-utils.c : Likewise.
6973         * ipa-visibility.c : Likewise.
6974         * ipa.c : Likewise.
6975         * ira-build.c : Likewise.
6976         * ira-color.c : Likewise.
6977         * ira-conflicts.c : Likewise.
6978         * ira-costs.c : Likewise.
6979         * ira-emit.c : Likewise.
6980         * ira-lives.c : Likewise.
6981         * ira.c : Likewise.
6982         * jump.c : Likewise.
6983         * langhooks.c : Likewise.
6984         * lcm.c : Likewise.
6985         * libfuncs.h : Likewise.
6986         * lists.c : Likewise.
6987         * loop-doloop.c : Likewise.
6988         * loop-init.c : Likewise.
6989         * loop-invariant.c : Likewise.
6990         * loop-iv.c : Likewise.
6991         * loop-unroll.c : Likewise.
6992         * lower-subreg.c : Likewise.
6993         * lra-assigns.c : Likewise.
6994         * lra-coalesce.c : Likewise.
6995         * lra-constraints.c : Likewise.
6996         * lra-eliminations.c : Likewise.
6997         * lra-lives.c : Likewise.
6998         * lra-remat.c : Likewise.
6999         * lra-spills.c : Likewise.
7000         * lra.c : Likewise.
7001         * lto-cgraph.c : Likewise.
7002         * lto-compress.c : Likewise.
7003         * lto-opts.c : Likewise.
7004         * lto-section-in.c : Likewise.
7005         * lto-section-out.c : Likewise.
7006         * lto-streamer-in.c : Likewise.
7007         * lto-streamer-out.c : Likewise.
7008         * lto-streamer.c : Likewise.
7009         * lto-streamer.h : Likewise.
7010         * mcf.c : Likewise.
7011         * mode-switching.c : Likewise.
7012         * modulo-sched.c : Likewise.
7013         * omega.c : Likewise.
7014         * omp-low.c : Likewise.
7015         * optabs.c : Likewise.
7016         * opts-global.c : Likewise.
7017         * opts.h : Likewise.
7018         * passes.c : Likewise.
7019         * plugin.c : Likewise.
7020         * postreload-gcse.c : Likewise.
7021         * postreload.c : Likewise.
7022         * predict.c : Likewise.
7023         * print-rtl.c : Likewise.
7024         * print-tree.c : Likewise.
7025         * profile.c : Likewise.
7026         * read-md.c : Likewise.
7027         * read-md.h : Likewise.
7028         * read-rtl.c : Likewise.
7029         * real.c : Likewise.
7030         * realmpfr.c : Likewise.
7031         * recog.c : Likewise.
7032         * ree.c : Likewise.
7033         * reg-stack.c : Likewise.
7034         * regcprop.c : Likewise.
7035         * reginfo.c : Likewise.
7036         * regrename.c : Likewise.
7037         * regstat.c : Likewise.
7038         * reload.c : Likewise.
7039         * reload1.c : Likewise.
7040         * reorg.c : Likewise.
7041         * resource.c : Likewise.
7042         * rtl-chkp.c : Likewise.
7043         * rtl.c : Likewise.
7044         * rtl.h : Likewise.
7045         * rtlanal.c : Likewise.
7046         * rtlhash.c : Likewise.
7047         * rtlhash.h : Likewise.
7048         * rtlhooks.c : Likewise.
7049         * sanopt.c : Likewise.
7050         * sched-deps.c : Likewise.
7051         * sched-ebb.c : Likewise.
7052         * sched-rgn.c : Likewise.
7053         * sched-vis.c : Likewise.
7054         * sdbout.c : Likewise.
7055         * sel-sched-dump.c : Likewise.
7056         * sel-sched-ir.c : Likewise.
7057         * sel-sched-ir.h : Likewise.
7058         * sel-sched.c : Likewise.
7059         * sese.c : Likewise.
7060         * shrink-wrap.c : Likewise.
7061         * shrink-wrap.h : Likewise.
7062         * simplify-rtx.c : Likewise.
7063         * stack-ptr-mod.c : Likewise.
7064         * statistics.c : Likewise.
7065         * stmt.c : Likewise.
7066         * stor-layout.c : Likewise.
7067         * store-motion.c : Likewise.
7068         * stringpool.c : Likewise.
7069         * symtab.c : Likewise.
7070         * target-globals.c : Likewise.
7071         * targhooks.c : Likewise.
7072         * tlink.c : Likewise.
7073         * toplev.c : Likewise.
7074         * tracer.c : Likewise.
7075         * trans-mem.c : Likewise.
7076         * tree-affine.c : Likewise.
7077         * tree-affine.h : Likewise.
7078         * tree-browser.c : Likewise.
7079         * tree-call-cdce.c : Likewise.
7080         * tree-cfg.c : Likewise.
7081         * tree-cfgcleanup.c : Likewise.
7082         * tree-chkp-opt.c : Likewise.
7083         * tree-chkp.c : Likewise.
7084         * tree-chrec.c : Likewise.
7085         * tree-complex.c : Likewise.
7086         * tree-data-ref.c : Likewise.
7087         * tree-dfa.c : Likewise.
7088         * tree-diagnostic.c : Likewise.
7089         * tree-dump.c : Likewise.
7090         * tree-eh.c : Likewise.
7091         * tree-eh.h : Likewise.
7092         * tree-emutls.c : Likewise.
7093         * tree-hasher.h : Likewise.
7094         * tree-if-conv.c : Likewise.
7095         * tree-inline.c : Likewise.
7096         * tree-inline.h : Likewise.
7097         * tree-into-ssa.c : Likewise.
7098         * tree-iterator.c : Likewise.
7099         * tree-loop-distribution.c : Likewise.
7100         * tree-nested.c : Likewise.
7101         * tree-nrv.c : Likewise.
7102         * tree-object-size.c : Likewise.
7103         * tree-outof-ssa.c : Likewise.
7104         * tree-parloops.c : Likewise.
7105         * tree-phinodes.c : Likewise.
7106         * tree-predcom.c : Likewise.
7107         * tree-pretty-print.c : Likewise.
7108         * tree-profile.c : Likewise.
7109         * tree-scalar-evolution.c : Likewise.
7110         * tree-sra.c : Likewise.
7111         * tree-ssa-address.c : Likewise.
7112         * tree-ssa-alias.c : Likewise.
7113         * tree-ssa-ccp.c : Likewise.
7114         * tree-ssa-coalesce.c : Likewise.
7115         * tree-ssa-copy.c : Likewise.
7116         * tree-ssa-copyrename.c : Likewise.
7117         * tree-ssa-dce.c : Likewise.
7118         * tree-ssa-dom.c : Likewise.
7119         * tree-ssa-dse.c : Likewise.
7120         * tree-ssa-forwprop.c : Likewise.
7121         * tree-ssa-ifcombine.c : Likewise.
7122         * tree-ssa-live.c : Likewise.
7123         * tree-ssa-loop-ch.c : Likewise.
7124         * tree-ssa-loop-im.c : Likewise.
7125         * tree-ssa-loop-ivcanon.c : Likewise.
7126         * tree-ssa-loop-ivopts.c : Likewise.
7127         * tree-ssa-loop-manip.c : Likewise.
7128         * tree-ssa-loop-niter.c : Likewise.
7129         * tree-ssa-loop-prefetch.c : Likewise.
7130         * tree-ssa-loop-unswitch.c : Likewise.
7131         * tree-ssa-loop.c : Likewise.
7132         * tree-ssa-math-opts.c : Likewise.
7133         * tree-ssa-operands.c : Likewise.
7134         * tree-ssa-phiopt.c : Likewise.
7135         * tree-ssa-phiprop.c : Likewise.
7136         * tree-ssa-pre.c : Likewise.
7137         * tree-ssa-propagate.c : Likewise.
7138         * tree-ssa-reassoc.c : Likewise.
7139         * tree-ssa-sccvn.c : Likewise.
7140         * tree-ssa-scopedtables.c : Likewise.
7141         * tree-ssa-sink.c : Likewise.
7142         * tree-ssa-strlen.c : Likewise.
7143         * tree-ssa-structalias.c : Likewise.
7144         * tree-ssa-tail-merge.c : Likewise.
7145         * tree-ssa-ter.c : Likewise.
7146         * tree-ssa-threadedge.c : Likewise.
7147         * tree-ssa-threadupdate.c : Likewise.
7148         * tree-ssa-uncprop.c : Likewise.
7149         * tree-ssa-uninit.c : Likewise.
7150         * tree-ssa.c : Likewise.
7151         * tree-ssanames.c : Likewise.
7152         * tree-stdarg.c : Likewise.
7153         * tree-streamer-in.c : Likewise.
7154         * tree-streamer-out.c : Likewise.
7155         * tree-streamer.c : Likewise.
7156         * tree-streamer.h : Likewise.
7157         * tree-switch-conversion.c : Likewise.
7158         * tree-tailcall.c : Likewise.
7159         * tree-vect-data-refs.c : Likewise.
7160         * tree-vect-generic.c : Likewise.
7161         * tree-vect-loop-manip.c : Likewise.
7162         * tree-vect-loop.c : Likewise.
7163         * tree-vect-patterns.c : Likewise.
7164         * tree-vect-slp.c : Likewise.
7165         * tree-vect-stmts.c : Likewise.
7166         * tree-vectorizer.c : Likewise.
7167         * tree-vectorizer.h : Likewise.
7168         * tree-vrp.c : Likewise.
7169         * tree.c : Likewise.
7170         * tsan.c : Likewise.
7171         * ubsan.c : Likewise.
7172         * valtrack.c : Likewise.
7173         * valtrack.h : Likewise.
7174         * value-prof.c : Likewise.
7175         * var-tracking.c : Likewise.
7176         * varasm.c : Likewise.
7177         * varpool.c : Likewise.
7178         * vec.c: Likewise.
7179         * vmsdbgout.c : Likewise.
7180         * vtable-verify.c : Likewise.
7181         * vtable-verify.h : Likewise.
7182         * web.c : Likewise.
7183         * wide-int.cc : Likewise.
7184         * xcoffout.c : Likewise.
7185         * config/aarch64/aarch64-builtins.c : Likewise.
7186         * config/aarch64/aarch64.c : Likewise.
7187         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7188         * config/alpha/alpha.c : Likewise.
7189         * config/arc/arc.c : Likewise.
7190         * config/arm/aarch-common.c : Likewise.
7191         * config/arm/arm-builtins.c : Likewise.
7192         * config/arm/arm-c.c : Likewise.
7193         * config/arm/arm.c : Likewise.
7194         * config/avr/avr-c.c : Likewise.
7195         * config/avr/avr-log.c : Likewise.
7196         * config/avr/avr.c : Likewise.
7197         * config/bfin/bfin.c : Likewise.
7198         * config/c6x/c6x.c : Likewise.
7199         * config/cr16/cr16.c : Likewise.
7200         * config/cris/cris.c : Likewise.
7201         * config/darwin-c.c : Likewise.
7202         * config/darwin.c : Likewise.
7203         * config/default-c.c : Likewise.
7204         * config/epiphany/epiphany.c : Likewise.
7205         * config/epiphany/mode-switch-use.c : Likewise.
7206         * config/epiphany/resolve-sw-modes.c : Likewise.
7207         * config/fr30/fr30.c : Likewise.
7208         * config/frv/frv.c : Likewise.
7209         * config/ft32/ft32.c : Likewise.
7210         * config/glibc-c.c : Likewise.
7211         * config/h8300/h8300.c : Likewise.
7212         * config/i386/i386-c.c : Likewise.
7213         * config/i386/i386.c : Likewise.
7214         * config/i386/msformat-c.c : Likewise.
7215         * config/i386/winnt-cxx.c : Likewise.
7216         * config/i386/winnt-stubs.c : Likewise.
7217         * config/i386/winnt.c : Likewise.
7218         * config/ia64/ia64-c.c : Likewise.
7219         * config/ia64/ia64.c : Likewise.
7220         * config/iq2000/iq2000.c : Likewise.
7221         * config/lm32/lm32.c : Likewise.
7222         * config/m32c/m32c-pragma.c : Likewise.
7223         * config/m32c/m32c.c : Likewise.
7224         * config/m32r/m32r.c : Likewise.
7225         * config/m68k/m68k.c : Likewise.
7226         * config/mcore/mcore.c : Likewise.
7227         * config/mep/mep-pragma.c : Likewise.
7228         * config/mep/mep.c : Likewise.
7229         * config/microblaze/microblaze-c.c : Likewise.
7230         * config/microblaze/microblaze.c : Likewise.
7231         * config/mips/mips.c : Likewise.
7232         * config/mmix/mmix.c : Likewise.
7233         * config/mn10300/mn10300.c : Likewise.
7234         * config/moxie/moxie.c : Likewise.
7235         * config/msp430/msp430-c.c : Likewise.
7236         * config/msp430/msp430.c : Likewise.
7237         * config/nds32/nds32-cost.c : Likewise.
7238         * config/nds32/nds32-fp-as-gp.c : Likewise.
7239         * config/nds32/nds32-intrinsic.c : Likewise.
7240         * config/nds32/nds32-isr.c : Likewise.
7241         * config/nds32/nds32-md-auxiliary.c : Likewise.
7242         * config/nds32/nds32-memory-manipulation.c : Likewise.
7243         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7244         * config/nds32/nds32-predicates.c : Likewise.
7245         * config/nds32/nds32.c : Likewise.
7246         * config/nios2/nios2.c : Likewise.
7247         * config/nvptx/nvptx.c : Likewise.
7248         * config/pa/pa.c : Likewise.
7249         * config/pdp11/pdp11.c : Likewise.
7250         * config/rl78/rl78-c.c : Likewise.
7251         * config/rl78/rl78.c : Likewise.
7252         * config/rs6000/rs6000-c.c : Likewise.
7253         * config/rs6000/rs6000.c : Likewise.
7254         * config/rx/rx.c : Likewise.
7255         * config/s390/s390-c.c : Likewise.
7256         * config/s390/s390.c : Likewise.
7257         * config/sh/sh-c.c : Likewise.
7258         * config/sh/sh-mem.cc : Likewise.
7259         * config/sh/sh.c : Likewise.
7260         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7261         * config/sh/sh_treg_combine.cc : Likewise.
7262         * config/sol2-c.c : Likewise.
7263         * config/sol2-cxx.c : Likewise.
7264         * config/sol2-stubs.c : Likewise.
7265         * config/sol2.c : Likewise.
7266         * config/sparc/sparc-c.c : Likewise.
7267         * config/sparc/sparc.c : Likewise.
7268         * config/spu/spu-c.c : Likewise.
7269         * config/spu/spu.c : Likewise.
7270         * config/stormy16/stormy16.c : Likewise.
7271         * config/tilegx/mul-tables.c : Likewise.
7272         * config/tilegx/tilegx-c.c : Likewise.
7273         * config/tilegx/tilegx.c : Likewise.
7274         * config/tilepro/mul-tables.c : Likewise.
7275         * config/tilepro/tilepro-c.c : Likewise.
7276         * config/tilepro/tilepro.c : Likewise.
7277         * config/v850/v850-c.c : Likewise.
7278         * config/v850/v850.c : Likewise.
7279         * config/vax/vax.c : Likewise.
7280         * config/visium/visium.c : Likewise.
7281         * config/vms/vms-c.c : Likewise.
7282         * config/vms/vms.c : Likewise.
7283         * config/vxworks.c : Likewise.
7284         * config/winnt-c.c : Likewise.
7285         * config/xtensa/xtensa.c : Likewise.
7286
7287 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
7288
7289         PR lto/65378
7290         * ipa-utils.h (warn_types_mismatch): Update prototype.
7291         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7292         parameters.
7293         (type_mismatch_p): New function.
7294         (warn_types_mismatch): Reorg to work better on non-C++ types.
7295         (odr_types_equivalent_p): Add loc1/loc2 parameters.
7296         (add_type_duplicate): Update.
7297
7298 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7299
7300         PR rtl-optimization/66444
7301         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7302         call_used_regs.
7303
7304 2015-06-08  Richard Biener  <rguenther@suse.de>
7305
7306         PR tree-optimization/66422
7307         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7308         block after inserted gcc_unreachable.
7309
7310 2015-06-08  Nick Clifton  <nickc@redhat.com>
7311
7312         * config/rx/rx.c (rx_function_value): Do not promote vector types.
7313         (rx_promote_function_mode): Likewise.
7314         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7315
7316 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
7317
7318         * genattrtab.c (insn_alternatives): Change type from int *
7319         to uint64_t *.
7320         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7321         (get_attr_value): Change type of num_alt to uint64_t.
7322         (compute_alternative_mask): Change return type from
7323         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7324         (make_alternative_compare, mk_attr_alt): Change argument type
7325         from int to uint64_t.
7326         (simplify_test_exp): Change type of i from int to uint64_t.
7327         Shift ((uint64_t) 1) instead of 1 up.
7328         (main): Adjust oballocvec first argument from int to uint64_t.
7329         Shift ((uint64_t) 1) instead of 1 up.
7330
7331 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7332
7333         PR other/65366
7334         * gdbhooks.py: Import sys.
7335         (intptr): New function.  Replace int(...) by intptr(...).
7336
7337 2015-06-08  Richard Biener  <rguenther@suse.de>
7338
7339         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7340         adjustment for gaps at the end of a SLP load group properly.
7341         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7342         all permutations we can generate.
7343         (vect_transform_slp_perm_load): Use the correct group-size.
7344
7345 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
7346
7347         * genmatch.c (expr::gen_transform): For conditions, guess the type
7348         from the second operand.
7349
7350 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7351
7352         PR tree-optimization/66442
7353         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7354         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7355         if the loop latch is not a singleton.  Use
7356         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7357
7358 2015-06-08  Marek Polacek  <polacek@redhat.com>
7359
7360         PR sanitizer/66452
7361         * toplev.c (check_global_declaration): Don't warn about artificial
7362         decls.
7363
7364 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7365
7366         PR tree-optimization/66436
7367         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7368         dump file.
7369         * gimplify.c: Add tree-dump.h include.
7370         (gimplify_function_tree): Dump function to gimple dump file.
7371         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7372         dump file.
7373
7374 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7375
7376         PR tree-optimization/66435
7377         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7378         function.
7379
7380 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
7381
7382         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7383         of ptr_type_node to not be ptr_to_node.
7384         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7385         TREE_TYPE of pointers.
7386         * gimple-expr.c (useless_type_conversion): Reorder the check for
7387         function pointers and TYPE_CANONICAL.
7388
7389 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
7390
7391         PR bootstrap/66319
7392         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7393         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7394         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7395         later.
7396         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7397         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7398         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7399         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7400         and non iso if unix2003.
7401
7402 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
7403
7404         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7405
7406 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
7407
7408         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7409         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7410         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7411         except.c, final.c, function.c, gcse-common.c, genemit.c,
7412         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7413         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7414         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7415         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7416         more derived ones.
7417
7418 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
7419
7420         * combine.c (combine_split_insns): Remove cast.
7421         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7422         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7423         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7424         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7425         * genemit.c (gen_split): Change return type of generated functions to
7426         rtx_insn.
7427         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7428         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7429         gen_peephole2_* functions.
7430         (print_subroutine, main): Likewise.
7431         * recog.c (peephole2_optimize): Remove cast.
7432         (peep2_next_insn): Promote return type to rtx_insn.
7433         * recog.h (peep2_next_insn): Fix prototype.
7434         * rtl.h (try_split, split_insns): Likewise.
7435
7436 2015-06-06  DJ Delorie  <dj@redhat.com>
7437
7438         * config/msp430/msp430.c (msp430_asm_integer): Support addition
7439         and subtraction too.
7440
7441 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7442
7443         PR target/66410
7444         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7445         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7446         instead of Snd.  Disparage Sid/z alternative with '^'.
7447
7448 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
7449
7450         * dwarf2out.c: Remove deferred_locations*.
7451         (dwarf2_debug_hooks): Add early_finish hook.
7452         Remove global_decl hook.
7453         Add early_global_decl and late_global_decl hook.
7454         New global early_dwarf.
7455         New structure set_early_dwarf.
7456         (output_die): Indicate whether a DIE was generated early
7457         when generating assembly with -dA.
7458         (struct limbo_die_struct): Document created_for field.
7459         Remove file_table_last_lookup.
7460         (remove_AT): Return TRUE if successful.
7461         (remove_child_TAG): Clear die_parent.
7462         (reparent_child): New function abstracted from...
7463         (splice_child_die): ...here.
7464         (new_die): ICE if a DIE ends up in limbo too late.
7465         (check_die): New.
7466         (defer_location): Remove.
7467         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7468         (fill_variable_array_bounds): New.
7469         (decl_start_label): Call fill_variable_array_bounds.
7470         (gen_formal_parameter_die): Rewrite to reuse previously generated
7471         DIEs.
7472         (gen_subprogram_die): Same.
7473         (gen_variable_die): Same.
7474         (gen_const_die): Same.
7475         (gen_label_die): Same.
7476         (gen_lexical_block_die): Same.
7477         (decl_will_get_specification_p): New.
7478         (local_function_static): New.
7479         (gen_struct_or_union_type_die): Fill in variable-length fields.
7480         (gen_typedef_die): Fill in variable-length typedefs.
7481         (gen_tagged_type_die): Gracefully return on error_mark_node.
7482         Handle re-entrancy.
7483         (gen_type_die_with_usage): Handle variable-length types.
7484         Remove duplicate code for ARRAY_TYPE case.
7485         (process_scope_var): Only process imported modules during early
7486         dwarf.
7487         (dwarf2out_early_global_decl): New.
7488         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7489         (dwarf2out_type_decl): Set early_dwarf while calling
7490         dwarf2out_decl.
7491         (dwarf2out_decl): Verify that we did not recreate a previously
7492         generated DIE.
7493         Do not return on DECL_EXTERNALs in VAR_DECLs.
7494         Abstract some code to local_function_static.
7495         (lookup_filename): Remove use of file_table_last_lookup.
7496         Gracefully exit on missing file_name.
7497         (dwarf2out_finish): Verify limbo list.
7498         Remove deferred_locations_list use.
7499         Move deferred_asm_name and limbo flushing to...
7500         (dwarf2out_early_finish): ...here.  New.
7501         (dwarf2out_c_finalize): Remove set of deferred_location_list,
7502         deferred_asm_name, and file_table_last_lookup.
7503         * cgraph.h (referred_to_p): Add default argument.
7504         * cgraphunit.c (referred_to_p): Add and handle include_self
7505         argument.
7506         (analyze_functions): Add first_time argument.
7507         Call check_global_declaration for all symbols.
7508         Call late_global_decl for nodes for moribund nodes.
7509         (finalize_compilation_unit): Add new argument to
7510         analyze_functions.
7511         Call early_global_decl for functions.
7512         Call early_finish debug hook.
7513         * dbxout.c (dbxout_early_global_decl): New.
7514         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
7515         (dbx_debug_hooks): Add new hooks.
7516         (xcoff_debug_hooks): Same.
7517         * debug.c (do_nothing_debug_hooks): Add early_finish field.
7518         Add early and late debug hooks.
7519         Remove global_decl hook.
7520         * debug.h (struct gcc_debug_hooks): Add early_finish,
7521         early_global_decl, and late_global_decl fields.
7522         Remove global_decl field.
7523         Document gcc_debug_hooks.
7524         * gengtype.c (output_typename): Remove.
7525         * godump.c (go_early_global_decl): New.
7526         (go_late_global_decl): New.
7527         (go_global_decl): Remove.
7528         (dump_go_spec_init): Remove global_decl.  Add
7529         {early,late}_global_decl.
7530         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7531         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7532         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7533         (write_global_declarations): Remove.
7534         (global_decl_processing): New.
7535         * langhooks.h (struct lang_hooks_for_decls): Remove
7536         final_write_globals field.
7537         Add post_compilation_parsing_cleanups field.
7538         * passes.c (rest_of_decl_compilation): Call early_global_decl.
7539         * sdbout.c: Add early and late_global_decl hooks.  Remove
7540         sdbout_global_decl hook.
7541         Add early_finish field for sdb_debug_hooks.
7542         (sdbout_global_decl): Remove.
7543         (sdbout_early_global_decl): New.
7544         (sdbout_late_global_decl): New.
7545         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7546         * toplev.c (check_global_declaration): Rename from
7547         check_global_declaration_1.
7548         Adapt to use symtab infrastructure.
7549         (check_global_declarations): Remove.
7550         (emit_debug_global_declarations): Remove.
7551         (compile_file): Remove call to final_write_globals langhook.
7552         Run the actual compilation process.
7553         Perform any post compilation parser cleanups.
7554         Generate late debug info.
7555         * toplev.h (check_global_declaration): New.
7556         (check_global_declaration_1): Remove.
7557         (check_global_declarations): Remove.
7558         (write_global_declarations): Remove.
7559         (emit_debug_global_declarations): Remove.
7560         (global_decl_processing): New.
7561         * tree-core.h (struct tree_block): Add DIE field.
7562         * tree.h (BLOCK_DIE): New.
7563         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7564         throughout.
7565         (vmsdbgout_early_global_decl): New.
7566         (vmsdbgout_late_global_decl): New.
7567         Add early_finish debug hook field to vmsdbg_debug_hooks.
7568         Remove vmsdbgout_decl to vmsdbgout_function_decl.
7569         Add early and late_global_decl debug hooks.
7570
7571 2015-06-05  Julian Brown  <julian@codesourcery.com>
7572             Sandra Loosemore  <sandra@codesourcery.com>
7573
7574         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7575         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7576         to print-sysroot-suffix.sh script.
7577
7578 2015-06-05  Tom de Vries  <tom@codesourcery.com>
7579
7580         merge from gomp4 branch:
7581         2015-05-28  Tom de Vries  <tom@codesourcery.com>
7582
7583         PR tree-optimization/65443
7584         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7585         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7586         (try_transform_to_exit_first_loop_alt): New function.
7587         (transform_to_exit_first_loop): Use
7588         try_transform_to_exit_first_loop_alt.
7589
7590 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
7591
7592         * builtins.c (expand_builtin_atomic_compare_exchange): Call
7593         emit_cmp_and_jump_insns with the mode of target.
7594
7595 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7596
7597         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7598
7599 2015-06-04  DJ Delorie  <dj@redhat.com>
7600
7601         * config/msp430/msp430.md (movsi_s): New.  Special case for
7602         storing a 20-bit symbol into a 32-bit register.
7603         * config/msp430/msp430.c (msp430_subreg): Add support for it.
7604         * config/msp430/predicates.md (msp430_symbol_operand): New.
7605
7606 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
7607
7608         * c-family/c-common.c (noplt): New attribute.
7609         (handle_noplt_attribute): New handler.
7610         * calls.c (prepare_call_address): Check for noplt
7611         attribute.
7612         * config/i386/i386.c (ix86_expand_call): Check
7613         for noplt attribute.
7614         (ix86_nopic_noplt_attribute_p): New function.
7615         (ix86_output_call_insn): Output indirect call for non-pic
7616         no plt calls.
7617         * doc/extend.texi (noplt): Document new attribute.
7618         * doc/invoke.texi: Document new attribute.
7619
7620 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
7621
7622         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7623         real.h, and fixed-value.h when included in host source files.
7624         * double-int.h: Remove redundant #includes listed above.
7625         * fixed-value.h: Likewise.
7626         * real.h: Likewise.
7627         * wide-int.h: Likewise.
7628         * inchash.h: Likewise.
7629         * rtl.h: Add some include files When included from a generator file.
7630         * target.h: Remove wide-int.h and insn-modes.h from the include list.
7631         * internal-fn.h: Don't include coretypes.h.
7632         * alias.c: Adjust includes for restructured coretypes.h.
7633         * asan.c: Likewise.
7634         * attribs.c: Likewise.
7635         * auto-inc-dec.c: Likewise.
7636         * auto-profile.c: Likewise.
7637         * bb-reorder.c: Likewise.
7638         * bt-load.c: Likewise.
7639         * builtins.c: Likewise.
7640         * caller-save.c: Likewise.
7641         * calls.c: Likewise.
7642         * ccmp.c: Likewise.
7643         * cfg.c: Likewise.
7644         * cfganal.c: Likewise.
7645         * cfgbuild.c: Likewise.
7646         * cfgcleanup.c: Likewise.
7647         * cfgexpand.c: Likewise.
7648         * cfghooks.c: Likewise.
7649         * cfgloop.c: Likewise.
7650         * cfgloop.h: Likewise.
7651         * cfgloopanal.c: Likewise.
7652         * cfgloopmanip.c: Likewise.
7653         * cfgrtl.c: Likewise.
7654         * cgraph.c: Likewise.
7655         * cgraphbuild.c: Likewise.
7656         * cgraphclones.c: Likewise.
7657         * cgraphunit.c: Likewise.
7658         * cilk-common.c: Likewise.
7659         * combine-stack-adj.c: Likewise.
7660         * combine.c: Likewise.
7661         * compare-elim.c: Likewise.
7662         * convert.c: Likewise.
7663         * coverage.c: Likewise.
7664         * cppbuiltin.c: Likewise.
7665         * cprop.c: Likewise.
7666         * cse.c: Likewise.
7667         * cselib.c: Likewise.
7668         * data-streamer-in.c: Likewise.
7669         * data-streamer-out.c: Likewise.
7670         * data-streamer.c: Likewise.
7671         * dbxout.c: Likewise.
7672         * dce.c: Likewise.
7673         * ddg.c: Likewise.
7674         * debug.c: Likewise.
7675         * df-core.c: Likewise.
7676         * df-problems.c: Likewise.
7677         * df-scan.c: Likewise.
7678         * df.h: Likewise.
7679         * dfp.c: Likewise.
7680         * dojump.c: Likewise.
7681         * dominance.c: Likewise.
7682         * domwalk.c: Likewise.
7683         * double-int.c: Likewise.
7684         * dse.c: Likewise.
7685         * dumpfile.c: Likewise.
7686         * dwarf2asm.c: Likewise.
7687         * dwarf2cfi.c: Likewise.
7688         * dwarf2out.c: Likewise.
7689         * dwarf2out.h: Likewise.
7690         * emit-rtl.c: Likewise.
7691         * et-forest.c: Likewise.
7692         * except.c: Likewise.
7693         * explow.c: Likewise.
7694         * expmed.c: Likewise.
7695         * expr.c: Likewise.
7696         * final.c: Likewise.
7697         * fixed-value.c: Likewise.
7698         * fold-const.c: Likewise.
7699         * function.c: Likewise.
7700         * fwprop.c: Likewise.
7701         * gcc-plugin.h: Likewise.
7702         * gcse.c: Likewise.
7703         * generic-match-head.c: Likewise.
7704         * ggc-page.c: Likewise.
7705         * gimple-builder.c: Likewise.
7706         * gimple-expr.c: Likewise.
7707         * gimple-fold.c: Likewise.
7708         * gimple-iterator.c: Likewise.
7709         * gimple-low.c: Likewise.
7710         * gimple-match-head.c: Likewise.
7711         * gimple-pretty-print.c: Likewise.
7712         * gimple-ssa-isolate-paths.c: Likewise.
7713         * gimple-ssa-strength-reduction.c: Likewise.
7714         * gimple-streamer-in.c: Likewise.
7715         * gimple-streamer-out.c: Likewise.
7716         * gimple-streamer.h: Likewise.
7717         * gimple-walk.c: Likewise.
7718         * gimple.c: Likewise.
7719         * gimplify-me.c: Likewise.
7720         * gimplify.c: Likewise.
7721         * godump.c: Likewise.
7722         * graph.c: Likewise.
7723         * graphite-blocking.c: Likewise.
7724         * graphite-dependences.c: Likewise.
7725         * graphite-interchange.c: Likewise.
7726         * graphite-isl-ast-to-gimple.c: Likewise.
7727         * graphite-optimize-isl.c: Likewise.
7728         * graphite-poly.c: Likewise.
7729         * graphite-scop-detection.c: Likewise.
7730         * graphite-sese-to-poly.c: Likewise.
7731         * graphite.c: Likewise.
7732         * haifa-sched.c: Likewise.
7733         * hooks.h: Likewise.
7734         * hw-doloop.c: Likewise.
7735         * ifcvt.c: Likewise.
7736         * incpath.c: Likewise.
7737         * init-regs.c: Likewise.
7738         * internal-fn.c: Likewise.
7739         * ipa-chkp.c: Likewise.
7740         * ipa-comdats.c: Likewise.
7741         * ipa-cp.c: Likewise.
7742         * ipa-devirt.c: Likewise.
7743         * ipa-icf-gimple.c: Likewise.
7744         * ipa-icf.c: Likewise.
7745         * ipa-inline-analysis.c: Likewise.
7746         * ipa-inline-transform.c: Likewise.
7747         * ipa-inline.c: Likewise.
7748         * ipa-polymorphic-call.c: Likewise.
7749         * ipa-profile.c: Likewise.
7750         * ipa-prop.c: Likewise.
7751         * ipa-pure-const.c: Likewise.
7752         * ipa-ref.c: Likewise.
7753         * ipa-reference.c: Likewise.
7754         * ipa-split.c: Likewise.
7755         * ipa-utils.c: Likewise.
7756         * ipa-visibility.c: Likewise.
7757         * ipa.c: Likewise.
7758         * ira-build.c: Likewise.
7759         * ira-color.c: Likewise.
7760         * ira-conflicts.c: Likewise.
7761         * ira-costs.c: Likewise.
7762         * ira-emit.c: Likewise.
7763         * ira-lives.c: Likewise.
7764         * ira.c: Likewise.
7765         * jump.c: Likewise.
7766         * langhooks.c: Likewise.
7767         * lcm.c: Likewise.
7768         * loop-doloop.c: Likewise.
7769         * loop-init.c: Likewise.
7770         * loop-invariant.c: Likewise.
7771         * loop-iv.c: Likewise.
7772         * loop-unroll.c: Likewise.
7773         * lower-subreg.c: Likewise.
7774         * lra-assigns.c: Likewise.
7775         * lra-coalesce.c: Likewise.
7776         * lra-constraints.c: Likewise.
7777         * lra-eliminations.c: Likewise.
7778         * lra-lives.c: Likewise.
7779         * lra-remat.c: Likewise.
7780         * lra-spills.c: Likewise.
7781         * lra.c: Likewise.
7782         * lto-cgraph.c: Likewise.
7783         * lto-compress.c: Likewise.
7784         * lto-opts.c: Likewise.
7785         * lto-section-in.c: Likewise.
7786         * lto-section-out.c: Likewise.
7787         * lto-streamer-in.c: Likewise.
7788         * lto-streamer-out.c: Likewise.
7789         * lto-streamer.c: Likewise.
7790         * mcf.c: Likewise.
7791         * mode-switching.c: Likewise.
7792         * modulo-sched.c: Likewise.
7793         * omega.c: Likewise.
7794         * omp-low.c: Likewise.
7795         * optabs.c: Likewise.
7796         * opts-global.c: Likewise.
7797         * passes.c: Likewise.
7798         * plugin.c: Likewise.
7799         * postreload-gcse.c: Likewise.
7800         * postreload.c: Likewise.
7801         * predict.c: Likewise.
7802         * print-rtl.c: Likewise.
7803         * print-tree.c: Likewise.
7804         * profile.c: Likewise.
7805         * real.c: Likewise.
7806         * realmpfr.c: Likewise.
7807         * realmpfr.h: Likewise.
7808         * recog.c: Likewise.
7809         * ree.c: Likewise.
7810         * reg-stack.c: Likewise.
7811         * regcprop.c: Likewise.
7812         * reginfo.c: Likewise.
7813         * regrename.c: Likewise.
7814         * regs.h: Likewise.
7815         * regstat.c: Likewise.
7816         * reload.c: Likewise.
7817         * reload1.c: Likewise.
7818         * reorg.c: Likewise.
7819         * resource.c: Likewise.
7820         * rtl-chkp.c: Likewise.
7821         * rtlanal.c: Likewise.
7822         * rtlhooks.c: Likewise.
7823         * sanopt.c: Likewise.
7824         * sched-deps.c: Likewise.
7825         * sched-ebb.c: Likewise.
7826         * sched-rgn.c: Likewise.
7827         * sched-vis.c: Likewise.
7828         * sdbout.c: Likewise.
7829         * sel-sched-dump.c: Likewise.
7830         * sel-sched-ir.c: Likewise.
7831         * sel-sched.c: Likewise.
7832         * sese.c: Likewise.
7833         * shrink-wrap.c: Likewise.
7834         * shrink-wrap.h: Likewise.
7835         * simplify-rtx.c: Likewise.
7836         * stack-ptr-mod.c: Likewise.
7837         * statistics.c: Likewise.
7838         * stmt.c: Likewise.
7839         * stor-layout.c: Likewise.
7840         * store-motion.c: Likewise.
7841         * stringpool.c: Likewise.
7842         * symtab.c: Likewise.
7843         * target-globals.c: Likewise.
7844         * targhooks.c: Likewise.
7845         * toplev.c: Likewise.
7846         * tracer.c: Likewise.
7847         * trans-mem.c: Likewise.
7848         * tree-affine.c: Likewise.
7849         * tree-affine.h: Likewise.
7850         * tree-browser.c: Likewise.
7851         * tree-call-cdce.c: Likewise.
7852         * tree-cfg.c: Likewise.
7853         * tree-cfgcleanup.c: Likewise.
7854         * tree-chkp-opt.c: Likewise.
7855         * tree-chkp.c: Likewise.
7856         * tree-chrec.c: Likewise.
7857         * tree-complex.c: Likewise.
7858         * tree-data-ref.c: Likewise.
7859         * tree-dfa.c: Likewise.
7860         * tree-diagnostic.c: Likewise.
7861         * tree-dump.c: Likewise.
7862         * tree-eh.c: Likewise.
7863         * tree-emutls.c: Likewise.
7864         * tree-if-conv.c: Likewise.
7865         * tree-inline.c: Likewise.
7866         * tree-into-ssa.c: Likewise.
7867         * tree-iterator.c: Likewise.
7868         * tree-loop-distribution.c: Likewise.
7869         * tree-nested.c: Likewise.
7870         * tree-nrv.c: Likewise.
7871         * tree-object-size.c: Likewise.
7872         * tree-outof-ssa.c: Likewise.
7873         * tree-parloops.c: Likewise.
7874         * tree-phinodes.c: Likewise.
7875         * tree-predcom.c: Likewise.
7876         * tree-pretty-print.c: Likewise.
7877         * tree-pretty-print.h: Likewise.
7878         * tree-profile.c: Likewise.
7879         * tree-scalar-evolution.c: Likewise.
7880         * tree-sra.c: Likewise.
7881         * tree-ssa-address.c: Likewise.
7882         * tree-ssa-alias.c: Likewise.
7883         * tree-ssa-ccp.c: Likewise.
7884         * tree-ssa-coalesce.c: Likewise.
7885         * tree-ssa-copy.c: Likewise.
7886         * tree-ssa-copyrename.c: Likewise.
7887         * tree-ssa-dce.c: Likewise.
7888         * tree-ssa-dom.c: Likewise.
7889         * tree-ssa-dse.c: Likewise.
7890         * tree-ssa-forwprop.c: Likewise.
7891         * tree-ssa-ifcombine.c: Likewise.
7892         * tree-ssa-live.c: Likewise.
7893         * tree-ssa-loop-ch.c: Likewise.
7894         * tree-ssa-loop-im.c: Likewise.
7895         * tree-ssa-loop-ivcanon.c: Likewise.
7896         * tree-ssa-loop-ivopts.c: Likewise.
7897         * tree-ssa-loop-manip.c: Likewise.
7898         * tree-ssa-loop-niter.c: Likewise.
7899         * tree-ssa-loop-prefetch.c: Likewise.
7900         * tree-ssa-loop-unswitch.c: Likewise.
7901         * tree-ssa-loop.c: Likewise.
7902         * tree-ssa-loop.h: Likewise.
7903         * tree-ssa-math-opts.c: Likewise.
7904         * tree-ssa-operands.c: Likewise.
7905         * tree-ssa-phiopt.c: Likewise.
7906         * tree-ssa-phiprop.c: Likewise.
7907         * tree-ssa-pre.c: Likewise.
7908         * tree-ssa-propagate.c: Likewise.
7909         * tree-ssa-reassoc.c: Likewise.
7910         * tree-ssa-sccvn.c: Likewise.
7911         * tree-ssa-scopedtables.c: Likewise.
7912         * tree-ssa-sink.c: Likewise.
7913         * tree-ssa-strlen.c: Likewise.
7914         * tree-ssa-structalias.c: Likewise.
7915         * tree-ssa-tail-merge.c: Likewise.
7916         * tree-ssa-ter.c: Likewise.
7917         * tree-ssa-threadedge.c: Likewise.
7918         * tree-ssa-threadupdate.c: Likewise.
7919         * tree-ssa-uncprop.c: Likewise.
7920         * tree-ssa-uninit.c: Likewise.
7921         * tree-ssa.c: Likewise.
7922         * tree-ssanames.c: Likewise.
7923         * tree-stdarg.c: Likewise.
7924         * tree-streamer-in.c: Likewise.
7925         * tree-streamer-out.c: Likewise.
7926         * tree-streamer.c: Likewise.
7927         * tree-switch-conversion.c: Likewise.
7928         * tree-tailcall.c: Likewise.
7929         * tree-vect-data-refs.c: Likewise.
7930         * tree-vect-generic.c: Likewise.
7931         * tree-vect-loop-manip.c: Likewise.
7932         * tree-vect-loop.c: Likewise.
7933         * tree-vect-patterns.c: Likewise.
7934         * tree-vect-slp.c: Likewise.
7935         * tree-vect-stmts.c: Likewise.
7936         * tree-vectorizer.c: Likewise.
7937         * tree-vrp.c: Likewise.
7938         * tree.c: Likewise.
7939         * tsan.c: Likewise.
7940         * ubsan.c: Likewise.
7941         * valtrack.c: Likewise.
7942         * value-prof.c: Likewise.
7943         * var-tracking.c: Likewise.
7944         * varasm.c: Likewise.
7945         * varpool.c: Likewise.
7946         * vmsdbgout.c: Likewise.
7947         * vtable-verify.c: Likewise.
7948         * web.c: Likewise.
7949         * wide-int-print.cc: Likewise.
7950         * wide-int-print.h: Likewise.
7951         * wide-int.cc: Likewise.
7952         * xcoffout.c: Likewise.
7953         * config/aarch64/aarch64-builtins.c: Likewise.
7954         * config/aarch64/aarch64.c: Likewise.
7955         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7956         * config/alpha/alpha.c: Likewise.
7957         * config/arc/arc.c: Likewise.
7958         * config/arm/aarch-common.c: Likewise.
7959         * config/arm/arm-builtins.c: Likewise.
7960         * config/arm/arm-c.c: Likewise.
7961         * config/arm/arm.c: Likewise.
7962         * config/avr/avr-c.c: Likewise.
7963         * config/avr/avr-log.c: Likewise.
7964         * config/avr/avr.c: Likewise.
7965         * config/bfin/bfin.c: Likewise.
7966         * config/c6x/c6x.c: Likewise.
7967         * config/cr16/cr16.c: Likewise.
7968         * config/cris/cris.c: Likewise.
7969         * config/darwin-c.c: Likewise.
7970         * config/darwin.c: Likewise.
7971         * config/default-c.c: Likewise.
7972         * config/epiphany/epiphany.c: Likewise.
7973         * config/epiphany/mode-switch-use.c: Likewise.
7974         * config/epiphany/resolve-sw-modes.c: Likewise.
7975         * config/fr30/fr30.c: Likewise.
7976         * config/frv/frv.c: Likewise.
7977         * config/ft32/ft32.c: Likewise.
7978         * config/glibc-c.c: Likewise.
7979         * config/h8300/h8300.c: Likewise.
7980         * config/i386/i386-c.c: Likewise.
7981         * config/i386/i386.c: Likewise.
7982         * config/i386/msformat-c.c: Likewise.
7983         * config/i386/winnt-cxx.c: Likewise.
7984         * config/i386/winnt-stubs.c: Likewise.
7985         * config/i386/winnt.c: Likewise.
7986         * config/ia64/ia64-c.c: Likewise.
7987         * config/ia64/ia64.c: Likewise.
7988         * config/iq2000/iq2000.c: Likewise.
7989         * config/lm32/lm32.c: Likewise.
7990         * config/m32c/m32c-pragma.c: Likewise.
7991         * config/m32c/m32c.c: Likewise.
7992         * config/m32r/m32r.c: Likewise.
7993         * config/m68k/m68k.c: Likewise.
7994         * config/mcore/mcore.c: Likewise.
7995         * config/mep/mep-pragma.c: Likewise.
7996         * config/mep/mep.c: Likewise.
7997         * config/microblaze/microblaze-c.c: Likewise.
7998         * config/microblaze/microblaze.c: Likewise.
7999         * config/mips/mips.c: Likewise.
8000         * config/mmix/mmix.c: Likewise.
8001         * config/mn10300/mn10300.c: Likewise.
8002         * config/moxie/moxie.c: Likewise.
8003         * config/msp430/msp430-c.c: Likewise.
8004         * config/msp430/msp430.c: Likewise.
8005         * config/nds32/nds32-cost.c: Likewise.
8006         * config/nds32/nds32-fp-as-gp.c: Likewise.
8007         * config/nds32/nds32-intrinsic.c: Likewise.
8008         * config/nds32/nds32-isr.c: Likewise.
8009         * config/nds32/nds32-md-auxiliary.c: Likewise.
8010         * config/nds32/nds32-memory-manipulation.c: Likewise.
8011         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8012         * config/nds32/nds32-predicates.c: Likewise.
8013         * config/nds32/nds32.c: Likewise.
8014         * config/nios2/nios2.c: Likewise.
8015         * config/nvptx/nvptx.c: Likewise.
8016         * config/pa/pa.c: Likewise.
8017         * config/pdp11/pdp11.c: Likewise.
8018         * config/rl78/rl78-c.c: Likewise.
8019         * config/rl78/rl78.c: Likewise.
8020         * config/rs6000/rs6000-c.c: Likewise.
8021         * config/rs6000/rs6000.c: Likewise.
8022         * config/rx/rx.c: Likewise.
8023         * config/s390/s390-c.c: Likewise.
8024         * config/s390/s390.c: Likewise.
8025         * config/sh/sh-c.c: Likewise.
8026         * config/sh/sh-mem.cc: Likewise.
8027         * config/sh/sh.c: Likewise.
8028         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8029         * config/sh/sh_treg_combine.cc: Likewise.
8030         * config/sol2-c.c: Likewise.
8031         * config/sol2-cxx.c: Likewise.
8032         * config/sol2-stubs.c: Likewise.
8033         * config/sol2.c: Likewise.
8034         * config/sparc/sparc-c.c: Likewise.
8035         * config/sparc/sparc.c: Likewise.
8036         * config/spu/spu-c.c: Likewise.
8037         * config/spu/spu.c: Likewise.
8038         * config/stormy16/stormy16.c: Likewise.
8039         * config/tilegx/mul-tables.c: Likewise.
8040         * config/tilegx/tilegx-c.c: Likewise.
8041         * config/tilegx/tilegx.c: Likewise.
8042         * config/tilepro/mul-tables.c: Likewise.
8043         * config/tilepro/tilepro-c.c: Likewise.
8044         * config/tilepro/tilepro.c: Likewise.
8045         * config/v850/v850-c.c: Likewise.
8046         * config/v850/v850.c: Likewise.
8047         * config/vax/vax.c: Likewise.
8048         * config/visium/visium.c: Likewise.
8049         * config/vms/vms-c.c: Likewise.
8050         * config/vms/vms.c: Likewise.
8051         * config/vxworks.c: Likewise.
8052         * config/winnt-c.c: Likewise.
8053         * config/xtensa/xtensa.c: Likewise.
8054         * common/config/bfin/bfin-common.c: Likewise.
8055
8056 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
8057
8058         * tree.h (tree_code_for_canonical_type_merging): New function.
8059         * tree.c (gimple_canonical_types_compatible_p): Use
8060         tree_code_for_canonical_type_merging..
8061
8062 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8063
8064         PR c++/66192
8065         PR target/66200
8066         * doc/tm.texi: Regenerate.
8067         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8068         * target.def (TARGET_RELAXED_ORDERING): Likewise.
8069         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8070         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8071         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8072         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8073         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8074         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8075         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8076
8077 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8078
8079         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8080         register fma steering pass.
8081         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8082         AARCH64_TUNE_FMA_STEERING.
8083
8084 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
8085
8086         * tree.c (verify_type_variant): Verify that type and variant is
8087         compatible.
8088         (gimple_canonical_types_compatible_p): Look for main variants.
8089
8090 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8091
8092         * config.gcc (powerpc*-*-*): Add support for a new configure
8093         option --with-advance-toolchain=<xxx> which overrides using the
8094         default header files, libraries and dynamic linker.
8095
8096         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8097         specs to support the configure --with-advance-toolchain=<xxx>
8098         option.
8099         (INCLUDE_EXTRA_SPEC): Likewise.
8100         (LINK_OS_EXTRA_SPEC32): Likewise.
8101         (LINK_OK_EXTRA_SPEC64): Likewise.
8102         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8103         (DYNAMIC_LINKER_PREFIX): Likewise.
8104         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8105         toolchain support.
8106         (GLIBC_DYNAMIC_LINKER32): Likewise.
8107         (GLIBC_DYNAMIC_LINKER64): Likewise.
8108         (LINK_OS_LINUX_SPEC32): Likewise.
8109         (LINK_OS_LINUX_SPEC64): Likewise.
8110
8111         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8112         configuration option.
8113
8114 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
8115
8116         PR target/66275
8117         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8118         to determine current function ABI.
8119         (ix86_function_value_regno_p): Ditto.
8120
8121 2015-06-03  Martin Liska  <mliska@suse.cz>
8122
8123         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8124         * bitmap.h (struct bitmap_usage): Likewise.
8125         * ggc-common.c (struct ggc_usage): Likewise.
8126         * mem-stats.h (struct mem_location): Likewise.
8127         (struct mem_usage): Likewise.
8128         * vec.c (struct vec_usage): Likewise.
8129
8130 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
8131
8132         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8133         -Bsymbolic.
8134
8135 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
8136
8137         * doc/plugins.texi (enum plugin_event): New event.
8138         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8139         and PLUGIN_FINISH_FUNCTION.
8140         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8141         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8142
8143 2015-06-03  Richard Biener  <rguenther@suse.de>
8144
8145         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8146         compute GROUP_GAP for the first element.
8147         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8148         on in-group gaps.
8149
8150 2015-06-03  Nick Clifton  <nickc@redhat.com>
8151
8152         * config/rl78/rl78-real.md: Add peepholes to avoid a register
8153         copy when calling a function.
8154         * config/rl78/rl78.c (need_to_save): Do not push the frame
8155         pointer in an interrupt handler prologue if it is never used.
8156
8157 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8158
8159         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8160
8161 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8162
8163         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8164         reference when cloning alias node.
8165
8166 2015-06-03  Martin Liska  <mliska@suse.cz>
8167
8168         * alloc-pool.h (struct pool_usage): Correct space padding.
8169         * ggc-page.c (ggc_print_statistics): Align columns in a report.
8170         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8171         * tree.c (dump_tree_statistics): Align columns in a report.
8172
8173 2015-06-03  Martin Liska  <mliska@suse.cz>
8174
8175         * alloc-pool.c (allocate_pool_descriptor): Remove.
8176         (struct pool_output_info): Likewise.
8177         (print_alloc_pool_statistics): Likewise.
8178         (dump_alloc_pool_statistics): Likewise.
8179         * alloc-pool.h (struct pool_usage): New struct.
8180         (pool_allocator::initialize): Change usage of memory statistics
8181         to a new interface.
8182         (pool_allocator::release): Likewise.
8183         (pool_allocator::allocate): Likewise.
8184         (pool_allocator::remove): Likewise.
8185         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8186         for a pool allocator.
8187         * mem-stats.h (struct mem_location): Add new ctor.
8188         (struct mem_usage): Add counter for number of
8189         instances.
8190         (mem_alloc_description::register_descriptor): New overload of
8191         * mem-stats.h (mem_location::to_string): New function.
8192         * bitmap.h (struct bitmap_usage): Use this new function.
8193         * ggc-common.c (struct ggc_usage): Likewise.
8194         the function.
8195
8196 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8197
8198         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8199         of GCC_INSN_FLAGS_H block.
8200
8201 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
8202
8203         * explow.c (plus_constant): Update check after force_const_mem call
8204         to see if the value returned is not a NULL_RTX.
8205
8206 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8207
8208         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8209         remove instumentation thunks calling reachable functions.
8210         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8211         * lto/lto-partition.c (privatize_symbol_name_1): New.
8212         (privatize_symbol_name): Privatize both decl and orig_decl
8213         names for instrumented functions.
8214         * cgraph.c (cgraph_node::verify_node): Add transparent
8215         alias chain check for instrumented node.
8216
8217 2015-06-03  Marek Polacek  <polacek@redhat.com>
8218
8219         PR c/64223
8220         PR c/29358
8221         * tree.c (attribute_value_equal): Handle attribute format.
8222         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8223
8224 2015-06-03  Richard Biener  <rguenther@suse.de>
8225
8226         PR tree-optimization/63916
8227         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8228         Forward-propagate non-invariant addresses by splicing their
8229         reference ops if the result isn't going to be used by PRE.
8230         (vn_reference_lookup_3): Remove pointless assert.
8231
8232 2015-06-03  Richard Biener  <rguenther@suse.de>
8233
8234         PR tree-optimization/66375
8235         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8236         add to the evolution before following SSA edges.
8237
8238 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
8239
8240         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8241         (dump_use, dump_cand, find_induction_variables): Pass new argument
8242         to dump_iv.
8243         (record_use): Preserve the ssa name information in IV.
8244
8245 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8246
8247         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8248         NO_MODE_TEST.
8249         (add_mode_tests): Don't add mode tests if the predicate only
8250         accepts scalar constant integers.  Otherwise, allow the mode
8251         of "op" to be VOIDmode if the predicate does accept such integers.
8252
8253 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
8254
8255         PR target/66258
8256         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8257         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8258         (aarch64_secondary_reload): Likewise
8259         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8260         to !TARGET_FLOAT.
8261         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8262         Likewise.
8263
8264 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
8265             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8266
8267         PR target/65768
8268         * cprop.c (try_replace_reg): Check cost of constants before propagating.
8269
8270 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8271
8272         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8273         provide access to the IBM extended double floating point mode if
8274         long double is IEEE 128-bit floating point.
8275         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8276         point if long double is the IBM extended double type.
8277
8278         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8279         enable adding IEEE 128-bit floating point support.
8280         (-mfloat128-software): Likewise.
8281         (-mfloat128-sw): Likewise.
8282
8283         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8284         128-bit floating point types to occupy any register if
8285         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
8286         -mfloat128-software is enabled.
8287         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8288         support.
8289         (rs6000_option_override_internal): Add -mfloat128-* support.
8290         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8291
8292         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8293         and float128 type nodes.
8294         (ieee128_float_type_node): Likewise.
8295         (ibm128_float_type_node): Likewise.
8296
8297 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8298
8299         PR target/66136
8300         * config/aarch64/geniterators.sh: Rewrite in awk.
8301
8302 2015-06-02  Martin Liska  <mliska@suse.cz>
8303
8304         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8305         values to avoid -Wmaybe-uninitialized errors.
8306
8307 2015-06-02  Richard Biener  <rguenther@suse.de>
8308
8309         PR debug/65549
8310         * dwarf2out.c (lookup_context_die): New function.
8311         (resolve_addr): Avoid forcing a full DIE for the
8312         target of a DW_TAG_GNU_call_site during late compilation.
8313         Instead create a stub DIE without a type if we have a
8314         context DIE present.
8315
8316 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
8317
8318         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8319
8320 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
8321
8322         PR tree-optimization/48052
8323         * cfgloop.h (struct control_iv): New.
8324         (struct loop): New field control_ivs.
8325         * tree-ssa-loop-niter.c : Include "stor-layout.h".
8326         (number_of_iterations_lt): Set no_overflow information.
8327         (number_of_iterations_exit): Init control iv in niter struct.
8328         (record_control_iv): New.
8329         (estimate_numbers_of_iterations_loop): Call record_control_iv.
8330         (loop_exits_before_overflow): New.  Interface factored out of
8331         scev_probably_wraps_p.
8332         (scev_probably_wraps_p): Factor loop niter related code into
8333         loop_exits_before_overflow.
8334         (free_numbers_of_iterations_estimates_loop): Free control ivs.
8335         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8336
8337 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
8338
8339         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8340         the target doesn't belong to the current function.
8341
8342 2015-06-02  Marek Polacek  <polacek@redhat.com>
8343
8344         PR middle-end/66345
8345         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8346         get_maxval_strlen does not produce an INTEGER_CST.
8347
8348 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
8349
8350         * config/arc/constraints.md: Use lower-case names in match_code.
8351         * config/mmix/constraints.md: Likewise.
8352
8353 2015-06-02  Richard Biener  <rguenther@suse.de>
8354
8355         PR tree-optimization/65961
8356         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8357         check and clarify dump message.
8358         (vect_build_slp_tree): If all children are built up from scalars
8359         build up the parent from scalars instead.
8360         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8361
8362 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8363
8364         PR other/65366
8365         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
8366         instead of print ... .
8367
8368 2015-06-02  Alan Modra  <amodra@gmail.com>
8369
8370         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8371         2014-08-11 change.
8372
8373 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
8374
8375         PR tree-optimization/52563
8376         PR tree-optimization/62173
8377         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
8378         (alloc_iv, set_iv): New parameter.
8379         (determine_biv_step): Delete.
8380         (find_bivs): Inline original determine_biv_step.  Pass new
8381         argument to set_iv.
8382         (idx_find_step): Use no_overflow information for conversion.
8383         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8384         resolve_mixers handle folded_casts.
8385         (instantiate_scev_name): Change bool parameter to bool pointer.
8386         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8387         (instantiate_array_ref, instantiate_scev_not): Ditto.
8388         (instantiate_scev_3, instantiate_scev_2): Ditto.
8389         (instantiate_scev_1, instantiate_scev_r): Ditto.
8390         (instantiate_scev_convert, ): Change parameter.  Pass argument
8391         to chrec_convert_aggressive.
8392         (instantiate_scev): Change argument.
8393         (resolve_mixers): New parameter and set it.
8394         (scev_const_prop): New argument.
8395         * tree-scalar-evolution.h (resolve_mixers): New parameter.
8396         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8397         of chrec_conert_1.
8398         (chrec_convert): New parameter.  Move definition below.
8399         (chrec_convert_aggressive): New parameter and set it.  Call
8400         convert_affine_scev.
8401         * tree-chrec.h (chrec_convert): New parameter.
8402         (chrec_convert_aggressive): Ditto.
8403
8404 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8405
8406         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8407         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8408         the LHS of a no-return call if its type has variable size.
8409         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8410         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8411
8412 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
8413
8414         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8415         * config.in: Regenerate.
8416
8417 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8418
8419         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8420         consecutive accesses within outer-loop with force_vectorize
8421         for references with zero step in inner-loop.
8422
8423 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
8424
8425         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8426         rather than from gcc/build directory.
8427
8428 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
8429
8430         PR target/65697
8431         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8432         for __sync memory models, emit initial loads and final barriers as
8433         appropriate.
8434
8435 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
8436
8437         PR target/65697
8438         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8439         (aarch64_split_atomic_op): Check for __sync memory models, emit
8440         appropriate initial loads and final barriers.
8441
8442 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
8443
8444         * Makefile.in: Fix gcov dependencies that should
8445         not point to a build folder.
8446
8447 2015-06-01  Richard Biener  <rguenther@suse.de>
8448
8449         Revert
8450         2015-05-29  Richard Biener  <rguenther@suse.de>
8451
8452         PR tree-optimization/66314
8453         * tree-ssa-threadupdate.c (create_block_for_threading): Add
8454         parameter that says which loop the new block belongs to.
8455         (ssa_create_duplicates): Blocks duplicated for the threaded
8456         path belong to the loop of the thread destination.
8457
8458 2015-06-01  Martin Liska  <mliska@suse.cz>
8459
8460         * sched-deps.c: Include pool-alloc.h before
8461         cselib.h header file is included.
8462
8463 2015-06-01  Richard Biener  <rguenther@suse.de>
8464
8465         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8466         functions.
8467
8468 2015-06-01  Martin Liska  <mliska@suse.cz>
8469
8470         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8471         a function local variable.
8472
8473 2015-06-01  Martin Liska  <mliska@suse.cz>
8474
8475         * alloc-pool.c (create_alloc_pool): Remove.
8476         (empty_alloc_pool): Likewise.
8477         (free_alloc_pool): Likewise.
8478         (free_alloc_pool_if_empty): Likewise.
8479         (pool_alloc): Likewise.
8480         (pool_free): Likewise.
8481         * alloc-pool.h: Remove old declarations.
8482
8483 2015-06-01  Martin Liska  <mliska@suse.cz>
8484
8485         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8486         (ira_create_object): Likewise.
8487         (ira_create_allocno): Likewise.
8488         (ira_create_live_range): Likewise.
8489         (copy_live_range): Likewise.
8490         (ira_finish_live_range): Likewise.
8491         (ira_free_allocno_costs): Likewise.
8492         (finish_allocno): Likewise.
8493         (finish_allocnos): Likewise.
8494         (initiate_prefs): Likewise.
8495         (ira_create_pref): Likewise.
8496         (finish_pref): Likewise.
8497         (finish_prefs): Likewise.
8498         (initiate_copies): Likewise.
8499         (ira_create_copy): Likewise.
8500         (finish_copy): Likewise.
8501         (finish_copies): Likewise.
8502         (finish_prefs): Likewise.
8503
8504 2015-06-01  Martin Liska  <mliska@suse.cz>
8505
8506         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8507         (allocate_and_init_ipcp_value): Likewise.
8508         (ipcp_lattice::add_value): Likewise.
8509         (merge_agg_lats_step): Likewise.
8510         (ipcp_driver): Likewise.
8511         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8512         (ipa_free_all_structures_after_iinln): Likewise.
8513         * ipa-prop.h: Likewise.
8514
8515 2015-06-01  Martin Liska  <mliska@suse.cz>
8516
8517         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8518         pool allocator.
8519         (set_hint_predicate): Likewise.
8520         (inline_summary_alloc): Likewise.
8521         (reset_inline_edge_summary): Likewise.
8522         (reset_inline_summary): Likewise.
8523         (set_cond_stmt_execution_predicate): Likewise.
8524         (set_switch_stmt_execution_predicate): Likewise.
8525         (compute_bb_predicates): Likewise.
8526         (estimate_function_body_sizes): Likewise.
8527         (inline_free_summary): Likewise.
8528
8529 2015-06-01  Martin Liska  <mliska@suse.cz>
8530
8531         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8532         (ipa_edge_duplication_hook): Likewise.
8533         (ipa_free_all_structures_after_ipa_cp): Likewise.
8534         (ipa_free_all_structures_after_iinln): Likewise.
8535
8536 2015-06-01  Martin Liska  <mliska@suse.cz>
8537
8538         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8539         (ipa_profile_generate_summary): Likewise.
8540         (ipa_profile_read_summary): Likewise.
8541         (ipa_profile): Likewise.
8542
8543 2015-06-01  Martin Liska  <mliska@suse.cz>
8544
8545         * tree-ssa-structalias.c (new_var_info): Use new type-based
8546         pool allocator.
8547         (new_constraint): Likewise.
8548         (init_alias_vars): Likewise.
8549         (delete_points_to_sets): Likewise.
8550
8551 2015-06-01  Martin Liska  <mliska@suse.cz>
8552
8553         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8554         (free_strinfo): Likewise.
8555         (pass_strlen::execute): Likewise.
8556
8557 2015-06-01  Martin Liska  <mliska@suse.cz>
8558
8559         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8560         pool allocator.
8561         (vn_reference_insert_pieces): Likewise.
8562         (vn_phi_insert): Likewise.
8563         (visit_reference_op_call): Likewise.
8564         (copy_phi): Likewise.
8565         (copy_reference): Likewise.
8566         (process_scc): Likewise.
8567         (allocate_vn_table): Likewise.
8568         (free_vn_table): Likewise.
8569
8570 2015-06-01  Martin Liska  <mliska@suse.cz>
8571
8572         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8573         pool allocator.
8574         (add_repeat_to_ops_vec): Likewise.
8575         (get_ops): Likewise.
8576         (maybe_optimize_range_tests): Likewise.
8577         (init_reassoc): Likewise.
8578         (fini_reassoc): Likewise.
8579
8580 2015-06-01  Martin Liska  <mliska@suse.cz>
8581
8582         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8583         pool allocator.
8584         (bitmap_set_new): Likewise.
8585         (get_or_alloc_expr_for_constant): Likewise.
8586         (get_or_alloc_expr_for): Likewise.
8587         (phi_translate_1): Likewise.
8588         (compute_avail): Likewise.
8589         (init_pre): Likewise.
8590         (fini_pre): Likewise.
8591
8592 2015-06-01  Martin Liska  <mliska@suse.cz>
8593
8594         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8595         (delete_dep_node): Likewise.
8596         (create_deps_list): Likewise.
8597         (free_deps_list): Likewise.
8598         (sched_deps_init): Likewise.
8599         (sched_deps_finish): Likewise.
8600
8601 2015-06-01  Martin Liska  <mliska@suse.cz>
8602
8603         * regcprop.c (free_debug_insn_changes): Use new type-based
8604         pool allocator.
8605         (replace_oldest_value_reg): Likewise.
8606         (pass_cprop_hardreg::execute): Likewise.
8607
8608 2015-06-01  Martin Liska  <mliska@suse.cz>
8609
8610         * ira-build.c (initiate_cost_vectors): Use new type-based
8611         pool allocator.
8612         (ira_allocate_cost_vector): Likewise.
8613         (ira_free_cost_vector): Likewise.
8614         (finish_cost_vectors): Likewise.
8615
8616 2015-06-01  Martin Liska  <mliska@suse.cz>
8617
8618         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8619         pool allocator.
8620         (free_sched_pools): Likewise.
8621         * sel-sched-ir.h (_list_alloc): Likewise.
8622         (_list_remove): Likewise.
8623
8624 2015-06-01  Martin Liska  <mliska@suse.cz>
8625
8626         * stmt.c (add_case_node): Use new type-based pool allocator.
8627         (expand_case): Likewise.
8628         (expand_sjlj_dispatch_table): Likewise.
8629
8630 2015-06-01  Martin Liska  <mliska@suse.cz>
8631
8632         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8633         (free_bb): Likewise.
8634         (pass_cse_reciprocals::execute): Likewise.
8635
8636 2015-06-01  Martin Liska  <mliska@suse.cz>
8637
8638         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8639         (sra_deinitialize) Likewise.
8640         (create_access_1) Likewise.
8641         (build_accesses_from_assign) Likewise.
8642         (create_artificial_child_access) Likewise.
8643
8644 2015-06-01  Martin Liska  <mliska@suse.cz>
8645
8646         * dse.c (get_group_info):Use new type-based pool allocator.
8647         (dse_step0) Likewise.
8648         (free_store_info) Likewise.
8649         (delete_dead_store_insn) Likewise.
8650         (free_read_records) Likewise.
8651         (record_store) Likewise.
8652         (replace_read) Likewise.
8653         (check_mem_read_rtx) Likewise.
8654         (scan_insn) Likewise.
8655         (dse_step1) Likewise.
8656         (dse_step7) Likewise.
8657
8658 2015-06-01  Martin Liska  <mliska@suse.cz>
8659
8660         * df-scan.c (struct df_scan_problem_data):Use new type-based
8661         pool allocator.
8662         (df_scan_free_internal) Likewise.
8663         (df_scan_alloc) Likewise.
8664         (df_grow_reg_info) Likewise.
8665         (df_free_ref) Likewise.
8666         (df_insn_create_insn_record) Likewise.
8667         (df_mw_hardreg_chain_delete) Likewise.
8668         (df_insn_info_delete) Likewise.
8669         (df_free_collection_rec) Likewise.
8670         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8671         (df_sort_and_compress_mws) Likewise.
8672         (df_ref_create_structure) Likewise.
8673         (df_ref_record) Likewise.
8674
8675 2015-06-01  Martin Liska  <mliska@suse.cz>
8676
8677         * df-problems.c (df_chain_create):Use new type-based pool allocator.
8678         (df_chain_unlink_1) Likewise.
8679         (df_chain_unlink) Likewise.
8680         (df_chain_remove_problem) Likewise.
8681         (df_chain_alloc) Likewise.
8682         (df_chain_free) Likewise.
8683         * df.h (struct dataflow) Likewise.
8684
8685 2015-06-01  Martin Liska  <mliska@suse.cz>
8686
8687         * cselib.c (new_elt_list):Use new type-based pool allocator.
8688         (new_elt_loc_list) Likewise.
8689         (unchain_one_elt_list) Likewise.
8690         (unchain_one_elt_loc_list) Likewise.
8691         (unchain_one_value) Likewise.
8692         (new_cselib_val) Likewise.
8693         (cselib_init) Likewise.
8694         (cselib_finish) Likewise.
8695
8696 2015-06-01  Martin Liska  <mliska@suse.cz>
8697
8698         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8699         (sh_reorg) Likewise.
8700
8701 2015-06-01  Martin Liska  <mliska@suse.cz>
8702
8703         * cfg.c (initialize_original_copy_tables):Use new type-based
8704         pool allocator.
8705         (free_original_copy_tables) Likewise.
8706         (copy_original_table_clear) Likewise.
8707         (copy_original_table_set) Likewise.
8708
8709 2015-06-01  Martin Liska  <mliska@suse.cz>
8710
8711         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8712         pool allocator.
8713         (asan_mem_ref_new) Likewise.
8714         (free_mem_ref_resources) Likewise.
8715
8716 2015-06-01  Martin Liska  <mliska@suse.cz>
8717
8718         * var-tracking.c (variable_htab_free):Use new type-based
8719         pool allocator.
8720         (attrs_list_clear) Likewise.
8721         (attrs_list_insert) Likewise.
8722         (attrs_list_copy) Likewise.
8723         (shared_hash_unshare) Likewise.
8724         (shared_hash_destroy) Likewise.
8725         (unshare_variable) Likewise.
8726         (var_reg_delete_and_set) Likewise.
8727         (var_reg_delete) Likewise.
8728         (var_regno_delete) Likewise.
8729         (drop_overlapping_mem_locs) Likewise.
8730         (variable_union) Likewise.
8731         (insert_into_intersection) Likewise.
8732         (canonicalize_values_star) Likewise.
8733         (variable_merge_over_cur) Likewise.
8734         (dataflow_set_merge) Likewise.
8735         (remove_duplicate_values) Likewise.
8736         (variable_post_merge_new_vals) Likewise.
8737         (dataflow_set_preserve_mem_locs) Likewise.
8738         (dataflow_set_remove_mem_locs) Likewise.
8739         (variable_from_dropped) Likewise.
8740         (variable_was_changed) Likewise.
8741         (set_slot_part) Likewise.
8742         (clobber_slot_part) Likewise.
8743         (delete_slot_part) Likewise.
8744         (loc_exp_insert_dep) Likewise.
8745         (notify_dependents_of_changed_value) Likewise.
8746         (emit_notes_for_differences_1) Likewise.
8747         (vt_emit_notes) Likewise.
8748         (vt_initialize) Likewise.
8749         (vt_finalize) Likewise.
8750
8751 2015-06-01  Martin Liska  <mliska@suse.cz>
8752
8753         * ira-color.c (init_update_cost_records):Use new type-based
8754         pool allocator.
8755         (get_update_cost_record) Likewise.
8756         (free_update_cost_record_list) Likewise.
8757         (finish_update_cost_records) Likewise.
8758         (initiate_cost_update) Likewise.
8759
8760 2015-06-01  Martin Liska  <mliska@suse.cz>
8761
8762         * lra.c (init_insn_regs): Use new type-based pool allocator.
8763         (new_insn_reg) Likewise.
8764         (free_insn_reg) Likewise.
8765         (free_insn_regs) Likewise.
8766         (finish_insn_regs) Likewise.
8767         (init_insn_recog_data) Likewise.
8768         (init_reg_info) Likewise.
8769         (finish_reg_info) Likewise.
8770         (lra_free_copies) Likewise.
8771         (lra_create_copy) Likewise.
8772         (invalidate_insn_data_regno_info) Likewise.
8773
8774 2015-06-01  Martin Liska  <mliska@suse.cz>
8775
8776         * lra-lives.c (free_live_range): Use new type-based pool allocator.
8777         (free_live_range_list) Likewise.
8778         (create_live_range) Likewise.
8779         (copy_live_range) Likewise.
8780         (lra_merge_live_ranges) Likewise.
8781         (remove_some_program_points_and_update_live_ranges) Likewise.
8782         (lra_live_ranges_init) Likewise.
8783         (lra_live_ranges_finish) Likewise.
8784
8785 2015-06-01  Martin Liska  <mliska@suse.cz>
8786
8787         * et-forest.c (et_new_occ): Use new type-based pool allocator.
8788         (et_new_tree): Likewise.
8789         (et_free_tree): Likewise.
8790         (et_free_tree_force): Likewise.
8791         (et_free_pools): Likewise.
8792         (et_split): Likewise.
8793
8794 2015-06-01  Martin Liska  <mliska@suse.cz>
8795
8796         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8797         to header file.
8798         * alloc-pool.h (pool_allocator::pool_allocator): New function.
8799         (pool_allocator::release): Likewise.
8800         (inline pool_allocator::release_if_empty): Likewise.
8801         (inline pool_allocator::~pool_allocator): Likewise.
8802         (pool_allocator::allocate): Likewise.
8803         (pool_allocator::remove): Likewise.
8804
8805 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8806
8807         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8808         in comment.
8809
8810 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8811
8812         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8813         to fusible_ops.
8814         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8815         (arm_macro_fusion_p): Likewise.
8816         (arm_macro_fusion_pair_p): Likewise.
8817
8818 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8819
8820         * config/aarch64/aarch64-protos.h (tune_params): Rename
8821         fuseable_ops to fusible_ops.
8822         * config/aarch64/aarch64.c (generic_tunings): Rename
8823         fuseable_ops to fusible_ops.
8824         (cortexa53_tunings): Likewise.
8825         (cortexa57_tunings): Likewise.
8826         (thunderx_tunings): Likewise.
8827         (xgene1_tunings): Likewise.
8828         (aarch64_macro_fusion_p): Likewise.
8829         (aarch64_macro_fusion_pair_p): Likewise.
8830
8831 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8832
8833         * config/s390/driver-native.c: New file.
8834         * config/s390/x-native: New file.
8835         * config.host: Add new files for s390.
8836         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8837         and -march=native
8838         * config.gcc: Likewise.
8839         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8840         * config/s390/s390-opts.h (enum processor_type): Ditto.
8841         * config/s390/s390.c (s390_option_override): Catch unhandled
8842         PROCESSOR_NATIVE
8843
8844 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
8845
8846         PR target/65527
8847         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8848         redirection for instrumented calls.
8849         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8850         (append_compiler_options): Append -fcheck-pointer-bounds.
8851         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8852         (chkp_redirect_edge): New.
8853         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8854         (chkp_redirect_edge): New.
8855
8856 2015-06-01  Richard Biener  <rguenther@suse.de>
8857
8858         PR tree-optimization/66280
8859         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8860         def-use walking.
8861
8862 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8863
8864         * config/aarch64/aarch64.md
8865         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8866         logic_shift_imm.
8867
8868 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8869
8870         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8871         Remove obsolete kludge.
8872
8873 2015-06-01  Richard Biener  <rguenther@suse.de>
8874
8875         * tree-ssa-reassoc.c (get_rank): Simplify.
8876
8877 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8878
8879         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8880         * configure: Regenerated.
8881
8882 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
8883
8884         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8885         issue (add space between string literal and macro).
8886         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8887
8888 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
8889
8890         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8891         implict or explicit -fPIE or -fpie.
8892
8893 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
8894
8895         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8896
8897 2015-05-28  DJ Delorie  <dj@redhat.com>
8898
8899         * expmed.c (extract_bit_field_1): Avoid clobbering a
8900         yet-to-be-used base/index register.
8901
8902 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
8903
8904         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8905         (alias_stats): Add num_universal.
8906         (alias_set_subset_of): Special case pointers; be ready for NULL
8907         children.
8908         (alias_sets_conflict_p): Special case pointers; be ready for NULL
8909         children.
8910         (init_alias_set_entry): Break out from ...
8911         (record_alias_subset): ... here; propagate new fields;
8912         allocate children only when really needed.
8913         (get_alias_set): Do less generous pointer globbing.
8914         (dump_alias_stats_in_alias_c): Update statistics.
8915
8916 2015-05-30  Alan Modra  <amodra@gmail.com>
8917
8918         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8919         correct block for use of r12.
8920         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8921
8922 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8923
8924         PR target/66215
8925         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8926         with -mhotpatch=.
8927
8928 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
8929
8930         PR tree-optimization/66142
8931         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8932         virtual phis that feed themselves.
8933
8934 2015-05-29  Richard Biener  <rguenther@suse.de>
8935
8936         PR tree-optimization/66314
8937         * tree-ssa-threadupdate.c (create_block_for_threading): Add
8938         parameter that says which loop the new block belongs to.
8939         (ssa_create_duplicates): Blocks duplicated for the threaded
8940         path belong to the loop of the thread destination.
8941
8942 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8943
8944         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8945         to cleanup-saved-temps.
8946         * doc/sourcebuild.texi (Clean up generated test files): Expand
8947         introduction.
8948         (dg-keep-saved-temps): Document new proc.
8949         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8950         cleanup-saved-temps): Remove.
8951
8952 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
8953
8954         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8955         gcc_AC_CHECK_DECLS.
8956         * configure: Regenerate.
8957
8958 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8959
8960         * config/nios2/linux.h (CPP_SPEC): Define.
8961
8962 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8963
8964         * config/microblaze/linux.h (CPP_SPEC): Define.
8965
8966 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8967
8968         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8969         -pthread is specified.
8970
8971 2015-05-28  Richard Biener  <rguenther@suse.de>
8972
8973         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8974         (vect_fixup_scalar_cycles_with_patterns): Likewise.
8975         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8976         after pattern recog.
8977         (vect_create_epilog_for_reduction): Properly handle reductions
8978         with patterns.
8979         (vectorizable_reduction): Likewise.
8980         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8981         reduction chains.
8982         (vect_get_constant_vectors): Create the correct number of
8983         initial values for reductions.
8984         (vect_schedule_slp_instance): Handle reduction chains that are
8985         type changing properly.
8986         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8987
8988 2015-05-28  Richard Biener  <rguenther@suse.de>
8989
8990         PR tree-optimization/66142
8991         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8992         values better in memcpy destination handling.  Handle non-aliasing
8993         we discover here.
8994
8995 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
8996
8997         PR target/63810
8998         * config/darwin-c.c (version_components): New global enum.
8999         (parse_version, version_as_legacy_macro)
9000         (version_as_modern_macro, macosx_version_as_macro): New functions.
9001         (version_as_macro): Remove.
9002         (darwin_cpp_builtins): Use new function.
9003
9004 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
9005
9006         * builtins.c (expand_builtin_acc_on_device): Mark parameters
9007         with ATTRIBUTE_UNUSED.
9008
9009 2015-05-28  Julian Brown  <julian@codesourcery.com>
9010
9011         PR libgomp/65742
9012
9013         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
9014         sequence for !ACCEL_COMPILER.
9015
9016 2015-05-28  Nick Clifton  <nickc@redhat.com>
9017
9018         * config/rx/rx.c (push_regs): New function.  Extracts code from...
9019         (rx_expand_prologue): ... here.  Use push_regs to push even small
9020         spans of registers.
9021         (pop_regs): New function.
9022         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
9023         registers.
9024
9025 2015-05-28  Richard Biener  <rguenther@suse.de>
9026
9027         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9028         member.
9029         (SLP_INSTANCE_BODY_COST_VEC): Remove.
9030         (vect_update_slp_costs_according_to_vf): Likewise.
9031         (vect_slp_analyze_operations): Update prototype.
9032         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9033         vect_update_slp_costs_according_to_vf, adjust.
9034         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9035         (vect_analyze_slp_cost_1): Likewise.
9036         (vect_analyze_slp_cost): Likewise.  Properly deal with
9037         widening reduction ops.  Commit body costs.
9038         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
9039         cost for loops from here.
9040         (vect_slp_analyze_operations): But do it from here when
9041         the vectorization factor is known and stmts are analyzed.
9042         (vect_bb_vectorization_profitable_p): Simplify.
9043         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9044         (vect_update_slp_costs_according_to_vf): Remove.
9045
9046 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
9047             H.J. Lu  <hongjiu.lu@intel.com>
9048
9049         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9050         (BUILD_CFLAGS): Likewise.
9051         (BUILD_CXXFLAGS): Likewise.
9052         (LINKER): Add @NO_PIE_FLAG@.
9053         (BUILD_LDFLAGS): Likewise.
9054         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9055         --enable-default-pie.
9056         * common.opt (fPIE): Initialize to -1.
9057         (fpie): Likewise.
9058         (no-pie): New option.
9059         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9060         * configure.ac: Add --enable-default-pie.
9061         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
9062         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
9063         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
9064         * gcc.c (NO_PIE_SPEC): New.
9065         (PIE_SPEC): Likewise.
9066         (NO_FPIE1_SPEC): Likewise.
9067         (FPIE1_SPEC): Likewise.
9068         (NO_FPIE2_SPEC): Likewise.
9069         (FPIE2_SPEC): Likewise.
9070         (NO_FPIE2_SPEC): Likewise.
9071         (FPIE_SPEC): Likewise.
9072         (NO_FPIE_SPEC): Likewise.
9073         (NO_FPIC1_SPEC): Likewise.
9074         (FPIC1_SPEC): Likewise.
9075         (NO_FPIC2_SPEC): Likewise.
9076         (FPIC2_SPEC): Likewise.
9077         (NO_FPIC2_SPEC): Likewise.
9078         (FPIC_SPEC): Likewise.
9079         (NO_FPIC_SPEC): Likewise.
9080         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9081         (FPIE1_OR_FPIC1_SPEC): Likewise.
9082         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9083         (FPIE2_OR_FPIC2_SPEC): Likewise.
9084         (NO_FPIE_AND_FPIC_SPEC): Likewise.
9085         (FPIE_OR_FPIC_SPEC): Likewise.
9086         (LD_PIE_SPEC): Likewise.
9087         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
9088         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9089         * config/darwin.h (PIE_SPEC): Renamed to ...
9090         (DARWIN_PIE_SPEC): This.
9091         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9092         * config/darwin9.h (PIE_SPEC): Renamed to ...
9093         (DARWIN_PIE_SPEC): This.
9094         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9095         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9096         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9097         FPIE2_OR_FPIC2_SPEC.
9098         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9099         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9100         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9101         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9102         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9103         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9104         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9105         * config/m32r/m32r.h (ASM_SPEC): Likewise.
9106         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9107         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9108         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9109         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9110         * config/sparc/linux.h (ASM_SPEC): Likewise.
9111         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9112         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9113         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9114         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9115         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9116         * config/sparc/sparc.h (ASM_SPEC): Likewise.
9117         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9118         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9119         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9120         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9121         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9122         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9123         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9124         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9125         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9126         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9127         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9128         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9129         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9130         * config/vax/linux.h (ASM_SPEC): Likewise.
9131         * doc/install.texi: Document --enable-default-pie.
9132         * doc/invoke.texi: Document -no-pie.
9133         * config.in: Regenerated.
9134         * configure: Likewise.
9135
9136 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9137
9138         PR rtl-optimization/66168
9139         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9140         can_move_invariant_reg.
9141
9142 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
9143
9144         PR target/66148
9145         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9146         REG_EQUAL note when doing insert.
9147
9148         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9149         instead of "%d" for 'o' operand.
9150
9151 2015-05-27  Nathan Sidwell  <nathan@acm.org>
9152
9153         PR c++/66270
9154         * tree.c (build_pointer_type_for_mode): Canonical type does not
9155         inherit can_alias_all.
9156         (build_reference_type_for_mode): Likewise.
9157
9158 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
9159
9160         * expr.h (array_at_struct_end_p): Move to...
9161         (array_ref_element_size): Likewise.
9162         (component_ref_field_offset): Likewise.
9163         * tree.h (array_ref_element_size): ...here.
9164         (array_at_struct_end_p): Likewise.
9165         (component_ref_field_offset): Likewise.
9166         * expr.c (array_ref_element_size): Move to...
9167         (array_ref_low_bound): Likewise.
9168         (array_at_struct_end_p): Likewise.
9169         (array_ref_up_bound): Likewise.
9170         (component_ref_field_offset): Likewise.
9171         * tree.c (array_ref_element_size): ...here.
9172         (array_ref_low_bound): Likewise.
9173         (array_ref_up_bound): Likewise.
9174         (array_at_struct_end_p): Likewise.
9175         (component_ref_field_offset): Likewise.
9176
9177 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9178             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9179
9180         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9181
9182 2015-05-27  Jason Merrill  <jason@redhat.com>
9183
9184         PR bootstrap/66304
9185         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9186         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9187         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9188
9189 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
9190
9191         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9192         is true.
9193
9194         * statistics.c (statistics_fini_pass): Print pass name.
9195
9196 2015-05-27  Richard Biener  <rguenther@suse.de>
9197
9198         PR tree-optimization/66272
9199         Revert parts of
9200         2014-08-15  Richard Biener  <rguenther@suse.de>
9201
9202         PR tree-optimization/62031
9203         * tree-data-ref.c (dr_analyze_indices): Do not set
9204         DR_UNCONSTRAINED_BASE.
9205         (dr_may_alias_p): All indirect accesses have to go the
9206         formerly DR_UNCONSTRAINED_BASE path.
9207         * tree-data-ref.h (struct indices): Remove
9208         unconstrained_base member.
9209         (DR_UNCONSTRAINED_BASE): Remove.
9210
9211 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
9212
9213         * dwarf2out.c: Remove block_map.
9214         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9215         (gen_lexical_block_die): Same.
9216         (dwarf2out_function_decl): Remove block_map use.
9217         (dwarf2out_c_finalize): Same.
9218         * tree-core.h (struct tree_block): Add die field.
9219         * tree.h (BLOCK_DIE): New.
9220
9221 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9222
9223         PR target/65358
9224         * expr.c (memory_load_overlap): New function.
9225         (emit_push_insn): When pushing partial args to the stack would
9226         clobber the register part load the overlapping part into a pseudo
9227         and put it into the hard reg after pushing.  Change return type
9228         to bool.  Add bool argument.
9229         * expr.h (emit_push_insn): Change return type to bool.
9230         Add bool argument.
9231         * calls.c (expand_call): Cancel sibcall optimization when encountering
9232         partial argument on targets with ARGS_GROW_DOWNWARD and
9233         !STACK_GROWS_DOWNWARD.
9234         (emit_library_call_value_1): Update callsite of emit_push_insn.
9235         (store_one_arg): Likewise.
9236
9237 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9238
9239         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9240
9241 2015-05-27  Martin Liska  <mliska@suse.cz>
9242
9243         * Makefile.in: Add additional dependencies related to memory report
9244         enhancement.
9245         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9246         * bitmap.c (struct bitmap_descriptor_d): Remove.
9247         (struct loc): Likewise.
9248         (struct bitmap_desc_hasher): Likewise.
9249         (bitmap_desc_hasher::hash): Likewise.
9250         (bitmap_desc_hasher::equal): Likewise.
9251         (get_bitmap_descriptor): Likewise.
9252         (bitmap_register): User new memory descriptor API.
9253         (register_overhead): Likewise.
9254         (bitmap_find_bit): Register nsearches and search_iter statistics.
9255         (struct bitmap_output_info): Remove.
9256         (print_statistics): Likewise.
9257         (dump_bitmap_statistics): Use new memory descriptor.
9258         * bitmap.h (struct bitmap_usage): New class.
9259         * genmatch.c: Extend header file inclusion.
9260         * genpreds.c: Likewise.
9261         * ggc-common.c (struct ggc_usage): New class.
9262         (struct ggc_loc_desc_hasher): Remove.
9263         (ggc_loc_desc_hasher::hash): Likewise.
9264         (ggc_loc_desc_hasher::equal): Likewise.
9265         (struct ggc_ptr_hash_entry): Likewise.
9266         (struct ptr_hash_hasher): Likewise.
9267         (ptr_hash_hasher::hash): Likewise.
9268         (ptr_hash_hasher::equal): Likewise.
9269         (make_loc_descriptor): Likewise.
9270         (ggc_prune_ptr): Likewise.
9271         (dump_ggc_loc_statistics): Use new memory descriptor.
9272         (ggc_record_overhead): Likewise.
9273         (ggc_free_overhead): Likewise.
9274         (final_cmp_statistic): Remove.
9275         (cmp_statistic): Likewise.
9276         (ggc_add_statistics): Liekwise.
9277         (ggc_prune_overhead_list): Likewise.
9278         * hash-map-traits.h: New file.
9279         * hash-map.h (struct default_hashmap_traits): Move the traits to a
9280         separate header file.
9281         * hash-set.h: Pass memory statistics info to ctor.
9282         * hash-table.c (void dump_hash_table_loc_statistics): New function.
9283         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9284         (hash_table::~hash_table): Register memory release operation.
9285         (hash_table::alloc_entries): Handle memory allocation operation.
9286         (hash_table::expand): Likewise.
9287         * inchash.c (iterative_hash_hashval_t): Move implementation to header
9288         file.
9289         (iterative_hash_host_wide_int): Likewise.
9290         * inchash.h (class hash): Likewise.
9291         * mem-stats-traits.h: New file.
9292         * mem-stats.h: New file.
9293         (mem_location): Add new class.
9294         (mem_usage): Likewise.
9295         (mem_alloc_description): Likewise.
9296         * sese.c: Add new header file inclusision.
9297         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9298         and hash_set.
9299         * tree-sra.c: Add new header file inclusision.
9300         * vec.c (struct vec_descriptor): Remove.
9301         (hash_descriptor): Likewise.
9302         (struct vec_usage): Likewise.
9303         (struct ptr_hash_entry): Likewise.
9304         (hash_ptr): Likewise.
9305         (eq_ptr): Likewise.
9306         (vec_prefix::register_overhead): Use new memory descriptor API.
9307         (vec_prefix::release_overhead): Likewise.
9308         (add_statistics): Remove.
9309         (dump_vec_loc_statistics): Use new memory descriptor API.
9310         * vec.h (struct vec_prefix): Likewise.
9311         (va_heap::reserve): Likewise.
9312         (va_heap::release): Likewise.
9313         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9314
9315 2015-05-27  Richard Biener  <rguenther@suse.de>
9316
9317         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9318         earlier and remove ??? comment.
9319         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9320         and got called from loop analysis bail out.  Always pass the SLP
9321         node to the vectorizable_* functions.
9322         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9323         the premature SLP check here.
9324         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9325         detected SLP stmts.
9326         (vect_detect_hybrid_slp_1): Likewise.
9327
9328 2015-05-26  Jeff Law  <law@redhat.com>
9329
9330         * combine.c (find_split_point): Verify that the shift count is a
9331         constant when choosing (plus (ashift ...)) as a split point.
9332
9333         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9334         No functional changes.
9335
9336 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
9337
9338         * ipa-polymorphic-call.c
9339         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9340         case when call target is already known.
9341
9342 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
9343
9344         PR target/65979
9345         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9346         take into account the case that operands[1] and operands[2]
9347         are the same register.
9348
9349 2015-05-26  Michael Matz  <matz@suse.de>
9350
9351         PR middle-end/66251
9352
9353         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9354         stores.
9355         (vect_create_vectorized_demotion_stmts): Always set
9356         STMT_VINFO_VEC_STMT, also with SLP.
9357         (vectorizable_store): Handle strided group stores.
9358
9359 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9360
9361         PR target/66049
9362         * config/aarch64/aarch64.md
9363         (*adds_shift_imm_<mode>):  New pattern.
9364         (*subs_shift_imm_<mode>):  Likewise.
9365         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
9366         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9367         (*add_uxt<mode>_shift2): Likewise.
9368         (*add_uxtsi_shift2_uxtw): Likewise.
9369         (*sub_uxt<mode>_shift2): Likewise.
9370         (*sub_uxtsi_shift2_uxtw): Likewise.
9371
9372 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
9373
9374         * config/rs6000/constraints.md (Y, U): Use match_test.
9375
9376 2015-05-26  Christian Bruel  <christian.bruel@st.com>
9377
9378         PR target/52144
9379         * config/arm/arm.c (arm_option_check_internal)
9380         (arm_option_params_internal): Check opts->target_flags to set macros.
9381         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9382         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9383         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9384         (builtin_define): Replaced with def_or_undef_macro.
9385         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9386         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9387         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9388         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9389         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9390         (TARGET_ARM_FEATURE_LDREX_P)
9391         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9392         * config/arm/arm-c.c (def_or_undef_macro): New function.
9393         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9394
9395 2015-05-26  Christian Bruel  <christian.bruel@st.com>
9396
9397         * c-common.h (builtin_define_with_int_value)
9398         (builtin_define_type_sizeof): Declare.
9399         * c-cppbuiltin.c (builtin_define_with_int_value)
9400         (builtin_define_type_sizeof): Externalize.
9401         (builtin_define_std): Cleanup declaration.
9402         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9403         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9404         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9405         (builtin_define, builtin_assert): New macros.
9406
9407 2015-05-26  Richard Biener  <rguenther@suse.de>
9408
9409         PR tree-optimization/66142
9410         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9411         MEM_REFs for the same base address.
9412
9413 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9414
9415         PR ipa/66181
9416         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9417
9418 2015-05-26  Jason Merrill  <jason@redhat.com>
9419
9420         * configure.ac: Set CXXFLAGS for ISL test.
9421         * configure: Regenerate.
9422
9423         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
9424         strstr and basename.
9425         * configure: Regenerate.
9426
9427 2015-05-26  Richard Biener  <rguenther@suse.de>
9428
9429         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9430         X % C -> X & (C - 1) for C being a power-of two to ...
9431         * match.pd: ... patterns.
9432
9433 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
9434
9435         * match.pd (swapped_tcc_comparison): New operator list.
9436         (-A CMP -B): New simplification.
9437         * fold-const.c (fold_comparison): Remove corresponding code.
9438
9439 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
9440
9441         * caller-save.c (init_caller_save): Base temporary register numbers
9442         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9443         * cfgloopanal.c (init_set_costs): Likewise.
9444         * dojump.c (prefer_and_bit_test): Likewise.
9445         * expr.c (init_expr_target): Likewise.
9446         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9447         * lower-subreg.c (init_lower_subreg): Likewise.
9448         * postreload.c (reload_cse_regs_1): Likewise.
9449
9450 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
9451
9452         * gensupport.h (compute_test_codes): Declare.
9453         * gensupport.c (compute_predicate_codes): Rename to...
9454         (compute_test_codes): ...this.  Generalize error message.
9455         (process_define_predicate): Update accordingly.
9456         * genpreds.c (compute_maybe_allows): Delete.
9457         (add_constraint): Use compute_test_codes to determine whether
9458         something can accept a SUBREG, REG or MEM.
9459
9460 2015-05-26  Torvald Riegel  <triegel@redhat.com>
9461
9462         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9463         'memory model' to align with C++11; fix description of memory orders;
9464         fix a few typos.
9465
9466 2015-05-26  Richard Biener  <rguenther@suse.de>
9467
9468         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9469         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
9470         detect whether we apply SLP.  Remove call to
9471         vect_update_slp_costs_according_to_vf.
9472         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9473         vect_update_slp_costs_according_to_vf from here.  Dispatch
9474         to vect_slp_analyze_operations to analyze SLP stmts.
9475         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9476         unused bb_vec_info parameter, adjust assert.
9477         (vect_slp_analyze_operations): Pass in the slp instance tree
9478         instead of bb_vec_info.
9479         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9480         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9481
9482 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
9483
9484         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9485         Q_REGS.  Expand comment.
9486         (REG_CLASS_NAMES): Ditto.
9487         (REG_CLASS_CONTENTS): Ditto.
9488
9489 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
9490
9491         PR target/66274
9492         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9493         when LEGACY_INT_REGNO_P is processed.
9494
9495 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
9496
9497         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9498
9499 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9500
9501         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9502         register if not marked dead/unused, before return.
9503
9504 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9505
9506         PR lto/66180
9507         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9508         is set; check for assembler name at LTO time.
9509         (type_in_anonymous_namespace): Remove hacks, check that all
9510         anonymous types are called "<anon>"
9511         (odr_type_p): Simplify; add check for "<anon>"
9512         (odr_subtypes_equivalent): Add odr_type_p check.
9513         * tree.c (need_assembler_name_p): Even anonymous namespace needs
9514         assembler name.
9515
9516 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9517
9518         * ipa-utils.h (method_class_type): Remove.
9519         * cgraphunit.c (walk_polymorphic_call_targets): Use
9520         TYPE_METHOD_BASETYPE.
9521         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9522         on main variants only.
9523         (method_class_type): Remove.
9524         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9525         (build_type_inheritance_graph): Likewise.
9526         * ipa-icf.c (sem_function::equals_wpa): Likewise.
9527         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9528         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9529
9530 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9531
9532         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9533         is_typedef_decl, typedef_variant_p): Constify.
9534         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9535         is_typedef_decl, typedef_variant_p): Constify.
9536
9537 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9538
9539         * defaults.h (gen_tablejump): New function.
9540         (HAVE_tablejump): Add default value.
9541         * expr.c: Adjust.
9542         * stmt.c: Likewise.
9543
9544 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9545
9546         * defaults.h (gen_store_multiple): New function.
9547         (HAVE_store_multiple): Add default value.
9548         * expr.c (move_block_from_reg): Adjust.
9549
9550 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9551
9552         * defaults.h (gen_load_multiple): New function.
9553         (HAVE_load_multiple): Add default value.
9554         * expr.c (move_block_to_reg): Adjust.
9555
9556 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9557
9558         * defaults.h (gen_mem_signal_fence): New function.
9559         (HAVE_mem_signal_fence): Add default value.
9560         * optabs.c: Adjust.
9561
9562 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9563
9564         * defaults.h (gen_memory_barrier): New function.
9565         (HAVE_memory_barrier): Add default value.
9566         * optabs.c: Adjust.
9567
9568 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9569
9570         * defaults.h (gen_mem_thread_fence): New function.
9571         (HAVE_mem_thread_fence): Add default definition.
9572         * optabs.c: Adjust.
9573
9574 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9575
9576         * combine.c (find_split_point): Check the value of HAVE_lo_sum
9577         instead of if it is defined.
9578         (combine_simplify_rtx): Likewise.
9579         * lra-constraints.c (process_address_1): Likewise.
9580         * config/darwin.c: Adjust.
9581         * genconfig.c (main): Always define HAVE_lo_sum.
9582
9583 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9584
9585         * genmatch.c (parser::parse_operation): Reject expanding
9586         operator-list inside 'for'.
9587
9588 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9589
9590         * genmatch.c (parser::parse_for): Reject iterator if used as
9591         operator-list.
9592
9593 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9594
9595         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9596         after end of id-list.
9597
9598 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9599
9600         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9601         we do not try to compute canonical type for type that does not need
9602         alias set.
9603         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9604         FUNCITON_TYPE.
9605         * tree.h (type_with_alias_set_p): New.
9606
9607 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9608
9609         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
9610         function attributes.
9611         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9612
9613 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
9614
9615         * Makefile.in (check_gcc_parallelize): Delete.
9616         (lang_checks_parallelized): Update comment.
9617
9618 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
9619
9620         PR rtl-optimization/66237
9621         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9622         location of an "as_a" cast.
9623
9624 2015-05-22  Jeff Law  <law@redhat.com>
9625
9626         * config/pa/pa.md (non-canonical shift-add insns): Remove.
9627         (peepholes with non-canonical RTL sources): Remove.
9628         (peepholes for indexed stores of FP regs in integer modes): Match and
9629         generate canonical RTL.
9630
9631 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9632
9633         PR tree-optimization/63387
9634         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9635         ((x ord x) & (y ord y) -> (x ord y),
9636         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9637         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9638         vectors like scalars.
9639
9640 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9641
9642         * convert.c (convert_to_integer, convert_to_vector): Include the
9643         types in the error message.
9644
9645 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9646
9647         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9648         simplifications.
9649
9650 2015-05-22  Jeff Law  <law@redhat.com>
9651
9652         * config/pa/pa.md (integer_indexed_store splitters): Use
9653         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
9654         insns -- adjusting the constant 2nd operand accordingly.
9655
9656         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9657         (plus (ashift X log2) Y) if it is a split point.
9658
9659         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9660         out of hppa_legitimize_address to handle both forms of a multiply
9661         by 2, 4 or 8.
9662         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9663         Always generate the ASHIFT variant as the result is not directly
9664         used in a MEM.  Update comments and refactor slightly to improve
9665         readability.
9666
9667 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9668
9669         PR target/65491
9670         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9671         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
9672         (aarch64_composite_type_p): Return false if given type and mode are
9673         for a short vector.
9674
9675 2015-05-22  Richard Biener  <rguenther@suse.de>
9676
9677         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9678         member.
9679         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9680         patterns when determining whether SLP is pure.
9681         (vect_is_slp_reduction): Remove check for pattern stmts.
9682         (vect_is_simple_reduction_1): Remove dead code.
9683         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9684         (vect_get_and_check_slp_defs): Pass in the stmt number.
9685         Allow the first def in a reduction to be not a pattern stmt when
9686         the rest of the stmts def are patterns.
9687         (vect_build_slp_tree_1): Allow tcc_expression codes like
9688         SAD_EXPR and DOT_PROD_EXPR.
9689         (vect_build_slp_tree): Adjust.
9690         (vect_analyze_slp): Refactor and move BB vect error message ...
9691         (vect_slp_analyze_bb_1): ... here.
9692
9693 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
9694
9695         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9696         for CSWTCH temporary.
9697
9698 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9699
9700         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9701         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
9702         unknown unspecs.
9703
9704 2015-05-22  Richard Biener  <rguenther@suse.de>
9705
9706         PR tree-optimization/66251
9707         * tree-vect-stmts.c (vectorizable_conversion): Properly
9708         set STMT_VINFO_VEC_STMT even for the SLP case.
9709
9710 2015-05-22  Marek Polacek  <polacek@redhat.com>
9711
9712         * doc/extend.texi: Use @pxref instead of @xref.
9713
9714 2015-05-22  hiraditya  <hiraditya@msn.com>
9715
9716         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9717         redundant if.
9718
9719 2015-05-22  Richard Biener  <rguenther@suse.de>
9720
9721         PR tree-optimization/65701
9722         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9723         Move peeling cost models into one place.  Peel for alignment
9724         for single loads only if an aligned load is cheaper than
9725         an unaligned load.
9726
9727 2015-05-22  Marek Polacek  <polacek@redhat.com>
9728
9729         PR c/47043
9730         * doc/extend.texi (Enumerator Attributes): New section.
9731         Document syntax of enumerator attributes.
9732
9733 2015-05-22  Richard Biener  <rguenther@suse.de>
9734
9735         * tree-vect-loop.c (get_reduction_op): New function.
9736         (vect_model_reduction_cost): Use it, add reduc_index parameter.
9737         Make ready for BB reductions.
9738         (vect_create_epilog_for_reduction): Use get_reduction_op.
9739         (vectorizable_reduction): Init reduc_index to a valid value.
9740         Adjust vect_model_reduction_cost call.
9741         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9742         operand for reduction defaults.  Add SAD_EXPR support.
9743         Assert we have a neutral op for SLP reductions.
9744         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9745         walking pattern stmt ops only recurse to SSA names.
9746
9747 2015-05-22  Richard Biener  <rguenther@suse.de>
9748
9749         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9750         assert with guard, remove check on detected reduction.
9751         (vect_recog_sad_pattern): Likewise.
9752         (vect_recog_widen_sum_pattern): Likewise.
9753
9754 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9755
9756         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9757         __always_inline__ attribute.
9758         (vaesdq_u8): Likewise.
9759         (vaesmcq_u8): Likewise.
9760         (vaesimcq_u8): Likewise.
9761         (vsha1cq_u32): Likewise.
9762         (vsha1mq_u32): Likewise.
9763         (vsha1pq_u32): Likewise.
9764         (vsha1h_u32): Likewise.
9765         (vsha1su0q_u32): Likewise.
9766         (vsha1su1q_u32): Likewise.
9767         (vsha256hq_u32): Likewise.
9768         (vsha256h2q_u32): Likewise.
9769         (vsha256su0q_u32): Likewise.
9770         (vsha256su1q_u32): Likewise.
9771         (vmull_p64): Likewise.
9772         (vmull_high_p64): Likewise.
9773
9774 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9775
9776         * final.c (final_scan_insn): Don't check HAVE_peephole with the
9777         preprocessor.
9778         * output.h: Likewise.
9779         * genconfig.c (main): Alwways define HAVE_peephole.
9780         * genpeep.c: Don't emit checks of HAVE_peephole.
9781
9782 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9783
9784         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9785         check HAVE_conditional_move with the preprocessor.
9786
9787 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9788
9789         * genconfig.c (main): Always define HAVE_conditional_move.
9790         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9791         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9792         is defined.
9793
9794 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9795
9796         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9797         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9798         and FRAME_POINTER_REGNUM with the preprocessor.
9799
9800 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9801
9802         * defaults.h: Add default for STACK_PUSH_CODE.
9803         * expr.c: Don't redefine STACK_PUSH_CODE.
9804         * recog.c: Likewise.
9805
9806 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9807
9808         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9809         sched-deps.c: Use if instead of preprocessor checks with
9810         STACK_GROWS_DOWNWARD.
9811
9812 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9813
9814         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9815         is defined.
9816         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9817         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9818         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9819         * doc/tm.texi: Regenerate.
9820
9821 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9822
9823         PR target/66232
9824         * config/i386/constraints.md (Bg): New constraint for GOT memory
9825         operand.
9826         * config/i386/i386.md (*call_got_x32): New pattern.
9827         (*call_value_got_x32): Likewise.
9828         * config/i386/predicates.md (GOT_memory_operand): New predicate.
9829
9830 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
9831
9832         PR tree-optimization/66233
9833         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9834         Simplify.
9835
9836 2015-05-21  Jeff Law  <law@redhat.com>
9837
9838         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9839         than MULT for shadd sequences.
9840
9841 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
9842
9843         * alias.c (alias_stats): New static var.
9844         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9845         (dump_alias_stats_in_alias_c): New function.
9846         * alias.h (dump_alias_stats_in_alias_c): Declare.
9847         * tree-ssa-alias.c (dump_alias_stats): Call it.
9848
9849 2015-05-08  Michael Matz  <matz@suse.de>
9850
9851         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9852         to strided_p.
9853         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9854         (STMT_VINFO_STRIDED_P): ... this.
9855         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9856         (vect_verify_datarefs_alignment): Likewise.
9857         (vect_enhance_data_refs_alignment): Likewise.
9858         (vect_analyze_data_ref_access): Likewise.
9859         (vect_analyze_data_refs): Accept strided stores.
9860         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9861         (vect_model_load_cost): Adjust for macro rename.
9862         (vectorizable_mask_load_store): Likewise.
9863         (vectorizable_load): Likewise.
9864         (vectorizable_store): Open code strided stores.
9865
9866 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9867
9868         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9869         Document sqrt_insn.
9870
9871 2015-05-21  Richard Biener  <rguenther@suse.de>
9872
9873         PR c++/66211
9874         * match.pd: Guard pattern optimzing (int)(float)int
9875         conversions to apply only on GIMPLE.
9876
9877 2015-05-21  Jeff Law  <law@redhat.com>
9878
9879         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9880         multiply-accumulate/shift-add insn generation.
9881
9882 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
9883
9884         PR target/54236
9885         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9886         operands[1] are the same.
9887
9888 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9889
9890         PR middle-end/66221
9891         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9892         build_distinct_type_copy to copy bounds.
9893
9894 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9895
9896         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9897         Change to unsigned int.
9898
9899 2015-05-20  Jeff Law  <law@redhat.com>
9900
9901         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9902         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9903         (pa_shadd_constant_p): Allow constants for shadd insns rather
9904         than valid scaling constants for memory addresses.
9905         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9906         * config/pa/predicates.md (mem_shadd_operand): New predicate.
9907         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9908         (shift-add insns using ASHIFT): New patterns.
9909
9910 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
9911
9912         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9913         feasible.
9914         (fix_up_fall_thru_edges): Likewise.
9915         (fix_crossing_conditional_branches): Likewise. Promote jump targets
9916         from to rtx_insn to rtx_code_label where feasible.
9917         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9918         gen_move_insn (returned type changed to rtx_insn).
9919         * builtins.c (expand_errno_check): Fix arguments of
9920         do_compare_rtx_and_jump (now expects rtx_code_label).
9921         (expand_builtin_acc_on_device): Likewise.
9922         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9923         invert_jump (now exprects rtx_jump_insn).
9924         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9925         (construct_init_block): Use rtx_code_label.
9926         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9927         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9928         calling redirect_jump.
9929         (patch_jump_insn): Likewise.
9930         (redirect_branch_edge): Likewise.
9931         (force_nonfallthru_and_redirect): Likewise.
9932         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9933         when suitable.
9934         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9935         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9936         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9937         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9938         to store the value retured by gen_label_rtx.
9939         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9940         rtx_jump_insn.
9941         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9942         (split_branches): Fix calls of redirect_jump.
9943         * dojump.c (jumpifnot): Promote argument type from rtx to
9944         rtx_code_label.
9945         (jumpifnot_1): Likewise.
9946         (jumpif): Likewise.
9947         (jumpif_1): Likewise.
9948         (do_jump_1): Likewise.
9949         (do_jump): Likewise. Use rtx_code_label when feasible.
9950         (do_jump_by_parts_greater_rtx): Likewise.
9951         (do_jump_by_parts_zero_rtx): Likewise.
9952         (do_jump_by_parts_equality_rtx): Likewise.
9953         (do_compare_rtx_and_jump): Likewise.
9954         * dojump.h: Update function prototypes.
9955         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9956         returns rtx_insn).
9957         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9958         rtx_jump_insn.
9959         (emit_label_before): Likewise.
9960         (emit_jump_insn_after_noloc): Likewise.
9961         (emit_jump_insn_after_setloc): Likewise.
9962         (emit_jump_insn_after): Likewise
9963         (emit_jump_insn_before_setloc): Likewise.
9964         (emit_jump_insn_before): Likewise.
9965         (emit_label_before): Promote return type to rtx_code_label.
9966         (emit_label): Likewise.
9967         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9968         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9969         gen_move_insn.
9970         (emit_stack_restore): Likewise.
9971         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9972         (do_cmp_and_jump): Likewise.
9973         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9974         from rtx to rtx_code_label.
9975         (gen_move_insn_uncast): New function.
9976         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9977         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9978         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9979         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9980         invert_jump_1 and redirect_jump_1.
9981         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9982         do_compare_rtx_and_jump.
9983         (expand_addsub_overflow): Likewise.
9984         (expand_neg_overflow): Likewise.
9985         (expand_mul_overflow): Likewise.
9986         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9987         return value of gen_move_insn.
9988         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9989         * loop-doloop.c (add_test): Use rtx_code_label.
9990         (doloop_modify): Likewise.
9991         (doloop_optimize): Likewise.
9992         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9993         * lra-constraints.c (emit_spill_move): Remove cast of value returned
9994         by gen_move_insn.
9995         (inherit_reload_reg): Add cast when calling dump_insn_slim.
9996         (split_reg): Likewise.
9997         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9998         gen_move_insn.
9999         * optabs.c (expand_binop_directly): Remove casts of values returned by
10000         maybe_gen_insn.
10001         (expand_unop_direct): Likewise.
10002         (expand_abs): Likewise.
10003         (maybe_emit_unop_insn): Likewise.
10004         (maybe_gen_insn): Promote return type to rtx_insn.
10005         * optabs.h: Update prototype of maybe_gen_insn.
10006         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
10007         redundant cast.
10008         * recog.c (struct peep2_insn_data): Promote type of insn field to
10009         rtx_insn.
10010         (peep2_reinit_state): Use NULL instead of NULL_RTX.
10011         (peep2_attempt): Remove casts of insn in peep2_insn_data.
10012         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
10013         * recog.h (struct insn_gen_fn): Promote return types of function
10014         pointers and operator ().from rtx to rtx_insn.
10015         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
10016         (fill_eager_delay_slots): Likewise.
10017         (relax_delay_slots): Likewise.
10018         (make_return_insns): Likewise.
10019         (dbr_schedule): Likewise.
10020         (optimize_skips): Likewise.
10021         (reorg_redirect_jump): Likewise.
10022         (fill_slots_from_thread): Likewise.
10023         * reorg.h: Update prototypes.
10024         * resource.c (find_dead_or_set_registers): Use dyn_cast to
10025         rtx_jump_insn instead of check.  Use it's jump_target method.
10026         * rtl.h (rtx_jump_insn::jump_label): Define new method.
10027         (rtx_jump_insn::jump_target): Define new method.
10028         (rtx_jump_insn::set_jump_target): Define new method.
10029         * rtlanal.c (tablejump_p): Promote type of one local variable.
10030         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10031         (sched_analyze_insn): Likewise.
10032         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10033         (print_insn): Likewise.
10034         * stmt.c (label_rtx): Promote return type to rtx_insn.
10035         (force_label_rtx): Likewise.
10036         (jump_target_rtx): Define new function.
10037         (expand_label): Use it, get rid of one cast.
10038         (expand_naked_return): Promote rtx to rtx_code_label.
10039         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10040         (expand_case): Use rtx_code_label instread of rtx where feasible.
10041         (expand_sjlj_dispatch_table): Likewise.
10042         (emit_case_nodes): Likewise.
10043         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
10044         * store-motion.c (insert_store): Make use of new return type of
10045         gen_move_insn and remove a cast.
10046         (replace_store_insn): Likewise.
10047
10048 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
10049
10050         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10051         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10052
10053 2015-05-20  Jeff Law  <law@redhat.com>
10054
10055         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10056         dispose of the jump thread path when the jump threading
10057         opportunity is cancelled.
10058
10059 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10060
10061         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10062         when printing the caret character.
10063
10064 2015-05-20  Marek Polacek  <polacek@redhat.com>
10065
10066         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10067
10068 2015-05-20  Marek Polacek  <polacek@redhat.com>
10069
10070         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10071         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10072         * gimple-fold.c (canonicalize_bool): Likewise.
10073         (same_bool_result_p): Likewise.
10074         * tree-if-conv.c (parse_predicate): Likewise.
10075
10076 2015-05-20  Marek Polacek  <polacek@redhat.com>
10077
10078         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10079         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10080
10081 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10082
10083         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10084         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10085         values.
10086
10087 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
10088
10089         * config/mips/mips.h (micromips_globals): Declare.
10090
10091 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
10092
10093         * timevar.def (TV_INITIALIZE_RTL): New.
10094         * toplev.c (initialize_rtl): Use an auto_timevar to account this
10095         function's time to TV_INITIALIZE_RTL.
10096
10097 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10098
10099         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10100         gimple_build_nop calls.
10101         (chkp_find_bounds_for_elem): Likewise.
10102         (chkp_get_zero_bounds): Likewise.
10103         (chkp_get_none_bounds): Likewise.
10104         (chkp_get_bounds_by_definition): Likewise.
10105         (chkp_generate_extern_var_bounds): Likewise.
10106         (chkp_get_bounds_for_decl_addr): Likewise.
10107         (chkp_get_bounds_for_string_cst): Likewise.
10108
10109 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
10110
10111         PR tree-optimization/65447
10112         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10113         (dump_use, dump_uses): Support to dump sub use.
10114         (record_use): New parameters to support sub use.  Remove call to
10115         dump_use.
10116         (record_sub_use, record_group_use): New functions.
10117         (compute_max_addr_offset, split_all_small_groups): New functions.
10118         (group_address_uses, rewrite_use_address): New functions.
10119         (strip_offset): New declaration.
10120         (find_interesting_uses_address): Call record_group_use.
10121         (add_candidate): New assertion.
10122         (infinite_cost_p): Move definition forward.
10123         (add_costs): Check INFTY cost and return immediately.
10124         (get_computation_cost_at): Clear setup cost and dependent bitmap
10125         for sub uses.
10126         (determine_use_iv_cost_address): Compute cost for sub uses.
10127         (rewrite_use_address_1): Rename from old rewrite_use_address.
10128         (free_loop_data): Free sub uses.
10129         (tree_ssa_iv_optimize_loop): Call group_address_uses.
10130
10131 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10132             Jim Wilson  <jim.wilson@linaro.org>
10133
10134         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10135         new  fields loadv and storev.
10136         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10137         Initialize loadv and storev.
10138         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10139         (cortexa53_extra_costs): Likewise.
10140         (cortexa57_extra_costs): Likewise.
10141         (xgene1_extra_costs): Likewise.
10142         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10143         rtx_costs.
10144
10145 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10146
10147         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10148          storev.
10149         (cortexa8_extra_costs): Likewise.
10150         (cortexa5_extra_costs): Likewise.
10151         (cortexa7_extra_costs): Likewise.
10152         (cortexa12_extra_costs): Likewise.
10153         (cortexa15_extra_costs): Likewise.
10154         (v7m_extra_costs): Likewise.
10155
10156 2015-05-20  Jeff Law  <law@redhat.com>
10157
10158         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10159         instead of open-coded version.  Also delete the jump thread created
10160         within this function.
10161
10162 2015-05-20  Alan Modra  <amodra@gmail.com>
10163
10164         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10165         stack adjusting insn.  Formatting.
10166         (rs6000_emit_prologue): Track stack adjusting insn, and use of
10167         r12.  If possible, emit first -fsplit-stack arg pointer insn
10168         before stack adjust.  Don't use r12 to save cr if split-stack.
10169
10170 2015-05-20  Alan Modra  <amodra@gmail.com>
10171
10172         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10173         Define.
10174         (rs6000_supports_split_stack): New function.
10175         * gcc/config/rs6000/rs6000.c (machine_function): Add
10176         split_stack_arg_pointer.
10177         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10178         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10179         rather than virtual_incoming_args_rtx.
10180         (rs6000_va_start): Likewise.
10181         (split_stack_arg_pointer_used_p): New function.
10182         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10183         (morestack_ref): New var.
10184         (gen_add3_const, rs6000_expand_split_stack_prologue,
10185         rs6000_internal_arg_pointer, rs6000_live_on_entry,
10186         rs6000_split_stack_space_check): New functions.
10187         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10188         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10189         (UNSPECV_SPLIT_STACK_RETURN): Define.
10190         (split_stack_prologue, load_split_stack_limit,
10191         load_split_stack_limit_di, load_split_stack_limit_si,
10192         split_stack_return, split_stack_space_check): New expands and insns.
10193         * gcc/config/rs6000/rs6000-protos.h
10194         (rs6000_expand_split_stack_prologue): Declare.
10195         (rs6000_split_stack_space_check): Declare.
10196
10197 2015-05-20  Alan Modra  <amodra@gmail.com>
10198
10199         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10200         (direct_return): Test vrsave_size rather than vrsave_mask.
10201         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
10202         (rs6000_emit_epilogue): Likewise.
10203
10204 2015-05-20  Alan Modra  <amodra@gmail.com>
10205
10206         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10207         when not saving registers.
10208         (debug_stack_info): Adjust to omit printing unused offsets,
10209         as before.
10210         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10211         expression.
10212
10213 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10214
10215         PR c++/65835
10216         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10217         value_type to const char *.
10218
10219 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
10220
10221         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10222         to build a biarch toolchain again.
10223
10224 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
10225
10226         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10227         or implicit declarations.
10228         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10229         into it.
10230         (get_odr_type): Check type has linkage before adding bases.
10231         (register_odr_type): Check that type has linkage before adding it.
10232         (type_known_to_have_no_deriavations_p): Rename to ..
10233         (type_known_to_have_no_derivations_p): This one.
10234         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10235         (type_known_to_have_no_derivations_p): This one.
10236         * ipa-polymorphic-call.c
10237         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10238         type has linkage.
10239
10240 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10241
10242         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10243         (layout_type): Use RECORD_OR_UNION_TYPE_P.
10244
10245 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10246
10247         * config/s390/s390.c (s390_vector_bool_type_p): New function.
10248         (s390_invalid_binary_op): New function.
10249         (TARGET_INVALID_BINARY_OP): Define macro.
10250
10251 2015-05-19  David Sherwood  <david.sherwood@arm.com>
10252
10253         * loop-invariant.c (create_new_invariant): Don't calculate address cost
10254         if mode is not a scalar integer.
10255         (get_inv_cost): Increase computational cost for unused invariants.
10256
10257 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10258
10259         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
10260         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
10261         * config/s390/s390-builtin-types.def: New file.
10262         * config/s390/s390-builtins.def: New file.
10263         * config/s390/s390-builtins.h: New file.
10264         * config/s390/s390-c.c: New file.
10265         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10266         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10267         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10268         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10269         prototypes.
10270         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10271         Include.
10272         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10273         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10274         variable definitions.
10275         (s390_const_operand_ok): New function.
10276         (s390_expand_builtin): Rewrite.
10277         (s390_init_builtins): New function.
10278         (s390_handle_vectorbool_attribute): New function.
10279         (s390_attribute_table): Add s390_vector_bool attribute.
10280         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10281         (s390_branch_condition_mask): Generate masks for new modes.
10282         (s390_expand_vec_compare_cc): New function.
10283         (s390_mangle_type): Add mangling for vector bool types.
10284         (enum s390_builtin): Remove.
10285         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10286         efpc builtins.
10287         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10288         s390_cpu_cpp_builtins.
10289         (REGISTER_TARGET_PRAGMAS): New macro.
10290         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10291         (insn_cmp mode attribute): Add new CC modes.
10292         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10293         (lcbb): New pattern definition.
10294         * config/s390/s390intrin.h: Include vecintrin.h.
10295         * config/s390/t-s390: New file.
10296         * config/s390/vecintrin.h: New file.
10297         * config/s390/vector.md: Include vx-builtins.md.
10298         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10299         support.
10300
10301 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10302
10303         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10304         CCVFHE.
10305         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10306         (s390_select_ccmode): Likewise.
10307         (s390_canonicalize_comparison): Swap operands if necessary.
10308         (s390_expand_vec_compare_scalar): Expand DFmode compare using
10309         single element vector instructions.
10310         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10311         (s390_branch_condition_mask): Generate CC masks for the new modes.
10312         * config/s390/s390.md (v0, vf, vd): New mode attributes.
10313         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10314         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10315         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10316         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10317         (*extend<DSF:mode><BFP:mode>2): New insn definition.
10318         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10319         (extend<DSF:mode><BFP:mode>2): Turn into expander.
10320         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10321         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10322         (sqrt<mode>2): Add vector instruction.
10323
10324 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10325
10326         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10327         constraints.
10328         * config/s390/predicates.md (const0_operand, constm1_operand)
10329         (constable_operand): Accept vector operands.
10330         * config/s390/s390-modes.def: Add supported vector modes.
10331         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10332         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10333         (s390_bytemask_vector_p, s390_expand_vec_strlen)
10334         (s390_expand_vec_compare, s390_expand_vcond)
10335         (s390_expand_vec_init): Add prototypes.
10336         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10337         (s390_vector_mode_supported_p): New function.
10338         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10339         (s390_contiguous_bitmask_vector_p): New function.
10340         (s390_bytemask_vector_p): New function.
10341         (s390_split_ok_p): Vector regs don't work either.
10342         (regclass_map): Add VEC_REGS.
10343         (s390_legitimate_constant_p): Handle vector constants.
10344         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10345         (legitimate_reload_vector_constant_p): New function.
10346         (s390_preferred_reload_class): Handle CONST_VECTOR.
10347         (s390_reload_symref_address):  Likewise.
10348         (s390_secondary_reload): Vector memory instructions only support
10349         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
10350         (s390_emit_ccraw_jump): New function.
10351         (s390_expand_vec_strlen): New function.
10352         (s390_expand_vec_compare): New function.
10353         (s390_expand_vcond): New function.
10354         (s390_expand_vec_init): New function.
10355         (s390_dwarf_frame_reg_mode): New function.
10356         (print_operand): Handle addresses with 'O' and 'R' constraints.
10357         (NR_C_MODES, constant_modes): Add vector modes.
10358         (s390_output_pool_entry): Handle vector constants.
10359         (s390_hard_regno_mode_ok): Handle vector registers.
10360         (s390_class_max_nregs): Likewise.
10361         (s390_cannot_change_mode_class): New function.
10362         (s390_invalid_arg_for_unprototyped_fn): New function.
10363         (s390_function_arg_vector): New function.
10364         (s390_function_arg_float): Remove size variable.
10365         (s390_pass_by_reference): Handle vector arguments.
10366         (s390_function_arg_advance): Likewise.
10367         (s390_function_arg): Likewise.
10368         (s390_return_in_memory): Vector values are returned in a VR if
10369         possible.
10370         (s390_function_and_libcall_value): Handle vector arguments.
10371         (s390_gimplify_va_arg): Likewise.
10372         (s390_call_saved_register_used): Consider the arguments named.
10373         (s390_conditional_register_usage): Disable v16-v31 for non-vec
10374         targets.
10375         (s390_preferred_simd_mode): New function.
10376         (s390_support_vector_misalignment): New function.
10377         (s390_vector_alignment): New function.
10378         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10379         (TARGET_VECTOR_MODE_SUPPORTED_P)
10380         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10381         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10382         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10383         (TARGET_VECTOR_ALIGNMENT): Define target macro.
10384         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10385         (FIRST_PSEUDO_REGISTER): Increase value.
10386         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10387         (VECTOR_REG_P): Define macros.
10388         (FIXED_REGISTERS, CALL_USED_REGISTERS)
10389         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10390         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10391         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10392         Add vector registers.
10393         (CANNOT_CHANGE_MODE_CLASS): Call C function.
10394         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10395         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10396         memory.
10397         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10398         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10399         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10400         (VR*_REGNUM): New constants.
10401         (ALL): New mode iterator.
10402         (INTALL): Remove mode iterator.
10403         Include vector.md.
10404         (movti): Implement TImode moves for VRs.
10405         Disable TImode splitter for VR targets.
10406         Implement splitting TImode GPR<->VR moves.
10407         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10408         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10409         reload<mode>_la_in, reload<mode>_la_out.
10410         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10411         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10412         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10413         (mov<mode> SF SD): Prefer lder, lde for loading.
10414         Add lrl and strl instructions.
10415         Add vector instructions.
10416         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10417         Call s390_expand_vec_strlen on z13.
10418         (*cc_to_int): Change predicate to nonimmediate_operand.
10419         (addti3): Rename to *addti3.  New expander.
10420         (subti3): Rename to *subti3.  New expander.
10421         * config/s390/vector.md: New file.
10422
10423 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10424
10425         * common/config/s390/s390-common.c (processor_flags_table): Add
10426         z13.
10427         * config.gcc: Add z13.
10428         * config/s390/s390-opts.h (enum processor_type): Add
10429         PROCESSOR_2964_Z13.
10430         * config/s390/s390.c (s390_adjust_priority): Check for
10431         PROCESSOR_2964_Z13.
10432         (s390_reorg): Likewise.
10433         (s390_sched_reorder): Likewise.
10434         (s390_sched_variable_issue): Likewise.
10435         (s390_loop_unroll_adjust): Likewise.
10436         (s390_option_override): Likewise. Default to -mvx when available.
10437         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10438         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10439         (TARGET_VX_ABI): Define macros.
10440         macros.
10441         (TARGET_DEFAULT): Add MASK_OPT_VX.
10442         * config/s390/s390.md ("cpu" attribute): Add z13.
10443         ("cpu_facility" attribute): Add vec.
10444         * config/s390/s390.opt (processor_type): Add z13.
10445         (mvx): New options.
10446         * doc/invoke.texi: Add z13 option for -march.
10447
10448 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10449
10450         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10451         mode check to make sure that only scalar integer values are
10452         accepted.
10453
10454 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
10455
10456         * tree.c (verify_type_variant): Fix #undef.
10457         (gimple_canonical_types_compatible_p): Move here from lto.c
10458         (verify_type): Verify TYPE_CANONICAL compatibility.
10459         * tree.h (gimple_canonical_types_compatible_p): Declare.
10460
10461 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10462
10463         PR middle-end/66199
10464         * tree.h (OMP_TEAMS_COMBINED): Define.
10465         * gimplify.c (enum gimplify_omp_var_data): Add
10466         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10467         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10468         (omp_notice_variable): Accept both ORT_TEAMS
10469         and ORT_COMBINED_TEAMS.  Don't recurse if
10470         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10471         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10472         GOVD_FIRSTPRIVATE.
10473         (omp_no_lastprivate): New function.
10474         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10475         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10476         notice_outer and set appropriate bits, otherwise make
10477         sure default(none) combined constructs won't complain.
10478         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10479         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10480         omp_no_lastprivate either remove the clause or turn it
10481         into OMP_CLAUSE_PRIVATE.
10482         (gimplify_omp_for): Fix up handling of implicit
10483         lastprivate or linear iterators.
10484         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10485         ORT_COMBINED_TEAMS.
10486         * omp-low.c (lower_omp_for_lastprivate): For combined
10487         for simd use fd.loop.n2 from the for rather than simd.
10488
10489 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10490
10491         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10492         instead of gen_rtx_raw_REG.
10493         (cris_expand_epilogue): Likewise.
10494         * config/microblaze/microblaze.c (microblaze_classify_address):
10495         Likewise.
10496         * config/sparc/sparc.md: Likewise.
10497
10498 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
10499
10500         * config/alpha/alpha.c (alpha_legitimize_reload_address)
10501         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10502         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10503         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10504         Use CASE_CONST_SCALAR_INT.
10505         (print_operand) <case 'M'>: Use mode_width_operand to check the
10506         value of the constant.
10507         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10508         * config/alpha/predicates.md (input_operand): Use general_operand
10509         instead of match_code as operand check.
10510         (symbolic_operand): Use match_code with subexpression digits.
10511         * config/alpha/constraints.md (Q): Ditto.
10512
10513 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10514
10515         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10516
10517 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10518
10519         * config/s390/s390.c (s390_secondary_reload): Fix check for
10520         load/store relative.
10521
10522 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10523
10524         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
10525         alternative_mask to uint64_t.
10526
10527 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10528
10529         PR tree-optimization/66187
10530         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10531         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
10532         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10533
10534 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
10535
10536         * diagnostic.c (diagnostic_report_current_module): Strengthen
10537         local "new_map" from const line_map * to
10538         const line_map_ordinary *.
10539         * genmatch.c (error_cb): Likewise for local "map".
10540         (output_line_directive): Likewise for local "map".
10541         * input.c (expand_location_1): Likewise for local "map".
10542         Pass NULL rather than &map to
10543         linemap_unwind_to_first_non_reserved_loc, since the value is never
10544         read from there, and the value written back not read from here.
10545         (is_location_from_builtin_token): Strengthen local "map" from
10546         const line_map * to const line_map_ordinary *.
10547         (dump_location_info): Strengthen locals "map" from
10548         line_map *, one to const line_map_ordinary *, the other
10549         to const line_map_macro *.
10550         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10551         const line_map * to const line_map_macro *.
10552         (maybe_unwind_expanded_macro_loc): Add a call to
10553         linemap_check_macro when writing to the "map" field of the
10554         loc_map_pair.
10555         Introduce local const line_map_ordinary * "ord_map", using it in
10556         place of "map" in the part of the function where we know we have
10557         an ordinary map.  Strengthen local "m" from const line_map * to
10558         const line_map_ordinary *.
10559
10560 2015-05-19  Nick Clifton  <nickc@redhat.com>
10561
10562         PR target/66156
10563         * config/msp430/msp430.md (zero_extendhisi2): Add support for
10564         separate source and destination registers.
10565
10566 2015-05-19  Richard Biener  <rguenther@suse.de>
10567
10568         PR tree-optimization/66165
10569         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10570         for no load permutation.
10571
10572         PR tree-optimization/66185
10573         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10574         when building the SLP node from scalars.
10575
10576 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10577             Tristan Gingold  <gingold@adacore.com>
10578
10579         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10580         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10581         (expand_stack_restore): Call record_new_stack_level.
10582         (expand_stack_save): Do not call do_pending_stack_adjust.
10583         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10584         * calls.c (expand_call): Call record_new_stack_level for alloca.
10585         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10586         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10587         (update_sjlj_context): New global function.
10588         * except.h (update_sjlj_context): Declare.
10589         * explow.c (record_new_stack_level): New global function.
10590         (allocate_dynamic_stack_space): Call record_new_stack_level.
10591         * explow.h (record_new_stack_level): Declare.
10592         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10593         * cfgrtl.c (duplicate_insn_chain): Likewise.
10594
10595 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10596
10597         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10598         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10599         STACK_GROWS_DOWNWARD as normal if.
10600         (expand_call): Likewise.
10601
10602 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
10603
10604         PR target/54236
10605         * config/sh/sh.md (*round_int_even): New insn_and_split and
10606         accompanying new unnamed split.
10607
10608 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10609
10610         * bitmap.c (bitmap_set_range): Handle count==1 specially.
10611         (bitmap_clear_range): Likewise.
10612         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10613         bitmap_set_range unconditionally.
10614         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10615         * df-scan.c (df_mark_reg): Likewise.
10616         * haifa-sched.c (setup_ref_regs): Likewise.
10617         * sched-rgn.c (update_live_1): Likewise.
10618
10619 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10620
10621         * regs.h (END_HARD_REGNO): Delete.
10622         (END_REGNO): Move to...
10623         * rtl.h: ...here.
10624         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10625         * caller-save.c (mark_set_regs): Likewise.
10626         * combine.c (move_deaths, distribute_notes): Likewise.
10627         * cse.c (invalidate, invalidate_for_call): Likewise.
10628         * df-scan.c (df_ref_record): Likewise.
10629         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10630         (record_last_reg_set_info): Likewise.
10631         * reg-stack.c (convert_regs_exit): Likewise.
10632         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10633         * resource.c (update_live_status): Likewise.
10634         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10635
10636 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10637
10638         * rtl.h (reg_info): Add an nregs field.
10639         (REG_NREGS): Use it.
10640         (SET_REGNO_RAW): Delete.
10641         (set_regno_raw): New function.
10642         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10643         (END_REGNO): Redefine in terms of REG_NREGS.
10644         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10645         SET_REGNO_RAW.
10646         * emit-rtl.c (set_mode_and_regno): Likewise.
10647         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10648         instead of SET_REGNO_RAW.
10649
10650 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10651
10652         * rtl.h (PUT_MODE_RAW): New macro.
10653         (PUT_REG_NOTE_KIND): Use it.
10654         (set_mode_and_regno): Declare.
10655         (gen_raw_REG): Change regno to "unsigned int".
10656         (gen_rtx_REG): Change "unsigned" to "unsigned int".
10657         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10658         use set_mode_and_regno to change the mode of registers.
10659         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10660         * emit-rtl.c (set_mode_and_regno): New function.
10661         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
10662         * caller-save.c (reg_save_code): Use set_mode_and_regno.
10663         * expr.c (init_expr_target): Likewise.
10664         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10665         * postreload.c (reload_cse_simplify_operands): Likewise.
10666
10667 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10668
10669         * caller-save.c (init_caller_save): Use word_mode and
10670         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10671         * expr.c (init_expr_target): Likewise.
10672         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10673         * postreload.c (reload_cse_regs_1): Likewise.
10674
10675 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10676
10677         * rtl.def (REG): Change format to "r".
10678         * rtl.h (rtunion): Remove rt_reg.
10679         (reg_info): New structure.
10680         (rtx_def): Add reg field to main union.
10681         (X0REGATTR): Delete.
10682         (REG_CHECK): New macro.
10683         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10684         * rtl.c (rtx_format): Document "r".
10685         (rtx_code_size): Handle REG specially.
10686         * gengenrtl.c (special_format): Return true for formats
10687         that include 'r'.
10688         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10689         Deal with REG_ATTRS after the field loop.
10690         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10691         * expmed.c (init_expmed): Call gen_raw_REG instead of
10692         gen_rtx_raw_REG.
10693         * expr.c (init_expr_target): Likewise.
10694         * regcprop.c (maybe_mode_change): Likewise.
10695         * varasm.c (make_decl_rtl): Likewise.
10696         * final.c (leaf_renumber_regs_insn): Return early after
10697         handling REGs.
10698         * genemit.c (gen_exp): Handle 'r' fields.
10699         * genpeep.c (match_rtx): Likewise.
10700         * gensupport.c (subst_pattern_match): Likewise.
10701         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10702         (alter_constraints, subst_dup): Likewise.
10703         * read-rtl.c (read_rtx_code): Likewise.
10704         * print-rtl.c (print_rtx): Likewise.
10705         * genrecog.c (find_operand, find_matching_operand): Likewise.
10706         (validate_pattern, match_pattern_2): Likewise.
10707         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10708         (rtx_test::regno_field): New function.
10709         (operator ==, safe_to_hoist_p, transition_parameter_type)
10710         (parameter_type_string, print_parameter_value)
10711         (print_nonbool_test, print_test): Handle new enum values.
10712         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10713         * lra-constraints.c (operands_match_p): Likewise.
10714
10715 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10716
10717         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10718         Change type of new_regno to unsigned int.
10719         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10720         new_regno to unsigned int.
10721         (df_ref_change_reg_with_loc): Remove old_regno parameter.
10722         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
10723         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10724         (SET_REGNO_RAW): Add space after ",".
10725
10726 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10727
10728         * rtl.h (REG_NREGS): New macro
10729         * alias.c (record_set): Use it.
10730         * cfgcleanup.c (mark_effect): Likewise.
10731         * combine.c (likely_spilled_retval_1): Likewise.
10732         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10733         (move_deaths, distribute_notes): Likewise.
10734         * cselib.c (cselib_record_set): Likewise.
10735         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10736         * df-scan.c (df_mark_reg): Likewise.
10737         * dse.c (look_for_hardregs): Likewise.
10738         * dwarf2out.c (reg_loc_descriptor): Likewise.
10739         (multiple_reg_loc_descriptor): Likewise.
10740         * expr.c (write_complex_part, read_complex_part): Likewise.
10741         (emit_move_complex): Likewise.
10742         * haifa-sched.c (setup_ref_regs): Likewise.
10743         * ira-lives.c (mark_hard_reg_live): Likewise.
10744         * lra.c (lra_set_insn_recog_data): Likewise.
10745         * mode-switching.c (create_pre_exit): Likewise.
10746         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10747         (reload_combine_recognize_pattern): Likewise.
10748         (reload_combine_note_use, move2add_record_mode): Likewise.
10749         (reload_cse_move2add): Likewise.
10750         * reg-stack.c (subst_stack_regs_pat): Likewise.
10751         * regcprop.c (kill_value, copy_value): Likewise.
10752         (copyprop_hardreg_forward_1): Likewise.
10753         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10754         (build_def_use): Likewise.
10755         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10756         (deps_analyze_insn): Likewise.
10757         * sched-rgn.c (check_live_1, update_live_1): Likewise.
10758         * sel-sched.c (count_occurrences_equiv): Likewise.
10759         * valtrack.c (dead_debug_insert_temp): Likewise.
10760
10761 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10762
10763         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10764         * dse.c (note_add_store): Likewise.
10765         * ira-lives.c (mark_hard_reg_dead): Likewise.
10766         * loop-invariant.c (mark_reg_store): Likewise.
10767         (mark_reg_death): Likewise.
10768         * postreload.c (reload_combine): Likewise.
10769         (reload_combine_note_store): Likewise.
10770         (reload_combine_note_use): Likewise.
10771         * recog.c (peep2_reg_dead_p): Likewise.
10772
10773 2015-05-19  Alan Modra  <amodra@gmail.com>
10774
10775         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10776         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10777         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10778         unused predicates.
10779         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10780         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
10781         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10782         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10783
10784 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
10785
10786         * config/mips/mips.md (JOIN_MODE): New mode iterator.
10787         (join2_load_Store<JOIN_MODE:mode>): New pattern.
10788         (join2_loadhi): Likewise.
10789         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10790         load-load and store-stores.
10791         * config/mips/mips.opt (mload-store-pairs): New option.
10792         (TARGET_LOAD_STORE_PAIRS): New macro.
10793         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10794         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10795         * config/mips/mips.c (mips_load_store_bonding_p): New function.
10796
10797 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
10798
10799         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10800         explicit swaps.
10801         * dojump.c (do_compare_rtx_and_jump): Likewise.
10802         * expmed.c (emit_store_flag_1): Likewise.
10803         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10804         * final.c (sprint_ul): Use std::reverse for reversing a string.
10805         * fold-const.c (extract_muldiv_1): Use std::swap.
10806         * genmodes.c (emit_mode_int_n): Likewise.
10807         * ifcvt.c (dead_or_predicable): Likewise.
10808         * ira-build.c (ira_merge_live_ranges): Likewise.
10809         (swap_allocno_copy_ends_if_necessary): Likewise.
10810         * ira.c (ira_setup_alts): Likewise.
10811         * loop-iv.c (iv_analyze_expr): Likewise.
10812         (implies_p): Likewise.
10813         (canon_condition): Likewise.
10814         * lra-constraints.c (swap_operands): Likewise.
10815         * lra-lives.c (lra_merge_live_ranges): Likewise.
10816         * omega.c (swap): Remove.
10817         (bswap): Remove.
10818         (omega_unprotect_1): Use std::swap.
10819         (omega_solve_geq): Likewise.
10820         * optabs.c (expand_binop_directly): Likewise.
10821         (expand_binop): Likewise.
10822         (emit_conditional_move): Likewise.
10823         (emit_conditional_add): Likewise.
10824         * postreload.c (reload_cse_simplify_operands): Likewise.
10825         * reg-stack.c (emit_swap_insn): Likewise.
10826         (swap_to_top): Likewise.
10827         (compare_for_stack_reg): Likewise.
10828         (subst_asm_stack_regs): Likewise.
10829         * reload.c (find_reloads): Likewise.
10830         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10831         * sel-sched.c (invoke_reorder_hooks): Likewise.
10832         (create_block_for_bookkeeping): Likewise.
10833         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10834         (lambda_matrix_right_hermite): Use std::swap.
10835         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10836         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10837         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10838         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10839         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10840         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10841         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10842         * tree-vrp.c (compare_ranges): Likewise.
10843         * var-tracking.c (add_with_sets): Likewise.
10844         (vt_find_locations): Likewise.
10845
10846 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
10847
10848         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10849         pie executables.
10850         (FBSD_ENDFILE_SPEC): Likewise.
10851         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10852         config/freebsd-spec.h.
10853         (ENDFILE_SPEC): Likewise.
10854
10855 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
10856             Richard Henderson  <rth@redhat.com>
10857
10858         PR target/57032
10859         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10860         Check for a memory location that is not a reference (using an AND)
10861         to an unaligned location here.
10862         * config/alpha/predicates.md (normal_memory_operand): Remove.
10863
10864 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
10865
10866         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10867         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10868
10869 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
10870
10871         * config/mips/mips.c (micromips_globals): New variable.
10872         (mips_set_compression_mode): Save and reinitialize target-dependent
10873         state for microMIPS.
10874
10875 2015-05-18  Martin Liska  <mliska@suse.cz>
10876
10877         * dbgcnt.def: Add new counter.
10878         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10879
10880 2015-05-18  Martin Liska  <mliska@suse.cz>
10881
10882         * dbgcnt.def: Sort counters.
10883         * opts.c (common_handle_option): Do not compile if
10884         -fdbg-cnt-list is enabled.
10885
10886 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10887
10888         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10889         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
10890         address operator to va_list operand.
10891         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10892         unconditionally.
10893         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10894         operand.
10895         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10896         * config/s390/s390.c (s390_gimplify_va_arg): Same.
10897         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10898
10899 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10900
10901         * tree-ssa-tail-merge.c: Fix whitespace.
10902
10903 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
10904
10905         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10906         cortex-a17, and cortex-a17.cortex-a7.
10907
10908 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
10909
10910         PR target/54236
10911         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10912
10913 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
10914
10915         PR target/66174
10916         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10917         QImode inner modes for TARGET_AVX512BW.  Force mask operand
10918         to a register for AVX512F modes.
10919
10920 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10921
10922         * toplev.c (emit_debug_global_declarations): Do not output debug info
10923         when doing slim LTO objects.
10924
10925 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10926
10927         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10928         odr_types_equivalent_p): Declare.
10929         (odr_type_p): Use gcc_checking_assert.
10930         (type_in_anonymous_namespace_p) Declare.
10931         (type_with_linkage_p): Declare.
10932         * common.opt (Wlto-type-mismatch): New warning.
10933         * ipa-devirt.c (compound_type_base): New function.
10934         (odr_or_derived_type_p): New function.
10935         (odr_types_equivalent_p): New function.
10936         (add_type_duplicate): Simplify.
10937         (type_with_linkage_p): Add hack to prevent false positives on C types
10938         (type_in_anonymous_namespace_p): Likewise.
10939         * tree.c (need_assembler_name_p): Use type_with_linkage.
10940         * tree.h (type_in_anonymous_namespace_p): Remove.
10941         * doc/invoke.texi (-Wlto-type-mismatch): Document
10942
10943 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10944
10945         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10946         (verify_type): Verify STRING_FLAG.
10947
10948 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10949
10950         PR fortran/44054
10951         * tree-pretty-print.c (percent_K_format): Replace locus pointer
10952         with accessor function.
10953         * tree-diagnostic.c (diagnostic_report_current_function): Use
10954         diagnostic_location function.
10955         (maybe_unwind_expanded_macro_loc): Likewise.
10956         (virt_loc_aware_diagnostic_finalizer): Likewise.
10957         (default_tree_printer): Replace locus pointer with accessor function.
10958         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10959         (diagnostic_set_info_translated): Initialize second location.
10960         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10961         (diagnostic_show_locus): Handle two locations. Call
10962         diagnostic_print_caret_line.
10963         (diagnostic_print_caret_line): New.
10964         (default_diagnostic_starter): Use diagnostic_location function.
10965         (diagnostic_report_diagnostic): Use diagnostic_location function.
10966         (verbatim): Do not set text.locus.
10967         * diagnostic.h (struct diagnostic_info): Remove location field.
10968         (struct diagnostic_context): Make caret_chars an array of two.
10969         (diagnostic_location): New inline.
10970         (diagnostic_expand_location): Handle two locations.
10971         (diagnostic_same_line): New inline.
10972         (diagnostic_print_caret_line): Declare.
10973         (CARET_LINE_MARGIN): New constant.
10974         * pretty-print.c (pp_printf): Do not set text.locus.
10975         (pp_verbatim): Do not set text.locus.
10976         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10977         (struct text_info): Replace locus pointer with locations
10978         array. Add accessor functions.
10979
10980 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
10981             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10982
10983         PR target/65768
10984         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10985         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10986          large constants in register instead of splitting them.
10987
10988 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
10989
10990         PR target/66140
10991         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10992         replacements in memory addresses.
10993         (get_unaligned_address): Ditto.
10994
10995 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
10996
10997         * config/ft32/*: New files for FT32 port.
10998         * doc/install.texi: Add FT32 information.
10999         * doc/invoke.texi: Add FT32 information.
11000         * doc/md.texi: Add FT32 information.
11001         * doc/contrib.texi: Self added.
11002
11003 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
11004
11005         PR tree-optimization/64454
11006         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
11007         (-1 - A -> ~A): Remove unnecessary condition.
11008
11009 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
11010
11011         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
11012         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11013         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
11014
11015 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
11016
11017         * ipa-chkp.h (chkp_wrap_function): New.
11018         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
11019         (chkp_wrap_function_name): New.
11020         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
11021         to get wrapper name.
11022         * lto-cgraph.c: Include ipa-chkp.h.
11023         (input_cgraph_1): Avoid alias chain for wrappers.
11024
11025 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
11026
11027         PR middle-end/66134
11028         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11029         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11030
11031 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11032
11033         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11034         (AARCH64_FL_SLOWMUL): Delete.
11035         (AARCH64_FL_CRC): Redefine to 1<<3.
11036         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11037
11038 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11039
11040         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11041         casting.
11042
11043 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
11044
11045         * config/alpha/alpha.md (extendqidi2): Use general_operand
11046         instead of some_operand for operand[1] predicate.
11047         (extendhidi2): Ditto.
11048         (cbranchdi4): Use general_operand instead of some_operand
11049         for operand[1] and operands[2] predicates.
11050         (cstoredi4): Ditto.
11051         * config/alpha/predicates.md (some_operand): Remove unused predicate.
11052         (some_ni_operand): Ditto.
11053
11054 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
11055
11056         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11057         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
11058         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11059         low part of the constant using alpha_emit_set_const_1.
11060         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11061
11062 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
11063
11064         * varasm.c (output_constant_pool_1): Pass down alignment from
11065         constant pool entry's descriptor to output_constant_pool_2.
11066         (output_object_block): Add comment prior to call to
11067         output_constant_pool_1.
11068
11069 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
11070
11071         PR rtl-optimization/65862
11072         * target.def (ira_change_pseudo_allocno_class): New hook.
11073         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11074         value of the hook.
11075         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11076         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11077         hook.
11078         * ira-costs.c (find_costs_and_classes): Call the hook and change
11079         classes when it is necessary.
11080         * doc/tm.texi: Update.
11081
11082 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
11083
11084         * config/i386/i386.md (sibcall_memory): Check that register with
11085         callee address is not also used as one of the arguments, instead
11086         of checking that it is not live after the sibcall.
11087         (sibcall_pop_memory): Ditto.
11088         (sibcall_value_memory): Ditto.
11089         (sibcall_value_pop_memory): Ditto.
11090
11091 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
11092
11093         * generic-match-head.c (types_match): Handle non-types.
11094         * gimple-match-head.c (types_match): Likewise.
11095         * match.pd: Remove unnecessary TREE_TYPE for types_match.
11096
11097 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
11098
11099         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11100         (csneg3<mode>_insn): Enable expansion of pattern.
11101
11102 2015-05-14  Nick Clifton  <nickc@redhat.com>
11103
11104         * config/rl78/rl78.c (rl78_select_section): Select the correct
11105         default section based upon the category of the decl.
11106
11107 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11108
11109         PR rtl-optimization/30967
11110         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11111         destination mode for the cost of scc patterns.
11112
11113 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11114
11115         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11116         using SWIM248 mode iterator.
11117         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11118         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
11119         for operand[2] constraint.
11120         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11121
11122 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11123
11124         PR middle-end/66133
11125         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11126         make sure it is never noreturn, even when the task body does not
11127         return.
11128         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11129         right before GIMPLE_OMP_RETURN.
11130         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11131         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
11132         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11133
11134 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11135
11136         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11137         * tree-ssa-math-opts.c: Include params.h
11138         (pow_synth_sqrt_info): New struct.
11139         (representable_as_half_series_p): New function.
11140         (get_fn_chain): Likewise.
11141         (print_nested_fn): Likewise.
11142         (dump_fractional_sqrt_sequence): Likewise.
11143         (dump_integer_part): Likewise.
11144         (expand_pow_as_sqrts): Likewise.
11145         (gimple_expand_builtin_pow): Use above to attempt to expand
11146         pow as series of square roots.  Removed now unused variables.
11147
11148 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11149
11150         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11151         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11152         Remove *p0 and *p1 arguments.  Rewrite function.
11153         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11154         (alpha_split_const_mov): Update calls to alpha_extract_integer and
11155         alpha_emit_set_long_const.
11156         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11157         (alpha_output_mi_thunk_osf): Ditto.
11158         * config/alpha/alpha.md (movti): Do not check operands[1]
11159         for CONST_DOUBLE.
11160
11161 2015-05-13  Richard Biener  <rguenther@suse.de>
11162
11163         PR tree-optimization/66129
11164         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11165         commutative.
11166         (vect_schedule_slp_instance): Fix typo.
11167
11168 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
11169
11170         * common.opt (fdump-internal-locations): New option.
11171         * input.c: Include diagnostic-core.h.
11172         (get_end_location): New function.
11173         (write_digit): New function.
11174         (write_digit_row): New function.
11175         (dump_location_range): New function.
11176         (dump_labelled_location_range): New function.
11177         (dump_location_info): New function.
11178         * input.h (dump_location_info): New prototype.
11179         * toplev.c (compile_file): Handle flag_dump_locations.
11180
11181 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
11182
11183         * gimple-expr.h (is_gimple_constant): Reorder.
11184         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11185
11186 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11187
11188         * combine.c (simplify_set): When generating a CC set, if the
11189         source already is in the correct mode, do not wrap it in a
11190         compare.  Simplify the rest of that code.
11191
11192 2015-05-13  Richard Biener  <rguenther@suse.de>
11193
11194         PR tree-optimization/66123
11195         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11196         a taken edge.
11197
11198 2015-05-13  Richard Biener  <rguenther@suse.de>
11199
11200         PR middle-end/66110
11201         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11202         specially.
11203         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11204
11205 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11206
11207         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11208         * aclocal.m4: Regenerated with automake-1.11.6.
11209
11210 2015-05-13  Tom de Vries  <tom@codesourcery.com>
11211
11212         PR tree-optimization/66010
11213         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11214         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11215         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
11216         and rval based on do_deref.
11217
11218 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11219
11220         PR target/65103
11221         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11222         link time constants into adress expressions and therefore set
11223         their cost to 0.
11224
11225 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11226
11227         PR target/66112
11228         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11229         Use SWI248 iterator instead of SWI.
11230         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
11231         Use eq_attr "alternative" "0" instead of match_test in
11232         length_immediate attribute computation.
11233         (*mulvhi4, *mulvhi4_1): New define_insns.
11234
11235         PR target/66112
11236         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11237         SIGNED to get precision of non-negative value.
11238
11239 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11240
11241         PR target/66048
11242         * function.c (diddle_return_value_1): Process bounds first.
11243         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11244         register.
11245
11246 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11247
11248         PR rtl-optimization/64616
11249         * loop-invariant.c (can_move_invariant_reg): New.
11250         (move_invariant_reg): Call above new function to decide whether
11251         instruction can just be moved, skipping creation of temporary
11252         register.
11253
11254 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11255
11256         PR target/pr66047.c
11257         * i386.c (ix86_function_sseregparm): Only return -1 if local function
11258         with implied regparm is called from -mno-sse function.
11259         (init_cumulative_args): Output error if ix86_function_sseregparm
11260         return -1 and SSE register would be needed.
11261         (function_arg_advance_32): Likewise.
11262         (function_arg_32): Likewise.
11263         * i386.h (ix86_args): Add decl field.
11264
11265 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11266
11267         PR ipa/65873
11268         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11269         inlines across optimization boundary.
11270
11271 2015-05-12  Jason Merrill  <jason@redhat.com>
11272
11273         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11274         string literal and macro name.
11275
11276 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
11277
11278         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11279         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11280         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11281
11282 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
11283
11284         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11285         (-Wmisleading-indentation): New option.
11286         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11287
11288 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
11289
11290         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11291         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11292         (alpha_extract_integer): Ditto.
11293         (alpha_legitimate_constant_p): Ditto.
11294         (alpha_split_tmode_pair): Ditto.
11295         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11296         (alpha_expand_mov): Ditto.
11297         (print_operand): Remove handling of 'H' modifier.
11298         <case 'm'>: Remove CONST_DOUBLE handling.
11299         (summarize_insn): Handle CONST_WIDE_INT.
11300         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11301         (anddi3): Ditto.
11302         (movti): Handle CONST_WIDE_INT.
11303         * config/alpha/constraints.md ('H'): Remove constraint definition.
11304         ('G'): Do not match MODE_FLOAT class.
11305         * config/alpha/predicates.md (const0_operand): Also match
11306         const_wide_int.
11307         (non_add_const_operand): Ditto.
11308         (non_zero_const_operand): Ditto.
11309         (some_operand): Ditto.
11310         (input_operand): Ditto.  Handle CONST_WIDE_INT.
11311         (and_operand): Do not match const_double.
11312         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11313
11314 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
11315
11316         PR target/65697
11317         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11318         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11319         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11320         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11321         is_mm_seq_cst, is_mm_sync): New accessor functions.
11322         * builtins.c (expand_builtin_sync_operation,
11323         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11324         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11325         (get_memmodel,  expand_builtin_atomic_compare_exchange,
11326         expand_builtin_atomic_load, expand_builtin_atomic_store,
11327         expand_builtin_atomic_clear): Use new accessor routines.
11328         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11329         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11330         (maybe_emit_sync_lock_test_and_set): Use new accessors and
11331         MEMMODEL_SYNC_ACQUIRE.
11332         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11333         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11334         expand_atomic_store): Use new accessors.
11335         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11336         * tsan.c (instrument_builtin_call): Update check for memory model beyond
11337         final enum to use MEMMODEL_LAST.
11338         * c-family/c-common.c: Use new accessor for memmodel_base.
11339         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11340         accessors.
11341         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11342         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11343         mem_thread_fence, *dmb): Likewise.
11344         * config/alpha/alpha.c (alpha_split_compare_and_swap,
11345         alpha_split_compare_and_swap_12): Likewise.
11346         * config/arm/arm.c (arm_expand_compare_and_swap,
11347         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11348         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11349         atomic_loaddi): Likewise.
11350         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11351         Likewise.
11352         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11353         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11354         use new accessors.
11355         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11356         atomic_store<mode>, atomic_compare_and_swap<mode>,
11357         atomic_exchange<mode>): Use new accessors.
11358         * config/mips/mips.c (mips_process_sync_loop): Likewise.
11359         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11360         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11361         rs6000_post_atomic_barrier): Add new cases.
11362         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11363         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11364         (atomic_load<mode>): Add new cases and use new accessors.
11365         (store_quadpti): Add new cases.
11366         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11367         accessors.
11368         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11369         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11370         model, not 8.
11371
11372 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11373
11374         * ipa-devirt.c (type_with_linkage_p): New function.
11375         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11376         type has linkage.
11377         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11378         (can_be_name_hashed_p): Simplify.
11379         (hash_odr_name): Check that type has linkage before checking if it is
11380         anonymous.
11381         (types_same_for_odr): Likewise.
11382         (odr_name_hasher::equal): Likewise.
11383         (odr_subtypes_equivalent_p): Likewise.
11384         (warn_types_mismatch): Likewise.
11385         (get_odr_type): Likewise.
11386         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11387         * ipa-utils.h (odr_type_p): Move offline.
11388         * tree.c (need_assembler_name_p): Fix handling of types
11389         without linkages.
11390         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11391
11392 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
11393
11394         * timevar.c (timevar_enable): Delete in favor of...
11395         (g_timer): New global.
11396         (struct timevar_def): Move to timevar.h inside class timer.
11397         (struct timevar_stack_def): Likewise.
11398         (timevars): Delete global in favor of field "m_timevars" within
11399         class timer in timevar.h
11400         (stack): Likewise, in favor of field "m_stack".
11401         (unused_stack_instances): Likewise, in favor of field
11402         "m_unused_stack_instances".
11403         (start_time): Likewise, in favor of field "m_start_time".
11404         (get_time): Eliminate check for timevar_enable.
11405         (timer::timer): New function, built from part of timevar_init.
11406         (timevar_init): Rewrite idempotency test from using
11407         "timevar_enable" bool to using dynamic allocation of "g_timer".
11408         Move rest of implementation into timer's constructor.
11409         (timevar_push_1): Rename to...
11410         (timer::push): ...this, adding "m_" prefixes to variables that
11411         are now fields of timer.
11412         (timevar_pop_1): Likewise, rename to...
11413         (timer::pop): ...this, and add "m_" prefixes.
11414         (timevar_start): Replace test for "timevar_enable" with one for
11415         "g_timer", and move bulk of implementation to...
11416         (timer::start): ...here, adding "m_" prefixes.
11417         (timevar_stop): Likewise, from here...
11418         (timer::stop): ...to here.
11419         (timevar_cond_start): Likewise, from here...
11420         (timer::cond_start): ...to here.
11421         (timevar_cond_stop): Likewise, from here...
11422         (timer::cond_stop): ...to here.
11423         (validate_phases): Rename to...
11424         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
11425         locals "total" and "tv" const.
11426         (timevar_print): Rename to...
11427         (timer::print): ...this, and add "m_" prefixes.  Make locals
11428         "total" and "tv" const.  Eliminate test for timevar_enable.
11429         * timevar.h (timevar_enable): Eliminate.
11430         (g_timer): New declaration.
11431         (timevar_push_1): Eliminate.
11432         (timevar_pop_1): Eliminate.
11433         (timevar_print): Eliminate.
11434         (class timer): New class.
11435         (timevar_push): Rewrite to use g_timer.
11436         (timevar_pop): Likewise.
11437         * toplev.c (toplev::~toplev): Likewise.
11438
11439 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
11440
11441         * arm-protos.h (arm_sched_autopref): Delete.
11442         (tune_params): Re-organize, use enums for flag values.
11443         (FUSE_OPS): New macro.
11444         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11445         (ARM_PREFETCH_BENEFICIAL): Likewise.
11446         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11447         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11448         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11449         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11450         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11451         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
11452         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11453         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11454         format.
11455         (arm_option_override, thumb2_reorg, arm_print_tune_info)
11456         (aarch_macro_fusion_pair_p): Update uses of current_tune.
11457         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11458
11459 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
11460
11461         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11462         "break".
11463
11464 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
11465             Sandra Loosemore <sandra@codesourcery.com>
11466
11467         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11468         value.
11469         (REG_CLASS_NAMES): Add "IJMP_REGS".
11470         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11471         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11472         use new "c" register constraint.
11473         * config/nios2/constraint.md (c): New register constraint
11474         corresponding to IJMP_REGS.
11475
11476 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11477
11478         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11479         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11480         define_splits): Delete, revamp, transmogrify into ...
11481         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11482         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11483         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11484         New.
11485
11486 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11487
11488         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11489         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11490
11491 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11492
11493         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11494         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11495         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11496         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11497         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11498         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11499         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11500         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11501         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11502         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11503         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11504         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11505         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11506         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11507         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11508         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11509         and 30 corresponding splitters): Delete.
11510
11511 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11512
11513         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11514         zero_extract.
11515
11516 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11517
11518         * combine.c (recog_for_combine_1): New function, factored out
11519         from recog_for_combine.
11520         (change_zero_ext): New function.
11521         (recog_for_combine): If recog fails, try again with the pattern
11522         modified by change_zero_ext; if that still fails, restore the
11523         pattern.
11524
11525 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11526
11527         * combine.c (get_undo_marker): New function.
11528         (undo_to_marker): New function, largely factored out from ...
11529         (undo_all): ... this.  Adjust.
11530
11531 2015-05-12  Richard Biener  <rguenther@suse.de>
11532
11533         PR tree-optimization/66101
11534         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11535         fixup if we turn a loop exit edge to a fallthru edge.
11536
11537 2015-05-12  Richard Biener  <rguenther@suse.de>
11538
11539         PR tree-optimization/37021
11540         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11541         (SLP_TREE_TWO_OPERATORS): New define.
11542         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11543         SLP_TREE_TWO_OPERATORS.
11544         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11545         SLP node.
11546         (vect_build_slp_tree): Adjust.
11547         (vect_analyze_slp_cost_1): Likewise.
11548         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11549         emitting two vector stmts and mixing the results.
11550
11551 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11552
11553         * call.c (print_z_candidates): Remove dead code.
11554
11555 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11556
11557         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11558         and zEC12_simple_fp.
11559         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11560         to 1.
11561
11562 2015-05-12  Tom de Vries  <tom@codesourcery.com>
11563
11564         PR tree-optimization/66010
11565         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11566         ifn_va_arg.
11567         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11568         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
11569         va_lists are passed, and remove corresponding handling.
11570         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
11571         do_deref argument to ifn_va_arg.
11572         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11573         ifn_va_arg.
11574
11575 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11576
11577         PR target/65955
11578         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11579         REG before taking its REGNO.
11580
11581 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11582
11583         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11584         rsp->sign_bit_copies and rsp->nonzero_bits into ...
11585         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
11586         present to get more accurate information about the number of sign bit
11587         copies and non zero bits.
11588
11589 2015-05-12  Richard Biener  <rguenther@suse.de>
11590
11591         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11592         do not allow unrolling.
11593
11594 2015-05-11  Richard Henderson  <rth@redhat.com>
11595
11596         * config/i386/i386-modes.def (CCP): New.
11597         * config/i386/i386.c (put_condition_code): Handle it.
11598         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11599
11600 2015-05-11  Richard Henderson  <rth@redhat.com>
11601
11602         * target.def (md_asm_clobbers): Replace with...
11603         (md_asm_adjust): this.
11604         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11605         (TARGET_MD_ASM_ADJUST): New.
11606         * tm.texi: Rebuild.
11607         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11608         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11609         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11610
11611         * cfgexpand.c (check_operand_nalternatives): Accept vector of
11612         constraints instead of lists of outputs and inputs.
11613         (expand_asm_stmt): Save and restore input_location around the
11614         body of the function.  Move asm data into vectors instead of
11615         building tree lists.  Generate cleanup sequences as needed,
11616         rather than waiting til the end.  Use new md_asm_adjust hook.
11617
11618         * config/vxworks.c: Include vec.h before target.h.
11619         * gimple.c: Likewise.
11620         * incpath.c: Likewise.
11621         * mode-switching.c: Likewise.
11622
11623         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11624         (cris_md_asm_adjust): this.
11625         (TARGET_MD_ASM_CLOBBERS): Remove.
11626         (TARGET_MD_ASM_ADJUST): New.
11627         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11628         (ix86_md_asm_adjust): this.
11629         (TARGET_MD_ASM_CLOBBERS): Remove.
11630         (TARGET_MD_ASM_ADJUST): New.
11631         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11632         (mn10300_md_asm_adjust): this.
11633         (TARGET_MD_ASM_CLOBBERS): Remove.
11634         (TARGET_MD_ASM_ADJUST): New.
11635         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11636         (rs6000_md_asm_adjust): this.
11637         (TARGET_MD_ASM_CLOBBERS): Remove.
11638         (TARGET_MD_ASM_ADJUST): New.
11639         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11640         (visium_md_asm_adjust): this.
11641         (TARGET_MD_ASM_CLOBBERS): Remove.
11642         (TARGET_MD_ASM_ADJUST): New.
11643
11644 2015-05-11  Richard Henderson  <rth@redhat.com>
11645
11646         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11647         if noutputs is zero.
11648         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11649
11650         * cfgexpand.c (expand_asm_operands): Merge into...
11651         (expand_asm_stmt): ... here.
11652
11653         * cfgexpand.c (expand_asm_operands): Don't call
11654         resolve_asm_operand_names.
11655         * stmt.c (resolve_asm_operand_names): Clarify block comment.
11656
11657 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
11658
11659         * dwarf2out.c (gen_member_die): Sanity check that we access
11660         TYPE_MAIN_VARIANT for TYPE_METHODS.
11661         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11662         checking TYPE_METHODS.
11663         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11664         if non-null.
11665         (build_distinct_type_copy): Clear TYPE_METHODS.
11666         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11667         (verify_type): Allow TYPE_METHODS to be error_mark_node.
11668         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11669
11670 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11671
11672         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11673         (emit_pattern_before_setloc): Likewise.
11674
11675 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11676
11677         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11678         for define_peephole2s.
11679         (get_peephole2_pattern): New function.
11680         (main): Use it.  Call validate_pattern.
11681
11682 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11683
11684         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11685         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11686         (Last callee saved reg is different for AVR_TINY architecture)
11687
11688 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11689
11690         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11691         when looking for memory references.
11692
11693 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11694
11695         PR target/65753
11696         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11697         via function pointers.
11698
11699 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11700
11701         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11702         indirect call by forcing address into a pseudo with -fno-plt.
11703         * common.opt (flag_plt): New option.
11704         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11705         ([-fno-plt]): Document.
11706
11707 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
11708
11709         PR bootstrap/66105
11710         * config/rs6000/option-defaults.h: Add space between string literal
11711         and macro name.
11712
11713 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11714
11715         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11716         accross ARM targets.
11717
11718 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11719
11720         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11721         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11722
11723 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11724
11725         PR rtl-optimization/66076
11726         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11727         Don't grow the heap array if it is already big enough from a
11728         previous iteration.
11729
11730 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11731
11732         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11733         (is_called_in_ARM_mode): Remove.
11734         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11735         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11736         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11737          arm_declare_function_name.
11738
11739 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11740
11741         * config/arm/arm.c (arm_option_override): Reoganized and split into :
11742         (arm_option_params_internal); New function.
11743         (arm_option_check_internal): New function.
11744         (arm_option_override_internal): New function.
11745         (thumb_code, thumb1_code): Remove.
11746         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11747         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11748         (thumb_code, thumb1_code): Remove.
11749         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11750
11751 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11752
11753         * config/alpha/alpha.c (alpha_emit_set_const_1)
11754         (alpha_emit_set_long_const, alpha_extract_integer)
11755         (alpha_legitimate_constant_p, alpha_split_const_mov)
11756         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11757         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11758         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11759         HOST_WIDE_INT_1U.
11760         * config/alpha/predicates.md (mode_mask_operand): Do not match
11761         const_double RTX.
11762         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11763         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11764         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11765         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11766         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11767
11768 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
11769
11770         PR target/65780
11771         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11772         default_binds_local_p_2.
11773         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11774         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11775
11776 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11777
11778         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11779
11780 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11781
11782         Patch by Richard Biener
11783         * coverage.c (coverage_obj_init): Delay building of type variant
11784         until the type is finished.
11785
11786 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11787
11788         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11789         mismatch between C and C++ type; compoare correctly ARG_TYPES
11790         for non-prototypes and output correctly parameter index for METHOD_TYPE.
11791         (odr_types_equivalent_p): Fix wording of warning about attributes;
11792         it is OK to match prototype and non-prototype.
11793
11794 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11795
11796         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11797         TYPE_ARG_TYPES list.
11798         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11799         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11800
11801 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11802
11803         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11804         * tree.h (is_lang_specific): Constify.
11805
11806 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
11807
11808         PR tree-optimization/64454
11809         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11810         Rewrite.
11811
11812 2015-05-08  Jason Merrill  <jason@redhat.com>
11813
11814         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11815         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11816         config/darwin.h, config/darwin9.h, config/elfos.h,
11817         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11818         config/microblaze/microblaze.h, config/mips/mips.h,
11819         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11820         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11821         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11822         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11823         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11824         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11825         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11826         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11827         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11828         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11829         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11830         between string literal and macro name.
11831
11832 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11833
11834         * jump.c: Change argument types to rtx_insn *.
11835         * rtl.h: Adjust.
11836
11837 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11838
11839         * lra-constraints.c: Change argument type to rtx_insn *.
11840
11841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11842
11843         * df-problems.c: Change argument type to rtx_insn *.
11844
11845 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11846
11847         * combine.c: Change argument type to rtx_insn *.
11848
11849 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11850
11851         * rtl.h: Adjust.
11852         * rtlanal.c: Change argument type to rtx_insn *.
11853
11854 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11855
11856         * sched-deps.c: Change argument types to rtx_insn *.
11857         * sched-int.h: Adjust.
11858
11859 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11860
11861         * dwarf2cfi.c: Change argument type to rtx_insn *.
11862
11863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11864
11865         * ira.c (decrease_live_ranges_number): Changetype of local
11866         variable to rtx_insn *.
11867         * recog.c: Change argument types to rtx_insn *.
11868         * recog.h: Adjust.
11869
11870 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11871
11872         * reorg.c: Change argument types to rtx_insn *.
11873
11874 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11875
11876         * ira-color.c: Change argument types to rtx_insn *.
11877         * lra-eliminations.c: Likewise.
11878         * ira.h: Adjust.
11879
11880 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11881
11882         * gcse.c: Change argument types to rtx_insn *.
11883
11884 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11885
11886         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11887
11888 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11889
11890         * emit-rtl.c (emit_debug_insn_before): Change argument type to
11891         rtx_insn *.
11892         * rtl.h: Adjust.
11893
11894 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11895
11896         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11897         * rtl.h: Adjust.
11898
11899 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11900
11901         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11902         * rtl.h: Adjust.
11903
11904 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11905
11906         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11907         * rtl.h: Adjust.
11908
11909 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11910
11911         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11912         * rtl.h: Adjust.
11913
11914 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11915
11916         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11917         to rtx_insn *.
11918         * rtl.h: Adjust.
11919
11920 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11921
11922         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11923         to rtx_insn *.
11924         * rtl.h: Likewise.
11925
11926 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11927
11928         * except.c (can_nonlocal_goto): Change type of argument to
11929         rtx_insn *.
11930         * rtl.h: Adjust.
11931
11932 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11933
11934         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11935         * rtl.h: Adjust.
11936
11937 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11938
11939         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11940         * cfgrtl.c (can_delete_label_p): Adjust.
11941         * rtl.h: likewise.
11942
11943 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11944
11945         * reorg.c (stop_search_p): Change argument to rtx_insn *.
11946
11947 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11948
11949         * except.c (make_reg_eh_region_note): Change argument to
11950         rtx_insn *.
11951         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11952         * except.h: Adjust.
11953
11954 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11955
11956         * mode-switching.c (commit_mode_sets): Change type of local
11957         variable from rtx to rtx_insn *.
11958
11959 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
11960
11961         * doc/install.texi (--enable-languages): Add missing jit and lto info.
11962         Add ^ to grep command.
11963         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11964         arg to last gimple_simplify declaration.  Add missing gimple_build
11965         declaration for built-in function case with four tree args.
11966
11967 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
11968             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11969
11970         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11971         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11972         (GNU_USER_DYNAMIC_LINKERN32): Update.
11973
11974 2015-05-08  Richard Biener  <rguenther@suse.de>
11975
11976         PR tree-optimization/66036
11977         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11978         Handle strided group loads.
11979         (vect_verify_datarefs_alignment): Likewise.
11980         (vect_enhance_data_refs_alignment): Likewise.
11981         (vect_analyze_group_access): Likewise.
11982         (vect_analyze_data_ref_access): Likewise.
11983         (vect_analyze_data_ref_accesses): Likewise.
11984         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11985         (vectorizable_load): Likewise.
11986
11987 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
11988
11989         * config/rs6000/rs6000.md: Require operand inequality in one
11990         of the peepholes.
11991
11992 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
11993             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11994
11995         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11996         from (set ...).
11997         * config/rx/rx.md (movdi, movdf): Likewise.
11998         Likewise for define_peephole2s.
11999
12000 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12001
12002         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
12003         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
12004         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
12005         vtst_u64): Rewrite using gcc vector extensions.
12006
12007 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12008
12009         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
12010         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
12011
12012 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12013
12014         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
12015
12016 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12017
12018         * config/glibc-stdint.h (OPTION_MUSL): Define.
12019         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
12020         Change the definition based on OPTION_MUSL for 64 bit targets.
12021         * config/linux.h (OPTION_MUSL): Redefine.
12022         * config/alpha/linux.h (OPTION_MUSL): Redefine.
12023         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
12024         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
12025
12026 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
12027             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12028
12029         * config.gcc (LIBC_MUSL): New tm_defines macro.
12030         * config/linux.h (OPTION_MUSL): Define.
12031         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12032         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12033         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12034         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12035         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12036         * config/linux.opt (mmusl): New option.
12037         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12038         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12039         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12040         * configure: Regenerate.
12041
12042 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
12043             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12044
12045         PR target/48904
12046         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12047         * config/i386/knetbsd-gnu64.h: New file.
12048
12049 2015-05-08  Marek Polacek  <polacek@redhat.com>
12050
12051         PR c/64918
12052         * doc/invoke.texi: Document -Woverride-init-side-effects.
12053
12054 2015-05-07  Marek Polacek  <polacek@redhat.com>
12055
12056         PR c/65179
12057         * doc/invoke.texi: Document -Wshift-negative-value.
12058
12059 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
12060
12061         * gcov-tool.c (do_merge): Refactore to remove int ret.
12062         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12063         !type == FUNC to type != FUNC.
12064         * reload.h (struct target_reload): Changee to type of
12065         x_spill_indirect_levels from bool to unsigned char.
12066
12067 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
12068
12069         * rtl.h (always_void_p): New function.
12070         * gengenrtl.c (always_void_p): Likewise.
12071         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12072         with code foo are always VOIDmode.
12073         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12074         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12075         compare-elim.c, config/aarch64/aarch64.c,
12076         config/aarch64/aarch64.md, config/alpha/alpha.c,
12077         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12078         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12079         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12080         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12081         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12082         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12083         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12084         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12085         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12086         config/ia64/vect.md, config/iq2000/iq2000.c,
12087         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12088         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12089         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12090         config/mep/mep.c, config/microblaze/microblaze.c,
12091         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12092         config/mn10300/mn10300.c, config/msp430/msp430.c,
12093         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12094         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12095         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12096         config/rs6000/altivec.md, config/rs6000/rs6000.c,
12097         config/rs6000/rs6000.md, config/rs6000/vector.md,
12098         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12099         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12100         config/sh/sh.md, config/sh/sh_treg_combine.cc,
12101         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12102         config/spu/spu.md, config/stormy16/stormy16.c,
12103         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12104         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12105         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12106         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12107         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12108         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12109         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12110         var-tracking.c: Update calls accordingly.
12111
12112 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
12113
12114         PR middle-end/192
12115         PR middle-end/54303
12116         * varasm.c (function_mergeable_rodata_prefix): New function.
12117         (mergeable_string_section): Use it.
12118         (mergeable_constant_section): Use it.
12119
12120 2015-05-07  Jeff Law  <law@redhat.com>
12121
12122         PR target/39726
12123         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12124         simplifier to narrow arithmetic.
12125         * generic-match-head.c: (types_match, single_use): New functions.
12126         * gimple-match-head.c: (types_match, single_use): New functions.
12127
12128 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12129
12130         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12131         rtx type.
12132
12133 2015-05-07  Richard Biener  <rguenther@suse.de>
12134
12135         PR tree-optimization/66002
12136         * passes.def: Schedule another pass_merge_phi after ifcombine, right
12137         before phiopt.
12138
12139 2015-05-07  Marek Polacek  <polacek@redhat.com>
12140             Martin Uecker  <uecker@eecs.berkeley.edu>
12141
12142         * doc/invoke.texi: Document -fsanitize=bounds-strict.
12143         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12144         into SANITIZE_NONDEFAULT.
12145         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12146
12147 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
12148
12149         PR target/66015
12150         * config/alpha/alpha.c (alpha_override_options_after_change): New.
12151         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12152         (alpha_override_options): Move align_loops, align_jumps and
12153         align_functions handling into alpha_override_options_after_change.
12154
12155 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
12156             Chris Jones  <chrisj@nvidia.com>
12157             Joshua Conner  <jconner@nvidia.com>
12158
12159         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12160         linking of crtfastmath.o.
12161         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12162
12163 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
12164
12165         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12166         (cstore<mode>4_unsigned_imm): New expander.
12167         (cstore<mode>4): Remove empty constraint strings.  Use the new
12168         expanders.
12169
12170 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
12171
12172         PR target/64208
12173         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12174         alternatives.
12175
12176 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12177
12178         * config/aarch64/geniterators.sh: Use standard BRE in sed.
12179
12180 2015-05-06  Alan Modra  <amodra@gmail.com>
12181
12182         PR target/66033
12183         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12184         (UNSPEC_NOP): Define.
12185         (reload_vsx_from_gpr<mode>): Add missing DONE.
12186         (reload_gpr_from_vsx<mode>): Likewise.
12187         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12188         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12189
12190 2015-05-06  Christian Bruel  <christian.bruel@st.com>
12191
12192         PR target/66015
12193         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12194         align_jumps, align_functions into aarch64_override_options_after_change.
12195
12196 2015-05-06  Richard Biener  <rguenther@suse.de>
12197
12198         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12199         vect_transform_slp_perm_load to check if we support a permutation
12200         for basic-block vectorization.
12201
12202 2015-05-06  Nick Clifton  <nickc@redhat.com>
12203
12204         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12205         used, even if it is not being used as a frame pointer.
12206
12207 2015-05-05  Jason Merrill  <jason@redhat.com>
12208
12209         * dwarf2out.c (gen_member_die): Don't emit anything for an
12210         anonymous class constructor.
12211
12212 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
12213
12214         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12215         that it reflects the block structure.
12216         (afdo_propagate_edge): Likewise.
12217         (afdo_calculate_branch_prob): Likewise.
12218         (afdo_annotate_cfg): Likewise.
12219         * cfgcleanup.c (equal_different_set_p): Likewise.
12220         (try_crossjump_to_edge): Likewise.
12221         * cgraph.c (cgraph_node::verify_node): Likewise.
12222         * cgraphunit.c (expand_all_functions): Likewise.
12223         * config/i386/i386.c (ix86_expand_copysign): Likewise.
12224         (exact_dependency_1): Likewise.
12225         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12226         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12227         * gensupport.c (process_define_subst): Likewise.
12228         * lto-wrapper.c (merge_and_complain): Likewise.
12229         * tree-if-conv.c (if_convertible_bb_p): Likewise.
12230         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12231         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12232         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12233         * tree-vect-loop.c (vectorizable_reduction): Likewise.
12234         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12235         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12236         * tree-vrp.c (vrp_finalize): Likewise.
12237         * tree.c (variably_modified_type_p): Likewise.
12238
12239 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
12240
12241         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12242         on darwin12 and later.
12243         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12244         file to pass -rdynamic on darwin12 and later.
12245         * config/darwin.opt (rdynamic): Add.
12246
12247 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12248
12249         * doc/extend.texi (C Extensions): Update menu for moved Variable
12250         Attributes and Type Attributes sections.
12251
12252 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12253
12254         PR target/65990
12255         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12256         if rep_8byte stringop strategy was specified for 32-bit target.
12257
12258 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
12259
12260         PR target/65915
12261         * config/i386/i386.md (vector convert to float spltiter): Check for
12262         xmm16+, when splitting scalar float conversion.
12263         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12264
12265 2015-05-05  Nick Clifton  <nickc@redhat.com>
12266
12267         * config/msp430/msp430-opts.h (enum msp430_regions): New.
12268         * config/msp430/msp430.c (msp430_override_options): Complain if
12269         -mcode-region or -mdata-region is used on a non MSP430X.
12270         (msp430_section_attr): New function.  Checks lower, upper and
12271         either attributes.
12272         (msp430_attribute_table): Add lower, upper and either.
12273         (gen_prefix): New function.  Generates a prefix for a section
12274         name.
12275         (msp430_select_section): New function - handles the choice of
12276         section for an object.  Takes into account memory region
12277         attributes and options.
12278         (msp430_function_section): Use gen_prefix.
12279         (TARGET_SECTION_TYPE_FLAGS): Define.
12280         (msp430_section_type_flags): New function.
12281         (TARGET_ASM_UNIQUE_SECTION): Define.
12282         (msp430_unique_section): New function.
12283         (msp430_output_aligned_decl_common): New function.
12284         (msp430_do_not_relax_short_jumps): New function.
12285         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12286         Define.
12287         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12288         * config/msp430/msp430-protos.h
12289         (msp430_do_not_relax_short_jumps): New prototype.
12290         (msp430_output_aligned_decl_common): New prototype.
12291         * config/msp430/msp430.md (length): New attribute.
12292         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12293         then use a long code sequence for short jumps.
12294         * config/msp430/msp430.opt (mcode-region): New.
12295         (mdata-region): New.
12296         * doc/invoke.texi: Document new options.
12297         * doc/extend.texi: Document new attributes.
12298
12299 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12300
12301         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12302         (tune_params): Add field branch_costs.
12303         (aarch64_branch_cost): Declare.
12304         * gcc/config/aarch64.c (generic_branch_cost): New.
12305         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12306         (cortexa53_tunings): Likewise.
12307         (cortexa57_tunings): Likewise.
12308         (thunderx_tunings): Likewise.
12309         (xgene1_tunings): Likewise.
12310         (aarch64_branch_cost): Define.
12311         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12312
12313 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12314
12315         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12316         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12317         * config/i386/i386.md: Ditto.
12318         * config/i386/winnt.c: Ditto.
12319
12320 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12321
12322         * doc/extend.texi (__atomic Builtins): Move implementation details
12323         to the end of the description, rewrite opening paragraphs, state
12324         difference with __sync builtins, state C11/C++11 assumptions,
12325         weaken itemized descriptions, add explanation of memory model
12326         behaviour, expand description of compare-exchange, simplify text.
12327
12328 2015-05-05  Renlin Li  <renlin.li@arm.com>
12329
12330         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12331
12332 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
12333
12334         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12335         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12336         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12337         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12338         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12339         * configure: Regenerate.
12340         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12341         * doc/install.texi (aarch64*-*-*): Document new
12342         --enable-fix-cortex-a53-843419 option.
12343         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12344         and -mno-fix-cortex-a53-843419 options.
12345
12346 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12347
12348         PR target/65871
12349         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12350
12351 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
12352
12353         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12354         fix overactive TYPE_MIN_VALUE check and add FIXME for type
12355         compatibility problems.
12356
12357 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
12358
12359         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12360         constraints.
12361         (cbranchsi4_reg): New.
12362         * config/microblaze/microblaze.c
12363         (microblaze_expand_conditional_branch_reg): New.
12364         * config/microblaze/microblaze-protos.h
12365         (microblaze_expand_conditional_branch_reg): New prototype.
12366
12367 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
12368
12369         * config/microblaze/microblaze.md (peephole2): New.
12370
12371 2015-05-04  Jeff Law  <law@redhat.com>
12372
12373         Revert:
12374         2015-05-04  Jeff Law  <law@redhat.com>
12375
12376         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12377         simplifier to narrow arithmetic.
12378         * generic-match-head.c: (types_match, single_use): New functions.
12379         * gimple-match-head.c: (types_match, single_use): New functions.
12380
12381 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12382
12383         PR target/65987
12384         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12385         (split_branches): Likewise.
12386
12387 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
12388
12389         * common.opt (fdelete-null-pointer-checks): Init to -1.
12390         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12391         override flag_delete_null_pointer_checks default.
12392         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12393         behavior re address zero.  Better document target-specific behavior.
12394         (-fisolate-errneous-paths-dereference): Mention relationship to
12395         -fdelete-null-pointer-checks.
12396
12397 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
12398
12399         PR tree-optimization/65984
12400         * ubsan.c: Include tree-cfg.h.
12401         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12402         stmt_could_throw_p test, rename can_throw variable to ends_bb.
12403
12404 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
12405
12406         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12407         to CONST_DOUBLE_P predicate.
12408         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12409         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12410         allow only operands that satisfy standard_sse_constant_p predicate.
12411         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12412         to CONST_DOUBLE_P predicate.
12413
12414 2015-05-04  Jeff Law  <law@redhat.com>
12415
12416         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12417         simplifier to narrow arithmetic.
12418         * generic-match-head.c: (types_match, single_use): New functions.
12419         * gimple-match-head.c: (types_match, single_use): New functions.
12420
12421 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
12422
12423         * config/arm/arm.c: Restore bootstrap.
12424
12425 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
12426
12427         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12428         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12429         as CONST_WIDE_INT, not CONST_DOUBLE.
12430         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12431         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12432         (ix86_find_base_term): Do not check for CONST_DOUBLE.
12433         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12434         (ix86_build_signbit_mask): Rewrite using wide ints.
12435         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12436         (ix86_rtx_costs): Handle CONST_WIDE_INT.
12437         (find_constant): Ditto.
12438         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12439         using gen_int_mode.
12440         * config/i386/predicates.md (x86_64_immediate_operand)
12441         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12442         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12443         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12444         (const0_operand): Also match const_wide_int.
12445         (constm1_operand): Ditto.
12446         (const1_operand): Ditto.
12447
12448 2015-05-04  Richard Biener  <rguenther@suse.de>
12449
12450         PR tree-optimization/65965
12451         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12452         store groups at gaps.
12453
12454 2015-05-04  Richard Biener  <rguenther@suse.de>
12455
12456         PR tree-optimization/65935
12457         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12458         then make sure to apply that swapping to the IL.
12459
12460 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
12461
12462         * Makefile.in (PATCHLEVEL_c): New variable.
12463         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12464         expand the same way as if DEVPHASE_c was non-empty.
12465
12466 2015-05-04  Kai Tietz  <ktietz@redhat.com>
12467
12468         PR target/65559
12469         * lto-wrapper.c (run_gcc): Open filename
12470         in binary-mode.
12471
12472 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
12473
12474         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
12475         sections up in file, to immediately after the Function Attributes
12476         section.
12477
12478 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
12479
12480         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12481
12482 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12483
12484         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12485         (insert_partition_copy_on_edge): Adjust.
12486         (insert_rtx_to_part_on_edge): Likewise.
12487         (insert_part_to_rtx_on_edge): Likewise.
12488
12489 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12490
12491         * function.c (set_return_jump_label): Change type of argument to
12492         rtx_insn *.
12493         * function.h (set_return_jump_label): Adjust.
12494
12495 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12496
12497         * reload.h (struct reg_equivs_t): Change type of init to
12498         rtx_insn *.
12499         * ira.c (fix_reg_equiv_init): Adjust.
12500         * reload1.c (eliminate_regs_1): Likewise.
12501         (init_eliminable_invariants): Likewise.
12502
12503 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12504
12505         * cselib.c (fp_setter_insn): Take a rtx_insn *.
12506         * cselib.h (fp_setter_insn): Adjust.
12507
12508 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12509
12510         * recog.c (struct validate_replace_src_data): Change type of
12511         insn field to rtx_insn *.
12512         (validate_replace_src_group): Change type of argument to rtx_insn *.
12513         * recog.h (validate_replace_src_group): Adjust.
12514
12515 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12516
12517         * haifa-sched.c: Change the type of some variables to rtx_insn *.
12518         * sched-deps.c: Likewise.
12519         * sched-int.h: Likewise.
12520         * sched-rgn.c: Likewise.
12521         * sel-sched.c: Likewise.
12522
12523 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12524
12525         to rtx_insn *.
12526         * config/i386/i386.c: Change the type of some arguments to
12527         rtx_insn *.
12528         * config/arm/arm.c: Likewise.
12529
12530 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12531
12532         * lra-constraints.c: Change type of some arguments to rtx_insn *.
12533
12534 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12535
12536         * regcprop.c (kill_autoinc_value): Change type of argument to
12537         rtx_insn *.
12538
12539 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12540
12541         * genrecog.c (print_subroutine): Adjust.
12542         * recog.c (get_bool_attr_mask_uncached): Likewise.
12543         * recog.h (struct recog_data_d): Change the type of insn to
12544         rtx_insn *.
12545
12546 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12547
12548         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12549
12550 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12551
12552         * df-problems.c (df_set_note): Change type of argument to
12553         rtx_insn *.
12554
12555 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12556
12557         * builtins.c (expand_builtin_trap): Change type of local
12558         variable to rtx_insn *.
12559         (add_sched_insns_for_speculation): Likewise.
12560         (ix86_emit_save_regs): Likewise.
12561         (get_scratch_register_on_entry): Likewise.
12562         (ix86_emit_restore_reg_using_pop): Likewise.
12563         (ix86_emit_leave): Likewise.
12564         (ix86_emit_restore_regs_using_mov): Likewise.
12565         (ix86_expand_epilogue): Likewise.
12566         Likewise.
12567         (rl78_alloc_physical_registers_umul): Likewise.
12568         * cselib.c (discard_useless_locs): Likewise.
12569         (cselib_invalidate_regno): Likewise.
12570         (cselib_invalidate_mem): Likewise.
12571         * function.c (expand_function_start): Likewise.
12572         (emit_use_return_register_into_block): Likewise.
12573         * gcse.c: Likewise.
12574         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12575         * ifcvt.c (noce_get_alt_condition): Likewise.
12576         * loop-doloop.c (doloop_condition_get): Likewise.
12577         * lra-constraints.c (inherit_in_ebb): Likewise.
12578         * modulo-sched.c (sms_schedule_by_order): Likewise.
12579         * recog.c (next_insn_tests_no_inequality): Likewise.
12580         * reorg.c (emit_delay_sequence): Likewise.
12581         (update_reg_dead_notes): Likewise.
12582         (fix_reg_dead_note): Likewise.
12583         (fill_slots_from_thread): Likewise.
12584         (delete_computation): Likewise.
12585
12586 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
12587
12588         * doc/extend.texi (Variable Attributes): Add menu and proper
12589         @nodes to subsections.  Move Microsoft Windows attributes to
12590         their own subsection.
12591         (Type Attributes): Reorganize introduction to remove duplicate
12592         list of attributes.  Add menu and proper @nodes to subsections.
12593         Alphabetize the main table of common attributes.
12594
12595 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12596
12597         * match.pd: New simplification patterns.
12598         (x + (x & 1))  -> ((x + 1) & ~1)
12599         (x & ~(x & y)) -> ((x & ~y))
12600         (x | ~(x | y)) -> ((x | ~y))
12601
12602 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12603
12604         * target.def (attribute_table): Mention that struct attribute_spec
12605         is defined in tree-core.h rather than tree.h
12606         * doc/tm.texi: Regenerate.
12607
12608 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
12609
12610         * genrecog.c (test): Rename to rtx_test.  Update rest of file
12611         accordingly.
12612
12613 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12614
12615         PR translation/65959
12616         * params.h (DEFPARAM): Rename msgid to nocmsgid.
12617
12618 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12619
12620         * gcc/config/aarch64/aarch64-protos.h (tune_params):
12621         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12622         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12623         Return value depending on target.
12624         (generic_tunings): Initialize new target settings.
12625         (cortexa53_tunings): Likewise.
12626         (cortexa57_tunings): Likewise.
12627         (thunderx_tunings): Likewise.
12628         (xgene1_tunings): Likewise.
12629
12630 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12631
12632         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12633         Make Cortex-A53 shift costs more accurate.
12634
12635 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12636
12637         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12638         UNSIGNED_FLOAT.
12639
12640 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12641
12642         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12643         Calculate cost of op0 and op1 in PLUS and MINUS cases.
12644
12645 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12646
12647         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12648         Add cost of op0 in the compare-with-fpzero case.
12649
12650 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
12651
12652         * builtins.c (fold_builtin_1): Remove spurious second
12653         semicolon.
12654         * cgraph.h (symtab_node::get_availability): Likewise.
12655         * opts.c (common_handle_option): Remove spurious second semicolon.
12656         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12657         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12658
12659 2015-04-30  Caroline Tice  <cmtice@google.com>
12660
12661         PR gcov-profile/65929
12662         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12663         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12664         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12665         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12666         * doc/tm.texi: Regenerate.
12667         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
12668         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12669         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
12670         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12671
12672 2015-04-30  Marek Polacek  <polacek@redhat.com>
12673
12674         * varasm.c (handle_cache_entry): Fix logic.
12675
12676 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12677
12678         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12679         (*extrsi5_insn_uxtw_alt): Likewise.
12680         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12681         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12682         operations.
12683
12684 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12685
12686         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12687         fabd in ABS case.
12688
12689 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12690
12691         * config/aarch64/aarch64.md
12692         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12693         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12694         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12695         appropriately.  Handle alternative EON form.
12696
12697 2015-04-30  Renlin Li  <renlin.li@arm.com>
12698
12699         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12700         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12701
12702 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12703
12704         PR ipa/65873
12705         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12706         -fstrict-aliasing boundaries.
12707
12708 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12709
12710         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12711         and [SU]MNEGL patterns.
12712
12713 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12714
12715         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12716         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12717         combined arithmetic-shift ops.  Properly handle all shift and extend
12718         operations that can occur in combination with PLUS/MINUS.
12719         Rename maybe_fma to compound_p.
12720         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12721         arithmetic and shift operations.
12722
12723 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12724
12725         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12726         rather than arith_shift cost when costing ADD/MINUS of an
12727         extended value.
12728
12729 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12730
12731         PR lto/65948
12732         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12733         to itself.
12734
12735 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
12736
12737         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12738         are for the same position.
12739
12740 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
12741
12742         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
12743         vectorize_loops.
12744         (vectorize_loops): Use it.
12745
12746 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12747
12748         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12749         for aggregate types.
12750         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12751         type to be non_ODR.
12752         * tree.c (need_assembler_name_p): Compute mangled name for
12753         non-fundamental types and integer types.
12754
12755 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
12756
12757         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12758         manual swaps.
12759         * expr.c (expand_expr_real_2): Likewise.
12760
12761 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12762
12763         * tree.c (build_common_builtin_nodes): Do not build
12764         __builtin_alloca_with_align as equivalent of library alloca.
12765
12766 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12767
12768         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12769         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12770         bugus variants.
12771         * tree.c: Include print-tree.h and ipa-utils.h
12772         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12773         (free_lang_data_in_cgraph): Call verify_type.
12774         (verify_type_variant): New function.
12775         (verify_type): New function.
12776         * tree.h (verify_type): Declare.
12777
12778 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
12779
12780         * config/mips/mips-cpus.def: (mips4): Change default processor
12781         from PROCESSOR_R8000 to PROCESSOR_R10000.
12782
12783 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12784
12785         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12786         la/jalr instead of jal.
12787
12788 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
12789
12790         PR target/65871
12791         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12792         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12793         (setcc+movzbl peephole2): Check also clobbered reg.
12794         (setcc+andl peephole2): Ditto.
12795
12796 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12797
12798         PR libgomp/65099
12799         * config/nvptx/mkoffload.c (target_ilp32): New variable.
12800         (main): Set it depending on "-foffload-abi=[...]".
12801         (compile_native, main): Use it to pass "-m32" or "-m64" to the
12802         compiler.
12803
12804 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12805
12806         PR target/65770
12807         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12808         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12809         Flip lane index back at assembly time for bigendian.
12810
12811 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12812
12813         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12814         * gimplify.c (gimplify_omp_workshare): Use it.
12815
12816 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12817
12818         * Makefile.in (build/genrecog.o): Depend on inchash.h.
12819         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12820         build/inchash.o
12821         * genrecog.c: Rewrite most of the code except for the third page.
12822
12823 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12824
12825         * inchash.h, inchash.c: Include bconfig.h for build objects.
12826         * Makefile.in (build/inchash.o): New rule.
12827
12828 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
12829
12830         PR target/65924
12831         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12832         number in type attribute expression.
12833
12834 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12835
12836         * loop-iv.c (canon_condition): Generalize to all types of integer
12837         constant.
12838
12839 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
12840
12841         * gimple-walk.c: Prune duplicate or unneeded includes.
12842         (walk_gimple_asm): Only call parse_input_constraint or
12843         parse_output_constraint if their findings are used.
12844         Honour parse_input_constraint and parse_output_constraint
12845         result.
12846
12847 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12848
12849         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12850
12851 2015-04-29  Tom de Vries  <tom@codesourcery.com>
12852
12853         PR tree-optimization/65893
12854         * passes.def (pass_all_optimizations): Move pass_stdarg to after
12855         pass_dce.
12856
12857 2015-04-29  Richard Biener  <rguenther@suse.de>
12858
12859         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12860         compute GROUP_SIZE for basic-block SLP.
12861         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12862         take into account gaps.
12863         (vect_get_mask_element): Properly reject references to previous
12864         vectors.
12865         (vect_transform_slp_perm_load): Likewise.
12866
12867 2015-04-29  Christian Bruel  <christian.bruel@st.com>
12868
12869         PR target/64835
12870         * config/i386/i386.c (ix86_default_align): New function.
12871         (ix86_override_options_after_change): Call ix86_default_align.
12872         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12873         (ix86_override_options_after_change): New function.
12874
12875 2015-04-28  Jeff Law  <law@redhat.com>
12876
12877         * tree-ssa-dom.c (record_equality); Fix comment typos.
12878
12879 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12880
12881         PR tree-optimization/65887
12882         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12883
12884 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
12885
12886         * doc/extend.texi (Declaring Attributes of Functions): Split into
12887         subsections by target.  Alphabetize the table of common attributes.
12888         Rewrite some of the introductory text to reflect the new structure.
12889         Update some cross-references to point to the new subsections.
12890         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
12891         duplicate copies in the discussion of function, label, and type
12892         attributes.
12893
12894 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
12895
12896         PR bootstrap/65910
12897         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12898
12899 2015-04-28  Jason Merrill  <jason@redhat.com>
12900
12901         PR c++/65734
12902         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12903         (finalize_type_size): Respect TYPE_USER_ALIGN.
12904         (layout_type) [ARRAY_TYPE]: Likewise.
12905
12906 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
12907
12908         * config/arm/arm.md (*arm_movt): Fix type attribute.
12909         (*cmpsi_shiftsi): Likewise.
12910         (*cmpsi_shiftsi_swp): Likewise.
12911         (*movsicc_insn): Likewise.
12912         (*cond_move): Likewise.
12913         (*if_plus_move): Likewise.
12914         (*if_move_plus): Likewise.
12915         (*if_arith_move): Likewise.
12916         (*if_move_arith): Likewise.
12917         (*if_shift_move): Likewise.
12918         (*if_move_shift): Likewise.
12919         (*arm_movtas_ze): Likewise.
12920         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12921         redundancy and type attribute.
12922         (*thumb2_movsi_insn): Fix type attribute.
12923         (*thumb2_addsi_short): Likewise.
12924         (thumb2_addsi3_compare0): Likewise.
12925         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12926         attributes accordingly.
12927
12928 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
12929
12930         PR other/65911
12931         * function.c (pad_to_arg_alignment): Add parentheses.
12932
12933 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
12934
12935         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12936         libgcc/config/frv/elf-lib.h.
12937
12938 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12939
12940         * tree-call-cdce.c: Fix example in header comment.
12941
12942 2015-04-28  Richard Biener  <rguenther@suse.de>
12943
12944         PR tree-optimization/62283
12945         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12946         fails fatally and we are vectorizing a basic-block simply
12947         cause the child to be constructed piecewise.
12948         (vect_analyze_slp_cost_1): Adjust.
12949         (vect_detect_hybrid_slp_stmts): Likewise.
12950         (vect_bb_slp_scalar_cost): Likewise.
12951         (vect_get_constant_vectors): For piecewise constructed
12952         constants place them after the last def.
12953         (vect_get_slp_defs): Adjust.
12954         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12955         externals for basic-block vectorization.
12956
12957 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12958
12959         PR target/63503
12960         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12961         aarch64-*-*.
12962         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12963         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12964         (AARCH64_TUNE_FMA_STEERING): Likewise.
12965         * config/aarch64/aarch64-cores.def: Set
12966         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12967         FMUL/FMADD instructions.
12968         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12969         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
12970         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12971         * config/aarch64/cortex-a57-fma-steering.h: New file.
12972         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12973
12974 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
12975
12976         * gensupport.c (std_preds): Add missing codes to address_operand entry.
12977
12978 2015-04-28  Richard Biener  <rguenther@suse.de>
12979
12980         PR tree-optimization/65851
12981         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12982         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
12983         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
12984         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12985         (ccp_visit_phi_node): Adjust.
12986         (evaluate_stmt): For simplifications to SSA names return its
12987         lattice value if that isn't VARYING.  Return immediately when
12988         simplified to a constant.
12989         (visit_assignment): Adjust.
12990         (ccp_visit_stmt): Likewise.
12991
12992 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12993
12994         PR tree-optimization/65818
12995         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12996         evaluated.
12997
12998 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12999
13000         * calls.c (save_fixed_argument_area): Don't check
13001         ARGS_GROW_DOWNWARD with the preprocessor.
13002         (restore_fixed_argument_area): Likewise.
13003         (mem_overlaps_already_clobbered_arg_p): Likewise.
13004         (check_sibcall_argument_overlap): Likewise.
13005         (expand_call): Likewise.
13006         (emit_library_call_value_1): Likewise.
13007         (store_one_arg): Likewise.
13008         * function.c (assign_parms): Likewise.
13009         (locate_and_pad_parm): Likewise.
13010         (pad_to_arg_alignment): Likewise.
13011         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13012
13013 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13014
13015         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
13016         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
13017         * calls.c (save_fixed_argument_area): Don't chekc if
13018         ARGS_GROW_DOWNWARD is defined.
13019         (restore_fixed_argument_area): Likewise.
13020         (mem_overlaps_already_clobbered_arg_p): Likewise.
13021         (check_sibcall_argument_overlap): Likewise.
13022         (expand_call): Likewise.
13023         (emit_library_call_value_1): Likewise.
13024         (store_one_arg): Likewise.
13025         * function.c (assign_parms): Likewise.
13026         (locate_and_pad_parm): Likewise.
13027         (pad_to_arg_alignment): Likewise.
13028         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13029
13030 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13031
13032         * defaults.h (gen_epilogue): New function.
13033         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13034         defined.
13035         * cfgrtl.c (cfg_layout_finalize): Likewise.
13036         * df-scan.c: Likewise.
13037         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13038         (reposition_prologue_and_epilogue_notes): Likewise.
13039         * reorg.c (find_end_label): Likewise.
13040         * toplev.c: Likewise.
13041
13042 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13043
13044         * bb-reorder.c (HAVE_return): Don't check if its undefined.
13045         * defaults.h (gen_simple_return): New function.
13046         (gen_simple_return): Likewise.
13047         (HAVE_return): Add default definition to false.
13048         (HAVE_simple_return): Likewise.
13049         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13050         HAVE_return and HAVE_simple_return are defined.
13051         * function.c (gen_return_pattern): Likewise.
13052         (convert_jumps_to_returns): Likewise.
13053         (thread_prologue_and_epilogue_insns): Likewise.
13054         * reorg.c (find_end_label): Likewise.
13055         (dbr_schedule): Likewise.
13056         * shrink-wrap.c: Likewise.
13057         * shrink-wrap.h: Likewise.
13058
13059 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13060
13061         * defaults.h (EPILOGUE_USES): Add default definition of false.
13062         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13063         * resource.c (init_resource_info): Likewise.
13064
13065 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13066
13067         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13068         to false.
13069         * dwarf2out.c (field_byte_offset): REmove check if
13070         PCC_BITFIELD_TYPE_MATTERS is defined.
13071         * stor-layout.c (layout_decl): Likewise.
13072         (update_alignment_for_field): Likewise.
13073         (place_field): Likewise.
13074
13075 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13076
13077         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13078         true.
13079         * regrename.c (check_new_reg_p): Remove check if
13080         HARD_REGNO_RENAME_OK is defined.
13081         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13082
13083 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13084
13085         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13086         * cse.c (fold_rtx): Likewise.
13087         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13088         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13089         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13090         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13091         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13092         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13093         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13094         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13095         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13096         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13097         * Likewise.
13098         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13099         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13100         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13101         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13102         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13103         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13104         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13105         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13106         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13107         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13108         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13109         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13110         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13111         * doc/tm.texi: Regenerate.
13112         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13113         either true or false.
13114
13115 2015-04-27  Jeff Law  <law@redhat.com>
13116
13117         PR tree-optimization/65217
13118         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13119         of them has a single use, make sure it is the LHS of the implied
13120         copy.
13121
13122 2015-04-28  Alan Modra  <amodra@gmail.com>
13123
13124         PR target/65810
13125         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13126         (offsettable_ok_by_alignment): Use minimum of decl and toc
13127         pointer alignment.  Replace dead code with assertion.
13128         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
13129         case if size exceeds toc pointer alignment.
13130         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13131         (rs6000_emit_move): Likewise.
13132         * configure.ac: Add linker toc pointer alignment check.
13133         * configure: Regenerate.
13134         * config.in: Regenerate.
13135
13136 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
13137
13138         * config.gcc: Add h8300-*-linux.
13139         * config/h8300/linux.h: New.
13140         * config/h8300/t-linux: New.
13141         * config/h8300/h8300.c (h8300_option_override): Normal mode
13142         is not supported for h8300-*-linux.
13143         (h8300_file_start): Target priority change.
13144         (get_shift_alg): Likewise.
13145         (h8300_shift_need_scratch_p): Likewise.
13146         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13147         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13148
13149 2015-04-27  Caroline Tice  <cmtice@google.com>
13150
13151         * final.c (final_scan_insn):  Output cold_function_name as function
13152         type.
13153         * varasm.c (cold_function_name):  Make global.
13154         (assemble_start_function):  Re-set cold_function_name.
13155         (assemble_end_function): Output cold partition size.
13156         * varasm.h (cold_function_name):  Declare global.
13157
13158 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
13159
13160         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13161         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13162         constraint.
13163         (*movxi_internal_avx512f): Ditto.
13164         (define_split): Check for xmm16+, when splitting scalar float_extend.
13165         (*extendsfdf2_mixed): Use "v" constraint.
13166         (define_split): Check for xmm16+, when splitting scalar float_truncate.
13167         (*truncdfsf_fast_sse): Use "v" constraint.
13168         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13169         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13170         (define_peephole2): Check for xmm16+, when converting scalar
13171         float_truncate.
13172         (define_peephole2): Check for xmm16+, when converting scalar
13173         float_extend.
13174         (*fop_<mode>_comm_mixed): Use "v" constraint.
13175         (*fop_<mode>_comm_sse): Ditto.
13176         (*fop_<mode>_1_mixed): Ditto.
13177         (*sqrt<mode>2_sse): Ditto.
13178         (*ieee_s<ieee_maxmin><mode>3): Ditto.
13179
13180 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13181
13182         * combine.c (simplify_if_then_else): Use std::swap instead
13183         of manually swapping.
13184         (known_cond): Likewise.
13185         (simplify_comparison): Likewise.
13186
13187 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
13188
13189         PR target/64579
13190         * config/rs6000/htm.md: Remove all define_expands.
13191         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13192         UNSPECV_HTM_TABORTWCI): Remove.
13193         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13194         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13195         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13196         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13197         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13198         tabortwci_internal): Remove define_insns.
13199         (tabort<wd>c, tabort<wd>ci): New define_insns.
13200         (tabort): Use gpc_reg_operand.
13201         (tcheck): Remove operand.
13202         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13203         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13204         expected value.
13205         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13206         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
13207         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13208         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13209         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13210         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13211         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13212         (tcheck): Remove builtin argument.
13213         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13214         not TARGET_64BIT.
13215         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
13216         tabortdc and tabortdci builtins when not in 64-bit mode.
13217         Modify code to handle the loss of the HTM define_expands.
13218         Emit code to copy the CR register to TARGET.
13219         (htm_init_builtins): Modify code to handle the loss of the HTM
13220         define_expands.
13221         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13222         (RS6000_BTC_64BIT): Likewise.
13223         (RS6000_BTC_CR): New macro.
13224         * doc/extend.texi: Update documentation for htm builtins.
13225
13226 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13227
13228         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13229         of manually swapping.
13230         (simplify_associative_operation): Likewise.
13231         (simplify_binary_operation): Likewise.
13232         (simplify_plus_minus): Likewise.
13233         (simplify_relational_operation): Likewise.
13234         (simplify_ternary_operation): Likewise.
13235
13236 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13237
13238         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13239         (xs_hi_nonmemory_operand): Remove error.
13240         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13241         general_operand rather than xs_hi_general_operand.
13242
13243 2015-04-27  Richard Biener  <rguenther@suse.de>
13244
13245         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13246         (record_equivalences_from_stmt): Valueize rhs.
13247         (record_equality): Canonicalize x and y order via
13248         tree_swap_operands_p.  Do not swap operands for same loop depth.
13249
13250 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
13251
13252         PR target/65296
13253         PR target/65895
13254         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13255         Add hint how to use own spec file.
13256
13257 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
13258
13259         PR tree-optimization/65875
13260         * tree-vrp.c (update_value_range): If in is_new case setting
13261         old_vr to VR_VARYING, also set new_vr to it.  Remove
13262         old_vr->type == VR_VARYING test.
13263         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13264         SSA_PROP_INTERESTING if update_value_range returned true,
13265         but new range is VR_VARYING.
13266
13267 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13268
13269         * combine.c (sign_extend_short_imm): New.
13270         (set_nonzero_bits_and_sign_copies): Use above new function for sign
13271         extension of src short immediate.
13272         (reg_nonzero_bits_for_combine): Likewise for tem.
13273
13274 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13275
13276         * stor-layout.c (self_referential_component_ref_p): New predicate.
13277         (copy_self_referential_tree_r): Use it.
13278         (self_referential_size): Punt for simple operations directly involving
13279         self-referential component references.
13280         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13281
13282 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13283
13284         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13285
13286 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13287
13288         * vec.h (vec): Make splice arguments const.  Update definitions
13289         accordingly.
13290
13291 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
13292
13293         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13294         alternatives.
13295
13296 2015-04-26  Tom de Vries  <tom@codesourcery.com>
13297
13298         PR tree-optimization/65826
13299         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13300
13301 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
13302
13303         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13304         (*madd3<mode>): Ditto.
13305         (*msub4<mode>): Ditto.
13306         (*msub3<mode>): Ditto.
13307         (*nmadd4<mode>): Ditto.
13308         (*nmadd3<mode>): Ditto.
13309         (*nmadd4<mode>_fastmath): Ditto.
13310         (*nmadd3<mode>_fastmath): Ditto.
13311         (*nmsub4<mode>): Ditto.
13312         (*nmsub3<mode>): Ditto.
13313         (*nmsub4<mode>_fastmath): Ditto.
13314         (*nmsub3<mode>_fastmath): Ditto.
13315
13316 2015-04-24  Jason Merrill  <jason@redhat.com>
13317
13318         PR c++/50800
13319         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13320         down when building TYPE_CANONICAL.
13321         (build_pointer_type_for_mode): Likewise.
13322
13323 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
13324
13325         * genrecog.c (validate_pattern): Check matching constraint refers
13326         to a lower numbered operand.
13327
13328 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13329
13330         PR target/65849
13331         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13332         save to independent variables use the Save attribute.  This will
13333         allow these options to be modified with the #pragma/attribute
13334         target support.
13335         (-mallow-movmisalign): Likewise.
13336         (-mallow-df-permute): Likewise.
13337         (-msched-groups): Likewise.
13338         (-malways-hint): Likewise.
13339         (-malign-branch-targets): Likewise.
13340         (-mvectorize-builtins): Likewise.
13341         (-msave-toc-indirect): Likewise.
13342
13343         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13344         can be set via the #pragma/attribute target support.
13345         (rs6000_opt_vars): Likewise.
13346         (rs6000_inner_target_options): If VSX was set, also set
13347         -mno-avoid-indexed-addresses.
13348
13349 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13350
13351         * config/arm/iterators.md (shiftable_ops): Rename to...
13352         (SHIFTABLE_OPS): ... This.  Update use in comments.
13353         (ior_xor): Rename to...
13354         (IOR_XOR): ... This.
13355         (vqh_ops): Rename to...
13356         (VQH_OPS): ... This.
13357         (vqhs_ops): Rename to...
13358         (VQHS_OPS): ... This.
13359         (rshifts): Rename to...
13360         (RSHIFTS): ... This.
13361         (returns): Rename to...
13362         (RETURNS): ... This.
13363         * config/arm/arm.md: Update uses of the above.
13364         * config/arm/neon.md: Likewise.
13365
13366 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13367
13368         * config.host (case ${host}): Add aarch64*-*-linux case.
13369         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13370         fields to all the cores.
13371         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13372         Add MCPU_MTUNE_NATIVE_SPECS.
13373         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13374         field to all extensions.
13375         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13376         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13377         Adjust definition of AARCH64_OPT_EXTENSION.
13378         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13379         (MCPU_MTUNE_NATIVE_SPECS): Define.
13380         * config/aarch64/driver-aarch64.c: New file.
13381         * config/aarch64/x-arch64: New file.
13382         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13383         -mtune and -march.
13384
13385 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13386             Wei Mi  <wmi@google.com>
13387
13388         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13389         * config/i386/i386.c (extract_base_offset_in_addr): New function.
13390         (ix86_operands_ok_for_move_multiple): Ditto.
13391         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13392         (movlpd/movhpd to movupd peephole2): Ditto.
13393
13394 2015-04-24  Marek Polacek  <polacek@redhat.com>
13395
13396         PR c/61534
13397         * input.h (from_macro_expansion_at): Define.
13398
13399         PR c/63357
13400         * doc/invoke.texi: Update description of -Wlogical-op.
13401
13402 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13403
13404         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13405         ternary operator in fprintf and harmonize spacing.
13406
13407 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13408
13409         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13410         Mark operand1 commutative.
13411
13412 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13413
13414         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13415         input operands in memory.
13416         (*vec_concatv2si_sse4_1): Ditto.
13417         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13418         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13419         register_operand.
13420         (vec_extract_hi_v32hi): Ditto.
13421         (vec_extract_hi_v64hi): Ditto.
13422         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13423
13424 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13425             Steven Bosscher <steven@gcc.gnu.org>
13426
13427         PR rtl-optimization/34503
13428         * cprop.c (cprop_reg_p): New.
13429         (hash_scan_set): Use above function to check if register can be
13430         propagated.
13431         (find_avail_set): Return up to two sets, one whose source is a
13432         register and one whose source is a constant.  Sets are returned in an
13433         array passed as parameter rather than as a return value.
13434         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
13435         sets returned by find_avail_set, starting with the one whose source is
13436         a constant. Use cprop_reg_p to check if register can be propagated.
13437         (do_local_cprop): Use cprop_reg_p to check if register can be
13438         propagated.
13439         (implicit_set_cond_p): Likewise.
13440
13441 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13442
13443         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13444         (sem_function::equals): IGNORED_NODES parameter is now unused;
13445         update call of equals_private.
13446         (sem_function::equals_private): Do not call equals_wpa; skip
13447         gimple body matching if there is no body.
13448         (sem_function::init): Add logic to hash tthunk info.
13449         (sem_function::parse): Also parse thunks.
13450         * ipa-icf.h (equals_private): Update declaration.
13451
13452 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13453
13454         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13455         asterisk from name so this can be generated directly.
13456         (*altivec_stvx_<mode>_internal): Likewise.
13457         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13458         that this is never called during or after reload/lra.
13459         (rs6000_frame_related): Remove split_reg
13460         argument and logic that references it.
13461         (emit_frame_save): Remove last parameter from call to
13462         rs6000_frame_related.
13463         (rs6000_emit_prologue): Remove last parameter from eight calls to
13464         rs6000_frame_related.  Force generation of stvx instruction for
13465         Altivec register saves.  Remove split_reg handling, which is no
13466         longer needed.
13467         (rs6000_emit_epilogue):  Force generation of lvx instruction for
13468         Altivec register restores.
13469
13470 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13471
13472         * config/rs6000/rs6000.opt (mcrypto): Change option description to
13473         match category changes in ISA 2.07B.
13474
13475 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13476
13477         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13478         iterators.
13479         (cmp_op, cmp_type): New code attributes.
13480         (NEON_VCMP, NEON_VACMP): New int iterators.
13481         (cmp_op_unsp): New int attribute.
13482         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13483         (neon_vceq<mode>): Delete.
13484         (neon_vc<cmp_op><mode>_insn): New pattern.
13485         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13486         (neon_vcgeu<mode>): Delete.
13487         (neon_vcle<mode>): Likewise.
13488         (neon_vclt<mode>: Likewise.
13489         (neon_vcage<mode>): Likewise.
13490         (neon_vcagt<mode>): Likewise.
13491         (neon_vca<cmp_op><mode>): New define_expand.
13492         (neon_vca<cmp_op><mode>_insn): New pattern.
13493         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13494
13495 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13496
13497         * tree.h (attribute_value_equal): Declare.
13498         * tree.c (attribute_value_equal): Export.
13499
13500 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13501
13502         * ipa-icf.c (sem_item::compare_attributes): New function.
13503         (sem_item::compare_referenced_symbol_properties): Compare variable
13504         attributes.
13505         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13506         (sem_function::param_used_p): New function.
13507         (sem_function::equals_wpa): Fix attribute comparsion; match
13508         parameter type codes; do not compare paremter flags when
13509         they are not used; compare edge flags; compare indirect calls.
13510         (sem_item::update_hash_by_addr_refs): Hash reference type.
13511         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13512         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13513         reference use type.
13514         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13515         * ipa-icf.h (compare_attributes, param_used_p): Declare.
13516
13517 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13518
13519         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13520         cleanup.
13521         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13522         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13523         (sem_item::compare_referenced_symbol_properties): New.
13524         (sem_item::hash_referenced_symbol_properties): New.
13525         (sem_item::compare_cgraph_references): Rename to ...
13526         (sem_item::compare_symbol_references): ... this one; use
13527         compare_referenced_symbol_properties.
13528         (sem_function::equals_wpa): Do not compare
13529         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13530         DECL_IS_OPERATOR_NEW; compare pointer sizes.
13531         (sem_item::update_hash_by_addr_refs): Call
13532         hash_referenced_symbol_properties.
13533         (sem_item::update_hash_by_local_refs): Cleanup.
13534         (sem_function::merge): Do not mix up symbol properties.
13535         (sem_variable::equals_wpa): Use compare_symbol_references.
13536         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13537         (sem_item::hash_referenced_symbol_properties): New.
13538         (sem_item::compare_symbol_references): New.
13539         (sem_item::compare_cgraph_references): Remove.
13540
13541 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
13542
13543         PR target/26702
13544         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13545         Emit size of local.
13546
13547 2015-04-23  Nick Clifton  <nickc@redhat.com>
13548
13549         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13550         ATTRIBUTE_UNUSED to x parameter.
13551         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13552
13553 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13554
13555         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13556         TARGET_CRYPTO to TARGET_P8_VECTOR>
13557         (crypto_vpermxor_<mode>): Likewise.
13558         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13559         (BU_CRYPTO_3A): Likewise.
13560         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13561         (BU_CRYPTO_OVERLOAD_3A): New #define.
13562         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13563         (VPMSUMH): Likewise.
13564         (VPMSUMW): Likewise.
13565         (VPMSUMD): Likewise.
13566         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13567         (VPERMXOR_V4SI): Likewise.
13568         (VPERMXOR_V8HI): Likewise.
13569         (VPERMXOR_V16QI): Likewise.
13570         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13571         BU_CRYPTO_OVERLOAD_2A.
13572         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13573         BU_CRYPTO_OVERLOAD_3A.
13574         * config/rs6000/rs6000.opt (mcrypto): Change description of
13575         option.
13576
13577 2015-04-23  Richard Biener  <rguenther@suse.de>
13578
13579         * passes.def: Remove copy propagation passes run directly after CCP.
13580         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13581         SSA names.
13582         (ccp_visit_phi_node): Rework to handle first executable edge
13583         specially.
13584
13585 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
13586
13587         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13588         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13589         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13590         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13591         (thumb_legimitimize_reload_address): Remove.
13592         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13593         Remove.
13594         (thumb_legimitimize_reload_address): Remove.
13595
13596 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13597
13598         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13599
13600 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13601
13602         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13603         MAX_LDM_STM_OPS.
13604         (store_multiple): Likewise.
13605
13606 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13607
13608         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13609         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13610         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13611         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13612         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13613         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13614         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13615         Specify issue_rate value.
13616         (arm_issue_rate): Look up issue rate from tuning structs. Remove
13617         large switch statement.
13618         (arm_marvell_pj4_tune): New struct.
13619         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13620         struct.
13621
13622 2015-04-23  Richard Biener  <rguenther@suse.de>
13623
13624         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13625         (vect_find_last_store_in_slp_instance): Rename to ...
13626         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13627         (vect_analyze_slp_cost_1): Use vector_load for constant defs
13628         and vec_construct for external defs when estimating prologue cost.
13629         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13630         Compute costs here only when vectorizing loops.
13631         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13632         have been determined.
13633         (vect_schedule_slp_instance): Simplify vectorized code placement
13634         and prepare for in-BB external defs.
13635         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13636         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13637         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13638         guard.
13639         (vect_model_load_cost): Likewise.
13640         (vectorizable_store): Instead add it here.
13641         (vectorizable_load): Likewise.
13642         (vect_is_simple_use): Dump def type textually.
13643
13644 2015-04-23  Richard Biener  <rguenther@suse.de>
13645
13646         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13647         * cfgloop.c (verify_loop_structure): Verify the root loop node.
13648         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13649         instead of get_eh_region_from_lp_number.
13650         * loop-init.c (fix_loop_structure): If we removed a loop, reset
13651         the SCEV cache.
13652
13653 2015-04-23  Anton Blanchard  <anton@samba.org>
13654
13655         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13656         need for -mprofile-kernel to save LR to stack.
13657
13658 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13659
13660         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13661         adjustments.
13662         (insn_is_swappable_p): Return 1 for a convert from double to
13663         single precision when all of its uses are splats of BE element
13664         zero.
13665
13666 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13667
13668         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13669
13670 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13671
13672         PR target/65456
13673         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
13674         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13675         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13676         option.
13677         (rs6000_builtin_mask_for_load): Return 0 for targets with
13678         efficient unaligned VSX accesses so that the vectorizer will use
13679         direct unaligned loads.
13680         (rs6000_builtin_support_vector_misalignment): Always return true
13681         for targets with efficient unaligned VSX accesses.
13682         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13683         stores on targets with efficient unaligned VSX accesses is almost
13684         always the same as the cost of an aligned load or store, so model
13685         it that way.
13686         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13687         unaligned vectors if we have efficient unaligned VSX accesses.
13688         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13689         undocumented option.
13690
13691 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13692
13693         Revert:
13694         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13695
13696         * config.gcc (LIBC_MUSL): New tm_defines macro.
13697         * config/linux.h (OPTION_MUSL): Define.
13698         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13699         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13700         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13701
13702         * config/linux.opt (mmusl): New option.
13703         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13704         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13705
13706         * configure: Regenerate.
13707
13708 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13709
13710         * config.gcc (LIBC_MUSL): New tm_defines macro.
13711         * config/linux.h (OPTION_MUSL): Define.
13712         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13713         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13714         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13715
13716         * config/linux.opt (mmusl): New option.
13717         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13718         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13719
13720         * configure: Regenerate.
13721
13722 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
13723
13724         * doc/invoke.texi (-fsanitize-sections): Update description.
13725         * asan.c (set_sanitized_sections): Parse incoming arg.
13726         (section_sanitized_p): Support wildcards.
13727
13728 2015-04-22  Tom de Vries  <tom@codesourcery.com>
13729
13730         PR tree-optimization/65823
13731         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13732         equality between ap_copy and ap.
13733
13734 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13735
13736         PR target/47098
13737         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13738
13739 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13740
13741         PR target/47122
13742         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13743
13744 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13745
13746         PR target/55144
13747         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13748         remove already contained t-files.
13749
13750 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13751
13752         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13753         Remove unneeded forward declarations.
13754         (suitable_for_tail_call_opt_p): Commentary typo fix.
13755
13756 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13757
13758         * varasm.c (emit_bss): Remove redundant guard.
13759
13760 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13761
13762         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13763
13764 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13765
13766         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13767
13768 2015-04-22  Hale Wang  <hale.wang@arm.com>
13769             Terry Guo  <terry.guo@arm.com>
13770
13771         PR rtl-optimization/64818
13772         * combine.c (can_combine_p): Don't combine user-specified
13773         register if it is in an asm input.
13774
13775 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
13776
13777         PR ipa/65076
13778         * passes.def (early_optimizations): Add pass_dse.
13779
13780 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13781
13782         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13783         * reorg.c (redundant_insn): Remove ifdef
13784         INSN_REFERENCES_ARE_DELAYED.
13785         * resource.c (mark_referenced_resources): Likewise.
13786
13787 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13788
13789         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13790         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13791         * resource.c (mark_set_resources): Likewise.
13792
13793 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13794
13795         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13796         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13797         (flow_find_head_matching_sequence): Likewise.
13798         (try_head_merge_bb): Likewise.
13799         * combine.c (can_combine_p): Likewise.
13800         (try_combine): Likewise.
13801         (distribute_notes): Likewise.
13802         * df-problems.c (can_move_insns_across): Likewise.
13803         * final.c (final): Likewise.
13804         * gcse.c (insert_insn_end_basic_block): Likewise.
13805         * ira.c (find_moveable_pseudos): Likewise.
13806         * reorg.c (try_merge_delay_insns): Likewise.
13807         (fill_simple_delay_slots): Likewise.
13808         (fill_slots_from_thread): Likewise.
13809         * sched-deps.c (sched_analyze_2): Likewise.
13810
13811 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13812
13813         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13814         PIC_OFFSET_TABLE_REGNUM.
13815
13816 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13817
13818         * alias.c (init_alias_target): Remove ifdef
13819         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13820         * df-scan.c (df_insn_refs_collect): Likewise.
13821         (df_get_regular_block_artificial_uses): Likewise.
13822         (df_get_eh_block_artificial_uses): Likewise.
13823         (df_get_entry_block_def_set): Likewise.
13824         (df_get_exit_block_use_set): Likewise.
13825         * emit-rtl.c (gen_rtx_REG): Likewise.
13826         * ira.c (ira_setup_eliminable_regset): Likewise.
13827         * reginfo.c (init_reg_sets_1): Likewise.
13828         * regrename.c (rename_chains): Likewise.
13829         * reload1.c (reload): Likewise.
13830         (eliminate_regs_in_insn): Likewise.
13831         * resource.c (mark_referenced_resources): Likewise.
13832         (init_resource_info): Likewise.
13833
13834 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13835
13836         * defaults.h (MASK_RETURN_ADDR): New definition.
13837         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13838         MASK_RETURN_ADDR.
13839
13840 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13841
13842         * defaults.h (RETURN_ADDR_OFFSET): New definition.
13843         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13844         RETURN_ADDR_OFFSET.
13845         (expand_builtin_frob_return_addr): Likewise.
13846
13847 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13848
13849         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13850         (try_redirect_by_replacing_jump): Likewise.
13851         (rtl_tidy_fallthru_edge): Likewise.
13852         * combine.c (insn_a_feeds_b): Likewise.
13853         (find_split_point): Likewise.
13854         (simplify_set): Likewise.
13855         * cprop.c (cprop_jump): Likewise.
13856         * cse.c (cse_extended_basic_block): Likewise.
13857         * df-problems.c (can_move_insns_across): Likewise.
13858         * function.c (emit_use_return_register_into_block): Likewise.
13859         * haifa-sched.c (sched_init): Likewise.
13860         * ira.c (find_moveable_pseudos): Likewise.
13861         * loop-invariant.c (find_invariant_insn): Likewise.
13862         * lra-constraints.c (curr_insn_transform): Likewise.
13863         * postreload.c (reload_combine_recognize_const_pattern):
13864         * Likewise.
13865         * reload.c (find_reloads): Likewise.
13866         * reorg.c (delete_scheduled_jump): Likewise.
13867         (steal_delay_list_from_target): Likewise.
13868         (steal_delay_list_from_fallthrough): Likewise.
13869         (redundant_insn): Likewise.
13870         (fill_simple_delay_slots): Likewise.
13871         (fill_slots_from_thread): Likewise.
13872         (delete_computation): Likewise.
13873         * sched-rgn.c (add_branch_dependences): Likewise.
13874
13875 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13876
13877         * genconfig.c (main): Always define HAVE_cc0.
13878         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13879         HAVE_cc0.
13880         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13881         (flow_find_head_matching_sequence): Likewise.
13882         (try_head_merge_bb): Likewise.
13883         * cfgrtl.c (rtl_merge_blocks): Likewise.
13884         (try_redirect_by_replacing_jump): Likewise.
13885         (rtl_tidy_fallthru_edge): Likewise.
13886         * combine.c (do_SUBST_MODE): Likewise.
13887         (insn_a_feeds_b): Likewise.
13888         (combine_instructions): Likewise.
13889         (can_combine_p): Likewise.
13890         (try_combine): Likewise.
13891         (find_split_point): Likewise.
13892         (subst): Likewise.
13893         (simplify_set): Likewise.
13894         (distribute_notes): Likewise.
13895         * cprop.c (cprop_jump): Likewise.
13896         * cse.c (cse_extended_basic_block): Likewise.
13897         * df-problems.c (can_move_insns_across): Likewise.
13898         * final.c (final): Likewise.
13899         (final_scan_insn): Likewise.
13900         * function.c (emit_use_return_register_into_block): Likewise.
13901         * gcse.c (insert_insn_end_basic_block): Likewise.
13902         * haifa-sched.c (sched_init): Likewise.
13903         * ira.c (find_moveable_pseudos): Likewise.
13904         * loop-invariant.c (find_invariant_insn): Likewise.
13905         * lra-constraints.c (curr_insn_transform): Likewise.
13906         * optabs.c (prepare_cmp_insn): Likewise.
13907         * postreload.c (reload_combine_recognize_const_pattern):
13908         * Likewise.
13909         * reload.c (find_reloads): Likewise.
13910         (find_reloads_address_1): Likewise.
13911         * reorg.c (delete_scheduled_jump): Likewise.
13912         (steal_delay_list_from_target): Likewise.
13913         (steal_delay_list_from_fallthrough): Likewise.
13914         (try_merge_delay_insns): Likewise.
13915         (redundant_insn): Likewise.
13916         (fill_simple_delay_slots): Likewise.
13917         (fill_slots_from_thread): Likewise.
13918         (delete_computation): Likewise.
13919         (relax_delay_slots): Likewise.
13920         * sched-deps.c (sched_analyze_2): Likewise.
13921         * sched-rgn.c (add_branch_dependences): Likewise.
13922
13923 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13924
13925         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13926         that is trivially ded on non cc0 targets.
13927         (simplify_set): Likewise.
13928         (mark_used_regs_combine): Likewise.
13929         * cse.c (new_basic_block): Likewise.
13930         (fold_rtx): Likewise.
13931         (cse_insn): Likewise.
13932         (cse_extended_basic_block): Likewise.
13933         (set_live_p): Likewise.
13934         * rtlanal.c (canonicalize_condition): Likewise.
13935         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13936
13937 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13938
13939         * conditions.h: Define macros even if HAVE_cc0 is undefined.
13940         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13941         * final.c: Likewise.
13942         * jump.c: Likewise.
13943         * recog.c: Likewise.
13944         * recog.h: Declare functions even when HAVE_cc0 is undefined.
13945         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13946
13947 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13948
13949         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13950         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13951         * builtins.c (expand_builtin): Remove check if
13952         EH_RETURN_DATA_REGNO is defined.
13953         * df-scan.c (df_bb_refs_collect): Likewise.
13954         (df_get_exit_block_use_set): Likewise.
13955         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13956         * ira-lives.c (process_bb_node_lives): Likewise.
13957         * lra-lives.c (process_bb_lives): Likewise.
13958
13959 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
13960
13961         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13962         FIRST_PSEUDO_REG): New.
13963         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13964         (ARG_POINTER_REGNUM): Define to ARGP_REG.
13965         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13966         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13967         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13968         (FIRST_INT_REG): New.
13969         (LAST_INT_REG): New.
13970         (FIRST_*_REG): Define using *_REG.
13971         (LAST_*_REG): Ditto.
13972         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13973         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13974         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13975
13976 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13977
13978         * expmed.c: (synth_mult): Only assume overlapping
13979         shift with previous steps in alg_sub_t_m2 case.
13980
13981 2015-04-21  Richard Biener  <rguenther@suse.de>
13982
13983         PR tree-optimization/65650
13984         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13985         transitions involving copies.
13986         (set_lattice_value): Adjust for copy lattice state.
13987         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13988         if that doesn't dominate the merge point.
13989         (bit_value_unop): Adjust what we treat as varying mask.
13990         (bit_value_binop): Likewise.
13991         (bit_value_assume_aligned): Likewise.
13992         (evaluate_stmt): When we simplified to a SSA name record a copy
13993         instead of dropping to varying.
13994         (visit_assignment): Simplify.
13995
13996         * gimple-match.h (gimple_simplify): Add another callback.
13997         * gimple-fold.c (fold_stmt_1): Adjust caller.
13998         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13999         for the 2nd callback.
14000         * gimple-match-head.c (gimple_simplify): Add a callback that is
14001         used to valueize the stmt operands and use it that way.
14002
14003 2015-04-21  Richard Biener  <rguenther@suse.de>
14004
14005         PR tree-optimization/65788
14006         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
14007
14008 2015-04-21  Richard Biener  <rguenther@suse.de>
14009
14010         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
14011         vec_construct cost by vec_stmt_cost.
14012
14013 2015-04-21  Richard Biener  <rguenther@suse.de>
14014
14015         * cfghooks.h (create_basic_block): Replace with two overloads
14016         for RTL and GIMPLE.
14017         (split_block): Likewise.
14018         * cfghooks.c (split_block): Rename to ...
14019         (split_block_1): ... this.
14020         (split_block): Add two type-safe overloads for RTL and GIMPLE.
14021         (split_block_after_labels): Call split_block_1.
14022         (create_basic_block): Rename to ...
14023         (create_basic_block_1): ... this.
14024         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
14025         (create_empty_bb): Call create_basic_block_1.
14026         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14027         split_block_after_labels.
14028         * omp-low.c (expand_parallel_call): Likewise.
14029         (expand_omp_target): Likewise.
14030         (simd_clone_adjust): Likewise.
14031         * tree-chkp.c (chkp_get_entry_block): Likewise.
14032         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14033         create_basic_block overload.
14034         (cgraph_node::expand_thunk): Likewise.
14035         * tree-cfg.c (make_blocks): Likewise.
14036         (handle_abnormal_edges): Likewise.
14037         * tree-inline.c (copy_bb): Likewise.
14038
14039 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14040
14041         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14042         New pattern.
14043         (*xor_one_cmplsidi3_ze): Likewise.
14044
14045 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14046
14047         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14048         use df_remove_problem rather than manually removing problems, leaving
14049         holes in df->problems_in_order[].
14050
14051 2015-04-21  Tom de Vries  <tom@codesourcery.com>
14052
14053         PR tree-optimization/65802
14054         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14055
14056 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14057
14058         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14059         Increase to 128.
14060         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14061         at '.'.  Assert that there's enough space for everything.
14062
14063 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
14064
14065         PR tree-optimization/64950
14066         Revert:
14067         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
14068
14069         PR target/41089
14070         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14071         as volatile.
14072
14073 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
14074
14075         PR rtl-optimization/64916
14076         * cfgcleanup.c (values_equal_p): New function.
14077         (can_replace_by): Use it.
14078
14079 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
14080
14081         PR c++/65801
14082         * doc/invoke.texi ([-Wnarrowing]): Update.
14083
14084 2015-04-20  Jeff Law  <law@redhat.com>
14085
14086         PR tree-optimization/65658
14087         * tree-ssa-threadupdate.c (redirection_block_p): Remove
14088         redundant test for GIMPLE_ASSIGN in last change.
14089
14090 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
14091
14092         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14093         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14094         (legitimize_tls_address): Ditto.
14095         (ix86_expand_move): Ditto.
14096         (ix86_expand_binary_operator): Remove reload_in_progress checks.
14097         (ix86_expand_unary_operator): Ditto.
14098         * config/i386/predicates.md (index_register_operand): Ditto.
14099
14100 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
14101
14102         * reorg.c (try_merge_delay_insns): Improve correctness checking
14103         for targets with multiple delay slots.
14104
14105 2015-04-20  Jeff Law  <law@redhat.com>
14106
14107         PR tree-optimization/65658
14108         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14109         statements too.
14110
14111 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14112
14113         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14114         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14115         Delete.
14116
14117 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
14118
14119         PR debug/65807
14120         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14121
14122 2015-04-20  Richard Biener  <rguenther@suse.de>
14123
14124         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14125         * gimple-fold.c (gimple_build_valueize): New function.
14126         (gimple_build): Always use gimple_build_valueize as valueize hook.
14127
14128 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14129
14130         PR target/64134
14131         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14132         and overwrite variable parts if <= 1/2 the elements are variable.
14133
14134 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
14135
14136         PR rtl-optimization/65805
14137         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14138         Don't use difference of offset and previous offset if
14139         update_sp_offset is non-zero.
14140         (eliminate_regs_in_insn): Ditto.
14141         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14142         lra_eliminate_regs_1 call.
14143         * lra-constraints.c (get_equiv_with_elimination): Ditto.
14144
14145 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
14146
14147         * hash-table.h: Remove version of hash_table that stored value_type *.
14148         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14149         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14150         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14151         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14152         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14153         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14154         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14155         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14156         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14157         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14158         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14159         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14160         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14161         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14162         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14163         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14164
14165 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14166             Jakub Jelinek  <jakub@redhat.com>
14167
14168         PR target/65787
14169         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14170         subsequent SH_NONE operand does not overwrite an existing *special
14171         value.
14172         (adjust_extract): Handle case where a vec_extract operation is
14173         wrapped in a PARALLEL.
14174
14175 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14176
14177         PR target/65780
14178         * config/i386/i386.c (ix86_binds_local_p): Define only if
14179         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14180
14181 2015-04-17  Jeff Law  <law@redhat.com>
14182
14183         PR tree-optimization/47679
14184         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14185         * tree-ssa-scopedtables.c: New file.
14186         * tree-ssa-scopedtables.h: New file.
14187         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14188         (const_and_copies): Change name/type.
14189         (record_const_or_copy): Move into tree-ssa-scopedtables.c
14190         (record_const_or_copy_1): Similarly.
14191         (restore_vars_to_original_value): Similarly.
14192         (pass_dominator::execute): Create and destroy const_and_copies table.
14193         (thread_across_edge): Update passing of const_and_copies.
14194         (record_temporary_equivalence): Use method calls rather than
14195         manipulating const_and_copies directly.
14196         (record_equality, cprop_into_successor_phis): Similarly.
14197         (dom_opt_dom_walker::before_dom_children): Similarly.
14198         (dom_opt_dom_walker::after_dom_children): Similarly.
14199         (eliminate_redundant_computations): Similarly.
14200         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14201         (record_temporary_equivalence): Likewise.
14202         (invalidate_equivalences): Likewise.
14203         (record_temporary_equivalences_from_phis): Update due to type
14204         change of const_and_copies.  Use method calls rather than
14205         manipulating the stack directly.
14206         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14207         (thread_through_normal_block, thread_across_edge): Likewise.
14208         (thread_across_edge): Likewise.
14209         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14210         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
14211         of equiv_stack.
14212         (identify_jump_threads): Update due to type change of equiv_stack.
14213         (finalize_jump_threads): Delete the equiv_stack when complete.
14214
14215 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
14216
14217         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14218         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14219         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14220
14221 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
14222
14223         PR target/65535
14224         * config.gcc: Exit with a comment when we do not have a major version
14225         number for the FreeBSD target.
14226
14227 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14228
14229         PR target/65689
14230         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14231         maybe_allows_mem bitfields.
14232         (maybe_allows_none_start, maybe_allows_none_end,
14233         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14234         maybe_allows_mem_end): New variables.
14235         (compute_maybe_allows): New function.
14236         (add_constraint): Use it to initialize maybe_allows_reg and
14237         maybe_allows_mem fields.
14238         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14239         is_address constraints such that those that allow neither mem nor
14240         reg come first, then those that only allow reg but not mem, then
14241         those that only allow mem but not reg, then the rest.
14242         (write_allows_reg_mem_function): New function.
14243         (write_tm_preds_h): Call it.
14244         * stmt.c (parse_output_constraint, parse_input_constraint): Use
14245         the generated insn_extra_constraint_allows_reg_mem function
14246         instead of always setting *allows_reg = true; *allows_mem = true;
14247         for unknown extra constraints.
14248
14249 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14250
14251         PR target/65780
14252         * output.h (default_binds_local_p_3): New.
14253         * varasm.c (default_binds_local_p_3): Make it public.  Take an
14254         argument to indicate if common symbol may be local.  If common
14255         symbol may be local, treat non-external variable as defined
14256         locally.
14257         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14258         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14259         * config/i386/i386.c (ix86_binds_local_p): New.
14260         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14261         ix86_binds_local_p.
14262
14263 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14264
14265         PR debug/65771
14266         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14267         trying mem_loc_descriptor on XEXP (rtl, 0).
14268
14269 2015-04-17  Martin Liska  <mliska@suse.cz>
14270
14271         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14272         Release symbol_compare_collection.
14273         * ipa-reference.c: Add TODO that a vector should be released.
14274
14275 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14276
14277         PR target/65296
14278         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14279         to new AVR-LibC file layout (bug #44574).
14280         (*avrlibc_devicelib): Same.
14281         * config/avr/avr-mcus.def: Adjust comments.
14282         * config/avr/avr.opt (nodevicelib): Adjust help.
14283
14284 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
14285
14286         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14287
14288 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
14289
14290         PR c++/64527
14291         * gimplify.c (gimplify_init_constructor): Always emit a
14292         side-effecting constructor.
14293
14294 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14295
14296         PR tree-optimization/64950
14297         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14298         in cfun->curr_properties.
14299         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14300         if we generate an IFN_VA_ARG.
14301         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14302         function if PROP_gimple_lva is not set in src function.
14303
14304 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14305             Michael Matz  <matz@suse.de>
14306
14307         PR tree-optimization/64950
14308         * gimple-iterator.c (update_modified_stmts): Remove static.
14309         * gimple-iterator.h (update_modified_stmts): Declare.
14310         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14311         (gimplify_va_arg_internal): New function.
14312         (gimplify_va_arg_expr): Use IFN_VA_ARG.
14313         * gimplify.h (gimplify_va_arg_internal): Declare.
14314         * internal-fn.c (expand_VA_ARG): New unreachable function.
14315         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14316         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14317         (expand_ifn_va_arg): New function.
14318         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14319         (pass_stdarg::execute): Call expand_ifn_va_arg.
14320         (pass_data_lower_vaarg): New pass_data.
14321         (pass_lower_vaarg): New gimple_opt_pass.
14322         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14323         (make_pass_lower_vaarg): New function.
14324         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14325         properties_required field.
14326         * passes.def (all_passes): Add pass_lower_vaarg.
14327         * tree-pass.h (PROP_gimple_lva): Add define.
14328         (make_pass_lower_vaarg): Declare.
14329
14330 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14331
14332         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14333         * calls.c (call_expr_flags): Same.
14334
14335 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14336
14337         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14338         (pass_stdarg::execute): ... here.
14339
14340 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14341             Michael Matz  <matz@suse.de>
14342
14343         * tree-cfg.c (make_blocks_1): Factor out of ...
14344         (make_blocks): ... here.
14345         (make_edges_bb): Factor out of ...
14346         (make_edges): ... here.
14347         (gimple_find_sub_bbs): New function.
14348         * tree-cfg.h (gimple_find_sub_bbs): Declare.
14349
14350 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14351
14352         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14353
14354 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
14355
14356         * asan.c (set_sanitized_sections): New function.
14357         (section_sanitized_p): Ditto.
14358         (asan_protect_global): Optionally sanitize user-defined
14359         sections.
14360         * asan.h (set_sanitized_sections): Declare new function.
14361         * common.opt (fsanitize-sections): New option.
14362         * doc/invoke.texi (-fsanitize-sections): Document new option.
14363         * opts-global.c (handle_common_deferred_options): Handle new
14364         option.
14365
14366 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14367
14368         PR debug/65771
14369         * dwarf2out.c (loc_list_from_tree): Return NULL
14370         for DEBUG_EXPR_DECL.
14371
14372 2015-04-17  Christian Bruel  <christian.bruel@st.com>
14373
14374         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14375         same attributes.
14376
14377 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14378
14379         * ira-color.c (setup_left_conflict_sizes_p): Do not process
14380         node itself when computing left conflict subnode size.
14381
14382 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
14383
14384         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14385         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14386         *fop_<mode>_1_sse using enabled attribute.  Use
14387         register_mixssei387nonimm_operand operand 1 predicate. Change
14388         alternative 3 constraints from "x" to "v".
14389
14390 2015-04-16  Richard Biener  <rguenther@suse.de>
14391
14392         PR tree-optimization/65774
14393         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14394         bit-value tracking on.
14395
14396 2015-04-16  Richard Biener  <rguenther@suse.de>
14397
14398         PR tree-optimization/64277
14399         * tree-vrp.c (check_array_ref): Fix anti-range handling,
14400         simplify upper bound handling.
14401         (search_for_addr_array): Simplify.
14402         (check_array_bounds): Handle ADDR_EXPRs here.
14403         (check_all_array_refs): Simplify.
14404
14405 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
14406
14407         * config/i386/i386.c (print_reg): Rewrite function.
14408
14409 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14410
14411         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14412         Invert the condition.
14413
14414 2015-04-16  Renlin Li  <renlin.li@arm.com>
14415
14416         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14417         simplifications for UNSIGNED_FLOAT.
14418
14419 2015-04-16  Nick Clifton  <nickc@redhat.com>
14420
14421         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14422         MUL_UNINIT.
14423         (enum rl78_cpu_type): New.
14424         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14425         (umulhi3_shift_virt): Remove m constraint from operand 1.
14426         (umulqihi3_virt): Likewise.
14427         * config/rl78/rl78.c (rl78_option_override): Add code to process
14428         -mcpu and -mmul options.
14429         (rl78_alloc_physical_registers): Add code to handle divhi and
14430         divsi valloc attributes.
14431         (set_origin): Likewise.
14432         * config/rl78/rl78.h (RL78_MUL_G14): Define.
14433         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14434         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14435         __RL78_Gxx__.
14436         (ASM_SPEC): Pass -mcpu on to assembler.
14437         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14438         (mulqi3_rl78): Likewise.
14439         (mulhi3_g13): Likewise.
14440         (mulhi3): Generate the G13 or G14 versions of the insn directly.
14441         (mulsi3): Likewise.
14442         (mulhi3_g14): Add clobbers of AX and BC.
14443         (mulsi3_g14): Likewise.
14444         (mulsi3_g13): Likewise.
14445         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14446         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14447         * config/rl78/rl78.opt (mmul): Initialise value to
14448         RL78_MUL_UNINIT.
14449         (mcpu): New option.
14450         (m13, m14, mrl78): New option aliases.
14451         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14452         (MULTILIB_DIRNAMES): Add g13 and g14.
14453         * doc/invoke.texi: Document -mcpu and -mmul options.
14454
14455 2015-04-16  Richard Biener  <rguenther@suse.de>
14456
14457         * tree-ssa-ccp.c (likely_value): See if we have operands that
14458         are marked as never simulate again and return CONSTANT in this
14459         case.
14460         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14461         not have any operands that will be simulated again as
14462         not being simulated again.
14463
14464 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
14465
14466         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14467         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14468         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14469         attribute.
14470         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14471         enabled attribute.
14472         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14473         *float<SWI48:mode><MODEF:mode>2_sse.
14474         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14475         enabled attribute.
14476         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14477         enabled attribute.
14478
14479 2015-04-15  Tom de Vries  <tom@codesourcery.com>
14480
14481         PR other/65487
14482         * function.c (push_dummy_function): New function.
14483         (init_dummy_function_start): Use push_dummy_function.
14484         (pop_dummy_function): New function.  Factored out of ...
14485         (expand_dummy_function_end): ... here.
14486         * function.h (push_dummy_function, pop_dummy_function): Declare.
14487         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14488         pop_dummy_function.
14489         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14490
14491 2015-04-15  Jeff Law  <law@redhat.com>
14492
14493         PR tree-optimization/47679
14494         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14495         need for forward declaration in upcoming changes.
14496         (record_conditions, record_edge_info): Likewise.
14497
14498         PR rtl-optimization/42522
14499         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14500         SIGN_EXTRACT as a whole object rather than simplifying
14501         its operand.
14502
14503 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
14504
14505         PR ipa/65765
14506         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14507         and GIMPLE_PREDICT use break instead of return true. For
14508         GIMPLE_EH_DISPATCH, compare dispatch region.
14509
14510 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
14511
14512         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
14513         details about the implementation.  Make clear preference for
14514         __atomic builtins.  Reduce possibility of future change.
14515
14516 2015-04-15  Nick Clifton  <nickc@redhat.com>
14517
14518         * config/rx/rx.opt (mallow-string-insns): New option.
14519         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14520         builtin if string instructions are denied.
14521         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14522         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14523         appropriate.
14524         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14525         * config/rx/rx.md (movstr): Enable pattern only if string
14526         instructions are allowed.
14527         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14528         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14529         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14530         (MULTILIB_DIRNAMES): Add no-strings.
14531         * doc/invoke.texi: Document -mno-allow-string-insns.
14532
14533 2015-04-15  Alan Modra  <amodra@gmail.com>
14534
14535         PR target/65408
14536         PR target/58744
14537         PR middle-end/36043
14538         * calls.c (load_register_parameters): Don't load past end of
14539         mem unless suitably aligned.
14540
14541 2015-04-15  Nick Clifton  <nickc@redhat.com>
14542
14543         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14544         decrement instruction as being frame related.
14545         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14546         based addresses.
14547         If zero extending a function address enclose the operation in
14548         %code(...).
14549         (rl78_preferred_reload_class): New function.
14550         (TARGET_PREFERRED_RELOAD_CLASS): Define.
14551         * config/rl78/rl78.md: Remove useless constraints in expanders.
14552         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14553         (mulhi3_rl78): Likewise.
14554         (mulhi3_g13): Likewise.
14555         (mulsi3_rl78): Likewise.
14556         (es_addr): Move to before the multiply patterns.
14557
14558 2015-04-15  Alan Modra  <amodra@gmail.com>
14559
14560         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14561         and sequence_stack.  Add seq.
14562         (seq_stack): Delete.
14563         * function.c (prepare_function_start): Don't access x_last_insn.
14564         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14565         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14566         * emit_rtl.c (start_sequence, push_topmost_sequence,
14567         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14568         sequence accessors.
14569         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14570         remove_insn): Likewise.  Simplify.
14571         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14572         and pop_topmost_sequence.
14573         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
14574         debug insns.
14575         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14576
14577 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
14578
14579         PR target/65729
14580         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14581         the assertiion.
14582
14583 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14584
14585         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14586         (LEGACY_INT_REGNO_P): Ditto.
14587         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14588         (ANY_MASK_REG_P): Remove.
14589         (BND_REG_P): Rename from ANY_BND_REG_P.
14590         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14591         legacy integer registers.  Do not handle MMX_REG_P in a special way.
14592         Merge 64byte and 32byte SSE handling.
14593
14594 2015-04-14  Nick Clifton  <nickc@redhat.com>
14595
14596         * expr.c (expand_assignment): Force an address offset computation
14597         into a register before changing its mode.
14598         (expand_expr_real_1): Likewise.
14599
14600 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
14601
14602         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14603         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14604         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14605         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14606         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14607         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14608         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14609         and __aarch64_vget_lane_any.
14610
14611 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
14612
14613         PR rtl-optimization/65761
14614         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14615         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14616
14617 2015-04-14  Richard Biener  <rguenther@suse.de>
14618
14619         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14620         (graphite_can_represent_scev): Use POINTER_TYPE_P.
14621
14622 2015-04-14  Richard Biener  <rguenther@suse.de>
14623
14624         PR tree-optimization/65758
14625         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14626         against -1.
14627         (ccp_lattice_meet): Likewise.
14628         (bit_value_unop): Likewise.
14629         (bit_value_binop): Likewise.
14630         (bit_value_assume_aligned): Likewise.
14631
14632 2015-04-14  Christian Bruel  <christian.bruel@st.com>
14633
14634         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14635         function.
14636
14637 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
14638
14639         PR tree-optimization/63387
14640         * match.pd ((x unord x) | (y unord y) -> (x unord y),
14641         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14642
14643 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14644
14645         * config/i386/predicates.md (any_QIreg_operand): Rename from
14646         q_regs_operand.  Do not process subregs.
14647         (QIreg_operand): Use QI_REGNO_P predicate.
14648         (ext_QIreg_operand): Ditto.
14649         (ext_register_operand): Ditto.
14650         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14651         (AND splitters): Ditto.
14652         (AND with -65536 splitter): Add SWI48 mode for operand 0.
14653         (AND with -256 splitter): Use any_QIreg_operand predicate and
14654         SWI248 mode for operand 0.
14655         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14656         mode for operand 0.
14657         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14658
14659 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
14660
14661         * doc/plugins.texi: Rewrite first introductory paragraph.
14662
14663 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14664
14665         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14666         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14667
14668 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14669
14670         * ipa-profie.c (ipa_profile): Check number of parameters
14671         and possible polymorphic call targets before
14672         devirtualizing.
14673
14674 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
14675
14676         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14677         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14678
14679 2015-04-13  Richard Biener  <rguenther@suse.de>
14680
14681         PR tree-optimization/65204
14682         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14683         takens for bit-CCP.
14684
14685 2015-04-13  Richard Biener  <rguenther@suse.de>
14686
14687         PR target/65660
14688         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14689         and cond_not_taken_branch_cost to 4 and 2.
14690         (bdver2_cost): Likewise.
14691         (bdver3_cost): Likewise.
14692         (bdver4_cost): Likewise.
14693
14694 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14695
14696         * hash-table.h (hash_table constructor): Add mem stats.
14697         (alloc_entries): Likewise.
14698
14699 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14700
14701         * ipa-cp.c (ipcp_driver): Relase prev_edge.
14702         * passes.c (execute_one_pass): Only add transform if pass has one.
14703
14704 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
14705
14706         * config/i386/i386.c (ix86_option_override_internal): Don't set
14707         -fprefetch-loop-arrays if optimizing for size.
14708
14709 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14710             Gerald Pfeifer  <gerald@pfeifer.com>
14711
14712         * doc/contrib.texi (Contributors): Add Martin Jambor and
14713         Michael Matz.
14714
14715 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
14716
14717         * BASE-VER: Set to 6.0.0.
14718
14719         PR tree-optimization/65747
14720         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14721         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14722
14723 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14724
14725         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14726         sentence.  Improve grammar.
14727
14728 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14729
14730         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14731
14732 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14733
14734         PR ipa/65743
14735         * ipa-inline-transform.c (speculation_removed): Remove static var.
14736         (check_speculations): New function.
14737         (clone_inlined_nodes): Do not check spculations.
14738         (inline_call): Call check_speculations.
14739         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14740         consider non-invariants.
14741
14742 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14743             Martin Liska  <mliska@suse.cz>
14744
14745         PR ipa/65722
14746         * ipa-icf.c (sem_item::compare_cgraph_references): function and
14747         variable can not match.
14748         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14749         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14750
14751 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
14752
14753         PR tree-optimization/65735
14754         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14755         Remove visited_phis argument, add visited_bbs, avoid recursing into the
14756         same bb rather than just into the same phi node.
14757         (thread_through_normal_block): Adjust caller.
14758
14759 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14760
14761         * doc/contrib.texi (Contributors): Add Ira Rosen.
14762
14763 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
14764
14765         * gcov.c (find_source): Fix miswording in error message.
14766         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14767         (ix86_expand_sse_comi_round): Fix typo in error message.
14768
14769 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14770
14771         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14772
14773 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
14774
14775         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14776
14777 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14778
14779         PR target/65710
14780         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14781         Print bad_spills_num and insn_pseudos_num.
14782
14783 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14784
14785         PR target/65694
14786         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14787         when creating +1 values for SImode.
14788
14789 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14790
14791         PR target/65729
14792         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14793         assert.
14794
14795 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
14796             Iain Sandoe  <iain@codesourcery.com>
14797
14798         PR target/65351
14799         * configure: Regenerate.
14800
14801 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14802
14803         PR target/65671
14804         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14805
14806 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
14807
14808         * doc/contrib.texi (Contributors): Add John Marino.
14809
14810 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14811
14812         PR tree-optimization/65709
14813         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14814         TREE_TYPE (TREE_TYPE (t)).
14815
14816 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
14817
14818         PR target/65710
14819         * lra-int.h (lra_bad_spill_regno_start): New.
14820         * lra.c (lra_bad_spill_regno_start): New.
14821         (lra): Set up lra_bad_spill_regno_start.  Set up
14822         lra_constraint_new_regno_start unconditionally.
14823         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14824         spill preferences.
14825
14826 2015-04-09  Marek Polacek  <polacek@redhat.com>
14827             Jakub Jelinek  <jakub@redhat.com>
14828
14829         PR middle-end/65554
14830         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14831         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14832         of STRIP_NOPS.
14833
14834 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
14835
14836         PR rtl-optimization/65693
14837         * combine.c (is_parallel_of_n_reg_sets): Move outside of
14838         #ifndef HAVE_cc0.
14839
14840 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
14841
14842         PR target/65296
14843         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14844         device specs file if "device-specs%s" didn't resolve to a path.
14845
14846 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14847
14848         PR target/65676
14849         * config/i386/i386.c (fixup_modeless_constant): New.
14850         (ix86_expand_args_builtin): Fixup modeless constant operand.
14851         (ix86_expand_round_builtin): Ditto.
14852         (ix86_expand_special_args_builtin): Ditto.
14853         (ix86_expand_builtin): Ditto.
14854
14855 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14856
14857         PR target/65693
14858         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14859         any pow2 integer in between 2 and 0x80000000U inclusive.
14860
14861 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
14862
14863         PR rtl-optimization/65693
14864         * combine.c (is_parallel_of_n_reg_sets): Change first argument
14865         from an rtx_insn * to an rtx.
14866         (try_combine): Adjust both callers.  Use it once more.
14867
14868 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14869
14870         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14871         (chkp_make_static_const_bounds): Search existing
14872         symbol by assembler name.  Use make_decl_one_only.
14873         (chkp_get_zero_bounds_var): Remove node search which
14874         is now performed in chkp_make_static_const_bounds.
14875         (chkp_get_none_bounds_var): Likewise.
14876
14877 2015-04-08  Michael Witten  <mfwitten@gmail.com>
14878
14879         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14880         to an example.
14881
14882 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14883
14884         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14885
14886 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14887
14888         * doc/extend.texi (__sync Builtins): Fix grammar.
14889
14890 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14891
14892         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14893
14894 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14895
14896         * varasm.c (emit_local): Move definition of align.
14897
14898 2015-04-08  Julian Brown  <julian@codesourcery.com>
14899
14900         * config/nvptx/mkoffload.c (process): Support variable mapping.
14901
14902 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
14903
14904         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14905         alpha_links **.
14906         (alpha_write_one_linkage): Correct typo.
14907
14908 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14909
14910         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14911
14912 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14913
14914         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14915
14916 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14917
14918         * tree-chkp.h (chkp_insert_retbnd_call): New.
14919         * tree-chkp.c (chkp_insert_retbnd_call): New.
14920         * ipa-split.c (insert_bndret_call_after): Remove.
14921         (split_function): Use chkp_insert_retbnd_call.
14922         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14923         bounds for instrumented functions.
14924
14925 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
14926
14927         PR ipa/65540
14928         * calls.c (initialize_argument_information): When producing tail
14929         call also turn SSA_NAMES passed by references to original PARM_DECLs
14930
14931 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
14932
14933         PR target/65648
14934         * lra-remat.c (do_remat): Process input and non-input insn
14935         registers separately.
14936
14937 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14938
14939         PR debug/65678
14940         * valtrack.c (debug_lowpart_subreg): New function.
14941         (dead_debug_insert_temp): Use it.
14942
14943         PR middle-end/65680
14944         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14945         into signed HOST_WIDE_INT the same as negative bit_offset.
14946
14947 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14948
14949         * ipa-comdats.c (ipa_comdats): Visit all thunks
14950         to set proper comdat group.
14951
14952 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14953
14954         PR target/65489
14955         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14956         on constants for NEON VSTRUCT modes.
14957
14958 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14959             Iain Sandoe  <iain@codesourcery.com>
14960
14961         PR target/65351
14962         * configure: Regenerate.
14963
14964 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14965
14966         PR target/65614
14967         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14968         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14969         that LFD is used to load double constants instead of LFS.  Add
14970         defaults for all costs structures.  Add comments for missing
14971         initialization fields.
14972         (size32_cost): Likewise.
14973         (size64_cost): Likewise.
14974         (rs64a_cost): Likewise.
14975         (mpccore_cost): Likewise.
14976         (ppc403_cost): Likewise.
14977         (ppc405_cost): Likewise.
14978         (ppc440_cost): Likewise.
14979         (ppc476_cost): Likewise.
14980         (ppc601_cost): Likewise.
14981         (ppc603_cost): Likewise.
14982         (ppc604_cost): Likewise.
14983         (ppc604e_cost): Likewise.
14984         (ppc620_cost): Likewise.
14985         (ppc630_cost): Likewise.
14986         (ppccell_cost): Likewise.
14987         (ppc750_cost): Likewise.
14988         (ppc7450_cost): Likewise.
14989         (ppc8540_cost): Likewise.
14990         (ppce300c2c3_cost): Likewise.
14991         (ppce500mc_cost): Likewise.
14992         (ppce500mc64_cost): Likewise.
14993         (ppce5500_cost): Likewise.
14994         (ppce6500_cost): Likewise.
14995         (titan_cost): Likewise.
14996         (power4_cost): Likewise.
14997         (power6_cost): Likewise.
14998         (power7_cost): Likewise.
14999         (power8_cost): Likewise.
15000         (ppca2_cost): Likewise.
15001         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
15002
15003         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
15004         instead of XXLOR to copy SFmode to clear out dirty bits created
15005         when SFmode denormals are generated.
15006         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
15007         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
15008
15009 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
15010
15011         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
15012         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
15013         * config/aarch64/aarch64-tune.md: Regenerate.
15014
15015 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
15016
15017         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
15018         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
15019         * config/arm/arm-cores.def (exynos-m1): New core.
15020         * config/arm/arm-tune.md: Regenerate.
15021         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
15022         * config/arm/bpabi.h: Likewise.
15023
15024 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
15025
15026         * ipa-cp (set_single_call_flag): Remove too
15027         restrictive assert.
15028
15029 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15030
15031         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15032         GOMP_offload_unregister from the destructor.
15033
15034 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
15035
15036         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15037         flags for instrumentation thunk.
15038         (chkp_produce_thunks): Likewise.
15039
15040 2015-04-05  Martin Liska  <mliska@suse.cz>
15041
15042         PR ipa/65665
15043         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15044         has computed data structure.
15045         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15046
15047 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
15048
15049         * invoke.texi (inline-unit-growth): Increase growth to 20%
15050         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15051
15052 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
15053
15054         PR target/65647
15055         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
15056         value checking.
15057         (lra_rematerialization_iter): New.
15058         * lra.c (lra): Initialize lra_rematerialization_iter.
15059         Stop updating lra_constraint_new_regno_start after switching of
15060         inheritance and rematerialization.
15061         * lra-remat.c (lra_rematerialization_iter): New.
15062         (lra_remat): Add printing pass iteration.  Do rematerialization
15063         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15064
15065 2015-04-04  Richard Biener  <rguenther@suse.de>
15066
15067         PR tree-optimization/64909
15068         PR tree-optimization/65660
15069         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15070         to take a cost vector for scalar iteration cost.
15071         (vect_get_single_scalar_iteration_cost): Likewise.
15072         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15073         Compute the scalar iteration cost into a cost vector.
15074         (vect_get_known_peeling_cost): Use the scalar cost vector to
15075         account for the cost of the peeled iterations.
15076         (vect_estimate_min_profitable_iters): Likewise.
15077         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15078         Likewise.
15079
15080 2015-04-04  Alan Modra  <amodra@gmail.com>
15081
15082         PR target/65576
15083         PR target/65240
15084         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15085         0.0 constant unless TARGET_VSX.
15086         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15087         alternative.
15088
15089 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15090
15091         PR ipa/65654
15092         * ipa-inline-transform.c (inline_call): Skip sanity check to work
15093         around the ICE
15094
15095 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15096
15097         PR ipa/65655
15098         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15099         speculative indirect edges to avoid ordering issue.
15100
15101 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15102
15103         PR ipa/65076
15104         * ipa-inline.c (edge_badness): Add combined size to the denominator.
15105
15106 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
15107
15108         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15109         TYPE_ARTIFICIAL on the .omp_data* types.
15110
15111 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15112
15113         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15114         instrumentation thunks.
15115
15116 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15117
15118         * config/i386/i386.c (ix86_expand_call): Avoid nested
15119         PARALLEL in returned call value.
15120
15121 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15122
15123         * lto-cgraph.c (input_cgraph_1): Always link instrumented
15124         assembler name with original one.
15125
15126 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15127
15128         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15129
15130 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15131
15132         Revert parts of r216820.
15133         * config/i386/i386.md (movqi_internal): Correct type calculation
15134         for alternatives 3 and 5.
15135
15136 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
15137
15138         PR preprocessor/61977
15139         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15140         predefine __vector/__bool/__pixel macros nor context sensitive
15141         macros for CLK_ASM.
15142         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15143
15144 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
15145
15146         * config/pa/pa.c (pa_output_move_double): Directly handle register
15147         indexed memory operand.  Simplify handling of scaled register indexed
15148         memory operands.
15149
15150 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15151
15152         PR driver/65444
15153         * config/i386/linux-common.h (MPX_SPEC): New.
15154         (CHKP_SPEC): Add MPX_SPEC.
15155         * doc/invoke.texi (-fcheck-pointer-boudns): Document
15156         possible issues with '-z bndplt' support in linker.
15157
15158 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15159
15160         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15161         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15162         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15163         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15164         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15165
15166 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
15167
15168         * config/i386/sync.md (UNSPEC_MOVA): Remove.
15169         (atomic_load<mode>): Change operand 0 predicate to
15170         nonimmediate_operand and fix up the destination when needed.
15171         Use UNSPEC_LDA.
15172         (atomic_loaddi_fpu): Use UNSPEC_LDA.
15173         (atomic_store<mode>): Change operand 1 predicate to
15174         nonimmendate_operand and move the source to register when needed.
15175         Use UNSPEC_STA.
15176         (atomic_store<mode>_1): Use UNSPEC_STA.
15177         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15178         Fix moves from memory operand.  Use UNSPEC_STA.
15179
15180 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15181
15182         * expmed.c (strict_volatile_bitfield_p): Check that the access will
15183         not cross a MODESIZE boundary.
15184         (store_bit_field, extract_bit_field): Added assertions in the
15185         strict volatile bitfields code path.
15186
15187 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15188
15189         PR target/65624
15190         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15191         Increase args array size by one to avoid buffer overflow.
15192
15193 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15194
15195         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15196         split_part.
15197         * ipa-inline.c (edge_badness): Add wrapper penalty.
15198         (sum_callers): Move up.
15199         (inline_small_functions): Set single_caller.
15200         * ipa-inline.h (inline_summary): Add single_caller.
15201         * ipa-split.c (split_function): Set split_part.
15202         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15203         * cgraph.h (cgraph_node): Add split_part.
15204
15205 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
15206
15207         PR target/58945
15208         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15209         Do not split operands 0 and operands 2 to halfmode.
15210         (atomic_compare_and_swap<mode>): Update for
15211         atomic_compare_and_swap<dwi>_doubleword changes.
15212
15213 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15214
15215         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15216         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15217         no caching is done.
15218
15219 2015-03-31  Martin Liska  <mliska@suse.cz>
15220
15221         PR ipa/65557
15222         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15223         has already filled up function summary.
15224         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15225
15226 2015-03-31  Richard Biener  <rguenther@suse.de>
15227
15228         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15229         of types.
15230
15231 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15232
15233         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15234         nested functions.
15235         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15236         (s390_asm_output_function_label): Adapt to new signature of
15237         s390_function_num_hotpatch_hw
15238         Optimise the code generating assembler output.
15239         Add comments to assembler file.
15240
15241 2015-03-31  Richard Biener  <rguenther@suse.de>
15242
15243         PR middle-end/65626
15244         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15245         of the noreturn call so it is last and cleanup_control_flow_bb
15246         can do the CFG part.
15247
15248 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
15249
15250         PR target/65531
15251         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15252         same_comdat_group for external symbols.
15253         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15254         infinite same_comdat_group traversal loop.
15255
15256 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
15257
15258         PR plugins/61176
15259         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15260         automatically to $headers.
15261
15262 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15263
15264         PR ipa/65610
15265         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15266         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15267         function.
15268         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15269         Use it.
15270         * ipa-prop.c (param_type_may_change_p): Likewise.
15271         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15272         (remove_unused_scope_block_p): Add in_ctor_dtor_block
15273         argument.  Before inlining, preserve
15274         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15275         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
15276         recursive calls.
15277         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15278
15279 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15280
15281         PR ipa/65076
15282         * ipa-inline.c (edge_badness): Base denominator on callee's
15283         grwoth squared.
15284
15285 2015-03-27  Martin Jambor  <mjambor@suse.cz>
15286
15287         PR ipa/65478
15288         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15289         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15290         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15291         node_calling_single_call.
15292         * ipa-cp.c (count_callers): New function.
15293         (set_single_call_flag): Likewise.
15294         (initialize_node_lattices): Count callers and set single_flag_call if
15295         necessary.
15296         (incorporate_penalties): New function.
15297         (good_cloning_opportunity_p): Use it, dump new flags.
15298         (propagate_constants_topo): Set node_within_scc flag if appropriate.
15299         * doc/invoke.texi (ipa-cp-recursion-penalty,
15300         ipa-cp-single-call-pentalty): Document.
15301
15302 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15303
15304         PR ipa/65588
15305         * symtab.c (symtab_node::get_partitioning_class): Register vars
15306         are duplicated.
15307         * varpool.c (symbol_table::output_variables) Do not assemble unefined
15308         decls for non-symbols.
15309
15310 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15311
15312         PR target/65248
15313         * output.h (default_binds_local_p_2): New.
15314         * varasm.c (default_binds_local_p_2): Renamed to ...
15315         (default_binds_local_p_3): This.  Don't return true on protected
15316         data symbol if protected data may be external.
15317         (default_binds_local_p): Use default_binds_local_p_3.
15318         (default_binds_local_p_1): Likewise.
15319         (default_binds_local_p_2): New.
15320         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15321         default_binds_local_p_2 if TARGET_MACHO is undefined.
15322
15323 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
15324
15325         PR target/65593
15326         * config/i386/i386.c (legitimize_pic_address): If base
15327         is SYMBOL_REF or LABEL_REF using %rip addressing, force
15328         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15329
15330 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15331
15332         PR target/65531
15333         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15334         comdat groups.
15335
15336 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15337
15338         PR ipa/65600
15339         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15340         of optimized out indirect call.
15341         (redirect_to_unreachable): Always build symbol table node for
15342         BUILT_IN_UNREACHABLE
15343
15344 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
15345
15346         PR target/65407
15347         * ira-costs.c (record_reg_classes): Process all constraint string
15348         containing 0-9.
15349
15350 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
15351
15352         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15353         memory_operand.
15354
15355         PR target/65052
15356         * config/c6x/constraints.md (S3): New constraint.
15357         * config/c6x/c6x.md (real_jump): Use it.
15358
15359 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15360
15361         PR middle-end/65595
15362         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15363         do redirection if the call is not optimized out.
15364
15365 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15366
15367         PR target/65495
15368         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15369         (fchkp-check-incomplete-type): Add LTO.
15370         (fchkp-zero-input-bounds-for-main): Likewise.
15371         (fchkp-first-field-has-own-bounds): Likewise.
15372         (fchkp-narrow-bounds): Likewise.
15373         (fchkp-narrow-to-innermost-array): Likewise.
15374         (fchkp-use-static-bounds): Likewise.
15375         (fchkp-use-static-const-bounds): Likewise.
15376         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15377
15378 2015-03-27  Marek Polacek  <polacek@redhat.com>
15379
15380         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15381
15382 2015-03-27  Marek Polacek  <polacek@redhat.com>
15383
15384         PR sanitizer/65583
15385         * ubsan.c (ubsan_create_edge): New function.
15386         (instrument_bool_enum_load): Call it.
15387         (instrument_nonnull_arg): Likewise.
15388         (instrument_nonnull_return): Likewise.
15389         (instrument_object_size): Likewise.
15390
15391 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15392
15393         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15394         auto_vec.
15395
15396 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15397
15398         PR lto/65536
15399         * lto-streamer.h (class lto_location_cache): New.
15400         (struct data_in): Add location_cache.
15401         (lto_input_location): Update prototype.
15402         (stream_input_location_now): New.
15403         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15404         pointer to location.
15405         (stream_input_location): Update.
15406         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15407         (warn_odr): Apply location cache before warning.
15408         (lto_input_location): Update prototype.
15409         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15410         Use stream_input_location_now.
15411         * lto-streamer-in.c (lto_location_cache::current_cache): New static
15412         variable.
15413         (lto_location_cache::cmp_loc): New function.
15414         (lto_location_cache::apply_location_cache): New function.
15415         (lto_location_cache::accept_location_cache): New function.
15416         (lto_location_cache::revert_location_cache): New function.
15417         (lto_location_cache::input_location): New function.
15418         (lto_input_location): Do location caching.
15419         (stream_input_location_now): New function.
15420         (input_eh_region, input_struct_function_base): Use
15421         stream_input_location_now.
15422         (lto_data_in_create): use new.
15423         (lto_data_in_delete): Use delete.
15424         * tree-streamer-in.c (unpack_ts_block_value_fields,
15425         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15426         lto_input_ts_exp_tree_pointers): Update for cached location api.
15427
15428 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15429
15430         PR ipa/65076
15431         * passes.def: Add pass_nothrow.
15432         * ipa-pure-const.c: (pass_data_nothrow): New.
15433         (pass_nothrow): New.
15434         (pass_nothrow::execute): New.
15435         (make_pass_nothrow): New.
15436         * tree-pass.h (make_pass_nothrow): Declare.
15437
15438 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15439
15440         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15441         edge to change by speculation resolution or redirection.
15442         (edge_set_predicate): Likewise.
15443         (inline_summary_t::duplicate): Likewise.
15444         (remap_edge_summaries): Likewise.
15445
15446 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15447
15448         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15449         New macros.
15450         (can_inline_edge_p): Relax option matching for always inline functions.
15451
15452 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
15453
15454         PR target/65561
15455         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15456         Check operand 4 and operand 0 for equality.
15457         (avx512f_vextract<shuffletype>32x4_1_maskm):
15458         Check operand 6 and operand 0 for equality.
15459         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15460         for equality.
15461         (vec_extract_hi_<mode>_maskm): Ditto.
15462
15463 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15464
15465         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15466         dead calls back to live.
15467         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15468         cross check to ...
15469         (cgraph_node::verify_node): ... here; verify only callee edges,
15470         not caller.
15471         * cif-code.def (CILK_SPAWN): New code.
15472
15473 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15474
15475         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15476         (edge_set_predicate): Use it to mark unreachable edges.
15477         (inline_summary_t::duplicate): Remove unnecesary code.
15478         (remap_edge_summaries): Likewise.
15479         (dump_inline_summary): Report contains_cilk_spawn.
15480         (compute_inline_parameters): Compute contains_cilk_spawn.
15481         (inline_read_section, inline_write_summary): Stream
15482         contains_cilk_spawn.
15483         * ipa-inline.c (can_inline_edge_p): Do not touch
15484         DECL_STRUCT_FUNCTION that may not be available;
15485         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15486         remove check for callee_fun->can_throw_non_call_exceptions and
15487         replace it by optimization attribute check; check for flag_exceptions.
15488         * ipa-inline-transform.c (inline_call): Maintain
15489         DECL_FUNCTION_PERSONALITY
15490         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15491
15492 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
15493
15494         PR tree-optimization/65551
15495         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15496         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15497
15498 2015-03-26  Richard Biener  <rguenther@suse.de>
15499
15500         PR middle-end/65555
15501         * tree-cfg.c (verify_gimple_call): Do not require a call to
15502         have no LHS if it wasn't recognized as control altering yet.
15503
15504 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
15505
15506         PR tree-optimization/64715
15507         * passes.def: Add another instance of pass_object_sizes before ccp1.
15508         * tree-object-size.c (pass_object_sizes::execute): In
15509         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15510         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15511         __bos result and the computed constant.  Remove redundant
15512         checks, obsoleted by gimple_call_builtin_p test.
15513
15514         * var-tracking.c (variable_tracking_main_1): Don't track
15515         variables for targetm.no_register_allocation targets.
15516
15517 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
15518
15519         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15520         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15521
15522 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15523
15524         PR target/65569
15525         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15526         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
15527         0.0 is correctly setup.
15528         (extenddftf2_internal): Likewise.
15529
15530 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
15531
15532         PR tree-optimization/65177
15533         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15534         (bb_in_bbs): New.
15535         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
15536         edges not adjacent on the path to the original code.
15537
15538 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
15539
15540         PR bootstrap/65537
15541         * doc/install.texi (Building a native compiler): Document new
15542         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
15543         configuration assumes that the host supports the linker plugin.
15544
15545 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
15546
15547         PR target/65508
15548         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15549         chain for generated call.
15550
15551 2015-03-25  Richard Biener  <rguenther@suse.de>
15552
15553         * passes.c (pass_manager::execute_early_local_passes): Guard
15554         execution of pass_chkp_instrumentation_passes with
15555         flag_check_pointer_bounds.
15556         (pass_chkp_instrumentation_passes::gate): Likewise.
15557
15558 2015-03-25  Martin Liska  <mliska@suse.cz>
15559
15560         PR tree-optimization/65538
15561         * symbol-summary.h (function_summary::~function_summary):
15562         Relese memory for allocated summaries.
15563         (function_summary::release): New function.
15564
15565 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
15566
15567         PR lto/65515
15568         * lto-streamer-out.c (DFS::worklist): New struct.
15569         (DFS::worklist_vec): New data member.
15570         (DFS::next_dfs_num): Remove.
15571         (DFS::DFS): Rewritten using worklist instead of recursion,
15572         using most of code from DFS::DFS_write_tree.
15573         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15574         pass it to DFS_write_tree calls.
15575         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15576         quick initial checks push it into worklist_vec and return.
15577
15578 2015-03-25  Richard Biener  <rguenther@suse.de>
15579
15580         PR middle-end/65519
15581         * genmatch.c (expr::gen_transform): Re-write to avoid
15582         using gimple_build.
15583
15584 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15585
15586         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15587
15588 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15589
15590         * config/arm/arm.opt (print_tune_info): New option.
15591         * config/arm/arm.c (arm_print_tune_info): New function.
15592         (arm_file_start): Call arm_print_tune_info.
15593         * config/arm/arm-protos.h (struct tune_params): Add comment.
15594         * doc/invoke.texi (@item -mprint-tune-info): New item.
15595         (-mtune): mention it in ARM Option Summary.
15596
15597 2015-03-25  DJ Delorie  <dj@redhat.com>
15598
15599         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15600         correct clause.
15601
15602 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
15603             Martin Liska  <mliska@suse.cz>
15604
15605         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15606         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15607         (sem_item::add_type): New function.
15608         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15609         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15610         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15611         (sem_function::equals_wpa): Fix typo.
15612         * ipa-icf.h (sem_item::add_type): New function.
15613         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15614         order.
15615
15616 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
15617
15618         PR tree-optimization/65533
15619         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15620         with swapped operands, call vect_free_slp_tree on
15621         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15622         vector.
15623
15624 2015-03-24  Richard Biener  <rguenther@suse.de>
15625
15626         PR middle-end/65517
15627         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15628         for fixup if necessary.
15629
15630 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
15631
15632         * doc/extend.texi (Function Attributes): Add @cindex entries
15633         for all attributes and regularize their format.  Delete text
15634         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
15635         information about "eightbit_data", "tiny_data", and "model"
15636         variable attributes to the Variable Attributes section.  Fix
15637         some obvious typos and copy-editing issues.
15638         (Variable Attributes, Type Attributes): Likewise add/fix
15639         @cindex entries for all attributes.
15640
15641 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15642
15643         PR target/65523
15644         * tree-chkp.c (chkp_build_returned_bound): Ignore
15645         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15646
15647 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
15648
15649         PR target/65505
15650         * config/sh/predicates.md (simple_mem_operand,
15651         displacement_mem_operand): Add test for reg.
15652         (short_displacement_mem_operand): Test for displacement_mem_operand
15653         before invoking sh_disp_addr_displacement.
15654         * config/sh/constraints.md (Sdd, Sra): Simplify.
15655         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15656         Remove redundant displacement_mem_operand tests.
15657
15658 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
15659
15660         PR target/65296
15661         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15662         the same -mmcu=MCU more than once.
15663
15664 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15665
15666         PR bootstrap/65522
15667         * ipa-devirt.c: Remove duplicate demangle.h include.
15668
15669         PR target/65504
15670         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15671         on the pseudo.
15672         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15673         REG_POINTER on *destptr after adjusting it for prologue size.
15674
15675         PR ipa/65521
15676         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15677         ultimate_alias_target ()->order ints instead of
15678         ultimate_alias_target () pointers.
15679
15680 2015-03-23  Richard Biener  <rguenther@suse.de>
15681
15682         PR tree-optimization/65518
15683         * tree-vect-stmts.c (vectorizable_load): Reject single-element
15684         interleaving cases we generate absymal code for.
15685
15686 2015-03-23  Richard Biener  <rguenther@suse.de>
15687
15688         PR tree-optimization/65494
15689         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15690         matches here.
15691         (vect_analyze_slp_instance): But do that here, always and once.
15692
15693 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15694
15695         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15696         adding T or multiplying by T+1 and subracting T.
15697
15698 2015-03-22  Jeff Law  <law@redhat.com>
15699
15700         PR rtl-optimization/64317
15701         * Makefile.in (OBJS): Add gcse-common.c
15702         * gcse.c: Include gcse-common.h
15703         (struct modify_pair_s): Move structure definition to gcse-common.h
15704         (compute_transp): Move function to gcse-common.c.
15705         (canon_list_insert): Similarly.
15706         (record_last_mem_set_info): Break out some code and put it into
15707         gcse-common.c.  Call into the new common code.
15708         (compute_local_properties): Pass additional arguments to compute_transp.
15709         * postreload-gcse.c: Include gcse-common.h and df.h
15710         (modify_mem_list_set, blocks_with_calls): New variables.
15711         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15712         (get_bb_avail_insn): Pass in the expression index too.
15713         (alloc_mem): Allocate memory for the new bitmaps and lists.
15714         (free_mem): Free memory for the new bitmaps and lists.
15715         (insert_expr_in_table): Record a bitmap index for each entry we
15716         add to the table.
15717         (record_last_mem_set_info): Call into common code in gcse-common.c.
15718         (get_bb_avail_insn): If no available insn was found in the requested
15719         BB.  If BB has a single predecessor, see if the expression is
15720         transparent in BB and available in that single predecessor.
15721         (compute_expr_transp): New wrapper for compute_transp.
15722         (eliminate_partially_redundant_load): Pass expression's bitmap_index
15723         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
15724         (gcse_after_reload_main): If there are elements in the hash table,
15725         then compute transparency for all the elements in the hash table.
15726         * gcse-common.h: New file.
15727         * gcse-common.c: New file.
15728
15729 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
15730
15731         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15732         as an adjective.
15733         (System Headers): Likewise.
15734         (Ifdef): Likewise.
15735         (Traditional macros): Likewise.
15736         (Invocation): Likewise.
15737         (Option Index): Likewise.
15738         * doc/cppopts.texi (-M): Likewise.
15739         (-finput-charset): Likewise.
15740         (--help): Likewise.
15741         * doc.invoke.texi (AVR Options): Likewise.
15742         (V850 Options): Likewise.
15743
15744 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
15745
15746         PR ipa/65475
15747         * ipa-devirt.c: Include demangle.h
15748         (odr_type_d): Add field rtti_broken.
15749         (odr_subtypes_equivalent_p): Do not require name to match.
15750         (compare_virtual_tables): Fix typo; if type already has ODR violation,
15751         bypass the tests; be ready for function referneces in vtables that are
15752         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15753         (warn_odr): Give up for nameless types.
15754         (warn_types_mismatch): Report mismatch in mangled names;
15755         report mismatch in anonymous namespaces; look into component types to
15756         give useful error; report when mismatch is dragged in from other ODR
15757         type.
15758         (odr_types_equivalent_p): Match types for being polymorphic; avoid
15759         duplicated diagnostics.
15760         (add_type_duplicate): Reorder checks so more informative ones come
15761         first; fix typo; do not output "the extra base is defined here" when
15762         we did not warn.
15763         (BINFO_N_BASE_BINFOS): Relax sanity check.
15764
15765 2015-03-22  Martin Liska  <mliska@suse.cz>
15766             Jakub Jelinek  <jakub@redhat.com>
15767
15768         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15769         masks that can potentially include a builtin.
15770         (ix86_add_new_builtins): Introduce fast filter for isa values
15771         that cannot trigger builtin inclusion.
15772
15773 2015-03-22  Martin Liska  <mliska@suse.cz>
15774
15775         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15776         (sem_item::update_hash_by_local_refs): Likewise.
15777         (sem_variable::get_hash): Empty line is fixed.
15778         (sem_item_optimizer::execute): Include adding of hash references.
15779         (sem_item_optimizer::update_hash_by_addr_refs): New function.
15780         (sem_item_optimizer::build_hash_based_classes): Use local hash.
15781         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15782         (sem_item::update_hash_by_local_refs): Likewise.
15783
15784 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15785
15786         PR ipa/65502
15787         * ipa-comdats.c (enqueue_references): Walk through thunks.
15788         (ipa_comdats): Likewise.
15789         (set_comdat_group_1): New function.
15790
15791 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15792
15793         PR ipa/65475
15794         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15795         non-polymorphic
15796
15797 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
15798             Gerald Pfeifer  <gerald@pfeifer.com>
15799
15800         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15801
15802 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
15803             Sandra Loosemore  <sandra@codesourcery.com>
15804
15805         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15806         function parameter declaration.
15807         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15808         Update arguments to nios2_adjust_call_address().
15809         (sibcall_internal): Rename from *sibcall.
15810         (sibcall_value_internal): Rename from *sibcall_value.
15811         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15812         (nios2_large_got_address): Add target temp reg parameter.
15813         (nios2_got_address): Adjust call to nios2_large_got_address, add
15814         force_reg around it.
15815         (nios2_load_pic_address): Add target temp reg parameter, replace call
15816         to nios2_got_address with corresponding code.
15817         (nios2_legitimize_constant_address): Update call to
15818         nios2_load_pic_address.
15819         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15820         to use temp reg for PIC loading purposes.
15821         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15822         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15823         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15824
15825 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15826
15827         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15828         usage of "the @option{...}".
15829         (-Wopenmp-simd): Likewise.
15830         (-fsanitize-recover): Likewise.
15831         (-fsanitize-undefined-trap-on-error): Likewise.
15832         (-flto): Likewise.
15833         (tracer-dynamic-coverage-feedback): Likewise.
15834         (reorder-block-duplicate-feedback): Likewise.
15835         (loop-unroll-jam-size): Likewise.
15836         (-B): Likewise.
15837         (-I-): Likewise.
15838         (-mabs=legacy): Likewise.
15839         (-mupper-regs-df): Likewise.
15840         (-mupper-regs-sf): Likewise.
15841         (-mpointers-to-nested-functions): Likewise.
15842
15843 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15844
15845         * doc/extend.texi (Cilk Plus Builtins): Add markup.
15846
15847 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15848
15849         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15850         additional index entries and cross-references.
15851         (-fchkp-check-incomplete-type): Likewise.
15852         (-fchkp-first-field-has-own-bounds): Likewise.
15853         (-fchkp-narrow-to-innermost-array): Likewise.
15854         (-fchkp-use-fast-string-functions): Likewise.
15855         (-fchkp-use-nochk-string-functions): Likewise.
15856         (-fchkp-use-static-const-bounds): Likewise.
15857         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15858         (-fchkp-instrument-marked-only): Likewise.
15859         (-fchkp-use-wrappers): Likewise.
15860         (-static-libmpx): Likewise.
15861         (-static-libmpxwrappers): Likewise.
15862         * doc/extend.texi (bnd_legacy): Likewise.
15863         (bnd_instrument): Likewise.
15864         (bnd_variable_size): Likewise.
15865         (Pointer Bounds Checker builtins): Likewise.
15866
15867 2015-03-21  Tom de Vries  <tom@codesourcery.com>
15868
15869         PR tree-optimization/65458
15870         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15871         * cgraph.h (cgraph_node): Add parallelized_function field.
15872         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15873         (input_overwrite_node): Read parallelized_function field.
15874         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15875         parallelized_function on cgraph_node for child_fn.
15876         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15877         Remove include of gt-tree-parloops.h.
15878         (parallelized_functions): Remove static variable.
15879         (parallelized_function_p): Rewrite using parallelized_function field of
15880         cgraph_node.
15881         (create_loop_fn): Remove adding to parallelized_functions.
15882         * Makefile.in (GTFILES): Remove tree-parloops.c
15883
15884 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
15885
15886         PR rtl-optimization/64366
15887         * lra.c (lra_update_insn_regno_info): Consider regs in
15888         CALL_INSN_FUNCTION_USAGE memory.
15889
15890 2015-03-20  Richard Biener  <rguenther@suse.de>
15891
15892         PR middle-end/64715
15893         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15894         for type comparison and gcc_checking_assert.
15895         (chrec_fold_plus_poly_poly): Likewise.
15896         (chrec_fold_multiply_poly_poly): Likewise.
15897         (chrec_convert_1): Likewise.
15898         * gimplify.c (gimplify_expr): Remove premature folding of
15899         &X + CST to &MEM[&X, CST].
15900
15901 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15902
15903         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15904         already is final.
15905         (ipa_inline): Recompute inline_failed codes.
15906         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15907         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15908         CIF_FINAL_ERROR.
15909
15910 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
15911
15912         PR rtl-optimization/60851
15913         * recog.c (constrain_operands): Accept a pseudo register before reload
15914         for LRA enabled targets.
15915
15916 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15917
15918         PR target/65240
15919         * config/rs6000/predicates.md (easy_fp_constant): Remove special
15920         -ffast-math handling that kept non-0 constants live in the RTL
15921         until reload.  Remove logic testing the number of instructions it
15922         took to create a constant in a GPR that was never used, due to a
15923         test for soft-float earlier.
15924         (memory_fp_constant): Delete, no longer used.
15925
15926         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15927         alternatives for loading non-0 constants into GPRs for hard
15928         floating point that is no longer needed due to changes in
15929         easy_fp_constant.  Add support for loading 0.0 into GPRs.
15930         (mov<mode>_hardfloat32): Likewise.
15931         (mov<mode>_hardfloat64): Likewise.
15932         (mov<mode>_64bit_dm): Likewise.
15933         (movtd_64bit_nodm): Likewise.
15934         (pre-reload move FP constant define_split): Delete define_split,
15935         since it is no longer used.
15936         (extenddftf2_internal): Remove GHF constraints that are not valid
15937         for extenddftf2.
15938
15939 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
15940
15941         PR rtl-optimization/63491
15942         * lra-constraints.c (check_and_process_move): Use src instead of
15943         sreg.  Remove some dead code.
15944
15945 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
15946
15947         PR ipa/65380
15948         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15949         (sem_variable::merge): Likewise.
15950
15951 2015-03-19  Martin Liska  <mliska@suse.cz>
15952
15953         PR ipa/65465
15954         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15955         all fields of cgraph_thunk_info.
15956
15957 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15958
15959         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15960         clone instrumented thunks.
15961
15962 2015-03-19  Richard Biener  <rguenther@suse.de>
15963
15964         Revert
15965         2015-03-10  Richard Biener  <rguenther@suse.de>
15966
15967         PR middle-end/63155
15968         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15969         * tree-ssa-coalesce.c: Include timevar.h.
15970         (attempt_coalesce): Handle graph being NULL.
15971         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15972         Split out abnormal coalescing to ...
15973         (perform_abnormal_coalescing): ... this function.
15974         (coalesce_ssa_name): Perform abnormal coalescing without computing
15975         live/conflict.
15976         (verify_ssa_coalescing_worker): New function.
15977         (verify_ssa_coalescing): Likewise.
15978
15979 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15980             Jakub Jelinek  <jakub@redhat.com>
15981
15982         PR sanitizer/65400
15983         * tsan.c (instrument_gimple): Clear tail call flag on
15984         calls.
15985
15986 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15987
15988         PR sanitizer/65400
15989         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15990         call in the return bb.
15991         (find_split_points): Add RETURN_BB argument, don't call
15992         find_return_bb.
15993         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
15994         if true append TSAN_FUNC_EXIT internal call after the call to
15995         the split off function.
15996         (execute_split_functions): Call find_return_bb here.
15997         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15998         Adjust find_split_points and split_function calls.
15999
16000 2015-03-18  DJ Delorie  <dj@redhat.com>
16001
16002         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
16003         (iorqi3_virt): Likewise.
16004
16005 2015-03-18  Tom de Vries  <tom@codesourcery.com>
16006
16007         * tree-parloops.c (parallelize_loops): Make static.
16008         * tree-parloops.h (parallelize_loops): Remove extern declaration.
16009
16010 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
16011
16012         PR middle-end/64491
16013         Revert:
16014         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
16015
16016         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
16017         condition would be removed due to undefined behaviour.
16018
16019 2015-03-18  Martin Liska  <mliska@suse.cz>
16020
16021         PR ipa/65432
16022         * cgraph.c (cgraph_node::get_create): Remove unnecessary
16023         xstrdup_for_dump wrapper.
16024         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
16025         sem_item::name.
16026         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16027         with xstrdup_for_dump.
16028         (sem_variable::equals): Likewise.
16029         (sem_item_optimizer::read_section): Use symtab_node::name instead of
16030         sem_item::name.
16031         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16032         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16033         symtab_node::asm_name with xstrdup_for_dump.
16034         (congruence_class::dump): Use symtab_node::name instead of
16035         sem_item::name.
16036         * ipa-icf.h (symtab_node::name): Remove.
16037         (symtab_node::asm_name): Likewise.
16038
16039 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
16040
16041         PR tree-optimization/65450
16042         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16043         function.
16044         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16045         it instead of duplicate_ssa_name_ptr_info.
16046
16047         PR target/65222
16048         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16049
16050 2015-03-18  Richard Biener  <rguenther@suse.de>
16051
16052         * tree-data-ref.h (struct access_matrix): Remove.
16053         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16054         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16055         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16056         (am_vector_index_for_loop): Likewise.
16057         (struct data_reference): Remove access_matrix member.
16058         (DR_ACCESS_MATRIX): Remove.
16059         (lambda_vector_new): Add comment.
16060         (lambda_matrix_new): Use XOBNEWVEC.
16061
16062 2015-03-18  Richard Biener  <rguenther@suse.de>
16063
16064         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16065         (pass_ch::execute): Cleanup the CFG only if we did sth.
16066         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16067
16068 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16069
16070         * expmed.c (synth_mult): Use std::swap instead of manually
16071         swapping algorithms.
16072
16073 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
16074
16075         PR target/65078
16076         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16077
16078 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
16079
16080         PR target/65296
16081         * config/avr/avr.opt (-nodevicelib): New option.
16082         * doc/invoke.texi (AVR Options): Document it.
16083         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16084         libgcc.a, libc.a, libm.a.
16085         * config/avr/specs.h: Same.
16086         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16087         which don't (directly) depend on the device.  Print more help.
16088         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16089         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16090         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16091         case of an error.
16092         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16093         for specs file name.
16094         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16095         * config/avr/avr-mcus.def: Adjust initializers and comments.
16096
16097 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
16098
16099         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16100         DECL_ONE_ONLY to check if decl is one only.
16101         * ipa-split.c (consider_split): Limit splitt of one only functions.
16102
16103 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16104
16105         PR tree-optimization/65427
16106         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16107         functions.
16108         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16109
16110 2015-03-16  Marek Polacek  <polacek@redhat.com>
16111
16112         * cgraph.h (add_new_static_var): Remove declaration.
16113         * varpool.c (add_new_static_var): Remove function.
16114
16115 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16116
16117         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16118         instead of vec<tree> * with vec_alloc and release for args.
16119         Adjust all users.
16120
16121         PR middle-end/65431
16122         * omp-low.c (delete_omp_context): Only splay_tree_delete
16123         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16124         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
16125
16126 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16127
16128         PR sanitizer/64820
16129         * cfgexpand.c (align_base): New function.
16130         (alloc_stack_frame_space): Call it.
16131         (expand_stack_vars): Align prev_frame to be sure
16132         data->asan_vec elements aligned properly.
16133
16134 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
16135
16136         PR middle-end/65409
16137         * expr.c (store_field): Do not do a direct block copy if the source is
16138         a PARALLEL with BLKmode.
16139
16140 2015-03-16  Tom de Vries  <tom@codesourcery.com>
16141
16142         PR middle-end/65414
16143         Revert:
16144         2015-03-12  Tom de Vries  <tom@codesourcery.com>
16145
16146         PR rtl-optimization/64895
16147         * lra-lives.c (check_pseudos_live_through_calls): Use
16148         actual_call_used_reg_set instead of call_used_reg_set, if available.
16149
16150 2015-03-16  Alan Modra  <amodra@gmail.com>
16151
16152         PR target/63150
16153         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16154         Modify Z->r bswapdi splitter to use dest in place of scratch.
16155         In r->Z and Z->r bswapdi splitter rename word_high, word_low
16156         to word1, word2 and rearrange logic to suit.
16157         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16158         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
16159         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16160         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
16161         early clobber.
16162
16163 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
16164
16165         PR tree-optimization/65369
16166         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16167         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16168         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16169
16170         PR tree-optimization/65418
16171         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16172         are casts in the first PLUS_EXPR operand, ensure tbias and
16173         *totallowp are in the inner type.
16174
16175         PR rtl-optimization/65401
16176         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16177         argument.  If true, adjust_address_nv of x with big-endian
16178         correction for the mode widening to GET_MODE (y).
16179         (make_field_assignment): Don't do MEM mode widening here.
16180         Use MEM_P instead of GET_CODE == MEM.
16181
16182 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16183
16184         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16185         the external decls.
16186
16187 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16188
16189         PR target/64600
16190         * config/arm/arm.c (arm_gen_constant, AND case): Use
16191         ARM_SIGN_EXTEND when constructing AND mask.
16192
16193 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16194
16195         * graph.c (print_graph_cfg): Make function names visible and append
16196         parenthesis to it.  Also make groups of basic blocks belonging to the
16197         same function visible.
16198
16199 2015-03-12  Richard Biener  <rguenther@suse.de>
16200
16201         PR middle-end/44563
16202         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16203         to avoid quadratic behavior with inline expansion splitting blocks.
16204         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16205         with the successor if the predecessor will be merged with it.
16206         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16207         entry block with its successor.
16208
16209 2015-03-13  Richard Biener  <rguenther@suse.de>
16210
16211         PR middle-end/44563
16212         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16213         (cleanup_tree_cfg_1): Do not call it.
16214         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16215         (fixup_noreturn_call): Mark the stmt as control altering.
16216         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16217         here.
16218         (pass_data_fixup_cfg): Produce a dump file.
16219         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16220         (need_noreturn_fixup): New global.
16221         (pass_dominator::execute): Fixup queued noreturn calls.
16222         (optimize_stmt): Queue calls that became noreturn for fixup.
16223         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16224         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16225         (el_to_fixup): New global.
16226         (eliminate_dom_walker::before_dom_childre): Queue calls that
16227         became noreturn for fixup.
16228         (eliminate): Fixup queued noreturn calls.
16229         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16230         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16231         (substitute_and_fold_dom_walker::before_dom_children): Queue
16232         alls that became noreturn for fixup.
16233         (substitute_and_fold): Fixup queued noreturn calls.
16234
16235 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
16236
16237         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16238         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16239         are building; for methods check ODR type of class they belong to if
16240         they may lead to a polymorphic call.
16241         (sem_function::compare_polymorphic_p): Be bit smarter about testing
16242         when function may lead to a polymorphic call.
16243         (sem_function::compare_type_list): Remove.
16244         (sem_variable::equals): Update use of compatible_types_p.
16245         (sem_variable::parse_tree_refs): Remove.
16246         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16247         cdtor.
16248         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16249         matching here.
16250         (func_checker::compatible_polymorphic_types_p): Break out from ...
16251         (unc_checker::compatible_types_p): ... here.
16252         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16253         Declare.
16254         (unc_checker::compatible_types_p): Update.
16255         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16256         Remove.
16257
16258 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16259
16260         PR rtl-optimization/65235
16261         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16262         When first element of vec_concat is const_int, calculate its size
16263         using second element.
16264
16265 2015-03-12  Richard Biener  <rguenther@suse.de>
16266
16267         PR middle-end/65270
16268         * fold-const.c (operand_equal_p): Fix ordering of resetting
16269         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16270
16271 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16272
16273         * config/s390/s390.c (s390_reorg): Move code to output nops after label
16274         to s390_reorg ().
16275         (s390_asm_output_function_label): Likewise.
16276         * config/s390/s390.c (s390_asm_output_function_label):
16277         Fix function label alignment with -mhtopatch.
16278         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16279         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16280         ("nop_2_byte"): New define_insn.
16281         ("nop_4_byte"): Likewise.
16282         ("nop_6_byte"): Likewise.
16283         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16284         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16285
16286 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16287
16288         PR target/65103
16289         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16290         register.
16291
16292 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16293
16294         PR target/65044
16295         * toplev.c (process_options): Restrict Pointer Bounds Checker
16296         usage with Address Sanitizer.
16297
16298 2015-03-12  Richard Biener  <rguenther@suse.de>
16299
16300         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16301         to split on.
16302         * omp-low.c (expand_omp_taskreg): Split block before removing
16303         the stmt.
16304         (expand_omp_target): Likewise.
16305         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16306         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16307         stmt to split_block.
16308
16309 2015-03-12  Tom de Vries  <tom@codesourcery.com>
16310
16311         PR rtl-optimization/64895
16312         * lra-lives.c (check_pseudos_live_through_calls): Use
16313         actual_call_used_reg_set instead of call_used_reg_set, if available.
16314
16315 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16316
16317         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16318         (cgraph_node::remove): Likewise.
16319         (cgraph_node::get_untransformed_body): Likewise.
16320         * varpool.c (varpool_node::remove): Likewise.
16321         (varpool_node::get_constructor): Add sanity check.
16322
16323 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
16324
16325         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16326         old GCC versions.
16327         (-fabi-compat-version): Likewise.
16328         (-ffriend-injection): Likewise.
16329         (-Wdeclaration-after-statement): Likewise.
16330         (-fomit-frame-pointer): Likewise.
16331         (-ftree-coalesce-inlined-vars): Likewise.
16332         (-fvisibility=): Likewise.
16333         * doc/extend.texi (Typeof): Likewise.
16334         (Zero Length): Likewise.
16335         (Escaped Newlines): Likewise.
16336         (Compound Literals): Likewise.
16337         (Function Attributes): Likewise.
16338         (Label Attributes): Likewise.
16339         (Type Attributes): Likewise.
16340         (Function Names): Likewise.
16341         (Other Builtins): Likewise.
16342         (Function Specific Option Pragmas): Likewise.
16343         (C++ Interface): Likewise.
16344
16345 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
16346
16347         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16348
16349 2015-03-11  Marek Polacek  <polacek@redhat.com>
16350
16351         PR tree-optimization/65388
16352         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16353
16354 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
16355
16356         PR target/65296
16357         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16358         * configure: Regenerate.
16359         * config.in: Regenerate.
16360         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16361         [-mn-flash]: Document it.
16362         [__AVR_ARCH__]: Document avrtiny.
16363
16364         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16365         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16366         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16367
16368 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16369
16370         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16371
16372 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16373
16374         PR target/65242
16375         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16376         allow reloads of PLUS in floating point/VSX registers.
16377
16378 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
16379
16380         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16381         crypto_sha256_fast.
16382         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16383
16384 2015-03-11  Richard Biener  <rguenther@suse.de>
16385
16386         PR tree-optimization/65310
16387         * tree-sra.c (build_ref_for_offset): Also preserve larger
16388         alignment.
16389
16390 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
16391
16392         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16393
16394 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16395
16396         PR target/65368
16397         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16398         new define_expand.
16399         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16400
16401 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16402
16403         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16404         (sem_function::equals_wpa): ... here.
16405
16406 2015-03-10  Marek Polacek  <polacek@redhat.com>
16407             Jakub Jelinek  <jakub@redhat.com>
16408
16409         PR sanitizer/65367
16410         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16411         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
16412         separately.
16413
16414 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16415
16416         PR target/65286
16417         * config/rs6000/t-linux: For powerpc64* target set
16418         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16419
16420 2015-03-10  Richard Biener  <rguenther@suse.de>
16421
16422         PR middle-end/44563
16423         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16424         for redirect_all_calls.
16425
16426 2015-03-10  Marek Polacek  <polacek@redhat.com>
16427
16428         * gdbinit.in (pcfun): Define and document.
16429
16430 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
16431
16432         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16433         of libgomp-plugin.h.
16434         (find_target_compiler): Support a case when the path to gcc is
16435         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16436         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16437         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16438         libgomp-plugin.h.
16439         (main): Use GCC_INSTALL_NAME as target_driver_name.
16440         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16441         define.
16442         (mkoffload.o): Remove obsolete include path and defines.
16443         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16444
16445 2015-03-10  Richard Biener  <rguenther@suse.de>
16446
16447         PR middle-end/63155
16448         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16449         * tree-ssa-coalesce.c: Include timevar.h.
16450         (attempt_coalesce): Handle graph being NULL.
16451         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16452         Split out abnormal coalescing to ...
16453         (perform_abnormal_coalescing): ... this function.
16454         (coalesce_ssa_name): Perform abnormal coalescing without computing
16455         live/conflict.
16456         (verify_ssa_coalescing_worker): New function.
16457         (verify_ssa_coalescing): Likewise.
16458
16459 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
16460
16461         PR target/65296
16462         * config.gcc (extra_options) [avr]: Remove.
16463         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16464         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16465         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16466
16467         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16468         (-mmcu=): Add Var and MissingArgError properties.
16469         (-march=): Remove.
16470         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16471         * config/avr/t-multilib: Regenerate.
16472         * config/avr/specs.h: New file.
16473         * config/avr/driver-avr.c: New file.
16474         * config/avr/genopt.sh: Remove file.
16475         * config/avr/avr-tables.opt: Remove file.
16476         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16477         * config/avr/avr-c.c: Same.
16478         * avr-arch.h: Same.
16479         (avr_current_device): Remove proto.
16480         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16481         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16482         (EXTRA_SPEC_FUNCTIONS): Define.
16483         (avr_devicespecs_file): New specs function proto.
16484         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16485         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16486         (avr_current_device): Remove definition and usage.
16487         (avr_set_core_architecture): New static function.
16488         (avr_option_override): Use it.
16489         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16490         (mcu_name): New static array.
16491         (comparator, avr_archs_str, avr_mcus_str): New static functions.
16492         (avr_inform_devices, avr_inform_core_architectures): New functions.
16493         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16494         (avrlibc.h) [WITH_AVRLIBC]: Include.
16495         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16496         (print_mcu): Rewrite from scratch.
16497         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16498         Forward to avr-specific specs defined in device-specs file.
16499         * config/avr/t-avr (driver-avr.o): New rule.
16500         (avr-devices.o): Depend on avr-arch.h.
16501         (avr-mcus): No more depend on avr-tables.opt.
16502         (avr-tables.opt): Remove rule.
16503         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16504
16505 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16506
16507         * c-family/c.opt (fchkp-use-wrappers): New.
16508         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16509         (chkp_wrap_function): New.
16510         (chkp_build_instrumented_fndecl): Support wrapped
16511         functions.
16512         * doc/invoke.texi (-fcheck-pointer-bounds): New.
16513         (-fchkp-check-incomplete-type): New.
16514         (-fchkp-first-field-has-own-bounds): New.
16515         (-fchkp-narrow-bounds): New.
16516         (-fchkp-narrow-to-innermost-array): New.
16517         (-fchkp-optimize): New.
16518         (-fchkp-use-fast-string-functions): New.
16519         (-fchkp-use-nochk-string-functions): New.
16520         (-fchkp-use-static-bounds): New.
16521         (-fchkp-use-static-const-bounds): New.
16522         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16523         (-fchkp-check-read): New.
16524         (-fchkp-check-write): New.
16525         (-fchkp-store-bounds): New.
16526         (-fchkp-instrument-calls): New.
16527         (-fchkp-instrument-marked-only): New.
16528         (-fchkp-use-wrappers): New.
16529         (-static-libmpx): New.
16530         (-static-libmpxwrappers): New.
16531
16532 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16533
16534         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16535         (CHKP_SPEC): Add wrappers library.
16536         * c-family/c.opt (static-libmpxwrappers): New.
16537
16538 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16539
16540         * config/i386/linux-common.h (LIBMPX_LIBS): New.
16541         (LIBMPX_SPEC): New.
16542         (CHKP_SPEC): New.
16543         * gcc.c (CHKP_SPEC): New.
16544         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16545         * c-family/c.opt (static-libmpx): New.
16546
16547 2015-03-10  Richard Biener  <rguenther@suse.de>
16548
16549         PR middle-end/44563
16550         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16551         for compare_type.
16552         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16553         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16554         (cgraph_add_edge_to_call_site_hash): Likewise.
16555         (cgraph_node::get_edge): Likewise.
16556         (cgraph_edge::set_call_stmt): Likewise.
16557         (cgraph_edge::remove_caller): Likewise.
16558
16559 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
16560
16561         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16562         (callee_saved_gpr_regs_size): ... this.
16563         (callee_saved_regs_first_regno): Rename to ...
16564         (callee_saved_first_gpr_regno): ... this.
16565         (callee_saved_regs_last_regno) Rename to ...
16566         (callee_saved_last_gpr_regno): ... this.
16567         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16568         variables.
16569         (nds32_initial_elimination_offset): Likewise.
16570         (nds32_expand_prologue): Likewise.
16571         (nds32_expand_epilogue): Likewise.
16572         (nds32_expand_prologue_v3push): Likewise.
16573         (nds32_expand_epilogue_v3pop): Likewise.
16574         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16575         Adjust renamed variables.
16576         (nds32_output_stack_pop): Likewise.
16577
16578 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16579
16580         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16581         code in comment.
16582
16583 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16584
16585         PR rtl-optimization/65321
16586         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16587         than shift mode.
16588         * var-tracking.c (use_narrower_mode): Likewise.
16589
16590 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16591
16592         PR tree-optimization/65355
16593         * varasm.c (notice_global_symbol): Do not produce RTL.
16594         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16595         anchor.
16596         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16597         check for section anchors.
16598
16599 2015-03-10  Alan Modra  <amodra@gmail.com>
16600
16601         PR target/65286
16602         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16603         to be single-arch by default.  Set cpu_is_64bit for powerpc64
16604         given --with-cpu=native.
16605         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16606         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16607         and powerpc64le.
16608         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16609         rs6000_isa_flags rather than TARGET_64BIT.
16610
16611 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
16612             Kaz Kojima  <kkojima@gcc.gnu.org>
16613
16614         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16615
16616 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
16617
16618         PR lto/65361
16619         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16620         on a TREE_BINFO, instead use BINFO_TYPE.
16621
16622 2015-03-09  Richard Biener  <rguenther@suse.de>
16623
16624         PR middle-end/65270
16625         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16626         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16627         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
16628         of that.  When comparing dereferences compare alignment.
16629         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16630
16631 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16632
16633         * ipa-inline-analysis.c (check_callers): Check
16634         node->can_remove_if_no_direct_calls_and_refs_p.
16635         (growth_likely_positive): Reorganize to call
16636         can_remove_if_no_direct_calls_p later.
16637         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16638         will_be_removed_from_program_if_no_direct_calls_p): Add
16639         will_inline parameter.
16640         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16641         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16642         Handle inliner case correctly.
16643
16644 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16645
16646         PR tree-optimization/63743
16647         * cfgexpand.c (reorder_operands): Also reorder if only second operand
16648         had its definition forwarded by TER.
16649
16650 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16651
16652         PR lto/65316
16653         * ipa-utils.h (types_odr_comparable): Add strict argument.
16654         * ipa-devirt.c: Fix whitespace;
16655         (odr_hasher): Remove.
16656         (odr_name_hasher, odr_vtable_hasher): New hashers.
16657         (can_be_name_hashed_p): New predicate.
16658         (hash_type_name): remove.
16659         (hash_odr_name): New.
16660         (odr_name_hasher::hash): new.
16661         (can_be_vtable_hashed_p): New.
16662         (hash_odr_vtable): New.
16663         (odr_vtable_hasher::hash): New.
16664         (types_same_for_odr): Add strict parameter.
16665         (types_odr_comparable): Likewise.
16666         (odr_name_hasher::equal): New.
16667         (odr_vtable_hasher::equal): New.
16668         (odr_name_hasher::remove): New.
16669         (odr_hash_type): Change to hash_table<odr_name_hasher>.
16670         (odr_vtable_hash_type): New.
16671         (odr_vtable_hash): New.
16672         (odr_subtypes_equivalent_p): Do strict comparsion.
16673         (add_type_duplicate): Merge type names; cleanup; avoid type
16674         duplicates.
16675         (register_odr_type): Initialize vtable hash.
16676         (build_type_inheritance_graph): Likewise
16677         (get_odr_type): Reorg to use two hashes.
16678         (dump_possible_polymorphic_call_targets): Move sanity check after debug
16679         output.
16680         (ipa_devirt): Dump type_inheritance_graph.
16681         (types_same_for_odr): Add strict mode.
16682
16683 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16684
16685         PR ipa/65334
16686         * cgraph.h (symtab_node): Add definition_alignment,
16687         can_increase_alignment_p and increase_alignment.
16688         * symtab.c (symtab_node::can_increase_alignment_p,
16689         increase_alignment_1, symtab_node::increase_alignment,
16690         symtab_node::definition_alignment): New.
16691         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16692         can_increase_alignment_p.
16693         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16694         * tree-vect-stmts.c (ensure_base_align): Likewise.
16695         * varasm.c (function_section_1): Use definition_alignment.
16696         (assemble_start_function): Likewise.
16697         (emit_local): likewise.
16698         (build_constant_desc): Likewsie.
16699         (output_constant_def_contents): Likewise.
16700         (place_block_symbol): Likewise.
16701         (output_object_block): Likewise.
16702
16703 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16704
16705         PR ipa/65316
16706         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16707         when outputting debug.
16708
16709 2015-03-07  Marek Polacek  <polacek@redhat.com>
16710             Martin Uecker  <uecker@eecs.berkeley.edu>
16711
16712         PR sanitizer/65280
16713         * doc/invoke.texi: Update description of -fsanitize=bounds.
16714
16715 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16716
16717         * tree-ssa-phiopt.c (neg_replacement): Remove.
16718         (tree_ssa_phiopt_worker): Remove negate optimization.
16719
16720 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16721
16722         PR ipa/65302
16723         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16724
16725 2015-03-06  Richard Biener  <rguenther@suse.de>
16726
16727         PR middle-end/64928
16728         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16729         and liveout_obstack members.
16730         (calculate_live_on_exit): Remove.
16731         (calculate_live_ranges): Change declaration.
16732         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16733         (new_tree_live_info): Adjust.
16734         (calculate_live_ranges): Delete livein when not wanted.
16735         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16736         Deal with partly deleted live info.
16737         (loe_visit_block): Remove temporary bitmap by using
16738         bitmap_ior_and_compl_into.
16739         (live_worklist): Adjust accordingly.
16740         (calculate_live_on_exit): Make static.
16741         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16742         we do not need livein.
16743
16744 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
16745
16746         * real.c (real_from_string): Fix typo in assertion.
16747
16748 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
16749
16750         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16751         the patch.
16752
16753 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16754
16755         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16756
16757 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
16758
16759         PR target/64342
16760         * lra-assigns.c (find_hard_regno_for): Rename to
16761         find_hard_regno_for_1.  Add a new parameter.
16762         (find_hard_regno_for): New function using find_hard_regno_for_1.
16763
16764 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16765
16766         PR rtl-optimization/65067
16767         * expmed.c (store_bit_field, extract_bit_field): Reworked the
16768         strict volatile bitfield handling.
16769
16770 2015-03-05  Martin Liska  <mliska@suse.cz>
16771
16772         PR ipa/65318
16773         * ipa-icf.c (sem_variable::equals): Compare variables types.
16774
16775 2015-03-05  Richard Henderson  <rth@redhat.com>
16776
16777         PR target/65121
16778         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16779         correctly check weak symbol binding.
16780
16781 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
16782
16783         PR middle-end/65315
16784         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16785         needed alignment.
16786
16787 2015-03-05  Martin Liska  <mliska@suse.cz>
16788
16789         * ipa-inline.c (inline_small_functions): Set default value to
16790         prevent warning during bootstrap.
16791         * tree.h: Add pragma guard that ignores false positives during
16792         bootstrap.
16793
16794 2015-03-05  Richard Biener  <rguenther@suse.de>
16795
16796         PR tree-optimization/65310
16797         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16798         Properly preserve alignment of the base of the access.
16799
16800 2015-03-05  Richard Biener  <rguenther@suse.de>
16801
16802         PR ipa/65270
16803         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16804         Compare dependence info.
16805
16806 2015-03-05  Richard Biener  <rguenther@suse.de>
16807
16808         PR middle-end/65233
16809         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16810         tree-into-ssa.h.
16811         (walk_ssa_copies): Revert last chage.  Instead do not walk
16812         SSA names registered for SSA update.
16813
16814 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16815
16816         PR ipa/65270
16817         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16818         vtable references for their containing type.
16819         (sem_function::equals_wpa): Compare TYPE_RESTRICT
16820         and type attributes.
16821
16822 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16823
16824         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16825         before negating it.
16826         * stor-layout.c (finalize_record_size): Revert latest change.
16827
16828 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
16829
16830         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16831
16832 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16833
16834         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16835         for correct comdat handling.
16836         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16837         Likewise.
16838         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16839         (used_from_object_file_p_worker): Remove.
16840         (cgraph_node::only_called_directly_or_alised): Add
16841         used_from_object_file_p.
16842         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16843         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16844         can_remove_if_no_direct_calls_and_refs_p.
16845
16846 2015-03-04  Nick Clifton  <nickc@redhat.com>
16847
16848         * config/rl78/rl78.h (enum reg_class): Remove real registers from
16849         General register class.
16850         * config/rl78/rl78-real.md: Replace general register constraints
16851         with real+virtual register constraints.
16852
16853 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16854
16855         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16856         from checking for -mhtm option.
16857
16858 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16859
16860         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16861         (struct ipa_sra_check_caller_data): Add has_thunk field.
16862         (ipa_sra_check_caller): Check for thunk.
16863         (ipa_sra_preliminary_function_checks): Give up on function with
16864         thunks.
16865         (ipa_early_sra): Use call_for_symbol_and_aliases.
16866
16867 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16868
16869         PR target/65249
16870         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16871         called for __stack_chk_guard symbol.
16872
16873 2015-03-03  DJ Delorie  <dj@redhat.com>
16874
16875         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16876         inc/dec.
16877         (*addhi3_real): Likewise.
16878         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16879         pattern to match incrementing memory.
16880         * config/rl78/predicates.md (rl78_1_2_operand): New.
16881         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16882         it's the same and only mem.
16883         (rl78_alloc_physical_registers_op2): If there's effectively only
16884         one MEM, transcode it into HL.
16885         (rl78_far_p): Reject addresses that aren't legitimate.
16886
16887 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16888
16889         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16890         negating it.
16891
16892         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16893
16894 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16895
16896         Implement call0 ABI for xtensa
16897         * config/xtensa/constraints.md ("a" constraint): Include stack
16898         pointer in case of call0 ABI.
16899         ("q" constraint): Make empty in case of call0 ABI.
16900         ("D" constraint): Include stack pointer in case of call0 ABI.
16901         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16902         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16903         prototypes.
16904         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16905         variable.
16906         (xtensa_regno_to_class): Make it a local variable in the
16907         function xtensa_regno_to_class.
16908         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16909         macro, function prototype and implementation.
16910         (reg_nonleaf_alloc_order): Make it a local variable in the
16911         function order_regs_for_local_alloc.
16912         (xtensa_conditional_register_usage): New function.
16913         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16914         (xtensa_valid_move): Allow direct moves to stack pointer
16915         register in call0 ABI.
16916         (xtensa_setup_frame_addresses): Only spill register windows in
16917         windowed ABI.
16918         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16919         call0 ABI respectively.
16920         (xtensa_function_arg_1): Only mark a7 register for copying in
16921         windowed ABI.
16922         (xtensa_call_save_reg): New function.
16923         (compute_frame_size): Add space for callee saved register
16924         storage to the frame size in call0 ABI.
16925         (xtensa_expand_prologue): Generate code to set up stack frame
16926         and save callee-saved registers in call0 ABI.
16927         (xtensa_expand_epilogue): New function.
16928         (xtensa_set_return_address): New function.
16929         (xtensa_return_addr): Calculate return address in call0 ABI.
16930         (xtensa_builtin_saveregs): Only mark a7 register for copying and
16931         emit copying code in windowed ABI.
16932         (order_regs_for_local_alloc): Add preferred register allocation
16933         order for non-leaf function in call0 ABI.
16934         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16935         (xtensa_asm_trampoline_template): Add trampoline generation for
16936         call0 ABI.
16937         (xtensa_trampoline_init): Add trampoline initialization for
16938         call0 ABI.
16939         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16940         functions.
16941         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16942         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16943         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16944         ABI call-used registers.
16945         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16946         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16947         call0 ABI.
16948         (REG_CLASS_CONTENTS): Include all registers into the preferred
16949         reload registers set, adjust the set in the
16950         xtensa_conditional_register_usage.
16951         (xtensa_regno_to_class): Drop variable declaration.
16952         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16953         function.
16954         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16955         respectively.
16956         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16957         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16958         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16959         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16960         location in call0 ABI.
16961         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16962         stack adjustment size when handling exception.
16963         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16964         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16965         definitions.
16966         ("return" pattern): Generate ret.n/ret in call0 ABI.
16967         ("epilogue" pattern): Expand epilogue.
16968         ("nonlocal_goto" pattern): Use default in call0 ABI.
16969         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16970         emit eh_set_a0_* depending on ABI.
16971         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16972         ("eh_set_a0_call0", "blockage"): New patterns.
16973
16974 2015-03-03  Martin Liska  <mliska@suse.cz>
16975
16976         PR ipa/65287
16977         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16978
16979 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16980
16981         PR 65138/target
16982         * config/rs6000/rs6000-tables.opt: Regenerate table.
16983
16984 2015-03-03  Renlin Li  <renlin.li@arm.com>
16985
16986         * doc/md.texi (@item ^): Change ? into ^.
16987
16988 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
16989
16990         * doc/tm.texi: Regenerated.
16991
16992 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16993
16994         * builtins.c (expand_builtin_return_addr): Add
16995         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16996         surrounding #ifdef.
16997         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16998         definition to 1.
16999         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
17000         Likewise.
17001         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
17002         undefined.
17003         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
17004         paragraph.
17005
17006 2015-03-03  Martin Jambor  <mjambor@suse.cz>
17007             Eric Botcazou  <ebotcazou@adacore.com>
17008
17009         * tree-sra.c (ipa_sra_check_caller_data): New type.
17010         (has_caller_p): Removed.
17011         (ipa_sra_check_caller): New function.
17012         (ipa_sra_preliminary_function_checks): Use it.
17013
17014 2015-03-03  Martin Liska  <mliska@suse.cz>
17015
17016         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
17017         instead of if branch.
17018
17019 2015-03-03  Martin Liska  <mliska@suse.cz>
17020
17021         PR ipa/65282
17022         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
17023
17024 2015-03-23  Jeff Law  <law@redhat.com>
17025
17026         PR tree-optimization/65241
17027         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17028         hash table if INSERT is true.
17029
17030 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17031
17032         PR target/65296
17033         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17034
17035 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17036
17037         PR target/64331
17038         * config/avr/avr.c (context.h, tree-pass.h): Include them.
17039         (avr_pass_data_recompute_notes): New static variable.
17040         (avr_pass_recompute_notes): New class.
17041         (avr_register_passes): New static function.
17042         (avr_option_override): Call it.
17043
17044 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17045
17046         Fix various problems with specs file generation.
17047
17048         PR target/65296
17049         * config.gcc (extra_gcc_objs) [avr]: Remove.
17050         * config/avr/driver-avr.c: Remove file.
17051         * config/avr/t-avr (driver-avr.o): Remove rule.
17052         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17053         INCLUDES to build.  Depend on TM_H.
17054         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
17055         build warnings.  Fix non-matching types and non-existing %-codes.
17056         (tm.h): Include.
17057         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17058         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17059         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17060         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17061         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17062         (LIBGCC_SPEC): Remove definitions.
17063
17064 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
17065
17066         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17067         to create a register in testing mode.
17068
17069 2015-03-03  Martin Liska  <mliska@suse.cz>
17070             Jan Hubicka  <hubicka@ucw.cz>
17071
17072         PR ipa/65263
17073         * cgraph.c (cgraph_node::has_thunk_p): New function.
17074         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17075         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17076         (sem_function::merge): Assert is changed.
17077
17078 2015-03-03  Martin Liska  <mliska@suse.cz>
17079             Martin Jambor  <mjambor@suse.cz>
17080
17081         PR ipa/65087
17082         * ipa-icf.c (sem_item_optimizer::execute): Change function
17083         return value to boolean.
17084         (sem_item_optimizer::merge_classes): Likewise.
17085         (ipa_icf_driver): Return TODO_remove_functions in case there's
17086         a merge operation processed.
17087         * ipa-icf.h: Change function return value to boolean.
17088
17089 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17090
17091         PR 65138/target
17092         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17093         processor type for 64-bit little endian PowerPC.
17094
17095         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17096         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
17097         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
17098         printing built-in mask so it does not pass NULL pointers.
17099
17100         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17101         -mcpu=powerpc64le.
17102
17103 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
17104
17105         PR target/58158
17106         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17107         !ISA_HAS_FP_CONDMOVE.
17108
17109 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
17110
17111         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17112         reload_completed.
17113
17114 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
17115
17116         * doc/invoke.texi (Options for Code Generation Conventions):
17117         Fix URL of DSO paper.
17118
17119 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17120
17121         PR ipa/65130
17122         * ipa-inline.c (check_callers): Looks for recursion.
17123         (inline_to_all_callers): Give up on uninlinable or recursive edges.
17124         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17125         summary of inline clones.
17126         (do_estimate_growth_1): Fix recursion check.
17127
17128 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17129
17130         PR ipa/64988
17131         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17132         comdat groups.
17133
17134 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17135             Aldy Hernandez  <aldyh@redhat.com>
17136
17137         PR lto/65276
17138         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17139         when checking TYPE_BINFO.
17140
17141 2015-03-02  Richard Biener  <rguenther@suse.de>
17142
17143         PR ipa/65270
17144         * ipa-icf-gimple.c: Include builtins.h.
17145         (func_checker::compare_memory_operand): Compare base alignment.
17146
17147 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17148
17149         PR target/65184
17150         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17151         are never passed by reference.
17152
17153 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17154
17155         PR target/65183
17156         * tree-chkp.c (chkp_check_lower): Don't check against
17157         zero bounds for already instrumented functions.
17158         (chkp_check_upper): Likewise.
17159         (chkp_fini): Clean pass local data to avoid wrong reusage.
17160
17161 2015-02-28  Martin Liska  <mliska@suse.cz>
17162             Jan Hubicka  <hubicka@ucw.cz>
17163
17164         * ipa-icf.c (sem_variable::equals): Improve debug output;
17165         get variable constructor.
17166         (sem_variable::parse): Do not filter out too early; give up on
17167         volatile and register vars.
17168         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17169         variables.
17170         * ipa-icf.h (sem_variable::init): Do not set ctor.
17171         (sem_variable::ctor): Remove.
17172
17173 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
17174
17175         PR middle-end/65233
17176         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17177
17178 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17179
17180         * ipa-icf.c: Include stor-layout.h
17181         (sem_function::compare_cgraph_references): Rename to ...
17182         (sem_item::compare_cgraph_references): ... this one.
17183         (sem_variable::equals_wpa): New function
17184         (sem_variable::equals): Do not check stuff already verified by
17185         equals_wpa.
17186         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17187         * ipa-icf.h (sem_item): Add compare_cgraph_references.
17188         (sem_function): Remove compare_cgraph_references.
17189         (sem_variable): Turns equals_wpa into non-inline.
17190
17191 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17192
17193         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17194         (sem_item::add_expr): New function.
17195         (sem_function::hash_stmt): Handle operands of most statements.
17196         (sem_variable::get_hash): Hash the actual constructor.
17197         * ipa-icf.h (sem_item): Add add_expr.
17198         (sem_function): Update prototype of hash_stmt
17199
17200 2015-02-28  Martin Liska  <mliska@suse.cz>
17201             Jan Hubicka  <hubicka@ucw.cz>
17202
17203         PR ipa/65245
17204         * ipa-icf-gimple.c (func_checker::compare_function_decl):
17205         Remove.
17206         (func_checker::compare_variable_decl): Skip symtab vars.
17207         (func_checker::compare_cst_or_decl): Update.
17208         * ipa-icf.c (sem_function::parse): Do not consider aliases.
17209         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17210         use correct symtab predicates.
17211         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17212         (sem_variable::parse):  Update comment.
17213         (sem_item_optimizer::build_graph): Consider ultimate aliases
17214         for references.
17215
17216 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17217
17218         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17219         of OBJ_TYPE_REF.
17220
17221 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17222
17223         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17224         (sem_variable::merge) Likewise.
17225
17226 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17227
17228         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17229         target; also match flag_ipa_devirt.
17230
17231 2015-03-01  Martin Liska  <mliska@suse.cz>
17232             Jan Hubicka  <hubicka@ucw.cz>
17233
17234         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17235         Validate variable alignment.
17236         * ipa-icf.c (sem_function::equals_private): Be more precise
17237         about non-common function attributes.
17238         (sem_variable::equals): Likewise.
17239
17240 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17241
17242         PR ipa/65237
17243         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17244         across COMDAT group boundary.
17245
17246 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17247
17248         PR ipa/65232
17249         * ipa-icf.c (clear_decl_rtl): New function.
17250         (sem_function::merge): Clear RTL before forming alias.
17251         (sem_variable::merge): Clear RTL before forming alias.
17252
17253 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17254
17255         PR ipa/65236
17256         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17257
17258 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
17259
17260         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17261         to neon_to_gp<q>.
17262
17263 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17264
17265         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17266         a typo in the description.
17267
17268 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17269
17270         PR target/64317
17271         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17272         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17273         * lra-constraints.c: Include "params.h".
17274         (EBB_PROBABILITY_CUTOFF): Use
17275         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17276         (lra_inheritance): Use '<' instead of '<=' for
17277         EBB_PROBABILITY_CUTOFF.
17278         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17279         Document change.
17280
17281 2015-02-27  Martin Liska  <mliska@suse.cz>
17282
17283         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17284         vector length condition.
17285
17286 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
17287
17288         * doc/extend.texi (x86 transactional memory intrinsics):
17289         Reorganize discussion of _xbegin.  Clarify that the return
17290         value is a bit mask.  Expand example and move to end of section.
17291
17292 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17293             Aldy Hernandez  <aldyh@redhat.com>
17294
17295         PR rtl-optimization/65220
17296         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17297
17298 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17299
17300         PR target/65032
17301         * lra-remat.c (update_scratch_ops): New.
17302         (do_remat): Call it.
17303         * lra.c (lra_register_new_scratch_op): New. Take code from ...
17304         (remove_scratches): ... here.
17305         * lra-int.h (lra_register_new_scratch_op): New prototype.
17306
17307 2015-02-27  Marek Polacek  <polacek@redhat.com>
17308
17309         PR c/65040
17310         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17311         -Wformat-signedness anymore.
17312
17313 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17314
17315         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17316         function.
17317         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17318
17319 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17320
17321         * config/s390/s390.c (enum s390_builtin):
17322         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17323         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17324         (s390_init_builtins): Generate new builtin functions.
17325         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17326         (s390_sfpc, s390_efpc): New pattern definitions.
17327
17328 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17329
17330         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17331         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17332         (s390_builtin_decls): New array.
17333         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17334         (s390_builtin_decl): New function.
17335         (TARGET_BUILTIN_DECL): Define macro.
17336
17337 2015-02-27  Richard Biener  <rguenther@suse.de>
17338
17339         PR middle-end/63175
17340         * builtins.c (get_object_alignment_2): Make sure to re-apply
17341         the ANDed mask after recursing to its operand gets us a new
17342         misalignment bit position.
17343
17344 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
17345             Martin Liska  <mliska@suse.cz>
17346
17347         PR bootstrap/65150
17348         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17349         Use address_matters_p.
17350         (redirect_all_callers, set_addressable): New functions.
17351         (sem_function::merge): Reorganize and fix merging issues.
17352         (sem_variable::merge): Likewise.
17353         (sem_variable::compare_sections): Remove.
17354         * common.opt (fmerge-all-constants, fmerge-constants): Remove
17355         Optimization flag.
17356         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17357         redirect them.
17358         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17359         decl is used.
17360         (address_matters_1): New function.
17361         (symtab_node::address_matters_p): New function.
17362         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17363         check for merged flag.
17364         * cgraph.h (address_matters_p): Declare.
17365         (symtab_node::address_taken_from_non_vtable_p): Remove.
17366         (symtab_node::address_can_be_compared_p): New method.
17367         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17368         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17369         Remove.
17370         (comdat_can_be_unshared_p_1) Use address_matters_p.
17371         (update_vtable_references): Fix formating.
17372         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17373         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17374         * cgraphclones.c: Preserve merged and icf_merged flags.
17375
17376 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
17377
17378         * doc/extend.texi (Function Attributes): Fix spelling and typos.
17379         (Label Attributes): Likewise.
17380         (Cilk Plus Builtins): Likewise.
17381         (ARC SIMD Built-in Functions): Likewise.
17382         (ARM C Language Extensions (ACLE)): Likewise.
17383         (PowerPC Built-in Functions): Likewise.
17384         (PowerPC Hardware Transactional Memory Built-in Functions):
17385         Likewise.
17386
17387 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17388
17389         PR tree-optimization/65216
17390         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17391         new stmt and new SSA_NAME for lhs whenever the arguments have
17392         changed and weren't just swapped.  Fix comment typo.
17393
17394         PR tree-optimization/65215
17395         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17396         for PDP endian targets.
17397         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17398         Fix up formatting issues.
17399         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
17400         size is smaller than the original, adjust MEM_REF offset by the
17401         difference of sizes.  Use is_gimple_mem_ref_addr instead of
17402         is_gimple_min_invariant test to avoid adding address temporaries.
17403
17404 2015-02-26  Martin Liska  <mliska@suse.cz>
17405             Jan Hubicka  <hubicka@ucw.cz>
17406
17407         PR ipa/64693
17408         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17409         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17410         (sem_item_optimizer::process_cong_reduction): Include division by
17411         sensitive references.
17412         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17413         * ipa-ref.c (ipa_ref::address_matters_p): New function.
17414         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17415
17416 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
17417
17418         PR target/65192
17419         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17420         Remove.
17421         * config/avr/avr.c: Same.
17422         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17423         Refuse any constant address not in 0..0xbf.
17424         * config/avr/avr.md (*mov<mode>, *movsf): Remove
17425         tiny_valid_direct_memory_access_range from insn conditions.
17426         (mov<mode>): Don't special-case expansion of avrtiny addresses.
17427
17428 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
17429
17430         PR target/61142
17431         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17432         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17433         * config/sh/predicates.md (const_logical_operand): New predicate.
17434         * config/sh/sh.md: Add new peephole2 patterns.
17435
17436 2015-02-26  Marek Polacek  <polacek@redhat.com>
17437
17438         PR ipa/65008
17439         * ipa-inline.c (early_inliner): Recompute inline parameters.
17440
17441 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17442
17443         PR target/65171
17444         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17445         instructions with TImode operands are included in the analysis.
17446
17447 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
17448
17449         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17450         of an EDGE_FSM_THREAD.
17451
17452 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17453
17454         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17455
17456 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
17457
17458         PR debug/46102
17459         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17460
17461 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
17462
17463         PR tree-optimization/65048
17464         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17465         (thread_through_all_blocks): Call valid_jump_thread_path.
17466         Remove invalid FSM jump-thread paths.
17467
17468 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17469
17470         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17471         (ipa_write_optimization_summaries): Likewise.
17472         * tree-streamer.h: Include data-streamer.h.
17473         (streamer_mode_table): Declare extern variable.
17474         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17475         * lto-streamer-out.c (lto_output_init_mode_table,
17476         lto_write_mode_table): New functions.
17477         (produce_asm_for_decls): Call lto_write_mode_table when streaming
17478         offloading LTO.
17479         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17480         (lto_create_simple_input_block): Add mode_table argument to the
17481         lto_input_block constructors.
17482         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17483         Likewise.
17484         * data-streamer-in.c (string_for_index): Likewise.
17485         * ipa-inline-analysis.c (inline_read_section): Likewise.
17486         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17487         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17488         * lto-streamer-in.c (lto_read_body_or_constructor,
17489         lto_input_toplevel_asms): Likewise.
17490         (lto_input_mode_table): New function.
17491         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17492         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17493         Use bp_pack_machine_mode.
17494         * real.h (struct real_format): Add name field.
17495         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17496         (class lto_input_block): Add mode_table member.
17497         (lto_input_block::lto_input_block): Add mode_table_ argument,
17498         initialize mode_table.
17499         (struct lto_file_decl_data): Add mode_table field.
17500         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17501         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17502         unpack_ts_decl_common_value_fields,
17503         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17504         * tree-streamer.c (streamer_mode_table): New variable.
17505         * real.c (ieee_single_format, mips_single_format,
17506         motorola_single_format, spu_single_format, ieee_double_format,
17507         mips_double_format, motorola_double_format,
17508         ieee_extended_motorola_format, ieee_extended_intel_96_format,
17509         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17510         ibm_extended_format, mips_extended_format, ieee_quad_format,
17511         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17512         decimal_single_format, decimal_double_format, decimal_quad_format,
17513         ieee_half_format, arm_half_format, real_internal_format): Add name
17514         field.
17515         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17516
17517 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
17518
17519         PR target/65161
17520         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17521         reordering for selective scheduling.
17522
17523 2015-02-26  Terry Guo  <terry.guo@arm.com>
17524
17525         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17526         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17527         (arm_arch_no_volatile_ce): Declare new global variable.
17528         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17529         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17530         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17531         (TARGET_NO_VOLATILE_CE): New macro.
17532         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17533         volatile memory access in IT block
17534
17535 2015-02-25  Kai Tietz  <ktietz@redhat.com>
17536
17537         PR tree-optimization/61917
17538         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17539         that reduc_def_stmt is null.
17540
17541 2015-02-25  Martin Liska  <mliska@suse.cz>
17542
17543         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17544         hard register variables.
17545
17546 2015-02-25  Kai Tietz  <ktietz@redhat.com>
17547
17548         PR target/64212
17549         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17550         (symtab::noninterposable_alias): Likewise.
17551
17552 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
17553
17554         PR target/65167
17555         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17556         bounds registers.
17557         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17558
17559 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
17560
17561         PR target/64997
17562         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17563         as split condition; force split via '#' in output pattern.
17564
17565 2015-02-25  Richard Biener  <rguenther@suse.de>
17566             Kai Tietz  <ktietz@redhat.com>
17567
17568         PR tree-optimization/61917
17569         * tree-vect-loop.c (vectorizable_reduction): Allow
17570         vect_internal_def without reduction to exit graceful.
17571
17572 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17573
17574         PR target/65196
17575         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17576         only with NONDEBUG_INSN_P.
17577
17578 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17579
17580         Use variadic macros with avr-log.c.
17581
17582         * config/avr/avr-protos.h (avr_vdump): New prototype.
17583         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17584         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17585         * config/avr/avr-log.c: Adjust comments.
17586         (avr_vdump): New function.
17587         (avr_vadump): Pass caller as 2nd argument instead of format string.
17588         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17589         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17590
17591 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
17592
17593         PR lto/64374
17594         * target.def (target_option_stream_in): New target hook.
17595         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17596         targetm.target_option.post_stream_in if non-NULL.
17597         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17598         * doc/tm.texi: Updated.
17599         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17600         function.
17601         (TARGET_OPTION_POST_STREAM_IN): Redefine.
17602
17603 2015-02-24  Jeff Law  <law@redhat.com>
17604
17605         PR target/65117
17606         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17607         of operand 0 and operand 2.
17608         (zero_cost_loop_end, loop_end): Similarly.
17609
17610 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
17611
17612         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17613         CXX_MEM_STAT_INFO.
17614
17615 2015-02-24  DJ Delorie  <dj@redhat.com>
17616
17617         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17618         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17619         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17620         instead of hardcoding SImode.
17621
17622 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
17623
17624         * omp-low.c (create_omp_child_function): Tag entrypoint
17625         functions with a special attribute.
17626
17627 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17628
17629         PR target/65058
17630         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17631
17632 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
17633
17634         PR rtl-optimization/65123
17635         * lra-remat.c (operand_to_remat): Check hard regs in insn
17636         definition too.
17637
17638 2015-02-24  Nick Clifton  <nickc@redhat.com>
17639
17640         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17641         to the assembler.
17642
17643 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
17644
17645         PR libgomp/64625
17646         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17647         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17648         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17649         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17650         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17651         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17652         (BUILT_IN_GOACC_PARALLEL): Specify as
17653         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17654         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17655         * builtin-types.def
17656         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17657         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17658         Remove function types.
17659         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17660         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17661         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17662         New function types.
17663
17664 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
17665
17666         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17667
17668 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
17669
17670         PR tree-optimization/65170
17671         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17672         if val[1] < 0, clear also val[2] and return 3.
17673
17674 2015-02-24  Alan Modra  <amodra@gmail.com>
17675
17676         PR target/65172
17677         * config/rs6000/rs6000.c (get_memref_parts): Only return true
17678         when *base is a reg.  Handle nested plus addresses.  Simplify
17679         pre_modify test.
17680
17681 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
17682
17683         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17684         use natural alignment when optimizing for size.
17685
17686 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17687
17688         PR target/65153
17689         * config/sh/sh.md (movsicc_true+3): Remove peephole.
17690         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17691         * config/sh/sh.c (replace_n_hard_rtx): Remove.
17692
17693 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
17694
17695         PR fortran/63427
17696         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17697         too big for a wide_int.  Implement missing wrapping operation.
17698
17699 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
17700
17701         PR target/65163
17702         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17703         instead of const_int 4294901760.
17704
17705 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
17706
17707         * config/avr/t-avr: Fix typo in comment.
17708
17709 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
17710
17711         * doc/rtl.texi (fma): Clarify documentation.
17712
17713 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
17714
17715         PR debug/58123
17716         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17717         over input_location.
17718
17719 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17720
17721         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17722         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17723         restrict alignments to absolute_biggest_alignment.
17724         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17725         Define.
17726         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17727         * doc/tm.texi: Regenerate.
17728         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17729
17730 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
17731
17732         PR target/64172
17733         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17734
17735 2015-02-20  Richard Biener  <rguenther@suse.de>
17736
17737         PR tree-optimization/65136
17738         * tree-ssa-propagate.c: Include cfgloop.h.
17739         (replace_phi_args_in): Avoid replacing loop latch edge PHI
17740         arguments with constants.
17741
17742 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
17743             Martin Liska  <mliska@suse.cz>
17744
17745         PR target/63892
17746         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17747         don't try to create_thunk if stdarg_p.  If
17748         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17749         redirect_callers if possible.
17750         (sem_item_optimizer::execute): Call unregister_hooks here...
17751         (ipa_icf_driver): ... instead of here.
17752
17753 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17754
17755         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17756         Mark operand 0 as earlyclobber in 2nd alternative.
17757         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17758         Write negated shift amount into QI lowpart operand 0 and use it
17759         in the shift step.
17760         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17761
17762 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17763
17764         * cgraph.h (clone_function_name_1): Declare.
17765         * cgraphclones.c (clone_function_name_1): New function.
17766         (clone_function_name): Use it.
17767         * lto-partition.c: Include "stringpool.h".
17768         (must_not_rename, maybe_rewrite_identifier)
17769         (validize_symbol_for_target): New static functions.
17770         (privatize_symbol_name): Use must_not_rename.
17771         (promote_symbol): Call validize_symbol_for_target.
17772         (lto_promote_cross_file_statics): Likewise.
17773         (lto_promote_statics_nonwpa): Likewise.
17774
17775 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
17776
17777         PR target/64452
17778         * config/avr/avr.md (pushhi_insn): New insn.
17779         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17780
17781 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17782             Jakub Jelinek  <jakub@redhat.com>
17783
17784         * tree-streamer.c (preload_common_nodes): Don't preload
17785         TI_VA_LIST* for offloading.
17786         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17787         in_lto_p.
17788
17789 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
17790
17791         * config/pa/pa.c (pa_emit_move_sequence): Always force
17792         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
17793         note on insn.
17794
17795         * config/pa/pa.c (pa_reloc_rw_mask): New function.
17796         (TARGET_ASM_RELOC_RW_MASK): Define.
17797         (pa_cannot_force_const_mem): Revert previous change.
17798
17799 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
17800             Jan Hubicka  <hubicka@ucw.cz>
17801
17802         PR ipa/65028
17803         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17804         across jump functions.
17805
17806 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
17807
17808         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17809
17810 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
17811
17812         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17813
17814 2015-02-19  Richard Henderson  <rth@redhat.com>
17815
17816         PR middle-end/65074
17817         * varasm.c (default_binds_local_p_2): Don't test node->definition;
17818         test DECL_EXTERNAL independent of symtab_node.
17819
17820 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
17821
17822         PR lto/65012
17823         * varpool.c (varpool_node::get_constructor): Return early
17824         if this->lto_file_data is NULL.
17825
17826 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17827
17828         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17829         (rank_for_schedule_debug): Update.
17830         (ready_sort): Make static.  Move sorting logic to ...
17831         (ready_sort_debug, ready_sort_real): New static functions.
17832         (schedule_block): Sort both debug insns and real insns in preparation
17833         for ready list trimming.  Improve debug output.
17834         * sched-int.h (ready_sort): Remove global declaration.
17835
17836 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
17837
17838         * ipa-icf.c (sem_function::equals_private): Adjust.
17839         (sem_function::bb_dict_test): Take a vec<int> * instead of
17840         auto_vec<int>.
17841         * ipa-icf.h (bb_dict_test): Likewise.
17842
17843 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17844
17845         PR gcov-profile/64634
17846         * tree-eh.c (frob_into_branch_around): Fix up typos
17847         in function comment.
17848         (lower_catch): Put eh_seq resulting from EH lowering of
17849         the cleanup sequence after the cleanup rather than before it.
17850
17851 2015-02-18  Tom de Vries  <tom@codesourcery.com>
17852
17853         * common.opt (fstdarg-opt): New option.
17854         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17855         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17856         (@item -fstdarg-opt): New item.
17857
17858 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17859
17860         PR target/65064
17861         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17862         for common symbols.
17863
17864 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17865
17866         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17867         insn-modes.h.
17868         (ALL_HOST_OBJS): Add mkoffload.o.
17869         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17870
17871 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
17872
17873         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17874         (compare_virtual_tables): Be smarter about skipping typeinfos;
17875         do sane output on virtual table table mismatch.
17876         (warn_odr): Be ready for forward declarations of enums;
17877         output sane info on base mismatch and virtual table mismatch.
17878         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17879         when only one type is polymorphic.
17880         (get_odr_type): Fix hashtable corruption.
17881         (dump_odr_type): Dump mangled names.
17882
17883 2015-02-18  Richard Biener  <rguenther@suse.de>
17884
17885         PR tree-optimization/65063
17886         * tree-predcom.c (determine_unroll_factor): Return 1 if we
17887         have replaced looparound PHIs.
17888
17889 2015-02-18  Martin Liska  <mliska@suse.cz>
17890
17891         * lto-streamer.c (lto_streamer_init): Encapsulate
17892         streamer_check_handled_ts_structures with checking macro.
17893
17894 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17895
17896         PR ipa/65087
17897         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17898         section if !implicit_section.
17899         (cgraph_node::create_version_clone_with_body): Likewise.
17900         * trans-mem.c (ipa_tm_create_version): Likewise.
17901
17902 2015-02-18  Richard Biener  <rguenther@suse.de>
17903
17904         PR tree-optimization/62217
17905         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17906         into BIVs.
17907
17908 2015-02-18  Marek Polacek  <polacek@redhat.com>
17909
17910         PR sanitizer/65081
17911         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17912         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17913         is in range [-16K, -1].  Don't issue run-time error if
17914         (ptr > ptr + offset).
17915
17916 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
17917
17918         * doc/install.texi (nvptx-*-none): New section.
17919         * doc/invoke.texi (Nvidia PTX Options): Likewise.
17920         * config/nvptx/nvptx.opt: Update.
17921
17922         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17923         (access_check): New functions, copied from
17924         config/i386/intelmic-mkoffload.c.
17925         (main): For non-installed testing, look in all COMPILER_PATHs for
17926         GCC_INSTALL_NAME.
17927
17928         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17929
17930 2015-02-18  Andrew Pinski  <apinski@cavium.com>
17931             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17932
17933         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17934         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17935
17936 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17937
17938         * ipa-visibility.c (function_and_variable_visibility): Only
17939         check locality if node is not already local.
17940         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17941         call_for_symbol_and_aliases instead of
17942         call_for_symbol_thunks_and_aliases.
17943         (ipa_inline): Likewise.
17944         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17945         first walk aliases.
17946         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17947         call_for_symbol_and_aliases.
17948         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17949         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17950         (ipa_propagate_frequency): Update.
17951         (ipa_profile): Add opt_for_fn gueards.
17952
17953 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17954
17955         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17956         * doc/invoke.texi (SH options): Document it.
17957         * config/sh/sh.c (sh_insn_length_adjustment): Check
17958         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17959
17960 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         * common.opt (fipa-cp-alignment): New.
17963         * ipa-cp.c (ipcp_store_alignment_results): Check
17964         flag_ipa_cp_alignment.
17965         * opts.c (default_options_table): Enable -fipa-cp-alignment for
17966         -O2.
17967         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17968         * doc/invoke.texi: Document -fipa-cp-alignment.
17969
17970 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17971
17972         PR target/64793
17973         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17974         to nil.  Adjust comments.
17975
17976 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17977
17978         * ipa-visibility.c (function_and_variable_visibility): Only
17979         check locality if node is not already local.
17980         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17981         call_for_symbol_and_aliases instead of
17982         call_for_symbol_thunks_and_aliases.
17983         (ipa_inline): Likewise.
17984         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17985         first walk aliases.
17986         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17987         call_for_symbol_and_aliases.
17988         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17989         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17990         (ipa_propagate_frequency): Update.
17991         (ipa_profile): Add opt_for_fn guards.
17992
17993 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
17994
17995         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17996         skipping of "strange" tokens.
17997
17998 2015-02-17  Jeff Law  <law@redhat.com>
17999
18000         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
18001         obsolete comment.
18002
18003 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
18004
18005         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
18006         as forcing a HARD_DEP between instructions, thereby
18007         disallowing rewriting to break dependencies.
18008
18009 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
18010
18011         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
18012         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
18013         variables in boundary that have no inlitalizer encoded and are
18014         not aliases.
18015         * varasm.c (default_binds_local_p_2): External definitions do not
18016         count as definitions here.
18017
18018 2015-02-16  Jeff Law  <law@redhat.com>
18019
18020         PR tree-optimization/64823
18021         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
18022         statements.
18023         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18024         threading through blocks with PHIs, but no statements.
18025         (thread_through_normal_block): Distinguish between blocks where
18026         we did not process all the statements and blocks with no statements.
18027
18028 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
18029             James Greenhalgh  <james.greenhalgh@arm.com>
18030
18031         PR ipa/64963
18032         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18033         section if not linkonce.  Fix up formatting.
18034         (cgraph_node::create_version_clone_with_body): Copy section.
18035         * trans-mem.c (ipa_tm_create_version): Likewise.
18036
18037 2015-02-16  Richard Biener  <rguenther@suse.de>
18038
18039         PR tree-optimization/65077
18040         * tree-ssa-structalias.c (get_constraint_for_1): Handle
18041         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18042         (find_func_aliases): Allow float values to carry pointers again.
18043
18044 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18045
18046         * doc/install.texi (Specific): Reorder targets list to put
18047         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
18048         from the top menu.
18049
18050 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
18051             David Edelsohn  <dje.gcc@gmail.com>
18052
18053         PR target/65058
18054         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18055         mapping class to external variable or function reference.
18056         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18057         mapping class.
18058
18059 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
18060
18061         PR target/53348
18062         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18063         ASM_WEAKEN_DECL if defined.
18064
18065 2015-02-16  Richard Biener  <rguenther@suse.de>
18066
18067         PR lto/65015
18068         * varasm.c (default_file_start): For LTO produced units
18069         emit <artificial> as file directive.
18070
18071 2015-02-16  Richard Biener  <rguenther@suse.de>
18072
18073         PR tree-optimization/63593
18074         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18075         stmts and releasing SSA names until...
18076         (execute_pred_commoning): ... after processing all chains.
18077
18078 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
18079
18080         PR ipa/65059
18081         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18082         external functions.
18083
18084 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
18085
18086         * doc/bugreport.texi: Adjust section titles throughout the file
18087         to use "Title Case".
18088         * doc/extend.texi: Likewise.
18089         * doc/gcov.texi: Likewise.
18090         * doc/implement-c.texi: Likewise.
18091         * doc/implement-cxx.texi: Likewise.
18092         * doc/invoke.texi: Likewise.
18093         * doc/objc.texi: Likewise.
18094         * doc/standards.texi: Likewise.
18095         * doc/trouble.texi: Likewise.
18096
18097 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
18098
18099         * cgraph.h (symtab_node::has_aliases_p): Simplify.
18100         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18101         * tree.c (lookup_binfo_at_offset): Make static.
18102         (get_binfo_at_offset): Do not shadow offset; add explanatory
18103         comment.
18104
18105 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
18106
18107         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18108         for all floading point loads and stores except those using a register
18109         index address.
18110         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18111         to a register.
18112
18113 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18114
18115         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18116         (do_estimate_growth_1): Record if any uninlinable edge was seen.
18117         (estimate_growth): Handle uninlinable edges correctly.
18118         (check_callers): New.
18119         (growth_likely_positive): Handle aliases correctly.
18120
18121 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18122
18123         * ipa-chkp.c: Use iterate_direct_aliases.
18124         * symtab.c (resolution_used_from_other_file_p): Move inline.
18125         (symtab_node::create_reference): Fix formating.
18126         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18127         (symtab_node::iterate_reference): Move inline.
18128         (symtab_node::iterate_referring): Move inline.
18129         (symtab_node::iterate_direct_aliases): Move inline.
18130         (symtab_node::used_from_object_file_p_worker): Inline into ...
18131         (symtab_node::used_from_object_file_p): ... this one; move inline.
18132         (symtab_node::call_for_symbol_and_aliases): Move inline;
18133         use iterate_direct_aliases.
18134         (symtab_node::call_for_symbol_and_aliases_1): New method.
18135         (cgraph_node::call_for_symbol_and_aliases): Move inline;
18136         use iterate_direct_aliases.
18137         (cgraph_node::call_for_symbol_and_aliases_1): New method.
18138         (varpool_node::call_for_node_and_aliases): Rename to ...
18139         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18140         use iterate_direct_aliases.
18141         (varpool_node::call_for_symbol_and_aliases_1): New method.
18142         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18143         (ipa_discover_readonly_nonaddressable_var): Update.
18144         * ipa-devirt.c: Fix formating.
18145         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18146         Move inline.
18147         (cgraph_node::call_for_symbol_and_aliases): Move inline.
18148         (cgraph_node::call_for_symbol_and_aliases_1): New function..
18149         * cgraph.h (used_from_object_file_p_worker): Remove.
18150         (resolution_used_from_other_file_p): Move inline.
18151         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18152         (symtab_node::iterate_reference): Move inline.
18153         (symtab_node::iterate_referring): Move inline.
18154         (symtab_node::iterate_direct_aliases): Move inline.
18155         (symtab_node::used_from_object_file_p_worker): Inline into ...
18156         (symtab_node::used_from_object_file_p): Move inline.
18157         * tree-emutls.c (ipa_lower_emutls): Update.
18158         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18159         (varpool_node::call_for_node_and_aliases): Remove.
18160
18161 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
18162
18163         PR tree-optimization/62209
18164         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18165         op == range->exp, insert seq and gimplified code after labels
18166         instead of after the phi.
18167
18168 2015-02-13  Jeff Law  <law@redhat.com>
18169
18170         PR bootstrap/65060
18171         Revert my change for tree-optimization/64823.
18172
18173 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18174
18175         PR tree-optimization/65053
18176         * tree-ssa-phiopt.c (value_replacement): When moving assign before
18177         cond, either reset VR on lhs or set it to phi result VR.
18178
18179 2015-02-13  Jeff Law  <law@redhat.com>
18180
18181         PR tree-optimization/64823
18182         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18183         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18184         threading through blocks with PHIs, but no statements.
18185         (thread_through_normal_block): Distinguish between blocks where
18186         we did not process all the statements and blocks with no statements.
18187
18188         PR rtl-optimization/47477
18189         * match.pd (convert (plus/minus (convert @0) (convert @1): New
18190         simplifier to narrow arithmetic.
18191
18192 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
18193
18194         PR ipa/65028
18195         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18196         polymorphic call info when type is not known to be preserved.
18197
18198 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
18199
18200         PR ipa/65028
18201         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18202         (inline_call): Use it.
18203
18204 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
18205
18206         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18207         GOMP_DEVICE_NVIDIA_PTX.
18208
18209 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18210
18211         PR ipa/65034
18212         * stmt.c (emit_case_nodes): Use void_type_node instead of
18213         NULL_TREE as LABEL_DECL type.
18214
18215 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
18216
18217         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18218         constraints.
18219         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18220         symbolic references to data to be forced to constant memory on the
18221         SOM target.
18222
18223 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18224
18225         PR tree-optimization/65002
18226         * tree-cfg.c (pass_data_fixup_cfg): Don't update
18227         SSA on start.
18228         * tree-sra.c (some_callers_have_no_vuse_p): New.
18229         (ipa_early_sra): Reject functions whose callers
18230         assume function is read only.
18231
18232 2015-02-13  Richard Biener  <rguenther@suse.de>
18233
18234         PR lto/65015
18235         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18236         for LTO produced CUs.
18237
18238 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
18239
18240         PR tree-optimization/64705
18241         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18242         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18243         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18244         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18245         expand_simple_operations.
18246
18247 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18248             Richard Henderson  <rth@redhat.com>
18249
18250         PR rtl/32219
18251         * cgraphunit.c (cgraph_node::finalize_function): Set definition
18252         before notice_global_symbol.
18253         (varpool_node::finalize_decl): Likewise.
18254         * varasm.c (default_binds_local_p_2): Rename from
18255         default_binds_local_p_1, add weak_dominate argument.  Use direct
18256         returns instead of assigning to local variable.  Unify varpool and
18257         cgraph paths via symtab_node.  Reject undef weak variables before
18258         testing visibility.  Reorder tests for simplicity.
18259         (default_binds_local_p): Use default_binds_local_p_2.
18260         (default_binds_local_p_1): Likewise.
18261         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18262         via symtab_node.
18263         (default_elf_asm_output_external): Emit visibility when specified.
18264
18265 2015-02-13  Alan Modra  <amodra@gmail.com>
18266
18267         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18268         code setting up r11 for out-of-line fp restore.
18269
18270 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18271
18272         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18273         (muser-mode): Likewise.
18274
18275 2015-02-13  Alan Modra  <amodra@gmail.com>
18276
18277         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18278         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18279
18280 2015-02-12  David Howells  <dhowells@redhat.com>
18281
18282         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18283         warning.
18284         * tree-ssa-uninit.c (dump_predicates): Likewise.
18285         * opts.c (print_filtered_help): Likewise.
18286
18287 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18288
18289         * dwarf2out.c (output_die): Use "%s", name instead of name to
18290         avoid -Wformat-security warning.
18291
18292         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18293         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18294         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18295         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18296
18297 2015-02-12  Jason Merrill  <jason@redhat.com>
18298
18299         * common.opt (-flifetime-dse): New.
18300
18301 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18302
18303         PR sanitizer/65019
18304         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18305
18306         PR tree-optimization/65014
18307         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18308         use original second operand of arg0 or arg1 instead of
18309         that adjusted by STRIP_NOPS.
18310
18311 2015-02-11  Jeff Law  <law@redhat.com>
18312
18313         PR target/63347
18314         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18315         that needs to be queued, just queue it for a single cycle.
18316
18317 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
18318
18319         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18320         bodies of thunks; comment on why.
18321         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18322         symbols are extern.
18323
18324 2015-02-11  Richard Henderson  <rth@redhat.com>
18325
18326         PR sanitize/65000
18327         * tree-eh.c (mark_reachable_handlers): Mark source and destination
18328         regions of __builtin_eh_copy_values.
18329
18330 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
18331
18332         PR middle-end/65003
18333         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18334         ultimate alias is MEM with SYMBOL_REF satisfying
18335         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
18336         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18337
18338 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
18339
18340         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18341         "diagnostic-core.h".
18342         (main): Initialize progname, and call diagnostic_initialize.
18343
18344         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18345         instead of __OPENMP_TARGET__.
18346
18347         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18348         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18349         hard-coding PTX_ID.
18350
18351 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
18352
18353         * doc/sourcebuild.texi (pie_enabled): Document.
18354
18355 2015-02-11  Martin Liska  <mliska@suse.cz>
18356
18357         PR ipa/64813
18358         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18359         a return value for call to a function that is noreturn.
18360
18361 2015-02-11  Richard Biener  <rguenther@suse.de>
18362
18363         PR lto/65015
18364         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18365         and -fresolution.
18366
18367 2015-02-11  Andrew Pinski  <apinski@cavium.com>
18368
18369         PR target/64893
18370         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18371         Change the first argument type to size_type_node and add another
18372         size_type_node.
18373         (aarch64_simd_expand_builtin): Handle the new argument to
18374         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18375         print an out when the first two arguments are not
18376         nonzero integer constants.
18377         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18378         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18379
18380 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
18381
18382         PR target/61925
18383         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18384         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18385         (ix86_set_current_function): Rewritten.
18386         (ix86_add_new_builtins): Temporarily clear current_target_pragma
18387         when creating builtin fndecls.
18388
18389 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18390
18391         PR ipa/65005
18392         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18393         function.
18394         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18395         have no comdat group.
18396         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18397         (lto_output_varpool_node): Always output alias info.
18398         (output_refs): Output refs of boundary aliases, too.
18399         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18400         (output_symtab): Output call eges in thunks in boundary.
18401         (get_alias_symbol): Remove.
18402         (input_node, input_varpool_node): Do not special case weakrefs.
18403         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18404         alias and thunks targets in the boundary; do not take removed symbols
18405         from their comdat groups.
18406         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18407         (cgraph_node::global_info): Remove.
18408         (cgraph_node::rtl_info): Look through aliases and thunks.
18409         * cgrpah.h (global_info): Remove.
18410         (non_local_p): Remove.
18411
18412 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18413             Sandra Loosemore  <sandra@codesourcery.com>
18414
18415         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18416         to inline asm.  List dialects in proper order.
18417
18418 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18419             Sandra Loosemore  <sandra@codesourcery.com>
18420
18421         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18422
18423 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18424
18425         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18426         modified) reference to Solaris.
18427
18428 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
18429
18430         * doc/extend.texi (Extended Asm): Fix typos.
18431
18432 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
18433
18434         PR sanitizer/65004
18435         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18436
18437 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
18438
18439         PR target/64661
18440         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18441         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18442         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18443         * config/sh/constraints.md (Ara, Add): New constraints.
18444         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18445         predicates.
18446         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18447         atomic_mem_operand_0.  Don't use force_reg on the memory address.
18448         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18449         Sra constraint.  Convert to insn_and_split.  Add workaround for
18450         PR 64974.
18451         (atomic_compare_and_swap<mode>_hard): Copy to
18452         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
18453         Use atomic_mem_operand_0 predicate.
18454         (atomic_compare_and_swap<mode>_soft_gusa,
18455         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18456         AraAdd constraints.
18457         (atomic_compare_and_swap<mode>_soft_tcb,
18458         atomic_compare_and_swap<mode>_soft_imask,
18459         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18460         atomic_mem_operand_0 predicate and SraSdd constraints.
18461         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18462         constraint.
18463         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18464         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
18465         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18466         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
18467         force_reg on the memory address.
18468         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18469         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18470         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18471         atomic_mem_operand_1 predicate and Sra constraint.
18472         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18473         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
18474         Use atomic_mem_operand_1 predicate.
18475         (atomic_<fetchop_name><mode>_hard): Copy to
18476         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
18477         Use atomic_mem_operand_1 predicate.
18478         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18479         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
18480         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
18481         insn_and_split.  Use atomic_mem_operand_1 predicate.
18482         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18483         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
18484         Use atomic_mem_operand_1 predicate.
18485         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18486         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
18487         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18488         in generated insn with original mem operand before emitting the insn.
18489         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18490         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18491         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18492         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18493         Use atomic_mem_operand_1 predicate and AraAdd constraints.
18494         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18495         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18496         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18497         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18498         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18499         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18500         atomic_not_fetch<mode>_soft_tcb,
18501         atomic_<fetchop_name>_fetch<mode>_soft_imask,
18502         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18503         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18504         Use atomic_mem_operand_1 predicate and SraSdd constraints.
18505
18506 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
18507
18508         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18509         and 3 earlyclobber operands.
18510
18511 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18512
18513         * common.opt (fstack-reuse): Mark as optimization.
18514
18515 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18516
18517         PR ipa/64982
18518         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18519
18520 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
18521
18522         PR tree-optimization/64326
18523         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18524
18525 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
18526
18527         PR gcov-profile/61889
18528         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18529
18530 2015-02-10  Richard Biener  <rguenther@suse.de>
18531
18532         PR tree-optimization/64995
18533         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18534         value we use is final.
18535         (visit_reference_op_store): Always valueize op.
18536         (visit_use): Properly valueize vuses.
18537
18538 2015-02-10  Richard Biener  <rguenther@suse.de>
18539
18540         PR tree-optimization/64909
18541         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18542         pass a scalar-stmt count estimate to the cost model.
18543         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18544
18545 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
18546
18547         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18548         enabled by default together with var-tracking.
18549
18550 2015-02-10  Nick Clifton  <nickc@redhat.com>
18551
18552         * config/rl78/rl78.c: Remove DIV attribute code accidentally
18553         included in previous rl78 commit.
18554
18555 2015-02-10  Richard Biener  <rguenther@suse.de>
18556
18557         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18558         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18559         return the bitpack.
18560
18561 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
18562
18563         PR gcov-profile/61889
18564         * config.in: regenerate.
18565         * configure.in: Likewise.
18566         * configure.ac: Check for ftw.h.
18567         * gcov-tool.c: Check for ftw.h before using nftw.
18568
18569 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
18570
18571         PR lto/64076
18572         * ipa-visibility.c (update_visibility_by_resolution_info): Only
18573         assert when not in lto mode.
18574
18575 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18576
18577         * ira-color.c (setup_left_conflict_sizes_p): Simplify
18578         initialization/assignment of conflict_size.
18579
18580 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
18581
18582         PR ipa/64978
18583         * ipa-cp.c (gather_caller_stats): Skip thunks.
18584         (propagate_constants_topo): Skip aliases.
18585
18586 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18587
18588         PR target/64761
18589         * config/sh/sh.c (sh_option_override): Don't change
18590         -freorder-blocks-and-partition to -freorder-blocks even when
18591         unwinding is enabled.
18592         (sh_can_follow_jump): Return false if the followee jump is
18593         a crossing jump when -freorder-blocks-and-partition is specified.
18594         * config/sh/sh.md (*jump_compact_crossing): New insn.
18595
18596 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
18597             Kaz Kojima  <kkojima@gcc.gnu.org>
18598
18599         PR target/64761
18600         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18601         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18602         (sh_can_redirect_branch): Rename to ...
18603         (sh_can_follow_jump): ... this.  Constify argument types.
18604         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18605         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18606         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18607         * doc/tm.texi: Regenerate.
18608
18609 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18610
18611         PR sanitizer/64981
18612         * builtins.c (expand_builtin): Call targetm.expand_builtin
18613         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18614
18615 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18616
18617         PR ipa/61548
18618         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18619
18620 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18621
18622         PR ipa/63566
18623         * ipa-icf.c (set_local): New function.
18624         (sem_function::merge): Use it.
18625
18626 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18627
18628         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18629         (add_type_duplicate): Fix comparison of BINFOs.
18630
18631 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18632
18633         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18634         on getting VOID pointer.
18635
18636 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18637
18638         PR target/64979
18639         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18640         va_list escapes.
18641
18642 2015-02-09  Richard Biener  <rguenther@suse.de>
18643
18644         * genmatch.c (replace_id): Copy expr_type.
18645
18646 2015-02-09  Richard Biener  <rguenther@suse.de>
18647
18648         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18649         (streamer_write_tree_bitfields): Declare.
18650         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18651         properly unpack padding.
18652         (unpack_value_fields): Inline ...
18653         (streamer_read_tree_bitfields): ... here.
18654         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18655         and properly add padding bits.
18656         (streamer_pack_tree_bitfields): Fold into ...
18657         (streamer_write_tree_bitfields): ... this new function,
18658         exposing the bitpack object.
18659         * lto-streamer-out.c (lto_write_tree_1): Call
18660         streamer_write_tree_bitfields.
18661
18662 2015-02-09  Richard Biener  <rguenther@suse.de>
18663
18664         PR tree-optimization/54000
18665         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18666         (struct ivopts_data): Add loop_loc member.
18667         (tree_ssa_iv_optimize_loop): Dump loop location.
18668         (create_new_ivs): Likewise, also dump number of IVs generated.
18669
18670 2015-02-09  Martin Liska  <mliska@suse.cz>
18671
18672         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18673         just if not yet registered.
18674         (ipa_icf_generate_summary): Register callgraph hooks.
18675
18676 2015-02-08  Andrew Pinski  <apinski@cavium.com>
18677
18678         * config/aarch64/aarch64.c (gty_dummy): Delete.
18679
18680 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18681
18682         PR ipa/63566
18683         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18684         (cgraph_node::local_p): Remove thunk related FIXME.
18685
18686 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18687
18688         PR ipa/63566
18689         * i386.c (ix86_function_regparm): Look through aliases to see if callee
18690         is local and optimized.
18691         (ix86_function_sseregparm): Likewise; also use target's SSE math
18692         settings; error out instead of silently generating wrong code
18693         on mismatches.
18694         (init_cumulative_args): Look through aliases.
18695
18696 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18697
18698         PR ipa/63566
18699         * ipa-split.c (execute_split_functions): Split if function has aliases.
18700
18701 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18702
18703         PR ipa/63566
18704         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18705         aliases before trying to expand it.
18706         (cgraph_node::expand_thunk): Fix formating.
18707
18708 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
18709
18710         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18711         (Using Assembly Language with C): Expand introduction.
18712         (Basic Asm): Copy-edit.  Add more information about uses of
18713         basic asm.
18714         (Extended Asm): Copy-edit.  Document new escape syntax and
18715         %l[label] syntax.
18716         (Global Reg Vars): Copy-edit.
18717         (Local Reg Vars): Likewise.
18718
18719 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
18720
18721         PR debug/2714
18722         PR bootstrap/64256
18723         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18724         (DBX_CONTIN_CHAR): Define.
18725
18726 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
18727             Brian Rzycki  <b.rzycki@samsung.com>
18728
18729         PR tree-optimization/64878
18730         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18731         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18732         Stop recursion at loop phi nodes after having visited a loop phi node.
18733
18734 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18735
18736         * toplev.c (process_options): Change flag_ipa_ra before creating
18737         optimization_{default,current}_node.
18738
18739         PR ipa/64896
18740         * cgraphunit.c (cgraph_node::expand_thunk): If
18741         restype is not is_gimple_reg_type nor the thunk_fndecl
18742         returns aggregate_value_p, set restmp to a temporary variable
18743         instead of resdecl.
18744
18745 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
18746
18747         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18748
18749 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18750
18751         PR target/64205
18752         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18753         add a general secondary reload handler for SDmode, unless we have
18754         both read/write support for SDmode.
18755
18756 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18757
18758         PR middle-end/64937
18759         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18760         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18761         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18762         1 before, push it to abstract_vec.
18763         (dwarf2out_abstract_function): Adjust caller.  Don't call
18764         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18765         DECL_ABSTRACT_P flags for all abstract_vec elts.
18766
18767 2015-02-06  Renlin Li  <renlin.li@arm.com>
18768
18769         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18770         complex gimple.
18771         * tree-ssa.c (execute_update_addresses_taken): Likewise.
18772
18773 2015-02-06  Jeff Law  <law@redhat.com>
18774
18775         PR target/64889
18776         * config/h8300/h8300.c (push): New argument "in_prologue".
18777         Pass "in_prologue" along to "F".
18778         (h8300_push_pop): Corresponding changes.
18779         (h8300_expand_prologue): Likewise.
18780         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
18781
18782 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18783
18784         PR rtl-optimization/64957
18785         PR debug/64817
18786         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18787         IOR rather than for AND.
18788
18789 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
18790
18791         PR target/62631
18792         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18793         of shift-add and (add + shift) operations.  Rename local variable.
18794
18795 2015-02-05  Jeff Law  <law@redhat.com>
18796
18797         PR target/17306
18798         * config/h8300/constraints.md (U): Correctly dectect
18799         "eightbit_data" memory addresses.
18800         * config/h8300/h8300.c (eightbit_constant_address_p): Also
18801         handle (const (plus (symbol_ref (x)))) where x is declared
18802         as an 8-bit data memory address.
18803         * config/h8300/h8300.md (call, call_value): Correctly detect
18804         "funcvec" functions.
18805
18806         PR target/43264
18807         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18808         24 to 28 bits for the H8/300.
18809
18810 2015-02-06  Alan Modra  <amodra@gmail.com>
18811
18812         PR target/64876
18813         * config/rs6000/rs6000.c (chain_already_loaded): New function.
18814         (rs6000_call_aix): Use it.
18815
18816 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
18817
18818         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18819         check.
18820
18821 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18822
18823         * config/h8300/constraints.md ("U" constraint): Use strict
18824         variant of REG_OK_FOR_BASE_P after reload has started.
18825
18826 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
18827
18828         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18829         define to zero if !TARGET_NEON.
18830         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18831
18832 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18833             Trevor Saunders  <tsaunders@mozilla.com>
18834
18835         PR ipa/61548
18836         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18837
18838 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18839
18840         PR ipa/61548
18841         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18842         when removing varpool nodes.
18843
18844 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18845
18846         PR ipa/61548
18847         * varpool.c (varpool_node::remove): Fix order of variables.
18848
18849 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18850
18851         PR ipa/64686
18852         * ipa-inline.c (inline_small_functions): Fix ordering issue between
18853         speculation resolution and key updates.
18854
18855 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18856
18857         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18858         about not letting any speculative edges unupdated.
18859
18860 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18861
18862         PR gcov/64123
18863         * gcov-io.c (gcov_var): Export.
18864
18865 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18866
18867         PR middle-end/64922
18868         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18869         edges that become speculative.
18870
18871 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18872
18873         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18874         or DW_LANG_Fortran08.
18875         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18876         DW_LANG_Fortran08.
18877         (gen_compile_unit_die): Handle "GNU Fortran2003" and
18878         "GNU Fortran2008" language strings.
18879         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18880         * langhooks.h (lang_GNU_Fortran): New prototype.
18881         * langhooks.c (lang_GNU_Fortran): New function.
18882         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18883         lang_GNU_Fortran.
18884
18885 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18886
18887         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18888         (RTX_OK_FOR_OLO10_P): Likewise.
18889
18890 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18891
18892         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18893
18894 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18895
18896         PR middle-end/64922
18897         * gimple.c: Include gimple-ssa.h.
18898         (maybe_remove_unused_call_args): New function.
18899         * gimple.h (maybe_remove_unused_call_args): Declare.
18900         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18901         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18902         * gimple-fold.c (gimple_fold_call): Likewise.
18903
18904 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18905
18906         PR rtl-optimization/64905
18907         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18908         pointer alignment if it isn't needed.
18909
18910 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18911
18912         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18913         cortex-a72.cortex-a53.
18914         * config/aarch64/aarch64-tune.md: Regenerate.
18915         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18916
18917 2015-02-04  Nick Clifton  <nickc@redhat.com>
18918
18919         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18920         inside a MEM.
18921
18922 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18923
18924         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18925         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18926         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18927         of DEF_BUILTIN.
18928         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18929         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18930         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18931         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18932         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18933         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18934         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18935         * tree-core.h (enum built_in_function): In between
18936         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18937         for builtins that use DEF_BUILTIN_CHKP macro.
18938
18939 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
18940
18941         PR debug/64817
18942         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18943         operands for tcc_comparison exprs.  Fix typos.
18944
18945         PR debug/64817
18946         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18947         of two XORs that have an intervening AND or IOR.
18948
18949         PR debug/64817
18950         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18951         simplification of XOR of AND to not allocate new rtx before
18952         committing to a simplification.
18953
18954 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18955
18956         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18957         manual swaps in all peepholes.
18958
18959 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18960
18961         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18962         of manual swapping implementation.
18963         (aarch64_expand_vec_perm_const_1): Likewise.
18964
18965 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
18966
18967         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18968         (generic_addrcost_table): Remove NAMED_PARAM.
18969         (cortexa57_addrcost_table): Likewise.
18970         (xgene1_addrcost_table): Likewise.
18971         (generic_regmove_table): Likewise.
18972         (cortexa53_regmove_table): Likewise.
18973         (xgene1_regmove_table): Likewise.
18974         (generic_vector_table): Likewise.
18975         (cortexa57_vector_table): Likewise.
18976         (xgene1_vector_table): Likewise.
18977         (generic_tunings): Likewise.
18978         (cortexa53_tunings): Likewise.
18979         (cortexa57_tunings): Likewise.
18980         (xgene1_tunings): Likewise.
18981
18982 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18983
18984         * config/arm/arm-cores.def: Add cortex-a72 and
18985         cortex-a72.cortex-a53.
18986         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18987         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18988         * config/arm/arm-tune.md: Regenerate.
18989         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18990         "cortex-a72.cortex-a53".
18991         * doc/invoke.texi (ARM Options/-mtune): Likewise.
18992
18993 2015-02-04  Nick Clifton  <nickc@redhat.com>
18994
18995         PR target/64408
18996         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18997         of accepted codes.
18998         (nonimmediate_di_operand): Likewise.
18999
19000         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
19001         prefixes of known F5 using MSP430 MCUs.
19002
19003 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19004
19005         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
19006         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
19007         instead of __builtin_sqrt.
19008
19009 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
19010
19011         * varasm.c (do_assemble_alias): Follow transparent alias
19012         chain for target.
19013         (default_assemble_visibility): Follow transparent alias
19014         chain for decl name.
19015
19016 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19017
19018         PR middle-end/62103
19019         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
19020         to compute size of referenced value in the constant case.
19021
19022 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
19023
19024         PR rtl-optimization/64756
19025         * cse.c (invalidate_dest): New function.
19026         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
19027         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19028         invalidate and do not record it.
19029
19030 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
19031
19032         PR target/64660
19033         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19034         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19035         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19036         atomic_nand<mode>_soft_tcb): New insns.
19037         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19038         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19039         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19040         Split into atomic_not_fetchsi_hard if operands[0] is unused.
19041         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19042         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19043         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
19044         atomic_not<mode>_hard if operands[0] is unused.
19045         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19046         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19047         if operands[0] is unused.
19048         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
19049         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19050         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19051         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19052         unused.
19053         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
19054         into atomic_not<mode>_soft_tcb if operands[0] is unused.
19055         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19056         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19057         if operands[0] is unused.
19058         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
19059         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19060         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
19061         atomic_nand_fetchsi_hard if operands[0] is unused.
19062         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
19063         atomic_nand<mode>_hard if operands[0] is unused.
19064         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
19065         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19066         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
19067         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19068         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
19069         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19070         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19071         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19072         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
19073         atomic_not<mode>_hard if operands[0] is unused.
19074         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19075         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19076         unused.
19077         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19078         into atomic_not<mode>_soft_tcb if operands[0] is unused.
19079         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
19080         atomic_nand<mode>_hard if operands[0] is unused.
19081         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19082         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19083
19084 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
19085
19086         PR jit/64810
19087         * Makefile.in (GCC_OBJS): Add gcc-main.o.
19088         * gcc-main.c: New file, containing "main" taken from gcc.c.
19089         * gcc.c (do_self_spec): Free decoded_options.
19090         (class driver): Move declaration to gcc.h.
19091         (main): Move declaration and implementation to new file
19092         gcc-main.c.
19093         (driver_get_configure_time_options): New function.
19094         * gcc.h (class driver): Move this declaration here, from
19095         gcc.c.
19096         (driver_get_configure_time_options): New declaration.
19097
19098 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
19099
19100         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19101         cross-module inlining.
19102         * cgraph.h (cgraph_node): Add flag merged.
19103         * ipa-icf.c (sem_function::merge): Maintain it.
19104
19105 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
19106
19107         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19108         instead of OBJECT_P.
19109
19110 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
19111
19112         PR target/62631
19113         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19114         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19115         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19116         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19117
19118 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
19119
19120         PR other/63504
19121         * combine.c (reg_n_sets_max): New variable.
19122         (can_change_dest_mode, reg_nonzero_bits_for_combine,
19123         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19124         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19125         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19126         (rest_of_handle_combine): Initialize reg_n_sets_max.
19127
19128 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
19129
19130         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19131         if some always_inline was inlined, apply changes before inlining
19132         heuristically.
19133
19134 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
19135
19136         PR jit/64810
19137         * config/arm/arm.c (arm_option_override): Set
19138         arm_selected_arch/cpu/tune to NULL on entry.
19139
19140 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
19141             Andrew Pinski  <pinskia@gcc.gnu.org>
19142             Jakub Jelinek  <jakub@gcc.gnu.org>
19143
19144         PR target/64231
19145         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19146         integer typing for small model. Use IN_RANGE.
19147
19148 2015-02-02  Richard Biener  <rguenther@suse.de>
19149
19150         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19151         * tree-vrp.c (vrp_valueize_1): Likewise.
19152
19153 2015-02-02  Alan Modra  <amodra@gmail.com>
19154
19155         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19156         than mem for toc_restore.
19157         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19158         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19159         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19160
19161 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
19162
19163         PR target/64047
19164         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19165         explicit default options.
19166
19167 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
19168
19169         PR ipa/64872
19170         * ipa-utils.c (ipa_merge_profiles): Add release argument.
19171         * ipa-icf.c (sem_function::merge): Do not release body when merging.
19172         * ipa-utils.h (ipa_merge_profiles): Update prototype.
19173
19174 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
19175
19176         PR debug/64817
19177         * cfgexpand.c (deep_ter_debug_map): New variable.
19178         (avoid_deep_ter_for_debug): New function.
19179         (expand_debug_expr): If TERed SSA_NAME is in
19180         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19181         instead of trying to expand SSA_NAME's def stmt.
19182         (expand_debug_locations): When expanding debug bind
19183         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19184         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19185         value.
19186         (pass_expand::execute): Call avoid_deep_ter_for_debug on
19187         all debug bind stmts.  Delete deep_ter_debug_map after
19188         expand_debug_location if non-NULL and clear it.
19189
19190 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
19191
19192         PR target/64851
19193         * config/sh/sync.md (atomic_fetch_notsi_hard,
19194         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19195         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19196         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19197         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19198         atomic_not_fetch<mode>_soft_imask): New insns.
19199
19200 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19201
19202         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19203         (rank_for_schedule_debug): Split from ...
19204         (rank_for_schedule): ... this.
19205         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19206         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19207
19208 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19209
19210         * doc/md.texi (Machine Constraints): Alphabetize table by target.
19211         * doc/extend.texi (x86 Variable Attributes): Move section to
19212         correct alphabetization after renaming.
19213         (x86 Type Attributes): Likewise.
19214         (Target Builtins): Re-alphabetize menu.
19215         (x86 Built-in Functions): Move section to correct alphabetization
19216         after renaming.
19217         (x86 transactional memory intrinsics): Likewise.
19218         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19219         and x86 Windows Options in table and menu.
19220         (x86 Options): Move section to correct alphabetization after
19221         renaming.
19222         (x86 Windows Options): Likewise.
19223
19224 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19225
19226         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19227         preferred names of the architecture and its 32- and 64-bit
19228         variants.
19229         * doc/invoke.texi: Likewise.
19230         * doc/md.texi: Likewise.
19231
19232 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19233
19234         PR target/64882
19235         * config/i386/predicates.md (address_no_seg_operand): Reject
19236         non-CONST_INT_P operands in invalid mode.
19237
19238 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19239
19240         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19241         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
19242         * config/i386/predicates.md (address_no_seg_operand): Call
19243         address_operand with VOIDmode.
19244         (vsib_address_operand): Ditto.
19245         (address_mpx_no_base_operand): Ditto.
19246         (address_mpx_no_index_operand): Ditto.
19247
19248 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19249
19250         PR target/64688
19251         * lra-constraints.c (original_subreg_reg_mode): New.
19252         (simplify_operand_subreg): Try to simplify subreg of const.  Use
19253         original_subreg_reg_mode for it.
19254         (swap_operands): Update original_subreg_reg_mode.
19255         (curr_insn_transform): Set up original_subreg_reg_mode.
19256
19257 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19258
19259         PR target/64617
19260         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19261         function.
19262         (process_alt_operands): Use it.
19263         (curr_insn_transform): Check the optional reload pseudo class is
19264         ok for the mode.
19265
19266 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
19267
19268         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19269         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19270         prototype.
19271         * toplev.h (init_asm_output): Update comment on use of
19272         UNKNOWN_LOCATION with fatal_error.
19273         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19274         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19275         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19276         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19277         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19278         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19279         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19280         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19281         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19282         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19283         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19284         fatal_error changed to pass input_location as first argument.
19285
19286 2015-01-30  Martin Liska  <mliska@suse.cz>
19287
19288         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19289         in #pragma GCC diagnostic guards.
19290
19291 2015-01-30  Richard Biener  <rguenther@suse.de>
19292
19293         PR tree-optimization/64829
19294         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19295         not add a widening conversion pattern but hand off extra
19296         widenings to callers.
19297         (vect_recog_widen_mult_pattern): Handle extra widening produced
19298         by vect_handle_widen_op_by_const.
19299         (vect_recog_widen_shift_pattern): Likewise.
19300         (vect_pattern_recog_1): Remove excess vertical space in dumping.
19301         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19302         (vect_init_vector_1): Likewise.
19303         (vect_get_vec_def_for_operand): Likewise.
19304         (vect_finish_stmt_generation): Likewise.
19305         (vectorizable_load): Likewise.
19306         (vect_analyze_stmt): Likewise.
19307         (vect_is_simple_use): Likewise.
19308
19309 2015-01-29  Jeff Law  <law@redhat.com>
19310
19311         * combine.c (try_combine): Fix typo in comment.
19312
19313 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
19314
19315         PR target/64580
19316         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19317         (rs6000_stack_info): Add assert.
19318         (rs6000_output_savres_externs): New function, split off from...
19319         (rs6000_output_function_prologue): ... here.  Do not call it for
19320         thunks.
19321
19322 2015-01-29  Jeff Law  <law@redhat.com>
19323
19324         PR target/15184
19325         * combine.c (try_combine): If I0 is a memory load and I3 a store
19326         to a related address, increase the "goodness" of doing a 4-insn
19327         combination with I0-I3.
19328         (make_field_assignment): Handle SUBREGs in the ior+and case.
19329
19330 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
19331
19332         PR tree-optimization/64746
19333         * tree-if-conv.c (mask_exists): New function.
19334         (predicate_mem_writes): Save created mask with given size for further
19335         use.
19336         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19337         (ifcvt_repair_bool_pattern): Collect all statements that are root
19338         of bool pattern and use iterative algorithm to remove multiple uses
19339         of predicates, display number of required iterations.
19340
19341 2015-01-29  Richard Biener  <rguenther@suse.de>
19342
19343         PR tree-optimization/64853
19344         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19345         stmt will get simulated again.
19346         * tree-ssa-ccp.c (valueize_op_1): Likewise.
19347
19348 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19349
19350         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19351         return_in_pc.  Remove redundant assignments.
19352         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19353         (arm_expand_epilogue): Don't compare boolean with true in if condition.
19354
19355 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
19356
19357         * config/i386/i386.c (ix86_mode_after): Make static.
19358
19359 2015-01-29  Richard Biener  <rguenther@suse.de>
19360
19361         PR tree-optimization/64844
19362         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19363         dump cost model analysis.
19364         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19365         Do not register adjusted load/store costs here.
19366
19367 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19368             Uros Bizjak  <ubizjak@gmail.com>
19369
19370         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19371         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19372         using x86_use_pseudo_pic_reg.
19373         * config/i386/i386.c (ix86_conditional_register_usage): Remove
19374         support for fixed PIC register.
19375         (ix86_use_pseudo_pic_reg): Not static any more.
19376
19377 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19378
19379         PR middle-end/64805
19380         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19381         to avoid error in cgraph node verification.
19382
19383 2015-01-29  Marek Polacek  <polacek@redhat.com>
19384
19385         * doc/standards.texi: Reflect that the default for C is gnu11.
19386
19387 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19388
19389         PR target/64761
19390         * reorg.c (switch_text_sections_between_p): New function.
19391         (relax_delay_slots): Call it when testing if the jump insn
19392         is removable.  Use targetm.can_follow_jump when testing if
19393         the conditional branch can follow an unconditional jump.
19394
19395 2015-01-27  Caroline Tice  <cmtice@google.com>
19396
19397         Committing VTV Cywin/Ming patch for Patrick Wollgast
19398         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19399         if -fvtable-verify=preinit/std is used.
19400         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19401         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19402         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19403         if -fvtable-verify=preinit/std is used.
19404         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19405         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19406         if -fvtable-verify=preinit/std is used.
19407         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19408         * config/i386/mingw32.h (LIB_SPEC): Likewise.
19409         * varasm.c (assemble_variable): Add code to properly set the comdat
19410         section and name for the .vtable_map_vars section in case the
19411         target is PE or COFF.
19412
19413 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
19414
19415         PR ipa/64801
19416         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19417         make sane BB profile.
19418         (cgraph_node::expand_thunk): Make sane BB profile.
19419         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19420         * cgraph.h (init_lowered_empty_function): Update prototype.
19421         * config/i386/i386.c (make_resolver_func): Update call.
19422         * predict.c (gate): Disable branch prediction pass if
19423         profile is already there.
19424
19425 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
19426
19427         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19428         * opth-gen.awk: Likewise.
19429         * common.opt: Mark flag_fp_contract_mode as Optimization.
19430
19431 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19432
19433         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19434         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19435
19436 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
19437
19438         PR target/64659
19439         * config/sh/predicates.md (atomic_arith_operand,
19440         atomic_logical_operand): Remove.
19441         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19442         (atomic_arith_operand_0): New predicate.
19443         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19444         Use atomic_arith_operand_0 for input values.
19445         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19446         atomic_compare_and_swap<mode>_soft_gusa,
19447         atomic_compare_and_swap<mode>_soft_tcb,
19448         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19449         arith_reg_operand instead of register_operand.
19450         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
19451         atomic_arith_operand_0 for newval input.
19452         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19453         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19454         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19455         arith_reg_operand instead of register_operand.
19456         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19457         fetchop_predicate_1, fetchop_constraint_1_llcs,
19458         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19459         fetchop_constraint_1_imask): New code iterator attributes.
19460         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19461         register_operand.  Use fetchop_predicate_1.
19462         (atomic_fetch_<fetchop_name>si_hard,
19463         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19464         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19465         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19466         and arith_reg_operand instead of register_operand.  Use
19467         fetchop_predicate_1, fetchop_constraint_1_gusa.
19468         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19469         and arith_reg_operand instead of register_operand.  Use
19470         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
19471         to allow R0 usage.
19472         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19473         and arith_reg_operand instead of register_operand.  Use
19474         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
19475         to allow R0 usage.
19476         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19477         register_operand.  Use atomic_logical_operand_1.
19478         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19479         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19480         arith_reg_operand instead of register_operand.
19481         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19482         Use arith_reg_dest and arith_reg_operand instead of register_operand.
19483         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
19484         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19485         register_operand.  Use fetchop_predicate_1.
19486         (atomic_<fetchop_name>_fetchsi_hard,
19487         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19488         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19489         fetchop_constraint_1_llcs.
19490         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19491         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19492         fetchop_constraint_1_gusa.
19493         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19494         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19495         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
19496         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19497         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19498         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
19499         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19500         register_operand.  Use atomic_logical_operand_1.
19501         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19502         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19503         arith_reg_operand instead of register_operand.
19504         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19505         arith_reg_operand instead of register_operand.  Use logical_operand
19506         and K08.  Adjust asm sequence to allow R0 usage.
19507         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19508         arith_reg_operand instead of register_operand.  Use logical_operand
19509         and K08.
19510
19511 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
19512
19513         PR other/63504
19514         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19515         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19516         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19517         only get_full_len HOST_WIDE_INTs from get_val () array rather than
19518         all bits in *val_wide.
19519
19520 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
19521
19522         * varpool.c (tls_model_names): Fix names.
19523         (varpool_node::dump): Dump tls- prefix for tls models.
19524
19525 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
19526             Bernd Schmidt  <bernds@codesourcery.com>
19527             Nathan Sidwell  <nathan@codesourcery.com>
19528
19529         * config/nvptx/mkoffload.c: New file.
19530         * config/nvptx/t-nvptx: Add build rules for it.
19531         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19532         (extra_programs): Add mkoffload.
19533         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19534         function.
19535         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19536
19537 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
19538
19539         PR middle-end/64809
19540         * cfgexpand.c (reorder_operands): Skip debug gimples.
19541
19542 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
19543
19544         PR tree-optimization/64277
19545         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19546         range info when possible to refine estimation.
19547
19548 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19549
19550         PR tree-optimization/64718
19551         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19552         be a 16bit unsigned integer when n->range is 16.
19553         (bswap_replace): Convert src to that type if necessary for all bswap
19554         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
19555         set in pass_optimize_bswap::execute ().
19556
19557 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
19558
19559         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19560         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19561         integer and floating point variants.
19562         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19563
19564 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
19565
19566         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19567         for all vector modes.
19568
19569 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
19570
19571         PR bootstrap/64612
19572         * doc/sourcebuild.texi (comdat_group): Document.
19573
19574 2015-01-28  Terry Guo  <terry.guo@arm.com>
19575
19576         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19577
19578 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
19579
19580         * toplev.c (print_version): Add param "show_global_state", and
19581         only print GGC and plugin information if it is true.
19582         (init_asm_output): Pass in "true" for the new param when calling
19583         print_version.
19584         (process_options): Likewise.
19585         (toplev::main): Likewise.
19586         * toplev.h (print_version): Add new param to decl.
19587
19588 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19589
19590         PR ipa/60871
19591         PR ipa/64139
19592         * tree.c (lookup_binfo_at_offset): New function.
19593         (get_binfo_at_offset): Use it.
19594
19595 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19596
19597         PR ipa/64282
19598         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19599         on vtable being vtable.
19600
19601 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19602
19603         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19604         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19605         -mhotpatch= option.
19606         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19607         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
19608         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19609         Renamed.
19610         (s390_hotpatch_trampoline_halfwords_max): Renamed.
19611         (s390_hotpatch_hw_max): New name.
19612         (s390_hotpatch_trampoline_halfwords): Renamed.
19613         (s390_hotpatch_hw_before_label): New name.
19614         (get_hotpatch_attribute): Removed.
19615         (s390_hotpatch_hw_after_label): New name.
19616         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19617         attribute.
19618         (s390_attribute_table): Ditto.
19619         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19620         (s390_function_num_hotpatch_hw): New name.
19621         Remove special handling of inline functions and hotpatching.
19622         Return number of nops before and after the function label.
19623         (s390_can_inline_p): Removed.
19624         (s390_asm_output_function_label): Emit a configurable number of nops
19625         after the function label.
19626         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19627         (TARGET_CAN_INLINE_P) Removed.
19628         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19629
19630 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19631             Jiong Wang  <jiong.wang@arm.com>
19632
19633         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19634         of scratch reg.
19635         (cb<optab><mode>1): Likewise.
19636         * config/aarch64/iterators.md (bcond): New define_code_attr.
19637
19638 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19639
19640         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19641         memory accesses.
19642
19643 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19644
19645         * config/s390/s390.c (s390_register_move_cost): Increase costs for
19646         FPR->GPR moves.
19647
19648 2015-01-27  Richard Biener  <rguenther@suse.de>
19649
19650         * tree-vrp.c (update_value_range): Intersect the range with
19651         old recorded SSA name range information.
19652
19653 2015-01-27  Nick Clifton  <nickc@redhat.com>
19654
19655         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19656         BC, DE and HL registers directly, not via AX.
19657         When decrementing the stack pointer by a large amount, transfer SP
19658         into AX and perform the subtraction there.
19659         (rl78_expand_epilogue): Perform the inverse of the above
19660         enhancements.
19661
19662 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19663
19664         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19665
19666 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19667             Yury Gribov  <y.gribov@samsung.com>
19668
19669         PR ubsan/64741
19670         * ubsan.c (ubsan_source_location): Refactor code.
19671         (ubsan_type_descriptor): Update type size. Refactor code.
19672
19673 2015-01-27  Richard Biener  <rguenther@suse.de>
19674
19675         PR tree-optimization/56273
19676         PR tree-optimization/59124
19677         PR tree-optimization/64277
19678         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19679         from the first VRP pass.
19680
19681 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19682
19683         PR ipa/64776
19684         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19685         handle the first argument in the same loop as all the other arguments.
19686
19687         PR rtl-optimization/61058
19688         * jump.c (cleanup_barriers): Update basic block boundaries
19689         if BLOCK_FOR_INSN is non-NULL on PREV.
19690
19691 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19692
19693         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19694         bounds narrowing, already instrumented calls and calls to
19695         not instrumentable functions.
19696
19697 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19698
19699         PR tree-optimization/64807
19700         * wide-int.cc (wi::divmod_internal): Clear
19701         b_dividend[dividend_blocks_needed].
19702
19703 2015-01-26  DJ Delorie  <dj@redhat.com>
19704
19705         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19706         volatile memory references.
19707
19708 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
19709
19710         PR target/49263
19711         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19712         remove_insn.
19713         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19714         shifts if it already fits into K08.
19715
19716 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19717
19718         PR ipa/64730
19719         * ipa-inline.c (inline_small_functions): Print "unknown" even
19720         if edge->call_stmt is non-NULL, but has builtins or unknown
19721         location.
19722
19723         PR middle-end/64421
19724         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19725         with asterisk, skip the first character.
19726
19727 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19728
19729         PR target/64806
19730         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19731         order change.
19732
19733 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
19734
19735         PR target/64795
19736         * config/i386/i386.md (*movdi_internal): Also check operand 0
19737         to determine TYPE_LEA operand.
19738         (*movsi_internal): Ditto.
19739
19740 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19741
19742         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19743         OPTION_MASK_QUAD_MEMORY_ATOMIC.
19744
19745 2015-01-26  Renlin Li  <renlin.li@arm.com>
19746
19747         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19748         the comment.
19749         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19750         for higher part.
19751
19752 2015-01-26  Richard Biener  <rguenther@suse.de>
19753
19754         PR middle-end/64764
19755         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19756         combining two BIT_AND_EXPR predicates.
19757
19758 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19759
19760         PR bootstrap/64754
19761         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19762
19763 2015-01-26  Terry Guo  <terry.guo@arm.com>
19764
19765         * config/arm/arm.c (arm_file_start): Update the assignment of
19766         Tag_ABI_HardFP_use.
19767
19768 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
19769
19770         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19771         pipeline model.
19772         config/arm/arm.md: Include the new Cortex-A57 model.
19773         (generic_sched): Don't use generic_sched when tuning for
19774         Cortex-A57.
19775
19776 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
19777             Uros Bizjak  <ubizjak@gmail.com>
19778
19779         * config/i386/i386.c (get_builtin_code_for_version): Add
19780         support for BMI and BMI2 multiversion functions.
19781
19782 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19783
19784         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19785         (extract_bit_field): Likewise.
19786         (extract_low_bits): Likewise.
19787         (expand_mult): Likewise.
19788         (expand_mult_highpart_adjust): Likewise.
19789
19790 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19791
19792         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19793         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19794         * config/i386/i386.c (processor_model): Add
19795         M_INTEL_COREI7_BROADWELL.
19796         (arch_names_table): Add "broadwell".
19797
19798 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
19799
19800         PR target/49263
19801         PR target/53987
19802         PR target/64345
19803         PR target/59533
19804         PR target/52933
19805         PR target/54236
19806         PR target/51244
19807         * config/sh/sh-protos.h
19808         (sh_extending_set_of_reg::can_use_as_unextended_reg,
19809         sh_extending_set_of_reg::use_as_unextended_reg,
19810         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19811         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19812         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19813         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19814         (sh_treg_insns): New class.
19815         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19816         (scope_counter): New class.
19817         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19818         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19819         sh_extending_set_of_reg::can_use_as_unextended_reg,
19820         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19821         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19822         sh_split_treg_set_expr): New functions.
19823         (addsubcosts): Handle treg_set_expr.
19824         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19825         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19826         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19827         (sh_insn_operands_modified_between_p): Make non-static.
19828         * config/sh/predicates.md (zero_extend_movu_operand): Allow
19829         simple_mem_operand in addition to displacement_mem_operand.
19830         (zero_extend_operand): Don't allow zero_extend_movu_operand.
19831         (treg_set_expr, treg_set_expr_not_const01,
19832         arith_reg_or_treg_set_expr): New predicates.
19833         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19834         arith_or_int_operand instead of logical_operand.  Convert to
19835         insn_and_split.  Try to optimize constant operand in splitter.
19836         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
19837         (*tstqi_t_zero): Delete.
19838         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19839         (tstsi_t_and_not): Delete.
19840         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19841         Convert to insn_and_split.
19842         (unnamed split, tstsi_t_zero_extract_xor,
19843         tstsi_t_zero_extract_subreg_xor_little,
19844         tstsi_t_zero_extract_subreg_xor_big): Delete.
19845         (*tstsi_t_shift_mask): New insn_and_split.
19846         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19847         to recombine with surrounding insns when splitting.
19848         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19849         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19850         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19851         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19852         (*cbranch_div0s: Delete.
19853         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19854         Try to recombine with surrounding insns when splitting.  Add operand
19855         order variants.
19856         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19857         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19858         *addc_r_r_msb, *addc_2r_msb): Delete.
19859         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
19860         order variant.
19861         (*addc_negreg_t): New insn_and_split.
19862         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19863         Try to recombine with surrounding insns when splitting.
19864         Add operand order variants.
19865         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19866         insn_and_split patterns.
19867         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
19868         surrounding insns when splitting.
19869         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19870         (*rotcl): Likewise.  Add zero_extract variant.
19871         (*ashrsi2_31): New insn_and_split.
19872         (*negc): Convert to insn_and_split.  Use treg_set_expr.
19873         (*zero_extend<mode>si2_disp_mem): Update comment.
19874         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19875         condition.
19876         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
19877         with surrounding insns when splitting.
19878         (any_treg_expr_to_reg): New insn_and_split.
19879         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19880         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19881         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19882         *zero_extract_2): New single bit zero extract patterns.
19883         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19884         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19885         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19886         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19887         set destination.
19888         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19889         register_operand for set source.
19890
19891 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
19892
19893         * i386.opt (prefetch_sse): New targetsave.
19894         * i386.c (ix86_function_specific_save): Save prefetch_sse.
19895         (ix86_function_specific_restore): Restore prefetch_sse and initialize
19896         ix86_cost/ix86_tune_cost.
19897
19898 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19899
19900         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19901         Support the JIT by using 0 as the language type.
19902
19903 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
19904
19905         PR target/64317
19906         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
19907         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19908         (mark_regno_live, process_bb_lives): Pass new parameter value to
19909         make_hard_regno_born.
19910
19911 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19912
19913         PR rtl-optimization/63637
19914         PR rtl-optimization/60663
19915         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19916         if elt->cost is MAX_COST for ASM_OPERANDS.
19917         (find_sets_in_insn): Fix up comment typo.
19918         (cse_insn): Don't set src_volatile for all non-volatile
19919         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19920         or with "memory" clobber.  Set elt->cost to MAX_COST
19921         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
19922         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19923
19924 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19925
19926         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19927         alternative 1.
19928
19929 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19930
19931         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19932         libgcc/config/i386/elf-lib.h.
19933
19934 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19935
19936         PR driver/64737
19937         * gcc.c (print_configuration): Don't print a blank line at the end
19938         here...
19939         (run_attempt): ... but here unstead.
19940
19941         PR middle-end/64734
19942         * omp-low.c (scan_sharing_clauses): Don't ignore
19943         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19944         on target data/update constructs.
19945
19946 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19947
19948         PR target/50928
19949         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19950         (DEBUG_RELOAD): Removed define.
19951         (m32c_limit_reload_class): Enable traces with if DEBUG0.
19952         (m32c_function_arg): Added a type cast.
19953         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19954         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19955         * config/m32c/bitops.md (andqi3_16): Likewise.
19956         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19957         (push_a01_l): Likewise.
19958
19959 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19960
19961         PR jit/64721
19962         * main.c (main): Construct toplev instances with init_signals=true.
19963         * toplev.c (general_init): Add param "init_signals", and use it to
19964         conditionalize the calls to signal and host_hooks.extra_signals.
19965         (toplev::toplev): Add param "init_signals".
19966         (toplev::main): When invoking general_init, pass m_init_signals
19967         to control whether signal-handlers are installed.
19968         * toplev.h (toplev::toplev): Add param "init_signals".
19969         (toplev::m_init_signals): New field.
19970
19971 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19972
19973         PR jit/64722
19974         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19975         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19976         latter may be affected by the former (e.g. on i686).
19977
19978 2015-01-23  Martin Liska  <mliska@suse.cz>
19979
19980         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19981         false positive during profiledbootstrap.
19982
19983 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19984
19985         PR libgomp/64672
19986         * lto-opts.c (lto_write_options): Output non-explicit conservative
19987         -fno-openacc.
19988         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19989         (append_compiler_options): Pass -fopenacc through.
19990
19991 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19992
19993         PR libgomp/64707
19994         * lto-opts.c (lto_write_options): Output non-explicit conservative
19995         -fno-openmp.
19996         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19997         (append_compiler_options): Pass -fopenmp through.
19998
19999 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
20000
20001         PR debug/64511
20002         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
20003         GTY markup.
20004
20005         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
20006         * diagnostic.def (DK_ICE_NOBT): New kind.
20007         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
20008         like DK_ICE, but never print backtrace.
20009         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
20010         (internal_error_no_backtrace): New function.
20011         * gcc.c (execute): Use internal_error_no_backtrace instead of
20012         internal_error.
20013
20014 2015-01-22  Jeff Law  <law@redhat.com>
20015
20016         PR target/52076
20017         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
20018         improve code density for small immediate to memory case.
20019         (insv): Better handle bitfield assignments when the field is
20020         being set to all ones.
20021         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
20022         operand predicate.
20023
20024 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20025             Jakub Jelinek  <jakub@redhat.com>
20026
20027         PR middle-end/64729
20028         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20029         for !TARGET_LIBC_PROVIDES_SSP version and
20030         -fstack-protector-{all,strong,explicit} otherwise.
20031         * config/freebsd.h (LINK_SSP_SPEC): Handle
20032         -fstack-protector-{strong,explicit}.
20033
20034 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
20035             H.J. Lu  <hongjiu.lu@intel.com>
20036
20037         PR ipa/64694
20038         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20039         heap.
20040
20041 2015-01-22  Wei Mi  <wmi@google.com>
20042
20043         PR rtl-optimization/64557
20044         * dse.c (record_store): Call get_addr for mem_addr.
20045         (check_mem_read_rtx): Likewise.
20046
20047 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
20048
20049         * fold-const.c (const_binop): Add early return for non-tcc_binary.
20050
20051 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
20052
20053         * toplev.c (init_local_tick): Process the failure when read
20054         fails for random_seed.
20055
20056         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20057         'pretty_name' to avoid memory overflow.
20058
20059 2015-01-22  Richard Biener  <rguenther@suse.de>
20060
20061         PR middle-end/64728
20062         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20063         abnormal coalescing on undefined SSA names.
20064
20065 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
20066
20067         PR target/64688
20068         PR target/64477
20069         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20070         for alternative 3.
20071         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20072
20073 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
20074
20075         PR middle-end/63325
20076         * fold-const.c (fold_checksum_tree): Don't include value of
20077         expr->decl_with_vis.symtab_node in the checksum.
20078
20079 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20080
20081         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20082
20083 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20084
20085         PR driver/64690
20086         * gcc.c (insert_comments): New function.
20087         (try_generate_repro): Call it.
20088         (append_text): Removed.
20089
20090 2015-01-22  Richard Biener  <rguenther@suse.de>
20091
20092         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20093         with IL incompatible options.  Properly honor user optimize
20094         attributes.
20095
20096 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
20097
20098         PR rtl-optimization/64682
20099         * combine.c (distribute_notes): When moving a death note for
20100         a register that is set in the new I2, make sure to put it
20101         before that new I2.
20102
20103 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
20104
20105         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20106         not TARGET_DEFAULT.
20107
20108 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
20109
20110         PR debug/64511
20111         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20112         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20113         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20114
20115         PR sanitizer/64706
20116         * doc/invoke.texi (-fsanitize=vptr): Document.
20117
20118         PR rtl-optimization/62078
20119         * dse.c: Include cfgcleanup.h.
20120         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20121         anything call purge_all_dead_edges and cleanup_cfg at the end
20122         of the pass.
20123
20124 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
20125
20126         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20127         edges.
20128
20129 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20130
20131         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20132         decl attribute.
20133
20134 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20135             Tejas Belagod <Tejas.Belagod@arm.com>
20136
20137         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20138         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20139         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20140         Removed.
20141
20142 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20143             Tejas Belagod <Tejas.Belagod@arm.com>
20144
20145         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20146         (aarch64_reverse_mask): New decls.
20147         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20148         (insn_count): New mode_attr.
20149         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20150         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20151         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20152         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20153         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20154         (aarch64_simd_st4): New patterns.
20155         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20156         (aarch64_reverse_mask): New functions.
20157
20158 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
20159
20160         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20161         Declare.
20162         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20163         addressing modes for BE.
20164         (aarch64_print_operand): Add 'R' specifier.
20165         (aarch64_simd_disambiguate_copy): Delete.
20166         (aarch64_simd_emit_reg_reg_move): New function.
20167         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20168         in define_splits for structural moves.
20169         (mov<mode>): Use less restrictive predicates.
20170         (*aarch64_mov<mode>): Simplify and only allow for LE.
20171         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20172
20173 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
20174
20175         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20176
20177 2015-01-21  Richard Henderson  <rth@redhat.com>
20178
20179         PR target/64669
20180         * ccmp.c (used_in_cond_stmt_p): Remove.
20181         (expand_ccmp_expr): Don't use it.
20182
20183 2015-01-21  Nick Clifton  <nickc@redhat.com>
20184
20185         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20186         PARALLELs.
20187
20188 2015-01-21  Richard Biener  <rguenther@suse.de>
20189
20190         PR middle-end/64313
20191         * tree-core.h (builtin_info, builtin_info_type): Turn from
20192         an object with two arrays into an array of an object with
20193         decl and two flags, implicit_p and declared_p.
20194         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20195         set_builtin_decl, set_builtin_decl_implicit_p,
20196         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20197         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20198         * builtins.c (builtin_info): Adjust.
20199         * gimplify.c (gimplify_addr_expr): References to builtins
20200         that have been declared by the user makes them eligible for
20201         use by the compiler.  Call set_builtin_decl_implicit_p on them.
20202
20203 2015-01-20  Jeff Law  <law@redhat.com>
20204
20205         PR target/59946
20206         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20207         allow pc-relative addresses in operand predicates or constraints.
20208
20209 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
20210
20211         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20212         neon on aarch32 processors for stringops.
20213
20214 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20215
20216         PR ipa/63576
20217         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20218
20219 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20220
20221         PR lto/45375
20222         * ipa-inline.c: Include lto-streamer.h
20223         (report_inline_failed_reason): Output source file differences and
20224         flags on optimization/target node mismatch.
20225         (can_inline_edge_p): Consider caller to be the outer inline function;
20226         be less restrictive about matching opimize and optimize_size attributes.
20227         (inline_account_function_p): Break out from ...
20228         (inline_small_functions): ... here.
20229         * ipa-inline-transform.c (clone_inlined_nodes): Use
20230         inline_account_function_p.
20231         (inline_call): Use optimize attribution; use inline_account_function_p.
20232         (inline_transform): Use opt_for_fn.
20233         * ipa-inline.h (inline_account_function_p): Declare.
20234
20235 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
20236
20237         PR debug/64663
20238         * dwarf2out.c (decl_piece_node): Don't put bitsize into
20239         mode if bitsize <= 0.
20240         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20241         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20242         sizes and positions.
20243
20244 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
20245
20246         * config/nios2/nios2.c (nios2_asm_file_end): Implement
20247         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20248         needed.
20249         (TARGET_ASM_FILE_END): Define.
20250
20251 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20252
20253         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20254         (struct tune_params): Use the enum.
20255         * arm.c (arm_*_tune): Update.
20256         (arm_option_override): Update.
20257
20258 2015-01-20  Richard Biener  <rguenther@suse.de>
20259
20260         PR ipa/64684
20261         * ipa-reference.c (add_static_var): Inline ...
20262         (analyze_function): ... here after splitting out from ...
20263         (is_proper_for_analysis): ... this.
20264
20265 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
20266
20267         PR target/64149
20268         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20269         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20270         replace the conditional with it's true branch.
20271         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20272         (arm_lra_p): Remove.
20273
20274 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
20275
20276         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20277
20278 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20279
20280         * config/tilegx/mul-tables.c: Move symtab.h include after
20281         coretypes.h include.
20282         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20283         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20284         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20285         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20286         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20287
20288 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
20289
20290         PR bootstrap/64676
20291         Revert:
20292         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
20293
20294         PR rtl-optimization/64081
20295         * loop-iv.c (def_pred_latch_p): New function.
20296         (latch_dominating_def): Allow specific cases with non-single
20297         definitions.
20298         (iv_get_reaching_def): Likewise.
20299         (check_complex_exit_p): New function.
20300         (check_simple_exit): Use check_complex_exit_p to allow certain cases
20301         with exits not executing on any iteration.
20302
20303 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20304
20305         PR lto/45375
20306         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20307         to set branch cost.
20308
20309 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20310
20311         PR lto/45375
20312         * i386.c (gate): Check flag_expensive_optimizations and
20313         optimize_size.
20314         (ix86_option_override_internal): Drop optimize_size condition
20315         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20316         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20317         MASK_PREFER_AVX128.
20318         (ix86_avx256_split_vector_move_misalign,
20319         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20320         * sse.md (all uses of TARGET_PREFER_AVX128): Add
20321         optimize_insn_for_speed_p check.
20322
20323 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
20324
20325         * config/mips/mips.h (FP_ASM_SPEC): New define.
20326         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20327         instead.
20328
20329 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
20330
20331         PR target/53988
20332         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20333         nullptr for insn when reaching the first insn.
20334         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20335         (sh_insn_operands_modified_between_p): Add nullptr check.
20336         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
20337         sign extending mem load if the insn contains any UNSPEC or
20338         UNSPEC_VOLATILE.
20339
20340 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20341
20342         * params.def (inline-unit-growth): Drop to 15%.
20343         * invoke.texi (inline-unit-growth): Document change.
20344
20345 2015-01-19  Martin Liska  <mliska@suse.cz>
20346
20347         PR ipa/64668
20348         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20349         function for second argument of OBJ_TYPE_REF.
20350
20351 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20352
20353         PR ipa/64218
20354         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20355         whether function is an alias.
20356
20357 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20358
20359         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20360         cases.
20361
20362 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
20363
20364         PR rtl-optimization/64671
20365         * lra-remat.c (operand_to_remat): Don't consider jump and call
20366         insns.
20367
20368 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
20369
20370         PR target/59828
20371         * config/rs6000/default64.h: Include rs6000-cpus.def.
20372         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20373         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20374         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20375         and POWER8.
20376         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20377         POWER8.
20378         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20379         pseudo-op to specify assembler dialect.
20380
20381 2015-01-19  Martin Liska  <mliska@suse.cz>
20382
20383         PR ipa/64664
20384         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20385         Handle safe potentially removed nodes during filtering.
20386
20387 2015-01-19  Martin Liska  <mliska@suse.cz>
20388
20389         * doc/extend.texi (no_icf): Add new attribute description.
20390         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20391         where the pass attempts to merge a function with no_icf attribute.
20392
20393 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20394
20395         PR target/64532
20396         * doc/md.texi (ARM Options): Document register constraints.
20397
20398 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
20399             Andrew Pinski  <apinski@cavium.com>
20400
20401         PR target/64304
20402         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20403         (ashl<mode>3): Don't expand if operands[2] is not constant.
20404
20405 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20406
20407         PR target/64448
20408         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20409         Match xor-and-xor RTL pattern.
20410
20411 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
20412
20413         PR rtl-optimization/64081
20414         * loop-iv.c (def_pred_latch_p): New function.
20415         (latch_dominating_def): Allow specific cases with non-single
20416         definitions.
20417         (iv_get_reaching_def): Likewise.
20418         (check_complex_exit_p): New function.
20419         (check_simple_exit): Use check_complex_exit_p to allow certain cases
20420         with exits not executing on any iteration.
20421
20422 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
20423
20424         * common.opt (fgraphite): Fix a typo.
20425
20426 2015-01-19  Felix Yang  <felix.yang@huawei.com>
20427
20428         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20429         pattern.
20430         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20431         uminp, smax_nanp, smin_nanp): New builtins.
20432         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20433         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20434         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20435         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20436         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20437         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20438         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20439         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20440         vpminnms_f32): Rewrite using builtin functions.
20441
20442 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
20443
20444         PR libgomp/64625
20445         * omp-low.c (offload_symbol_decl): Remove variable.
20446         (get_offload_symbol_decl): Remove function.
20447         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20448         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20449         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20450         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20451         BUILT_IN_GOACC_UPDATE don't pass it at all.
20452
20453 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20454
20455         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20456         callers.
20457
20458 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20459
20460         * ipa-chkp.c (chkp_produce_thunks): Add early param
20461         to split thunks production into two passes.  Keep
20462         'always_inline' function bodies after the first pass.
20463         (pass_data_ipa_chkp_early_produce_thunks): New.
20464         (pass_ipa_chkp_early_produce_thunks): New.
20465         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20466         chkp_produce_thunks signature.
20467         (make_pass_ipa_chkp_early_produce_thunks): New.
20468         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20469         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20470         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20471
20472 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20473
20474         * cgraph.c (cgraph_node::dump): Dump profile flags.
20475
20476 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
20477
20478         PR target/64652
20479         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20480         reg appear first in the parallel.
20481
20482 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20483
20484         * ipa-reference.c (set_reference_optimization_summary,
20485         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20486         disabled.
20487         (ignore_module_statics): New static var.
20488         (propagate_bits): If ipa-reference is disabled, do not look into local
20489         properties.
20490         (analyze_function): Disable analysis when ipa_reference is disabled.
20491         (generate_summary): Do not dump when reference is disabled;
20492         collect vars accessed from functions with ipa-reference disabled.
20493         (get_read_write_all_from_node): When ipa-reference is disabled, use the
20494         node flags.
20495         (gate): Enable for LTO.
20496         (ignore_edge_p): New function.
20497         (propagate): Skip functions w/o ipa-reference analysis.
20498         * optc-save-gen.awk: Handle optimize_debug correctly.
20499         * opth-gen.awk: Likewise.
20500         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20501         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20502         fira-share-save-slots, fira-share-spill-slots,
20503         fmodulo-sched-allow-regmoves, fpartial-inlining,
20504         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20505         ftracer, ftree-parallelize-loops, fassociative-math,
20506         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20507         Optimization
20508         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20509         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20510         Optimization.
20511         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20512         Fix for IPA.
20513
20514 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20515
20516         PR ipa/64378
20517         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20518         flag correctly.
20519         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20520
20521 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
20522
20523         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20524         Remove duplicate option listings.
20525
20526 2015-01-18  Felix Yang  <felix.yang@huawei.com>
20527
20528         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20529         (autofdo_source_profile::get_callsite_total_count,
20530         function_instance::get_function_instance_by_decl,
20531         string_table::get_index, string_table::get_index_by_decl,
20532         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20533         Fix comment typos. Reformatting and minor code rearrangement.
20534
20535 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20536
20537         * config/rs6000/rs6000.md (probe_stack): Delete.
20538         (probe_stack_address): New.
20539
20540 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20541
20542         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20543         to test for 32-bit ABIs, not !TARGET_POWERPC64.
20544
20545 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20546
20547         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20548         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
20549         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
20550         snafu.
20551         (rs6000_libcall_value): Use the new function.
20552
20553 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
20554
20555         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20556
20557 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
20558
20559         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20560         implement a more precise life analysis for it during backward scan.
20561
20562 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
20563
20564         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20565
20566 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
20567
20568         PR rtl-optimization/52773
20569         * calls.c (emit_library_call_value): When pushing arguments use
20570         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20571         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
20572         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20573
20574 2015-01-17  Jeff Law  <law@redhat.com>
20575
20576         PR rtl-optimization/32790
20577         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20578         not ZERO_EXTEND in SET_DESTs.
20579
20580 2015-01-17  Alan Modra  <amodra@gmail.com>
20581
20582         * cprop.c (do_local_cprop): Revert last change.
20583
20584 2015-01-16  DJ Delorie  <dj@redhat.com>
20585             Nick Clifton  <nickc@redhat.com>
20586
20587         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20588         (addhi3_real): Likewise.  Fix [HL+0] syntax.
20589         (subqi3_real): Likewise.
20590         (subhi3_real): Likewise.
20591         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
20592         (cbranchhi4_real): Likewise.
20593         (cbranchhi4_real_inverted): Likewise.
20594         (cbranchsi4_real_lt): Likewise.
20595         (cbranchsi4_real_ge): Likewise.
20596         (cbranchsi4_real_ge): Likewise.
20597         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20598         (sub<mode>3_virt): Likewise.
20599         (cbranchqi4_virt): Likewise.
20600         (cbranchhi4_virt): Likewise.
20601         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20602         always use '[reg+imm]' even when imm is zero.
20603         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20604         (rl78_general_operand): New.
20605         (rl78_nonimmediate_operand): New.
20606         (rl78_nonfar_operand): Use them.
20607         (rl78_nonfar_nonimm_operand): Likewise.
20608         (rl78_stack_based_mem): Fix.
20609         * config/rl78/constraints.md (Ibqi): New.
20610         (IBqi): New.
20611         (Wsa): New.
20612         (Wsf): New.
20613         (Cs1): Fix.
20614         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20615         (iorqi3): Likewise.
20616         (xorqi3): Likewise.
20617         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20618
20619         * config/rl78/constrains (Qs8): New constraint.
20620         * config/rl78/rl78.c (rl78_flags_already_set): New function.
20621         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20622         * config/rl78/rl78-real.md (update_Z): New attribute.
20623         Update patterns to set it.
20624         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20625         shorter compare and branch sequence can be used.
20626         (cbranchhi4_real): Likewise.
20627         (cbranchhi4_real_inverted): Likewise.
20628
20629         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20630         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20631         address space.
20632         * config/rl78/rl78.c (rl78_get_name_encoding): New.
20633         (rl78_option_override): Allow -mes0 only if C.
20634         (characterize_address): Support subregs of symbol_refs.
20635         (rl78_addr_space_address_mode): Move.  Add __near.
20636         (rl78_far_p): Likewise.
20637         (rl78_addr_space_pointer_mode): Likewise.
20638         (rl78_as_legitimate_address): Likewise.
20639         (rl78_addr_space_subset_p): Likewise.
20640         (rl78_addr_space_convert): Likewise.
20641         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20642         symbols with -mes0.
20643         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
20644         addressing.
20645         (rl78_alloc_physical_registers_op1): Change logic to prefer
20646         symbol[BC] addressing.
20647         (frodata_section): New.
20648         (rl78_asm_init_sections): Initialize it.
20649         (rl78_select_section): Put __far readonly symbols in .frodata.
20650         (rl78_make_type_far): New.
20651         (rl78_insert_attributes): Force all readonly symbols to be
20652         __far when -mes0.
20653         (rl78_asm_out_integer): New.
20654         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20655         * config/rl78/rl78.opt (-mes0): New.
20656
20657         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20658         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20659         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20660         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20661         (rl78_saddr_p): New.
20662         (rl78_output_aligned_common): New.
20663         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20664         (rl78_handle_saddr_attribute): New.
20665         (rl78_handle_naked_attribute): New.
20666         (rl78_attribute_table): Add saddr.
20667         (rl78_print_operand_1): Don't print '!' on saddr operands.
20668         (rl78_print_operand_1): Strip encodings.
20669         (rl78_sfr_p): New.
20670         (rl78_strip_name_encoding): New.
20671         (rl78_attrlist_to_encoding): New.
20672         (rl78_encode_section_info): New.
20673         (rl78_asm_init_sections): New.
20674         (rl78_select_section): New.
20675         (rl78_output_labelref): New.
20676         (rl78_output_aligned_common): New.
20677         (rl78_asm_out_integer): New.
20678         (rl78_asm_ctor_dtor): New.
20679         (rl78_asm_constructor): New.
20680         (rl78_asm_destructor): New.
20681
20682         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20683         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20684         (transcode_memory_rtx): Update.
20685         (rl78_expand_epilogue): Use A_REG instead of 0.
20686
20687 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20688
20689         * config/arm/arm-protos.h (struct tune_params): New field
20690         sched_autopref_queue_depth.
20691         * config/arm/arm.c (sched-int.h): Include header.
20692         (arm_first_cycle_multipass_dfa_lookahead_guard,)
20693         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20694         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20695         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20696         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20697         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20698         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20699         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20700         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
20701         * config/arm/t-arm (arm.o): Update.
20702         * haifa-sched.c (update_insn_after_change): Update.
20703         (rank_for_schedule): Use auto-prefetcher model, if requested.
20704         (autopref_multipass_init): New static function.
20705         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20706         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20707         variable for debug dumps.
20708         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20709         (autopref_multipass_dfa_lookahead_guard): New global function that
20710         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20711         (init_h_i_d): Update.
20712         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20713         * sched-int.h (enum autopref_multipass_data_status): New const enum.
20714         (autopref_multipass_data_): Structure for auto-prefetcher data.
20715         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20716         (struct _haifa_insn_data:autopref_multipass_data): New field.
20717         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20718         (autopref_multipass_dfa_lookahead_guard): Declare.
20719
20720 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20721
20722         * rtlanal.c (get_base_term): Handle SCRATCH.
20723
20724 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20725
20726         * config/aarch64/aarch64.c
20727         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20728         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20729         * config/arm/arm.c
20730         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20731         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20732
20733 2015-01-17  Alan Modra  <amodra@gmail.com>
20734
20735         * cprop.c (do_local_cprop): Disallow replacement of fixed
20736         hard registers.
20737
20738 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20739
20740         PR target/62066
20741         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20742         early return 0.
20743
20744 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20745
20746         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20747         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20748
20749 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20750
20751         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20752         * config/arm/thumb1.md: ... Here.
20753
20754 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20755
20756         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20757         TImode for TARGET_32BIT.
20758
20759 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20760
20761         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20762         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20763         as ...
20764         (rs6000_abi_word_mode): New function.
20765
20766 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20767
20768         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20769         instead of UNITS_PER_WORD to describe the size of stack slots.
20770
20771 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20772
20773         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20774         as rs6000_promote_function_mode.  Move comment to there.
20775         (rs6000_promote_function_mode): New function.
20776
20777 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20778
20779         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20780         -mpowerpc64 is active.
20781
20782 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20783
20784         PR middle-end/64353
20785         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20786         virtuals on start.
20787
20788 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20789
20790         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20791         introduced in revision 219724.
20792
20793 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20794             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20795
20796         PR target/64263
20797         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20798         destination is not a GP reg.
20799         (*movdi_aarch64): Likewise.
20800
20801 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
20802
20803         PR target/64623
20804         * config/rs6000/default64.h: Revert ISA change.
20805
20806 2015-01-16  Richard Biener  <rguenther@suse.de>
20807
20808         PR middle-end/64614
20809         * tree-ssa-uninit.c: Include tree-cfg.h.
20810         (MAX_SWITCH_CASES): New define.
20811         (convert_control_dep_chain_into_preds): Handle switch statements.
20812         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20813         (normalize_one_pred_1): Do not split bit-manipulations.
20814         Record (x & CST).
20815
20816 2015-01-16  Richard Biener  <rguenther@suse.de>
20817
20818         PR tree-optimization/64568
20819         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20820         complex load rewriting for TARGET_MEM_REFs.
20821
20822 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
20823
20824         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20825
20826 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
20827
20828         PR target/64149
20829         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20830         variable.
20831         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20832         (aarch64_lra_p): Remove.
20833
20834 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20835
20836         PR target/64363
20837         * ipa-chkp.h (chkp_instrumentable_p): New.
20838         * ipa-chkp.c: Include tree-inline.h.
20839         (chkp_instrumentable_p): New.
20840         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20841         Fix processing of not instrumentable functions.
20842         (chkp_versioning): Use chkp_instrumentable_p. Warn about
20843         not instrumentable functions.
20844         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20845         chkp_instrumentable_p.
20846         * tree-inline.h (copy_forbidden): New.
20847         * tree-inline.c (copy_forbidden): Not static anymore.
20848
20849 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20850
20851         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20852         ptr1, ptr2 unused.
20853
20854 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20855
20856         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20857         type OP_OUT to OP_INOUT.
20858
20859 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20860
20861         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20862         (high x) y) to y if x and y have the same base.
20863
20864 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20865
20866         * config/arm/cortex-a57.md: New.
20867         * config/aarch64/aarch64.md: Include it.
20868         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20869         * config/aarch64/aarch64-tune.md: Regenerate.
20870
20871 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
20872
20873         PR target/64015
20874         * ccmp.c (expand_ccmp_next): New function.
20875         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20876         and compare insn sequence.
20877         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20878         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20879         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20880         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20881         (*ccmp_ior): Changed to ccmp_ior<mode>.
20882         (cmp<mode>): New pattern.
20883         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20884         parameters.
20885         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20886
20887 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
20888
20889         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20890         _mm256_bsrli_epi128): New.
20891         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20892
20893 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20894
20895         * expmed.c (store_bit_field_using_insv): Improve warning message.
20896         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20897
20898 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20899
20900         PR rtl-optimization/64011
20901         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20902         there is partial overflow.
20903
20904 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20905
20906         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20907         prototype.
20908         (nds32_expand_epilogue_v3pop): Likewise.
20909         * config/nds32/nds32.md (sibcall): Define this for sibling call
20910         optimization.
20911         (sibcall_register): Likewise.
20912         (sibcall_immediate): Likewise.
20913         (sibcall_value): Likewise.
20914         (sibcall_value_register): Likewise.
20915         (sibcall_value_immediate): Likewise.
20916         (sibcall_epilogue): Likewise.
20917         (epilogue): Pass false to indicate this is not a sibcall epilogue.
20918         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20919         (nds32_expand_epilogue_v3pop): Likewise.
20920
20921 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20922
20923         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20924         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20925         (return_internal): New.
20926         (return): Define this named pattern.
20927         (simple_return): Define this named pattern.
20928         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20929         pattern instead of unspec_volatile_func_return.
20930         (nds32_expand_epilogue_v3pop): Likewise.
20931         (nds32_can_use_return_insn): New function.
20932
20933 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20934
20935         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20936         * config/nds32/nds32.md (pop25return): New.
20937         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20938         pop25return pattern.
20939
20940 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20941
20942         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20943         -mforbid-fp-as-gp, and -mex9 options.
20944
20945 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20946
20947         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20948         remove -mgp-direct option.
20949
20950 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20951
20952         * doc/invoke.texi (--param early-inlining-insns): Update default value.
20953         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20954
20955 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20956
20957         * ipa-inline.c (inline_small_functions): Work around hints
20958         cache issue.
20959
20960 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
20961
20962         PR target/59710
20963         * doc/invoke.texi (Option Summary): Document new Nios II
20964         -mgpopt= syntax.
20965         (Nios II Options): Likewise.
20966         * config/nios2/nios2.opt: Add -mgpopt= option support.
20967         Modify existing -mgpopt and -mno-gpopt options to be aliases.
20968         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20969         * config/nios2/nios2.c (nios2_option_override): Adjust
20970         -mgpopt defaulting.
20971         (nios2_in_small_data_p): Return true for explicit small data
20972         sections even with -G0.
20973         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20974         option choices.
20975
20976 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20977
20978         PR ipa/64612
20979         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20980         of comdat locals.
20981         (inline_call): Fix removal of aliases.
20982
20983 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
20984
20985         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20986         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20987         * opts.c (common_handle_option): Add -fsanitize=vptr.
20988         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20989         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20990         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20991         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20992         (ubsan_expand_vptr_ifn): New prototype.
20993         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20994         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20995         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20996         expand_LOOP_VECTORIZED): Make argument nameless, remove
20997         ATTRIBUTE_UNUSED.
20998         (expand_UBSAN_VPTR): New function.
20999         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
21000         in fn spec.
21001         (UBSAN_VPTR): New internal function.
21002         * sanopt.c (tree_map_traits): Renamed to ...
21003         (sanopt_tree_map_traits): ... this.
21004         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
21005         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
21006         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
21007         (maybe_optimize_ubsan_vptr_ifn): New function.
21008         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
21009         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
21010         -fsanitize=vptr.
21011         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
21012         internal calls like pure functions for aliasing, even when they
21013         have other side-effects that prevent making them ECF_PURE.
21014         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
21015         (ubsan_expand_vptr_ifn): New function.
21016
21017 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
21018
21019         PR rtl-optimization/64110
21020         * stmt.c (parse_output_constraint): Process '^' and '$'.
21021         (parse_input_constraint): Ditto.
21022         * lra-constraints.c (process_alt_operands): Process the new
21023         constraints.
21024         * ira-costs.c (record_reg_classes): Process the new constraint
21025         '^'.
21026         * genoutput.c (indep_constraints): Add '^' and '$'.
21027         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21028         * doc/md.texi: Add description of the new constraints.
21029
21030 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
21031             Bernd Schmidt  <bernds@codesourcery.com>
21032             Cesar Philippidis  <cesar@codesourcery.com>
21033             James Norris  <jnorris@codesourcery.com>
21034             Tom de Vries  <tom@codesourcery.com>
21035             Ilmir Usmanov  <i.usmanov@samsung.com>
21036             Dmitry Bocharnikov  <dmitry.b@samsung.com>
21037             Evgeny Gavrin  <e.gavrin@samsung.com>
21038             Jakub Jelinek  <jakub@redhat.com>
21039
21040         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21041         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21042         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21043         New function types.
21044         * builtins.c: Include "gomp-constants.h".
21045         (expand_builtin_acc_on_device): New function.
21046         (expand_builtin, is_inexpensive_builtin): Handle
21047         BUILT_IN_ACC_ON_DEVICE.
21048         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21049         New macros.
21050         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21051         flag_openmp.
21052         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21053         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21054         i386/intelmic-offload.h.
21055         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21056         to libgomp and its dependencies.
21057         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21058         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21059         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21060         * config/ia64/hpux.h (LIB_SPEC): Likewise.
21061         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21062         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21063         * doc/generic.texi: Update for OpenACC changes.
21064         * doc/gimple.texi: Likewise.
21065         * doc/invoke.texi: Likewise.
21066         * doc/sourcebuild.texi: Likewise.
21067         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21068         GF_OMP_FOR_KIND_OACC_LOOP.
21069         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21070         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21071         GF_OMP_TARGET_KIND_OACC_UPDATE,
21072         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21073         Dump more data.
21074         * gimple.c: Update comments for OpenACC changes.
21075         * gimple.def: Likewise.
21076         * gimple.h: Likewise.
21077         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21078         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21079         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21080         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21081         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21082         appropriate place.
21083         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21084         * gimplify.c: Include "gomp-constants.h".
21085         Update comments for OpenACC changes.
21086         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21087         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21088         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21089         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21090         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21091         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21092         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21093         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21094         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21095         OMP_CLAUSE_SEQ.
21096         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21097         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21098         OMP_CLAUSE_SET_MAP_KIND.
21099         (gimplify_oacc_cache): New function.
21100         (gimplify_omp_for): Handle OACC_LOOP.
21101         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21102         OACC_DATA.
21103         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21104         OACC_EXIT_DATA, OACC_UPDATE.
21105         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21106         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21107         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21108         (gimplify_body): Consider flag_openacc next to flag_openmp.
21109         * lto-streamer-out.c: Include "gomp-constants.h".
21110         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21111         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21112         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21113         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21114         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21115         (BUILT_IN_ACC_ON_DEVICE): New builtins.
21116         * omp-low.c: Include "gomp-constants.h".
21117         Update comments for OpenACC changes.
21118         (struct omp_context): Add reduction_map, gwv_below, gwv_this
21119         members.
21120         (extract_omp_for_data, use_pointer_for_field, install_var_field)
21121         (new_omp_context, delete_omp_context, scan_sharing_clauses)
21122         (create_omp_child_function, scan_omp_for, scan_omp_target)
21123         (check_omp_nesting_restrictions, lower_reduction_clauses)
21124         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21125         Update for OpenACC changes.
21126         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21127         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21128         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21129         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21130         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21131         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
21132         OMP_CLAUSE_MAP_*.
21133         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21134         Handle GF_OMP_FOR_KIND_OACC_LOOP.
21135         (expand_omp_target, lower_omp_target): Handle
21136         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21137         GF_OMP_TARGET_KIND_OACC_UPDATE,
21138         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21139         GF_OMP_TARGET_KIND_OACC_DATA.
21140         (pass_expand_omp::execute, execute_lower_omp)
21141         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21142         flag_openmp.
21143         (offload_symbol_decl): New variable.
21144         (oacc_get_reduction_array_id, oacc_max_threads)
21145         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21146         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21147         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21148         (oacc_gimple_assign, oacc_initialize_reduction_data)
21149         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21150         functions.
21151         (is_targetreg_ctx): Remove function.
21152         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21153         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21154         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21155         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21156         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21157         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21158         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21159         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21160         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21161         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21162         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21163         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21164         * tree-core.h: Update comments for OpenACC changes.
21165         (enum omp_clause_map_kind): Remove.
21166         (struct tree_omp_clause): Change type of map_kind member from enum
21167         omp_clause_map_kind to unsigned char.
21168         * tree-inline.c: Update comments for OpenACC changes.
21169         * tree-nested.c: Likewise.  Include "gomp-constants.h".
21170         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21171         (convert_tramp_reference_stmt, convert_gimple_call): Update for
21172         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21173         OMP_CLAUSE_SET_MAP_KIND.
21174         * tree-pretty-print.c: Include "gomp-constants.h".
21175         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21176         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21177         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21178         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21179         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21180         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
21181         instead of OMP_CLAUSE_MAP_*.
21182         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21183         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21184         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21185         * tree-streamer-in.c: Include "gomp-constants.h".
21186         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21187         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
21188         * tree-streamer-out.c: Include "gomp-constants.h".
21189         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21190         OMP_CLAUSE_MAP_*.
21191         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21192         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21193         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21194         * tree.c (omp_clause_num_ops): Update accordingly.
21195         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21196         Likewise.
21197         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21198         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21199         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21200         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21201         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21202         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21203         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21204         (OMP_CLAUSE_SET_MAP_KIND): New macro.
21205         * varpool.c (varpool_node::get_create): Consider flag_openacc next
21206         to flag_openmp.
21207         * config/i386/intelmic-offload.h: New file.
21208         * config/nvptx/offload.h: Likewise.
21209
21210 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21211
21212         * explow.h: Remove duplicate contents.
21213         * dojump.h: Likewise.
21214
21215 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
21216
21217         * arm.c (arm_xgene_tune): Add default initializer for instruction
21218         fusion.
21219
21220 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21221
21222         PR ipa/64068
21223         PR ipa/64559
21224         * ipa.c (symbol_table::remove_unreachable_nodes):
21225         Do not put abstract origins into boundary.
21226
21227 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
21228
21229         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21230         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21231
21232 2015-01-15  Steve Ellcey  <sellcey@mips.com>
21233
21234         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21235         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21236         builtins.def, and chkp-builtins.def.
21237
21238 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
21239
21240         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21241         ISA 2.7 (POWER8).
21242
21243 2015-01-15  Richard Biener  <rguenther@suse.de>
21244
21245         PR tree-optimization/61743
21246         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21247         information on PHIs for some simple cases.
21248
21249 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21250
21251         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21252         Include xgene1.md.
21253         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21254         * config/arm/arm-cores.def (xgene1): New entry.
21255         * config/arm/arm-tables.opt: Regenerate.
21256         * config/arm/arm-tune.md: Regenerate.
21257         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21258
21259 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21260
21261         * tree-if-conv.c: Include hash-map.h.
21262         (aggressive_if_conv): New variable.
21263         (fold_build_cond_expr): Add simplification of non-zero condition.
21264         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21265         destination block is not always executed.
21266         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21267         than two predecessors if AGGRESSIVE_IF_CONV is true.
21268         (if_convertible_stmt_p): Fix commentary.
21269         (all_preds_critical_p): New function.
21270         (has_pred_critical_p): New function.
21271         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21272         BB can have more than two predecessors and all incoming edges can be
21273         critical.
21274         (predicate_bbs): Skip predication for loop exit block, use build2_loc
21275         to compute predicate for true edge.
21276         (find_phi_replacement_condition): Delete this function.
21277         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21278         Allow interchange PHI arguments if EXTENDED is false.
21279         Change check that block containing reduction statement candidate
21280         is predecessor of phi-block since phi may have more than two arguments.
21281         (phi_args_hash_traits): New helper structure.
21282         (struct phi_args_hash_traits): New type.
21283         (phi_args_hash_traits::hash): New function.
21284         (phi_args_hash_traits::equal_keys): New function.
21285         (gen_phi_arg_condition): New function.
21286         (predicate_scalar_phi): Add handling of phi nodes with more than two
21287         arguments, delete COND and TRUE_BB arguments, insert body of
21288         find_phi_replacement_condition to predicate ordinary phi nodes.
21289         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21290         delete call of find_phi_replacement_condition and invoke
21291         predicate_scalar_phi with two arguments.
21292         (insert_gimplified_predicates): Add assert that non-predicated block
21293         don't have statements to insert.
21294         (ifcvt_split_critical_edges): New function.
21295         (ifcvt_split_def_stmt): Likewise.
21296         (ifcvt_walk_pattern_tree): Likewise.
21297         (stmt_is_root_of_bool_pattern): Likewise.
21298         (ifcvt_repair_bool_pattern): Likewise.
21299         (ifcvt_local_dce): Likewise.
21300         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21301         is copy of inner or outer loop force_vectorize field, invoke
21302         ifcvt_split_critical_edges, ifcvt_local_dce and
21303         ifcvt_repair_bool_pattern for aggressive if-conversion.
21304
21305 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
21306
21307         * config/aarch64/aarch64.md: Include xgene1.md.
21308         * config/aarch64/xgene1.md: New file.
21309
21310 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21311
21312         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21313         xgene1 (APM XGene-1) core definition.
21314         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21315         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21316         * doc/invoke.texi: Document -mcpu=xgene1.
21317
21318 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21319
21320         * dojump.h: New header file.
21321         * explow.h: Likewise.
21322         * expr.h: Remove includes.
21323         Move expmed.c prototypes to expmed.h.
21324         Move dojump.c prototypes to dojump.h.
21325         Move alias.c prototypes to alias.h.
21326         Move explow.c prototypes to explow.h.
21327         Move calls.c prototypes to calls.h.
21328         Move emit-rtl.c prototypes to emit-rtl.h.
21329         Move varasm.c prototypes to varasm.h.
21330         Move stmt.c prototypes to stmt.h.
21331         (saved_pending_stack_adjust): Move to dojump.h.
21332         (adjust_address): Move to explow.h.
21333         (adjust_address_nv): Move to emit-rtl.h.
21334         (adjust_bitfield_address): Likewise.
21335         (adjust_bitfield_address_size): Likewise.
21336         (adjust_bitfield_address_nv): Likewise.
21337         (adjust_automodify_address_nv): Likewise.
21338         * explow.c (expr_size): Move to expr.c.
21339         (int_expr_size): Likewise.
21340         (tree_expr_size): Likewise.
21341         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21342         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21343         * genemit.c (main): Generate includes statistics.h, real.h,
21344         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21345         stmt.h.
21346         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21347         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21348         explow.h, emit-rtl.h, stmt.h.
21349         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21350         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21351         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21352         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21353         emit-rtl.h, varasm.h, stmt.h.
21354         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21355         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21356         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21357         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21358         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21359         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21360         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21361         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21362         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21363         tm.h tree.h varasm.h vec.h wide-int.h.
21364         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21365         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21366         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21367         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21368         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21369         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21370         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21371         * loop-iv.c: Likewise.
21372         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21373         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21374         statistics.h stmt.h tree.h varasm.h wide-int.h.
21375         * lra-constraints.c: Likewise.
21376         * lra-eliminations.c: Likewise.
21377         * lra-lives.c: Likewise.
21378         * lra-remat.c: Likewise.
21379         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21380         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21381         statistics.h stmt.h tree.h varasm.h wide-int.h.
21382         * hw-doloop.c: Likewise.
21383         * ira-color.c: Likewise.
21384         * ira-emit.c: Likewise.
21385         * loop-doloop.c: Likewise.
21386         * loop-invariant.c: Likewise.
21387         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21388         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21389         statistics.h stmt.h tree.h varasm.h wide-int.h.
21390         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21391         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21392         statistics.h stmt.h tree.h varasm.h wide-int.h.
21393         * combine-stack-adj.c: Likewise.
21394         * cse.c: Likewise.
21395         * ddg.c: Likewise.
21396         * ifcvt.c: Likewise.
21397         * ira-costs.c: Likewise.
21398         * jump.c: Likewise.
21399         * lra-coalesce.c: Likewise.
21400         * lra-spills.c: Likewise.
21401         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21402         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21403         stmt.h varasm.h wide-int.h.
21404         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21405         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21406         varasm.h.
21407         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21408         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21409         statistics.h stmt.h varasm.h wide-int.h.
21410         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21411         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21412         varasm.h wide-int.h.
21413         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21414         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21415         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21416         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21417         statistics.h stmt.h.
21418         * config/tilepro/tilepro.c: Likewise.
21419         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21420         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21421         * config/pdp11/pdp11.c: Likewise.
21422         * config/xtensa/xtensa.c: Likewise.
21423         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21424         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21425         varasm.h.
21426         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21427         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21428         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21429         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21430         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21431         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21432         * rtl-chkp.c: Likewise.
21433         * tree-chkp-opt.c: Likewise.
21434         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21435         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21436         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21437         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21438         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21439         statistics.h stmt.h.
21440         * tree-vect-data-refs.c: Likewise.
21441         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21442         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21443         rtl.h statistics.h stmt.h varasm.h.
21444         * internal-fn.c: Likewise.
21445         * ipa-icf-gimple.c: Likewise.
21446         * lto-section-out.c: Likewise.
21447         * tree-data-ref.c: Likewise.
21448         * tree-nested.c: Likewise.
21449         * tree-outof-ssa.c: Likewise.
21450         * tree-predcom.c: Likewise.
21451         * tree-pretty-print.c: Likewise.
21452         * tree-scalar-evolution.c: Likewise.
21453         * tree-ssa-strlen.c: Likewise.
21454         * tree-vect-loop.c: Likewise.
21455         * tree-vect-patterns.c: Likewise.
21456         * tree-vect-slp.c: Likewise.
21457         * tree-vect-stmts.c: Likewise.
21458         * tsan.c: Likewise.
21459         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21460         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21461         stmt.h.
21462         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21463         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21464         statistics.h stmt.h varasm.h.
21465         * loop-unroll.c: Likewise.
21466         * ubsan.c: Likewise.
21467         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21468         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21469         stmt.h varasm.h.
21470         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21471         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21472         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21473         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21474         statistics.h stmt.h.
21475         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21476         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21477         statistics.h stmt.h varasm.h.
21478         * gimple-match-head.c: Likewise.
21479         * lto-cgraph.c: Likewise.
21480         * lto-section-in.c: Likewise.
21481         * lto-streamer-in.c: Likewise.
21482         * lto-streamer-out.c: Likewise.
21483         * tree-affine.c: Likewise.
21484         * tree-cfg.c: Likewise.
21485         * tree-cfgcleanup.c: Likewise.
21486         * tree-if-conv.c: Likewise.
21487         * tree-into-ssa.c: Likewise.
21488         * tree-ssa-alias.c: Likewise.
21489         * tree-ssa-copyrename.c: Likewise.
21490         * tree-ssa-dse.c: Likewise.
21491         * tree-ssa-forwprop.c: Likewise.
21492         * tree-ssa-live.c: Likewise.
21493         * tree-ssa-math-opts.c: Likewise.
21494         * tree-ssa-pre.c: Likewise.
21495         * tree-ssa-sccvn.c: Likewise.
21496         * tree-tailcall.c: Likewise.
21497         * tree-vect-generic.c: Likewise.
21498         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21499         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21500         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21501         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21502         * varasm.c: Likewise.
21503         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21504         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21505         varasm.h.
21506         * init-regs.c: Likewise.
21507         * ira.c: Likewise.
21508         * omp-low.c: Likewise.
21509         * stack-ptr-mod.c: Likewise.
21510         * tree-ssa-reassoc.c: Likewise.
21511         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21512         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21513         varasm.h.
21514         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21515         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21516         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21517         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21518         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21519         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21520         * tree-ssa-phiopt.c: Likewise.
21521         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21522         fixed-value.h hashtab.h real.h statistics.h stmt.h.
21523         * config/fr30/fr30.c: Likewise.
21524         * config/frv/frv.c: Likewise.
21525         * expr.c: Likewise.
21526         * final.c: Likewise.
21527         * optabs.c: Likewise.
21528         * passes.c: Likewise.
21529         * simplify-rtx.c: Likewise.
21530         * stmt.c: Likewise.
21531         * toplev.c: Likewise.
21532         * var-tracking.c: Likewise.
21533         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21534         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21535         * lower-subreg.c: Likewise.
21536         * postreload-gcse.c: Likewise.
21537         * ree.c: Likewise.
21538         * reginfo.c: Likewise.
21539         * store-motion.c: Likewise.
21540         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21541         fixed-value.h hashtab.h real.h stmt.h varasm.h.
21542         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21543         fixed-value.h hashtab.h statistics.h stmt.h.
21544         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21545         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21546         * except.c: Likewise.
21547         * explow.c: Likewise.
21548         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21549         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21550         varasm.h.
21551         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21552         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21553         * tree-ssa-structalias.c: Likewise.
21554         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21555         fixed-value.h insn-config.h real.h statistics.h.
21556         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21557         fixed-value.h insn-config.h real.h statistics.h stmt.h.
21558         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21559         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21560         * cfgbuild.c: Likewise.
21561         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21562         fixed-value.h real.h rtl.h statistics.h stmt.h.
21563         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21564         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21565         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21566         fixed-value.h real.h statistics.h stmt.h.
21567         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21568         fixed-value.h real.h statistics.h stmt.h varasm.h.
21569         * cprop.c: Likewise.
21570         * modulo-sched.c: Likewise.
21571         * postreload.c: Likewise.
21572         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21573         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21574         statistics.h stmt.h varasm.h.
21575         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21576         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21577         rtl.h statistics.h stmt.h varasm.h.
21578         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21579         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21580         varasm.h.
21581         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21582         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21583         varasm.h.
21584         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21585         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21586         varasm.h.
21587         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21588         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21589         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21590         function.h real.h statistics.h stmt.h varasm.h.
21591         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21592         insn-config.h real.h statistics.h stmt.h.
21593         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21594         statistics.h stmt.h.
21595         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21596         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21597         statistics.h stmt.h varasm.h.
21598         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21599         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21600         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21601         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21602         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21603         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21604         statistics.h stmt.h varasm.h.
21605         * ipa-polymorphic-call.c: Likewise.
21606         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21607         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21608         statistics.h stmt.h.
21609         * config/c6x/c6x.c: Likewise.
21610         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21611         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21612         statistics.h stmt.h varasm.h.
21613         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21614         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21615         stmt.h varasm.h.
21616         * ipa-split.c: Likewise.
21617         * tree-eh.c: Likewise.
21618         * tree-ssa-dce.c: Likewise.
21619         * tree-ssa-loop-niter.c: Likewise.
21620         * tree-vrp.c: Likewise.
21621         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21622         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21623         stmt.h.
21624         * config/nds32/nds32-fp-as-gp.c: Likewise.
21625         * config/nds32/nds32-intrinsic.c: Likewise.
21626         * config/nds32/nds32-isr.c: Likewise.
21627         * config/nds32/nds32-md-auxiliary.c: Likewise.
21628         * config/nds32/nds32-memory-manipulation.c: Likewise.
21629         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21630         * config/nds32/nds32-predicates.c: Likewise.
21631         * config/nds32/nds32.c: Likewise.
21632         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21633         fixed-value.h hashtab.h real.h statistics.h.
21634         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21635         fixed-value.h hashtab.h real.h statistics.h stmt.h.
21636         * config/arm/arm.c: Likewise.
21637         * config/avr/avr.c: Likewise.
21638         * config/bfin/bfin.c: Likewise.
21639         * config/h8300/h8300.c: Likewise.
21640         * config/i386/i386.c: Likewise.
21641         * config/ia64/ia64.c: Likewise.
21642         * config/iq2000/iq2000.c: Likewise.
21643         * config/m32c/m32c.c: Likewise.
21644         * config/m32r/m32r.c: Likewise.
21645         * config/m68k/m68k.c: Likewise.
21646         * config/mcore/mcore.c: Likewise.
21647         * config/mep/mep.c: Likewise.
21648         * config/mips/mips.c: Likewise.
21649         * config/mn10300/mn10300.c: Likewise.
21650         * config/moxie/moxie.c: Likewise.
21651         * config/pa/pa.c: Likewise.
21652         * config/rl78/rl78.c: Likewise.
21653         * config/rx/rx.c: Likewise.
21654         * config/s390/s390.c: Likewise.
21655         * config/sh/sh.c: Likewise.
21656         * config/sparc/sparc.c: Likewise.
21657         * config/spu/spu.c: Likewise.
21658         * config/stormy16/stormy16.c: Likewise.
21659         * config/v850/v850.c: Likewise.
21660         * config/vax/vax.c: Likewise.
21661         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21662         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21663         * config/msp430/msp430.c: Likewise.
21664         * predict.c: Likewise.
21665         * value-prof.c: Likewise.
21666         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21667         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21668         * config/microblaze/microblaze.c: Likewise.
21669         * config/nios2/nios2.c: Likewise.
21670         * config/rs6000/rs6000.c: Likewise.
21671         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21672         insn-config.h real.h rtl.h statistics.h stmt.h.
21673         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21674         insn-config.h real.h statistics.h stmt.h.
21675         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21676         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21677         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21678         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21679         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21680         fixed-value.h real.h statistics.h stmt.h.
21681         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21682         fixed-value.h statistics.h stmt.h.
21683         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21684         stmt.h.
21685
21686 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
21687
21688         * gengtype.c (create_user_defined_type): Workaround
21689         -Wmaybe-uninitialized false positives.
21690         * cse.c (fold_rtx): Likewise.
21691         * loop-invariant.c (gain_for_invariant): Likewise.
21692
21693 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21694
21695         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21696         set the memory attributes in all cases but clear MEM_EXPR if need be.
21697
21698 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21699
21700         PR tree-optimization/64434
21701         * cfgexpand.c (reorder_operands): New function.
21702         (expand_gimple_basic_block): Insert call of reorder_operands if
21703         optimized is true.
21704
21705 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21706
21707         * config/mips/micromips.md (*swp): Remove explicit parallel.
21708         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21709         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21710         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21711         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21712         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21713         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21714         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21715         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21716         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21717         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21718         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21719         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21720         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21721         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21722         (mips_wrdsp): Likewise.
21723         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21724         parallel.
21725         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21726         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21727         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21728         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21729         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21730         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21731         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21732         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21733         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21734
21735 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21736
21737         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21738         (mips_print_operand): Support 'y' to print exact log2 in decimal
21739         of a const_int.
21740         * config/mips/mips.h (ISA_HAS_LSA): New define.
21741         (ISA_HAS_DLSA): Likewise.
21742         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21743         * config/mips/predicates.md (const_immlsa_operand): New predicate.
21744
21745 2015-01-15  Martin Liska  <mliska@suse.cz>
21746
21747         PR target/64377
21748         * optc-save-gen.awk: Add support for array types.
21749
21750 2015-01-15  Richard Biener  <rguenther@suse.de>
21751
21752         PR middle-end/64365
21753         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21754         for MEM_REF access functions with the same base can never partially
21755         overlap.
21756
21757 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
21758
21759         * common.opt: New option -fstack-protector-explicit.
21760         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21761         (stack_protect_decl_phase): Handle stack_protect attribute for
21762         explicit stack protection requests.
21763         (expand_used_vars): Similarly.
21764         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21765         * doc/extend.texi: Add documentation for "stack_protect" attribute.
21766         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21767
21768 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
21769
21770         PR target/53988
21771         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21772         reg-reg copies.
21773         (sh_extending_set_of_reg): New struct.
21774         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21775         sh_remove_reg_dead_or_unused_notes): New Declarations.
21776         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21777         sh_find_extending_set_of_reg, sh_split_tst_subregs,
21778         sh_extending_set_of_reg::use_as_extended_reg): New functions.
21779         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21780         convert to insn_and_split and use new function sh_split_tst_subregs.
21781
21782 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
21783
21784         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21785         option.
21786         (Optimization Options): Move -fuse-ld documentation to...
21787         (Link Options): ...here.
21788
21789 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21790
21791         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21792         offsets.
21793         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21794         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21795         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21796         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21797         instead of ZR for the memory operand of LL/SC.
21798         (compare_and_swap_12, sync_add<mode>): Likewise.
21799         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21800         (sync_new_<optab>_12, sync_nand_12): Likewise.
21801         (sync_old_nand_12, sync_new_nand_12): Likewise.
21802         (sync_sub<mode>, sync_old_add<mode>): Likewise.
21803         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21804         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21805         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21806         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21807         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21808         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21809         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21810         * doc/md.texi (ZC): Update description.
21811
21812 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21813
21814         * builtins.c (expand_builtin_atomic_exchange): Remove error when
21815         memory model is CONSUME.
21816         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21817         expand_builtin_atomic_store): Change invalid memory model errors to
21818         warnings.
21819         (expand_builtin_atomic_clear): Change invalid model errors to warnings
21820         and issue warning for CONSUME.
21821
21822 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
21823
21824         * lto-cgraph: Update function comments for
21825         lto_symtab_encoder_encode_*.
21826
21827 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21828
21829         * Makefile.in (site.exp): Do not set ENABLE_LTO.
21830
21831 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21832
21833         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21834         * lto-cgraph.c (select_what_to_stream): Remove argument, use
21835         lto_stream_offload_p instead.
21836         * lto-streamer.h (select_what_to_stream): Remove argument.
21837         * passes.c (ipa_write_summaries): Likewise.
21838         * tree-pass.h (ipa_write_summaries): Likewise.
21839
21840 2015-01-14  Richard Biener  <rguenther@suse.de>
21841
21842         PR tree-optimization/59354
21843         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21844         groups larger than the slp group size as having gaps.
21845
21846 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21847
21848         PR middle-end/59448
21849         * builtins.c (get_memmodel): Promote consume to acquire always.
21850
21851 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21852
21853         PR target/64386
21854         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21855         V32HImode.
21856
21857 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21858
21859         PR target/64393
21860         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21861         Enable AVX512BW.
21862         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21863         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21864         AVX512VBMI, as it implies AVX512BW.
21865
21866 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21867
21868         PR target/64387
21869         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21870         (vec_unpacks_hi_v16sf): Ditto.
21871
21872 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21873
21874         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21875         is not available.
21876
21877 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21878
21879         * doc/invoke.texi (mapcs): Mention deprecation.
21880         (mapcs-frame): Likewise.
21881
21882 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21883
21884         PR target/64453
21885         * config/arm/arm.c (callee_saved_reg_p): Define.
21886         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21887         register is callee saved instead of !call_used_regs[reg].
21888         (thumb1_compute_save_reg_mask): Likewise.
21889
21890 2015-01-14  Hale Wang  <hale.wang@arm.com>
21891
21892         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21893         Cortex-M7.
21894
21895 2015-01-14  Richard Biener  <rguenther@suse.de>
21896
21897         PR lto/64415
21898         * tree-inline.c (insert_debug_decl_map): Check destination
21899         function MAY_HAVE_DEBUG_STMTS.
21900         (insert_init_debug_bind): Likewise.
21901         (insert_init_stmt): Remove redundant check.
21902         (remap_gimple_stmt): Drop debug stmts if the destination
21903         function has var-tracking assignments disabled.
21904
21905 2015-01-14  Martin Liska  <mliska@suse.cz>
21906
21907         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21908         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21909
21910 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21911
21912         PR target/64460
21913         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21914         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21915
21916 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21917
21918         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21919         level from an ARCH; do not inject the default.
21920         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21921         MIPS_ISA_LEVEL_SPEC.
21922         (MIPS_ISA_NAN2008_SPEC): Update comment.
21923         (BASE_DRIVER_SELF_SPECS): Likewise.
21924         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21925         MIPS_DEFAULT_ISA_LEVEL_SPEC.
21926         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21927         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21928         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21929
21930 2015-01-14  Richard Biener  <rguenther@suse.de>
21931
21932         PR tree-optimization/64493
21933         PR tree-optimization/64495
21934         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21935         assign the proper vectorized PHI to the inner loop exit PHIs.
21936
21937 2015-01-14  Joey Ye  <joey.ye@arm.com>
21938
21939         * config/arm/arm.c (arm_compute_save_reg_mask):
21940         Do not save lr in case of tail call.
21941         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21942
21943 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
21944
21945         * tree-vrp.c (check_array_ref): Emit more warnings
21946         for warn_array_bounds >= 2.
21947         * common.opt: New option -Warray-bounds=.
21948         * doc/invoke.texi: Document -Warray-bounds=.
21949
21950 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
21951
21952         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21953         (mforbid-fp-as-gp): Remove.
21954         (mex9): Remove.
21955         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21956         (nds32_symbol_load_store_p): Remove.
21957         (nds32_fp_as_gp_check_available): Clean up implementation.
21958         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21959         cases.
21960         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21961         fp-as-gp and ex9 cases.
21962
21963 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21964
21965         * tree-profile.c (init_ic_make_global_vars): Drop workaround
21966         for bintuils bug 14342.
21967         (init_ic_make_global_vars): Likewise.
21968         (gimple_init_edge_profiler): Likewise.
21969         (gimple_gen_ic_func_profiler): Likewise.
21970
21971 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21972
21973         * ipa-inline.c (inline_small_functions): Swap the operands in
21974         enum.
21975
21976 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21977
21978         PR ipa/64481
21979         * ipa-inline-analysis.c (node_growth_cache): Remove.
21980         (initialize_growth_caches): Do not initialize it.
21981         (free_growth_caches): Do not free it.
21982         (do_estimate_growth): Rename to ...
21983         (estimate_growth): ... this one; drop growth cache code.
21984         (growth_likely_positive): Always go the heuristics way.
21985         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21986         (reset_edge_caches): Do not reset node growth.
21987         (heap_edge_removal_hook): Do not maintain cache.
21988         (inline_small_functions): Likewise; strenghten sanity check.
21989         (ipa_inline): Do not maintain caches.
21990         * ipa-inline.h (node_growth_cache): Remove.
21991         (do_estimate_growth): Remove to ...
21992         (estimate_growth): this one; remove inline version.
21993         (reset_node_growth_cache): Remove.
21994
21995 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21996
21997         PR ipa/64565
21998         * ipa-inline.c (inline_small_functions): Update callee keys after
21999         resolving speculation
22000         (inline_small_functions): Always check monotonicity of the queue.
22001
22002 2015-01-13  Marek Polacek  <polacek@redhat.com>
22003
22004         PR middle-end/64391
22005         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
22006
22007 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
22008
22009         PR rtl-optimization/64286
22010         * ree.c (combine_reaching_defs): Move part of comment earlier,
22011         remove !SCALAR_INT_MODE_P check.
22012         (add_removable_extension): Don't add vector mode
22013         extensions if all uses of the source register aren't the same
22014         vector extensions.
22015
22016 2015-01-13  Renlin Li  <renlin.li@arm.com>
22017
22018         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
22019         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
22020
22021 2015-01-13  Martin Liska  <mliska@suse.cz>
22022
22023         * ipa-icf.c (sem_function::equals_private): Call new functions
22024         cl_target_option_print_diff and cl_optimization_print_diff.
22025         * optc-save-gen.awk (cl_target_option_print_diff): New function.
22026         (cl_optimization_print_diff): Likewise.
22027         * opth-gen.awk: Likewise.
22028
22029 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
22030
22031         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22032         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22033         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22034         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22035         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22036         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22037
22038 2015-01-13  Andrew Pinski  <apinski@cavium.com>
22039
22040         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22041         instead of src mode.
22042
22043 2015-01-13  Richard Biener  <rguenther@suse.de>
22044
22045         PR lto/64373
22046         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22047         DECL_CONTEXT.
22048
22049 2015-01-13  Andrew Pinski  <apinski@cavium.com>
22050
22051         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22052         volatile mems.
22053         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22054
22055 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
22056
22057         PR middle-end/63974
22058         * cfgexpand.c (expand_computed_goto): Don't call
22059         convert_memory_address here.
22060
22061 2015-01-13  Richard Biener  <rguenther@suse.de>
22062
22063         PR tree-optimization/64406
22064         * tree-loop-distibution.c (pass_loop_distribution::execute):
22065         Reset the SCEV hashtable if we distributed anything.
22066
22067 2015-01-13  Richard Biener  <rguenther@suse.de>
22068
22069         PR tree-optimization/64404
22070         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22071         SLP types for CSEd loads.
22072
22073 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22074
22075         PR tree-optimization/64436
22076         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22077         merge of two symbolic numbers for a bitwise OR to ...
22078         (perform_symbolic_merge): This. Also fix computation of the range and
22079         end of the symbolic number corresponding to the result of a bitwise OR.
22080
22081 2015-01-13  Richard Biener  <rguenther@suse.de>
22082
22083         PR tree-optimization/64568
22084         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22085         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22086
22087 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22088
22089         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22090         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22091
22092 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22093
22094         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22095         target-specific symbol_ref flag.
22096         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22097         resides in rodata section.
22098         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22099         (nds32_encode_section_info): New function.
22100
22101 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22102
22103         * config/nds32/nds32.md (call): Use pseudo instruction bal which
22104         clobbers TA_REGNUM if large code model is specified.
22105         (call_register): Likewise.
22106         (call_immediate): Likewise.
22107         (call_value): Likewise.
22108         (call_value_register): Likewise.
22109         (call_value_immediate): Likewise.
22110
22111 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22112
22113         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22114         (TARGET_CMODEL_MEDIUM): New macro.
22115         (TARGET_CMODEL_LARGE): New macro.
22116         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22117         code model setting in assembly code.
22118
22119 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22120
22121         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22122         Remove MASK_GP_DIRECT flag.
22123         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22124         one of the multilib default options.
22125         * config/nds32/nds32.opt (mgp-direct): Remove.
22126         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22127         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
22128
22129 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22130
22131         * config/nds32/nds32.opt (mcmodel): Add new option.
22132         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22133         to describe code model.
22134
22135 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
22136
22137         PR target/64479
22138         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22139
22140 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22141
22142         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22143         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22144         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22145         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22146         __builtin_sh_set_fpscr.
22147
22148 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22149
22150         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22151         after a funtion name just to indicate it is a function.
22152         ([-fsanitize-undefined-trap-on-error]): Likewise.
22153         ([-fdbg-cnt=]): Likewise.
22154         ([-mmemcpy]): Likewise.
22155         ([-mflush-func]): Likewise.
22156         ([-msynci]): Likewise.
22157
22158 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22159
22160         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22161         example.
22162
22163 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
22164
22165         PR tree-optimization/64563
22166         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22167         instead of != VR_VARYING.
22168
22169         PR target/64513
22170         * config/i386/i386.c (ix86_expand_prologue): Add
22171         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22172
22173         PR tree-optimization/64454
22174         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22175         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22176         for signed or [0, op1 - 1] for unsigned modulo.
22177         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22178         even if op1 does not satisfy integer_pow2p.
22179
22180         PR other/64370
22181         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22182
22183 2015-01-12  Jeff Law  <law@redhat.com>
22184
22185         PR target/64461
22186         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22187         (trunchiqi2, truncsihi2): Similarly.
22188
22189         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22190         rather than calling F.
22191
22192 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22193
22194         * tsan.c (instrument_expr): Use force_gimple_operand.
22195         Use may_be_nonaddressable_p instead of is_gimple_addressable.
22196
22197 2015-01-12  Richard Biener  <rguenther@suse.de>
22198
22199         PR tree-optimization/64530
22200         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22201         back dr1.
22202
22203 2015-01-12  Richard Biener  <rguenther@suse.de>
22204
22205         PR middle-end/64357
22206         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22207         latches properly.
22208
22209 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22210
22211         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22212         Cortex-A17 tuning parameters.
22213         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22214
22215 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22216
22217         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22218         * config/arm/arm.c (arm_macro_fusion_p): New function.
22219         (arm_macro_fusion_pair_p): Likewise.
22220         (TARGET_SCHED_MACRO_FUSION_P): Define.
22221         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22222         (ARM_FUSE_NOTHING): Likewise.
22223         (ARM_FUSE_MOVW_MOVT): Likewise.
22224         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22225         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22226         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22227         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22228         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22229         arm_cortex_a5_tune): Specify fuseable_ops value.
22230
22231 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
22232
22233         PR bootstrap/64561
22234         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22235         test for PIE with copy reloc.
22236         * configure: Regenerated.
22237
22238 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22239
22240         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22241         in gen_rtx_REG.
22242         (arm_tls_descseq_addr): Likewise.
22243         (arm_gen_movmemqi): Likewise.
22244         (arm_expand_epilogue_apcs_frame): Likewise.
22245         (arm_expand_epilogue): Likewise.
22246         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
22247         in gen_rtx_REG.
22248
22249 2015-01-12  Martin Liska  <mliska@suse.cz>
22250
22251         PR ipa/64550
22252         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22253         volatility for correct operands.
22254
22255 2015-01-12  Martin Liska  <mliska@suse.cz>
22256
22257         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22258         indication that a function is not leaf.
22259         (sem_function::compare_polymorphic_p): Likewise.
22260
22261 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22262
22263         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22264         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22265         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22266         fold-const.h, tree-check.h.
22267
22268 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22269
22270         PR ipa/63967
22271         PR ipa/64425
22272         * ipa-inline.c (compute_uninlined_call_time,
22273         compute_inlined_call_time): Use counts for extra precision when
22274         needed possible.
22275         (big_speedup_p): Fix formating.
22276         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22277         (relative_time_benefit): Remove.
22278         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22279         merge guessed and read profile paths.
22280         (inline_small_functions): Count only !optimize_size functions into
22281         initial size; be more lax about sanity check when profile is used;
22282         be sure to update inlined function profile when profile is read.
22283
22284 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22285
22286         PR ipa/63470
22287         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22288         cost when edge becomes direct.
22289         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22290         is resolved or when introducing new speculation.
22291
22292 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
22293
22294         PR ipa/64551
22295         PR ipa/64552
22296         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22297         '||' to fix typo issue.
22298
22299         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22300         accept and return NULL.
22301
22302 2015-01-12  Martin Liska  <mliska@suse.cz>
22303
22304         * cgraph.c (cgraph_edge::remove_callee): Move function to header
22305         file for being inlined.
22306         (cgraph_set_edge_callee): Delete.
22307         (cgraph_edge::redirect_callee): Move function to header file
22308         for being inlined.
22309         (cgraph_edge::make_direct): Use new function.
22310         (cgraph_edge::dump_edge_flags): New function created from
22311         static dump_edge_flags function.
22312         (cgraph_node::dump): Use new function.
22313         (cgraph_edge::verify_count_and_frequency): New function created
22314         from verify_edge_count_and_frequency.
22315         (cgraph_edge::verify_corresponds_to_fndecl): New function created
22316         from verify_edge_corresponds_to_fndecl.
22317         (verify_edge_corresponds_to_fndecl): Delete.
22318         (cgraph_node::verify_node): Use new function.
22319         * cgraph.h (cgraph_edge::set_callee): New function.
22320         (cgraph_edge::dump_edge_flags): Likewise.
22321         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22322
22323 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
22324
22325         * ipa-utils.c (estimate_function_body_sizes): Do not
22326         free node params when called late with early=true.
22327
22328 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
22329
22330         * doc/md.texi (Instruction Patterns): Rewrite text for
22331         clarity.
22332         (Example): Likewise.
22333
22334 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
22335
22336         * doc/invoke.texi (Option Summary): Break long lines.
22337         [(-fdiagnostics-color)]: Put long literal in @smallexample
22338         instead of inline.
22339         [(-fsanitize-recover)]: Likewise.
22340         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22341         [(-ffast-math)]: Likewise.
22342         [(--param max-inline-insns-recursive)]: Likewise.
22343         [(--param max-inline-recursive-depth)]: Likewise.
22344         [(-mno-text-section-literals)]: Likewise.
22345
22346 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
22347
22348         * doc/install.texi: Update for libgomp being renamed from "GNU
22349         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22350         Runtime Library".
22351         * doc/sourcebuild.texi: Likewise.
22352
22353 2015-01-10  Anthony Green  <green@moxielogic.com>
22354
22355         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22356         mul.x availability for moxiebox configuration.
22357
22358 2015-01-09  Anthony Green  <green@moxielogic.com>
22359
22360         * config/moxie/moxie.md: Tabify assembly output.
22361
22362 2015-01-09  Anthony Green  <green@moxielogic.com>
22363
22364         * config/moxie/moxie.md (CC_REG): Correct register definition.
22365
22366 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
22367
22368         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22369         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
22370         of log files.
22371
22372 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22373
22374         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22375
22376 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
22377             Jakub Jelinek  <jakub@redhat.com>
22378
22379         PR middle-end/64412
22380         * lto-streamer.h (lto_stream_offload_p): New declaration.
22381         * lto-streamer.c (lto_stream_offload_p): New variable.
22382         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22383         at the same time as section_name_prefix.
22384         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22385         if lto_stream_offload_p.
22386         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22387         stream TREE_TARGET_OPTION if lto_stream_offload_p.
22388         (write_ts_function_decl_tree_pointers): Don't
22389         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22390         * tree-streamer-in.c (unpack_value_fields): Don't stream
22391         TREE_TARGET_OPTION in if ACCEL_COMPILER.
22392         (lto_input_ts_function_decl_tree_pointers): Don't stream
22393         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22394         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22395         instead of section_name_prefix string comparisons.
22396
22397 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
22398
22399         PR rtl-optimization/64536
22400         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22401         tablejumps.
22402
22403 2015-01-09  Michael Collison  <michael.collison@linaro.org>
22404
22405         PR tree-optimization/64322
22406         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22407         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22408
22409 2015-01-09  Tom de Vries  <tom@codesourcery.com>
22410
22411         PR rtl-optimization/64539
22412         * regcprop.c (kill_clobbered_values): Factor out of ...
22413         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
22414         instead of note_stores with kill_clobbered_value.
22415
22416 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22417
22418          * ginclude/unwind-arm-common.h: Revert previous commit.
22419
22420 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22421
22422         * config.gcc (arm*-*-freebsd*): New configuration.
22423         * config/arm/freebsd.h: New file.
22424         * config.host: Add extra components for arm*-*-freebsd*.
22425         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22426         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22427
22428 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22429
22430         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22431         for -mcpu=e6500.
22432         * config/rs6000/t-rtems: Add e6500 multilibs.
22433
22434 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22435
22436         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22437         MPC8540.
22438
22439 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22440
22441         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22442         MULTILIB_EXCEPTIONS.
22443
22444 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22445
22446         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22447         MULTILIB_EXCEPTIONS.
22448
22449 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22450
22451         * config/arm/t-rtems-eabi: Rename to...
22452         * config/arm/t-rtems: ...this.
22453         * config/arm/rtems-eabi.h: Rename to...
22454         * config/arm/rtems.h: ...this.
22455         * config.gcc (arm*-*-rtems*): Reflect changes above.
22456
22457 2015-01-09  Richard Biener  <rguenther@suse.de>
22458
22459         PR tree-optimization/64410
22460         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22461         on the LHS.
22462         (execute_update_addresses_taken): Deal with that.
22463         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22464         loads/stores for complex variables.
22465
22466 2015-01-09  Martin Liska  <mliska@suse.cz>
22467
22468         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22469         name comparison.
22470         (func_checker::compare_memory_operand): New function.
22471         (func_checker::compare_operand): Split case to newly
22472         added functions.
22473         (func_checker::compare_cst_or_decl): New function.
22474         (func_checker::compare_gimple_call): Identify
22475         memory operands.
22476         (func_checker::compare_gimple_assign): Likewise.
22477         * ipa-icf-gimple.h: New function.
22478
22479 2015-01-09  Martin Liska  <mliska@suse.cz>
22480
22481         PR ipa/64503
22482         * sreal.c (sreal::dump): Change unsigned format to signed for
22483         m_exp value.
22484         (sreal::to_double): Replace exp2 with scalbln.
22485
22486 2015-01-09  Martin Liska  <mliska@suse.cz>
22487
22488         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22489         * ipa-icf.c (sem_function::equals_private): Add support for target and
22490         (sem_item_optimizer::merge_classes): Remove redundant function
22491         optimization flags comparison.
22492         * tree.h (target_opts_for_fn): New function.
22493
22494 2015-01-09  Tom de Vries  <tom@codesourcery.com>
22495
22496         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22497
22498 2015-01-09  Kito Cheng  <kito@0xlab.org>
22499
22500         PR rtl-optimization/64348
22501         * lra-constraints.c (split_reg): Fix caller-save store/restore
22502         instruction generation.
22503
22504 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
22505
22506         PR gcov-profile/61790
22507         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22508         long long.  Fallback to int64_t if host doesn't have long long and
22509         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
22510
22511 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22512
22513         PR tree-optimization/63989
22514         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22515         from 1000 to 10000.
22516         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22517         (get_stridx): If we don't have a record for certain SSA_NAME,
22518         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22519         constant offset, call get_stridx_plus_constant.
22520         (get_stridx_plus_constant): New function.
22521         (zero_length_string): Don't use get_stridx here.
22522
22523         PR target/55023
22524         PR middle-end/64388
22525         * dse.c (struct insn_info): Mention frame_read set also
22526         before reload for tail calls on some targets.
22527         (scan_insn): Revert 2014-12-22 change.  Set frame_read
22528         also before reload for tail calls if
22529         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
22530         instead of add_non_frame_wild_read for non-const/memset
22531         tail calls after reload.
22532
22533 2015-01-08  Jason Merrill  <jason@redhat.com>
22534
22535         * ubsan.c (do_ubsan_in_current_function): New.
22536         (pass_ubsan::gate): Use it.
22537         * ubsan.h: Declare it.
22538         * convert.c (convert_to_integer): Use it.
22539
22540 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22541
22542         PR target/64338
22543         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22544         compare_code when it is unconditionally overwritten afterwards.
22545         Use ix86_reverse_condition instead of reverse_condition.  Don't
22546         change code if *reverse_condition* returned UNKNOWN and don't
22547         swap ct/cf and negate diff in that case.
22548
22549 2015-01-08  Mike Stump  <mikestump@comcast.net>
22550
22551         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22552         (pass_tsan_O0::gate): Likewise.
22553         * extend.texi (Function Attributes): Add no_sanitize_thread
22554         documentation.
22555
22556 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
22557
22558         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22559         for registering builtins.
22560         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22561         add -fopenmp to the argv_obstack used when invoking
22562         compile_for_target.
22563
22564         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22565         add "-m32" or "-m64" to argv_obstack.
22566         (generate_host_descr_file): Likewise, when invoking host_compiler.
22567         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22568         ld.
22569
22570 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22571
22572         * config/sh/sh-mem.cc: Use constant as second operand when emitting
22573         tstsi_t insns.
22574
22575 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22576
22577         PR target/55212
22578         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22579         constant load if constant operand fits into I08.
22580
22581 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22582
22583         PR sanitizer/64336
22584         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22585         and TREE_THIS_VOLATILE for MEM_REFs.
22586         (build5_stat): Fix up initialization of TREE_READONLY and
22587         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22588
22589 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22590
22591         PR target/64533
22592         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22593         of r for the second alternative of the destination operand.
22594
22595 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
22596
22597         PR target/36557
22598         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22599
22600 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22601
22602         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22603         keywords.
22604         ([-fivar-visibility], [-fvisibility]): Likewise.
22605
22606 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22607
22608         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22609         the file where @code, @command, etc is more appropriate.
22610
22611 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
22612
22613         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22614         of -mrecip= documentation.
22615
22616 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22617
22618         PR target/64505
22619         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22620         correct reload handler if -m32 -mpowerpc64 is used.
22621
22622 2015-01-06  Tom de Vries  <tom@codesourcery.com>
22623
22624         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22625
22626 2015-01-08  Christian Bruel  <christian.bruel@st.com>
22627
22628         PR target/64507
22629         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22630
22631 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22632
22633         PR tree-optimization/63259
22634         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22635         if optab exists for 16bit byteswap.
22636
22637 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
22638
22639         * opts.c (common_handle_option): Add support for
22640         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22641         * doc/invoke.texi: Document -fno-sanitize=all,
22642         -f{,no-}sanitize-recover=all.  Document that
22643         -fsanitize=float-cast-overflow is not enabled
22644         by -fsanitize=undefined.  Fix up documentation
22645         of -f{,no-}sanitize-recover.
22646
22647 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22648
22649         * config.gcc: Add Visium support.
22650         * configure.ac: Likewise.
22651         * configure: Regenerate.
22652         * doc/extend.texi (interrupt attribute): Add Visium.
22653         * doc/invoke.texi: Document Visium options.
22654         * doc/install.texi: Document Visium target.
22655         * doc/md.texi: Document Visium constraints.
22656         * common/config/visium: New directory.
22657         * config/visium: Likewise.
22658
22659 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22660
22661         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22662         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22663
22664 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22665
22666         * combine.c (combine_validate_cost): Do not count the cost of a
22667         split I2 twice.  Do not display it twice in the dump, either.
22668
22669 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22670
22671         Revert parts of r219199.
22672         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22673         <inttypes.h>.
22674         ([-Wtraditional]): Restore markup on <limits.h>.
22675
22676 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
22677
22678         PR c++/31397
22679         * doc/invoke.texi: Document -Wsuggest-override.
22680
22681 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
22682
22683         PR rtl-optimization/64287
22684         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22685         (process_options): Disable flag_ipa_ra if profiling.
22686
22687 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22688
22689         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22690
22691 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
22692
22693         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22694         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22695         put under #if TARGET_LOOPS guard.
22696
22697 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
22698
22699         * config/i386/i386.c (output_387_binary_op): Use std::swap.
22700
22701 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
22702
22703         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22704         * rtl.h (refers_to_regno_p): Add overload.
22705         * cse.c: Use it.
22706         * bt-load.c: Likewise.
22707         * combine.c: Likewise.
22708         * df-scan.c: Likewise.
22709         * sched-deps.c: Likewise.
22710         * config/s390/s390.c: Likewise.
22711         * config/m32r/m32r.c: Likewise.
22712         * config/rs6000/spe.md: Likewise.
22713         * config/rs6000/rs6000.c: Likewise.
22714         * config/pa/pa.c: Likewise.
22715         * config/stormy16/stormy16.c: Likewise.
22716         * config/cris/cris.c: Likewise.
22717         * config/arc/arc.md: Likewise.
22718         * config/arc/arc.c: Likewise.
22719         * config/sh/sh.md: Likewise.
22720         * config/sh/sh.c: Likewise.
22721         * config/frv/frv.c: Likewise.
22722
22723 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22724
22725         PR sanitizer/64265
22726         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22727         call as cleanup of the whole body.
22728         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22729         * tsan.c (replace_func_exit): New function.
22730         (instrument_func_exit): Moved earlier.
22731         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22732         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22733         been found.
22734         (tsan_pass): Don't call instrument_func_exit.
22735         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22736         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22737         inlining.
22738
22739         PR sanitizer/64344
22740         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22741         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22742         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
22743         if the result is integer_zerop, return NULL_TREE.
22744         * convert.c (convert_to_integer): Pass expr as ARG.
22745
22746         PR tree-optimization/64465
22747         * tree-inline.c (redirect_all_calls): During inlining
22748         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22749         changed the stmt to a non-throwing call.
22750
22751 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22752
22753         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22754         etc markup throughout the file.
22755
22756 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22757
22758         Enable experimental TSAN support for Ada.
22759         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22760
22761 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22762
22763         PR tree-optimization/64494
22764         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22765         clear SSA_NAME_ANTI_RANGE_P flag.
22766
22767 2015-01-05  Marek Polacek  <polacek@redhat.com>
22768
22769         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22770
22771 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22772
22773         Update copyright years.
22774
22775         * gcc.c (process_command): Update copyright notice dates.
22776         * gcov-dump.c: Ditto.
22777         * gcov.c: Ditto.
22778         * doc/cpp.texi: Bump @copying's copyright year.
22779         * doc/cppinternals.texi: Ditto.
22780         * doc/gcc.texi: Ditto.
22781         * doc/gccint.texi: Ditto.
22782         * doc/gcov.texi: Ditto.
22783         * doc/install.texi: Ditto.
22784         * doc/invoke.texi: Ditto.
22785
22786         * auto-profile.c, auto-profile.h: Fix up Copyright line.
22787
22788 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
22789
22790         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22791         verb tense, etc.
22792         ([-fvtable-verify], [-fvtv-debug]): Likewise.
22793         ([-Wabi]): Likewise.
22794         ([-fmessage-length]): Likewise.
22795         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22796         ([-Wno-discarded-qualifiers]): Likewise.
22797         ([-Wnodiscarded-array-qualifiers]): Likewise.
22798         ([-Wno-virtual-move-assign]): Likewise.
22799         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22800         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22801         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22802         ([-fsanitize-undefined-trap-on-error]): Likewise.
22803         ([-floop-interchange]): Likewise.
22804         ([-ftree-coalesce-inlined-vars]): Likewise.
22805         ([-fvect-cost-model]): Likewise.
22806         ([-flto]): Likewise.
22807         ([--param]): Likewise.
22808         (Spec Files): Likewise.
22809         ([-mstrict-align]): Likewise.
22810         ([-mfix-cortex-a53-835769]): Likewise.
22811         ([-march], [-mtune]): Likewise.
22812         ([-mpic-register]): Likewise.
22813         ([-munaligned-access]): Likewise.
22814         ([-msp8]): Likewise.
22815         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22816         (AVR Built-in Macros): Likewise.
22817         ([-mpreferred-stack-boundary]): Likewise.
22818         ([-mtune-crtl]): Likewise.
22819         ([-mashf]): Likewise.
22820         ([-mmcu=]): Likewise.
22821         ([-minrt]): Likewise.
22822         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22823         ([-mupper-regs]): Likewise.
22824         ([-matomic-model]): Likewise.
22825         ([-mdiv]): Likewise.
22826         ([-mzdcbranch]): Likewise.
22827         ([-mdisable-callt]): Likewise.
22828         ([-msoft-float]): Likewise.
22829         ([-m8byte-align]): Likewise.
22830         ([-fstack-reuse]): Likewise.
22831
22832 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22833
22834         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22835         Fix markup, light copy-editing.
22836         ([-fauto-profile]): Rewrite to fix formatting and content
22837         problems.
22838
22839 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22840
22841         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22842         Copy-edit description.
22843         ([-fisolate-erroneous-paths-attribute]): Likewise.
22844         * common.opt (fisolate-erroneous-paths-dereference):
22845         Copy-edit description.
22846         (fisolate-erroneous-paths-attribute): Likewise.
22847
22848 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22849
22850         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22851         tidy grammar.
22852
22853 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22854
22855         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22856         ([-fvtv-debug]): Likewise.
22857         ([-Wc++-compat]): Likewise.
22858         ([-Wc++11-compat]): Likewise.
22859         ([-Wc++14-compat]): Likewise.
22860         ([-Wno-sized-deallocation]): Likewise.
22861         ([-femit-class-debug-always]): Likewise.
22862         ([-femit-struct-debug-detailed]): Likewise.
22863         ([-fno-keep-inline-dllexport]): Likewise.
22864         ([-fira-algorithm]): Likewise.
22865         ([-fira-region]): Likewise.
22866         ([-flra-remat]): Likewise.
22867         ([-fipa-ra]): Likewise.
22868         ([-fhoist-adjacent-loads]): Likewise.
22869         ([-fisolate-erroneous-paths-dereference]): Likewise.
22870         ([-fisolate-erroneous-paths-attribute]): Likewise.
22871         ([-ftree-switch-conversion]): Likewise.
22872         ([-ftree-tail-merge]): Likewise.
22873         ([-ftree-loop-if-convert]): Likewise.
22874         ([-ftree-loop-if-convert-stores]): Likewise.
22875         ([-ftree-loop-distribution]): Likewise.
22876         ([-ftree-loop-distribute-patterns]): Likewise.
22877         ([-flto-compression-level]): Likewise.
22878         ([-flto-report]): Likewise.
22879         ([-flto-report-wpa]): Likewise.
22880         ([-fuse-linker-plugin]): Likewise.
22881         ([-mfix-cortex-a53-835769]): Likewise.
22882         ([-mno-fix-cortex-a53-835769]): Likewise.
22883         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22884         explicit listing; add a note to the discussion indicating they
22885         exist.  Reorder table to group similar options.  Add missing
22886         @opindex entries.  Add @need commands throughout the table to
22887         allow it to be split across multiple pages.
22888         ([-m8bit-idiv]): Fix @opindex.
22889         ([-mavx256-split-unaligned-load]): Likewise.
22890         ([-mavx256-split-unaligned-store]): Likewise.
22891         ([-mstack-protector-guard]): Likewise.
22892         ([-mcpu=]): Likewise.
22893         ([-mcpu]): Likewise.
22894         ([-mpointer-size=]): Likewise.
22895
22896 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
22897
22898         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22899         instead of `m' constraint.  Likewise for unnamed movb comparison
22900         patterns using reg_before_reload_operand predicate.
22901         * config/pa/predicates.md (reg_before_reload_operand): Tighten
22902         predicate to reject register index and LO_SUM DLT memory forms
22903         after reload.
22904
22905 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22906
22907         * doc/invoke.texi (Option Summary): Fix spelling of
22908         -fdevirtualize-at-ltrans.
22909         ([-fdevirtualize]): Fix markup.
22910         ([-fdevirtualize-speculatively]): Fix typo.
22911         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
22912         implementor-speaky.
22913         * common.opt (fdevirtualize-at-ltrans): Likewise.
22914         * ipa-devirt.c: Fix typos in comments throughout the file.
22915         (ipa_devirt): Fix typos in format strings for dump output.
22916
22917 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22918
22919         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22920         discussion of defaults, light copy-editing.
22921
22922 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22923
22924         * tsan.c (instrument_expr): corrected previous checkin.
22925
22926 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22927
22928         Instrument bit field and unaligned accesses for TSAN.
22929         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22930         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22931         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22932         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22933         unaligned memory regions.
22934
22935 2015-01-01  Anthony Green  <green@moxielogic.com>
22936
22937         * config/moxie/predicates.md (moxie_general_movsrc_operand):
22938         Restrict move source register offsets to 16 bits.
22939 \f
22940 Copyright (C) 2015 Free Software Foundation, Inc.
22941
22942 Copying and distribution of this file, with or without modification,
22943 are permitted in any medium without royalty provided the copyright
22944 notice and this notice are preserved.