[PATCH 3/4] S390 -march=native related fixes
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2
3         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4         processor capabilities with -march=native.
5         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
7         (S390_TARGET_BITS_STRING): Macro to simplify specs.
8
9 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10
11         * config/s390/s390.c (s390_issue_rate): Handle
12         PROCESSOR_2094_Z9_EC.
13         (s390_option_override): Likewise.
14         (s390_adjust_priority): Likewise.
15
16 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17
18         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19         when cross compiling.
20
21 2015-07-24  Richard Biener  <rguenther@suse.de>
22
23         * fold-const.c (maybe_canonicalize_comparison_1): Move
24         A code CST canonicalization ...
25         * match.pd: ... to a pattern here.
26
27 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
28
29         Revert:
30         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
31         PR target/63521
32         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
33         (HONOR_REG_ALLOC_ORDER): Define.
34
35 2015-07-24  Richard Biener  <rguenther@suse.de>
36
37         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
38         * fold-const.c (fold_comparison): Move parameter does not
39         alias &local simplification ...
40         * match.pd: ... as a pattern here.
41
42 2015-07-24  Richard Biener  <rguenther@suse.de>
43
44         * gimple-fold.c (replace_stmt_with_simplification): Special-case
45         valueizing call operands.
46         * gimple-match-head.c (maybe_push_res_to_seq): Take
47         number of call arguments from ops array.
48         (do_valueize): New function.
49         (gimple_simplify): Return true if valueization changed
50         any operand even if the result didn't simplify further.
51
52 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
53
54         PR middle-end/25530
55         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
56
57 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
58
59          PR middle-end/25529
60          * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
61
62 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
63
64         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
65         instruction.
66
67 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
68
69         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
70         clean up.
71
72 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
73
74         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
75         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
76         targets here.
77         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
78         ms_va_list_type_node initialization.
79
80 2015-07-23  Jeff Law  <law@redhat.com>
81
82         PR lto/66752
83         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
84         unable to find X NE 0 in the tables, return X as the simplified
85         condition.
86         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
87         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
88         to VISISTED_BBS.  */
89         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
90         after removing the control flow statement and unnecessary edges.
91
92 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
93
94         * tree-pass.h (get_current_pass_name): Removed.
95
96 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
97
98         PR rtl-optimization/64164
99         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
100         * tree-ssa-copyrename.c: Removed.
101         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
102         -ftree-coalesce-vars.
103         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
104         * common.opt (ftree-copyrename): Ignore.
105         (ftree-coalesce-inlined-vars): Likewise.
106         * doc/invoke.texi: Remove the ignored options above.
107         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
108         * tree-ssa-coalesce.h: ... here.
109         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
110         headers required by it.
111         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
112         across variables when flag_tree_coalesce_vars.  Check register
113         use and promoted modes to allow coalescing.  Moved to
114         tree-ssa-coalesce.c.
115         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
116         with its member functions to tree-ssa-coalesce.c.
117         (var_map_base_init): Likewise.  Renamed to
118         compute_samebase_partition_bases.
119         (partition_view_normal): Drop want_bases parameter.
120         (partition_view_bitmap): Likewise.
121         * tree-ssa-live.h: Adjust declarations.
122         * tree-ssa-coalesce.c: Include explow.h.
123         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
124         default defs at the entry point.
125         (dump_part_var_map): New.
126         (compute_optimized_partition_bases): New, called by...
127         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
128         of compute_samebase_partition_bases.  Adjust.
129         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
130         * cfgexpand.c (leader_merge): New.
131         (get_rtl_for_parm_ssa_default_def): New.
132         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
133         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
134         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
135         redundant MEM attr setting.
136         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
137         from...
138         (expand_one_stack_var): ... this.  New wrapper to check and
139         skip already expanded SSA partitions.
140         (record_alignment_for_reg_var): New, factored out of...
141         (expand_one_var): ... this.
142         (expand_one_ssa_partition): New.
143         (adjust_one_expanded_partition_var): New.
144         (expand_one_register_var): Check and skip already expanded SSA
145         partitions.
146         (expand_used_vars): Don't create DECLs for anonymous SSA
147         names.  Expand all SSA partitions, then adjust all SSA names.
148         (pass::execute): Replace the loops that set
149         SA.partition_to_pseudo from partition leaders and cleared
150         DECL_RTL for multi-location variables, and that which used to
151         rename vars and set attrs, with one that clears DECL_RTL and
152         checks that PARMs and RESULTs default_defs match DECL_RTL.
153         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
154         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
155         * explow.c (promote_ssa_mode): New.
156         * explow.h (promote_ssa_mode): Declare.
157         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
158         * function.c: Include cfgexpand.h.
159         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
160         (use_register_for_parm_decl): Wrapper for the above to
161         special-case the result_ptr.
162         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
163         (split_complex_args): Take assign_parm_data_all argument.
164         Pass it to rtl_for_parm.  Set up rtl and context for split
165         args.
166         (assign_parms_augmented_arg_list): Adjust.
167         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
168         multiple locations.  Recognize split complex args.
169         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
170         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
171         (assign_parm_setup_block): Prefer SSA-assigned location.
172         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
173         if stack_parm is NULL.
174         (assign_parm_setup_stack): Prefer SSA-assigned location.
175         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
176         rtl before testing for pointer bounds.  Special-case result_ptr.
177         (expand_function_start): Maybe reset DECL_RTL of result.
178         Prefer SSA-assigned location for result and static chain.
179         Factor out DECL_RESULT and SET_DECL_RTL.
180         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
181         anonymous SSA names.  Use promote_ssa_mode.
182         (get_temp_reg): Likewise.
183         (remove_ssa_form): Adjust.
184         * stor-layout.c (layout_decl): Don't set mem attributes of
185         non-MEMs.
186         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
187         and get its reg_usage for reg invalidation.
188         (compute_bb_dataflow): Pass it insn.
189         (emit_notes_in_bb): Likewise.
190
191 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
192
193         PR target/66217
194         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
195         prototype.
196         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
197         (rs6000_emit_2insn_and): Handle dot forms.
198         * config/rs6000/rs6000.md (and<mode>3): Adjust.
199         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
200         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
201
202 2015-07-23  Richard Biener  <rguenther@suse.de>
203
204         * generic-match-head.c: Include cgraph.h.
205         * gimple-match-head.c: Likewise.
206         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
207         SSA names.
208         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
209         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
210         pattern.
211
212 2015-07-23  Richard Biener  <rguenther@suse.de>
213
214         * gimple-fold.c (fold_gimple_cond): Do not require folding
215         results to pass valid_gimple_rhs_p.
216         * tree-cfg.h (fold_cond_expr_cond): Remove.
217         * tree-cfg.c (fold_cond_expr_cond): Likewise.
218         (make_edges): Do not call it.
219         * tree-inline.c (tree_function_versioning): Likewise.
220
221 2015-07-23  Tom de Vries  <tom@codesourcery.com>
222
223         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
224         vect_force_simple_reduction.
225         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
226         (vect_is_simple_reduction_1): Add and handle
227         need_wrapping_integral_overflow parameter.
228         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
229         need_wrapping_integral_overflow parameter.
230         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
231         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
232         decl.
233
234 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
235
236         PR tree-optimization/66926,66951
237         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
238         INNER_LOOP and fix up condition for renaming virtual operands.
239
240 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
241
242         * combine.c (try_combine): Use std::swap instead of manually
243         swapping.
244
245 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
246
247         * config/mips/i6400.md: New file.
248         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
249         (mips64r6): Likewise.
250         (i6400): Define.
251         * config/mips/mips-tables.opt: Regenerate.
252         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
253         (mips_issue_rate): Add support for i6400.
254         (mips_multipass_dfa_lookahead): Likewise.
255         * config/mips/mips.h (TUNE_I6400): Define.
256         * config/mips/mips.md: Include i6400.md.
257         (processor): Add i6400.
258         * doc/invoke.texi (-march=@var{arch}): Add i6400.
259
260 2015-07-23  Richard Biener  <rguenther@suse.de>
261
262         PR middle-end/66916
263         * match.pd: Guard widen and sign-change comparison simplification
264         with single_use.
265
266 2015-07-23  Richard Biener  <rguenther@suse.de>
267
268         PR tree-optimization/66945
269         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
270         ::before_dom_children): Force the propagators idea of
271         non-executable edges to materialize, not what the folder
272         chooses.
273
274 2015-07-23  Richard Biener  <rguenther@suse.de>
275
276         * gimple.h (gimple_cond_make_false): Use 0 != 0.
277         (gimple_cond_make_true): Use 1 != 0.
278
279 2015-07-22  DJ Delorie  <dj@redhat.com>
280
281         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
282         slashes.
283
284         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
285         (ashrhi3): Likewise.
286         (lshrhi3): Likewise.
287         (movhi): Take advantage of zero-extend to load small constants.
288         (movpsi): Likewise.
289         (and<mode>3): Likewise.
290         (zero_extendqihi2): Likewise.
291         (zero_extendqisi2): New.
292         * config/msp430/constraints.md (N,O): New.
293         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
294
295 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
296
297         PR target/66954
298         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
299         to enum feature_priority and feature_list.
300         (fold_builtin_cpu): Add F_AES to enum processor_features
301         and isa_names_table.
302
303 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
304
305         PR driver/66737
306         * config/i386/linux-common.h (MPX_SPEC): Use linker option
307         for 64bit target only.
308
309 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
310
311         * config/nvptx/nvptx.c: Expand some comments.
312
313 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
314
315         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
316         (cortex_a53_advsimd): ...This.
317
318 2015-07-22  Richard Biener  <rguenther@suse.de>
319
320         * genmatch.c (expr::gen_transform): Clarify error message
321         and display location.
322
323 2015-07-22  Richard Biener  <rguenther@suse.de>
324
325         * genmatch.c (struct operand): Add location member.
326         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
327         constructors.
328         (struct simplify): Remove match_location and result_location
329         members.
330         (elsehwere): Adjust.
331
332 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
333
334         * config/mips/m5100.md: New file.
335         * config/mips/mips-cpus.def (m5100, m5101): Define.
336         * config/mips/mips-tables.opt: Regenerate.
337         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
338         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
339         -march=m5101 to -mips32r5.
340         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
341         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
342         !-msoft-float.
343         * config/mips/mips.md: Include m5100.md.
344         (processor): Add m5100.
345         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
346
347 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
348
349         * config/mips/mips-cpus.def (interaptiv): Define.
350         * config/mips/mips-tables.opt: Regenerate.
351         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
352         -mips32r2.
353         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
354         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
355
356 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
357
358         PR target/63521
359         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
360         (HONOR_REG_ALLOC_ORDER): Define.
361
362 2015-07-22  Richard Biener  <rguenther@suse.de>
363
364         PR tree-optimization/66952
365         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
366         blocks we end up executing unconditionally reset all SSA
367         info such as range and alignment.
368         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
369         * tree-ssanames.c (reset_flow_sensitive_info): New function.
370
371 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
372
373         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
374         typo in attribute.
375
376 2015-07-22  Richard Biener  <rguenther@suse.de>
377
378         * genmatch.c (parser::parse_result): Properly handle
379         match with result operands and conditions.
380
381 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
382
383         PR target/63870
384         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
385         Add qualifier_struct_load_store_lane_index.
386         (aarch64_types_loadstruct_lane_qualifiers): Use
387         qualifier_struct_load_store_lane_index for lane index argument for
388         last argument.
389         (aarch64_types_storestruct_lane_qualifiers): Ditto.
390         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
391         (aarch64_simd_expand_args): Add new argument describing mode of
392         builtin. Check lane bounds for arguments with
393         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
394         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
395         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
396         (aarch64_simd_expand_builtin): Handle arguments with
397         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
398         aarch64_simd_expand_args.
399         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
400         vst[234]_lane with BUILTIN_VALLDIF.
401         * config/aarch64/aarch64-simd.md:
402         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
403         endianness reversal on lane index.
404         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
405         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
406         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
407         (vec_store_lanesci_lane<mode>): Ditto.
408         (vec_store_lanesxi_lane<mode>): Ditto.
409         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
410         reversal of lane index.
411         (aarch64_ld3_lane<mode>): Ditto.
412         (aarch64_ld4_lane<mode>): Ditto.
413         (aarch64_st2_lane<mode>): Ditto.
414         (aarch64_st3_lane<mode>): Ditto.
415         (aarch64_st4_lane<mode>): Ditto.
416         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
417         to qmode. Add new mode parameter. Update uses.
418         (__LD3_LANE_FUNC): Ditto.
419         (__LD4_LANE_FUNC): Ditto.
420         (__ST2_LANE_FUNC): Ditto.
421         (__ST3_LANE_FUNC): Ditto.
422         (__ST4_LANE_FUNC): Ditto.
423
424 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
425
426         * doc/invoke.texi (Language Independent Options): Rename node to
427         Diagnostic Message Formatting Options.
428
429 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
430
431         PR ipa/66424.
432         * lra-remat.c (operand_to_remat): Prevent using insns with input
433         subregs processed separately by IRA.
434
435 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
436
437         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
438         straight loops.
439         (single_imm_use): Check for iterator node.
440         (num_imm_uses): Likewise.
441         * tree-ssa-operands.c (has_zero_uses_1): Delete.
442         (single_imm_use_1): Check for iterator node.
443
444 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
445             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
446
447         * configure.ac: Add check for new options in isl-0.15.
448         * config.in, configure: Rebuilt.
449         * graphite-blocking.c: Include <isl/constraint.h>
450         * graphite-interchange.c,  graphite-poly.c: Likewise.
451         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
452         * graphite.c: Likewise.
453         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
454         <isl/union_set.h>.
455         * graphite-dependences.c: Include <isl/constraint.h>.
456         (max_number_of_out_dimensions): Returns isl_stat.
457         (extend_schedule_1): Likewise
458         (extend_schedule): Corresponding changes.
459         * graphite-optimize-isl.c: Include <isl/constraint.h> and
460         <isl/union_set.h>.
461         (getSingleMap): Change return type of isl_stat.
462         (optimize_isl): Conditionally use
463         isl_options_set_schedule_serialize_sccs.
464         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
465         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
466
467 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
468
469         PR target/66956
470         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
471         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
472
473 2015-07-21  Richard Biener  <rguenther@suse.de>
474
475         PR tree-optimization/66948
476         * genmatch.c (capture_info::walk_match): Also recurse to
477         captures.  Properly compute expr state from captures of
478         captures.
479         * match.pd: Add single-use guards to
480         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
481
482 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
483
484         * config/nvptx/mkoffload.c (process): Add static destructor call.
485
486 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
487
488         PR middle-end/66915
489         * match.pd (A - B -> A + (-B)): Don't allow folding
490         when type if a fixed-point type.
491
492 2015-07-20  DJ Delorie  <dj@redhat.com>
493
494         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
495         (iorqi3_real): Likewise for set1.
496
497 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
498
499         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
500         for !TARGET_64BIT.
501
502 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
503
504         * graphite-isl-ast-to-gimple.c:
505         Refactor so that each function can access 'region'. This will help
506         maintain a parameter rename_map within a region.
507
508 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
509
510         * config/rs6000/rs6000.md (*lt0_disi): New.
511
512 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
513
514         PR target/66217
515         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
516         "available letters" comment.
517         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
518         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
519         and_2rld_operand):  Delete.
520         (and_operand): Adjust.
521         (rotate_mask_operator): New.
522         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
523         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
524         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
525         extract_ME): Delete.
526         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
527         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
528         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
529         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
530         rs6000_emit_2insn_and): New.
531         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
532         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
533         includes_rldic_lshift_p, includes_rldicr_lshift_p,
534         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
535         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
536         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
537         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
538         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
539         rs6000_emit_2insn_and): New.
540         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
541         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
542         handling.
543         <NOT>: Don't fall through to next case.
544         <AND>: Handle the various rotate-and-mask cases directly.
545         <IOR>: Always cost as one insn.
546         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
547         (and<mode>3): Adjust expander for the new patterns.
548         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
549         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
550         (*and<mode>3_imm_dot_shifted): New.
551         (*and<mode>3_mask): Delete, rewrite as ...
552         (and<mode>3_mask): ... New.
553         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
554         (andsi3_internal0_nomc): Delete.
555         (*andsi3_internal6): Delete.
556         (*and<mode>3_2insn): New.
557         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
558         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
559         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
560         *insvdi_internal3): Delete.
561         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
562         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
563         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
564         *ior<mode>_mask): New.
565         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
566         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
567         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
568         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
569         Delete.
570         (ashr<mode>3): Delete expander.
571         (*ashr<mode>3): Rename to ...
572         (ashr<mode>3): ... This.
573         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
574         (*rotldi3_internal4, *rotldi3_internal5 and split,
575         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
576         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
577         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
578         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
579         (splitter for loading a mask): Adjust.
580         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
581
582 2015-07-20  Marek Polacek  <polacek@redhat.com>
583
584         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
585         output_add_clobbers, output_added_clobbers_hard_reg_p,
586         gen_rtx_scratch): Remove declarations.
587
588 2015-07-20  Marek Polacek  <polacek@redhat.com>
589
590         PR c++/55095
591         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
592
593 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
594
595         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
596         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
597
598 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
599
600         * combine.c (combine_simplify_rtx): Move simplification step
601         before various transformations/substitutions.
602
603 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
604
605         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
606         (struct int_traits): Likewise.
607
608 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
609
610         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
611         function to vmsdbgout_function_decl.
612
613 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
614
615         PR target/66922
616         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
617         from misaligned positions.
618         (ix86_expand_pinsr): Reject insertions to misaligned positions.
619
620 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
621
622         PR middle-end/46851
623         PR middle-end/60340
624         * Makefile.in: Removed omega.o.
625         * common.opt: Document flag fcheck-data-deps as deprecated.
626         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
627         its associated params: omega-max-vars, omega-max-geqs,
628         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
629         omega-max-keys, omega-eliminate-redundant-constraints.
630         * doc/loop.texi: Remove all the section on Omega.
631         * graphite-blocking.c: Include missing params.h: it used to be
632         included through tree-data-ref.h and omega.h.
633         * graphite-isl-ast-to-gimple.c: Same.
634         * graphite-optimize-isl.c: Same.
635         * graphite-sese-to-poly.c: Same.
636         * graphite.c: Same.
637         * omega.c: Remove.
638         * omega.h: Remove.
639         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
640         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
641         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
642         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
643         * passes.def: Remove pass_check_data_deps.
644         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
645         (dump_conflict_function): Same.
646         (dump_subscript): Same.
647         (print_direction_vector): Same.
648         (print_dir_vectors): Same.
649         (print_lambda_vector): Same.
650         (print_dist_vectors): Same.
651         (dump_data_dependence_relation): Same.
652         (dump_data_dependence_relations): Same.
653         (dump_dist_dir_vectors): Same.
654         (dump_ddrs): Same.
655         (init_omega_eq_with_af): Removed.
656         (omega_extract_distance_vectors): Removed.
657         (omega_setup_subscript): Removed.
658         (init_omega_for_ddr_1): Removed.
659         (init_omega_for_ddr): Removed.
660         (ddr_consistent_p): Removed.
661         (compute_affine_dependence): Do not use omega to check data
662         dependences.
663         (compute_data_dependences_for_bb): Removed.
664         (analyze_all_data_dependences): Removed.
665         (tree_check_data_deps): Removed.
666         * tree-data-ref.h: Do not include omega.h.
667         (compute_data_dependences_for_bb): Removed.
668         (tree_check_data_deps): Removed.
669         * tree-ssa-loop.c (pass_check_data_deps): Removed.
670         (make_pass_check_data_deps): Removed.
671         * tree-ssa-phiopt.c: Include params.h.
672         * tree-vect-data-refs.c: Same.
673         * tree-vect-slp.c: Same.
674
675 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
676
677         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
678         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
679         (mem->fpreg splitters): Ditto.
680         (general_operand->nonimmediate_operand splitter): Use explicit modes.
681         Disable DFmode for TARGET_64BIT.
682
683 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
684
685         PR target/66906
686         * config/i386/i386.c (ix86_expand_prologue): Replicate static
687         chain on the stack.
688
689 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
690
691         * config/nvptx/mkoffload.c (process): Constify host data.
692         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
693         Constify host data.
694         (generate_host_descr_file): Likewise.
695
696 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
697             Sebastian Pop  <s.pop@samsung.com>
698
699         PR middle-end/61929
700         * graphite-dependences.c (add_pdr_constraints): Renamed
701         pdr->extent to pdr->subscript_sizes.
702         * graphite-interchange.c (build_linearized_memory_access): Add
703         back all gcc_assert's that the "isl_int to isl_val conversion"
704         patch has removed.  Refactored.
705         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
706         * graphite-poly.c (new_poly_dr): Same.
707         (free_poly_dr): Same.
708         * graphite-poly.h (struct poly_dr): Same.
709         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
710         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
711         * graphite-scop-detection.h: Fix space.
712         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
713         back all gcc_assert's removed by a previous patch.
714         (wrap): Remove the_isl_ctx global variable that the same patch has
715         added.
716         (build_loop_iteration_domains): Same.
717         (add_param_constraints): Same.
718         (pdr_add_data_dimensions): Same.  Refactored.
719         (build_poly_dr): Renamed extent to subscript_sizes.
720
721 2015-07-17  Marek Polacek  <polacek@redhat.com>
722
723         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
724         * match.pd: ... here.
725
726 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
727
728         * config/nvptx/mkoffload.c (process): Constify target data.
729         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
730         Constify target data.
731         (generate_target_offloadend_file): Likewise.
732
733 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
734
735         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
736         to allow renaming of PHI arguments on edges incoming from outer
737         loop header, add corresponding check before start PHI iterator.
738         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
739         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
740         with true force_vectorize.  Set-up dominator for outer loop too.
741         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
742         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
743         was marked with force_vectorize and has restricted cfg.
744         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
745         inner loop.
746         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
747         do peeling for outer loops.
748
749 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
750             Matthias Klose  <doko@ubuntu.com>
751
752         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
753         build-sysroot, sysroot from the `Miscenalleous configure options' to
754         the `Directories' section and strip trailing `/' from with_sysroot.
755         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
756         * configure: Regenerated.
757
758 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
759
760         PR target/66824
761         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
762         (TARGET_HARD_DF_REGS): Ditto.
763         (TARGET_HARD_XF_REGS): Ditto.
764         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
765         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
766         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
767         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
768         (*movsf_internal): Add alternatives 16 and 17. Enable
769         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
770
771 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
772
773         PR rtl-optimization/66891
774         * calls.c (expand_call): Wrap precompute_register_parameters with
775         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
776
777 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
778
779         * config/nvptx/mkoffload.c (process): Constify mapping variables.
780         Define target data struct and initialize it.
781
782 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
783
784         PR rtl-optimization/66626
785         * ira.h (emit-rtl.h): Include.
786         (non_spilled_static_chain_regno_p): New.
787         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
788         unless it is non spilled static chain pseudo.
789         (assign_hard_rego): Spill memory profitable allocno unless it is
790         non spilled static chain pseudo.
791         (allocno_spill_priority_compare): Put non spilled static chain
792         pseudo at the end of sorted array.
793         (improve_allocation): Do nothing if we have static chain and
794         non-local goto.
795         (allocno__priority_compare_func): Put non spilled static chain
796         pseudo at the beginning of sorted array.
797         (move_spill_restore): Ignore non spilled static chain pseudo.
798         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
799         to non spilled static chain pseudo.
800         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
801         pseudo at the beginning of sorted array.
802         (spill_for): Spill non spilled static chain pseudo last.
803         * lra-constraints.c (lra_constraints): Remove static chain pseudo
804         check for equivalence.
805
806 2015-07-16  Martin Liska  <mliska@suse.cz>
807
808         PR ipa/66896.
809         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
810         dst_ctx if it does not exist.
811
812 2015-07-16  Martin Liska  <mliska@suse.cz>
813
814         * hash-set.h (remove): New function.
815         (iterator): New iteration class for hash_set.
816
817 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
818
819         * genattrtab.c (make_canonical): Add a file_location parameter.
820         Use fatal_at rather than fatal.
821         (get_attr_value): Likewise.  Update call to make_canonical.
822         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
823         (make_internal_attr): Update calls accordingly.
824
825 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
826
827         * read-md.h (message_with_line, error_with_line): Delete.
828         * read-md.c (message_with_line, error_with_line): Delete.
829         * gensupport.h: Include read-md.h.
830         (md_rtx_info): New structure.
831         (read_md_rtx): Use it.  Return a bool success value.
832         * gensupport.c (read_md_rtx): Likewise.
833         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
834         (main): Update after interface changes.
835         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
836         (main): Update after interface changes.
837         * genattrtab.c (insn_code_number): Delete.
838         (optimize_attrs): Add a max_insn_code parameter and use it instead
839         of insn_code_number.
840         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
841         Use *_at rather than *_with_line functions.
842         (gen_insn): Likewise.
843         (gen_delay): Likewise.
844         (gen_insn_reserv): Likewise.
845         (gen_bypass): Take an md_rtx_info rather than an rtx.
846         (main): Update after interface changes.  Use a local max_insn_code
847         variable instead of insn_code_number.
848         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
849         an rtx.  Use fatal_at rather than fatal.
850         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
851         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
852         (gen_absence_set, gen_final_absence_set, gen_automaton)
853         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
854         (main): Update after interface changes.
855         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
856         and code number.
857         (main): Update after interface changes.
858         * genconditions.c (main): Use new read_md_rtx interface.
859         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
860         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
861         (main): Update after interface changes.
862         * genemit.c (insn_code_number, insn_index_number): Delete.
863         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
864         Use fatal_at rather than fatal.
865         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
866         rather than fatal.
867         (gen_split): Likewise.
868         (main): Update after interface changes.
869         * genextract.c (line_no): Delete.
870         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
871         Update call to walk_rtx.
872         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
873         rather than message_with_line.
874         (walk_rtx): Add an md_rtx_info argument.  Update call to
875         VEC_safe_set_locstr.
876         (main): Update after interface changes.
877         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
878         and lineno.  Use error_at rather than separate message_with_line
879         calls and have_error assignments.
880         (main): Update after interface changes.
881         * genmddump.c (main): Use new read_md_rtx interface.
882         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
883         (main): Update after interface changes.
884         * genoutput.c (next_code_number): Delete.
885         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
886         (gen_peephole, gen_expand, gen_split): Likewise.
887         (note_constraint): Likewise.  Use *_at rather than *_with_line
888         functions.
889         (main): Update after interface changes.
890         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
891         rtx and lineno.
892         (main): Update after interface changes.
893         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
894         than an rtx and lineno.
895         (process_define_constraint): Likewise.
896         (process_define_register_constraint): Likewise.
897         (main): Update after interface changes.
898         * genrecog.c (next_insn_code, pattern_lineno): Delete.
899         (validate_pattern): Replace top-level rtx with an md_rtx_info.
900         Use *_at rather than *_with_line functions.
901         (match_pattern_2): Likewise.
902         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
903         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
904         Use *_at rather than *_with_line functions.
905         * gentarget-def.c (add_insn): New function.
906         (main): Use it.  Use new read_md_rtx interface.
907
908 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
909
910         * gensupport.h (compute_test_codes): Take a file_location rather
911         than a line number.
912         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
913         rather than *_with_line functions.
914         (process_define_predicate): Update call to compute_test_codes.
915         * genpreds.c (validate_exp): Take a file_location rather than a
916         line number.  Use *_at functions rather than *_with_line functions.
917         (process_define_predicate): Update call to validate_exp.
918         (constraint_data): Replace lineno field with a file_location.
919         (add_constraint): Take a file_location rather than a line number.
920         Use *_at functions rather than *_with_line functions.  Fix error
921         message for address constraints.  Update after changes to
922         validate_exp, constraint_data and compute_test_codes.
923         (process_define_constraint): Update accordingly.
924         (process_define_register_constraint): Likewise.
925
926 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
927
928         * genoutput.c (data): Use a file_location to record the source
929         position.
930         (nothing): Delete.
931         (idata, idata_end): Remove initialization.
932         (constraint_data): Replace lineno with a file_location.
933         (output_insn_data): Update after changes to data.
934         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
935         (scan_operands): Likewise, using *_at rather than *_with_line
936         functions.
937         (process_template): Likewise.
938         (validate_insn_alternatives): Likewise.
939         (validate_insn_operands): Likewise.
940         (validate_optab_operands): Likewise.
941         (init_insn_for_nothing): Initialize idata and idata_end.
942         (note_constraint): Update after changes to constraint_data,
943         using at rather than with_line functions.
944         (mdep_constraint_len): Take a file_location rather than a
945         line number.  Use at rather than with_line functions.
946
947 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
948
949         * read-md.h (fatal_at): Declare.
950         * read-md.c (fatal_at): New function.
951         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
952         to record the source position.
953         (check_attr_test): Take a file_location instead of a line number.
954         Use fatal_at instead of fatal.
955         (check_attr_value): Update after above changes, using "at"
956         rather than "with_line" reporting functions.
957         (convert_set_attr_alternative): Likewise.
958         (gen_attr): Likewise.
959         (check_defs): Likewise.  Don't assign to read_md_filename.
960         (gen_insn): Update initialization after above changes.
961         (gen_delay): Likewise.
962         (write_insn_cases): Print the filename for a define_peephole.
963         (gen_insn_reserv): Take a line number as argument and update
964         the call to check_attr_test.
965         (main): Pass a line number to gen_insn_reserv.
966
967 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
968
969         * read-md.h (file_location): New structure.
970         (directive_handler_t): Take a file_location rather than a line number.
971         (message_at, error_at): Declare.
972         (read_skip_construct): Delete.
973         * read-md.c (message_with_line_1): Replace with...
974         (message_at_1): ...this new function.
975         (message_at, error_at): New functions.
976         (message_with_line, error_with_line): Update to use message_at_1.
977         (handle_enum): Take a file_location rather than a line number
978         and use error_at for error reporting.
979         (handle_include): Likewise.
980         (read_skip_construct): Likewise.  Make static.
981         (handle_file): Update after above changes.  Pass a file_location
982         rather than a line number to handle_directive.
983         * gensupport.c (queue_elem): Replace separate filename and lineno
984         with a file_location.
985         (queue_pattern): Replace filename and lineno arguments with a
986         file_location.  Update after change to queue_elem.
987         (process_define_predicate): Replace lineno argument with a
988         file_location and use error_at for error reporting.  Update
989         after above changes.
990         (process_rtx): Likewise.
991         (subst_pattern_match): Likewise.
992         (get_alternatives_number): Likewise.
993         (alter_predicate_for_insn): Likewise.
994         (rtx_handle_directive): Likewise.
995         (is_predicable): Update after above changes, using error_at rather
996         than error_with_line.
997         (has_subst_attribute): Likewise.
998         (identify_predicable_attribute): Likewise.
999         (alter_attrs_for_subst_insn): Likewise.
1000         (process_one_cond_exec): Likewise.
1001         (process_substs_on_one_elem): Likewise.
1002         (process_define_subst): Likewise.
1003         (check_define_attr_duplicates): Likewise.
1004         (read_md_rtx): Update after change to queue_elem.
1005
1006 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1007
1008         * genoutput.c (next_index_number): Delete.
1009         (data): Remove index_number.
1010         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1011         (main): Remove manipulation of next_index_number.
1012
1013 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1014
1015         * genattrtab.c (check_attr_value): Remove handling of null attrs.
1016         (make_canonical): Likewise.
1017
1018 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1019
1020         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1021         instead of adjust_address_nv.
1022         (restore_stack_nonlocal): Likewise.
1023         (nonlocal_goto): Likewise.
1024
1025 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1026
1027         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1028         not have a corresponding loop header phi.
1029
1030 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1031
1032         * tree-parloops.c (create_loads_for_reductions): Handle case that
1033         reduction is unused.
1034
1035 2015-07-16  Richard Biener  <rguenther@suse.de>
1036
1037         PR tree-optimization/66894
1038         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1039         about deriving NE_EXPR from truncated values.
1040
1041 2015-07-16  Martin Liska  <mliska@suse.cz>
1042
1043         * alloc-pool.h
1044         (object_allocator): Add new class.
1045         (pool_allocator::initialize): Use the underlying class.
1046         (pool_allocator::allocate): Likewise.
1047         (pool_allocator::remove): Likewise.
1048         (operator new): A new generic allocator.
1049         * asan.c (struct asan_mem_ref): Remove unused members.
1050         (asan_mem_ref_new): Replace new operator with
1051         object_allocator::allocate.
1052         (free_mem_ref_resources): Change deallocation.
1053         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1054         with object_allocator.
1055         * config/sh/sh.c (add_constant): Replace new operator with
1056         object_allocator::allocate.
1057         (sh_reorg): Change call to a release method.
1058         * cselib.c (struct elt_list): Remove unused members.
1059         (new_elt_list): Replace new operator with
1060         object_allocator::allocate.
1061         (new_elt_loc_list): Likewise.
1062         (new_cselib_val): Likewise.
1063         (unchain_one_elt_list): Change delete operator with remove method.
1064         (unchain_one_elt_loc_list): Likewise.
1065         (unchain_one_value): Likewise.
1066         (cselib_finish): Release newly added static allocators.
1067         * cselib.h (struct cselib_val): Remove unused members.
1068         (struct elt_loc_list): Likewise.
1069         * df-problems.c (df_chain_alloc): Replace pool_allocator with
1070         object_allocator.
1071         * df-scan.c (struct df_scan_problem_data): Likewise.
1072         (df_scan_alloc): Likewise.
1073         * df.h (struct dataflow): Likewise.
1074         * dse.c (struct read_info_type): Likewise.
1075         (struct insn_info_type): Likewise.
1076         (struct dse_bb_info_type): Likewise.
1077         (struct group_info): Likewise.
1078         (struct deferred_change): Likewise.
1079         (get_group_info): Likewise.
1080         (delete_dead_store_insn): Likewise.
1081         (free_read_records): Likewise.
1082         (replace_read): Likewise.
1083         (check_mem_read_rtx): Likewise.
1084         (scan_insn): Likewise.
1085         (dse_step1): Likewise.
1086         (dse_step7): Likewise.
1087         * et-forest.c (struct et_occ): Remove unused members.
1088         (et_new_occ): Use allocate instead of new operator.
1089         (et_new_tree): Likewise.
1090         (et_free_tree): Call release method explicitly.
1091         (et_free_tree_force): Likewise.
1092         (et_free_pools): Likewise.
1093         (et_split): Use remove instead of delete operator.
1094         * et-forest.h (struct et_node): Remove unused members.
1095         * ipa-cp.c: Change pool_allocator to object_allocator.
1096         * ipa-inline-analysis.c: Likewise.
1097         * ipa-profile.c: Likewise.
1098         * ipa-prop.c: Likewise.
1099         * ipa-prop.h: Likewise.
1100         * ira-build.c (initiate_cost_vectors): Cast return value.
1101         (ira_allocate_cost_vector): Likewise.
1102         * ira-color.c (struct update_cost_record): Remove unused members.
1103         * lra-int.h (struct lra_live_range): Likewise.
1104         (struct lra_copy): Likewise.
1105         (struct lra_insn_reg): Likewise.
1106         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1107         * lra.c (new_insn_reg): Replace new operator with allocate method.
1108         (free_insn_regs): Same for operator delete.
1109         (finish_insn_regs): Release new static allocator.
1110         (finish_insn_recog_data): Likewise.
1111         (lra_free_copies): Replace delete operator with remove method.
1112         (lra_create_copy): Replace operator new with allocate method.
1113         (invalidate_insn_data_regno_info): Same for remove method.
1114         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1115         (free_debug_insn_changes): Replace delete operator with remove method.
1116         (replace_oldest_value_reg): Replace operator new with allocate method.
1117         (pass_cprop_hardreg::execute): Release new static variable.
1118         * sched-deps.c (sched_deps_init): Change pool_allocator to
1119         object_allocator.
1120         * sel-sched-ir.c: Likewise.
1121         * sel-sched-ir.h: Likewise.
1122         * stmt.c (expand_case): Likewise.
1123         (expand_sjlj_dispatch_table): Likewise.
1124         * tree-sra.c (struct access): Remove unused members.
1125         (struct assign_link): Likewise.
1126         (sra_deinitialize): Release newly added static pools.
1127         (create_access_1):Replace operator new with allocate method.
1128         (build_accesses_from_assign): Likewise.
1129         (create_artificial_child_access): Likewise.
1130         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1131         pool_allocator to object_allocator.
1132         * tree-ssa-pre.c: Likewise.
1133         * tree-ssa-reassoc.c: Likewise.
1134         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1135         * tree-ssa-strlen.c: Likewise.
1136         * tree-ssa-structalias.c: Likewise.
1137         * var-tracking.c (onepart_pool_allocate): New function.
1138         (unshare_variable): Use the newly added function.
1139         (variable_merge_over_cur): Likewise.
1140         (variable_from_dropped): Likewise.
1141         (variable_was_changed): Likewise.
1142         (set_slot_part): Likewise.
1143         (emit_notes_for_differences_1): Likewise.
1144         (vt_finalize): Release newly added static pools.
1145
1146 2015-07-16  Martin Jambor  <mjambor@suse.cz>
1147
1148         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
1149         all uses.  Fix two typos in its general comment.
1150         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
1151
1152 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
1153
1154         * config/i386/linux-common.h (LINK_MPX): New.
1155         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1156         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1157         indicating '-z bndplt' support by linker.
1158         * configure: Regenerate.
1159         * config.in: Regenerate.
1160
1161 2015-07-16  Richard Biener  <rguenther@suse.de>
1162
1163         * fold-const.c (fold_widened_comparison): Remove.
1164         (fold_sign_changed_comparison): Likewise.
1165         (fold_comparison): Move widened and sign-changed comparison
1166         simplification ...
1167         * match.pd: ... to patterns here.
1168         * generic-match-head.c: Include target.h.
1169         * gimple-match-head.c: Likewise.
1170
1171 2015-07-16  Richard Biener  <rguenther@suse.de>
1172
1173         * tree-ssa-dom.c (dom_valueize): New function.
1174         (record_temporary_equivalences): Also record equivalences
1175         for dominating stmts that have uses of equivalences we are
1176         about to record.
1177
1178 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
1179
1180         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1181         add_autoinc_candidates.
1182         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1183         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1184         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1185         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1186         Call new function.
1187         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1188         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1189         Remove parameter struct iv*.  Call add_autoinc_candidates here.
1190         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1191         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1192         Call new function.
1193         (find_iv_candidates): Call new functions.
1194
1195 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1196
1197         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1198         uninitialized-variable warning.
1199
1200 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1201
1202         PR target/65249
1203         * config/sh/sh.md (movdi): Split simple reg move to two movsi
1204         when the destination is R0.
1205
1206 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
1207
1208         PR target/66866
1209         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1210         * config/i386/i386.c (ix86_expand_pextr): New function.
1211         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
1212         for non-lowpart subregs.
1213         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1214         (insv<mode>): Use SWI248 mode iterator.
1215         (insv<mode>_1): Ditto.
1216
1217 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1218             Sebastian Pop  <s.pop@samsung.com>
1219
1220         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1221         iterator to use_stmt.
1222
1223 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1224             Sebastian Pop <s.pop@samsung.com>
1225
1226         * graphite-scop-detection.c (build_scops_1): Discard scops for
1227         which entry==exit.
1228
1229 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1230             Sebastian Pop <s.pop@samsung.com>
1231
1232         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1233         case of a return statement in scop.
1234
1235 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1236             Sebastian Pop <s.pop@samsung.com>
1237
1238         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1239         INTEGER_TYPE parameters.
1240         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1241         VECTOR_CST in scan_tree_for_params.
1242         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1243
1244 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1245
1246         * gimple-pretty-print.h: Don't include pretty-print.h.
1247         * tree-streamer.h: Don't include lto-streamer.h.
1248         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1249         * gimple-streamer-in.c: Remove redundant includes.
1250         * gimple-streamer-out.c: Likewise.
1251         * ipa-devirt.c: Likewise.
1252         * ipa-icf.c: Likewise.
1253         * ipa-inline-analysis.c: Likewise.
1254         * ipa-polymorphic-call.c: Likewise.
1255         * ipa-profile.c: Likewise.
1256         * ipa-prop.c: Likewise.
1257         * ipa-pure-const.c: Likewise.
1258         * lto-cgraph.c: Likewise.
1259         * lto-streamer-in.c: Likewise.
1260         * lto-streamer-out.c: Likewise.
1261         * lto-streamer.c: Likewise.
1262         * tree-streamer-in.c: Likewise.
1263         * tree-streamer-out.c: Likewise.
1264         * tree-streamer.c: Likewise.
1265
1266 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1267
1268         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1269         include input.h.
1270         * opts.c: Remove multiline #include comment.
1271
1272 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
1273
1274         * config/nvptx/mkoffload.c (process): Add C++ protection to
1275         emitted code.
1276
1277 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1278
1279         PR target/66854
1280         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1281         null before IEEE 128-bit floating point support patch.
1282
1283 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1284
1285         * simplify-rtx.c (simplify_ternary_operation): Add simplification
1286         for (!c) != {0,...,0} ? a : b for vector modes.
1287
1288 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
1289             Martin Jambor  <mjambor@suse.cz>
1290
1291         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1292         struct func_body_info* instead of struct ipa_node_params*, expecting
1293         fbi->info to be filled in.  Replace throughout.  Adjust call to
1294         ipa_load_from_parm_agg.
1295         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1296         instead of struct ipa_node_params*.  Adjust calls to other functions
1297         so that they pass either fbi or fbi->info.
1298         (set_switch_stmt_execution_predicate): Likewise.
1299         (will_be_nonconstant_predicate): Likewise.
1300         (compute_bb_predicates): Likewise.
1301         (estimate_function_body_sizes): Move asserts earlier.  Fill in
1302         struct func_body_info, replace parms_info with fbi.info.  Adjust
1303         calls to functions that now accept struct func_body_info.
1304         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1305         (struct func_body_info): Likewise.
1306         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1307         remove static.  Adjust callers.
1308         (ipa_load_from_parm_agg): Remove.
1309         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1310         (func_body_info): Likewise.
1311         (ipa_load_from_parm_agg): Adjust prototype.
1312
1313 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1314
1315         * gensupport.c (rtx_handle_directive): Adjust.
1316         * read-rtl.c (apply_iterators): Take vector to add rtxs to
1317         instead of expr list rtx.
1318         (add_define_attr_for_define_subst): Likewise.
1319         (add_define_subst_attr): Likewise.
1320         (read_subst_mapping): Likewise.
1321         (read_rtx): Likewise.
1322         * rtl.h (read_rtx): Adjust.
1323
1324 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1325
1326         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1327
1328 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1329
1330         PR target/58066
1331         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1332         (*tls_local_dynamic_base_64_<mode>): Ditto.
1333         (*tls_local_dynamic_base_64_largepic): Ditto.
1334         (tls_global_dynamic_64_<mode>): Update expander pattern.
1335         (tls_local_dynamic_base_64_<mode>): Ditto.
1336
1337 2015-07-15  Richard Biener  <rguenther@suse.de>
1338
1339         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1340         and bool_var == 1 -> bool_var simplifications ...
1341         * match.pd: ... to patterns here.  Factor out negate_expr_p
1342         cases from the A - B -> A + (-B) patterns as negate_expr_p
1343         predicate and add a -(A + B) -> (-B) - A pattern.
1344
1345 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
1346
1347         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1348
1349 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
1350             Robert Suchanek  <robert.suchanek@imgtec.com>
1351
1352         * config/mips/mips.c (mips_int_mask): New enum.
1353         (mips_shadow_set): Likewise.
1354         (int_mask): New variable.
1355         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1356         (machine_function): Add int_mask and use_shadow_register_set.
1357         (mips_attribute_table): Add attribute handlers for interrupt and
1358         use_shadow_register_set.
1359         (mips_interrupt_mask): New static function.
1360         (mips_handle_interrupt_attr): Likewise.
1361         (mips_handle_use_shadow_register_set_attr): Likewise.
1362         (mips_use_shadow_register_set): Change return type to enum
1363         mips_shadow_set.  Add argument handling for use_shadow_register_set
1364         attribute.
1365         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1366         compare with mips_shadow_set enum.
1367         (mips_compute_frame_info): Add interrupt mask and
1368         use_shadow_register_set to per-function information structure.
1369         Add a stack slot for EPC unconditionally.
1370         (mips_expand_prologue): Compare use_shadow_register_set value
1371         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
1372         masked interrupt register but in EIC mode use K0 and save Cause in K0.
1373         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
1374         copying the stack pointer from the shadow register set.
1375         * config/mips/mips.h (SR_IM0): New define.
1376         * config/mips/mips.md (mips_rdpgpr): Rename to...
1377         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
1378         * doc/extend.texi (Declaring Attributes of Functions): Document
1379         optional arguments for interrupt and use_shadow_register_set
1380         attributes.
1381
1382 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
1383
1384         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1385         interrupt attribute.
1386         (mips_expand_prologue): Disable the floating point unit in an ISR.
1387         * config/mips/mips.h (SR_COP1): New define.
1388
1389 2015-07-15  Richard Biener  <rguenther@suse.de>
1390
1391         * genmatch.c (parser::peek, parser::peek_ident): Add argument
1392         to tell how many tokens to peek ahead (default 1).
1393         (parser::eat_token, parser::eat_ident): Return token consumed.
1394         (parser::parse_result): Parse new switch statement.
1395         * match.pd: Use case statements where appropriate.
1396
1397 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1398
1399         PR rtl-optimization/58066
1400         * calls.c (expand_call): Precompute register parameters before stack
1401         alignment is performed.
1402
1403 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
1404
1405         PR rtl-optimization/66838
1406         * postreload.c (reload_cse_move2add): Also process
1407         CALL_INSN_FUNCTION_USAGE when resetting information of
1408         call-clobbered registers.
1409
1410 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1411             Cesar Philippidis  <cesar@codesourcery.com>
1412             Chung-Lin Tang  <cltang@codesourcery.com>
1413
1414         * config/nios2/constraints.md (U, v): New constraints.
1415         * config/nios2/predicates.md (rdprs_dcache_operand): New.
1416         (ldstex_memory_operand): New.
1417         * config/nios2/sync.md: New file.
1418         * config/nios2/nios2.md (unspecv): Add new builtin function
1419         UNSPECV codes.
1420         (rdprs, flushd, flushda, wrpie, eni): New patterns.
1421         (top-level): Include sync.md.
1422         * config/nios2/nios2.c (N2_FTYPES): Add function types for
1423         new builtins.
1424         (N2_BUILTINS): Add arch field setting, add new builtins.
1425         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1426         for arch field.
1427         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1428         Also handle ldex/stex/ldsex/stsex builtins.
1429         (nios2_expand_rdprs_builtin): New function.
1430         (nios2_expand_cache_builtin): New function.
1431         (nios2_expand_wrpie_builtin): New function.
1432         (nios2_expand_eni_builtin): New function.
1433         (nios2_expand_builtin): Add arch field handling and new builtin
1434         cases.
1435         * doc/extend.texi (Altera Nios II Built-in Functions): Document
1436         new builtins.
1437         * doc/md.texi (Machine Constraints): Document U and v constraints.
1438
1439 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1440             Cesar Philippidis  <cesar@codesourcery.com>
1441             Chung-Lin Tang  <cltang@codesourcery.com>
1442
1443         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1444         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1445         callee_save_reg_size and uses_anonymous_args fields.
1446         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1447         (nios2_create_cfa_notes): New function.
1448         (nios2_adjust_stack): New function for adjusting stack.
1449         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1450         Use nios2_adjust_stack.
1451         (nios2_expand_epilogue): Likewise.
1452         (nios2_expand_return): New function.
1453         (nios2_can_use_return_insn): Update for CDX pop.n usage.
1454         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1455         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1456         * config/nios2/nios2.md (return): Use nios2_expand_return.
1457
1458 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1459             Cesar Philippidis  <cesar@codesourcery.com>
1460             Chung-Lin Tang  <cltang@codesourcery.com>
1461
1462         * config/nios2/predicates.md (pop_operation): New.
1463         (ldwm_operation, stwm_operation): New.
1464         (nios2_hard_register_operand): New.
1465         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1466         (ldstwm_operation_p): Declare.
1467         (gen_ldstwm_peep): Declare.
1468         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1469         (base_reg_adjustment_p): New.
1470         (pop_operation_p): New.
1471         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1472         (nios2_ldstwm_regset_p): New.
1473         (ldstwm_operation_p): New.
1474         (gen_ldst): New.
1475         (nios2_ldst_parallel): New.
1476         (struct ldswm_operand): Declare.
1477         (compare_ldstwm_operands): New.
1478         (can_use_cdx_ldstw): New.
1479         (gen_ldstwm_peep): New.
1480         * config/nios2/nios2-ldstwm.sml: New.
1481         * config/nios2/nios2.md: Include ldstwm.md.
1482         * config/nios2/ldstwm.md: Generated.
1483
1484 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1485             Cesar Philippidis  <cesar@codesourcery.com>
1486             Chung-Lin Tang  <cltang@codesourcery.com>
1487
1488         * config/nios2/nios2.h (LABEL_ALIGN): Define.
1489         (REG_ALLOC_ORDER): Define.
1490         (ADJUST_REG_ALLOC_ORDER): Define.
1491         (HONOR_REG_ALLOC_ORDER): Define.
1492         (CDX_REG_P): Define.
1493         (ANDCLEAR_INT): Define.
1494         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1495         (nios2_label_align): Declare.
1496         (nios2_cdx_narrow_form_p): Declare.
1497         (nios2_adjust_reg_alloc_order): Declare.
1498         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1499         operation.
1500         (nios2_large_unspec_reloc_p): New function, split from...
1501         (nios2_legitimate_pic_operand_p): ...here.
1502         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1503         (nios2_print_operand_punct_valid_p): New.
1504         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
1505         (split_mem_address): New.
1506         (split_alu_insn): New.
1507         (cdxreg): New.
1508         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1509         (enum nios2_add_insn_kind): New.
1510         (nios2_add_insn_names, nios2_add_insn_narrow): New.
1511         (nios2_add_insn_classify): New.
1512         (nios2_add_insn_asm): New.
1513         (nios2_cdx_narrow_form_p): New.
1514         (label_align, min_labelno, max_labelno): New.
1515         (nios2_reorg): New.
1516         (nios2_label_align): New.
1517         (nios2_adjust_reg_alloc_order): New.
1518         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1519         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1520         * config/nios2/constraints.md (P): New constraint.
1521         * config/nios2/predicates.md (const_and_operand): New.
1522         (and_operand): New.
1523         (stack_memory_operand): New.
1524         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1525         (length): Update to use nios2_cdx_narrow_form_p().
1526         (type): Add new insn type values.
1527         (control, alu, st, ld, shift): Update insn reservations with
1528         new insn type values.
1529         (*high, *lo_sum): Define new insn patterns for constant generation.
1530         (movqi_internal, movhi_internal, movsi_internal): Reduce
1531         alternatives, update asm template to handle CDX variants, update
1532         type attributes.
1533         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1534         template, update type attributes.
1535         (extendhisi2, extendqi<mode>2): Likewise.
1536         (addsi3): Change to use function for asm string.
1537         (subsi3): Add CDX notation to asm template, update type attributes.
1538         (negsi3, one_cmplsi3): Likewise.
1539         (andsi3): New pattern, specialized from logical patterns.
1540         (<code>si3): Remove and case, combine alternatives, update asm
1541         template.
1542         (<shift_op>si3): Add CDX notation, update type attributes.
1543         (rotrsi3): Update type attribute.
1544         (*merge, extzv, insv): New insn patterns.
1545         (return): Change to define_expand.
1546         (simple_return): Add CDX notation, update type attributes.
1547         (indirect_jump): Add CDX notation.
1548         (jump): Update asm cases, update length attribute expression.
1549         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1550         (nios2_cbranch): Update asm cases and length attribute expression
1551         to handle CDX variants.
1552         (nios2_cmp<code>): Update asm template.
1553         (nop): Add CDX notation, update type attributes.
1554         (trap): Add CDX notation.
1555         (ctrapsi4): Update asm cases and length attribute expression to
1556         handle CDX variant.
1557         * doc/md.texi (Machine Constraints): Document P constraint.
1558
1559 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1560             Cesar Philippidis  <cesar@codesourcery.com>
1561             Chung-Lin Tang  <cltang@codesourcery.com>
1562
1563         * config/nios2/nios2.h (SMALL_INT12): New macro.
1564         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1565         (nios2_valid_addr_expr_p): Use it.
1566         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1567         with implicit "io" instructions on R2.
1568         * config/nios2/constraints.md (w): New constraint.
1569         * config/nios2/predicates.md (ldstio_memory_operand): New.
1570         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1571         operand predicate and constraint.
1572         (ld<bh>io_signed, st<bhw>io>): Likewise.
1573         * doc/md.texi (Machine Constraints): Document w constraint.
1574
1575 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1576             Cesar Philippidis  <cesar@codesourcery.com>
1577             Chung-Lin Tang  <cltang@codesourcery.com>
1578
1579         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1580         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1581         Nios II architecture level.
1582         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1583         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1584         (OPTION_DEFAULT_SPECS): Define.
1585         (ASM_SPEC): Add -march= spec strings.
1586         * config/nios2/nios2.c (nios2_option_override): Check for
1587         conflicts involving new options.
1588         * config.gcc (nios2*-*-*): Support --with-arch=.
1589         * doc/invoke.texi (Option Summary, Nios II Options): Document
1590         -march=, -mbmx, and -mcdx.
1591
1592 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
1593
1594         PR rtl-optimization/66626
1595         * lra-constraints.c (lra_constraints): Prevent equivalence
1596         substitution for static chain pseudo in functions with nonlocal
1597         goto.
1598
1599 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1600
1601         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1602         (nios2_emit_stack_limit_check): Add size parameter.  Handle
1603         -fstack-limit-symbol as well as -fstack-limit-register.
1604         (nios2_expand_prologue): Emit only a single stack limit check,
1605         even if multiple stack adjustments are required.
1606         (nios2_option_override): Diagnose unsupported combination of -fpic
1607         and -stack-limit-symbol.
1608
1609 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
1610
1611         * Makefile.in (top_srcdir): New.
1612         * configure.ac: Use AM_ZLIB.
1613         * configure: Regeneated.
1614
1615 2015-07-14  Matthias Klose  <doko@ubuntu.com>
1616
1617         PR target/66840
1618         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1619
1620 2015-07-14  Richard Biener  <rguenther@suse.de>
1621
1622         PR tree-optimization/66863
1623         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1624         what we record for conversion use stmt lhs inequalities.
1625
1626 2015-07-14  Richard Biener  <rguenther@suse.de>
1627
1628         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1629         (decision_tree::gen_gimple): Likewise.
1630
1631 2015-07-14  Tom de Vries  <tom@codesourcery.com>
1632
1633         * gcc.c (greater_than_spec_func): Declare forward.
1634         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1635         -ftree-parallelize-loops={0,1}.
1636         (static_spec_functions): Add greater_than_spec_func function with name
1637         "gt".
1638         (greater_than_spec_func): New function.
1639
1640 2015-07-14  Richard Biener  <rguenther@suse.de>
1641
1642         * tree-ssa-dom.c (record_temporary_equivalences): Merge
1643         wideing type conversion case from record_equivalences_from_incoming_edge
1644         and use record_equality to record equivalences.
1645         (record_equivalences_from_incoming_edge): Call
1646         record_temporary_equivalences.
1647
1648 2015-07-14  Richard Biener  <rguenther@suse.de>
1649
1650         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1651         (struct if_expr): New.
1652         (struct with_expr): Likewise.
1653         (is_a_helper): Add helpers for if_expr and with_expr.
1654         (struct simplify): Add simplify_kind enum and member.  Remove
1655         ifexpr_vec member.
1656         (simplify::simplify): Adjust.
1657         (lower_commutative): Adjust.
1658         (lower_opt_convert): Likewise.
1659         (lower_cond): Likewise.
1660         (replace_id): Handle with_expr and if_expr.
1661         (lower_for): Adjust.
1662         (dt_simplify::gen_1): New recursive worker, split out from ...
1663         (dt_simplify::gen): ... here.  Deal with if and with expansion
1664         recursively.
1665         (capture_info::capture_info): Take context argument
1666         (capture_info::walk_result): Only analyze specific result.
1667         (parser::parse_result): New function.
1668         (parser::parse_simplify): Adjust to parse ifs with then end
1669         else case.
1670         (parser::parse_if): Simplify.
1671         (parser::parse_pattern): Pass down simplify kind.
1672         * match.pd: Convert if structure to new syntax.
1673
1674 2015-07-13  Marek Polacek  <polacek@redhat.com>
1675
1676         * rtl.c (rtx_equal_p_cb): Fix typo.
1677
1678 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
1679
1680         * omega.h: Don't include config.h, don't include params.h again if
1681         omega.h has already been included.
1682         * graphite-poly.h: Include sese.h.
1683         * graphite.c: Don't include sese.h, remove needless includes and
1684         minimize includes outside #ifdef HAVE_isl block.
1685         * graphite-blocking.c: Don't include sese.h, remove needless includes,
1686         and wrap entire file in #ifdef HAVE_isl
1687         * graphite-dependences.c: Likewise.
1688         * graphite-interchange.c: Likewise.
1689         * graphite-isl-ast-to-gimple.c: Likewise.
1690         * graphite-optimize-isl.c: Likewise.
1691         * graphite-poly.c: Likewise.
1692         * graphite-scop-detection.c: Likewise.
1693         * graphite-sese-to-poly.c: Likewise.
1694
1695 2015-07-13  Tom de Vries  <tom@codesourcery.com>
1696
1697         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1698
1699 2015-07-13  Renlin Li  <renlin.li@arm.com>
1700
1701         PR rtl/66556
1702         * simplify-rtx.c (simplify_const_relational_operation): Add
1703         side_effects_p checks.
1704
1705 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
1706
1707         * bitmap.h: Fix double word typos.
1708         * builtins.c: Same.
1709         * calls.c: Same.
1710         * cfgloopmanip.c: Same.
1711         * cgraph.c: Same.
1712         * cgraph.h: Same.
1713         * cgraphclones.c: Same.
1714         * combine.c: Same.
1715         * config/aarch64/aarch64-protos.h: Same.
1716         * config/aarch64/aarch64.c: Same.
1717         * config/aarch64/aarch64.md: Same.
1718         * config/arm/arm.md: Same.
1719         * config/arm/arm1020e.md: Same.
1720         * config/arm/arm1026ejs.md: Same.
1721         * config/arm/arm926ejs.md: Same.
1722         * config/arm/fa526.md: Same.
1723         * config/arm/fa606te.md: Same.
1724         * config/arm/fa626te.md: Same.
1725         * config/arm/fa726te.md: Same.
1726         * config/arm/fmp626.md: Same.
1727         * config/darwin.c: Same.
1728         * config/epiphany/epiphany.c: Same.
1729         * config/frv/frv.c: Same.
1730         * config/ft32/ft32.c: Same.
1731         * config/gnu-user.h: Same.
1732         * config/h8300/constraints.md: Same.
1733         * config/i386/i386.c: Same.
1734         * config/i386/i386.md: Same.
1735         * config/iq2000/iq2000.md: Same.
1736         * config/mips/mips.c: Same.
1737         * config/mmix/mmix.md: Same.
1738         * config/moxie/moxie.c: Same.
1739         * config/nds32/nds32.md: Same.
1740         * config/pa/pa.h: Same.
1741         * config/rs6000/aix.h: Same.
1742         * config/rs6000/rs6000.h: Same.
1743         * config/sh/sh.c: Same.
1744         * config/tilegx/tilegx.md: Same.
1745         * config/tilepro/gen-mul-tables.cc: Same.
1746         * cse.c: Same.
1747         * dbxout.c: Same.
1748         * doc/invoke.texi: Same.
1749         * dse.c: Same.
1750         * dwarf2out.c: Same.
1751         * final.c: Same.
1752         * gcc.c: Same.
1753         * genmatch.c: Same.
1754         * gimplify.c: Same.
1755         * hash-table.h: Same.
1756         * internal-fn.c: Same.
1757         * ipa-cp.c: Same.
1758         * ipa-devirt.c: Same.
1759         * ipa-icf.c: Same.
1760         * ipa-icf.h: Same.
1761         * ipa-profile.c: Same.
1762         * ipa-prop.c: Same.
1763         * ipa-prop.h: Same.
1764         * ira.c: Same.
1765         * omp-low.c: Same.
1766         * reg-stack.c: Same.
1767         * regcprop.c: Same.
1768         * reorg.c: Same.
1769         * rtl.h: Same.
1770         * sbitmap.h: Same.
1771         * tree-eh.c: Same.
1772         * tree-inline.c: Same.
1773         * tree-sra.c: Same.
1774         * tree-ssa-dom.c: Same.
1775         * tree-ssa-loop-ivopts.c: Same.
1776         * tree-ssa-structalias.c: Same.
1777         * tree-ssa-tail-merge.c: Same.
1778         * tree-ssa-ter.c: Same.
1779         * tree-ssa-threadupdate.c: Same.
1780         * tree-ssa-uninit.c: Same.
1781         * tree-ssanames.c: Same.
1782         * tree-vect-loop-manip.c: Same.
1783         * tree-vrp.c: Same.
1784         * tree.c: Same.
1785         * valtrack.c: Same.
1786         * vec.h: Same.
1787
1788 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1789
1790         PR middle-end/66726
1791         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1792         tree_ssa_phiopt_worker): Call it.
1793
1794 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1795
1796         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1797         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1798         REG_EQUAL note.
1799
1800 2015-07-11  Marek Polacek  <polacek@redhat.com>
1801
1802         PR middle-end/66353
1803         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1804         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1805         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1806         rather than bb_has_abnormal_call_pred.
1807         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1808         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1809         rather than bb_has_abnormal_call_pred.
1810
1811 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
1812
1813         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1814         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1815         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1816         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1817         v850_legitimate_address_p): New functions.
1818         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1819
1820 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1821
1822         PR target/66819
1823         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1824         indirect sibcall with register arguments if register available
1825         for argument passing.
1826         (init_cumulative_args): Set cfun->machine->arg_reg_available
1827         to (cum->nregs > 0) or to true if function has a variable
1828         argument list.
1829         (function_arg_advance_32): Set cfun->machine->arg_reg_available
1830         to false if cum->nregs <= 0.
1831         * config/i386/i386.h (machine_function): Add arg_reg_available.
1832
1833 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
1834
1835         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1836         and gen_higpart instead of gen_rtx_SUBREG.
1837         * config/i386/i386.md
1838         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1839         (read-modify peephole2): Use gen_lowpart instead of
1840         gen_rtx_SUBREG for operand 5.
1841
1842 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1843
1844         * config/tilepro/gen-mul-tables.cc (main): Change include list for
1845         generated files.
1846         * config/tilepro/mul-tables.c: Regenerate.
1847         * config/tilegx/mul-tables.c: Regenerate.
1848
1849 2015-07-10  Richard Biener  <rguenther@suse.de>
1850
1851         * fold-const.c (distribute_bit_expr): Remove.
1852         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1853         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1854         to A & (B | C) and simplifying A << C1 << C2 to ...
1855         * match.pd: ... patterns here.
1856
1857 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
1858
1859         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1860         Mark mem as READONLY and NOTRAP for PIC symbol.
1861
1862 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1863
1864         * gimple-predict.h: New file.
1865         (gimple_predict_predictor, gimple_predict_set_predictor,
1866         gimple_predict_outcome, gimple_predict_set_outcome,
1867         gimple_build_predict): Relocate here.
1868         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1869         gimple_predict_outcome, gimple_predict_set_outcome): Move to
1870         gimple-predict.h.
1871         * gimple.c (gimple_build_predict): Move to gimple-predict.h
1872         * basic-block.h: Don't include cfghooks.h.
1873         * backend.h: Don't include predict.h.
1874         * cfghooks.h: Include predict.h.
1875         * gimple-pretty-print.c: Include gimple-predict.h.
1876         * gimplify.c: Likwise.
1877         * predict.c: Adjust includes.
1878         * tree-inline.c: Likewise.
1879         * asan.c: Likewise.
1880         * auto-inc-dec.c: Likewise.
1881         * auto-profile.c: Likewise.
1882         * bb-reorder.c: Likewise.
1883         * builtins.c: Likewise.
1884         * caller-save.c: Likewise.
1885         * calls.c: Likewise.
1886         * cfganal.c: Likewise.
1887         * cfgbuild.c: Likewise.
1888         * cfg.c: Likewise.
1889         * cfgcleanup.c: Likewise.
1890         * cfgexpand.c: Likewise.
1891         * cfghooks.c: Likewise.
1892         * cfgloopanal.c: Likewise.
1893         * cfgloop.c: Likewise.
1894         * cfgloopmanip.c: Likewise.
1895         * cfgrtl.c: Likewise.
1896         * cgraph.c: Likewise.
1897         * cgraphunit.c: Likewise.
1898         * combine.c: Likewise.
1899         * cprop.c: Likewise.
1900         * cse.c: Likewise.
1901         * dce.c: Likewise.
1902         * dojump.c: Likewise.
1903         * dse.c: Likewise.
1904         * except.c: Likewise.
1905         * expmed.c: Likewise.
1906         * expr.c: Likewise.
1907         * final.c: Likewise.
1908         * fold-const.c: Likewise.
1909         * function.c: Likewise.
1910         * fwprop.c: Likewise.
1911         * gcc-plugin.h: Likewise.
1912         * gcse.c: Likewise.
1913         * genattrtab.c: Likewise.
1914         * genemit.c: Likewise.
1915         * gengtype.c: Likewise.
1916         * genopinit.c: Likewise.
1917         * genoutput.c: Likewise.
1918         * genpreds.c: Likewise.
1919         * genrecog.c: Likewise.
1920         * gimple-fold.c: Likewise.
1921         * gimple-iterator.c: Likewise.
1922         * gimple-ssa-isolate-paths.c: Likewise.
1923         * gimple-ssa-strength-reduction.c: Likewise.
1924         * graph.c: Likewise.
1925         * graphite-blocking.c: Likewise.
1926         * graphite.c: Likewise.
1927         * graphite-dependences.c: Likewise.
1928         * graphite-interchange.c: Likewise.
1929         * graphite-isl-ast-to-gimple.c: Likewise.
1930         * graphite-optimize-isl.c: Likewise.
1931         * graphite-poly.c: Likewise.
1932         * graphite-scop-detection.c: Likewise.
1933         * graphite-sese-to-poly.c: Likewise.
1934         * haifa-sched.c: Likewise.
1935         * ifcvt.c: Likewise.
1936         * internal-fn.c: Likewise.
1937         * ipa-cp.c: Likewise.
1938         * ipa-profile.c: Likewise.
1939         * ipa-split.c: Likewise.
1940         * ipa-utils.c: Likewise.
1941         * ira-build.c: Likewise.
1942         * ira-color.c: Likewise.
1943         * ira-conflicts.c: Likewise.
1944         * ira-costs.c: Likewise.
1945         * ira-emit.c: Likewise.
1946         * ira-lives.c: Likewise.
1947         * jump.c: Likewise.
1948         * loop-doloop.c: Likewise.
1949         * loop-init.c: Likewise.
1950         * loop-invariant.c: Likewise.
1951         * loop-unroll.c: Likewise.
1952         * lower-subreg.c: Likewise.
1953         * lra-assigns.c: Likewise.
1954         * lra.c: Likewise.
1955         * lra-coalesce.c: Likewise.
1956         * lra-constraints.c: Likewise.
1957         * lra-lives.c: Likewise.
1958         * lto-cgraph.c: Likewise.
1959         * lto-streamer-in.c: Likewise.
1960         * mode-switching.c: Likewise.
1961         * modulo-sched.c: Likewise.
1962         * omp-low.c: Likewise.
1963         * optabs.c: Likewise.
1964         * passes.c: Likewise.
1965         * postreload.c: Likewise.
1966         * postreload-gcse.c: Likewise.
1967         * profile.c: Likewise.
1968         * recog.c: Likewise.
1969         * regstat.c: Likewise.
1970         * reload1.c: Likewise.
1971         * reorg.c: Likewise.
1972         * rtlanal.c: Likewise.
1973         * sched-ebb.c: Likewise.
1974         * sel-sched-ir.c: Likewise.
1975         * sese.c: Likewise.
1976         * shrink-wrap.c: Likewise.
1977         * simplify-rtx.c: Likewise.
1978         * stmt.c: Likewise.
1979         * store-motion.c: Likewise.
1980         * tracer.c: Likewise.
1981         * trans-mem.c: Likewise.
1982         * tree-call-cdce.c: Likewise.
1983         * tree-cfg.c: Likewise.
1984         * tree-cfgcleanup.c: Likewise.
1985         * tree-chkp.c: Likewise.
1986         * tree-complex.c: Likewise.
1987         * tree-eh.c: Likewise.
1988         * tree-if-conv.c: Likewise.
1989         * tree-loop-distribution.c: Likewise.
1990         * tree-outof-ssa.c: Likewise.
1991         * tree-parloops.c: Likewise.
1992         * tree-predcom.c: Likewise.
1993         * tree-pretty-print.c: Likewise.
1994         * tree-profile.c: Likewise.
1995         * tree-sra.c: Likewise.
1996         * tree-ssa.c: Likewise.
1997         * tree-ssa-coalesce.c: Likewise.
1998         * tree-ssa-dce.c: Likewise.
1999         * tree-ssa-dom.c: Likewise.
2000         * tree-ssa-forwprop.c: Likewise.
2001         * tree-ssa-ifcombine.c: Likewise.
2002         * tree-ssa-loop-ch.c: Likewise.
2003         * tree-ssa-loop-im.c: Likewise.
2004         * tree-ssa-loop-ivcanon.c: Likewise.
2005         * tree-ssa-loop-ivopts.c: Likewise.
2006         * tree-ssa-loop-manip.c: Likewise.
2007         * tree-ssa-loop-prefetch.c: Likewise.
2008         * tree-ssa-loop-unswitch.c: Likewise.
2009         * tree-ssa-math-opts.c: Likewise.
2010         * tree-ssa-phiopt.c: Likewise.
2011         * tree-ssa-pre.c: Likewise.
2012         * tree-ssa-reassoc.c: Likewise.
2013         * tree-ssa-sink.c: Likewise.
2014         * tree-ssa-tail-merge.c: Likewise.
2015         * tree-ssa-threadedge.c: Likewise.
2016         * tree-ssa-threadupdate.c: Likewise.
2017         * tree-switch-conversion.c: Likewise.
2018         * tree-tailcall.c: Likewise.
2019         * tree-vect-data-refs.c: Likewise.
2020         * tree-vect-loop.c: Likewise.
2021         * tree-vect-loop-manip.c: Likewise.
2022         * tree-vectorizer.c: Likewise.
2023         * tree-vrp.c: Likewise.
2024         * ubsan.c: Likewise.
2025         * value-prof.c: Likewise.
2026         * varasm.c: Likewise.
2027         * var-tracking.c: Likewise.
2028         * config/aarch64/aarch64-builtins.c: Likewise.
2029         * config/aarch64/aarch64.c: Likewise.
2030         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2031         * config/alpha/alpha.c: Likewise.
2032         * config/arc/arc.c: Likewise.
2033         * config/arm/arm.c: Likewise.
2034         * config/avr/avr.c: Likewise.
2035         * config/bfin/bfin.c: Likewise.
2036         * config/c6x/c6x.c: Likewise.
2037         * config/cr16/cr16.c: Likewise.
2038         * config/cris/cris.c: Likewise.
2039         * config/darwin.c: Likewise.
2040         * config/darwin-c.c: Likewise.
2041         * config/epiphany/epiphany.c: Likewise.
2042         * config/epiphany/mode-switch-use.c: Likewise.
2043         * config/epiphany/resolve-sw-modes.c: Likewise.
2044         * config/fr30/fr30.c: Likewise.
2045         * config/frv/frv.c: Likewise.
2046         * config/ft32/ft32.c: Likewise.
2047         * config/h8300/h8300.c: Likewise.
2048         * config/i386/i386.c: Likewise.
2049         * config/i386/winnt.c: Likewise.
2050         * config/ia64/ia64.c: Likewise.
2051         * config/iq2000/iq2000.c: Likewise.
2052         * config/lm32/lm32.c: Likewise.
2053         * config/m32c/m32c.c: Likewise.
2054         * config/m32r/m32r.c: Likewise.
2055         * config/m68k/m68k.c: Likewise.
2056         * config/mcore/mcore.c: Likewise.
2057         * config/mep/mep.c: Likewise.
2058         * config/microblaze/microblaze.c: Likewise.
2059         * config/mips/mips.c: Likewise.
2060         * config/mmix/mmix.c: Likewise.
2061         * config/mn10300/mn10300.c: Likewise.
2062         * config/moxie/moxie.c: Likewise.
2063         * config/msp430/msp430.c: Likewise.
2064         * config/nds32/nds32.c: Likewise.
2065         * config/nds32/nds32-cost.c: Likewise.
2066         * config/nds32/nds32-fp-as-gp.c: Likewise.
2067         * config/nds32/nds32-intrinsic.c: Likewise.
2068         * config/nds32/nds32-isr.c: Likewise.
2069         * config/nds32/nds32-md-auxiliary.c: Likewise.
2070         * config/nds32/nds32-memory-manipulation.c: Likewise.
2071         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2072         * config/nds32/nds32-predicates.c: Likewise.
2073         * config/nios2/nios2.c: Likewise.
2074         * config/nvptx/nvptx.c: Likewise.
2075         * config/pa/pa.c: Likewise.
2076         * config/pdp11/pdp11.c: Likewise.
2077         * config/rl78/rl78.c: Likewise.
2078         * config/rs6000/rs6000.c: Likewise.
2079         * config/rx/rx.c: Likewise.
2080         * config/s390/s390.c: Likewise.
2081         * config/sh/sh.c: Likewise.
2082         * config/sh/sh-mem.cc: Likewise.
2083         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2084         * config/sh/sh_treg_combine.cc: Likewise.
2085         * config/sparc/sparc.c: Likewise.
2086         * config/spu/spu.c: Likewise.
2087         * config/stormy16/stormy16.c: Likewise.
2088         * config/tilegx/tilegx.c: Likewise.
2089         * config/tilepro/tilepro.c: Likewise.
2090         * config/v850/v850.c: Likewise.
2091         * config/vax/vax.c: Likewise.
2092         * config/visium/visium.c: Likewise.
2093         * config/xtensa/xtensa.c: Likewise.
2094
2095 2015-07-10  Richard Biener  <rguenther@suse.de>
2096
2097         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2098         (decision_tree::gen_gimple): Likewise.
2099         (decision_tree::gen_generic): Likewise.
2100
2101 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
2102
2103         PR target/66813
2104         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2105         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2106
2107 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
2108
2109         PR middle-end/66820
2110         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2111         or ORT_TASK contexts.
2112         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2113         is non-zero.
2114
2115 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2116
2117         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2118         above function.
2119
2120 2015-07-10  Tom de Vries  <tom@codesourcery.com>
2121
2122         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2123         insert nit + 1 bound.
2124
2125 2015-07-10  Richard Biener  <rguenther@suse.de>
2126
2127         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2128         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2129         (if_convertible_loop_p_1): For this always compute bb predicates.
2130         (if_convertible_loop_p): And free them.
2131
2132 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2133
2134         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2135         in dump message.
2136
2137 2015-07-10  Richard Biener  <rguenther@suse.de>
2138
2139         PR tree-optimization/66823
2140         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2141         inverted predicate.
2142
2143 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
2144
2145         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2146         to handle mips[32|64]r3 and mips[32|64]r5.
2147
2148 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
2149
2150         PR middle-end/66633
2151         * tree-nested.c (get_static_chain): Or in a flag into
2152         info->static_chain_added.
2153         (get_frame_field, get_nonlocal_debug_decl): Likewise.
2154         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2155         2015-07-01 changes.
2156         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2157         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2158         add it to clauses.
2159
2160         PR tree-optimization/66718
2161         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2162         field.
2163         (vect_simd_lane_linear): New function.
2164         (vectorizable_simd_clone_call): Support using linear arguments for
2165         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2166
2167 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2168
2169         PR target/66821
2170         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2171
2172 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2173
2174         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2175         Use machine mode, not enum machine_mode in the prototype.
2176
2177         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2178         classify 128-bit floating point support.
2179         (FLOAT128_IBM_P): Likewise.
2180         (FLOAT128_VECTOR_P): Likewise.
2181         (FLOAT128_2REG_P): Likewise.
2182         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2183         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2184         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2185         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2186
2187         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2188         tests against TFmode/TDmode, since those modes do not use VSX
2189         addresses.
2190         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2191         support.
2192         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2193         tests against TFmode, etc.
2194         (invalid_e500_subreg): Add tests against IFmode/KFmode.
2195         (reg_offset_addressing_ok_p): Likewise.
2196         (rs6000_legitimate_offset_address_p): Likewise.
2197         (rs6000_legitimize_address): Likewise.
2198         (rs6000_legitimize_reload_address): Likewise.
2199         (rs6000_legitimate_address_p): Clean up tests against TFmode and
2200         TDmode to use the new helper macros, which will include IFmode and
2201         KFmode.
2202         (rs6000_emit_move): Likewise.
2203         (rs6000_darwin64_record_arg_recurse): Likewise.
2204         (print_operand): Likewise.
2205         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2206         that uses a single vector register as a vector and not as a
2207         floating point register in terms of the calling sequence.
2208         (rs6000_discover_homogeneous_aggregate): Likewise.
2209         (rs6000_return_in_memory): Likewise.
2210         (init_cumulative_args): Likewise.
2211         (rs6000_function_arg_boundary): Likewise.
2212         (rs6000_function_arg_advance_1): Likewise.
2213         (rs6000_function_arg): Likewise.
2214         (rs6000_pass_by_reference): Likewise.
2215         (rs6000_gimplify_va_arg): Likewise.
2216         (rs6000_secondary_reload_memory): Use machine_mode not enum
2217         machine mode.
2218         (rs6000_split_multireg_move): Use new helper macros.
2219         (spe_func_has_64bit_regs_p): Likewise.
2220         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2221         (output_toc): Use new helper macros.
2222         (rs6000_register_move_cost): Likewise.
2223         (rs6000_function_value): Add IEEE 128-bit floating point calling
2224         sequence support.
2225         (rs6000_libcall_value): Likewise.
2226         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2227         floating point support.
2228         (rs6000_vector_mode_supported_p): Likewise.
2229
2230 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
2231
2232         PR rtl-optimization/66782
2233         * lra-int.h (struct lra_insn_recog_data): Add comment about
2234         clobbered hard regs for arg_hard_regs.
2235         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2236         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2237         Add condition for processing used hard regs.
2238         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2239         Process clobbered hard regs.
2240
2241 2015-07-09  Michael Matz  <matz@suse.de>
2242
2243         * genmatch.c (fprintf_indent): New function.
2244         (operand::gen_transform): Add indent parameter.
2245         (expr::gen_transform, c_expr::gen_transform,
2246         capture::gen_transform): Ditto and use fprintf_indent.
2247         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2248         (dt_operand::gen, dt_operand::gen_predicate,
2249         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2250         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2251         (decision_tree::gen_gimple): Adjust calls and indent generated
2252         code.
2253         (decision_tree::gen_generic): Ditto.
2254         (write_predicate): Ditto.
2255
2256 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2257
2258         PR target/66814
2259         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2260         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2261         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2262         {GENERAL,SSE,MMX}_REG_P where appropriate.
2263
2264 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2265
2266         * lto-streamer.h: Don't include target.h and alloc-pool.h.
2267         * builtins.c: Adjust includes.
2268         * gimple.c: Likewise.
2269         * ipa-icf.c: Likewise.
2270         * lto-opts.c: Likewise.
2271         * ipa-reference.c: Likewise.
2272         * lto-section-out.c: Likewise.
2273         * lto-streamer-in.c: Likewise.
2274         * lto-streamer-out.c: Likewise.
2275         * opts-global.c: Likewise.
2276         * symtab.c: Likewise.
2277         * tree-chkp.c: Likewise.
2278         * tree-ssa-live.c: Likewise.
2279         * tree-streamer-in.c: Likewise.
2280         * tree-streamer-out.c: Likewise.
2281         * config/darwin.c: Likewise.
2282         * config/i386/winnt.c: Likewise.
2283
2284 2015-07-09  Richard Biener  <rguenther@suse.de>
2285
2286         * genmatch.c (struct expr): Add force_single_use flag.
2287         (expr::expr): Add copy constructor.
2288         (capture_info::walk_match): Gather force_single_use captures.
2289         (expr::gen_transform): Use possibly NULLified sequence.
2290         (dt_simplify::gen): Apply single-use restrictions by NULLifying
2291         seq if any constrained expr is not single-use.
2292         (parser::parse_expr): Refactor to allow multiple flags.  Handle
2293         's' flag to force an expression have a single-use if the pattern
2294         simplifies to more than one statement.
2295         * match.pd: Convert most single_use conditionals to :s flags.
2296
2297 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2298
2299         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2300         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2301         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2302
2303 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2304
2305         * flags.h: Don't include flag-types.h or options.h.
2306         * opts-common.c: Adjust includes.
2307         * opts-global.c: Likewise.
2308         * common/config/epiphany/epiphany-common.c: Likewise.
2309
2310 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2311
2312         PR target/66818
2313         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2314         for IA MCU.
2315
2316 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2317
2318         PR target/66817
2319         * config/i386/i386.c (ix86_return_in_memory): Return true
2320         if int_size_in_bytes returns negative for IA MCU.
2321
2322 2015-07-09  Marek Polacek  <polacek@redhat.com>
2323
2324         PR tree-optimization/66718
2325         * Makefile.in (OBJS): Add gimple-laddress.o.
2326         * passes.def: Schedule pass_laddress.
2327         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2328         * tree-pass.h (make_pass_laddress): Declare.
2329         * gimple-laddress.c: New file.
2330
2331 2015-07-09  Richard Biener  <rguenther@suse.de>
2332
2333         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2334
2335 2015-07-09  Richard Biener  <rguenther@suse.de>
2336
2337         PR tree-optimization/66807
2338         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2339
2340 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
2341
2342         * function.c (stack_protect_epilogue): Use if rather than switch for
2343         check targetm.have_stack_protect_test.
2344
2345 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2346
2347         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2348         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2349         * config/arc/arc.h: Likewise.
2350         * config/arm/arm.h: Likewise.
2351         * config/bfin/bfin.h: Likewise.
2352         * config/epiphany/epiphany.h: Likewise.
2353         * config/frv/frv.h: Likewise.
2354         * config/ia64/ia64.h: Likewise.
2355         * config/iq2000/iq2000.h: Likewise.
2356         * config/lm32/lm32.h: Likewise.
2357         * config/m32r/m32r.h: Likewise.
2358         * config/mcore/mcore.h: Likewise.
2359         * config/mep/mep.h: Likewise.
2360         * config/microblaze/microblaze.h: Likewise.
2361         * config/mips/mips.h: Likewise.
2362         * config/mmix/mmix.h: Likewise.
2363         * config/mn10300/mn10300.h: Likewise.
2364         * config/nds32/nds32.h: Likewise.
2365         * config/nios2/nios2.h: Likewise.
2366         * config/pa/pa.h: Likewise.
2367         * config/rl78/rl78.h: Likewise.
2368         * config/sh/sh.h: Likewise.
2369         * config/sparc/sparc.h: Likewise.
2370         * config/stormy16/stormy16.h: Likewise.
2371         * config/tilegx/tilegx.h: Likewise.
2372         * config/tilepro/tilepro.h: Likewise.
2373         * config/v850/v850.h: Likewise.
2374         * config/xtensa/xtensa.h: Likewise.
2375         * doc/tm.texi: Regenerate.
2376         * doc/tm.texi.in: Adjust.
2377         * combine.c (simplify_set): Likewise.
2378         (simplify_comparison): Likewise.
2379         * expr.c (store_constructor): Likewise.
2380         * internal-fn.c (expand_arith_overflow): Likewise.
2381         * reload.c (push_reload): Likewise.
2382         (find_reloads): Likewise.
2383         (find_reloads_subreg_address): Likewise.
2384         * reload1.c (eliminate_regs_1): Likewise.
2385         * rtlanal.c (nonzero_bits1): Likewise.
2386         (num_sign_bit_copies1): Likewise.
2387         * simplify-rtx.c (simplify_truncation): Likewise.
2388
2389 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2390
2391         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2392         of AUTO_INC_DEC with the preprocessor.
2393         * combine.c (combine_instructions): Likewise.
2394         (can_combine_p): Likewise.
2395         (try_combine): Likewise.
2396         * emit-rtl.c (try_split): Likewise.
2397         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2398         * lower-subreg.c (resolve_simple_move): Likewise.
2399         * lra.c (update_inc_notes): Likewise.
2400         * recog.c (asm_operand_ok): Likewise.
2401         (constrain_operands): Likewise.
2402         * regrename.c (scan_rtx_address): Likewise.
2403         * reload.c (update_auto_inc_notes): Likewise.
2404         (reg_inc_found_and_valid_p): Likewise.
2405         * reload1.c (reload): Likewise.
2406         (emit_input_reload_insns): Likewise.
2407         (delete_output_reload): Likewise.
2408         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2409         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2410
2411 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2412
2413         * rtl.h: Always define AUTO_INC_DEC.
2414         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2415         * combine.c (combine_instructions): Likewise.
2416         (can_combine_p): Likewise.
2417         (try_combine): Likewise.
2418         * emit-rtl.c (try_split): Likewise.
2419         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2420         * lower-subreg.c (resolve_simple_move): Likewise.
2421         * lra.c (update_inc_notes): Likewise.
2422         * recog.c (asm_operand_ok): Likewise.
2423         (constrain_operands): Likewise.
2424         * regrename.c (scan_rtx_address): Likewise.
2425         * reload.c (update_auto_inc_notes): Likewise.
2426         (find_equiv_reg): Likewise.
2427         * reload1.c (reload): Likewise.
2428         (reload_as_needed): Likewise.
2429         (choose_reload_regs): Likewise.
2430         (emit_input_reload_insns): Likewise.
2431         (delete_output_reload): Likewise.
2432         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2433         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2434
2435 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2436
2437         * combine.c (can_combine_def_p): Don't check the value of
2438         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2439         (combinable_i3pat): Likewise.
2440         (mark_used_regs_combine): Likewise.
2441         * regrename.c (rename_chains): Likewise.
2442         * reload.c (find_reloads_address): Likewise.
2443         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2444
2445 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2446
2447         * combine.c (update_rsp_from_reg_equal): Don't check if
2448         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2449         (reg_nonzero_bits_for_combine): Likewise.
2450         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2451         1.
2452         * config/frv/frv.h: Likewise.
2453         * config/lm32/lm32.h: Likewise.
2454         * config/mep/mep.h: Likewise.
2455         * config/mips/mips.h: Likewise.
2456         * config/rs6000/rs6000.h: Likewise.
2457         * config/sh/sh.h: Likewise.
2458         * config/tilegx/tilegx.h (enum reg_class): Likewise.
2459         * config/tilepro/tilepro.h: Likewise.
2460         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2461         * doc/tm.texi: Regenerate.
2462         * doc/tm.texi.in: Adjust.
2463         * rtlanal.c (nonzero_bits1): Likewise.
2464
2465 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2466
2467         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2468         with the preprocessor.
2469         (combine_instructions): Likewise.
2470         (try_combine): Likewise.
2471         (subst): Likewise.
2472         (distribute_notes): Likewise.
2473
2474 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2475
2476         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2477         defined.
2478         (simplify_set): Likewise.
2479         * cse.c (cse_insn): Likewise.
2480         * fold-const.c (fold_single_bit_test): Likewise.
2481         (fold_unary_loc): Likewise.
2482         * postreload.c (reload_cse_simplify_set): Likewise.
2483         (reload_cse_simplify_operands): Likewise.
2484
2485 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
2486
2487         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2488         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2489
2490 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
2491
2492         PR target/66746
2493         * config/i386/x86intrin.h: Include <adxintrin.h> even if
2494         __iamcu__ is defined.
2495
2496 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2497
2498         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2499
2500 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
2501
2502         PR target/66523
2503         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2504         names from preservation.
2505
2506 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
2507
2508         PR target/66806
2509         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2510         change for IAMCU.
2511         (function_arg_advance_32): Don't pass vectors in registers for
2512         IAMCU.
2513         (function_arg_32): Likewise.
2514         (ix86_return_in_memory): Don't return vectors in registers for
2515         IAMCU.
2516
2517 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2518
2519         PR middle-end/66334
2520         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2521         hard regno live at the start of BB with incoming abnormal edges.
2522         * lra-lives.c (process_bb_lives): Ditto.
2523
2524 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2525
2526         PR libgomp/65099
2527         * config/nvptx/mkoffload.c (main): Create an offload image only in
2528         64-bit configurations.
2529
2530 2015-07-08  Martin Liska  <mliska@suse.cz>
2531
2532         PR bootstrap/66744
2533         * tree-sra.c (create_access_1): Call ctor without brackets.
2534         (create_artificial_child_access): Likewise.
2535
2536 2015-07-08  Richard Biener  <rguenther@suse.de>
2537
2538         PR tree-optimization/66793
2539         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2540         Properly split the block after stmts ending it.
2541
2542 2015-07-08  Richard Biener  <rguenther@suse.de>
2543
2544         PR tree-optimization/66794
2545         * passes.c (execute_function_todo): Assert that post-dominators
2546         are not computed.
2547         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2548         Free post-dominators.
2549
2550 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2551
2552         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2553         with early exit.
2554
2555 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2556
2557         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2558         more than or equal 8 and less than 32 when optimizing for size.
2559
2560 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2561
2562         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2563         COSTS_N_INSNS (1) and increment it appropriately throughout the
2564         function.
2565
2566 2015-07-08  Richard Biener  <rguenther@suse.de>
2567
2568         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2569
2570 2015-07-08  Alan Modra  <amodra@gmail.com>
2571
2572         * target.def (rtx_costs): Remove "code" param, add "mode".
2573         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2574         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
2575         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2576         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
2577         call.  Track mode when given in rtx.
2578         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
2579         (default_address_cost): Pass Pmode to rtx_cost.
2580         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2581         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2582         with NULL set.
2583         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
2584         (notreg_cost): Add mode param.  Use it.
2585         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
2586         mode param and pass to set_src_cost.  Update all calls.
2587         (hash_scan_set): Formatting.
2588         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2589         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2590         * hooks.h: Ditto.
2591         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2592         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2593         emit_store_flag): Update set_src_cost and rtx_cost calls.
2594         * auto-inc-dec.c (attempt_change): Likewise.
2595         * calls.c (precompute_register_parameters): Likewise.
2596         * combine.c (expand_compound_operation, make_extraction,
2597         force_to_mode, distribute_and_simplify_rtx): Likewise.
2598         * dojump.c (prefer_and_bit_test): Likewise.
2599         * dse.c (find_shift_sequence): Likewise.
2600         * expr.c (compress_float_constant): Likewise.
2601         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2602         * ifcvt.c (noce_try_sign_mask): Likewise.
2603         * loop-doloop.c (doloop_optimize): Likewise.
2604         * loop-invariant.c (create_new_invariant): Likewise.
2605         * lower-subreg.c (shift_cost, compute_costs): Likewise.
2606         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2607         lshift_cheap_p): Likewise.
2608         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2609         try_replace_in_use, reload_cse_move2add): Likewise.
2610         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2611         Likewise.
2612         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2613         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2614         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2615         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2616         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2617         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
2618         to rtx_cost calls.
2619         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2620         * config/arc/arc.c (arc_rtx_costs): Likewise.
2621         * config/arm/arm.c (arm_rtx_costs): Likewise.
2622         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2623         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2624         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2625         * config/cris/cris.c (cris_rtx_costs): Likewise.
2626         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2627         * config/frv/frv.c (frv_rtx_costs): Likewise.
2628         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2629         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2630         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2631         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2632         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2633         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2634         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2635         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2636         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2637         * config/mep/mep.c (mep_rtx_cost): Likewise.
2638         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2639         * config/mips/mips.c (mips_rtx_costs): Likewise.
2640         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2641         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2642         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2643         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2644         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2645         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2646         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2647         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2648         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2649         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2650         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2651         * config/s390/s390.c (s390_rtx_costs): Likewise.
2652         * config/sh/sh.c (sh_rtx_costs): Likewise.
2653         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2654         * config/spu/spu.c (spu_rtx_costs): Likewise.
2655         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2656         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2657         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2658         * config/v850/v850.c (v850_rtx_costs): Likewise.
2659         * config/vax/vax.c (vax_rtx_costs): Likewise.
2660         * config/visium/visium.c (visium_rtx_costs): Likewise.
2661         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2662         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2663         "code" param, and pass as outer_code to first rtx_cost call.  Pass
2664         mode to rtx_cost calls.
2665         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2666         calls.
2667         (aarch64_rtx_costs_wrapper): Update.
2668         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2669         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2670         rtx_cost calls.
2671         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2672         and rtx_cost calls.
2673         (avr_operand_rtx_cost): Similarly.
2674         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2675         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2676         * config/mips/mips.c (mips_stack_address_p): Comment typo.
2677         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2678         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2679         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2680         rtx_cost.
2681         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2682         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2683         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2684         * doc/tm.texi: Regenerate.
2685
2686 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2687
2688         * tree-core.h: Include symtab.h.
2689         * rtl.h: Include hard-reg-set.h but not flags.h.
2690         (HARD_CONST): Remove condition compilation involving HARD_CONST since
2691         hard-reg-set.h is always included.
2692         * regs.h: Don't include hard-reg-set.h or rtl.h.
2693         * cfg.h: Include dominance.h.
2694         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2695         * backend.h: New.  Aggregate commonly used backend header files.
2696         * gimple-ssa.h: Don't include tree-hasher.h.
2697         * ssa.h: New.  Aggregate commonly used SSA header files.
2698         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2699         * sel-sched-ir.h: Flatten includes.
2700         * lra-int.h: Flatten completely.
2701         * sel-sched-dump.h: Flatten includes.
2702         * ira-int.h: Flatten includes.
2703         * gimple-streamer.h: Remove all includes.
2704         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2705         * resource.h: Flatten hard-reg-set.h and df.h.
2706         * sched-int.h: Flatten insn-arrt.h and df.h.
2707         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2708         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2709         * genattrtab.c (write_header): Adjust generated includes.
2710         * genautomata.c (main): Likewise.
2711         * genconditions.c (write-header): Likewise.
2712         * genemit.c (main): Likewise.
2713         * gengtype.c (open_base_files): Likewise.
2714         * genopinit.c (main): Likewise.
2715         * genoutput.c (output_prologue): Likewise.
2716         * genpeep.c (main): Likewise.
2717         * genpreds.c (write_insn_preds_c): Likewise.
2718         * genrecog.c (write_header): Likewise.
2719         * alias.c: Adjust includes.
2720         * asan.c: Likewise.
2721         * attribs.c: Likewise.
2722         * auto-inc-dec.c: Likewise.
2723         * auto-profile.c: Likewise.
2724         * bb-reorder.c: Likewise.
2725         * bt-load.c: Likewise.
2726         * builtins.c: Likewise.
2727         * caller-save.c: Likewise.
2728         * calls.c: Likewise.
2729         * ccmp.c: Likewise.
2730         * cfg.c: Likewise.
2731         * cfganal.c: Likewise.
2732         * cfgbuild.c: Likewise.
2733         * cfgcleanup.c: Likewise.
2734         * cfgexpand.c: Likewise.
2735         * cfghooks.c: Likewise.
2736         * cfgloop.c: Likewise.
2737         * cfgloopanal.c: Likewise.
2738         * cfgloopmanip.c: Likewise.
2739         * cfgrtl.c: Likewise.
2740         * cgraph.c: Likewise.
2741         * cgraphbuild.c: Likewise.
2742         * cgraphclones.c: Likewise.
2743         * cgraphunit.c: Likewise.
2744         * cilk-common.c: Likewise.
2745         * combine-stack-adj.c: Likewise.
2746         * combine.c: Likewise.
2747         * compare-elim.c: Likewise.
2748         * convert.c: Likewise.
2749         * coverage.c: Likewise.
2750         * cppbuiltin.c: Likewise.
2751         * cprop.c: Likewise.
2752         * cse.c: Likewise.
2753         * cselib.c: Likewise.
2754         * data-streamer-in.c: Likewise.
2755         * data-streamer-out.c: Likewise.
2756         * data-streamer.c: Likewise.
2757         * dbxout.c: Likewise.
2758         * dce.c: Likewise.
2759         * ddg.c: Likewise.
2760         * debug.c: Likewise.
2761         * df-core.c: Likewise.
2762         * df-problems.c: Likewise.
2763         * df-scan.c: Likewise.
2764         * dfp.c: Likewise.
2765         * dojump.c: Likewise.
2766         * dominance.c: Likewise.
2767         * domwalk.c: Likewise.
2768         * double-int.c: Likewise.
2769         * dse.c: Likewise.
2770         * dumpfile.c: Likewise.
2771         * dwarf2asm.c: Likewise.
2772         * dwarf2cfi.c: Likewise.
2773         * dwarf2out.c: Likewise.
2774         * emit-rtl.c: Likewise.
2775         * et-forest.c: Likewise.
2776         * except.c: Likewise.
2777         * explow.c: Likewise.
2778         * expmed.c: Likewise.
2779         * expr.c: Likewise.
2780         * final.c: Likewise.
2781         * fixed-value.c: Likewise.
2782         * fold-const.c: Likewise.
2783         * function.c: Likewise.
2784         * fwprop.c: Likewise.
2785         * gcc-plugin.h: Likewise.
2786         * gcse-common.c: Likewise.
2787         * gcse.c: Likewise.
2788         * generic-match-head.c: Likewise.
2789         * ggc-page.c: Likewise.
2790         * gimple-builder.c: Likewise.
2791         * gimple-expr.c: Likewise.
2792         * gimple-fold.c: Likewise.
2793         * gimple-iterator.c: Likewise.
2794         * gimple-low.c: Likewise.
2795         * gimple-match-head.c: Likewise.
2796         * gimple-pretty-print.c: Likewise.
2797         * gimple-ssa-isolate-paths.c: Likewise.
2798         * gimple-ssa-strength-reduction.c: Likewise.
2799         * gimple-streamer-in.c: Likewise.
2800         * gimple-streamer-out.c: Likewise.
2801         * gimple-walk.c: Likewise.
2802         * gimple.c: Likewise.
2803         * gimplify-me.c: Likewise.
2804         * gimplify.c: Likewise.
2805         * godump.c: Likewise.
2806         * graph.c: Likewise.
2807         * graphite-blocking.c: Likewise.
2808         * graphite-dependences.c: Likewise.
2809         * graphite-interchange.c: Likewise.
2810         * graphite-isl-ast-to-gimple.c: Likewise.
2811         * graphite-optimize-isl.c: Likewise.
2812         * graphite-poly.c: Likewise.
2813         * graphite-scop-detection.c: Likewise.
2814         * graphite-sese-to-poly.c: Likewise.
2815         * graphite.c: Likewise.
2816         * haifa-sched.c: Likewise.
2817         * hw-doloop.c: Likewise.
2818         * ifcvt.c: Likewise.
2819         * init-regs.c: Likewise.
2820         * internal-fn.c: Likewise.
2821         * ipa-chkp.c: Likewise.
2822         * ipa-comdats.c: Likewise.
2823         * ipa-cp.c: Likewise.
2824         * ipa-devirt.c: Likewise.
2825         * ipa-icf-gimple.c: Likewise.
2826         * ipa-icf.c: Likewise.
2827         * ipa-inline-analysis.c: Likewise.
2828         * ipa-inline-transform.c: Likewise.
2829         * ipa-inline.c: Likewise.
2830         * ipa-polymorphic-call.c: Likewise.
2831         * ipa-profile.c: Likewise.
2832         * ipa-prop.c: Likewise.
2833         * ipa-pure-const.c: Likewise.
2834         * ipa-ref.c: Likewise.
2835         * ipa-reference.c: Likewise.
2836         * ipa-split.c: Likewise.
2837         * ipa-utils.c: Likewise.
2838         * ipa-visibility.c: Likewise.
2839         * ipa.c: Likewise.
2840         * ira-build.c: Likewise.
2841         * ira-color.c: Likewise.
2842         * ira-conflicts.c: Likewise.
2843         * ira-costs.c: Likewise.
2844         * ira-emit.c: Likewise.
2845         * ira-lives.c: Likewise.
2846         * ira.c: Likewise.
2847         * jump.c: Likewise.
2848         * langhooks.c: Likewise.
2849         * lcm.c: Likewise.
2850         * loop-doloop.c: Likewise.
2851         * loop-init.c: Likewise.
2852         * loop-invariant.c: Likewise.
2853         * loop-iv.c: Likewise.
2854         * loop-unroll.c: Likewise.
2855         * lower-subreg.c: Likewise.
2856         * lra-assigns.c: Likewise.
2857         * lra-coalesce.c: Likewise.
2858         * lra-constraints.c: Likewise.
2859         * lra-eliminations.c: Likewise.
2860         * lra-lives.c: Likewise.
2861         * lra-remat.c: Likewise.
2862         * lra-spills.c: Likewise.
2863         * lra.c: Likewise.
2864         * lto-cgraph.c: Likewise.
2865         * lto-compress.c: Likewise.
2866         * lto-opts.c: Likewise.
2867         * lto-section-in.c: Likewise.
2868         * lto-section-out.c: Likewise.
2869         * lto-streamer-in.c: Likewise.
2870         * lto-streamer-out.c: Likewise.
2871         * lto-streamer.c: Likewise.
2872         * mcf.c: Likewise.
2873         * mode-switching.c: Likewise.
2874         * modulo-sched.c: Likewise.
2875         * omega.c: Likewise.
2876         * omp-low.c: Likewise.
2877         * optabs.c: Likewise.
2878         * opts-global.c: Likewise.
2879         * passes.c: Likewise.
2880         * plugin.c: Likewise.
2881         * postreload-gcse.c: Likewise.
2882         * postreload.c: Likewise.
2883         * predict.c: Likewise.
2884         * print-rtl.c: Likewise.
2885         * print-tree.c: Likewise.
2886         * profile.c: Likewise.
2887         * real.c: Likewise.
2888         * realmpfr.c: Likewise.
2889         * recog.c: Likewise.
2890         * ree.c: Likewise.
2891         * reg-stack.c: Likewise.
2892         * regcprop.c: Likewise.
2893         * reginfo.c: Likewise.
2894         * regrename.c: Likewise.
2895         * regstat.c: Likewise.
2896         * reload.c: Likewise.
2897         * reload1.c: Likewise.
2898         * reorg.c: Likewise.
2899         * resource.c: Likewise.
2900         * rtl-chkp.c: Likewise.
2901         * rtlanal.c: Likewise.
2902         * rtlhooks.c: Likewise.
2903         * sanopt.c: Likewise.
2904         * sched-deps.c: Likewise.
2905         * sched-ebb.c: Likewise.
2906         * sched-rgn.c: Likewise.
2907         * sched-vis.c: Likewise.
2908         * sdbout.c: Likewise.
2909         * sel-sched-dump.c: Likewise.
2910         * sel-sched-ir.c: Likewise.
2911         * sel-sched.c: Likewise.
2912         * sese.c: Likewise.
2913         * shrink-wrap.c: Likewise.
2914         * simplify-rtx.c: Likewise.
2915         * stack-ptr-mod.c: Likewise.
2916         * stmt.c: Likewise.
2917         * stor-layout.c: Likewise.
2918         * store-motion.c: Likewise.
2919         * stringpool.c: Likewise.
2920         * symtab.c: Likewise.
2921         * target-globals.c: Likewise.
2922         * targhooks.c: Likewise.
2923         * toplev.c: Likewise.
2924         * tracer.c: Likewise.
2925         * trans-mem.c: Likewise.
2926         * tree-affine.c: Likewise.
2927         * tree-browser.c: Likewise.
2928         * tree-call-cdce.c: Likewise.
2929         * tree-cfg.c: Likewise.
2930         * tree-cfgcleanup.c: Likewise.
2931         * tree-chkp-opt.c: Likewise.
2932         * tree-chkp.c: Likewise.
2933         * tree-chrec.c: Likewise.
2934         * tree-complex.c: Likewise.
2935         * tree-data-ref.c: Likewise.
2936         * tree-dfa.c: Likewise.
2937         * tree-diagnostic.c: Likewise.
2938         * tree-dump.c: Likewise.
2939         * tree-eh.c: Likewise.
2940         * tree-emutls.c: Likewise.
2941         * tree-if-conv.c: Likewise.
2942         * tree-inline.c: Likewise.
2943         * tree-into-ssa.c: Likewise.
2944         * tree-iterator.c: Likewise.
2945         * tree-loop-distribution.c: Likewise.
2946         * tree-nested.c: Likewise.
2947         * tree-nrv.c: Likewise.
2948         * tree-object-size.c: Likewise.
2949         * tree-outof-ssa.c: Likewise.
2950         * tree-parloops.c: Likewise.
2951         * tree-phinodes.c: Likewise.
2952         * tree-predcom.c: Likewise.
2953         * tree-pretty-print.c: Likewise.
2954         * tree-profile.c: Likewise.
2955         * tree-scalar-evolution.c: Likewise.
2956         * tree-sra.c: Likewise.
2957         * tree-ssa-address.c: Likewise.
2958         * tree-ssa-alias.c: Likewise.
2959         * tree-ssa-ccp.c: Likewise.
2960         * tree-ssa-coalesce.c: Likewise.
2961         * tree-ssa-copy.c: Likewise.
2962         * tree-ssa-copyrename.c: Likewise.
2963         * tree-ssa-dce.c: Likewise.
2964         * tree-ssa-dom.c: Likewise.
2965         * tree-ssa-dse.c: Likewise.
2966         * tree-ssa-forwprop.c: Likewise.
2967         * tree-ssa-ifcombine.c: Likewise.
2968         * tree-ssa-live.c: Likewise.
2969         * tree-ssa-loop-ch.c: Likewise.
2970         * tree-ssa-loop-im.c: Likewise.
2971         * tree-ssa-loop-ivcanon.c: Likewise.
2972         * tree-ssa-loop-ivopts.c: Likewise.
2973         * tree-ssa-loop-manip.c: Likewise.
2974         * tree-ssa-loop-niter.c: Likewise.
2975         * tree-ssa-loop-prefetch.c: Likewise.
2976         * tree-ssa-loop-unswitch.c: Likewise.
2977         * tree-ssa-loop.c: Likewise.
2978         * tree-ssa-math-opts.c: Likewise.
2979         * tree-ssa-operands.c: Likewise.
2980         * tree-ssa-phiopt.c: Likewise.
2981         * tree-ssa-phiprop.c: Likewise.
2982         * tree-ssa-pre.c: Likewise.
2983         * tree-ssa-propagate.c: Likewise.
2984         * tree-ssa-reassoc.c: Likewise.
2985         * tree-ssa-sccvn.c: Likewise.
2986         * tree-ssa-scopedtables.c: Likewise.
2987         * tree-ssa-sink.c: Likewise.
2988         * tree-ssa-strlen.c: Likewise.
2989         * tree-ssa-structalias.c: Likewise.
2990         * tree-ssa-tail-merge.c: Likewise.
2991         * tree-ssa-ter.c: Likewise.
2992         * tree-ssa-threadedge.c: Likewise.
2993         * tree-ssa-threadupdate.c: Likewise.
2994         * tree-ssa-uncprop.c: Likewise.
2995         * tree-ssa-uninit.c: Likewise.
2996         * tree-ssa.c: Likewise.
2997         * tree-ssanames.c: Likewise.
2998         * tree-stdarg.c: Likewise.
2999         * tree-streamer-in.c: Likewise.
3000         * tree-streamer-out.c: Likewise.
3001         * tree-streamer.c: Likewise.
3002         * tree-switch-conversion.c: Likewise.
3003         * tree-tailcall.c: Likewise.
3004         * tree-vect-data-refs.c: Likewise.
3005         * tree-vect-generic.c: Likewise.
3006         * tree-vect-loop-manip.c: Likewise.
3007         * tree-vect-loop.c: Likewise.
3008         * tree-vect-patterns.c: Likewise.
3009         * tree-vect-slp.c: Likewise.
3010         * tree-vect-stmts.c: Likewise.
3011         * tree-vectorizer.c: Likewise.
3012         * tree-vrp.c: Likewise.
3013         * tree.c: Likewise.
3014         * tsan.c: Likewise.
3015         * ubsan.c: Likewise.
3016         * valtrack.c: Likewise.
3017         * value-prof.c: Likewise.
3018         * var-tracking.c: Likewise.
3019         * varasm.c: Likewise.
3020         * varpool.c: Likewise.
3021         * vmsdbgout.c: Likewise.
3022         * vtable-verify.c: Likewise.
3023         * web.c: Likewise.
3024         * wide-int.cc: Likewise.
3025         * xcoffout.c: Likewise.
3026         * config/aarch64/aarch64-builtins.c: Likewise.
3027         * config/aarch64/aarch64.c: Likewise.
3028         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3029         * config/alpha/alpha.c: Likewise.
3030         * config/arc/arc.c: Likewise.
3031         * config/arm/aarch-common.c: Likewise.
3032         * config/arm/arm-builtins.c: Likewise.
3033         * config/arm/arm-c.c: Likewise.
3034         * config/arm/arm.c: Likewise.
3035         * config/avr/avr-c.c: Likewise.
3036         * config/avr/avr-log.c: Likewise.
3037         * config/avr/avr.c: Likewise.
3038         * config/bfin/bfin.c: Likewise.
3039         * config/c6x/c6x.c: Likewise.
3040         * config/cr16/cr16.c: Likewise.
3041         * config/cris/cris.c: Likewise.
3042         * config/darwin-c.c: Likewise.
3043         * config/darwin.c: Likewise.
3044         * config/epiphany/epiphany.c: Likewise.
3045         * config/epiphany/mode-switch-use.c: Likewise.
3046         * config/epiphany/resolve-sw-modes.c: Likewise.
3047         * config/fr30/fr30.c: Likewise.
3048         * config/frv/frv.c: Likewise.
3049         * config/ft32/ft32.c: Likewise.
3050         * config/h8300/h8300.c: Likewise.
3051         * config/i386/i386-c.c: Likewise.
3052         * config/i386/i386.c: Likewise.
3053         * config/i386/msformat-c.c: Likewise.
3054         * config/i386/winnt-cxx.c: Likewise.
3055         * config/i386/winnt-stubs.c: Likewise.
3056         * config/i386/winnt.c: Likewise.
3057         * config/ia64/ia64-c.c: Likewise.
3058         * config/ia64/ia64.c: Likewise.
3059         * config/iq2000/iq2000.c: Likewise.
3060         * config/lm32/lm32.c: Likewise.
3061         * config/m32c/m32c-pragma.c: Likewise.
3062         * config/m32c/m32c.c: Likewise.
3063         * config/m32r/m32r.c: Likewise.
3064         * config/m68k/m68k.c: Likewise.
3065         * config/mcore/mcore.c: Likewise.
3066         * config/mep/mep-pragma.c: Likewise.
3067         * config/mep/mep.c: Likewise.
3068         * config/microblaze/microblaze-c.c: Likewise.
3069         * config/microblaze/microblaze.c: Likewise.
3070         * config/mips/mips.c: Likewise.
3071         * config/mmix/mmix.c: Likewise.
3072         * config/mn10300/mn10300.c: Likewise.
3073         * config/moxie/moxie.c: Likewise.
3074         * config/msp430/msp430-c.c: Likewise.
3075         * config/msp430/msp430.c: Likewise.
3076         * config/nds32/nds32-cost.c: Likewise.
3077         * config/nds32/nds32-fp-as-gp.c: Likewise.
3078         * config/nds32/nds32-intrinsic.c: Likewise.
3079         * config/nds32/nds32-isr.c: Likewise.
3080         * config/nds32/nds32-md-auxiliary.c: Likewise.
3081         * config/nds32/nds32-memory-manipulation.c: Likewise.
3082         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3083         * config/nds32/nds32-predicates.c: Likewise.
3084         * config/nds32/nds32.c: Likewise.
3085         * config/nios2/nios2.c: Likewise.
3086         * config/nvptx/nvptx.c: Likewise.
3087         * config/pa/pa.c: Likewise.
3088         * config/pdp11/pdp11.c: Likewise.
3089         * config/rl78/rl78-c.c: Likewise.
3090         * config/rl78/rl78.c: Likewise.
3091         * config/rs6000/rs6000-c.c: Likewise.
3092         * config/rs6000/rs6000.c: Likewise.
3093         * config/rx/rx.c: Likewise.
3094         * config/s390/s390-c.c: Likewise.
3095         * config/s390/s390.c: Likewise.
3096         * config/sh/sh-c.c: Likewise.
3097         * config/sh/sh-mem.cc: Likewise.
3098         * config/sh/sh.c: Likewise.
3099         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3100         * config/sh/sh_treg_combine.cc: Likewise.
3101         * config/sol2-c.c: Likewise.
3102         * config/sol2-cxx.c: Likewise.
3103         * config/sol2-stubs.c: Likewise.
3104         * config/sol2.c: Likewise.
3105         * config/sparc/sparc-c.c: Likewise.
3106         * config/sparc/sparc.c: Likewise.
3107         * config/spu/spu-c.c: Likewise.
3108         * config/spu/spu.c: Likewise.
3109         * config/stormy16/stormy16.c: Likewise.
3110         * config/tilegx/mul-tables.c: Likewise.
3111         * config/tilegx/tilegx-c.c: Likewise.
3112         * config/tilegx/tilegx.c: Likewise.
3113         * config/tilepro/mul-tables.c: Likewise.
3114         * config/tilepro/tilepro-c.c: Likewise.
3115         * config/tilepro/tilepro.c: Likewise.
3116         * config/v850/v850-c.c: Likewise.
3117         * config/v850/v850.c: Likewise.
3118         * config/vax/vax.c: Likewise.
3119         * config/visium/visium.c: Likewise.
3120         * config/vms/vms-c.c: Likewise.
3121         * config/vms/vms.c: Likewise.
3122         * config/vxworks.c: Likewise.
3123         * config/xtensa/xtensa.c: Likewise.
3124
3125 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
3126
3127         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3128         Remove operand constraints.  Change operand 2 predicate to
3129         nonmemory operand.  Limit const_int values to mode bitsize.  Only
3130         allow const_int values less than 32 when optimizing for size.
3131         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3132         Remove operand constraints.
3133         (*bt<mode>): Use SImode for const_int values less than 32.
3134         (regmode): Remove mode attribute.
3135
3136 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
3137
3138         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3139         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3140           moxie_legitimate_address_p): New functions.
3141           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3142
3143 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3144
3145         PR tree-optimization/66642
3146         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3147         header comment.  Rename split_edge variable to edge_at_split.  Split
3148         exit edge to create new loop exit bb.  Insert loop exit phis in new
3149         loop exit bb.
3150
3151 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3152
3153         * tree-cfg.c (get_virtual_phi): New function.
3154         * tree-cfg.h (get_virtual_phi): Declare.
3155         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3156         (rewrite_virtuals_into_loop_closed_ssa): New function.
3157         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3158         Declare.
3159         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3160         (transform_to_exit_first_loop_alt): Use
3161         rewrite_virtuals_into_loop_closed_ssa.
3162
3163 2015-07-07  Richard Biener  <rguenther@suse.de>
3164
3165         * fold-const.c (fold_binary_loc): Move
3166         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3167         * match.pd: ... here.
3168         Add (X * C1) % C2 -> 0 simplification pattern derived from
3169         extract_muldiv_1.
3170
3171 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3172
3173         PR target/66780
3174         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3175         change for target/65249.
3176
3177 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
3178
3179         * symtab.c (address_matters_1): Fix typo in comment above.
3180         (can_increase_alignment_p): Likewise.
3181
3182 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3183
3184         * function.c (free_after_compilation): Clear PROP_cfg in
3185         f->curr_properties.
3186
3187 2015-07-07  Richard Biener  <rguenther@suse.de>
3188
3189         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3190         add which use to.
3191         (add_control_edge): Remove excessive vertical space in dumping.
3192         (process_ssa_edge_worklist): Simulate at most one statement and
3193         return whether we did.  Do not simulate PHIs if they are in a
3194         BB not yet simulated.
3195         (ssa_propagate): Adjust to always drain the BB worklist whenever
3196         a BB is available there, likewise the VARYING edges list before
3197         the interesting edge list.
3198
3199 2015-07-07  Christian Bruel  <christian.bruel@st.com>
3200
3201         PR target/52144
3202         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3203
3204 2015-07-07  Richard Biener  <rguenther@suse.de>
3205
3206         PR middle-end/66739
3207         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3208         A - B.
3209
3210 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
3211
3212         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
3213         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
3214         Copy operand 0 to a temporary if !ext_register_operand.  Remove
3215         ancient extract_bit_field workaround.
3216         (insv<mode>_1): Rename from mov<mode>_insv_1.
3217         (*insvqi): Rename from *movqi_insv_2.
3218         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3219         for renamed insvsi_1.
3220         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3221
3222 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3223
3224         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
3225         call to nvptx_reorg_subreg.
3226
3227 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
3228
3229         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3230         * graphite-dependencies.c, graphite-interchange.c,
3231         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3232         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3233         Likewise.
3234
3235 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
3236
3237         * match.pd: Remove element_mode inside HONOR_*.
3238         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3239         (~X | X -> -1, ~X ^ X -> -1): Merge.
3240         * tree.c (build_each_one_cst): New function.
3241         * tree.h (build_each_one_cst): Likewise.
3242
3243 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3244
3245         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3246         PROCESSOR_IAMCU.
3247
3248 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
3249
3250         * config.gcc <mips*-*-*>: Add fused-madd.opt.
3251         * config/mips/mips.opt (mfused-madd): Remove.
3252         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3253         * config/mips/mips.h (TARGET_MIPS8000): New.
3254         (ISA_HAS_FP_MADD4_MSUB4): Remove.
3255         (ISA_HAS_FP_MADDF_MSUBF): Remove.
3256         (ISA_HAS_FP_MADD3_MSUB3): Remove.
3257         (ISA_HAS_NMADD4_NMSUB4): Remove.
3258         (ISA_HAS_NMADD3_NMSUB3): Remove.
3259         (ISA_HAS_FUSED_MADD4): New.
3260         (ISA_HAS_UNFUSED_MADD4): New.
3261         (ISA_HAS_FUSED_MADDF): New.
3262         (ISA_HAS_FUSED_MADD3): New.
3263         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3264         (*fma<mode>4_madd3) New.
3265         (*fma<mode>4_madd4) New.
3266         (*fma<mode>4_maddf) New.
3267         (fms<mode>4) New.
3268         (*fms<mode>4_msub3) New.
3269         (*fms<mode>4_msub4) New.
3270         (fnma<mode>4) New.
3271         (*fnma<mode>4_nmadd3) New.
3272         (*fnma<mode>4_nmadd4) New.
3273         (fnms<mode>4) New.
3274         (*fnms<mode>4_nmsub3) New.
3275         (*fnms<mode>4_nmsub4) New.
3276         (*madd4<mode>) Modify to be unfused only.
3277         (*msub4<mode>) Modify to be unfused only.
3278         (*nmadd4<mode>) Modify to be unfused only.
3279         (*nmsub4<mode>) Modify to be unfused only.
3280         (*madd3<mode>) Remove.
3281         (*msub3<mode>) Remove.
3282         (*nmadd3<mode>) Remove.
3283         (*nmsub3<mode>) Remove.
3284         (*nmadd3<mode>_fastmath) Remove.
3285         (*nmsub3<mode>_fastmath) Remove.
3286         (*nmadd4<mode>_fastmath) Update condition.
3287         (*nmsub4<mode>_fastmath) Update condition.
3288
3289 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
3290
3291         PR target/65956
3292         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3293         alignment attribute, exploring one level down for records and arrays.
3294
3295 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
3296
3297         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
3298         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
3299         Copy operand 1 to a temporary if !ext_register_operand.  Remove
3300         ancient extract_bit_field workaround.
3301         (*extv<mode>): Rename from *mov<mode>_extv_1.
3302         (*extvqi): Rename from *movqi_extv_1.
3303         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
3304         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
3305         to a temporary if !ext_register_operand.  Remove ancient
3306         extract_bit_field workaround.
3307         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3308         (*extzvqi): Rename from *movqi_extzv_2.
3309         (*testqi_ext_3): Remove modes from const_int_operand predicated
3310         operands.  Add "n" constraint.
3311         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3312         operand.  Add "J" constraint.
3313         (*btsq, *btrq, *btcq peephole2s): Remove mode from
3314         const_0_to_63 predicated operand.
3315         (regmode): New insn attribute.
3316         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
3317         to nonmemory_operand.  Use regmode insn attribute.
3318         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3319         (*jcc_bt<mode>_mask): Remove mode from operand 3.
3320         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3321         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3322         operands.  Use "N" constraint instead of "n".
3323
3324 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
3325
3326         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3327
3328 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3329
3330         PR target/66749
3331         * config/i386/i386.c (iamcu_cost): New.
3332         (m_IAMCU): Likewise.
3333         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3334         (processor_target_table): Add an entry for "iamcu".
3335         (processor_alias_table): Likewise.
3336         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3337         (ix86_adjust_cost): Likewise.
3338         (ia32_multipass_dfa_lookahead): Likewise.
3339         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3340         * config/i386/x86-tune.def: Updated for m_IAMCU.
3341
3342 2015-07-06  Richard Biener  <rguenther@suse.de>
3343
3344         PR tree-optimization/66772
3345         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3346         values are available in the PHI node BB when there are
3347         still unexecutable edges.
3348
3349 2015-07-06  Richard Biener  <rguenther@suse.de>
3350
3351         PR tree-optimization/66767
3352         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3353         Make sure to build the alignment test on a SSA name without
3354         final alignment info valid only if the alignment test
3355         evaluates to true.
3356
3357 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3358
3359         PR target/66620
3360         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3361         loop start when inserting LSETUP.
3362
3363 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3364
3365         PR target/53383
3366         * config/i386/i386.c (ix86_option_override_internal): Allow
3367         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3368
3369 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3370
3371         * read-md.c (decimal_string): Rename to ...
3372         (md_decimal_string): ... this.
3373         (handle_enum): Reflect this.
3374
3375 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3376
3377         PR target/66731
3378         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3379
3380 2015-07-06  Richard Biener  <rguenther@suse.de>
3381
3382         PR middle-end/66759
3383         * match.pd: Add missing constraint of y to REAL_CST in
3384         REAL_CST - x CMP y to y - CST CMP x simplification.
3385
3386 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
3387
3388         PR tree-optimization/66757
3389         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3390
3391 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
3392             Sandra Loosemore <sandra@codesourcery.com>
3393
3394         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3395         Delete extern declaration.
3396         (gprel_constant_p): Add extern declaration.
3397         * config/nios2/constraints.md ("S"): Use gprel_constant_p
3398         instead of nios2_symbol_ref_in_small_data_p.
3399         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3400         (nios2_symbol_ref_in_small_data_p): Make static.
3401         (gprel_constant_p): Make non-static.
3402
3403 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
3404
3405         * doc/fragments.texi (Target Fragment): Convert debian.org
3406         link to use https.
3407         * doc/install.texi (Configuration): Ditto.
3408
3409 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
3410
3411         PR tree-optimization/66718
3412         * tree-vect-stmts.c (vectorizable_call): Replace uses of
3413         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3414
3415         PR tree-optimization/66718
3416         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3417         vectorizable_load, vectorizable_condition): Move vectype,
3418         nunits, ncopies computation after checking what kind of statement
3419         stmt is.
3420
3421 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3422
3423         * target-insns.def (extv, extzv, insv): New targetm instruction
3424         patterns.
3425         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3426         interface.
3427         * recog.c (simplify_while_replacing): Likewise.
3428
3429 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3430
3431         * target-insns.def (doloop_begin, doloop_end): New targetm
3432         instruction patterns.
3433         * loop-init.c: Include target.h.
3434         (pass_loop2::gate): Use the new targetm patterns instead of
3435         HAVE_*/gen_* interface.
3436         (pass_rtl_doloop::gate): Likewise.
3437         (pass_rtl_doloop::execute): Remove preprocessor condition.
3438         * hw-doloop.c: Build unconditionally.
3439         * loop-doloop.c: Likewise.
3440         (doloop_optimize): Use the new targetm patterns instead of
3441         HAVE_*/gen_* interface.
3442         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3443         * modulo-sched.c (doloop_register_get): Likewise.
3444
3445 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3446
3447         * target-insns.def (clear_cache): New targetm instruction pattern.
3448         * builtins.c (expand_builtin___clear_cache): Use it instead of
3449         HAVE_*/gen_* interface.
3450
3451 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3452
3453         * target-insns.def (allocate_stack, check_stack, probe_stack)
3454         (probe_stack_address, split_stack_prologue, split_stack_space_check):
3455         New targetm instruction patterns.
3456         * explow.c (allocate_dynamic_stack_space): Use them instead of
3457         HAVE_*/gen_* interface.
3458         (emit_stack_probe): Likewise.
3459         (probe_stack_range): Likewise.
3460         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3461
3462 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3463
3464         * target-insns.def (stack_protect_set, stack_protect_test): New
3465         targetm instruction patterns.
3466         * cfgexpand.c (stack_protect_prologue): Use them instead of
3467         HAVE_*/gen_* interface.
3468         * function.c (stack_protect_epilogue): Likewise.
3469
3470 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3471
3472         * expr.h (gen_move_insn_uncast): Delete.
3473         * expr.c (gen_move_insn_uncast): Delete.
3474
3475 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3476
3477         * target-insns.def (restore_stack_block, restore_stack_function)
3478         (restore_stack_nonlocal, save_stack_block, save_stack_function)
3479         (save_stack_nonlocal): New targetm instruction patterns.
3480         * builtins.c (expand_builtin_apply): Use them instead of
3481         HAVE_*/gen_* interface.
3482         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3483
3484 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3485
3486         * target-insns.def (trap): New targetm instruction pattern.
3487         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3488         interface.
3489         * explow.c (allocate_dynamic_stack_space): Likewise.
3490         * ifcvt.c (find_if_header): Likewise.
3491
3492 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3493
3494         * target-insns.def (prefetch): New targetm instruction pattern.
3495         * tree-ssa-loop-prefetch.c: Include targeth.
3496         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3497         of HAVE_*/gen_* interface.
3498         * builtins.c (expand_builtin_prefetch): Likewise.
3499         * toplev.c (process_options): Likewise.
3500
3501 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3502
3503         * target-insns.def (untyped_call, untyped_return): New targetm
3504         instruction patterns.
3505         * builtins.c (expand_builtin_apply): Use them instead of
3506         HAVE_*/gen_* interface.
3507         (result_vector): Define unconditionally.
3508
3509 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3510
3511         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3512         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3513         (nonlocal_goto_receiver): New targetm instruction patterns.
3514         * builtins.c (expand_builtin_setjmp_setup): Use them instead
3515         of HAVE_*/gen_* interface.
3516         (expand_builtin_setjmp_receiver): Likewise.
3517         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3518         * except.c (expand_dw2_landing_pad_for_region): Likewise.
3519
3520 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3521
3522         * target.def: Add code_for_* hooks.
3523         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3524         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3525         * target-insns.def (casesi, tablejump): New targetm instruction
3526         patterns.
3527         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3528         (do_tablejump): Likewise.
3529         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3530         (expand_sjlj_dispatch_table): Likewise.
3531         * targhooks.c (default_case_values_threshold): Likewise.
3532
3533 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
3534
3535         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3536         Use rtx_insn * instead of rtx.
3537         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3538         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3539         (nios2_call_tls_get_addr): Likewise.
3540         (nios2_emit_expensive_div): Likewise.
3541         (nios2_emit_move_sequence): Change return type to bool.
3542         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3543         Change return type to bool.
3544
3545 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3546
3547         PR target/66747
3548         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3549
3550 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
3551
3552         PR target/66114
3553         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3554         of register_operand.  Remove constraint.
3555
3556 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
3557
3558         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3559         the first argument.
3560
3561 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
3562
3563         * attribs.c (decl_attributes): Guard inform with the return value
3564         of the preceding warning.
3565
3566 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3567
3568         * doc/invoke.texi (moverride): Move to correct section.
3569
3570 2015-07-03  Richard Biener  <rguenther@suse.de>
3571
3572         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3573         Copy from tree.c
3574         (dt_operand::gen_gimple_expr): After valueizing operands
3575         re-canonicalize operand order for commutative tree codes.
3576
3577 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3578
3579         PR target/66746.
3580         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3581         is defined.
3582         (__crc32w): Likewise.
3583         (__crc32d): Likewise.
3584         (__rdpmc): Likewise.
3585         (__rdtscp): Likewise.
3586         (_rdpmc): Likewise.
3587         (_rdtscp): Likewise.
3588         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3589         is defined.
3590
3591 2015-07-03  Richard Biener  <rguenther@suse.de>
3592
3593         * fold-const.c (fold_mathfn_compare): Remove.
3594         (fold_inf_compare): Likewise.
3595         (fold_comparison): Move floating point comparison simplifications...
3596         * match.pd: ... to patterns here.  Introduce simple_comparisons
3597         operator list and use it for patterns formerly in fold_comparison.
3598
3599 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3600
3601         PR tree-optimization/66119
3602         * toplev.c (process_options): Don't set up default values for
3603         the sra_max_scalarization_size_{speed,size} parameters.
3604         * tree-sra (analyze_all_variable_accesses): If no values
3605         have been set for the sra_max_scalarization_size_{speed,size}
3606         parameters, call get_move_ratio to get target defaults.
3607
3608 2015-07-03  Richard Biener  <rguenther@suse.de>
3609
3610         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3611         * match.pd: ... here.
3612
3613 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
3614
3615         PR target/37072
3616         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3617         is not actually the default on FreeBSD.
3618
3619 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3620
3621         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3622         definition.
3623         (CMPGE_8HI): Likewise.
3624         (CMPGE_4SI): Likewise.
3625         (CMPGE_2DI): Likewise.
3626         (CMPGE_U16QI): Likewise.
3627         (CMPGE_U8HI): Likewise.
3628         (CMPGE_U4SI): Likewise.
3629         (CMPGE_U2DI): Likewise.
3630         (CMPLE_16QI): Likewise.
3631         (CMPLE_8HI): Likewise.
3632         (CMPLE_4SI): Likewise.
3633         (CMPLE_2DI): Likewise.
3634         (CMPLE_U16QI): Likewise.
3635         (CMPLE_U8HI): Likewise.
3636         (CMPLE_U4SI): Likewise.
3637         (CMPLE_U2DI): Likewise.
3638         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3639         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3640         ALTIVEC_BUILTIN_VEC_CMPLE.
3641         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3642         floating-point vector modes.
3643         (vector_nlt<mode>): New define_expand.
3644         (vector_nltu<mode>): Likewise.
3645         (vector_ngt<mode>): Likewise.
3646         (vector_ngtu<mode>): Likewise.
3647
3648 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
3649
3650         PR rtl-optimization/66706
3651         * combine.c (make_compound_operation): If an AND of SUBREG of
3652         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3653
3654 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
3655
3656         * tree-pass.h (make_pass_ch_vect): New.
3657         * passes.def: Add pass_ch_vect just before pass_if_conversion.
3658
3659         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3660         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3661         make_pass_ch_vect): New.
3662         (pass_ch): Extend ch_base.
3663
3664         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3665         (ch_base::copy_headers): ...here.
3666
3667 2015-07-02  Richard Biener  <rguenther@suse.de>
3668
3669         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3670         * fold-const.c (get_pointer_modulus_and_residue): Remove.
3671         (fold_binary_loc): Implement (T)ptr & CST in terms of
3672         get_pointer_alignment_1.
3673         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3674         Make sure to build the alignment test on a SSA name without
3675         final alignment info valid only after the prologue.
3676
3677 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
3678
3679         * config/cris/cris.md ("epilogue"): Remove condition.
3680         ("prologue"): Ditto.
3681
3682 2015-07-02  Richard Biener  <rguenther@suse.de>
3683
3684         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3685         parameter to record a condition that is false.
3686         (record_conditions): When recording an extra NE_EXPR that is
3687         true also record a EQ_EXPR that is false.
3688
3689 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
3690
3691         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3692         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3693         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
3694         (set_iv, find_interesting_uses_address, add_candidate_1): New
3695         argument to alloc_iv.
3696         (find_interesting_uses_op, find_interesting_uses_cond): Don't
3697         duplicate struct iv.
3698         (free_loop_data): Don't free struct iv explicitly.
3699         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3700
3701 2015-07-01  DJ Delorie  <dj@redhat.com>
3702
3703         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3704         (LIB_SPEC): Add.
3705         (SUPPORTS_DISCRIMINATOR): Define.
3706
3707 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3708
3709         PR bootstrap/66685
3710         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3711         there are no CALLs in the same pattern.
3712
3713 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3714
3715         PR rtl-optimization/61047
3716         * rtlanal.c (get_initial_register_offset): New function.
3717         (rtx_addr_can_trap_p_1): Check offsets of stack references.
3718
3719 2015-07-01  Richard Biener  <rguenther@suse.de>
3720
3721         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3722         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3723         ~X CMP C -> X CMP' ~C to ...
3724         * match.pd: ... patterns here.
3725
3726 2015-07-01  Nick Clifton  <nickc@redhat.com>
3727
3728         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3729         a 16-bit value into a 20-bit memory slot.
3730
3731 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3732
3733         * doc/sourcebuild.texi (AArch64-specific attributes): Document
3734         "aarch64_tiny", "aarch64_small", "aarch64_large",
3735         "aarch64_little_endian", "aarch64_big_endian".
3736
3737 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3738
3739         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3740         Document "aarch64_small_fpic".
3741
3742 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3743
3744         * configure.ac: Add check for aarch64 assembler -fpic relocation
3745         modifier support.
3746         * configure: Regenerate.
3747         * config.in: Regenerate.
3748         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3749         to -fPIC if not support of -fpic relocation modifier in assembler.
3750
3751 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3752
3753         PR bootstrap/66685
3754         * rtl.c (classify_insn): Handle returns in PARALLELs.
3755
3756 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3757
3758         PR middle-end/66633
3759         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3760         to true if the function is nested and if not optimizing.
3761         (convert_local_omp_clauses): Initialize need_frame to true if the
3762         function contains nested functions and if not optimizing.
3763
3764 2015-07-01  Richard Biener  <rguenther@suse.de>
3765
3766         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3767         (X & Y) ^ Y -> ~X & Y transforms to ...
3768         * match.pd: ... here.
3769
3770 2015-07-01  Richard Biener <rguenther@suse.de>
3771
3772         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3773         of converts to avoid uninteresting noise from the conversion
3774         simplifying patterns.
3775
3776 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
3777
3778         * config/c6x/c6x.c (try_rename_operands): Do not depend on
3779         gcc_assert evaluating its argument for side-effect.
3780
3781 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3782
3783         PR target/64833
3784         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3785         flag_pic is set.
3786
3787 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3788
3789         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3790         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3791         (hash_scc): Add this_ref_p and ref_p parameters and pass them
3792         to the inner DFS walk.
3793
3794 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3795
3796         * target-insns.def (jump): New targetm instruction pattern.
3797         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3798         instead of gen_jump.
3799         (fix_up_crossing_landing_pad): Likewise.
3800         (add_labels_and_missing_jumps): Likewise.
3801         (fix_crossing_conditional_branches): Likewise.
3802         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3803         (force_nonfallthru_and_redirect): Likewise.
3804         * cse.c (cse_insn): Likewise.
3805         * expmed.c (expand_divmod): Likewise.
3806         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3807         * haifa-sched.c (init_before_recovery): Likewise.
3808         (sched_create_recovery_edges): Likewise.
3809         * ifcvt.c (find_cond_trap): Likewise.
3810         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3811         (expand_float, expand_fix): Likewise.
3812         * stmt.c (emit_jump): Likewise.
3813
3814 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3815
3816         * defaults.h (HAVE_load_multiple, gen_load_multiple)
3817         (HAVE_store_multiple, gen_store_multiple): Delete.
3818         * target-insns.def (load_multiple, store_multiple): New targetm
3819         instruction patterns.
3820         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3821         of HAVE_*/gen_* interface.
3822
3823 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3824
3825         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3826         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3827         (gen_mem_signal_fence): Delete.
3828         * target-insns.def (mem_signal_fence, mem_thread_fence)
3829         (memory_barrier): New targetm instruction patterns.
3830         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3831         interface.
3832         (expand_mem_signal_fence): Likewise.
3833
3834 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3835
3836         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3837         * target-insns.def (epilogue, prologue, sibcall_prologue): New
3838         targetm instruction patterns.
3839         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3840         interface.
3841         * calls.c (expand_call): Likewise.
3842         * cfgrtl.c (cfg_layout_finalize): Likewise.
3843         * df-scan.c (df_get_entry_block_def_set): Likewise.
3844         (df_get_exit_block_use_set): Likewise.
3845         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3846         * final.c (final_start_function): Likewise.
3847         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3848         (reposition_prologue_and_epilogue_notes): Likewise.
3849         * reorg.c (find_end_label): Likewise.
3850         * toplev.c (process_options): Likewise.
3851
3852 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
3853
3854         * typed-splay-tree.h: New file.
3855
3856 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
3857
3858         PR debug/66691
3859         * lra-int.h (lra_substitute_pseudo): Add a parameter.
3860         (lra_substitute_pseudo_within_insn): Ditto.
3861         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
3862         of constant.
3863         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
3864         to lra_substitute_pseudo.
3865         * lra-lives.c (process_bb_lives): Add an argument to
3866         lra_substitute_pseudo_within_insn call.
3867         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3868         argument to lra_substitute_pseudo and
3869         lra_substitute_pseudo_within_insn calls.
3870         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3871
3872 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3873
3874         * configure: Regenerated.
3875
3876 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         * config.gcc: Support i[34567]86-*-elfiamcu target.
3879         * config/i386/iamcu.h: New.
3880         * config/i386/i386.opt: Add -miamcu.
3881         * doc/invoke.texi: Document -miamcu.
3882         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
3883         off x87/MMX/SSE/AVX codegen for -miamcu.
3884         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3885         __iamcu/__iamcu__ for -miamcu.
3886         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3887         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3888         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3889         * config/i386/i386.c (ix86_option_override_internal): Ignore and
3890         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
3891         MCU by default.  Default long double to 64-bit for Intel MCU.
3892         Turn on -freg-struct-return for Intel MCU.  Issue an error when
3893         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3894         AVX is turned on.
3895         (function_arg_advance_32): Pass value whose size is no larger
3896         than 8 bytes in registers for Intel MCU.
3897         (function_arg_32): Likewise.
3898         (ix86_return_in_memory): Return value whose size is no larger
3899         than 8 bytes in registers for Intel MCU.
3900         (iamcu_alignment): New function.
3901         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3902         true.
3903         (ix86_local_alignment): Don't increase alignment for Intel MCU.
3904         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3905         true.
3906
3907 2015-06-30  Marek Polacek  <polacek@redhat.com>
3908
3909         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
3910         both operands of the resulting expression.
3911
3912         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
3913         the final expression with the operand's type and then convert
3914         it to the type of the expression.
3915
3916 2015-06-30  Richard Biener  <rguenther@suse.de>
3917
3918         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3919         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3920         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3921         * match.pd: ... to patterns here.
3922
3923 2015-06-30  Richard Biener  <rguenther@suse.de>
3924
3925         PR tree-optimization/66704
3926         * tree-vect-data-refs.c (vect_setup_realignment): Use
3927         make_ssa_name for non-SSA name source.
3928
3929 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
3930
3931         PR middle-end/66702
3932         * omp-low.c (simd_clone_adjust): Handle addressable linear
3933         or uniform parameters or non-gimple type uniform parameters.
3934
3935 2015-06-30  Richard Biener  <rguenther@suse.de>
3936
3937         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
3938         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
3939         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
3940         * match.pd: ... here.
3941         Add a few cases of A - B -> A + (-B) when B "easily" negates.
3942         Move (x & y) | x -> x and friends before
3943         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
3944
3945 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3946
3947         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
3948         -mfix-ut699 is not specified.
3949         (leon3_load): Rename into...
3950         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
3951         is specified.
3952
3953 2015-06-30  Marek Polacek  <polacek@redhat.com>
3954
3955         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
3956         * match.pd: ... here.
3957
3958 2015-06-30  Richard Biener  <rguenther@suse.de>
3959
3960         * target-insns.def (canonicalize_funcptr_for_compare): Add.
3961         * fold-const.c (build_range_check): Replace uses of
3962         HAVE_canonicalize_funcptr_for_compare.
3963         (fold_widened_comparison): Likewise.
3964         (fold_sign_changed_comparison): Likewise.
3965         * dojump.c: Include "target.h".
3966         (do_compare_and_jump): Replace uses of
3967         HAVE_canonicalize_funcptr_for_compare and
3968         gen_canonicalize_funcptr_for_compare.
3969         * expr.c (do_store_flag): Likewise.
3970
3971 2015-06-30  Tom de Vries  <tom@codesourcery.com>
3972
3973         PR tree-optimization/66652
3974         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
3975         max_loop_iterations to determine if nit + 1 overflows.
3976
3977 2015-06-30  Richard Biener  <rguenther@suse.de>
3978
3979         * tree-vrp.c (register_edge_assert_for_2): Also register
3980         asserts for dominating conversion results.
3981
3982 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
3983
3984         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
3985         field in struct iv.
3986
3987 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
3988
3989         PR target/66509
3990         * configure.ac: Fix filds and fildq test for 64-bit.
3991         * configure: Regenerated.
3992
3993 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3994
3995         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
3996         (nvptx_reorg): Here.  Keep the non-subreg pieces.
3997
3998 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
3999
4000         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4001         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4002
4003 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
4004
4005         * config/i386/i386.md (*jcc_1): Use %! in asm template.
4006         Set attribute "length_nobnd" instead of "length".
4007         (*jcc_2): Ditto.
4008         (jump): Ditto.
4009         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4010
4011 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
4012
4013         * config/nios2/nios2.c (nios2_delegitimize_address): Make
4014         assert less restrictive.
4015
4016 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4017
4018         PR fortran/66605
4019         * cgraphunit.c (cgraph_node::finalize_function): Do not call
4020         do_warn_unused_parameter.
4021         * function.c (do_warn_unused_parameter): Move from here.
4022         * function.h (do_warn_unused_parameter): Do not declare.
4023
4024 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4025
4026         PR target/65697
4027         * gcc.target/arm/armv-sync-comp-swap.c: New.
4028         * gcc.target/arm/armv-sync-op-acquire.c: New.
4029         * gcc.target/arm/armv-sync-op-full.c: New.
4030         * gcc.target/arm/armv-sync-op-release.c: New.
4031
4032 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4033
4034         PR target/65697
4035         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4036         initial acquire barrier with final barrier.
4037
4038 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4039
4040         PR target/65697
4041         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4042         initial acquire barrier with final barrier.
4043
4044 2015-06-29  Richard Henderson  <rth@redhat.com>
4045
4046         * config/i386/constraints.md (Bf): New constraint.
4047         * config/i386/i386-c.c (ix86_target_macros): Define
4048         __GCC_ASM_FLAG_OUTPUTS__.
4049         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4050         as flags outputs.
4051         * doc/extend.texi (FlagOutputOperands): Document them.
4052
4053 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
4054
4055         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4056         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4057         unspec name.
4058         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4059         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4060         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4061         (aarch64_symbol_context): Ditto.
4062         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4063         and use new pattern name.
4064         (aarch64_expand_mov_immediate): Ditto.
4065         (aarch64_print_operand): Ditto.
4066         (aarch64_classify_tls_symbol): Ditto.
4067
4068 2015-06-29  Marek Polacek  <polacek@redhat.com>
4069             Marc Glisse  <marc.glisse@inria.fr>
4070
4071         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4072         * match.pd: ... pattern here.
4073
4074 2015-06-29  Tom de Vries  <tom@codesourcery.com>
4075
4076         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4077         function structure.
4078
4079 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4080
4081         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4082         feature description, split out the native option, add a link to
4083         the feature documentation, rearrange and slightly rewrite text.
4084         (Aarch64 options, -mcpu): Likewise.
4085         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
4086         +rdma implies Adv. SIMD.
4087
4088 2015-06-29  Marek Polacek  <polacek@redhat.com>
4089
4090         PR c/66322
4091         * function.c (stack_protect_epilogue): Remove a cast to int.
4092         * doc/invoke.texi: Update -Wswitch-bool description.
4093
4094 2015-06-29  Richard Biener  <rguenther@suse.de>
4095
4096         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4097         * fold-const.c (fold_binary_loc): Move &A - &B simplification
4098         via ptr_difference_const ...
4099         * match.pd: ... here.
4100         When matching (X ^ Y) == Y also match with swapped operands.
4101
4102 2015-06-29  Richard Biener  <rguenther@suse.de>
4103
4104         * lto-streamer.h (LTO_major_version): Bump to 5.
4105
4106 2015-06-29  Richard Biener  <rguenther@suse.de>
4107
4108         PR tree-optimization/66677
4109         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4110         STMT_VINFO_VEC_STMT clobbering less strict.
4111
4112 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
4113
4114         PR middle-end/64130
4115         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4116         division, compute max and min when value ranges for dividend and
4117         divisor are available.
4118
4119 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
4120             Sandra Loosemore <sandra@codesourcery.com>
4121
4122         * regrename.h (regrename_do_replace): Change to return bool.
4123         * regrename.c (rename_chains): Check return value of
4124         regname_do_replace.
4125         (regrename_do_replace): Re-validate the modified insns and
4126         return bool status.
4127         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4128         Update to match rename_chains changes.
4129         * config/c6x/c6x.c (try_rename_operands): Assert that
4130         regrename_do_replace returns true.
4131
4132 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
4133
4134         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4135         operand 2 here.  Use copy_addr_to_reg to copy non-index
4136         register operand 2 to a temporary.
4137         (<mode>_stx): Ditto for operand 1.
4138         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4139         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4140         (ix86_store_bounds): Ditto.
4141
4142 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
4143
4144         * print-tree.c (print_node) [TREE_VEC]: Print its length.
4145
4146 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
4147
4148         * gimple.c (gimple_call_set_fndecl): Remove.
4149         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4150         build1_loc directly instead of build_fold_addr_expr_loc.
4151
4152 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
4153
4154         * hash-map.h (hash_map::traverse): Use the definition of the
4155         Key typedef rather than the typedef itself.
4156
4157 2015-06-26  Martin Jambor  <mjambor@suse.cz>
4158
4159         PR debug/66301
4160         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4161         NULL instead of calling dump_enabled_p.
4162
4163 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4164
4165         * config/aarch64/aarch64.opt: (override): New.
4166         * doc/invoke.texi (override): Document.
4167         * config/aarch64/aarch64.c (aarch64_flag_desc): New
4168         (aarch64_fusible_pairs): Likewise.
4169         (aarch64_tuning_flags): Likewise.
4170         (aarch64_tuning_override_function): Likewise.
4171         (aarch64_tuning_override_functions): Likewise.
4172         (aarch64_parse_one_option_token): Likewise.
4173         (aarch64_parse_boolean_options): Likewise.
4174         (aarch64_parse_fuse_string): Likewise.
4175         (aarch64_parse_tune_string): Likewise.
4176         (aarch64_parse_one_override_token): Likewise.
4177         (aarch64_parse_override_string): Likewise.
4178         (aarch64_override_options): Parse the -override string if it
4179         is present.
4180
4181 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4182
4183         * config/aarch64/aarch64-protos.h (tune_params): Remove
4184         const from members.
4185         (aarch64_tune_params): Remove const, change to no longer be
4186         a pointer.
4187         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4188         change to no longer be a pointer, initialize to generic_tunings.
4189         (aarch64_min_divisions_for_recip_mul): Change dereference of
4190         aarch64_tune_params to member access.
4191         (aarch64_reassociation_width): Likewise.
4192         (aarch64_rtx_mult_cost): Likewise.
4193         (aarch64_address_cost): Likewise.
4194         (aarch64_branch_cost): Likewise.
4195         (aarch64_rtx_costs): Likewise.
4196         (aarch64_register_move_cost): Likewise.
4197         (aarch64_memory_move_cost): Likewise.
4198         (aarch64_sched_issue_rate): Likewise.
4199         (aarch64_builtin_vectorization_cost): Likewise.
4200         (aarch64_override_options): Take a copy of the selected tuning
4201         struct in to aarch64_tune_params, rather than just setting
4202         a pointer, change dereferences of aarch64_tune_params to member
4203         accesses.
4204         (aarch64_override_options_after_change): Change dereferences of
4205         aarch64_tune_params to member access.
4206         (aarch64_macro_fusion_p): Likewise.
4207         (aarch_macro_fusion_pair_p): Likewise.
4208         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4209
4210 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4211
4212         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4213         (aarch64_tune_flags): Likewise.
4214         (AARCH64_TUNE_FMA_STEERING): Likewise.
4215         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4216         to AARCH64_FL_USE_FMA_STEERING_PASS.
4217         (cortex-a57.cortex-a53): Likewise.
4218         (cortex-a72): Use cortexa72_tunings.
4219         (cortex-a72.cortex-a53): Likewise.
4220         (exynos-m1): Likewise.
4221         * config/aarch64/aarch64-protos.h (tune_params): Add
4222         a field: extra_tuning_flags.
4223         * config/aarch64/aarch64-tuning-flags.def: New.
4224         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4225         (aarch64_extra_tuning_flags): Likewise.
4226         (aarch64_tune_params): Declare here.
4227         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4228         (cortexa53_tunings): Likewise.
4229         (cortexa57_tunings): Likewise.
4230         (thunderx_tunings): Likewise.
4231         (xgene1_tunings): Likewise.
4232         (cortexa72_tunings): New.
4233         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4234          (gate): Check against aarch64_tune_params.
4235         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4236         aarch64-protos.h.
4237
4238 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4239
4240         * config/aarch64/aarch64-fusion-pairs.def: New.
4241         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4242         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4243         aarch64_fusion_pairs.
4244         (AARCH64_FUSE_MOV_MOVK): Likewise.
4245         (AARCH64_FUSE_ADRP_ADD): Likewise.
4246         (AARCH64_FUSE_MOVK_MOVK): Likewise.
4247         (AARCH64_FUSE_ADRP_LDR): Likewise.
4248         (AARCH64_FUSE_CMP_BRANCH): Likewise.
4249
4250 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4251
4252         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4253         SYMBOL_SMALL_GOT_28K.
4254         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4255         relocation modifiers.
4256         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4257         (ldr_got_small_28k_<mode>): New.
4258         (ldr_got_small_28k_sidi): New.
4259         * config/aarch64/iterators.md (got_modifier): New mode iterator.
4260         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4261         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4262         SYMBOL_SMALL_GOT_28K.
4263         (aarch64_rtx_costs): Add costs for new instruction sequences.
4264         (initialize_aarch64_code_model): Initialize new model.
4265         (aarch64_classify_symbol): Recognize new model and new symbol classification.
4266         (aarch64_asm_preferred_eh_data_format): Support new model.
4267         (aarch64_load_symref_appropriately): Generate new instruction
4268         sequences for -fpic.
4269         (TARGET_USE_PSEUDO_PIC_REG): New definition.
4270         (aarch64_use_pseudo_pic_reg): New function.
4271
4272 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4273
4274         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4275         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4276         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4277         (aarch64_expand_mov_immediate): Ditto.
4278         (aarch64_print_operand): Ditto.
4279         (aarch64_classify_symbol): Ditto.
4280
4281 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
4282
4283         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4284
4285 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
4286
4287         PR bootstrap/66638
4288         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4289         assertion failed.  Remove assertion itself.
4290
4291 2015-06-26  Richard Biener  <rguenther@suse.de>
4292
4293         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4294         and -A CMP CST -> A CMP -CST which is redundant with a pattern
4295         in match.pd.
4296         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4297         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4298         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4299         * match.pd: ... patterns here.
4300
4301 2015-06-26  Marek Polacek  <polacek@redhat.com>
4302
4303         * match.pd ((x | y) & ~(x & y) -> x ^ y,
4304         (x | y) & (~x ^ y) -> x & y): New patterns.
4305
4306 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
4307
4308         * rtl.h (emit): Add an optional boolean parameter to control
4309         whether barriers are emitted.
4310         * emit-rtl.c (emit): Likewise.
4311         * gensupport.c (get_emit_function): Return null rather than "emit".
4312         * genemit.c (gen_emit_seq): Handle the null return value.
4313         Don't emit barriers after the final instruction in the sequence.
4314         * gentarget-def.c (main): Don't emit barriers after the instruction.
4315
4316 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4317
4318         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4319         TARGET_UNIFIED_ASM.
4320
4321 2015-06-26  Richard Biener  <rguenther@suse.de>
4322
4323         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4324
4325 2015-06-26  Richard Biener  <rguenther@suse.de>
4326
4327         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4328         irrespective on whether the inner operation has a single use
4329         of both off are constant.
4330
4331 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
4332             Segher Boessenkool  <segher@kernel.crashing.org>
4333
4334         PR target/66412
4335         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4336         before doing PUT_MODE or PUT_CODE on operands to avoid
4337         in-place RTX modification.
4338
4339 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4340
4341         * gentarget-def.c (def_target_insn): Cast return of strtol to
4342         unsigned int.
4343
4344 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4345
4346         * gimple.h (gimple_call_set_fn): Move inline function.
4347         * gimple.c (gimple_call_set_fn): Relocate here.
4348
4349 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
4350
4351         PR target/65979
4352         PR target/66611
4353         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4354         the replacement insn will work.
4355
4356 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4357
4358         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4359         by default.
4360
4361 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4362
4363         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4364         * cgraph.h: Include ipa-ref.h and plugin-api.h.
4365         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4366         (symtab_node::address_can_be_compared_p): Move function.
4367         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4368         definition here.
4369         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4370         * auto-profile.c: Likewise.
4371         * bb-reorder.c: Likewise.
4372         * builtins.c: Likewise.
4373         * calls.c: Likewise.
4374         * cfgexpand.c: Likewise.
4375         * cgraphbuild.c: Likewise.
4376         * cgraphclones.c: Likewise.
4377         * cgraphunit.c: Likewise.
4378         * combine.c: Likewise.
4379         * coverage.c: Likewise.
4380         * data-streamer-in.c: Likewise.
4381         * data-streamer-out.c: Likewise.
4382         * data-streamer.c: Likewise.
4383         * dbxout.c: Likewise.
4384         * dwarf2out.c: Likewise.
4385         * except.c: Likewise.
4386         * expr.c: Likewise.
4387         * final.c: Likewise.
4388         * fold-const.c: Likewise.
4389         * ggc-page.c: Likewise.
4390         * gimple-fold.c: Likewise.
4391         * gimple-iterator.c: Likewise.
4392         * gimple-pretty-print.c: Likewise.
4393         * gimple-streamer-in.c: Likewise.
4394         * gimple-streamer-out.c: Likewise.
4395         * gimple.c: Likewise.
4396         * gimplify.c: Likewise.
4397         * ipa-chkp.c: Likewise.
4398         * ipa-comdats.c: Likewise.
4399         * ipa-cp.c: Likewise.
4400         * ipa-devirt.c: Likewise.
4401         * ipa-icf-gimple.c: Likewise.
4402         * ipa-icf.c: Likewise.
4403         * ipa-inline-analysis.c: Likewise.
4404         * ipa-inline-transform.c: Likewise.
4405         * ipa-inline.c: Likewise.
4406         * ipa-polymorphic-call.c: Likewise.
4407         * ipa-profile.c: Likewise.
4408         * ipa-prop.c: Likewise.
4409         * ipa-pure-const.c: Likewise.
4410         * ipa-ref.c: Likewise.
4411         * ipa-reference.c: Likewise.
4412         * ipa-split.c: Likewise.
4413         * ipa-utils.c: Likewise.
4414         * ipa-visibility.c: Likewise.
4415         * ipa.c: Likewise.
4416         * langhooks.c: Likewise.
4417         * lto-cgraph.c: Likewise.
4418         * lto-compress.c: Likewise.
4419         * lto-opts.c: Likewise.
4420         * lto-section-in.c: Likewise.
4421         * lto-section-out.c: Likewise.
4422         * lto-streamer-in.c: Likewise.
4423         * lto-streamer-out.c: Likewise.
4424         * lto-streamer.c: Likewise.
4425         * omp-low.c: Likewise.
4426         * opts-global.c: Likewise.
4427         * passes.c: Likewise.
4428         * predict.c: Likewise.
4429         * print-tree.c: Likewise.
4430         * profile.c: Likewise.
4431         * ree.c: Likewise.
4432         * sanopt.c: Likewise.
4433         * stor-layout.c: Likewise.
4434         * symtab.c: Likewise.
4435         * toplev.c: Likewise.
4436         * trans-mem.c: Likewise.
4437         * tree-cfg.c: Likewise.
4438         * tree-chkp.c: Likewise.
4439         * tree-eh.c: Likewise.
4440         * tree-emutls.c: Likewise.
4441         * tree-inline.c: Likewise.
4442         * tree-nested.c: Likewise.
4443         * tree-parloops.c: Likewise.
4444         * tree-pretty-print.c: Likewise.
4445         * tree-profile.c: Likewise.
4446         * tree-sra.c: Likewise.
4447         * tree-ssa-alias.c: Likewise.
4448         * tree-ssa-live.c: Likewise.
4449         * tree-ssa-loop-ivcanon.c: Likewise.
4450         * tree-ssa-loop-ivopts.c: Likewise.
4451         * tree-ssa-pre.c: Likewise.
4452         * tree-ssa-sccvn.c: Likewise.
4453         * tree-ssa-strlen.c: Likewise.
4454         * tree-ssa-structalias.c: Likewise.
4455         * tree-streamer-in.c: Likewise.
4456         * tree-streamer-out.c: Likewise.
4457         * tree-streamer.c: Likewise.
4458         * tree-switch-conversion.c: Likewise.
4459         * tree-tailcall.c: Likewise.
4460         * tree-vect-data-refs.c: Likewise.
4461         * tree-vect-stmts.c: Likewise.
4462         * tree-vectorizer.c: Likewise.
4463         * tree.c: Likewise.
4464         * tsan.c: Likewise.
4465         * ubsan.c: Likewise.
4466         * value-prof.c: Likewise.
4467         * varasm.c: Likewise.
4468         * varpool.c: Likewise.
4469         * config/arm/arm.c: Likewise.
4470         * config/bfin/bfin.c: Likewise.
4471         * config/c6x/c6x.c: Likewise.
4472         * config/cris/cris.c: Likewise.
4473         * config/darwin-c.c: Likewise.
4474         * config/darwin.c: Likewise.
4475         * config/i386/i386.c: Likewise.
4476         * config/i386/winnt.c: Likewise.
4477         * config/microblaze/microblaze.c: Likewise.
4478         * config/mips/mips.c: Likewise.
4479         * config/rs6000/rs6000.c: Likewise.
4480         * config/rx/rx.c: Likewise.
4481         * config/s390/s390.c: Likewise.
4482         * config/tilegx/mul-tables.c: Likewise.
4483
4484 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4485
4486         * config/aarch64/aarch64.c, config/alpha/alpha.c,
4487         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4488         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4489         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4490         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4491         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4492         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4493         config/microblaze/microblaze.c, config/mips/mips.c,
4494         config/mmix/mmix.c, config/mn10300/mn10300.c,
4495         config/moxie/moxie.c, config/msp430/msp430.c,
4496         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4497         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4498         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4499         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4500         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4501         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4502         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4503         target-def.h include.
4504         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
4505
4506 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4507
4508         * Makefile.in (TARGET_DEF): Add target-insns.def.
4509         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4510         (build/gentarget-def.o): New rule.
4511         (genprogrtl): Add target-def.
4512         * target-insns.def, gentarget-def.c: New files.
4513         * target.def: Add targetm.have_* and targetm.gen_* hooks,
4514         based on the contents of target-insns.def.
4515         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4516         (HAVE_return, gen_return): Delete.
4517         * target-def.h: Include insn-target-def.h.
4518         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4519         instead of direct calls.  Rely on them to do the appropriate assertions.
4520         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
4521         (convert_jumps_to_returns): Use targetm interface instead of
4522         direct calls.
4523         (thread_prologue_and_epilogue_insns): Likewise.
4524         * reorg.c (find_end_label, dbr_schedule): Likewise.
4525         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4526         * shrink-wrap.c (convert_to_simple_return): Likewise.
4527         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4528
4529 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4530
4531         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4532         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4533         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4534         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4535         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4536         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4537         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4538         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4539         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4540         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4541         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4542         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4543         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4544         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4545         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4546         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4547         includes to end.
4548
4549 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4550
4551         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4552         (unbounded_int_hashmap_traits::key_type): Likewise.
4553         * hash-map.h (hash_map): Get the key type from the traits.
4554         * hash-traits.h (default_hash_traits): By default, inherit from the
4555         template parameter.
4556         * alias.c (alias_set_traits): Delete.
4557         (alias_set_entry_d::children): Use alias_set_hash as the first
4558         template parameter.
4559         (record_alias_subset): Update accordingly.
4560         * except.c (tree_hash_traits): Delete.
4561         (type_to_runtime_map): Use tree_hash as the first template parameter.
4562         (init_eh): Update accordingly.
4563         * genmatch.c (capture_id_map_hasher): Delete.
4564         (cid_map_t): Use nofree_string_hash as first template parameter.
4565         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4566         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4567         Use symbol_compare_hash as the first template parameter in
4568         subdivide_hash_map.
4569         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4570         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4571         template parameter.
4572         * passes.c (pass_registry_hasher): Delete.
4573         (name_to_pass_map): Use nofree_string_hash as the first template
4574         parameter.
4575         (register_pass_name): Update accordingly.
4576         * sanopt.c (sanopt_tree_map_traits): Delete.
4577         (sanopt_tree_triplet_map_traits): Delete.
4578         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4579         template parameter.
4580         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4581         the first template parameter.
4582         * sese.c (rename_map_hasher): Delete.
4583         (rename_map_type): Use tree_ssa_name_hash as the first template
4584         parameter.
4585         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4586         (function_summary::m_map): Use map_hash as the first template
4587         parameter.
4588         (function_summary::release): Update accordingly.
4589         * tree-if-conv.c (phi_args_hash_traits): Delete.
4590         (predicate_scalar_phi): Use tree_operand_hash as the first template
4591         parameter to phi_arg_map.
4592         * tree-inline.h (dependence_hasher): Delete.
4593         (copy_body_data::dependence_map): Use dependence_hash as the first
4594         template parameter.
4595         * tree-inline.c (remap_dependence_clique): Update accordingly.
4596         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4597         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4598         parameter.
4599         (addr_stridxptr): Update accordingly.
4600         * value-prof.c (profile_id_traits): Delete.
4601         (cgraph_node_map): Use profile_id_hash as the first template
4602         parameter.
4603         (init_node_map): Update accordingly.
4604         * config/alpha/alpha.c (string_traits): Delete.
4605         (machine_function::links): Use nofree_string_hash as the first
4606         template parameter.
4607         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4608         * config/m32c/m32c.c (pragma_traits): Delete.
4609         (pragma_htab): Use nofree_string_hash as the first template parameter.
4610         (m32c_note_pragma_address): Update accordingly.
4611         * config/mep/mep.c (pragma_traits): Delete.
4612         (pragma_htab): Use nofree_string_hash as the first template parameter.
4613         (mep_note_pragma_flag): Update accordingly.
4614         * config/mips/mips.c (mips16_flip_traits): Delete.
4615         (mflip_mips16_htab): Use nofree_string_hash as the first template
4616         parameter.
4617         (mflip_mips16_use_mips16_p): Update accordingly.
4618         (local_alias_traits): Delete.
4619         (mips16_local_aliases): Use nofree_string_hash as the first template
4620         parameter.
4621         (mips16_local_alias): Update accordingly.
4622
4623 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4624
4625         * hash-map-traits.h (default_hashmap_traits): Delete.
4626
4627 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4628
4629         * hash-map-traits.h (unbounded_hashmap_traits): New class.
4630         (unbounded_int_hashmap_traits): Likewise.
4631         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4632
4633 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4634
4635         * ipa-icf.h (symbol_compare_hash): New class.
4636         (symbol_compare_hashmap_traits): Use it.
4637         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4638         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4639         (mem_alloc_description::reverse_mem_map_t): Remove redundant
4640         default_hashmap_traits.
4641         * sanopt.c (sanopt_tree_triplet_hash): New class.
4642         (sanopt_tree_triplet_map_traits): Use it.
4643
4644 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4645
4646         * gengtype-parse.c (require_template_declaration): Allow '+' in
4647         template parameters.  Consolidate cases.
4648         * hash-traits.h (int_hash): New class.
4649         * alias.c (alias_set_hash): New structure.
4650         (alias_set_traits): Use it.
4651         * symbol-summary.h (function_summary::map_hash): New class.
4652         (function_summary::summary_hashmap_traits): Use it.
4653         * tree-inline.h (dependence_hash): New class.
4654         (dependence_hasher): Use it.
4655         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4656         * value-prof.c (profile_id_hash): New class.
4657         (profile_id_traits): Use it.
4658
4659 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4660
4661         * config/mips/mips.c (mips16_flip_traits): Use it.
4662         (local_alias_traits, mips16_local_aliases): Convert from a map of
4663         rtxes to a map of symbol names.
4664         (mips16_local_alias): Update accordingly.
4665
4666 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4667
4668         * hash-traits.h (string_hash, nofree_string_hash): New classes.
4669         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4670         * passes.c (pass_registry_hasher): Likewise.
4671         * config/alpha/alpha.c (string_traits): Likewise.
4672         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4673         * config/m32c/m32c.c (pragma_traits): Likewise.
4674         * config/mep/mep.c (pragma_traits): Likewise.
4675
4676 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4677
4678         * tree-hash-traits.h (tree_hash): New class.
4679         * except.c: Include tree-hash-traits.h.
4680         (tree_hash_traits): Use tree_hash.
4681
4682 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4683
4684         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4685         * sese.c: Include tree-hash-traits.h.
4686         (rename_map_hasher): Use tree_ssa_name_hasher.
4687
4688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4689
4690         * tree-hash-traits.h (tree_decl_hash): New class.
4691         * tree-ssa-strlen.c: Include tree-hash-traits.h.
4692         (stridxlist_hash_traits): Use tree_decl_hash.
4693
4694 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4695
4696         * tree-hash-traits.h: New file.
4697         (tree_operand_hash): New class.
4698         * sanopt.c: Include tree-hash-traits.h.
4699         (sanopt_tree_map_traits): Use tree_operand_hash.
4700         * tree-if-conv.c: Include tree-hash-traits.h.
4701         (phi_args_hash_traits): Use tree_operand_hash.
4702         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4703         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4704
4705 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4706
4707         * hash-map-traits.h: Include hash-traits.h.
4708         (simple_hashmap_traits): New class.
4709         * mem-stats.h (hash_map): Change the default traits to
4710         simple_hashmap_traits<default_hash_traits<Key> >.
4711
4712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4713
4714         * hash-table.h: Update comments.
4715
4716 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4717
4718         * hash-traits.h (default_hash_traits): New structure.
4719         * hash-set.h (default_hashset_traits): Delete.
4720         (hash_set): Use default_hash_traits<Key> instead of
4721         default_hashset_traits.  Delete hash_entry type and use Key directly.
4722         * ipa-devirt.c (pair_traits): Delete.
4723         (default_hash_traits <type_pair>): Override.
4724         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4725         (odr_types_equivalent_p, add_type_duplicate): Likewise.
4726
4727 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4728
4729         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4730
4731 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4732
4733         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4734         (has_is_empty, is_empty_helper): Delete.
4735         (has_mark_deleted, mark_deleted_helper): Delete.
4736         (has_mark_empty, mark_empty_helper): Delete.
4737         (hash_table::is_deleted): Call the Descriptor unconditionally.
4738         (hash_table::is_empty): Likewise.
4739         (hash_table::mark_deleted): Likewise.
4740         (hash_table::mark_empty): Likewise.
4741
4742 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4743
4744         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
4745         redundant typedefs and members.
4746         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
4747         redundant typedefs.
4748         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4749         * ipa-devirt.c (odr_name_hasher): Likewise.
4750         (polymorphic_call_target_hasher): Likewise.
4751         * ira-costs.c (cost_classes_hasher): Likewise.
4752         * statistics.c (stats_counter_hasher): Likewise.
4753         * trans-mem.c (log_entry_hasher): Likewise.
4754         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4755         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4756         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4757         * var-tracking.c (variable_hasher): Likewise.
4758         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4759         Remove redundant typedefs and members.
4760
4761 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4762
4763         * hash-traits.h (ggc_cache_hasher): Rename to...
4764         (ggc_cache_remove): ...this and remove typedefs.
4765         (ggc_cache_ptr_hash): New class.
4766         * hash-table.h: Update commentary.
4767         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4768         rather than ggc_cache_hasher.
4769         (const_wide_int_hasher, reg_attr_hasher): Likewise.
4770         (const_double_hasher, const_fixed_hasher): Likewise.
4771         * function.c (insn_cache_hasher): Likewise.
4772         * trans-mem.c (tm_wrapper_hasher): Likewise.
4773         * tree.h (tree_decl_map_cache_hasher): Likewise.
4774         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4775         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4776         * ubsan.c (tree_type_map_cache_hasher): Likewise.
4777         * varasm.c (tm_clone_hasher): Likewise.
4778         * config/i386/i386.c (dllimport_hasher): Likewise.
4779         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4780         (tree_hasher): Likewise.
4781
4782 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4783
4784         * hash-traits.h (ggc_hasher): Rename to...
4785         (ggc_remover): ...this and remove typedefs.
4786         (ggc_cache_hasher): Update accordingly.  Add typedefs.
4787         (ggc_ptr_hash): New class.
4788         * hash-table.h: Update comment.
4789         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4790         ggc_hasher.
4791         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4792         (tree_descriptor_hasher): Likewise.
4793         * cgraph.c (function_version_hasher): Likewise.
4794         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4795         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4796         (dw_loc_list_hasher, addr_hasher): Likewise.
4797         * function.h (used_type_hasher): Likewise.
4798         * function.c (temp_address_hasher): Likewise.
4799         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4800         * libfuncs.h (libfunc_hasher): Likewise.
4801         * lto-streamer.h (decl_state_hasher): Likewise.
4802         * optabs.c (libfunc_decl_hasher): Likewise.
4803         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4804         * varasm.c (section_hasher, object_block_hasher): Likewise.
4805         (const_rtx_desc_hasher): Likewise.
4806         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4807         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4808
4809 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4810
4811         * hash-traits.h (free_ptr_hash): New class.
4812         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4813         rather than typed_free_remove.  Remove redudant typedefs.
4814         (external_ref_hasher): Likewise.
4815         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4816         (ehspec_hasher): Likewise.
4817         * ggc-common.c (saving_hasher): Likewise.
4818         * gimplify.c (gimplify_hasher): Likewise.
4819         * haifa-sched.c (delay_i2_hasher): Likewise.
4820         * loop-invariant.c (invariant_expr_hasher): Likewise.
4821         * loop-iv.c (biv_entry_hasher): Likewise.
4822         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4823         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4824         * tree-cfg.c (locus_discrim_hasher): Likewise.
4825         * tree-eh.c (finally_tree_hasher): Likewise.
4826         * tree-into-ssa.c (var_info_hasher): Likewise.
4827         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4828         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4829         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4830         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4831         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4832         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4833         (shared_bitmap_hasher): Likewise.
4834         * tree-ssa-threadupdate.c (redirection_data): Likewise.
4835         * tree-vectorizer.h (peel_info_hasher): Likewise.
4836         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4837         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4838
4839 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4840
4841         * hash-table.h: Update comments.
4842         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4843         (nofree_ptr_hash): New class.
4844         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4845         than typed_noop_remove.  Remove redudant typedefs.
4846         * attribs.c (attribute_hasher): Likewise.
4847         * cfg.c (bb_copy_hasher): Likewise.
4848         * cselib.c (cselib_hasher): Likewise.
4849         * dse.c (invariant_group_base_hasher): Likewise.
4850         * dwarf2cfi.c (trace_info_hasher): Likewise.
4851         * dwarf2out.c (macinfo_entry_hasher): Likewise.
4852         (comdat_type_hasher, loc_list_hasher): Likewise.
4853         * gcse.c (pre_ldst_expr_hasher): Likewise.
4854         * genmatch.c (id_base): Likewise.
4855         * genrecog.c (test_pattern_hasher): Likewise.
4856         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4857         * haifa-sched.c (delay_i1_hasher): Likewise.
4858         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4859         * ipa-icf.h (congruence_class_group_hash): Likewise.
4860         * ipa-profile.c (histogram_hash): Likewise.
4861         * ira-color.c (allocno_hard_regs_hasher): Likewise.
4862         * lto-streamer.h (string_slot_hasher): Likewise.
4863         * lto-streamer.c (tree_entry_hasher): Likewise.
4864         * plugin.c (event_hasher): Likewise.
4865         * postreload-gcse.c (expr_hasher): Likewise.
4866         * store-motion.c (st_expr_hasher): Likewise.
4867         * tree-sra.c (uid_decl_hasher): Likewise.
4868         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4869         (ssa_name_var_hash): Likewise.
4870         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4871         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4872         * tree-ssa-pre.c (pre_expr_d): Likewise.
4873         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4874         * vtable-verify.h (registration_hasher): Likewise.
4875         * vtable-verify.c (vtbl_map_hasher): Likewise.
4876         * config/arm/arm.c (libcall_hasher): Likewise.
4877         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4878         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4879         * config/sol2.c (comdat_entry_hasher): Likewise.
4880         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4881         (print_fold_checksum, fold_checksum_tree): Likewise.
4882         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4883         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4884         (fold_build_call_array_loc): Likewise.
4885         * tree-ssa-ccp.c (gimple_htab): Likewise.
4886         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4887         rather than pointer_type.
4888
4889 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4890
4891         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4892         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4893
4894 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4895
4896         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4897         (ggc_hasher::ggc_mx): Likewise.
4898         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
4899         that duplicate ggc_hasher ones.
4900
4901 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4902
4903         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4904         (gt_cleare_cache): Check here for deleted and empty entries.
4905         Replace handle_cache_entry with a call to keep_cache_entry.
4906         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4907         (ggc_cache_hasher::keep_cache_entry): New function.
4908         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4909         (tm_wrapper_hasher::keep_cache_entry): New function.
4910         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4911         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4912         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4913         (type_cache_hasher::keep_cache_entry): New function.
4914         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4915         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4916         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4917         (tree_type_map_cache_hasher::keep_cache_entry): New function.
4918         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4919         (tm_clone_hasher::keep_cache_entry): New function.
4920         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4921         (dllimport_hasher::keep_cache_entry): New function.
4922
4923 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4924
4925         * hash-table.h: Include hash-traits.h.
4926         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4927         (ggc_cache_hasher): Move to...
4928         * hash-traits.h: ...this new file.
4929
4930 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4931
4932         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4933         struct cl_optimization.
4934         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4935         * tree.c (make_node_stat): Allocate cl_optimization struct.
4936         (copy_node_stat): Allocate and copy cl_optimization struct.
4937
4938 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4939
4940         * function.h (struct incoming_args): Move struct.
4941         (pass_by_reference, reference_callee_copied): Remove prototypes.
4942         * emit-rtl.h (struct incoming_args): Relocate struct here.
4943         * calls.h (pass_by_reference, reference_callee_copied): Relocate
4944         prototypes here.
4945         * function.c (pass_by_reference, reference_callee_copied): Move.
4946         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
4947         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
4948         * ipa-chkp.c: Include calls.h.
4949
4950 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
4951
4952         * alias.h (alias_set_type): Move typedef.
4953         * coretypes.h (alias_set_type): Relocate typedef here.
4954         * rtl.h: Don't include alias.h.
4955
4956 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4957
4958         * cgraph.h (cgraph_rtl_info): Move to rtl.h
4959         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
4960         and instance.
4961         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
4962         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
4963         doesn't exist.
4964         * calls.c: Include hard-reg-set.h before rtl.h.
4965         * ira.c: Likewise.
4966
4967 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
4968             Vladimir Makarov  <vmakarov@redhat.com>
4969
4970         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
4971         Add assert.
4972
4973 2015-06-25  Richard Biener  <rguenther@suse.de>
4974
4975         * fold-const.c (fold_binary_loc): Move simplification of
4976         (X <<>> C1) & C2 ...
4977         * match.pd: ... here.
4978
4979 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
4980
4981         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
4982
4983 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4984
4985         * match.pd: Add patterns for vec_conds between 1 and 0.
4986
4987 2015-06-25  Richard Biener  <rguenther@suse.de>
4988
4989         * tree-vect-stmts.c (vectorizable_conversion): Do not set
4990         STMT_VINFO_VEC_STMT for SLP.
4991         (vectorizable_store): Likewise.
4992         (vectorizable_load): Likewise.
4993         (vect_transform_stmt): Catch SLP vectorization clobbering
4994         STMT_VINFO_VEC_STMT.
4995
4996 2015-06-25  Richard Biener  <rguenther@suse.de>
4997
4998         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
4999         dumping.
5000         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5001         cleanup resulting dead code and parameters.
5002         (vect_transform_slp_perm_load): Adjust.
5003
5004 2015-06-25  Nick Clifton  <nickc@redhat.com>
5005
5006         * config/bfin/bfin.c (bfin_expand_prologue): Set
5007         current_function_static_stack_size if flag_stack_usage_info is set.
5008         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5009         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5010         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5011         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5012
5013 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5014
5015         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5016         comment that the generated IV is unsigned.
5017
5018 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5019
5020         PR target/29693
5021         * config/arm/arm.c (arm_dbx_register_number): Return
5022         DWARF_FRAME_REGISTERS by default.
5023
5024 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5025
5026         * dominance.c (calculate_dominance_info): Fix verify_dominators call
5027         argument.  Call verify_dominator when reusing dominator info.
5028
5029 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5030
5031         PR target/66563
5032         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5033         an additional element of the unspec vector.  Modify indices
5034         of operands.
5035         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5036         * config/sh/sh.c (prepare_move_operands): Pass incremented
5037         const_int to gen_GOTaddr2picreg.
5038         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5039
5040 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5041
5042         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5043         Condition on TARGET_FLOAT.
5044
5045 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5046
5047         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5048         and (no)crypto.
5049
5050 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5051
5052         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5053
5054         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5055         aarch64_err_no_fpadvsimd.
5056
5057         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5058         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5059         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5060         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5061         Turn error into assert, test TARGET_FLOAT.
5062         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5063         TARGET_FLOAT.
5064
5065 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
5066
5067         PR debug/66482
5068         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5069
5070 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
5071
5072         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5073
5074 2015-06-24 Renlin Li <renlin.li@arm.com>
5075
5076         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5077         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5078
5079 2015-06-24  Richard Biener  <rguenther@suse.de>
5080
5081         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5082         (main): Likewise.
5083         (lower_opt_convert): Support lowering of conditional view_convert.
5084         (parser::parse_operation): Likewise.
5085         (parser::parse_for): Likewise.
5086
5087 2015-06-24  Renlin Li  <renlin.li@arm.com>
5088
5089         * varasm.c (emit_local): Use unsigned int for align variable.
5090
5091 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5092
5093         PR target/63408
5094         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5095         for negative numbers.
5096
5097 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5098
5099         PR rtl-optimization/66306
5100         * reload.c (find_reloads): Swap the match_dup info for
5101         commutative operands.
5102
5103 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5104
5105         * config/s390/vx-builtins.md
5106         ("vec_scatter_element<mode>_<non_vec_int>")
5107         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5108         attribute with bhfgq.
5109
5110 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5111
5112         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5113
5114 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5115
5116         * config/s390/s390-builtin-types.def: Add flag to indicate the
5117         options under which the function type is needed.
5118         * config/s390/s390-builtins.def: Add flag to indicate the options
5119         under which the builtin is enabled.
5120         * config/s390/s390-builtins.h: Add flags parameter to macro
5121         definitions.
5122         (bflags_for_builtin): New function.
5123         (flags_for_builtin): Renamed to ...
5124         (opflags_for_builtin): ... this.
5125         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5126         flags_for_builtin to bflags_for_builtin and
5127         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5128         * config/s390/s390.c: Add initialization of bflags_builtin and
5129         opflags_builtin arrays.
5130         Remove code for flags_builtin.
5131         (s390_init_builtins): Only create builtin function types if one of
5132         their flags is active.
5133         Only create builtins if all of their flags are active.
5134         (s390_expand_builtin): Rename flags_for_builtin to
5135         opflags_for_builtin.
5136
5137 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5138
5139         * config/s390/vecintrin.h: Remove internal builtins.
5140
5141 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5142
5143         * config/s390/s390.c (s390_secondary_reload): Fix check for
5144         GENERAL_REGS register class.
5145
5146 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5147
5148         * config/s390/s390.c (s390_support_vector_misalignment): Call
5149         default implementation for !TARGET_VX.
5150
5151 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5152
5153         * config/s390/s390.c (s390_legitimate_constant_p): Add
5154         TARGET_VX check.
5155
5156 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5157
5158         * config/s390/s390.c (s390_vector_abi): New variable definition.
5159         (s390_check_type_for_vector_abi): New function.
5160         (TARGET_ASM_FILE_END): New macro definition.
5161         (s390_asm_file_end): New function.
5162         (s390_function_arg): Call s390_check_type_for_vector_abi.
5163         (s390_gimplify_va_arg): Likewise.
5164         * configure: Regenerate.
5165         * configure.ac: Check for .gnu_attribute Binutils feature.
5166
5167 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
5168
5169         PR target/65803
5170         * config/bfin/bfin.c (hwloop_optimize): Initialize
5171         JUMP_LABEL for newly created jump.
5172
5173 2015-06-23  Tristan Gingold  <gingold@adacore.com>
5174
5175         * collect-utils.c (collect_wait): Unlink the response file here
5176         instead of...
5177         (do_wait): ...here.
5178         (utils_cleanup): ...and here.
5179
5180 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
5181
5182         * df-scan.c: Don't include target-def.h.
5183         * targhooks.c: Likewise.
5184         * config/arm/arm-c.c: Likewise.
5185         * config/i386/i386-c.c: Likewise.
5186         * config/nds32/nds32-cost.c: Likewise.
5187         * config/nds32/nds32-fp-as-gp.c: Likewise.
5188         * config/nds32/nds32-intrinsic.c: Likewise.
5189         * config/nds32/nds32-isr.c: Likewise.
5190         * config/nds32/nds32-md-auxiliary.c: Likewise.
5191         * config/nds32/nds32-memory-manipulation.c: Likewise.
5192         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5193         * config/nds32/nds32-predicates.c: Likewise.
5194
5195 2015-06-23  Richard Biener  <rguenther@suse.de>
5196
5197         PR tree-optimization/66636
5198         * tree-vect-stmts.c (vectorizable_store): Properly compute the
5199         def type for further defs for strided stores.
5200
5201 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
5202
5203         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5204         conditional selects.
5205         (setcc_int<mode>, setcc_float<mode>): Reformat.
5206
5207 2015-06-23  Marek Polacek  <polacek@redhat.com>
5208
5209         * match.pd ((x + y) - (x | y) -> x & y,
5210         (x + y) - (x & y) -> x | y): New patterns.
5211
5212 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
5213
5214         PR 65711
5215         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5216         '-dynamic-linker' within %{!shared: ...}.
5217
5218 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
5219
5220         PR target/66560
5221         * config/i386/predicates.md (addsub_vm_operator): New predicate.
5222         (addsub_vs_operator): Ditto.
5223         (addsub_vs_parallel): Ditto.
5224         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5225         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5226         Put minus RTX before plus and adjust vec_merge selector.
5227         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5228         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5229         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5230         (addsub vec_merge splitters): New combiner splitters.
5231         (addsub vec_select/vec_concat splitters): Ditto.
5232
5233 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
5234
5235         PR tree-optimization/66449
5236         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5237         POINTER_PLUS_EXPR for pointers.
5238
5239 2015-06-23  Alan Modra  <amodra@gmail.com>
5240
5241         * rtlanal.c (commutative_operand_precedence): Correct comments.
5242         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5243         declaration.  Return an int.  Distinguish REG,REG return from
5244         others.
5245         (struct simplify_plus_minus_op_data): Make local to function.
5246         (simplify_plus_minus): Don't set canonicalized if merely sorting
5247         registers.  Avoid packing ops if nothing changes.  White space fixes.
5248
5249 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
5250
5251         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5252         -fdump-ada-spec is passed but not if -fsyntax-only is.
5253
5254 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
5255
5256         PR bootstrap/63740
5257         * lra-lives.c (process_bb_lives): Check insn copying the same
5258         reload pseudo and don't create a copy for it.
5259
5260 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5261
5262         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5263         for cond_stmt.
5264
5265 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5266
5267         * builtins.def (DEF_GOMP_BUILTIN): Test
5268         'flag_tree_parallelize_loops > 1' instead of
5269         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
5270
5271 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5272
5273         * dominance.c (calculate_dominance_info): Verify dominators if
5274         early-out.
5275
5276 2015-06-22  Marek Polacek  <polacek@redhat.com>
5277
5278         * match.pd ((x ^ y) ^ (x | y) -> x & y,
5279         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5280         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5281         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5282
5283 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
5284
5285         PR target/65871
5286         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5287         cost of embedded comparison.
5288
5289 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5290
5291         PR target/65914
5292         * config/rs6000/predicates.md (altivec_register_operand): Permit
5293         virtual stack registers.
5294         (vsx_register_operand): Likewise.
5295         (vfloat_operand): Likewise.
5296         (vint_operand): Likewise.
5297         (vlogical_operand): Likewise.
5298
5299 2015-06-22  Richard Biener  <rguenther@suse.de>
5300
5301         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5302         and single_scalar_iteration_cost members.
5303         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5304         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5305         (vect_get_single_scalar_iteration_cost): Remove.
5306         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5307         Use LOOP_VINFO_SCALAR_ITERATION_COST.
5308         * tree-vect-loop.c (destroy_loop_vec_info): Free
5309         scalar_cost_vec.
5310         (vect_get_single_scalar_iteration_cost): Compute result into
5311         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5312         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
5313         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5314         (vect_estimate_min_profitable_iters): Use them.
5315
5316 2015-06-22  Christian Bruel  <christian.bruel@st.com>
5317
5318         PR target/52144
5319         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5320         (TARGET_INSERT_ATTRIBUTES): Define.
5321         (thumb_flipper): New var.
5322         * config/arm/arm.opt (-mflip-thumb): New switch.
5323
5324 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
5325             Martin Liska  <mliska@suse.cz>
5326
5327         PR ipa/65908
5328         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5329         construction of arg_types.
5330         (sem_function::sem_function): Likewise.
5331         (sem_function::~sem_function): Remove destruction of arg_types.
5332         (sem_function::compatible_parm_types_p): New function.
5333         (sem_function::equals_wpa): Reorg matching of return values
5334         and parameter types.
5335         (sem_function::equals_private): Reorg mathcing of argument types.
5336         (sem_function::parse_tree_args): Remove.
5337         * ipa-icf.h (init_wpa): Do not call it.
5338         (parse_tree_args): Remove.
5339         (compatible_parm_types_p): Declare.
5340         (result_type): Remove.
5341         (arg_types): Remove.
5342
5343 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
5344
5345         PR ipa/66351
5346         * ipa-polymorphic-call.c
5347         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5348         initializing alias oracle; fix formating; set base_alias_set if it
5349         is known.
5350
5351 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
5352
5353         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5354         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5355         (find_inc): Likewise.
5356         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5357         swapping.
5358         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5359         * df-scan.c (df_swap_refs): Remove.
5360         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5361         * dominance.c (link_roots): Use std::swap instead of manually swapping.
5362         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5363         * fold-const.c (fold_relational_const): Likewise.
5364         * genattrtab.c (simplify_test_exp): Likewise.
5365         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5366         gimple_simplify): Likewise.
5367         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5368         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5369         * ipa-devirt.c (add_type_duplicate): Likewise.
5370         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5371         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5372         * lra.c (lra_create_copy): Likewise.
5373         * lto-streamer-out.c (DFS::DFS): Likewise.
5374         * modulo-sched.c (get_sched_window): Likewise.
5375         * omega.c (omega_pretty_print_problem): Likewise.
5376         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5377         * reload1.c (reloads_unique_chain_p): Likewise.
5378         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5379         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5380         use std::swap.
5381         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5382         manually swapping.
5383         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5384         predicate_mem_writes): Likewise.
5385         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5386         * tree-predcom.c (combine_chains): Likewise.
5387         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5388         refs_may_alias_p_1): Likewise.
5389         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5390         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5391         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5392         number_of_iterations_cond): Likewise.
5393         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5394         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5395         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5396         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5397         * tree-vrp.c (extract_range_from_binary_expr_1,
5398         extract_range_from_unary_expr_1): Likewise.
5399
5400 2015-06-20  Marek Polacek  <polacek@redhat.com>
5401
5402         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5403
5404 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5405
5406         PR target/66591
5407         * config/sh/sh.c (prepare_move_operands): Replace subreg
5408         index term with R0 for base and index addressing.
5409
5410 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
5411
5412         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5413         op1 is an fp zero.
5414         (movsf_aarch64): Change condition from register_operand to
5415         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
5416         load1.  Change type for alternative 7 to store1.
5417         (movdf_aarch64): Likewise.
5418
5419 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
5420
5421         * config/vax/vax.md: Adjust sign/zero extend patterns to
5422         handle SUBREGs in operands[1].
5423
5424 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5425
5426         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5427         of manually swapping.
5428         (expand_vec_perm_interleave2): Likewise.
5429
5430 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
5431
5432         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5433         reuse bounds created for abnormal ssa names.
5434
5435 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
5436
5437         * config/nvptx/nvptx.md (allocate_stack): Rename to...
5438         (allocate_stack_<mode>): ... this, and add :P on both
5439         match_operand and unspec.
5440         (allocate_stack): New expander.
5441
5442 2015-06-19  Christian Bruel  <christian.bruel@st.com>
5443
5444         PR target/66541
5445         PR target/52144
5446         * config/arm/arm.c (arm_set_current_function): Handle
5447         explicit default options.
5448
5449 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
5450
5451         * config/i386/i386.md (*movsicc_noc_zext): New insn.
5452         (zero-extended cmove with mem peephole2): New pattern.
5453         (cmove with mem peephole2): Merge patterns.
5454
5455 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
5456
5457         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5458
5459 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
5460
5461         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5462         * config/mips/mips.md (*madd4<mode>): Ditto.
5463         (*nmadd3<mode>) Ditto.
5464         (*nmadd4<mode>_fastmath): Ditto.
5465         (*nmadd3<mode>_fastmath): Ditto.
5466         (*nmsub4<mode>): Ditto.
5467         (*nmsub3<mode>): Ditto.
5468         (*nmsub4<mode>_fastmath): Ditto.
5469         (*nmsub3<mode>_fastmath): Ditto.
5470
5471 2015-06-18  Michael Matz  <matz@suse.de>
5472
5473         PR middle-end/66253
5474         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5475         grouped strided stores.
5476         (vectorizable_load): Don't use the DR from first_stmt in
5477         the non-SLP grouped strided case.
5478
5479 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5480
5481         PR target/66569
5482         * function.c (assign_bounds): Add arguments assign_regs,
5483         assign_special, assign_bt.
5484         (assign_parms): For vararg functions handle bounds in BT
5485         and special slots after incoming vararg bounds.
5486
5487 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5488
5489         PR middle-end/66568
5490         * cfgexpand.c (expand_return): Handle missing bounds.
5491         (expand_gimple_stmt_1): Likewise.
5492         * tree-chkp.c (chkp_expand_zero_bounds): New.
5493         * tree-chkp.h (chkp_expand_zero_bounds): New.
5494
5495 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5496
5497         PR middle-end/66567
5498         * ipa-chkp.c (chkp_maybe_create_clone): Require
5499         functions to be instrumentable.
5500         * tree-chkp.c (chkp_replace_function_pointer): Use
5501         chkp_instrumentable_p instead of attribute check.
5502
5503 2015-06-18  Richard Biener  <rguenther@suse.de>
5504
5505         PR tree-optimization/66510
5506         * tree-vect-stmts.c (vectorizable_load): Properly compute the
5507         number of vector loads for SLP permuted loads.
5508         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5509         check the stride for loop vectorization.
5510         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5511         vectorization factor.
5512         (vect_analyze_group_access): If the group size is not a power
5513         of two require a epilogue loop.
5514         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5515         compute and optimizing and alias test pruning after final
5516         vectorization factor computation.
5517         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5518         vector alignment.
5519         (vect_transform_slp_perm_load): Properly compute the original
5520         number of vector load stmts.
5521
5522 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
5523
5524         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5525         "unlikely character , in @var" warning.
5526
5527 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
5528
5529         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5530         (ix86_function_arg_advance): Ditto.
5531         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
5532
5533 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5534
5535         * function.h (struct rtl_data): Remove struct and accessor macros.
5536         * emit-rtl.h (struct rtl_data): Relocate to here.
5537         * Makefile.in (GTFILES): Add emit-rtl.h.
5538         * df-core.c: Include emit-rtl.h.
5539         * genattrtab.c: Likewise.
5540         * genconditions.c: Likewise.
5541         * genpreds.c: Likewise.
5542         * genrecog.c: Likewise.
5543         * regcprop.c: Likewise.
5544         * resource.c: Likewise.
5545         * sched-rgn.c: Likewise.
5546         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5547         * config/i386/winnt.c: Likewise.
5548
5549 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
5550
5551         PR middle-end/66429
5552         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5553         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
5554         and has_force_vectorize_loops flags from cfun into
5555         child_cfun.
5556         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5557         if simduid is non-NULL.
5558         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5559         * passes.def (pass_simduid_cleanup): Add new pass after loop
5560         passes.
5561         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5562         indirection from htab argument's type.
5563         (shrink_simd_arrays): New function.
5564         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
5565         Don't call adjust_simduid_builtins if there are no loops.
5566         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5567         (pass_simduid_cleanup::execute): New method.
5568         (make_pass_simduid_cleanup): New function.
5569
5570 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
5571
5572         * tree-core.h (tree_target_option): Make opts field a pointer to a
5573         cl_target_option instead of an instance of the struct.
5574         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5575         the structure.
5576         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5577         TARGET_OPTION_NODE.
5578         (copy_node_stat): Allocate and copy struct cl_target_option.
5579
5580 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5581
5582         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5583         Remove conditional exposure of prototypes.
5584         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5585         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
5586         definitions in tree.h with functions.
5587         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5588         anon_aggrname_p.
5589         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5590
5591 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
5592
5593         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5594         (*cmp<mode>_signed): ... this.
5595         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5596         (*cmp<mode>_unsigned): ... this.  Remove %b.
5597
5598 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5599
5600         * coretypes.h: Include input.h and as-a.h.
5601         * rtl.h: Include input.h and as-a.h for generator files.
5602         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5603         * vec.c: Don't include diagnostic-core.h.
5604         * alias.c: Do not include input.h, line-map.h or is-a.h.
5605         * asan.c: Likewise.
5606         * attribs.c: Likewise.
5607         * auto-inc-dec.c: Likewise.
5608         * auto-profile.c: Likewise.
5609         * bb-reorder.c: Likewise.
5610         * bt-load.c: Likewise.
5611         * builtins.c: Likewise.
5612         * caller-save.c: Likewise.
5613         * calls.c: Likewise.
5614         * ccmp.c: Likewise.
5615         * cfg.c: Likewise.
5616         * cfganal.c: Likewise.
5617         * cfgbuild.c: Likewise.
5618         * cfgcleanup.c: Likewise.
5619         * cfgexpand.c: Likewise.
5620         * cfghooks.c: Likewise.
5621         * cfgloop.c: Likewise.
5622         * cfgloop.h: Likewise.
5623         * cfgloopanal.c: Likewise.
5624         * cfgloopmanip.c: Likewise.
5625         * cfgrtl.c: Likewise.
5626         * cgraph.c: Likewise.
5627         * cgraphbuild.c: Likewise.
5628         * cgraphclones.c: Likewise.
5629         * cgraphunit.c: Likewise.
5630         * cilk-common.c: Likewise.
5631         * combine-stack-adj.c: Likewise.
5632         * combine.c: Likewise.
5633         * compare-elim.c: Likewise.
5634         * convert.c: Likewise.
5635         * coverage.c: Likewise.
5636         * cppbuiltin.c: Likewise.
5637         * cprop.c: Likewise.
5638         * cse.c: Likewise.
5639         * cselib.c: Likewise.
5640         * data-streamer-in.c: Likewise.
5641         * data-streamer-out.c: Likewise.
5642         * data-streamer.c: Likewise.
5643         * dbxout.c: Likewise.
5644         * dce.c: Likewise.
5645         * ddg.c: Likewise.
5646         * debug.c: Likewise.
5647         * df-core.c: Likewise.
5648         * df-problems.c: Likewise.
5649         * df-scan.c: Likewise.
5650         * df.h: Likewise.
5651         * dfp.c: Likewise.
5652         * diagnostic-core.h: Likewise.
5653         * diagnostic.c: Likewise.
5654         * dojump.c: Likewise.
5655         * dominance.c: Likewise.
5656         * domwalk.c: Likewise.
5657         * double-int.c: Likewise.
5658         * dse.c: Likewise.
5659         * dumpfile.c: Likewise.
5660         * dumpfile.h: Likewise.
5661         * dwarf2asm.c: Likewise.
5662         * dwarf2cfi.c: Likewise.
5663         * dwarf2out.c: Likewise.
5664         * emit-rtl.c: Likewise.
5665         * et-forest.c: Likewise.
5666         * except.c: Likewise.
5667         * explow.c: Likewise.
5668         * expmed.c: Likewise.
5669         * expr.c: Likewise.
5670         * final.c: Likewise.
5671         * fixed-value.c: Likewise.
5672         * fold-const.c: Likewise.
5673         * function.c: Likewise.
5674         * fwprop.c: Likewise.
5675         * gcc-plugin.h: Likewise.
5676         * gcse.c: Likewise.
5677         * generic-match-head.c: Likewise.
5678         * ggc-page.c: Likewise.
5679         * gimple-builder.c: Likewise.
5680         * gimple-expr.c: Likewise.
5681         * gimple-fold.c: Likewise.
5682         * gimple-iterator.c: Likewise.
5683         * gimple-low.c: Likewise.
5684         * gimple-match-head.c: Likewise.
5685         * gimple-pretty-print.c: Likewise.
5686         * gimple-ssa-isolate-paths.c: Likewise.
5687         * gimple-ssa-strength-reduction.c: Likewise.
5688         * gimple-streamer-in.c: Likewise.
5689         * gimple-streamer-out.c: Likewise.
5690         * gimple-streamer.h: Likewise.
5691         * gimple-walk.c: Likewise.
5692         * gimple.c: Likewise.
5693         * gimplify-me.c: Likewise.
5694         * gimplify.c: Likewise.
5695         * godump.c: Likewise.
5696         * graph.c: Likewise.
5697         * graphite-blocking.c: Likewise.
5698         * graphite-dependences.c: Likewise.
5699         * graphite-interchange.c: Likewise.
5700         * graphite-isl-ast-to-gimple.c: Likewise.
5701         * graphite-optimize-isl.c: Likewise.
5702         * graphite-poly.c: Likewise.
5703         * graphite-scop-detection.c: Likewise.
5704         * graphite-sese-to-poly.c: Likewise.
5705         * graphite.c: Likewise.
5706         * haifa-sched.c: Likewise.
5707         * hw-doloop.c: Likewise.
5708         * ifcvt.c: Likewise.
5709         * init-regs.c: Likewise.
5710         * input.c: Likewise.
5711         * internal-fn.c: Likewise.
5712         * ipa-chkp.c: Likewise.
5713         * ipa-comdats.c: Likewise.
5714         * ipa-cp.c: Likewise.
5715         * ipa-devirt.c: Likewise.
5716         * ipa-icf-gimple.c: Likewise.
5717         * ipa-icf.c: Likewise.
5718         * ipa-inline-analysis.c: Likewise.
5719         * ipa-inline-transform.c: Likewise.
5720         * ipa-inline.c: Likewise.
5721         * ipa-polymorphic-call.c: Likewise.
5722         * ipa-profile.c: Likewise.
5723         * ipa-prop.c: Likewise.
5724         * ipa-pure-const.c: Likewise.
5725         * ipa-ref.c: Likewise.
5726         * ipa-reference.c: Likewise.
5727         * ipa-split.c: Likewise.
5728         * ipa-utils.c: Likewise.
5729         * ipa-visibility.c: Likewise.
5730         * ipa.c: Likewise.
5731         * ira-build.c: Likewise.
5732         * ira-color.c: Likewise.
5733         * ira-conflicts.c: Likewise.
5734         * ira-costs.c: Likewise.
5735         * ira-emit.c: Likewise.
5736         * ira-lives.c: Likewise.
5737         * ira.c: Likewise.
5738         * jump.c: Likewise.
5739         * langhooks.c: Likewise.
5740         * lcm.c: Likewise.
5741         * loop-doloop.c: Likewise.
5742         * loop-init.c: Likewise.
5743         * loop-invariant.c: Likewise.
5744         * loop-iv.c: Likewise.
5745         * loop-unroll.c: Likewise.
5746         * lower-subreg.c: Likewise.
5747         * lra-assigns.c: Likewise.
5748         * lra-coalesce.c: Likewise.
5749         * lra-constraints.c: Likewise.
5750         * lra-eliminations.c: Likewise.
5751         * lra-lives.c: Likewise.
5752         * lra-remat.c: Likewise.
5753         * lra-spills.c: Likewise.
5754         * lra.c: Likewise.
5755         * lto-cgraph.c: Likewise.
5756         * lto-compress.c: Likewise.
5757         * lto-opts.c: Likewise.
5758         * lto-section-in.c: Likewise.
5759         * lto-section-out.c: Likewise.
5760         * lto-streamer-in.c: Likewise.
5761         * lto-streamer-out.c: Likewise.
5762         * lto-streamer.c: Likewise.
5763         * mcf.c: Likewise.
5764         * mode-switching.c: Likewise.
5765         * modulo-sched.c: Likewise.
5766         * omega.c: Likewise.
5767         * omp-low.c: Likewise.
5768         * optabs.c: Likewise.
5769         * opts-global.c: Likewise.
5770         * opts.h: Likewise.
5771         * passes.c: Likewise.
5772         * plugin.c: Likewise.
5773         * postreload-gcse.c: Likewise.
5774         * postreload.c: Likewise.
5775         * predict.c: Likewise.
5776         * pretty-print.h: Likewise.
5777         * print-rtl.c: Likewise.
5778         * print-tree.c: Likewise.
5779         * profile.c: Likewise.
5780         * real.c: Likewise.
5781         * realmpfr.c: Likewise.
5782         * recog.c: Likewise.
5783         * ree.c: Likewise.
5784         * reg-stack.c: Likewise.
5785         * regcprop.c: Likewise.
5786         * reginfo.c: Likewise.
5787         * regrename.c: Likewise.
5788         * regstat.c: Likewise.
5789         * reload.c: Likewise.
5790         * reload1.c: Likewise.
5791         * reorg.c: Likewise.
5792         * resource.c: Likewise.
5793         * rtl-chkp.c: Likewise.
5794         * rtl-error.c: Likewise.
5795         * rtlanal.c: Likewise.
5796         * rtlhooks.c: Likewise.
5797         * sanopt.c: Likewise.
5798         * sched-deps.c: Likewise.
5799         * sched-ebb.c: Likewise.
5800         * sched-rgn.c: Likewise.
5801         * sched-vis.c: Likewise.
5802         * sdbout.c: Likewise.
5803         * sel-sched-dump.c: Likewise.
5804         * sel-sched-ir.c: Likewise.
5805         * sel-sched.c: Likewise.
5806         * sese.c: Likewise.
5807         * shrink-wrap.c: Likewise.
5808         * simplify-rtx.c: Likewise.
5809         * stack-ptr-mod.c: Likewise.
5810         * statistics.c: Likewise.
5811         * stmt.c: Likewise.
5812         * stor-layout.c: Likewise.
5813         * store-motion.c: Likewise.
5814         * streamer-hooks.c: Likewise.
5815         * stringpool.c: Likewise.
5816         * symtab.c: Likewise.
5817         * target-globals.c: Likewise.
5818         * targhooks.c: Likewise.
5819         * toplev.c: Likewise.
5820         * tracer.c: Likewise.
5821         * trans-mem.c: Likewise.
5822         * tree-affine.c: Likewise.
5823         * tree-browser.c: Likewise.
5824         * tree-call-cdce.c: Likewise.
5825         * tree-cfg.c: Likewise.
5826         * tree-cfgcleanup.c: Likewise.
5827         * tree-chkp-opt.c: Likewise.
5828         * tree-chkp.c: Likewise.
5829         * tree-chrec.c: Likewise.
5830         * tree-complex.c: Likewise.
5831         * tree-data-ref.c: Likewise.
5832         * tree-dfa.c: Likewise.
5833         * tree-diagnostic.c: Likewise.
5834         * tree-dump.c: Likewise.
5835         * tree-eh.c: Likewise.
5836         * tree-emutls.c: Likewise.
5837         * tree-if-conv.c: Likewise.
5838         * tree-inline.c: Likewise.
5839         * tree-into-ssa.c: Likewise.
5840         * tree-iterator.c: Likewise.
5841         * tree-loop-distribution.c: Likewise.
5842         * tree-nested.c: Likewise.
5843         * tree-nrv.c: Likewise.
5844         * tree-object-size.c: Likewise.
5845         * tree-outof-ssa.c: Likewise.
5846         * tree-parloops.c: Likewise.
5847         * tree-phinodes.c: Likewise.
5848         * tree-predcom.c: Likewise.
5849         * tree-pretty-print.c: Likewise.
5850         * tree-profile.c: Likewise.
5851         * tree-scalar-evolution.c: Likewise.
5852         * tree-sra.c: Likewise.
5853         * tree-ssa-address.c: Likewise.
5854         * tree-ssa-alias.c: Likewise.
5855         * tree-ssa-ccp.c: Likewise.
5856         * tree-ssa-coalesce.c: Likewise.
5857         * tree-ssa-copy.c: Likewise.
5858         * tree-ssa-copyrename.c: Likewise.
5859         * tree-ssa-dce.c: Likewise.
5860         * tree-ssa-dom.c: Likewise.
5861         * tree-ssa-dse.c: Likewise.
5862         * tree-ssa-forwprop.c: Likewise.
5863         * tree-ssa-ifcombine.c: Likewise.
5864         * tree-ssa-live.c: Likewise.
5865         * tree-ssa-loop-ch.c: Likewise.
5866         * tree-ssa-loop-im.c: Likewise.
5867         * tree-ssa-loop-ivcanon.c: Likewise.
5868         * tree-ssa-loop-ivopts.c: Likewise.
5869         * tree-ssa-loop-manip.c: Likewise.
5870         * tree-ssa-loop-niter.c: Likewise.
5871         * tree-ssa-loop-prefetch.c: Likewise.
5872         * tree-ssa-loop-unswitch.c: Likewise.
5873         * tree-ssa-loop.c: Likewise.
5874         * tree-ssa-math-opts.c: Likewise.
5875         * tree-ssa-operands.c: Likewise.
5876         * tree-ssa-phiopt.c: Likewise.
5877         * tree-ssa-phiprop.c: Likewise.
5878         * tree-ssa-pre.c: Likewise.
5879         * tree-ssa-propagate.c: Likewise.
5880         * tree-ssa-reassoc.c: Likewise.
5881         * tree-ssa-sccvn.c: Likewise.
5882         * tree-ssa-scopedtables.c: Likewise.
5883         * tree-ssa-sink.c: Likewise.
5884         * tree-ssa-strlen.c: Likewise.
5885         * tree-ssa-structalias.c: Likewise.
5886         * tree-ssa-tail-merge.c: Likewise.
5887         * tree-ssa-ter.c: Likewise.
5888         * tree-ssa-threadedge.c: Likewise.
5889         * tree-ssa-threadupdate.c: Likewise.
5890         * tree-ssa-uncprop.c: Likewise.
5891         * tree-ssa-uninit.c: Likewise.
5892         * tree-ssa.c: Likewise.
5893         * tree-ssanames.c: Likewise.
5894         * tree-stdarg.c: Likewise.
5895         * tree-streamer-in.c: Likewise.
5896         * tree-streamer-out.c: Likewise.
5897         * tree-streamer.c: Likewise.
5898         * tree-switch-conversion.c: Likewise.
5899         * tree-tailcall.c: Likewise.
5900         * tree-vect-data-refs.c: Likewise.
5901         * tree-vect-generic.c: Likewise.
5902         * tree-vect-loop-manip.c: Likewise.
5903         * tree-vect-loop.c: Likewise.
5904         * tree-vect-patterns.c: Likewise.
5905         * tree-vect-slp.c: Likewise.
5906         * tree-vect-stmts.c: Likewise.
5907         * tree-vectorizer.c: Likewise.
5908         * tree-vrp.c: Likewise.
5909         * tree.c: Likewise.
5910         * tsan.c: Likewise.
5911         * ubsan.c: Likewise.
5912         * valtrack.c: Likewise.
5913         * value-prof.c: Likewise.
5914         * var-tracking.c: Likewise.
5915         * varasm.c: Likewise.
5916         * varpool.c: Likewise.
5917         * vmsdbgout.c: Likewise.
5918         * vtable-verify.c: Likewise.
5919         * web.c: Likewise.
5920         * wide-int.cc: Likewise.
5921         * xcoffout.c: Likewise.
5922         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5923         * common/common-targhooks.c: Likewise.
5924         * config/aarch64/aarch64-builtins.c: Likewise.
5925         * config/aarch64/aarch64.c: Likewise.
5926         * config/alpha/alpha.c: Likewise.
5927         * config/arc/arc.c: Likewise.
5928         * config/arm/aarch-common.c: Likewise.
5929         * config/arm/arm-builtins.c: Likewise.
5930         * config/arm/arm-c.c: Likewise.
5931         * config/arm/arm.c: Likewise.
5932         * config/avr/avr-c.c: Likewise.
5933         * config/avr/avr-log.c: Likewise.
5934         * config/avr/avr.c: Likewise.
5935         * config/bfin/bfin.c: Likewise.
5936         * config/c6x/c6x.c: Likewise.
5937         * config/cr16/cr16.c: Likewise.
5938         * config/cris/cris.c: Likewise.
5939         * config/darwin-c.c: Likewise.
5940         * config/darwin.c: Likewise.
5941         * config/default-c.c: Likewise.
5942         * config/epiphany/epiphany.c: Likewise.
5943         * config/epiphany/mode-switch-use.c: Likewise.
5944         * config/epiphany/resolve-sw-modes.c: Likewise.
5945         * config/fr30/fr30.c: Likewise.
5946         * config/frv/frv.c: Likewise.
5947         * config/ft32/ft32.c: Likewise.
5948         * config/glibc-c.c: Likewise.
5949         * config/h8300/h8300.c: Likewise.
5950         * config/i386/i386-c.c: Likewise.
5951         * config/i386/i386.c: Likewise.
5952         * config/i386/msformat-c.c: Likewise.
5953         * config/i386/winnt-cxx.c: Likewise.
5954         * config/i386/winnt-stubs.c: Likewise.
5955         * config/i386/winnt.c: Likewise.
5956         * config/ia64/ia64-c.c: Likewise.
5957         * config/ia64/ia64.c: Likewise.
5958         * config/iq2000/iq2000.c: Likewise.
5959         * config/lm32/lm32.c: Likewise.
5960         * config/m32c/m32c-pragma.c: Likewise.
5961         * config/m32c/m32c.c: Likewise.
5962         * config/m32r/m32r.c: Likewise.
5963         * config/m68k/m68k.c: Likewise.
5964         * config/mcore/mcore.c: Likewise.
5965         * config/mep/mep-pragma.c: Likewise.
5966         * config/mep/mep.c: Likewise.
5967         * config/microblaze/microblaze-c.c: Likewise.
5968         * config/microblaze/microblaze.c: Likewise.
5969         * config/mips/mips.c: Likewise.
5970         * config/mmix/mmix.c: Likewise.
5971         * config/mn10300/mn10300.c: Likewise.
5972         * config/moxie/moxie.c: Likewise.
5973         * config/msp430/msp430-c.c: Likewise.
5974         * config/msp430/msp430.c: Likewise.
5975         * config/nds32/nds32-cost.c: Likewise.
5976         * config/nds32/nds32-fp-as-gp.c: Likewise.
5977         * config/nds32/nds32-intrinsic.c: Likewise.
5978         * config/nds32/nds32-isr.c: Likewise.
5979         * config/nds32/nds32-md-auxiliary.c: Likewise.
5980         * config/nds32/nds32-memory-manipulation.c: Likewise.
5981         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5982         * config/nds32/nds32-predicates.c: Likewise.
5983         * config/nds32/nds32.c: Likewise.
5984         * config/nios2/nios2.c: Likewise.
5985         * config/nvptx/nvptx.c: Likewise.
5986         * config/pa/pa.c: Likewise.
5987         * config/pdp11/pdp11.c: Likewise.
5988         * config/rl78/rl78-c.c: Likewise.
5989         * config/rl78/rl78.c: Likewise.
5990         * config/rs6000/rs6000-c.c: Likewise.
5991         * config/rs6000/rs6000.c: Likewise.
5992         * config/rx/rx.c: Likewise.
5993         * config/s390/s390-c.c: Likewise.
5994         * config/s390/s390.c: Likewise.
5995         * config/sh/sh-c.c: Likewise.
5996         * config/sh/sh-mem.cc: Likewise.
5997         * config/sh/sh.c: Likewise.
5998         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5999         * config/sh/sh_treg_combine.cc: Likewise.
6000         * config/sol2-c.c: Likewise.
6001         * config/sol2-cxx.c: Likewise.
6002         * config/sol2-stubs.c: Likewise.
6003         * config/sol2.c: Likewise.
6004         * config/sparc/sparc-c.c: Likewise.
6005         * config/sparc/sparc.c: Likewise.
6006         * config/spu/spu-c.c: Likewise.
6007         * config/spu/spu.c: Likewise.
6008         * config/stormy16/stormy16.c: Likewise.
6009         * config/tilegx/mul-tables.c: Likewise.
6010         * config/tilegx/tilegx-c.c: Likewise.
6011         * config/tilegx/tilegx.c: Likewise.
6012         * config/tilepro/mul-tables.c: Likewise.
6013         * config/tilepro/tilepro-c.c: Likewise.
6014         * config/tilepro/tilepro.c: Likewise.
6015         * config/v850/v850-c.c: Likewise.
6016         * config/v850/v850.c: Likewise.
6017         * config/vax/vax.c: Likewise.
6018         * config/visium/visium.c: Likewise.
6019         * config/vms/vms-c.c: Likewise.
6020         * config/vms/vms.c: Likewise.
6021         * config/vxworks.c: Likewise.
6022         * config/winnt-c.c: Likewise.
6023         * config/xtensa/xtensa.c: Likewise.
6024
6025 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
6026
6027         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6028         function.
6029         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6030
6031 2015-06-17  Richard Biener  <rguenther@suse.de>
6032
6033         PR tree-optimization/66251
6034         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6035         stmts for SLP strided stores.
6036
6037         Revert
6038         2015-05-22  Richard Biener  <rguenther@suse.de>
6039
6040         PR tree-optimization/66251
6041         * tree-vect-stmts.c (vectorizable_conversion): Properly
6042         set STMT_VINFO_VEC_STMT even for the SLP case.
6043
6044         2015-05-26  Michael Matz  <matz@suse.de>
6045
6046         PR middle-end/66251
6047         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6048         STMT_VINFO_VEC_STMT, also with SLP.
6049
6050 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
6051
6052         PR target/56766
6053         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6054         (*avx_addsubv4df3_1s): Ditto.
6055         (*sse3_addsubv2df3_1): Ditto.
6056         (*sse3_addsubv2df3_1s): Ditto.
6057         (*avx_addsubv8sf3_1): Ditto.
6058         (*avx_addsubv8sf3_1s): Ditto.
6059         (*sse3_addsubv4sf3_1): Ditto.
6060         (*sse3_addsubv4sf3_1s): Ditto.
6061
6062 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
6063
6064         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6065         (SYSROOT_SUFFIX_SPEC): Update.
6066         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6067         (STARTFILE_PREFIX_SPEC): Update.
6068         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6069         (MULTILIB_REQUIRED): New.
6070         (MULTILIB_OSDIRNAMES): New.
6071         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6072         (MULTILIB_REQUIRED): New.
6073         (MULTILIB_OSDIRNAMES): New.
6074
6075 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
6076
6077         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6078         * config/aarch64/aarch64-options-extensions.def: Update "fP",
6079         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
6080         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6081         (AARCH64_FL_PAN): New.
6082         (AARCH64_FL_LOR): New.
6083         (AARCH64_FL_RDMA): New.
6084         (AARCH64_FL_FOR_ARCH8_1): New.
6085         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6086         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6087
6088 2015-06-16  Martin Liska  <mliska@suse.cz>
6089
6090         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6091         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6092         guard.
6093
6094 2015-06-16  Richard Biener  <rguenther@suse.de>
6095
6096         * tree-vect-stmts.c (vectorizable_store): Adjust.
6097         (vectorizable_load): Likewise.
6098         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6099         Simplify.
6100         (vect_create_data_ref_ptr): Likewise.
6101         (bump_vector_ptr): Adjust.
6102
6103 2015-06-16  Richard Biener  <rguenther@suse.de>
6104
6105         * tree-vect-stmts.c (vectorizable_load): Properly start loads
6106         with the first element if this is grouped loads.
6107
6108 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
6109
6110         * config/arm/arm-protos.h (struct tune_params): Rename
6111         log_op_non_sc to log_op_non_short_circuit, and rename enum
6112         values to expand SC to SHORT_CIRCUIT.
6113         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6114         to LOG_OP_NON_SHORT_CIRCUIT.
6115         (arm_fastmul_tune):Likewise
6116         (arm_strongarm_tune): Likewise.
6117         (arm_xscale_tune): Likewise.
6118         (arm_9e_tune): Likewise.
6119         (arm_marvell_pj4_tune): Likewise.
6120         (arm_v6t2_tune): Likewise.
6121         (arm_cortex_tune): Likewise.
6122         (arm_cortex_a8_tune): Likewise.
6123         (arm_cortex_a7_tune): Likewise.
6124         (arm_cortex_a15_tune): Likewise.
6125         (arm_cortex_a53_tune): Likewise.
6126         (arm_cortex_a57_tune): Likewise.
6127         (arm_xgene1_tune): Likewise.
6128         (arm_cortex_a5_tune): Likewise.
6129         (arm_cortex_a9_tune): Likewise.
6130         (arm_cortex_a12_tune): Likewise.
6131         (arm_v7m_tune): Likewise.
6132         (arm_cortex_m7_tune): Likewise.
6133         (arm_v6m_tune): Likewise.
6134         (arm_fa726te_tune): Likewise.
6135
6136 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
6137
6138         * altivec.md: Delete UNSPEC_VMLADDUHM.
6139         (mulv4si3_p8): New pattern.
6140         (mulv4si3): Use it for POWER8.
6141         (mulv8hi3): Use vmladduhm with zero addend.
6142         (altivec_vmladduhm): Descriptive RTL.
6143
6144 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
6145
6146         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6147         to use neon_move instead of mov_imm.
6148         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6149         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6150
6151         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6152         aarch64_float_const_zero_rtx_p check before TFmode check.
6153         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6154         an fp zero.
6155         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
6156         code and attributes to match.  Change condition from register_operand
6157         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
6158         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
6159         to store2.
6160
6161 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
6162
6163         PR debug/66535
6164         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6165         there is no parent.
6166
6167 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
6168
6169         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6170         HOST_WIDE_INT parameter.
6171
6172 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
6173
6174         PR ipa/66181
6175         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6176         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6177         TYPE_NO_FORCE_BLK.
6178         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6179
6180 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
6181
6182         * rtl.h (classify_insn): Declare.
6183         * emit-rtl.c (classify_insn): Move to...
6184         * rtl.c: ...here and add generator support.
6185         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6186         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6187         * genemit.c (gen_emit_seq): New function.
6188         (gen_expand, gen_split): Use it.
6189
6190 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
6191
6192         * tree.c (make_vector_stat): Fix comment to state that the
6193         function returns a VECTOR_CST.
6194
6195 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
6196
6197         * gensupport.h (add_implicit_parallel): Declare.
6198         * genrecog.c (add_implicit_parallel): Move to...
6199         * gensupport.c (add_implicit_parallel): ...here.
6200         (process_one_cond_exec): Use it.
6201         * genemit.c (gen_insn): Likewise.
6202
6203 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
6204
6205         PR bootstrap/66448
6206         * passes.c (rest_of_decl_compilation): Do not register globals for
6207         early debug if they are declared in built-ins.
6208
6209 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
6210
6211         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6212
6213 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6214
6215         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6216         manually swapping.
6217         (noce_try_cmove_arith): Likewise.
6218         (noce_get_alt_condition): Likewise.
6219
6220 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6221
6222         * common/config/i386/i386-common.c
6223         (OPTION_MASK_ISA_MWAITX_SET): New.
6224         (ix86_handle_option): Handle mwaitx.
6225         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6226         (x86_64-*-*): Likewise.
6227         * config/i386/mwaitxintrin.h: New header.
6228         * config/i386/cpuid.h (bit_MWAITX):  Define.
6229         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6230         MWAITX support.
6231         * config/i386/i386.opt (mwaitx): New.
6232         * config/i386/i386-builtin-types.def
6233         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6234         * config/i386/i386-c.c: Define __MWAITX__ if needed.
6235         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6236         (PTA_MWAITX): New.
6237         (ix86_option_override_internal): Handle new option.
6238         (processor_alias_table): Added PTA_MWAITX.
6239         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6240         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6241         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6242         IX86_BUILTIN_MONITORX  built-ins.
6243         * config/i386/i386.h (TARGET_MWAITX): New.
6244         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6245         UNSPEC_MONITORX.
6246         (mwaitx):  New pattern.
6247         (monitorx_<mode>): New pattern.
6248         * config/i386/x86intrin.h: Include mwaitxintrin.h.
6249         * doc/extend.texi: Document monitorx and mwaitx builtins.
6250         * doc/invoke.texi: Document -mmwaitx option.
6251
6252 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
6253
6254         * emit-rtl.c (need_atomic_barrier_p): Mask model with
6255         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
6256
6257 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6258
6259         * dbxout.c (xcoff_debug_hooks): Provide a function for
6260         register_main_translation_unit hook.
6261
6262 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6263
6264         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6265         variants cases from switch.
6266         (rs6000_post_atomic_barrier): Same.
6267         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6268         (rs6000_expand_atomic_exchange): Same.
6269         (rs6000_expand_atomic_op): Same.
6270         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6271         SYNC variants cases from switch.
6272         (atomic_load): Same.
6273         (atomic_store): Same.
6274
6275 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
6276
6277         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6278         CONST_INT for goto.
6279
6280 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
6281
6282         PR bootstrap/66448
6283         * dwarf2out.c (check_die): Check for common duplicate attributes.
6284         (add_location_or_const_value_attribute): Do not add duplicate
6285         attributes.
6286         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6287         time around.
6288         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6289         (gen_type_die_with_usage): Call check_die.
6290         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6291
6292 2015-06-11  Jason Merrill  <jason@redhat.com>
6293
6294         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6295         dies.
6296
6297 2015-06-11  Marek Polacek  <polacek@redhat.com>
6298
6299         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6300
6301 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
6302
6303         PR bootstrap/66252
6304         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6305         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6306         (*addx_extend_sp32): Fix pasto.
6307         (*subx_extend): Rename into...
6308         (*subx_extend_sp32): ...this.
6309         (*adddi3_extend_sp32): Add earlyclobber.
6310         (*subdi3_insn_sp32): Likewise.
6311         (*subdi3_extend_sp32): Likewise.
6312         (*and_not_di_sp32): Likewise.
6313         (*or_not_di_sp32): Likewise.
6314         (*xor_not_di_sp32): Likewise.
6315         (*negdi2_sp32): Likewise.
6316         (*one_cmpldi2_sp32): Likewise.
6317
6318 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
6319
6320         * debug.h (struct gcc_debug_hooks): Add a
6321         register_main_translation_unit hook.
6322         * debug.c (do_nothing_debug_hooks): Provide a function for this
6323         new hook.
6324         * dbxout.c (dbx_debug_hooks): Likewise.
6325         * sdbout.c (sdb_debug_hooks): Likewise.
6326         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6327         * dwarf2out.c (main_translation_unit): New global variable.
6328         (dwarf2out_register_main_translation_unit): New function
6329         implementing the new hook.
6330         (dwarf2_debug_hooks): Assign
6331         dwarf2out_register_main_translation_unit to this new hook.
6332         (dwarf2out_init): Associate any main translation unit to
6333         comp_unit_die ().
6334
6335 2015-06-11  Marek Polacek  <polacek@redhat.com>
6336
6337         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6338
6339 2015-06-11  Marek Polacek  <polacek@redhat.com>
6340
6341         * match.pd: Use single_use throughout.
6342
6343 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6344
6345         * config/arm/arm.c (arm_option_params_internal): When optimising
6346         for speed set max_insns_skipped when arm_restrict_it.
6347
6348 2015-06-11  Christian Bruel  <christian.bruel@st.com>
6349
6350         PR target/52144
6351         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6352          macros in ...
6353         (arm_cpu_builtins): New function.
6354         (arm_pragma_target_parse): Call arm_cpu_builtins.
6355         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6356         (arm_register_target_pragmas): Likewise.
6357         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6358          Call arm_register_target_pragmas.
6359         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6360         (arm_pragma_target_parse): Likewise.
6361
6362 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
6363
6364         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6365         of the second operand.
6366
6367 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
6368
6369         PR target/66473
6370         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6371         to prepare mask operand for AVX512 modes.
6372
6373 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6374
6375         PR target/66474
6376         * doc/md.texi (Machine Constraints): Document that on the PowerPC
6377         if you use a constraint that targets a VSX register, you must use
6378         %x<n> in the template.
6379
6380 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
6381
6382         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6383         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6384         (define_insn "trap"): New definition.
6385
6386 2015-06-10  Richard Biener  <rguenther@suse.de>
6387
6388         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6389         out from ...
6390         (vect_supported_load_permutation_p): ... here.  Handle
6391         supportable permutations in reductions.
6392         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6393         for vectorizing strided group loads.
6394
6395 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
6396
6397         PR target/66470
6398         * config/i386/i386.c (ix86_split_long_move): For collisions
6399         involving direct tls segment refs, move the UNSPEC_TP possibly
6400         wrapped in ZERO_EXTEND out of the address for lea, to each of
6401         the memory loads.
6402
6403 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6404
6405         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6406         dmb sy. Adjust tabs.
6407
6408 2015-06-10  Tom de Vries  <tom@codesourcery.com>
6409
6410         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6411
6412 2015-06-10  Martin Liska  <mliska@suse.cz>
6413
6414         PR bootstrap/66471
6415         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6416         all enum values in mem_alloc_origin.
6417         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6418         name.
6419         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6420         * bitmap.c (bitmap_register): Likewise.
6421         (dump_bitmap_statistics): Likewise.
6422         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6423         (ggc_record_overhead): Likewise.
6424         * hash-map.h: Likewise.
6425         * hash-set.h: Likewise.
6426         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6427         * hash-table.h: Likewise.
6428         * vec.c (vec_prefix::register_overhead): Likewise.
6429         (vec_prefix::release_overhead): Likewise.
6430         (dump_vec_loc_statistics): Likewise.
6431
6432 2015-06-09  Christian Bruel  <christian.bruel@st.com>
6433
6434         PR target/52144
6435         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6436         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6437         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6438         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6439         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6440         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6441         (arm_valid_target_attribute_p): Likewise.
6442         (arm_set_current_function, arm_can_inline_p): Likewise.
6443         (arm_valid_target_attribute_rec): Likewise.
6444         (arm_previous_fndecl): New variable.
6445         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6446         (TARGET_CAN_INLINE_P): Define.
6447         (arm_asm_trampoline_template): Emit mode.
6448         (arm_file_start): Don't set unified syntax.
6449         (arm_declare_function_name): Set unified syntax and mode.
6450         (arm_option_override): Init target_option_default_node.
6451         and target_option_current_node.
6452         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6453         (*call_symbol): Likewise.
6454         * doc/extend.texi: Document ARM/Thumb target attribute.
6455         * doc/invoke.texi: Likewise.
6456
6457 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6458
6459         Revert:
6460         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6461         PR rtl-optimization/64164
6462         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6463         * tree-ssa-copyrename.c: Removed.
6464         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6465         -ftree-coalesce-vars.
6466         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6467         * common.opt (ftree-copyrename): Ignore.
6468         (ftree-coalesce-inlined-vars): Likewise.
6469         * doc/invoke.texi: Remove the ignored options above.
6470         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6471         * tree-ssa-coalesce.h: ... here.
6472         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6473         headers required by it.
6474         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6475         across variables when flag_tree_coalesce_vars.  Check register
6476         use and promoted modes to allow coalescing.  Moved to
6477         tree-ssa-coalesce.c.
6478         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6479         with its member functions to tree-ssa-coalesce.c.
6480         (var_map_base_init): Likewise.  Renamed to
6481         compute_samebase_partition_bases.
6482         (partition_view_normal): Drop want_bases parameter.
6483         (partition_view_bitmap): Likewise.
6484         * tree-ssa-live.h: Adjust declarations.
6485         * tree-ssa-coalesce.c: Include explow.h.
6486         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6487         default defs at the entry point.
6488         (dump_part_var_map): New.
6489         (compute_optimized_partition_bases): New, called by...
6490         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6491         of compute_samebase_partition_bases.  Adjust.
6492         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6493         * cfgexpand.c (leader_merge): New.
6494         (get_rtl_for_parm_ssa_default_def): New.
6495         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6496         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6497         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6498         redundant MEM attr setting.
6499         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6500         from...
6501         (expand_one_stack_var): ... this.  New wrapper to check and
6502         skip already expanded SSA partitions.
6503         (record_alignment_for_reg_var): New, factored out of...
6504         (expand_one_var): ... this.
6505         (expand_one_ssa_partition): New.
6506         (adjust_one_expanded_partition_var): New.
6507         (expand_one_register_var): Check and skip already expanded SSA
6508         partitions.
6509         (expand_used_vars): Don't create DECLs for anonymous SSA
6510         names.  Expand all SSA partitions, then adjust all SSA names.
6511         (pass::execute): Replace the loops that set
6512         SA.partition_to_pseudo from partition leaders and cleared
6513         DECL_RTL for multi-location variables, and that which used to
6514         rename vars and set attrs, with one that clears DECL_RTL and
6515         checks that PARMs and RESULTs default_defs match DECL_RTL.
6516         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6517         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6518         * explow.c (promote_ssa_mode): New.
6519         * explow.h (promote_ssa_mode): Declare.
6520         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6521         * function.c: Include cfgexpand.h.
6522         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6523         (use_register_for_parm_decl): Wrapper for the above to
6524         special-case the result_ptr.
6525         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6526         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6527         multiple locations.
6528         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6529         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6530         (assign_parm_setup_block): Prefer SSA-assigned location.
6531         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6532         if stack_parm is NULL.
6533         (assign_parm_setup_stack): Prefer SSA-assigned location.
6534         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6535         rtl before testing for pointer bounds.  Special-case result_ptr.
6536         (expand_function_start): Maybe reset DECL_RTL of result.
6537         Prefer SSA-assigned location for result and static chain.
6538         Factor out DECL_RESULT and SET_DECL_RTL.
6539         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6540         anonymous SSA names.  Use promote_ssa_mode.
6541         (get_temp_reg): Likewise.
6542         (remove_ssa_form): Adjust.
6543         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6544         and get its reg_usage for reg invalidation.
6545         (compute_bb_dataflow): Pass it insn.
6546         (emit_notes_in_bb): Likewise.
6547         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6548         fail assert on conversion between unsigned types.
6549
6550 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6551
6552         PR tree-optimization/65460
6553         * omp-low.c (expand_omp_target): Set parallelized_function on
6554         cgraph_node for child_fn.
6555
6556 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6557
6558         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6559         parallelized_function before add_new_function.
6560
6561 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
6562
6563         * gcc-plugin.h: Move decls to plugin.h and include it.
6564         * plugin.h: Relocate decls from gcc-plugin.h
6565         * ggc-page.c: Include required header files.
6566         * passes.c: Likewise.
6567         * cgraphunit.c: Likewise.
6568
6569 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6570
6571         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6572
6573 2015-06-09  Jason Merrill  <jason@redhat.com>
6574
6575         PR bootstrap/66448
6576         * toplev.c (check_global_declaration): Don't warn about a clone.
6577
6578 2015-06-09  Marek Polacek  <polacek@redhat.com>
6579
6580         PR tree-optimization/66299
6581         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6582         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6583         patterns.
6584
6585 2015-06-09  Richard Biener  <rguenther@suse.de>
6586
6587         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6588         (vect_analyze_slp_instance): Instead do not falsely drop
6589         load permutations.
6590
6591 2015-06-09  Richard Biener  <rguenther@suse.de>
6592
6593         PR middle-end/66423
6594         * match.pd: Handle A % (unsigned)(1 << B).
6595
6596 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
6597
6598         * varasm.c (output_object_block_htab): Remove.
6599         (output_object_block_compare): New.
6600         (output_object_blocks): Sort named object_blocks before outputting
6601         them.
6602
6603 2015-06-09  Richard Biener  <rguenther@suse.de>
6604
6605         PR tree-optimization/66419
6606         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6607         consider GROUP_GAP when detecting a perfect subchain.
6608
6609 2015-06-09  Nick Clifton  <nickc@redhat.com>
6610
6611         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6612         place read only data in the .frodata section.
6613
6614 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
6615
6616         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6617         (atomic_store<mode>): Likewise.
6618
6619 2015-06-09  Richard Biener  <rguenther@suse.de>
6620
6621         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6622
6623 2015-06-09  Richard Biener  <rguenther@suse.de>
6624
6625         PR middle-end/66413
6626         * tree-inline.c (insert_init_debug_bind): Unshare value.
6627
6628 2015-06-09  Richard Biener  <rguenther@suse.de>
6629
6630         PR tree-optimization/66396
6631         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6632         Rename virtual operands.
6633
6634 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6635
6636         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6637         always return false.
6638
6639 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6640
6641         PR rtl-optimization/64164
6642         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6643         * tree-ssa-copyrename.c: Removed.
6644         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6645         -ftree-coalesce-vars.
6646         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6647         * common.opt (ftree-copyrename): Ignore.
6648         (ftree-coalesce-inlined-vars): Likewise.
6649         * doc/invoke.texi: Remove the ignored options above.
6650         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6651         * tree-ssa-coalesce.h: ... here.
6652         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6653         headers required by it.
6654         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6655         across variables when flag_tree_coalesce_vars.  Check register
6656         use and promoted modes to allow coalescing.  Moved to
6657         tree-ssa-coalesce.c.
6658         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6659         with its member functions to tree-ssa-coalesce.c.
6660         (var_map_base_init): Likewise.  Renamed to
6661         compute_samebase_partition_bases.
6662         (partition_view_normal): Drop want_bases parameter.
6663         (partition_view_bitmap): Likewise.
6664         * tree-ssa-live.h: Adjust declarations.
6665         * tree-ssa-coalesce.c: Include explow.h.
6666         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6667         default defs at the entry point.
6668         (dump_part_var_map): New.
6669         (compute_optimized_partition_bases): New, called by...
6670         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6671         of compute_samebase_partition_bases.  Adjust.
6672         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6673         * cfgexpand.c (leader_merge): New.
6674         (get_rtl_for_parm_ssa_default_def): New.
6675         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6676         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6677         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6678         redundant MEM attr setting.
6679         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6680         from...
6681         (expand_one_stack_var): ... this.  New wrapper to check and
6682         skip already expanded SSA partitions.
6683         (record_alignment_for_reg_var): New, factored out of...
6684         (expand_one_var): ... this.
6685         (expand_one_ssa_partition): New.
6686         (adjust_one_expanded_partition_var): New.
6687         (expand_one_register_var): Check and skip already expanded SSA
6688         partitions.
6689         (expand_used_vars): Don't create DECLs for anonymous SSA
6690         names.  Expand all SSA partitions, then adjust all SSA names.
6691         (pass::execute): Replace the loops that set
6692         SA.partition_to_pseudo from partition leaders and cleared
6693         DECL_RTL for multi-location variables, and that which used to
6694         rename vars and set attrs, with one that clears DECL_RTL and
6695         checks that PARMs and RESULTs default_defs match DECL_RTL.
6696         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6697         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6698         * explow.c (promote_ssa_mode): New.
6699         * explow.h (promote_ssa_mode): Declare.
6700         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6701         * function.c: Include cfgexpand.h.
6702         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6703         (use_register_for_parm_decl): Wrapper for the above to
6704         special-case the result_ptr.
6705         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6706         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6707         multiple locations.
6708         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6709         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6710         (assign_parm_setup_block): Prefer SSA-assigned location.
6711         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6712         if stack_parm is NULL.
6713         (assign_parm_setup_stack): Prefer SSA-assigned location.
6714         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6715         rtl before testing for pointer bounds.  Special-case result_ptr.
6716         (expand_function_start): Maybe reset DECL_RTL of result.
6717         Prefer SSA-assigned location for result and static chain.
6718         Factor out DECL_RESULT and SET_DECL_RTL.
6719         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6720         anonymous SSA names.  Use promote_ssa_mode.
6721         (get_temp_reg): Likewise.
6722         (remove_ssa_form): Adjust.
6723         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6724         and get its reg_usage for reg invalidation.
6725         (compute_bb_dataflow): Pass it insn.
6726         (emit_notes_in_bb): Likewise.
6727         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6728         fail assert on conversion between unsigned types.
6729
6730 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6731
6732         PR debug/58315
6733         * tree-inline.c (reset_debug_binding): New.
6734         (reset_debug_bindings): Likewise.
6735         (expand_call_inline): Call it.
6736
6737 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6738
6739         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6740         TYPE_STRING_FLAG.
6741
6742 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6743
6744         * lto-streamer-out.c (lto_output_location): Stream
6745         reserved locations correctly.
6746         * lto-streamer-in.c (lto_output_location): Likewise.
6747
6748 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
6749
6750         * coretypes.h: Include hash-table.h and hash-set.h for host files.
6751         * ggc.h: Don't include statistics.h>
6752         * hash-map.h: Remove all includes.
6753         * hash-set.h: Likewise.
6754         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6755         the include list. Remove <new>.
6756         * inchash.h: Remove all includes.
6757         * mem-stats.h: Likewise.
6758         * vec.h: No special processing for generators or ggc.
6759         * alias.c : Adjust include files.
6760         * alloc-pool.c : Likewise.
6761         * alloc-pool.h : Likewise.
6762         * asan.c : Likewise.
6763         * attribs.c : Likewise.
6764         * auto-inc-dec.c : Likewise.
6765         * auto-profile.c : Likewise.
6766         * bb-reorder.c : Likewise.
6767         * bitmap.c : Likewise.
6768         * bitmap.h : Likewise.
6769         * bt-load.c : Likewise.
6770         * builtins.c : Likewise.
6771         * caller-save.c : Likewise.
6772         * calls.c : Likewise.
6773         * ccmp.c : Likewise.
6774         * cfg.c : Likewise.
6775         * cfganal.c : Likewise.
6776         * cfgbuild.c : Likewise.
6777         * cfgcleanup.c : Likewise.
6778         * cfgexpand.c : Likewise.
6779         * cfghooks.c : Likewise.
6780         * cfgloop.c : Likewise.
6781         * cfgloop.h : Likewise.
6782         * cfgloopanal.c : Likewise.
6783         * cfgloopmanip.c : Likewise.
6784         * cfgrtl.c : Likewise.
6785         * cgraph.c : Likewise.
6786         * cgraphbuild.c : Likewise.
6787         * cgraphclones.c : Likewise.
6788         * cgraphunit.c : Likewise.
6789         * cilk-common.c : Likewise.
6790         * combine-stack-adj.c : Likewise.
6791         * combine.c : Likewise.
6792         * compare-elim.c : Likewise.
6793         * context.c : Likewise.
6794         * convert.c : Likewise.
6795         * coverage.c : Likewise.
6796         * cppbuiltin.c : Likewise.
6797         * cprop.c : Likewise.
6798         * cse.c : Likewise.
6799         * cselib.c : Likewise.
6800         * data-streamer-in.c : Likewise.
6801         * data-streamer-out.c : Likewise.
6802         * data-streamer.c : Likewise.
6803         * data-streamer.h : Likewise.
6804         * dbxout.c : Likewise.
6805         * dce.c : Likewise.
6806         * ddg.c : Likewise.
6807         * debug.c : Likewise.
6808         * df-core.c : Likewise.
6809         * df-problems.c : Likewise.
6810         * df-scan.c : Likewise.
6811         * df.h : Likewise.
6812         * dfp.c : Likewise.
6813         * dojump.c : Likewise.
6814         * dominance.c : Likewise.
6815         * domwalk.c : Likewise.
6816         * double-int.c : Likewise.
6817         * dse.c : Likewise.
6818         * dumpfile.c : Likewise.
6819         * dwarf2asm.c : Likewise.
6820         * dwarf2cfi.c : Likewise.
6821         * dwarf2out.c : Likewise.
6822         * emit-rtl.c : Likewise.
6823         * et-forest.c : Likewise.
6824         * except.c : Likewise.
6825         * except.h : Likewise.
6826         * explow.c : Likewise.
6827         * expmed.c : Likewise.
6828         * expr.c : Likewise.
6829         * final.c : Likewise.
6830         * fixed-value.c : Likewise.
6831         * fold-const.c : Likewise.
6832         * function.c : Likewise.
6833         * fwprop.c : Likewise.
6834         * gcc-plugin.h : Likewise.
6835         * gcc.c : Likewise.
6836         * gcse-common.c : Likewise.
6837         * gcse.c : Likewise.
6838         * genattrtab.c : Likewise.
6839         * genautomata.c : Likewise.
6840         * genconditions.c : Likewise.
6841         * genemit.c : Likewise.
6842         * generic-match-head.c : Likewise.
6843         * genextract.c : Likewise.
6844         * gengtype-state.c : Likewise.
6845         * gengtype.c : Likewise.
6846         * genhooks.c : Likewise.
6847         * genmatch.c : Likewise.
6848         * genmodes.c : Likewise.
6849         * genrecog.c : Likewise.
6850         * gensupport.c : Likewise.
6851         * ggc-common.c : Likewise.
6852         * ggc-internal.h : Likewise.
6853         * ggc-none.c : Likewise.
6854         * ggc-page.c : Likewise.
6855         * gimple-builder.c : Likewise.
6856         * gimple-expr.c : Likewise.
6857         * gimple-fold.c : Likewise.
6858         * gimple-iterator.c : Likewise.
6859         * gimple-low.c : Likewise.
6860         * gimple-match-head.c : Likewise.
6861         * gimple-pretty-print.c : Likewise.
6862         * gimple-ssa-isolate-paths.c : Likewise.
6863         * gimple-ssa-strength-reduction.c : Likewise.
6864         * gimple-ssa.h : Likewise.
6865         * gimple-streamer-in.c : Likewise.
6866         * gimple-streamer-out.c : Likewise.
6867         * gimple-streamer.h : Likewise.
6868         * gimple-walk.c : Likewise.
6869         * gimple.c : Likewise.
6870         * gimplify-me.c : Likewise.
6871         * gimplify.c : Likewise.
6872         * godump.c : Likewise.
6873         * graph.c : Likewise.
6874         * graphds.c : Likewise.
6875         * graphite-blocking.c : Likewise.
6876         * graphite-dependences.c : Likewise.
6877         * graphite-interchange.c : Likewise.
6878         * graphite-isl-ast-to-gimple.c : Likewise.
6879         * graphite-optimize-isl.c : Likewise.
6880         * graphite-poly.c : Likewise.
6881         * graphite-scop-detection.c : Likewise.
6882         * graphite-sese-to-poly.c : Likewise.
6883         * graphite.c : Likewise.
6884         * haifa-sched.c : Likewise.
6885         * hard-reg-set.h : Likewise.
6886         * hw-doloop.c : Likewise.
6887         * ifcvt.c : Likewise.
6888         * inchash.c : Likewise.
6889         * incpath.c : Likewise.
6890         * init-regs.c : Likewise.
6891         * input.c : Likewise.
6892         * internal-fn.c : Likewise.
6893         * ipa-chkp.c : Likewise.
6894         * ipa-comdats.c : Likewise.
6895         * ipa-cp.c : Likewise.
6896         * ipa-devirt.c : Likewise.
6897         * ipa-icf-gimple.c : Likewise.
6898         * ipa-icf.c : Likewise.
6899         * ipa-inline-analysis.c : Likewise.
6900         * ipa-inline-transform.c : Likewise.
6901         * ipa-inline.c : Likewise.
6902         * ipa-polymorphic-call.c : Likewise.
6903         * ipa-profile.c : Likewise.
6904         * ipa-prop.c : Likewise.
6905         * ipa-pure-const.c : Likewise.
6906         * ipa-ref.c : Likewise.
6907         * ipa-reference.c : Likewise.
6908         * ipa-split.c : Likewise.
6909         * ipa-utils.c : Likewise.
6910         * ipa-visibility.c : Likewise.
6911         * ipa.c : Likewise.
6912         * ira-build.c : Likewise.
6913         * ira-color.c : Likewise.
6914         * ira-conflicts.c : Likewise.
6915         * ira-costs.c : Likewise.
6916         * ira-emit.c : Likewise.
6917         * ira-lives.c : Likewise.
6918         * ira.c : Likewise.
6919         * jump.c : Likewise.
6920         * langhooks.c : Likewise.
6921         * lcm.c : Likewise.
6922         * libfuncs.h : Likewise.
6923         * lists.c : Likewise.
6924         * loop-doloop.c : Likewise.
6925         * loop-init.c : Likewise.
6926         * loop-invariant.c : Likewise.
6927         * loop-iv.c : Likewise.
6928         * loop-unroll.c : Likewise.
6929         * lower-subreg.c : Likewise.
6930         * lra-assigns.c : Likewise.
6931         * lra-coalesce.c : Likewise.
6932         * lra-constraints.c : Likewise.
6933         * lra-eliminations.c : Likewise.
6934         * lra-lives.c : Likewise.
6935         * lra-remat.c : Likewise.
6936         * lra-spills.c : Likewise.
6937         * lra.c : Likewise.
6938         * lto-cgraph.c : Likewise.
6939         * lto-compress.c : Likewise.
6940         * lto-opts.c : Likewise.
6941         * lto-section-in.c : Likewise.
6942         * lto-section-out.c : Likewise.
6943         * lto-streamer-in.c : Likewise.
6944         * lto-streamer-out.c : Likewise.
6945         * lto-streamer.c : Likewise.
6946         * lto-streamer.h : Likewise.
6947         * mcf.c : Likewise.
6948         * mode-switching.c : Likewise.
6949         * modulo-sched.c : Likewise.
6950         * omega.c : Likewise.
6951         * omp-low.c : Likewise.
6952         * optabs.c : Likewise.
6953         * opts-global.c : Likewise.
6954         * opts.h : Likewise.
6955         * passes.c : Likewise.
6956         * plugin.c : Likewise.
6957         * postreload-gcse.c : Likewise.
6958         * postreload.c : Likewise.
6959         * predict.c : Likewise.
6960         * print-rtl.c : Likewise.
6961         * print-tree.c : Likewise.
6962         * profile.c : Likewise.
6963         * read-md.c : Likewise.
6964         * read-md.h : Likewise.
6965         * read-rtl.c : Likewise.
6966         * real.c : Likewise.
6967         * realmpfr.c : Likewise.
6968         * recog.c : Likewise.
6969         * ree.c : Likewise.
6970         * reg-stack.c : Likewise.
6971         * regcprop.c : Likewise.
6972         * reginfo.c : Likewise.
6973         * regrename.c : Likewise.
6974         * regstat.c : Likewise.
6975         * reload.c : Likewise.
6976         * reload1.c : Likewise.
6977         * reorg.c : Likewise.
6978         * resource.c : Likewise.
6979         * rtl-chkp.c : Likewise.
6980         * rtl.c : Likewise.
6981         * rtl.h : Likewise.
6982         * rtlanal.c : Likewise.
6983         * rtlhash.c : Likewise.
6984         * rtlhash.h : Likewise.
6985         * rtlhooks.c : Likewise.
6986         * sanopt.c : Likewise.
6987         * sched-deps.c : Likewise.
6988         * sched-ebb.c : Likewise.
6989         * sched-rgn.c : Likewise.
6990         * sched-vis.c : Likewise.
6991         * sdbout.c : Likewise.
6992         * sel-sched-dump.c : Likewise.
6993         * sel-sched-ir.c : Likewise.
6994         * sel-sched-ir.h : Likewise.
6995         * sel-sched.c : Likewise.
6996         * sese.c : Likewise.
6997         * shrink-wrap.c : Likewise.
6998         * shrink-wrap.h : Likewise.
6999         * simplify-rtx.c : Likewise.
7000         * stack-ptr-mod.c : Likewise.
7001         * statistics.c : Likewise.
7002         * stmt.c : Likewise.
7003         * stor-layout.c : Likewise.
7004         * store-motion.c : Likewise.
7005         * stringpool.c : Likewise.
7006         * symtab.c : Likewise.
7007         * target-globals.c : Likewise.
7008         * targhooks.c : Likewise.
7009         * tlink.c : Likewise.
7010         * toplev.c : Likewise.
7011         * tracer.c : Likewise.
7012         * trans-mem.c : Likewise.
7013         * tree-affine.c : Likewise.
7014         * tree-affine.h : Likewise.
7015         * tree-browser.c : Likewise.
7016         * tree-call-cdce.c : Likewise.
7017         * tree-cfg.c : Likewise.
7018         * tree-cfgcleanup.c : Likewise.
7019         * tree-chkp-opt.c : Likewise.
7020         * tree-chkp.c : Likewise.
7021         * tree-chrec.c : Likewise.
7022         * tree-complex.c : Likewise.
7023         * tree-data-ref.c : Likewise.
7024         * tree-dfa.c : Likewise.
7025         * tree-diagnostic.c : Likewise.
7026         * tree-dump.c : Likewise.
7027         * tree-eh.c : Likewise.
7028         * tree-eh.h : Likewise.
7029         * tree-emutls.c : Likewise.
7030         * tree-hasher.h : Likewise.
7031         * tree-if-conv.c : Likewise.
7032         * tree-inline.c : Likewise.
7033         * tree-inline.h : Likewise.
7034         * tree-into-ssa.c : Likewise.
7035         * tree-iterator.c : Likewise.
7036         * tree-loop-distribution.c : Likewise.
7037         * tree-nested.c : Likewise.
7038         * tree-nrv.c : Likewise.
7039         * tree-object-size.c : Likewise.
7040         * tree-outof-ssa.c : Likewise.
7041         * tree-parloops.c : Likewise.
7042         * tree-phinodes.c : Likewise.
7043         * tree-predcom.c : Likewise.
7044         * tree-pretty-print.c : Likewise.
7045         * tree-profile.c : Likewise.
7046         * tree-scalar-evolution.c : Likewise.
7047         * tree-sra.c : Likewise.
7048         * tree-ssa-address.c : Likewise.
7049         * tree-ssa-alias.c : Likewise.
7050         * tree-ssa-ccp.c : Likewise.
7051         * tree-ssa-coalesce.c : Likewise.
7052         * tree-ssa-copy.c : Likewise.
7053         * tree-ssa-copyrename.c : Likewise.
7054         * tree-ssa-dce.c : Likewise.
7055         * tree-ssa-dom.c : Likewise.
7056         * tree-ssa-dse.c : Likewise.
7057         * tree-ssa-forwprop.c : Likewise.
7058         * tree-ssa-ifcombine.c : Likewise.
7059         * tree-ssa-live.c : Likewise.
7060         * tree-ssa-loop-ch.c : Likewise.
7061         * tree-ssa-loop-im.c : Likewise.
7062         * tree-ssa-loop-ivcanon.c : Likewise.
7063         * tree-ssa-loop-ivopts.c : Likewise.
7064         * tree-ssa-loop-manip.c : Likewise.
7065         * tree-ssa-loop-niter.c : Likewise.
7066         * tree-ssa-loop-prefetch.c : Likewise.
7067         * tree-ssa-loop-unswitch.c : Likewise.
7068         * tree-ssa-loop.c : Likewise.
7069         * tree-ssa-math-opts.c : Likewise.
7070         * tree-ssa-operands.c : Likewise.
7071         * tree-ssa-phiopt.c : Likewise.
7072         * tree-ssa-phiprop.c : Likewise.
7073         * tree-ssa-pre.c : Likewise.
7074         * tree-ssa-propagate.c : Likewise.
7075         * tree-ssa-reassoc.c : Likewise.
7076         * tree-ssa-sccvn.c : Likewise.
7077         * tree-ssa-scopedtables.c : Likewise.
7078         * tree-ssa-sink.c : Likewise.
7079         * tree-ssa-strlen.c : Likewise.
7080         * tree-ssa-structalias.c : Likewise.
7081         * tree-ssa-tail-merge.c : Likewise.
7082         * tree-ssa-ter.c : Likewise.
7083         * tree-ssa-threadedge.c : Likewise.
7084         * tree-ssa-threadupdate.c : Likewise.
7085         * tree-ssa-uncprop.c : Likewise.
7086         * tree-ssa-uninit.c : Likewise.
7087         * tree-ssa.c : Likewise.
7088         * tree-ssanames.c : Likewise.
7089         * tree-stdarg.c : Likewise.
7090         * tree-streamer-in.c : Likewise.
7091         * tree-streamer-out.c : Likewise.
7092         * tree-streamer.c : Likewise.
7093         * tree-streamer.h : Likewise.
7094         * tree-switch-conversion.c : Likewise.
7095         * tree-tailcall.c : Likewise.
7096         * tree-vect-data-refs.c : Likewise.
7097         * tree-vect-generic.c : Likewise.
7098         * tree-vect-loop-manip.c : Likewise.
7099         * tree-vect-loop.c : Likewise.
7100         * tree-vect-patterns.c : Likewise.
7101         * tree-vect-slp.c : Likewise.
7102         * tree-vect-stmts.c : Likewise.
7103         * tree-vectorizer.c : Likewise.
7104         * tree-vectorizer.h : Likewise.
7105         * tree-vrp.c : Likewise.
7106         * tree.c : Likewise.
7107         * tsan.c : Likewise.
7108         * ubsan.c : Likewise.
7109         * valtrack.c : Likewise.
7110         * valtrack.h : Likewise.
7111         * value-prof.c : Likewise.
7112         * var-tracking.c : Likewise.
7113         * varasm.c : Likewise.
7114         * varpool.c : Likewise.
7115         * vec.c: Likewise.
7116         * vmsdbgout.c : Likewise.
7117         * vtable-verify.c : Likewise.
7118         * vtable-verify.h : Likewise.
7119         * web.c : Likewise.
7120         * wide-int.cc : Likewise.
7121         * xcoffout.c : Likewise.
7122         * config/aarch64/aarch64-builtins.c : Likewise.
7123         * config/aarch64/aarch64.c : Likewise.
7124         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7125         * config/alpha/alpha.c : Likewise.
7126         * config/arc/arc.c : Likewise.
7127         * config/arm/aarch-common.c : Likewise.
7128         * config/arm/arm-builtins.c : Likewise.
7129         * config/arm/arm-c.c : Likewise.
7130         * config/arm/arm.c : Likewise.
7131         * config/avr/avr-c.c : Likewise.
7132         * config/avr/avr-log.c : Likewise.
7133         * config/avr/avr.c : Likewise.
7134         * config/bfin/bfin.c : Likewise.
7135         * config/c6x/c6x.c : Likewise.
7136         * config/cr16/cr16.c : Likewise.
7137         * config/cris/cris.c : Likewise.
7138         * config/darwin-c.c : Likewise.
7139         * config/darwin.c : Likewise.
7140         * config/default-c.c : Likewise.
7141         * config/epiphany/epiphany.c : Likewise.
7142         * config/epiphany/mode-switch-use.c : Likewise.
7143         * config/epiphany/resolve-sw-modes.c : Likewise.
7144         * config/fr30/fr30.c : Likewise.
7145         * config/frv/frv.c : Likewise.
7146         * config/ft32/ft32.c : Likewise.
7147         * config/glibc-c.c : Likewise.
7148         * config/h8300/h8300.c : Likewise.
7149         * config/i386/i386-c.c : Likewise.
7150         * config/i386/i386.c : Likewise.
7151         * config/i386/msformat-c.c : Likewise.
7152         * config/i386/winnt-cxx.c : Likewise.
7153         * config/i386/winnt-stubs.c : Likewise.
7154         * config/i386/winnt.c : Likewise.
7155         * config/ia64/ia64-c.c : Likewise.
7156         * config/ia64/ia64.c : Likewise.
7157         * config/iq2000/iq2000.c : Likewise.
7158         * config/lm32/lm32.c : Likewise.
7159         * config/m32c/m32c-pragma.c : Likewise.
7160         * config/m32c/m32c.c : Likewise.
7161         * config/m32r/m32r.c : Likewise.
7162         * config/m68k/m68k.c : Likewise.
7163         * config/mcore/mcore.c : Likewise.
7164         * config/mep/mep-pragma.c : Likewise.
7165         * config/mep/mep.c : Likewise.
7166         * config/microblaze/microblaze-c.c : Likewise.
7167         * config/microblaze/microblaze.c : Likewise.
7168         * config/mips/mips.c : Likewise.
7169         * config/mmix/mmix.c : Likewise.
7170         * config/mn10300/mn10300.c : Likewise.
7171         * config/moxie/moxie.c : Likewise.
7172         * config/msp430/msp430-c.c : Likewise.
7173         * config/msp430/msp430.c : Likewise.
7174         * config/nds32/nds32-cost.c : Likewise.
7175         * config/nds32/nds32-fp-as-gp.c : Likewise.
7176         * config/nds32/nds32-intrinsic.c : Likewise.
7177         * config/nds32/nds32-isr.c : Likewise.
7178         * config/nds32/nds32-md-auxiliary.c : Likewise.
7179         * config/nds32/nds32-memory-manipulation.c : Likewise.
7180         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7181         * config/nds32/nds32-predicates.c : Likewise.
7182         * config/nds32/nds32.c : Likewise.
7183         * config/nios2/nios2.c : Likewise.
7184         * config/nvptx/nvptx.c : Likewise.
7185         * config/pa/pa.c : Likewise.
7186         * config/pdp11/pdp11.c : Likewise.
7187         * config/rl78/rl78-c.c : Likewise.
7188         * config/rl78/rl78.c : Likewise.
7189         * config/rs6000/rs6000-c.c : Likewise.
7190         * config/rs6000/rs6000.c : Likewise.
7191         * config/rx/rx.c : Likewise.
7192         * config/s390/s390-c.c : Likewise.
7193         * config/s390/s390.c : Likewise.
7194         * config/sh/sh-c.c : Likewise.
7195         * config/sh/sh-mem.cc : Likewise.
7196         * config/sh/sh.c : Likewise.
7197         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7198         * config/sh/sh_treg_combine.cc : Likewise.
7199         * config/sol2-c.c : Likewise.
7200         * config/sol2-cxx.c : Likewise.
7201         * config/sol2-stubs.c : Likewise.
7202         * config/sol2.c : Likewise.
7203         * config/sparc/sparc-c.c : Likewise.
7204         * config/sparc/sparc.c : Likewise.
7205         * config/spu/spu-c.c : Likewise.
7206         * config/spu/spu.c : Likewise.
7207         * config/stormy16/stormy16.c : Likewise.
7208         * config/tilegx/mul-tables.c : Likewise.
7209         * config/tilegx/tilegx-c.c : Likewise.
7210         * config/tilegx/tilegx.c : Likewise.
7211         * config/tilepro/mul-tables.c : Likewise.
7212         * config/tilepro/tilepro-c.c : Likewise.
7213         * config/tilepro/tilepro.c : Likewise.
7214         * config/v850/v850-c.c : Likewise.
7215         * config/v850/v850.c : Likewise.
7216         * config/vax/vax.c : Likewise.
7217         * config/visium/visium.c : Likewise.
7218         * config/vms/vms-c.c : Likewise.
7219         * config/vms/vms.c : Likewise.
7220         * config/vxworks.c : Likewise.
7221         * config/winnt-c.c : Likewise.
7222         * config/xtensa/xtensa.c : Likewise.
7223
7224 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
7225
7226         PR lto/65378
7227         * ipa-utils.h (warn_types_mismatch): Update prototype.
7228         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7229         parameters.
7230         (type_mismatch_p): New function.
7231         (warn_types_mismatch): Reorg to work better on non-C++ types.
7232         (odr_types_equivalent_p): Add loc1/loc2 parameters.
7233         (add_type_duplicate): Update.
7234
7235 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7236
7237         PR rtl-optimization/66444
7238         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7239         call_used_regs.
7240
7241 2015-06-08  Richard Biener  <rguenther@suse.de>
7242
7243         PR tree-optimization/66422
7244         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7245         block after inserted gcc_unreachable.
7246
7247 2015-06-08  Nick Clifton  <nickc@redhat.com>
7248
7249         * config/rx/rx.c (rx_function_value): Do not promote vector types.
7250         (rx_promote_function_mode): Likewise.
7251         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7252
7253 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
7254
7255         * genattrtab.c (insn_alternatives): Change type from int *
7256         to uint64_t *.
7257         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7258         (get_attr_value): Change type of num_alt to uint64_t.
7259         (compute_alternative_mask): Change return type from
7260         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7261         (make_alternative_compare, mk_attr_alt): Change argument type
7262         from int to uint64_t.
7263         (simplify_test_exp): Change type of i from int to uint64_t.
7264         Shift ((uint64_t) 1) instead of 1 up.
7265         (main): Adjust oballocvec first argument from int to uint64_t.
7266         Shift ((uint64_t) 1) instead of 1 up.
7267
7268 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7269
7270         PR other/65366
7271         * gdbhooks.py: Import sys.
7272         (intptr): New function.  Replace int(...) by intptr(...).
7273
7274 2015-06-08  Richard Biener  <rguenther@suse.de>
7275
7276         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7277         adjustment for gaps at the end of a SLP load group properly.
7278         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7279         all permutations we can generate.
7280         (vect_transform_slp_perm_load): Use the correct group-size.
7281
7282 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
7283
7284         * genmatch.c (expr::gen_transform): For conditions, guess the type
7285         from the second operand.
7286
7287 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7288
7289         PR tree-optimization/66442
7290         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7291         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7292         if the loop latch is not a singleton.  Use
7293         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7294
7295 2015-06-08  Marek Polacek  <polacek@redhat.com>
7296
7297         PR sanitizer/66452
7298         * toplev.c (check_global_declaration): Don't warn about artificial
7299         decls.
7300
7301 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7302
7303         PR tree-optimization/66436
7304         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7305         dump file.
7306         * gimplify.c: Add tree-dump.h include.
7307         (gimplify_function_tree): Dump function to gimple dump file.
7308         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7309         dump file.
7310
7311 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7312
7313         PR tree-optimization/66435
7314         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7315         function.
7316
7317 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
7318
7319         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7320         of ptr_type_node to not be ptr_to_node.
7321         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7322         TREE_TYPE of pointers.
7323         * gimple-expr.c (useless_type_conversion): Reorder the check for
7324         function pointers and TYPE_CANONICAL.
7325
7326 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
7327
7328         PR bootstrap/66319
7329         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7330         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7331         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7332         later.
7333         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7334         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7335         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7336         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7337         and non iso if unix2003.
7338
7339 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
7340
7341         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7342
7343 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
7344
7345         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7346         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7347         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7348         except.c, final.c, function.c, gcse-common.c, genemit.c,
7349         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7350         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7351         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7352         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7353         more derived ones.
7354
7355 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
7356
7357         * combine.c (combine_split_insns): Remove cast.
7358         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7359         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7360         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7361         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7362         * genemit.c (gen_split): Change return type of generated functions to
7363         rtx_insn.
7364         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7365         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7366         gen_peephole2_* functions.
7367         (print_subroutine, main): Likewise.
7368         * recog.c (peephole2_optimize): Remove cast.
7369         (peep2_next_insn): Promote return type to rtx_insn.
7370         * recog.h (peep2_next_insn): Fix prototype.
7371         * rtl.h (try_split, split_insns): Likewise.
7372
7373 2015-06-06  DJ Delorie  <dj@redhat.com>
7374
7375         * config/msp430/msp430.c (msp430_asm_integer): Support addition
7376         and subtraction too.
7377
7378 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7379
7380         PR target/66410
7381         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7382         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7383         instead of Snd.  Disparage Sid/z alternative with '^'.
7384
7385 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
7386
7387         * dwarf2out.c: Remove deferred_locations*.
7388         (dwarf2_debug_hooks): Add early_finish hook.
7389         Remove global_decl hook.
7390         Add early_global_decl and late_global_decl hook.
7391         New global early_dwarf.
7392         New structure set_early_dwarf.
7393         (output_die): Indicate whether a DIE was generated early
7394         when generating assembly with -dA.
7395         (struct limbo_die_struct): Document created_for field.
7396         Remove file_table_last_lookup.
7397         (remove_AT): Return TRUE if successful.
7398         (remove_child_TAG): Clear die_parent.
7399         (reparent_child): New function abstracted from...
7400         (splice_child_die): ...here.
7401         (new_die): ICE if a DIE ends up in limbo too late.
7402         (check_die): New.
7403         (defer_location): Remove.
7404         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7405         (fill_variable_array_bounds): New.
7406         (decl_start_label): Call fill_variable_array_bounds.
7407         (gen_formal_parameter_die): Rewrite to reuse previously generated
7408         DIEs.
7409         (gen_subprogram_die): Same.
7410         (gen_variable_die): Same.
7411         (gen_const_die): Same.
7412         (gen_label_die): Same.
7413         (gen_lexical_block_die): Same.
7414         (decl_will_get_specification_p): New.
7415         (local_function_static): New.
7416         (gen_struct_or_union_type_die): Fill in variable-length fields.
7417         (gen_typedef_die): Fill in variable-length typedefs.
7418         (gen_tagged_type_die): Gracefully return on error_mark_node.
7419         Handle re-entrancy.
7420         (gen_type_die_with_usage): Handle variable-length types.
7421         Remove duplicate code for ARRAY_TYPE case.
7422         (process_scope_var): Only process imported modules during early
7423         dwarf.
7424         (dwarf2out_early_global_decl): New.
7425         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7426         (dwarf2out_type_decl): Set early_dwarf while calling
7427         dwarf2out_decl.
7428         (dwarf2out_decl): Verify that we did not recreate a previously
7429         generated DIE.
7430         Do not return on DECL_EXTERNALs in VAR_DECLs.
7431         Abstract some code to local_function_static.
7432         (lookup_filename): Remove use of file_table_last_lookup.
7433         Gracefully exit on missing file_name.
7434         (dwarf2out_finish): Verify limbo list.
7435         Remove deferred_locations_list use.
7436         Move deferred_asm_name and limbo flushing to...
7437         (dwarf2out_early_finish): ...here.  New.
7438         (dwarf2out_c_finalize): Remove set of deferred_location_list,
7439         deferred_asm_name, and file_table_last_lookup.
7440         * cgraph.h (referred_to_p): Add default argument.
7441         * cgraphunit.c (referred_to_p): Add and handle include_self
7442         argument.
7443         (analyze_functions): Add first_time argument.
7444         Call check_global_declaration for all symbols.
7445         Call late_global_decl for nodes for moribund nodes.
7446         (finalize_compilation_unit): Add new argument to
7447         analyze_functions.
7448         Call early_global_decl for functions.
7449         Call early_finish debug hook.
7450         * dbxout.c (dbxout_early_global_decl): New.
7451         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
7452         (dbx_debug_hooks): Add new hooks.
7453         (xcoff_debug_hooks): Same.
7454         * debug.c (do_nothing_debug_hooks): Add early_finish field.
7455         Add early and late debug hooks.
7456         Remove global_decl hook.
7457         * debug.h (struct gcc_debug_hooks): Add early_finish,
7458         early_global_decl, and late_global_decl fields.
7459         Remove global_decl field.
7460         Document gcc_debug_hooks.
7461         * gengtype.c (output_typename): Remove.
7462         * godump.c (go_early_global_decl): New.
7463         (go_late_global_decl): New.
7464         (go_global_decl): Remove.
7465         (dump_go_spec_init): Remove global_decl.  Add
7466         {early,late}_global_decl.
7467         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7468         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7469         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7470         (write_global_declarations): Remove.
7471         (global_decl_processing): New.
7472         * langhooks.h (struct lang_hooks_for_decls): Remove
7473         final_write_globals field.
7474         Add post_compilation_parsing_cleanups field.
7475         * passes.c (rest_of_decl_compilation): Call early_global_decl.
7476         * sdbout.c: Add early and late_global_decl hooks.  Remove
7477         sdbout_global_decl hook.
7478         Add early_finish field for sdb_debug_hooks.
7479         (sdbout_global_decl): Remove.
7480         (sdbout_early_global_decl): New.
7481         (sdbout_late_global_decl): New.
7482         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7483         * toplev.c (check_global_declaration): Rename from
7484         check_global_declaration_1.
7485         Adapt to use symtab infrastructure.
7486         (check_global_declarations): Remove.
7487         (emit_debug_global_declarations): Remove.
7488         (compile_file): Remove call to final_write_globals langhook.
7489         Run the actual compilation process.
7490         Perform any post compilation parser cleanups.
7491         Generate late debug info.
7492         * toplev.h (check_global_declaration): New.
7493         (check_global_declaration_1): Remove.
7494         (check_global_declarations): Remove.
7495         (write_global_declarations): Remove.
7496         (emit_debug_global_declarations): Remove.
7497         (global_decl_processing): New.
7498         * tree-core.h (struct tree_block): Add DIE field.
7499         * tree.h (BLOCK_DIE): New.
7500         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7501         throughout.
7502         (vmsdbgout_early_global_decl): New.
7503         (vmsdbgout_late_global_decl): New.
7504         Add early_finish debug hook field to vmsdbg_debug_hooks.
7505         Remove vmsdbgout_decl to vmsdbgout_function_decl.
7506         Add early and late_global_decl debug hooks.
7507
7508 2015-06-05  Julian Brown  <julian@codesourcery.com>
7509             Sandra Loosemore  <sandra@codesourcery.com>
7510
7511         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7512         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7513         to print-sysroot-suffix.sh script.
7514
7515 2015-06-05  Tom de Vries  <tom@codesourcery.com>
7516
7517         merge from gomp4 branch:
7518         2015-05-28  Tom de Vries  <tom@codesourcery.com>
7519
7520         PR tree-optimization/65443
7521         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7522         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7523         (try_transform_to_exit_first_loop_alt): New function.
7524         (transform_to_exit_first_loop): Use
7525         try_transform_to_exit_first_loop_alt.
7526
7527 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
7528
7529         * builtins.c (expand_builtin_atomic_compare_exchange): Call
7530         emit_cmp_and_jump_insns with the mode of target.
7531
7532 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7533
7534         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7535
7536 2015-06-04  DJ Delorie  <dj@redhat.com>
7537
7538         * config/msp430/msp430.md (movsi_s): New.  Special case for
7539         storing a 20-bit symbol into a 32-bit register.
7540         * config/msp430/msp430.c (msp430_subreg): Add support for it.
7541         * config/msp430/predicates.md (msp430_symbol_operand): New.
7542
7543 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
7544
7545         * c-family/c-common.c (noplt): New attribute.
7546         (handle_noplt_attribute): New handler.
7547         * calls.c (prepare_call_address): Check for noplt
7548         attribute.
7549         * config/i386/i386.c (ix86_expand_call): Check
7550         for noplt attribute.
7551         (ix86_nopic_noplt_attribute_p): New function.
7552         (ix86_output_call_insn): Output indirect call for non-pic
7553         no plt calls.
7554         * doc/extend.texi (noplt): Document new attribute.
7555         * doc/invoke.texi: Document new attribute.
7556
7557 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
7558
7559         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7560         real.h, and fixed-value.h when included in host source files.
7561         * double-int.h: Remove redundant #includes listed above.
7562         * fixed-value.h: Likewise.
7563         * real.h: Likewise.
7564         * wide-int.h: Likewise.
7565         * inchash.h: Likewise.
7566         * rtl.h: Add some include files When included from a generator file.
7567         * target.h: Remove wide-int.h and insn-modes.h from the include list.
7568         * internal-fn.h: Don't include coretypes.h.
7569         * alias.c: Adjust includes for restructured coretypes.h.
7570         * asan.c: Likewise.
7571         * attribs.c: Likewise.
7572         * auto-inc-dec.c: Likewise.
7573         * auto-profile.c: Likewise.
7574         * bb-reorder.c: Likewise.
7575         * bt-load.c: Likewise.
7576         * builtins.c: Likewise.
7577         * caller-save.c: Likewise.
7578         * calls.c: Likewise.
7579         * ccmp.c: Likewise.
7580         * cfg.c: Likewise.
7581         * cfganal.c: Likewise.
7582         * cfgbuild.c: Likewise.
7583         * cfgcleanup.c: Likewise.
7584         * cfgexpand.c: Likewise.
7585         * cfghooks.c: Likewise.
7586         * cfgloop.c: Likewise.
7587         * cfgloop.h: Likewise.
7588         * cfgloopanal.c: Likewise.
7589         * cfgloopmanip.c: Likewise.
7590         * cfgrtl.c: Likewise.
7591         * cgraph.c: Likewise.
7592         * cgraphbuild.c: Likewise.
7593         * cgraphclones.c: Likewise.
7594         * cgraphunit.c: Likewise.
7595         * cilk-common.c: Likewise.
7596         * combine-stack-adj.c: Likewise.
7597         * combine.c: Likewise.
7598         * compare-elim.c: Likewise.
7599         * convert.c: Likewise.
7600         * coverage.c: Likewise.
7601         * cppbuiltin.c: Likewise.
7602         * cprop.c: Likewise.
7603         * cse.c: Likewise.
7604         * cselib.c: Likewise.
7605         * data-streamer-in.c: Likewise.
7606         * data-streamer-out.c: Likewise.
7607         * data-streamer.c: Likewise.
7608         * dbxout.c: Likewise.
7609         * dce.c: Likewise.
7610         * ddg.c: Likewise.
7611         * debug.c: Likewise.
7612         * df-core.c: Likewise.
7613         * df-problems.c: Likewise.
7614         * df-scan.c: Likewise.
7615         * df.h: Likewise.
7616         * dfp.c: Likewise.
7617         * dojump.c: Likewise.
7618         * dominance.c: Likewise.
7619         * domwalk.c: Likewise.
7620         * double-int.c: Likewise.
7621         * dse.c: Likewise.
7622         * dumpfile.c: Likewise.
7623         * dwarf2asm.c: Likewise.
7624         * dwarf2cfi.c: Likewise.
7625         * dwarf2out.c: Likewise.
7626         * dwarf2out.h: Likewise.
7627         * emit-rtl.c: Likewise.
7628         * et-forest.c: Likewise.
7629         * except.c: Likewise.
7630         * explow.c: Likewise.
7631         * expmed.c: Likewise.
7632         * expr.c: Likewise.
7633         * final.c: Likewise.
7634         * fixed-value.c: Likewise.
7635         * fold-const.c: Likewise.
7636         * function.c: Likewise.
7637         * fwprop.c: Likewise.
7638         * gcc-plugin.h: Likewise.
7639         * gcse.c: Likewise.
7640         * generic-match-head.c: Likewise.
7641         * ggc-page.c: Likewise.
7642         * gimple-builder.c: Likewise.
7643         * gimple-expr.c: Likewise.
7644         * gimple-fold.c: Likewise.
7645         * gimple-iterator.c: Likewise.
7646         * gimple-low.c: Likewise.
7647         * gimple-match-head.c: Likewise.
7648         * gimple-pretty-print.c: Likewise.
7649         * gimple-ssa-isolate-paths.c: Likewise.
7650         * gimple-ssa-strength-reduction.c: Likewise.
7651         * gimple-streamer-in.c: Likewise.
7652         * gimple-streamer-out.c: Likewise.
7653         * gimple-streamer.h: Likewise.
7654         * gimple-walk.c: Likewise.
7655         * gimple.c: Likewise.
7656         * gimplify-me.c: Likewise.
7657         * gimplify.c: Likewise.
7658         * godump.c: Likewise.
7659         * graph.c: Likewise.
7660         * graphite-blocking.c: Likewise.
7661         * graphite-dependences.c: Likewise.
7662         * graphite-interchange.c: Likewise.
7663         * graphite-isl-ast-to-gimple.c: Likewise.
7664         * graphite-optimize-isl.c: Likewise.
7665         * graphite-poly.c: Likewise.
7666         * graphite-scop-detection.c: Likewise.
7667         * graphite-sese-to-poly.c: Likewise.
7668         * graphite.c: Likewise.
7669         * haifa-sched.c: Likewise.
7670         * hooks.h: Likewise.
7671         * hw-doloop.c: Likewise.
7672         * ifcvt.c: Likewise.
7673         * incpath.c: Likewise.
7674         * init-regs.c: Likewise.
7675         * internal-fn.c: Likewise.
7676         * ipa-chkp.c: Likewise.
7677         * ipa-comdats.c: Likewise.
7678         * ipa-cp.c: Likewise.
7679         * ipa-devirt.c: Likewise.
7680         * ipa-icf-gimple.c: Likewise.
7681         * ipa-icf.c: Likewise.
7682         * ipa-inline-analysis.c: Likewise.
7683         * ipa-inline-transform.c: Likewise.
7684         * ipa-inline.c: Likewise.
7685         * ipa-polymorphic-call.c: Likewise.
7686         * ipa-profile.c: Likewise.
7687         * ipa-prop.c: Likewise.
7688         * ipa-pure-const.c: Likewise.
7689         * ipa-ref.c: Likewise.
7690         * ipa-reference.c: Likewise.
7691         * ipa-split.c: Likewise.
7692         * ipa-utils.c: Likewise.
7693         * ipa-visibility.c: Likewise.
7694         * ipa.c: Likewise.
7695         * ira-build.c: Likewise.
7696         * ira-color.c: Likewise.
7697         * ira-conflicts.c: Likewise.
7698         * ira-costs.c: Likewise.
7699         * ira-emit.c: Likewise.
7700         * ira-lives.c: Likewise.
7701         * ira.c: Likewise.
7702         * jump.c: Likewise.
7703         * langhooks.c: Likewise.
7704         * lcm.c: Likewise.
7705         * loop-doloop.c: Likewise.
7706         * loop-init.c: Likewise.
7707         * loop-invariant.c: Likewise.
7708         * loop-iv.c: Likewise.
7709         * loop-unroll.c: Likewise.
7710         * lower-subreg.c: Likewise.
7711         * lra-assigns.c: Likewise.
7712         * lra-coalesce.c: Likewise.
7713         * lra-constraints.c: Likewise.
7714         * lra-eliminations.c: Likewise.
7715         * lra-lives.c: Likewise.
7716         * lra-remat.c: Likewise.
7717         * lra-spills.c: Likewise.
7718         * lra.c: Likewise.
7719         * lto-cgraph.c: Likewise.
7720         * lto-compress.c: Likewise.
7721         * lto-opts.c: Likewise.
7722         * lto-section-in.c: Likewise.
7723         * lto-section-out.c: Likewise.
7724         * lto-streamer-in.c: Likewise.
7725         * lto-streamer-out.c: Likewise.
7726         * lto-streamer.c: Likewise.
7727         * mcf.c: Likewise.
7728         * mode-switching.c: Likewise.
7729         * modulo-sched.c: Likewise.
7730         * omega.c: Likewise.
7731         * omp-low.c: Likewise.
7732         * optabs.c: Likewise.
7733         * opts-global.c: Likewise.
7734         * passes.c: Likewise.
7735         * plugin.c: Likewise.
7736         * postreload-gcse.c: Likewise.
7737         * postreload.c: Likewise.
7738         * predict.c: Likewise.
7739         * print-rtl.c: Likewise.
7740         * print-tree.c: Likewise.
7741         * profile.c: Likewise.
7742         * real.c: Likewise.
7743         * realmpfr.c: Likewise.
7744         * realmpfr.h: Likewise.
7745         * recog.c: Likewise.
7746         * ree.c: Likewise.
7747         * reg-stack.c: Likewise.
7748         * regcprop.c: Likewise.
7749         * reginfo.c: Likewise.
7750         * regrename.c: Likewise.
7751         * regs.h: Likewise.
7752         * regstat.c: Likewise.
7753         * reload.c: Likewise.
7754         * reload1.c: Likewise.
7755         * reorg.c: Likewise.
7756         * resource.c: Likewise.
7757         * rtl-chkp.c: Likewise.
7758         * rtlanal.c: Likewise.
7759         * rtlhooks.c: Likewise.
7760         * sanopt.c: Likewise.
7761         * sched-deps.c: Likewise.
7762         * sched-ebb.c: Likewise.
7763         * sched-rgn.c: Likewise.
7764         * sched-vis.c: Likewise.
7765         * sdbout.c: Likewise.
7766         * sel-sched-dump.c: Likewise.
7767         * sel-sched-ir.c: Likewise.
7768         * sel-sched.c: Likewise.
7769         * sese.c: Likewise.
7770         * shrink-wrap.c: Likewise.
7771         * shrink-wrap.h: Likewise.
7772         * simplify-rtx.c: Likewise.
7773         * stack-ptr-mod.c: Likewise.
7774         * statistics.c: Likewise.
7775         * stmt.c: Likewise.
7776         * stor-layout.c: Likewise.
7777         * store-motion.c: Likewise.
7778         * stringpool.c: Likewise.
7779         * symtab.c: Likewise.
7780         * target-globals.c: Likewise.
7781         * targhooks.c: Likewise.
7782         * toplev.c: Likewise.
7783         * tracer.c: Likewise.
7784         * trans-mem.c: Likewise.
7785         * tree-affine.c: Likewise.
7786         * tree-affine.h: Likewise.
7787         * tree-browser.c: Likewise.
7788         * tree-call-cdce.c: Likewise.
7789         * tree-cfg.c: Likewise.
7790         * tree-cfgcleanup.c: Likewise.
7791         * tree-chkp-opt.c: Likewise.
7792         * tree-chkp.c: Likewise.
7793         * tree-chrec.c: Likewise.
7794         * tree-complex.c: Likewise.
7795         * tree-data-ref.c: Likewise.
7796         * tree-dfa.c: Likewise.
7797         * tree-diagnostic.c: Likewise.
7798         * tree-dump.c: Likewise.
7799         * tree-eh.c: Likewise.
7800         * tree-emutls.c: Likewise.
7801         * tree-if-conv.c: Likewise.
7802         * tree-inline.c: Likewise.
7803         * tree-into-ssa.c: Likewise.
7804         * tree-iterator.c: Likewise.
7805         * tree-loop-distribution.c: Likewise.
7806         * tree-nested.c: Likewise.
7807         * tree-nrv.c: Likewise.
7808         * tree-object-size.c: Likewise.
7809         * tree-outof-ssa.c: Likewise.
7810         * tree-parloops.c: Likewise.
7811         * tree-phinodes.c: Likewise.
7812         * tree-predcom.c: Likewise.
7813         * tree-pretty-print.c: Likewise.
7814         * tree-pretty-print.h: Likewise.
7815         * tree-profile.c: Likewise.
7816         * tree-scalar-evolution.c: Likewise.
7817         * tree-sra.c: Likewise.
7818         * tree-ssa-address.c: Likewise.
7819         * tree-ssa-alias.c: Likewise.
7820         * tree-ssa-ccp.c: Likewise.
7821         * tree-ssa-coalesce.c: Likewise.
7822         * tree-ssa-copy.c: Likewise.
7823         * tree-ssa-copyrename.c: Likewise.
7824         * tree-ssa-dce.c: Likewise.
7825         * tree-ssa-dom.c: Likewise.
7826         * tree-ssa-dse.c: Likewise.
7827         * tree-ssa-forwprop.c: Likewise.
7828         * tree-ssa-ifcombine.c: Likewise.
7829         * tree-ssa-live.c: Likewise.
7830         * tree-ssa-loop-ch.c: Likewise.
7831         * tree-ssa-loop-im.c: Likewise.
7832         * tree-ssa-loop-ivcanon.c: Likewise.
7833         * tree-ssa-loop-ivopts.c: Likewise.
7834         * tree-ssa-loop-manip.c: Likewise.
7835         * tree-ssa-loop-niter.c: Likewise.
7836         * tree-ssa-loop-prefetch.c: Likewise.
7837         * tree-ssa-loop-unswitch.c: Likewise.
7838         * tree-ssa-loop.c: Likewise.
7839         * tree-ssa-loop.h: Likewise.
7840         * tree-ssa-math-opts.c: Likewise.
7841         * tree-ssa-operands.c: Likewise.
7842         * tree-ssa-phiopt.c: Likewise.
7843         * tree-ssa-phiprop.c: Likewise.
7844         * tree-ssa-pre.c: Likewise.
7845         * tree-ssa-propagate.c: Likewise.
7846         * tree-ssa-reassoc.c: Likewise.
7847         * tree-ssa-sccvn.c: Likewise.
7848         * tree-ssa-scopedtables.c: Likewise.
7849         * tree-ssa-sink.c: Likewise.
7850         * tree-ssa-strlen.c: Likewise.
7851         * tree-ssa-structalias.c: Likewise.
7852         * tree-ssa-tail-merge.c: Likewise.
7853         * tree-ssa-ter.c: Likewise.
7854         * tree-ssa-threadedge.c: Likewise.
7855         * tree-ssa-threadupdate.c: Likewise.
7856         * tree-ssa-uncprop.c: Likewise.
7857         * tree-ssa-uninit.c: Likewise.
7858         * tree-ssa.c: Likewise.
7859         * tree-ssanames.c: Likewise.
7860         * tree-stdarg.c: Likewise.
7861         * tree-streamer-in.c: Likewise.
7862         * tree-streamer-out.c: Likewise.
7863         * tree-streamer.c: Likewise.
7864         * tree-switch-conversion.c: Likewise.
7865         * tree-tailcall.c: Likewise.
7866         * tree-vect-data-refs.c: Likewise.
7867         * tree-vect-generic.c: Likewise.
7868         * tree-vect-loop-manip.c: Likewise.
7869         * tree-vect-loop.c: Likewise.
7870         * tree-vect-patterns.c: Likewise.
7871         * tree-vect-slp.c: Likewise.
7872         * tree-vect-stmts.c: Likewise.
7873         * tree-vectorizer.c: Likewise.
7874         * tree-vrp.c: Likewise.
7875         * tree.c: Likewise.
7876         * tsan.c: Likewise.
7877         * ubsan.c: Likewise.
7878         * valtrack.c: Likewise.
7879         * value-prof.c: Likewise.
7880         * var-tracking.c: Likewise.
7881         * varasm.c: Likewise.
7882         * varpool.c: Likewise.
7883         * vmsdbgout.c: Likewise.
7884         * vtable-verify.c: Likewise.
7885         * web.c: Likewise.
7886         * wide-int-print.cc: Likewise.
7887         * wide-int-print.h: Likewise.
7888         * wide-int.cc: Likewise.
7889         * xcoffout.c: Likewise.
7890         * config/aarch64/aarch64-builtins.c: Likewise.
7891         * config/aarch64/aarch64.c: Likewise.
7892         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7893         * config/alpha/alpha.c: Likewise.
7894         * config/arc/arc.c: Likewise.
7895         * config/arm/aarch-common.c: Likewise.
7896         * config/arm/arm-builtins.c: Likewise.
7897         * config/arm/arm-c.c: Likewise.
7898         * config/arm/arm.c: Likewise.
7899         * config/avr/avr-c.c: Likewise.
7900         * config/avr/avr-log.c: Likewise.
7901         * config/avr/avr.c: Likewise.
7902         * config/bfin/bfin.c: Likewise.
7903         * config/c6x/c6x.c: Likewise.
7904         * config/cr16/cr16.c: Likewise.
7905         * config/cris/cris.c: Likewise.
7906         * config/darwin-c.c: Likewise.
7907         * config/darwin.c: Likewise.
7908         * config/default-c.c: Likewise.
7909         * config/epiphany/epiphany.c: Likewise.
7910         * config/epiphany/mode-switch-use.c: Likewise.
7911         * config/epiphany/resolve-sw-modes.c: Likewise.
7912         * config/fr30/fr30.c: Likewise.
7913         * config/frv/frv.c: Likewise.
7914         * config/ft32/ft32.c: Likewise.
7915         * config/glibc-c.c: Likewise.
7916         * config/h8300/h8300.c: Likewise.
7917         * config/i386/i386-c.c: Likewise.
7918         * config/i386/i386.c: Likewise.
7919         * config/i386/msformat-c.c: Likewise.
7920         * config/i386/winnt-cxx.c: Likewise.
7921         * config/i386/winnt-stubs.c: Likewise.
7922         * config/i386/winnt.c: Likewise.
7923         * config/ia64/ia64-c.c: Likewise.
7924         * config/ia64/ia64.c: Likewise.
7925         * config/iq2000/iq2000.c: Likewise.
7926         * config/lm32/lm32.c: Likewise.
7927         * config/m32c/m32c-pragma.c: Likewise.
7928         * config/m32c/m32c.c: Likewise.
7929         * config/m32r/m32r.c: Likewise.
7930         * config/m68k/m68k.c: Likewise.
7931         * config/mcore/mcore.c: Likewise.
7932         * config/mep/mep-pragma.c: Likewise.
7933         * config/mep/mep.c: Likewise.
7934         * config/microblaze/microblaze-c.c: Likewise.
7935         * config/microblaze/microblaze.c: Likewise.
7936         * config/mips/mips.c: Likewise.
7937         * config/mmix/mmix.c: Likewise.
7938         * config/mn10300/mn10300.c: Likewise.
7939         * config/moxie/moxie.c: Likewise.
7940         * config/msp430/msp430-c.c: Likewise.
7941         * config/msp430/msp430.c: Likewise.
7942         * config/nds32/nds32-cost.c: Likewise.
7943         * config/nds32/nds32-fp-as-gp.c: Likewise.
7944         * config/nds32/nds32-intrinsic.c: Likewise.
7945         * config/nds32/nds32-isr.c: Likewise.
7946         * config/nds32/nds32-md-auxiliary.c: Likewise.
7947         * config/nds32/nds32-memory-manipulation.c: Likewise.
7948         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7949         * config/nds32/nds32-predicates.c: Likewise.
7950         * config/nds32/nds32.c: Likewise.
7951         * config/nios2/nios2.c: Likewise.
7952         * config/nvptx/nvptx.c: Likewise.
7953         * config/pa/pa.c: Likewise.
7954         * config/pdp11/pdp11.c: Likewise.
7955         * config/rl78/rl78-c.c: Likewise.
7956         * config/rl78/rl78.c: Likewise.
7957         * config/rs6000/rs6000-c.c: Likewise.
7958         * config/rs6000/rs6000.c: Likewise.
7959         * config/rx/rx.c: Likewise.
7960         * config/s390/s390-c.c: Likewise.
7961         * config/s390/s390.c: Likewise.
7962         * config/sh/sh-c.c: Likewise.
7963         * config/sh/sh-mem.cc: Likewise.
7964         * config/sh/sh.c: Likewise.
7965         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7966         * config/sh/sh_treg_combine.cc: Likewise.
7967         * config/sol2-c.c: Likewise.
7968         * config/sol2-cxx.c: Likewise.
7969         * config/sol2-stubs.c: Likewise.
7970         * config/sol2.c: Likewise.
7971         * config/sparc/sparc-c.c: Likewise.
7972         * config/sparc/sparc.c: Likewise.
7973         * config/spu/spu-c.c: Likewise.
7974         * config/spu/spu.c: Likewise.
7975         * config/stormy16/stormy16.c: Likewise.
7976         * config/tilegx/mul-tables.c: Likewise.
7977         * config/tilegx/tilegx-c.c: Likewise.
7978         * config/tilegx/tilegx.c: Likewise.
7979         * config/tilepro/mul-tables.c: Likewise.
7980         * config/tilepro/tilepro-c.c: Likewise.
7981         * config/tilepro/tilepro.c: Likewise.
7982         * config/v850/v850-c.c: Likewise.
7983         * config/v850/v850.c: Likewise.
7984         * config/vax/vax.c: Likewise.
7985         * config/visium/visium.c: Likewise.
7986         * config/vms/vms-c.c: Likewise.
7987         * config/vms/vms.c: Likewise.
7988         * config/vxworks.c: Likewise.
7989         * config/winnt-c.c: Likewise.
7990         * config/xtensa/xtensa.c: Likewise.
7991         * common/config/bfin/bfin-common.c: Likewise.
7992
7993 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
7994
7995         * tree.h (tree_code_for_canonical_type_merging): New function.
7996         * tree.c (gimple_canonical_types_compatible_p): Use
7997         tree_code_for_canonical_type_merging..
7998
7999 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8000
8001         PR c++/66192
8002         PR target/66200
8003         * doc/tm.texi: Regenerate.
8004         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8005         * target.def (TARGET_RELAXED_ORDERING): Likewise.
8006         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8007         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8008         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8009         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8010         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8011         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8012         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8013
8014 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8015
8016         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8017         register fma steering pass.
8018         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8019         AARCH64_TUNE_FMA_STEERING.
8020
8021 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
8022
8023         * tree.c (verify_type_variant): Verify that type and variant is
8024         compatible.
8025         (gimple_canonical_types_compatible_p): Look for main variants.
8026
8027 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8028
8029         * config.gcc (powerpc*-*-*): Add support for a new configure
8030         option --with-advance-toolchain=<xxx> which overrides using the
8031         default header files, libraries and dynamic linker.
8032
8033         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8034         specs to support the configure --with-advance-toolchain=<xxx>
8035         option.
8036         (INCLUDE_EXTRA_SPEC): Likewise.
8037         (LINK_OS_EXTRA_SPEC32): Likewise.
8038         (LINK_OK_EXTRA_SPEC64): Likewise.
8039         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8040         (DYNAMIC_LINKER_PREFIX): Likewise.
8041         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8042         toolchain support.
8043         (GLIBC_DYNAMIC_LINKER32): Likewise.
8044         (GLIBC_DYNAMIC_LINKER64): Likewise.
8045         (LINK_OS_LINUX_SPEC32): Likewise.
8046         (LINK_OS_LINUX_SPEC64): Likewise.
8047
8048         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8049         configuration option.
8050
8051 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
8052
8053         PR target/66275
8054         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8055         to determine current function ABI.
8056         (ix86_function_value_regno_p): Ditto.
8057
8058 2015-06-03  Martin Liska  <mliska@suse.cz>
8059
8060         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8061         * bitmap.h (struct bitmap_usage): Likewise.
8062         * ggc-common.c (struct ggc_usage): Likewise.
8063         * mem-stats.h (struct mem_location): Likewise.
8064         (struct mem_usage): Likewise.
8065         * vec.c (struct vec_usage): Likewise.
8066
8067 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
8068
8069         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8070         -Bsymbolic.
8071
8072 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
8073
8074         * doc/plugins.texi (enum plugin_event): New event.
8075         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8076         and PLUGIN_FINISH_FUNCTION.
8077         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8078         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8079
8080 2015-06-03  Richard Biener  <rguenther@suse.de>
8081
8082         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8083         compute GROUP_GAP for the first element.
8084         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8085         on in-group gaps.
8086
8087 2015-06-03  Nick Clifton  <nickc@redhat.com>
8088
8089         * config/rl78/rl78-real.md: Add peepholes to avoid a register
8090         copy when calling a function.
8091         * config/rl78/rl78.c (need_to_save): Do not push the frame
8092         pointer in an interrupt handler prologue if it is never used.
8093
8094 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8095
8096         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8097
8098 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8099
8100         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8101         reference when cloning alias node.
8102
8103 2015-06-03  Martin Liska  <mliska@suse.cz>
8104
8105         * alloc-pool.h (struct pool_usage): Correct space padding.
8106         * ggc-page.c (ggc_print_statistics): Align columns in a report.
8107         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8108         * tree.c (dump_tree_statistics): Align columns in a report.
8109
8110 2015-06-03  Martin Liska  <mliska@suse.cz>
8111
8112         * alloc-pool.c (allocate_pool_descriptor): Remove.
8113         (struct pool_output_info): Likewise.
8114         (print_alloc_pool_statistics): Likewise.
8115         (dump_alloc_pool_statistics): Likewise.
8116         * alloc-pool.h (struct pool_usage): New struct.
8117         (pool_allocator::initialize): Change usage of memory statistics
8118         to a new interface.
8119         (pool_allocator::release): Likewise.
8120         (pool_allocator::allocate): Likewise.
8121         (pool_allocator::remove): Likewise.
8122         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8123         for a pool allocator.
8124         * mem-stats.h (struct mem_location): Add new ctor.
8125         (struct mem_usage): Add counter for number of
8126         instances.
8127         (mem_alloc_description::register_descriptor): New overload of
8128         * mem-stats.h (mem_location::to_string): New function.
8129         * bitmap.h (struct bitmap_usage): Use this new function.
8130         * ggc-common.c (struct ggc_usage): Likewise.
8131         the function.
8132
8133 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8134
8135         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8136         of GCC_INSN_FLAGS_H block.
8137
8138 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
8139
8140         * explow.c (plus_constant): Update check after force_const_mem call
8141         to see if the value returned is not a NULL_RTX.
8142
8143 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8144
8145         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8146         remove instumentation thunks calling reachable functions.
8147         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8148         * lto/lto-partition.c (privatize_symbol_name_1): New.
8149         (privatize_symbol_name): Privatize both decl and orig_decl
8150         names for instrumented functions.
8151         * cgraph.c (cgraph_node::verify_node): Add transparent
8152         alias chain check for instrumented node.
8153
8154 2015-06-03  Marek Polacek  <polacek@redhat.com>
8155
8156         PR c/64223
8157         PR c/29358
8158         * tree.c (attribute_value_equal): Handle attribute format.
8159         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8160
8161 2015-06-03  Richard Biener  <rguenther@suse.de>
8162
8163         PR tree-optimization/63916
8164         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8165         Forward-propagate non-invariant addresses by splicing their
8166         reference ops if the result isn't going to be used by PRE.
8167         (vn_reference_lookup_3): Remove pointless assert.
8168
8169 2015-06-03  Richard Biener  <rguenther@suse.de>
8170
8171         PR tree-optimization/66375
8172         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8173         add to the evolution before following SSA edges.
8174
8175 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
8176
8177         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8178         (dump_use, dump_cand, find_induction_variables): Pass new argument
8179         to dump_iv.
8180         (record_use): Preserve the ssa name information in IV.
8181
8182 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8183
8184         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8185         NO_MODE_TEST.
8186         (add_mode_tests): Don't add mode tests if the predicate only
8187         accepts scalar constant integers.  Otherwise, allow the mode
8188         of "op" to be VOIDmode if the predicate does accept such integers.
8189
8190 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
8191
8192         PR target/66258
8193         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8194         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8195         (aarch64_secondary_reload): Likewise
8196         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8197         to !TARGET_FLOAT.
8198         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8199         Likewise.
8200
8201 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
8202             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8203
8204         PR target/65768
8205         * cprop.c (try_replace_reg): Check cost of constants before propagating.
8206
8207 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8208
8209         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8210         provide access to the IBM extended double floating point mode if
8211         long double is IEEE 128-bit floating point.
8212         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8213         point if long double is the IBM extended double type.
8214
8215         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8216         enable adding IEEE 128-bit floating point support.
8217         (-mfloat128-software): Likewise.
8218         (-mfloat128-sw): Likewise.
8219
8220         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8221         128-bit floating point types to occupy any register if
8222         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
8223         -mfloat128-software is enabled.
8224         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8225         support.
8226         (rs6000_option_override_internal): Add -mfloat128-* support.
8227         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8228
8229         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8230         and float128 type nodes.
8231         (ieee128_float_type_node): Likewise.
8232         (ibm128_float_type_node): Likewise.
8233
8234 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8235
8236         PR target/66136
8237         * config/aarch64/geniterators.sh: Rewrite in awk.
8238
8239 2015-06-02  Martin Liska  <mliska@suse.cz>
8240
8241         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8242         values to avoid -Wmaybe-uninitialized errors.
8243
8244 2015-06-02  Richard Biener  <rguenther@suse.de>
8245
8246         PR debug/65549
8247         * dwarf2out.c (lookup_context_die): New function.
8248         (resolve_addr): Avoid forcing a full DIE for the
8249         target of a DW_TAG_GNU_call_site during late compilation.
8250         Instead create a stub DIE without a type if we have a
8251         context DIE present.
8252
8253 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
8254
8255         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8256
8257 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
8258
8259         PR tree-optimization/48052
8260         * cfgloop.h (struct control_iv): New.
8261         (struct loop): New field control_ivs.
8262         * tree-ssa-loop-niter.c : Include "stor-layout.h".
8263         (number_of_iterations_lt): Set no_overflow information.
8264         (number_of_iterations_exit): Init control iv in niter struct.
8265         (record_control_iv): New.
8266         (estimate_numbers_of_iterations_loop): Call record_control_iv.
8267         (loop_exits_before_overflow): New.  Interface factored out of
8268         scev_probably_wraps_p.
8269         (scev_probably_wraps_p): Factor loop niter related code into
8270         loop_exits_before_overflow.
8271         (free_numbers_of_iterations_estimates_loop): Free control ivs.
8272         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8273
8274 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
8275
8276         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8277         the target doesn't belong to the current function.
8278
8279 2015-06-02  Marek Polacek  <polacek@redhat.com>
8280
8281         PR middle-end/66345
8282         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8283         get_maxval_strlen does not produce an INTEGER_CST.
8284
8285 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
8286
8287         * config/arc/constraints.md: Use lower-case names in match_code.
8288         * config/mmix/constraints.md: Likewise.
8289
8290 2015-06-02  Richard Biener  <rguenther@suse.de>
8291
8292         PR tree-optimization/65961
8293         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8294         check and clarify dump message.
8295         (vect_build_slp_tree): If all children are built up from scalars
8296         build up the parent from scalars instead.
8297         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8298
8299 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8300
8301         PR other/65366
8302         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
8303         instead of print ... .
8304
8305 2015-06-02  Alan Modra  <amodra@gmail.com>
8306
8307         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8308         2014-08-11 change.
8309
8310 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
8311
8312         PR tree-optimization/52563
8313         PR tree-optimization/62173
8314         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
8315         (alloc_iv, set_iv): New parameter.
8316         (determine_biv_step): Delete.
8317         (find_bivs): Inline original determine_biv_step.  Pass new
8318         argument to set_iv.
8319         (idx_find_step): Use no_overflow information for conversion.
8320         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8321         resolve_mixers handle folded_casts.
8322         (instantiate_scev_name): Change bool parameter to bool pointer.
8323         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8324         (instantiate_array_ref, instantiate_scev_not): Ditto.
8325         (instantiate_scev_3, instantiate_scev_2): Ditto.
8326         (instantiate_scev_1, instantiate_scev_r): Ditto.
8327         (instantiate_scev_convert, ): Change parameter.  Pass argument
8328         to chrec_convert_aggressive.
8329         (instantiate_scev): Change argument.
8330         (resolve_mixers): New parameter and set it.
8331         (scev_const_prop): New argument.
8332         * tree-scalar-evolution.h (resolve_mixers): New parameter.
8333         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8334         of chrec_conert_1.
8335         (chrec_convert): New parameter.  Move definition below.
8336         (chrec_convert_aggressive): New parameter and set it.  Call
8337         convert_affine_scev.
8338         * tree-chrec.h (chrec_convert): New parameter.
8339         (chrec_convert_aggressive): Ditto.
8340
8341 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8342
8343         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8344         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8345         the LHS of a no-return call if its type has variable size.
8346         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8347         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8348
8349 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
8350
8351         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8352         * config.in: Regenerate.
8353
8354 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8355
8356         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8357         consecutive accesses within outer-loop with force_vectorize
8358         for references with zero step in inner-loop.
8359
8360 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
8361
8362         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8363         rather than from gcc/build directory.
8364
8365 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
8366
8367         PR target/65697
8368         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8369         for __sync memory models, emit initial loads and final barriers as
8370         appropriate.
8371
8372 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
8373
8374         PR target/65697
8375         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8376         (aarch64_split_atomic_op): Check for __sync memory models, emit
8377         appropriate initial loads and final barriers.
8378
8379 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
8380
8381         * Makefile.in: Fix gcov dependencies that should
8382         not point to a build folder.
8383
8384 2015-06-01  Richard Biener  <rguenther@suse.de>
8385
8386         Revert
8387         2015-05-29  Richard Biener  <rguenther@suse.de>
8388
8389         PR tree-optimization/66314
8390         * tree-ssa-threadupdate.c (create_block_for_threading): Add
8391         parameter that says which loop the new block belongs to.
8392         (ssa_create_duplicates): Blocks duplicated for the threaded
8393         path belong to the loop of the thread destination.
8394
8395 2015-06-01  Martin Liska  <mliska@suse.cz>
8396
8397         * sched-deps.c: Include pool-alloc.h before
8398         cselib.h header file is included.
8399
8400 2015-06-01  Richard Biener  <rguenther@suse.de>
8401
8402         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8403         functions.
8404
8405 2015-06-01  Martin Liska  <mliska@suse.cz>
8406
8407         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8408         a function local variable.
8409
8410 2015-06-01  Martin Liska  <mliska@suse.cz>
8411
8412         * alloc-pool.c (create_alloc_pool): Remove.
8413         (empty_alloc_pool): Likewise.
8414         (free_alloc_pool): Likewise.
8415         (free_alloc_pool_if_empty): Likewise.
8416         (pool_alloc): Likewise.
8417         (pool_free): Likewise.
8418         * alloc-pool.h: Remove old declarations.
8419
8420 2015-06-01  Martin Liska  <mliska@suse.cz>
8421
8422         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8423         (ira_create_object): Likewise.
8424         (ira_create_allocno): Likewise.
8425         (ira_create_live_range): Likewise.
8426         (copy_live_range): Likewise.
8427         (ira_finish_live_range): Likewise.
8428         (ira_free_allocno_costs): Likewise.
8429         (finish_allocno): Likewise.
8430         (finish_allocnos): Likewise.
8431         (initiate_prefs): Likewise.
8432         (ira_create_pref): Likewise.
8433         (finish_pref): Likewise.
8434         (finish_prefs): Likewise.
8435         (initiate_copies): Likewise.
8436         (ira_create_copy): Likewise.
8437         (finish_copy): Likewise.
8438         (finish_copies): Likewise.
8439         (finish_prefs): Likewise.
8440
8441 2015-06-01  Martin Liska  <mliska@suse.cz>
8442
8443         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8444         (allocate_and_init_ipcp_value): Likewise.
8445         (ipcp_lattice::add_value): Likewise.
8446         (merge_agg_lats_step): Likewise.
8447         (ipcp_driver): Likewise.
8448         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8449         (ipa_free_all_structures_after_iinln): Likewise.
8450         * ipa-prop.h: Likewise.
8451
8452 2015-06-01  Martin Liska  <mliska@suse.cz>
8453
8454         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8455         pool allocator.
8456         (set_hint_predicate): Likewise.
8457         (inline_summary_alloc): Likewise.
8458         (reset_inline_edge_summary): Likewise.
8459         (reset_inline_summary): Likewise.
8460         (set_cond_stmt_execution_predicate): Likewise.
8461         (set_switch_stmt_execution_predicate): Likewise.
8462         (compute_bb_predicates): Likewise.
8463         (estimate_function_body_sizes): Likewise.
8464         (inline_free_summary): Likewise.
8465
8466 2015-06-01  Martin Liska  <mliska@suse.cz>
8467
8468         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8469         (ipa_edge_duplication_hook): Likewise.
8470         (ipa_free_all_structures_after_ipa_cp): Likewise.
8471         (ipa_free_all_structures_after_iinln): Likewise.
8472
8473 2015-06-01  Martin Liska  <mliska@suse.cz>
8474
8475         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8476         (ipa_profile_generate_summary): Likewise.
8477         (ipa_profile_read_summary): Likewise.
8478         (ipa_profile): Likewise.
8479
8480 2015-06-01  Martin Liska  <mliska@suse.cz>
8481
8482         * tree-ssa-structalias.c (new_var_info): Use new type-based
8483         pool allocator.
8484         (new_constraint): Likewise.
8485         (init_alias_vars): Likewise.
8486         (delete_points_to_sets): Likewise.
8487
8488 2015-06-01  Martin Liska  <mliska@suse.cz>
8489
8490         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8491         (free_strinfo): Likewise.
8492         (pass_strlen::execute): Likewise.
8493
8494 2015-06-01  Martin Liska  <mliska@suse.cz>
8495
8496         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8497         pool allocator.
8498         (vn_reference_insert_pieces): Likewise.
8499         (vn_phi_insert): Likewise.
8500         (visit_reference_op_call): Likewise.
8501         (copy_phi): Likewise.
8502         (copy_reference): Likewise.
8503         (process_scc): Likewise.
8504         (allocate_vn_table): Likewise.
8505         (free_vn_table): Likewise.
8506
8507 2015-06-01  Martin Liska  <mliska@suse.cz>
8508
8509         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8510         pool allocator.
8511         (add_repeat_to_ops_vec): Likewise.
8512         (get_ops): Likewise.
8513         (maybe_optimize_range_tests): Likewise.
8514         (init_reassoc): Likewise.
8515         (fini_reassoc): Likewise.
8516
8517 2015-06-01  Martin Liska  <mliska@suse.cz>
8518
8519         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8520         pool allocator.
8521         (bitmap_set_new): Likewise.
8522         (get_or_alloc_expr_for_constant): Likewise.
8523         (get_or_alloc_expr_for): Likewise.
8524         (phi_translate_1): Likewise.
8525         (compute_avail): Likewise.
8526         (init_pre): Likewise.
8527         (fini_pre): Likewise.
8528
8529 2015-06-01  Martin Liska  <mliska@suse.cz>
8530
8531         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8532         (delete_dep_node): Likewise.
8533         (create_deps_list): Likewise.
8534         (free_deps_list): Likewise.
8535         (sched_deps_init): Likewise.
8536         (sched_deps_finish): Likewise.
8537
8538 2015-06-01  Martin Liska  <mliska@suse.cz>
8539
8540         * regcprop.c (free_debug_insn_changes): Use new type-based
8541         pool allocator.
8542         (replace_oldest_value_reg): Likewise.
8543         (pass_cprop_hardreg::execute): Likewise.
8544
8545 2015-06-01  Martin Liska  <mliska@suse.cz>
8546
8547         * ira-build.c (initiate_cost_vectors): Use new type-based
8548         pool allocator.
8549         (ira_allocate_cost_vector): Likewise.
8550         (ira_free_cost_vector): Likewise.
8551         (finish_cost_vectors): Likewise.
8552
8553 2015-06-01  Martin Liska  <mliska@suse.cz>
8554
8555         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8556         pool allocator.
8557         (free_sched_pools): Likewise.
8558         * sel-sched-ir.h (_list_alloc): Likewise.
8559         (_list_remove): Likewise.
8560
8561 2015-06-01  Martin Liska  <mliska@suse.cz>
8562
8563         * stmt.c (add_case_node): Use new type-based pool allocator.
8564         (expand_case): Likewise.
8565         (expand_sjlj_dispatch_table): Likewise.
8566
8567 2015-06-01  Martin Liska  <mliska@suse.cz>
8568
8569         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8570         (free_bb): Likewise.
8571         (pass_cse_reciprocals::execute): Likewise.
8572
8573 2015-06-01  Martin Liska  <mliska@suse.cz>
8574
8575         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8576         (sra_deinitialize) Likewise.
8577         (create_access_1) Likewise.
8578         (build_accesses_from_assign) Likewise.
8579         (create_artificial_child_access) Likewise.
8580
8581 2015-06-01  Martin Liska  <mliska@suse.cz>
8582
8583         * dse.c (get_group_info):Use new type-based pool allocator.
8584         (dse_step0) Likewise.
8585         (free_store_info) Likewise.
8586         (delete_dead_store_insn) Likewise.
8587         (free_read_records) Likewise.
8588         (record_store) Likewise.
8589         (replace_read) Likewise.
8590         (check_mem_read_rtx) Likewise.
8591         (scan_insn) Likewise.
8592         (dse_step1) Likewise.
8593         (dse_step7) Likewise.
8594
8595 2015-06-01  Martin Liska  <mliska@suse.cz>
8596
8597         * df-scan.c (struct df_scan_problem_data):Use new type-based
8598         pool allocator.
8599         (df_scan_free_internal) Likewise.
8600         (df_scan_alloc) Likewise.
8601         (df_grow_reg_info) Likewise.
8602         (df_free_ref) Likewise.
8603         (df_insn_create_insn_record) Likewise.
8604         (df_mw_hardreg_chain_delete) Likewise.
8605         (df_insn_info_delete) Likewise.
8606         (df_free_collection_rec) Likewise.
8607         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8608         (df_sort_and_compress_mws) Likewise.
8609         (df_ref_create_structure) Likewise.
8610         (df_ref_record) Likewise.
8611
8612 2015-06-01  Martin Liska  <mliska@suse.cz>
8613
8614         * df-problems.c (df_chain_create):Use new type-based pool allocator.
8615         (df_chain_unlink_1) Likewise.
8616         (df_chain_unlink) Likewise.
8617         (df_chain_remove_problem) Likewise.
8618         (df_chain_alloc) Likewise.
8619         (df_chain_free) Likewise.
8620         * df.h (struct dataflow) Likewise.
8621
8622 2015-06-01  Martin Liska  <mliska@suse.cz>
8623
8624         * cselib.c (new_elt_list):Use new type-based pool allocator.
8625         (new_elt_loc_list) Likewise.
8626         (unchain_one_elt_list) Likewise.
8627         (unchain_one_elt_loc_list) Likewise.
8628         (unchain_one_value) Likewise.
8629         (new_cselib_val) Likewise.
8630         (cselib_init) Likewise.
8631         (cselib_finish) Likewise.
8632
8633 2015-06-01  Martin Liska  <mliska@suse.cz>
8634
8635         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8636         (sh_reorg) Likewise.
8637
8638 2015-06-01  Martin Liska  <mliska@suse.cz>
8639
8640         * cfg.c (initialize_original_copy_tables):Use new type-based
8641         pool allocator.
8642         (free_original_copy_tables) Likewise.
8643         (copy_original_table_clear) Likewise.
8644         (copy_original_table_set) Likewise.
8645
8646 2015-06-01  Martin Liska  <mliska@suse.cz>
8647
8648         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8649         pool allocator.
8650         (asan_mem_ref_new) Likewise.
8651         (free_mem_ref_resources) Likewise.
8652
8653 2015-06-01  Martin Liska  <mliska@suse.cz>
8654
8655         * var-tracking.c (variable_htab_free):Use new type-based
8656         pool allocator.
8657         (attrs_list_clear) Likewise.
8658         (attrs_list_insert) Likewise.
8659         (attrs_list_copy) Likewise.
8660         (shared_hash_unshare) Likewise.
8661         (shared_hash_destroy) Likewise.
8662         (unshare_variable) Likewise.
8663         (var_reg_delete_and_set) Likewise.
8664         (var_reg_delete) Likewise.
8665         (var_regno_delete) Likewise.
8666         (drop_overlapping_mem_locs) Likewise.
8667         (variable_union) Likewise.
8668         (insert_into_intersection) Likewise.
8669         (canonicalize_values_star) Likewise.
8670         (variable_merge_over_cur) Likewise.
8671         (dataflow_set_merge) Likewise.
8672         (remove_duplicate_values) Likewise.
8673         (variable_post_merge_new_vals) Likewise.
8674         (dataflow_set_preserve_mem_locs) Likewise.
8675         (dataflow_set_remove_mem_locs) Likewise.
8676         (variable_from_dropped) Likewise.
8677         (variable_was_changed) Likewise.
8678         (set_slot_part) Likewise.
8679         (clobber_slot_part) Likewise.
8680         (delete_slot_part) Likewise.
8681         (loc_exp_insert_dep) Likewise.
8682         (notify_dependents_of_changed_value) Likewise.
8683         (emit_notes_for_differences_1) Likewise.
8684         (vt_emit_notes) Likewise.
8685         (vt_initialize) Likewise.
8686         (vt_finalize) Likewise.
8687
8688 2015-06-01  Martin Liska  <mliska@suse.cz>
8689
8690         * ira-color.c (init_update_cost_records):Use new type-based
8691         pool allocator.
8692         (get_update_cost_record) Likewise.
8693         (free_update_cost_record_list) Likewise.
8694         (finish_update_cost_records) Likewise.
8695         (initiate_cost_update) Likewise.
8696
8697 2015-06-01  Martin Liska  <mliska@suse.cz>
8698
8699         * lra.c (init_insn_regs): Use new type-based pool allocator.
8700         (new_insn_reg) Likewise.
8701         (free_insn_reg) Likewise.
8702         (free_insn_regs) Likewise.
8703         (finish_insn_regs) Likewise.
8704         (init_insn_recog_data) Likewise.
8705         (init_reg_info) Likewise.
8706         (finish_reg_info) Likewise.
8707         (lra_free_copies) Likewise.
8708         (lra_create_copy) Likewise.
8709         (invalidate_insn_data_regno_info) Likewise.
8710
8711 2015-06-01  Martin Liska  <mliska@suse.cz>
8712
8713         * lra-lives.c (free_live_range): Use new type-based pool allocator.
8714         (free_live_range_list) Likewise.
8715         (create_live_range) Likewise.
8716         (copy_live_range) Likewise.
8717         (lra_merge_live_ranges) Likewise.
8718         (remove_some_program_points_and_update_live_ranges) Likewise.
8719         (lra_live_ranges_init) Likewise.
8720         (lra_live_ranges_finish) Likewise.
8721
8722 2015-06-01  Martin Liska  <mliska@suse.cz>
8723
8724         * et-forest.c (et_new_occ): Use new type-based pool allocator.
8725         (et_new_tree): Likewise.
8726         (et_free_tree): Likewise.
8727         (et_free_tree_force): Likewise.
8728         (et_free_pools): Likewise.
8729         (et_split): Likewise.
8730
8731 2015-06-01  Martin Liska  <mliska@suse.cz>
8732
8733         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8734         to header file.
8735         * alloc-pool.h (pool_allocator::pool_allocator): New function.
8736         (pool_allocator::release): Likewise.
8737         (inline pool_allocator::release_if_empty): Likewise.
8738         (inline pool_allocator::~pool_allocator): Likewise.
8739         (pool_allocator::allocate): Likewise.
8740         (pool_allocator::remove): Likewise.
8741
8742 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8743
8744         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8745         in comment.
8746
8747 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8748
8749         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8750         to fusible_ops.
8751         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8752         (arm_macro_fusion_p): Likewise.
8753         (arm_macro_fusion_pair_p): Likewise.
8754
8755 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8756
8757         * config/aarch64/aarch64-protos.h (tune_params): Rename
8758         fuseable_ops to fusible_ops.
8759         * config/aarch64/aarch64.c (generic_tunings): Rename
8760         fuseable_ops to fusible_ops.
8761         (cortexa53_tunings): Likewise.
8762         (cortexa57_tunings): Likewise.
8763         (thunderx_tunings): Likewise.
8764         (xgene1_tunings): Likewise.
8765         (aarch64_macro_fusion_p): Likewise.
8766         (aarch64_macro_fusion_pair_p): Likewise.
8767
8768 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8769
8770         * config/s390/driver-native.c: New file.
8771         * config/s390/x-native: New file.
8772         * config.host: Add new files for s390.
8773         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8774         and -march=native
8775         * config.gcc: Likewise.
8776         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8777         * config/s390/s390-opts.h (enum processor_type): Ditto.
8778         * config/s390/s390.c (s390_option_override): Catch unhandled
8779         PROCESSOR_NATIVE
8780
8781 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
8782
8783         PR target/65527
8784         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8785         redirection for instrumented calls.
8786         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8787         (append_compiler_options): Append -fcheck-pointer-bounds.
8788         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8789         (chkp_redirect_edge): New.
8790         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8791         (chkp_redirect_edge): New.
8792
8793 2015-06-01  Richard Biener  <rguenther@suse.de>
8794
8795         PR tree-optimization/66280
8796         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8797         def-use walking.
8798
8799 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8800
8801         * config/aarch64/aarch64.md
8802         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8803         logic_shift_imm.
8804
8805 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8806
8807         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8808         Remove obsolete kludge.
8809
8810 2015-06-01  Richard Biener  <rguenther@suse.de>
8811
8812         * tree-ssa-reassoc.c (get_rank): Simplify.
8813
8814 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8815
8816         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8817         * configure: Regenerated.
8818
8819 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
8820
8821         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8822         issue (add space between string literal and macro).
8823         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8824
8825 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
8826
8827         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8828         implict or explicit -fPIE or -fpie.
8829
8830 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
8831
8832         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8833
8834 2015-05-28  DJ Delorie  <dj@redhat.com>
8835
8836         * expmed.c (extract_bit_field_1): Avoid clobbering a
8837         yet-to-be-used base/index register.
8838
8839 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
8840
8841         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8842         (alias_stats): Add num_universal.
8843         (alias_set_subset_of): Special case pointers; be ready for NULL
8844         children.
8845         (alias_sets_conflict_p): Special case pointers; be ready for NULL
8846         children.
8847         (init_alias_set_entry): Break out from ...
8848         (record_alias_subset): ... here; propagate new fields;
8849         allocate children only when really needed.
8850         (get_alias_set): Do less generous pointer globbing.
8851         (dump_alias_stats_in_alias_c): Update statistics.
8852
8853 2015-05-30  Alan Modra  <amodra@gmail.com>
8854
8855         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8856         correct block for use of r12.
8857         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8858
8859 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8860
8861         PR target/66215
8862         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8863         with -mhotpatch=.
8864
8865 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
8866
8867         PR tree-optimization/66142
8868         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8869         virtual phis that feed themselves.
8870
8871 2015-05-29  Richard Biener  <rguenther@suse.de>
8872
8873         PR tree-optimization/66314
8874         * tree-ssa-threadupdate.c (create_block_for_threading): Add
8875         parameter that says which loop the new block belongs to.
8876         (ssa_create_duplicates): Blocks duplicated for the threaded
8877         path belong to the loop of the thread destination.
8878
8879 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8880
8881         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8882         to cleanup-saved-temps.
8883         * doc/sourcebuild.texi (Clean up generated test files): Expand
8884         introduction.
8885         (dg-keep-saved-temps): Document new proc.
8886         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8887         cleanup-saved-temps): Remove.
8888
8889 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
8890
8891         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8892         gcc_AC_CHECK_DECLS.
8893         * configure: Regenerate.
8894
8895 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8896
8897         * config/nios2/linux.h (CPP_SPEC): Define.
8898
8899 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8900
8901         * config/microblaze/linux.h (CPP_SPEC): Define.
8902
8903 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8904
8905         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8906         -pthread is specified.
8907
8908 2015-05-28  Richard Biener  <rguenther@suse.de>
8909
8910         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8911         (vect_fixup_scalar_cycles_with_patterns): Likewise.
8912         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8913         after pattern recog.
8914         (vect_create_epilog_for_reduction): Properly handle reductions
8915         with patterns.
8916         (vectorizable_reduction): Likewise.
8917         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8918         reduction chains.
8919         (vect_get_constant_vectors): Create the correct number of
8920         initial values for reductions.
8921         (vect_schedule_slp_instance): Handle reduction chains that are
8922         type changing properly.
8923         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8924
8925 2015-05-28  Richard Biener  <rguenther@suse.de>
8926
8927         PR tree-optimization/66142
8928         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8929         values better in memcpy destination handling.  Handle non-aliasing
8930         we discover here.
8931
8932 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
8933
8934         PR target/63810
8935         * config/darwin-c.c (version_components): New global enum.
8936         (parse_version, version_as_legacy_macro)
8937         (version_as_modern_macro, macosx_version_as_macro): New functions.
8938         (version_as_macro): Remove.
8939         (darwin_cpp_builtins): Use new function.
8940
8941 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
8942
8943         * builtins.c (expand_builtin_acc_on_device): Mark parameters
8944         with ATTRIBUTE_UNUSED.
8945
8946 2015-05-28  Julian Brown  <julian@codesourcery.com>
8947
8948         PR libgomp/65742
8949
8950         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
8951         sequence for !ACCEL_COMPILER.
8952
8953 2015-05-28  Nick Clifton  <nickc@redhat.com>
8954
8955         * config/rx/rx.c (push_regs): New function.  Extracts code from...
8956         (rx_expand_prologue): ... here.  Use push_regs to push even small
8957         spans of registers.
8958         (pop_regs): New function.
8959         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
8960         registers.
8961
8962 2015-05-28  Richard Biener  <rguenther@suse.de>
8963
8964         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
8965         member.
8966         (SLP_INSTANCE_BODY_COST_VEC): Remove.
8967         (vect_update_slp_costs_according_to_vf): Likewise.
8968         (vect_slp_analyze_operations): Update prototype.
8969         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
8970         vect_update_slp_costs_according_to_vf, adjust.
8971         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
8972         (vect_analyze_slp_cost_1): Likewise.
8973         (vect_analyze_slp_cost): Likewise.  Properly deal with
8974         widening reduction ops.  Commit body costs.
8975         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
8976         cost for loops from here.
8977         (vect_slp_analyze_operations): But do it from here when
8978         the vectorization factor is known and stmts are analyzed.
8979         (vect_bb_vectorization_profitable_p): Simplify.
8980         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
8981         (vect_update_slp_costs_according_to_vf): Remove.
8982
8983 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
8984             H.J. Lu  <hongjiu.lu@intel.com>
8985
8986         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
8987         (BUILD_CFLAGS): Likewise.
8988         (BUILD_CXXFLAGS): Likewise.
8989         (LINKER): Add @NO_PIE_FLAG@.
8990         (BUILD_LDFLAGS): Likewise.
8991         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
8992         --enable-default-pie.
8993         * common.opt (fPIE): Initialize to -1.
8994         (fpie): Likewise.
8995         (no-pie): New option.
8996         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
8997         * configure.ac: Add --enable-default-pie.
8998         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
8999         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
9000         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
9001         * gcc.c (NO_PIE_SPEC): New.
9002         (PIE_SPEC): Likewise.
9003         (NO_FPIE1_SPEC): Likewise.
9004         (FPIE1_SPEC): Likewise.
9005         (NO_FPIE2_SPEC): Likewise.
9006         (FPIE2_SPEC): Likewise.
9007         (NO_FPIE2_SPEC): Likewise.
9008         (FPIE_SPEC): Likewise.
9009         (NO_FPIE_SPEC): Likewise.
9010         (NO_FPIC1_SPEC): Likewise.
9011         (FPIC1_SPEC): Likewise.
9012         (NO_FPIC2_SPEC): Likewise.
9013         (FPIC2_SPEC): Likewise.
9014         (NO_FPIC2_SPEC): Likewise.
9015         (FPIC_SPEC): Likewise.
9016         (NO_FPIC_SPEC): Likewise.
9017         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9018         (FPIE1_OR_FPIC1_SPEC): Likewise.
9019         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9020         (FPIE2_OR_FPIC2_SPEC): Likewise.
9021         (NO_FPIE_AND_FPIC_SPEC): Likewise.
9022         (FPIE_OR_FPIC_SPEC): Likewise.
9023         (LD_PIE_SPEC): Likewise.
9024         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
9025         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9026         * config/darwin.h (PIE_SPEC): Renamed to ...
9027         (DARWIN_PIE_SPEC): This.
9028         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9029         * config/darwin9.h (PIE_SPEC): Renamed to ...
9030         (DARWIN_PIE_SPEC): This.
9031         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9032         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9033         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9034         FPIE2_OR_FPIC2_SPEC.
9035         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9036         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9037         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9038         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9039         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9040         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9041         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9042         * config/m32r/m32r.h (ASM_SPEC): Likewise.
9043         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9044         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9045         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9046         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9047         * config/sparc/linux.h (ASM_SPEC): Likewise.
9048         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9049         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9050         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9051         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9052         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9053         * config/sparc/sparc.h (ASM_SPEC): Likewise.
9054         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9055         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9056         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9057         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9058         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9059         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9060         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9061         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9062         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9063         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9064         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9065         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9066         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9067         * config/vax/linux.h (ASM_SPEC): Likewise.
9068         * doc/install.texi: Document --enable-default-pie.
9069         * doc/invoke.texi: Document -no-pie.
9070         * config.in: Regenerated.
9071         * configure: Likewise.
9072
9073 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9074
9075         PR rtl-optimization/66168
9076         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9077         can_move_invariant_reg.
9078
9079 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
9080
9081         PR target/66148
9082         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9083         REG_EQUAL note when doing insert.
9084
9085         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9086         instead of "%d" for 'o' operand.
9087
9088 2015-05-27  Nathan Sidwell  <nathan@acm.org>
9089
9090         PR c++/66270
9091         * tree.c (build_pointer_type_for_mode): Canonical type does not
9092         inherit can_alias_all.
9093         (build_reference_type_for_mode): Likewise.
9094
9095 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
9096
9097         * expr.h (array_at_struct_end_p): Move to...
9098         (array_ref_element_size): Likewise.
9099         (component_ref_field_offset): Likewise.
9100         * tree.h (array_ref_element_size): ...here.
9101         (array_at_struct_end_p): Likewise.
9102         (component_ref_field_offset): Likewise.
9103         * expr.c (array_ref_element_size): Move to...
9104         (array_ref_low_bound): Likewise.
9105         (array_at_struct_end_p): Likewise.
9106         (array_ref_up_bound): Likewise.
9107         (component_ref_field_offset): Likewise.
9108         * tree.c (array_ref_element_size): ...here.
9109         (array_ref_low_bound): Likewise.
9110         (array_ref_up_bound): Likewise.
9111         (array_at_struct_end_p): Likewise.
9112         (component_ref_field_offset): Likewise.
9113
9114 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9115             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9116
9117         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9118
9119 2015-05-27  Jason Merrill  <jason@redhat.com>
9120
9121         PR bootstrap/66304
9122         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9123         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9124         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9125
9126 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
9127
9128         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9129         is true.
9130
9131         * statistics.c (statistics_fini_pass): Print pass name.
9132
9133 2015-05-27  Richard Biener  <rguenther@suse.de>
9134
9135         PR tree-optimization/66272
9136         Revert parts of
9137         2014-08-15  Richard Biener  <rguenther@suse.de>
9138
9139         PR tree-optimization/62031
9140         * tree-data-ref.c (dr_analyze_indices): Do not set
9141         DR_UNCONSTRAINED_BASE.
9142         (dr_may_alias_p): All indirect accesses have to go the
9143         formerly DR_UNCONSTRAINED_BASE path.
9144         * tree-data-ref.h (struct indices): Remove
9145         unconstrained_base member.
9146         (DR_UNCONSTRAINED_BASE): Remove.
9147
9148 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
9149
9150         * dwarf2out.c: Remove block_map.
9151         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9152         (gen_lexical_block_die): Same.
9153         (dwarf2out_function_decl): Remove block_map use.
9154         (dwarf2out_c_finalize): Same.
9155         * tree-core.h (struct tree_block): Add die field.
9156         * tree.h (BLOCK_DIE): New.
9157
9158 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9159
9160         PR target/65358
9161         * expr.c (memory_load_overlap): New function.
9162         (emit_push_insn): When pushing partial args to the stack would
9163         clobber the register part load the overlapping part into a pseudo
9164         and put it into the hard reg after pushing.  Change return type
9165         to bool.  Add bool argument.
9166         * expr.h (emit_push_insn): Change return type to bool.
9167         Add bool argument.
9168         * calls.c (expand_call): Cancel sibcall optimization when encountering
9169         partial argument on targets with ARGS_GROW_DOWNWARD and
9170         !STACK_GROWS_DOWNWARD.
9171         (emit_library_call_value_1): Update callsite of emit_push_insn.
9172         (store_one_arg): Likewise.
9173
9174 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9175
9176         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9177
9178 2015-05-27  Martin Liska  <mliska@suse.cz>
9179
9180         * Makefile.in: Add additional dependencies related to memory report
9181         enhancement.
9182         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9183         * bitmap.c (struct bitmap_descriptor_d): Remove.
9184         (struct loc): Likewise.
9185         (struct bitmap_desc_hasher): Likewise.
9186         (bitmap_desc_hasher::hash): Likewise.
9187         (bitmap_desc_hasher::equal): Likewise.
9188         (get_bitmap_descriptor): Likewise.
9189         (bitmap_register): User new memory descriptor API.
9190         (register_overhead): Likewise.
9191         (bitmap_find_bit): Register nsearches and search_iter statistics.
9192         (struct bitmap_output_info): Remove.
9193         (print_statistics): Likewise.
9194         (dump_bitmap_statistics): Use new memory descriptor.
9195         * bitmap.h (struct bitmap_usage): New class.
9196         * genmatch.c: Extend header file inclusion.
9197         * genpreds.c: Likewise.
9198         * ggc-common.c (struct ggc_usage): New class.
9199         (struct ggc_loc_desc_hasher): Remove.
9200         (ggc_loc_desc_hasher::hash): Likewise.
9201         (ggc_loc_desc_hasher::equal): Likewise.
9202         (struct ggc_ptr_hash_entry): Likewise.
9203         (struct ptr_hash_hasher): Likewise.
9204         (ptr_hash_hasher::hash): Likewise.
9205         (ptr_hash_hasher::equal): Likewise.
9206         (make_loc_descriptor): Likewise.
9207         (ggc_prune_ptr): Likewise.
9208         (dump_ggc_loc_statistics): Use new memory descriptor.
9209         (ggc_record_overhead): Likewise.
9210         (ggc_free_overhead): Likewise.
9211         (final_cmp_statistic): Remove.
9212         (cmp_statistic): Likewise.
9213         (ggc_add_statistics): Liekwise.
9214         (ggc_prune_overhead_list): Likewise.
9215         * hash-map-traits.h: New file.
9216         * hash-map.h (struct default_hashmap_traits): Move the traits to a
9217         separate header file.
9218         * hash-set.h: Pass memory statistics info to ctor.
9219         * hash-table.c (void dump_hash_table_loc_statistics): New function.
9220         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9221         (hash_table::~hash_table): Register memory release operation.
9222         (hash_table::alloc_entries): Handle memory allocation operation.
9223         (hash_table::expand): Likewise.
9224         * inchash.c (iterative_hash_hashval_t): Move implementation to header
9225         file.
9226         (iterative_hash_host_wide_int): Likewise.
9227         * inchash.h (class hash): Likewise.
9228         * mem-stats-traits.h: New file.
9229         * mem-stats.h: New file.
9230         (mem_location): Add new class.
9231         (mem_usage): Likewise.
9232         (mem_alloc_description): Likewise.
9233         * sese.c: Add new header file inclusision.
9234         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9235         and hash_set.
9236         * tree-sra.c: Add new header file inclusision.
9237         * vec.c (struct vec_descriptor): Remove.
9238         (hash_descriptor): Likewise.
9239         (struct vec_usage): Likewise.
9240         (struct ptr_hash_entry): Likewise.
9241         (hash_ptr): Likewise.
9242         (eq_ptr): Likewise.
9243         (vec_prefix::register_overhead): Use new memory descriptor API.
9244         (vec_prefix::release_overhead): Likewise.
9245         (add_statistics): Remove.
9246         (dump_vec_loc_statistics): Use new memory descriptor API.
9247         * vec.h (struct vec_prefix): Likewise.
9248         (va_heap::reserve): Likewise.
9249         (va_heap::release): Likewise.
9250         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9251
9252 2015-05-27  Richard Biener  <rguenther@suse.de>
9253
9254         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9255         earlier and remove ??? comment.
9256         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9257         and got called from loop analysis bail out.  Always pass the SLP
9258         node to the vectorizable_* functions.
9259         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9260         the premature SLP check here.
9261         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9262         detected SLP stmts.
9263         (vect_detect_hybrid_slp_1): Likewise.
9264
9265 2015-05-26  Jeff Law  <law@redhat.com>
9266
9267         * combine.c (find_split_point): Verify that the shift count is a
9268         constant when choosing (plus (ashift ...)) as a split point.
9269
9270         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9271         No functional changes.
9272
9273 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
9274
9275         * ipa-polymorphic-call.c
9276         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9277         case when call target is already known.
9278
9279 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
9280
9281         PR target/65979
9282         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9283         take into account the case that operands[1] and operands[2]
9284         are the same register.
9285
9286 2015-05-26  Michael Matz  <matz@suse.de>
9287
9288         PR middle-end/66251
9289
9290         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9291         stores.
9292         (vect_create_vectorized_demotion_stmts): Always set
9293         STMT_VINFO_VEC_STMT, also with SLP.
9294         (vectorizable_store): Handle strided group stores.
9295
9296 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9297
9298         PR target/66049
9299         * config/aarch64/aarch64.md
9300         (*adds_shift_imm_<mode>):  New pattern.
9301         (*subs_shift_imm_<mode>):  Likewise.
9302         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
9303         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9304         (*add_uxt<mode>_shift2): Likewise.
9305         (*add_uxtsi_shift2_uxtw): Likewise.
9306         (*sub_uxt<mode>_shift2): Likewise.
9307         (*sub_uxtsi_shift2_uxtw): Likewise.
9308
9309 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
9310
9311         * config/rs6000/constraints.md (Y, U): Use match_test.
9312
9313 2015-05-26  Christian Bruel  <christian.bruel@st.com>
9314
9315         PR target/52144
9316         * config/arm/arm.c (arm_option_check_internal)
9317         (arm_option_params_internal): Check opts->target_flags to set macros.
9318         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9319         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9320         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9321         (builtin_define): Replaced with def_or_undef_macro.
9322         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9323         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9324         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9325         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9326         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9327         (TARGET_ARM_FEATURE_LDREX_P)
9328         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9329         * config/arm/arm-c.c (def_or_undef_macro): New function.
9330         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9331
9332 2015-05-26  Christian Bruel  <christian.bruel@st.com>
9333
9334         * c-common.h (builtin_define_with_int_value)
9335         (builtin_define_type_sizeof): Declare.
9336         * c-cppbuiltin.c (builtin_define_with_int_value)
9337         (builtin_define_type_sizeof): Externalize.
9338         (builtin_define_std): Cleanup declaration.
9339         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9340         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9341         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9342         (builtin_define, builtin_assert): New macros.
9343
9344 2015-05-26  Richard Biener  <rguenther@suse.de>
9345
9346         PR tree-optimization/66142
9347         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9348         MEM_REFs for the same base address.
9349
9350 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9351
9352         PR ipa/66181
9353         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9354
9355 2015-05-26  Jason Merrill  <jason@redhat.com>
9356
9357         * configure.ac: Set CXXFLAGS for ISL test.
9358         * configure: Regenerate.
9359
9360         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
9361         strstr and basename.
9362         * configure: Regenerate.
9363
9364 2015-05-26  Richard Biener  <rguenther@suse.de>
9365
9366         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9367         X % C -> X & (C - 1) for C being a power-of two to ...
9368         * match.pd: ... patterns.
9369
9370 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
9371
9372         * match.pd (swapped_tcc_comparison): New operator list.
9373         (-A CMP -B): New simplification.
9374         * fold-const.c (fold_comparison): Remove corresponding code.
9375
9376 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
9377
9378         * caller-save.c (init_caller_save): Base temporary register numbers
9379         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9380         * cfgloopanal.c (init_set_costs): Likewise.
9381         * dojump.c (prefer_and_bit_test): Likewise.
9382         * expr.c (init_expr_target): Likewise.
9383         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9384         * lower-subreg.c (init_lower_subreg): Likewise.
9385         * postreload.c (reload_cse_regs_1): Likewise.
9386
9387 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
9388
9389         * gensupport.h (compute_test_codes): Declare.
9390         * gensupport.c (compute_predicate_codes): Rename to...
9391         (compute_test_codes): ...this.  Generalize error message.
9392         (process_define_predicate): Update accordingly.
9393         * genpreds.c (compute_maybe_allows): Delete.
9394         (add_constraint): Use compute_test_codes to determine whether
9395         something can accept a SUBREG, REG or MEM.
9396
9397 2015-05-26  Torvald Riegel  <triegel@redhat.com>
9398
9399         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9400         'memory model' to align with C++11; fix description of memory orders;
9401         fix a few typos.
9402
9403 2015-05-26  Richard Biener  <rguenther@suse.de>
9404
9405         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9406         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
9407         detect whether we apply SLP.  Remove call to
9408         vect_update_slp_costs_according_to_vf.
9409         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9410         vect_update_slp_costs_according_to_vf from here.  Dispatch
9411         to vect_slp_analyze_operations to analyze SLP stmts.
9412         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9413         unused bb_vec_info parameter, adjust assert.
9414         (vect_slp_analyze_operations): Pass in the slp instance tree
9415         instead of bb_vec_info.
9416         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9417         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9418
9419 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
9420
9421         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9422         Q_REGS.  Expand comment.
9423         (REG_CLASS_NAMES): Ditto.
9424         (REG_CLASS_CONTENTS): Ditto.
9425
9426 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
9427
9428         PR target/66274
9429         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9430         when LEGACY_INT_REGNO_P is processed.
9431
9432 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
9433
9434         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9435
9436 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9437
9438         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9439         register if not marked dead/unused, before return.
9440
9441 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9442
9443         PR lto/66180
9444         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9445         is set; check for assembler name at LTO time.
9446         (type_in_anonymous_namespace): Remove hacks, check that all
9447         anonymous types are called "<anon>"
9448         (odr_type_p): Simplify; add check for "<anon>"
9449         (odr_subtypes_equivalent): Add odr_type_p check.
9450         * tree.c (need_assembler_name_p): Even anonymous namespace needs
9451         assembler name.
9452
9453 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9454
9455         * ipa-utils.h (method_class_type): Remove.
9456         * cgraphunit.c (walk_polymorphic_call_targets): Use
9457         TYPE_METHOD_BASETYPE.
9458         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9459         on main variants only.
9460         (method_class_type): Remove.
9461         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9462         (build_type_inheritance_graph): Likewise.
9463         * ipa-icf.c (sem_function::equals_wpa): Likewise.
9464         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9465         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9466
9467 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
9468
9469         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9470         is_typedef_decl, typedef_variant_p): Constify.
9471         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9472         is_typedef_decl, typedef_variant_p): Constify.
9473
9474 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9475
9476         * defaults.h (gen_tablejump): New function.
9477         (HAVE_tablejump): Add default value.
9478         * expr.c: Adjust.
9479         * stmt.c: Likewise.
9480
9481 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9482
9483         * defaults.h (gen_store_multiple): New function.
9484         (HAVE_store_multiple): Add default value.
9485         * expr.c (move_block_from_reg): Adjust.
9486
9487 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9488
9489         * defaults.h (gen_load_multiple): New function.
9490         (HAVE_load_multiple): Add default value.
9491         * expr.c (move_block_to_reg): Adjust.
9492
9493 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9494
9495         * defaults.h (gen_mem_signal_fence): New function.
9496         (HAVE_mem_signal_fence): Add default value.
9497         * optabs.c: Adjust.
9498
9499 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9500
9501         * defaults.h (gen_memory_barrier): New function.
9502         (HAVE_memory_barrier): Add default value.
9503         * optabs.c: Adjust.
9504
9505 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9506
9507         * defaults.h (gen_mem_thread_fence): New function.
9508         (HAVE_mem_thread_fence): Add default definition.
9509         * optabs.c: Adjust.
9510
9511 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9512
9513         * combine.c (find_split_point): Check the value of HAVE_lo_sum
9514         instead of if it is defined.
9515         (combine_simplify_rtx): Likewise.
9516         * lra-constraints.c (process_address_1): Likewise.
9517         * config/darwin.c: Adjust.
9518         * genconfig.c (main): Always define HAVE_lo_sum.
9519
9520 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9521
9522         * genmatch.c (parser::parse_operation): Reject expanding
9523         operator-list inside 'for'.
9524
9525 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9526
9527         * genmatch.c (parser::parse_for): Reject iterator if used as
9528         operator-list.
9529
9530 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9531
9532         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9533         after end of id-list.
9534
9535 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9536
9537         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9538         we do not try to compute canonical type for type that does not need
9539         alias set.
9540         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9541         FUNCITON_TYPE.
9542         * tree.h (type_with_alias_set_p): New.
9543
9544 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9545
9546         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
9547         function attributes.
9548         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9549
9550 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
9551
9552         * Makefile.in (check_gcc_parallelize): Delete.
9553         (lang_checks_parallelized): Update comment.
9554
9555 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
9556
9557         PR rtl-optimization/66237
9558         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9559         location of an "as_a" cast.
9560
9561 2015-05-22  Jeff Law  <law@redhat.com>
9562
9563         * config/pa/pa.md (non-canonical shift-add insns): Remove.
9564         (peepholes with non-canonical RTL sources): Remove.
9565         (peepholes for indexed stores of FP regs in integer modes): Match and
9566         generate canonical RTL.
9567
9568 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9569
9570         PR tree-optimization/63387
9571         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9572         ((x ord x) & (y ord y) -> (x ord y),
9573         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9574         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9575         vectors like scalars.
9576
9577 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9578
9579         * convert.c (convert_to_integer, convert_to_vector): Include the
9580         types in the error message.
9581
9582 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9583
9584         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9585         simplifications.
9586
9587 2015-05-22  Jeff Law  <law@redhat.com>
9588
9589         * config/pa/pa.md (integer_indexed_store splitters): Use
9590         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
9591         insns -- adjusting the constant 2nd operand accordingly.
9592
9593         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9594         (plus (ashift X log2) Y) if it is a split point.
9595
9596         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9597         out of hppa_legitimize_address to handle both forms of a multiply
9598         by 2, 4 or 8.
9599         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9600         Always generate the ASHIFT variant as the result is not directly
9601         used in a MEM.  Update comments and refactor slightly to improve
9602         readability.
9603
9604 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9605
9606         PR target/65491
9607         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9608         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
9609         (aarch64_composite_type_p): Return false if given type and mode are
9610         for a short vector.
9611
9612 2015-05-22  Richard Biener  <rguenther@suse.de>
9613
9614         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9615         member.
9616         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9617         patterns when determining whether SLP is pure.
9618         (vect_is_slp_reduction): Remove check for pattern stmts.
9619         (vect_is_simple_reduction_1): Remove dead code.
9620         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9621         (vect_get_and_check_slp_defs): Pass in the stmt number.
9622         Allow the first def in a reduction to be not a pattern stmt when
9623         the rest of the stmts def are patterns.
9624         (vect_build_slp_tree_1): Allow tcc_expression codes like
9625         SAD_EXPR and DOT_PROD_EXPR.
9626         (vect_build_slp_tree): Adjust.
9627         (vect_analyze_slp): Refactor and move BB vect error message ...
9628         (vect_slp_analyze_bb_1): ... here.
9629
9630 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
9631
9632         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9633         for CSWTCH temporary.
9634
9635 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9636
9637         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9638         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
9639         unknown unspecs.
9640
9641 2015-05-22  Richard Biener  <rguenther@suse.de>
9642
9643         PR tree-optimization/66251
9644         * tree-vect-stmts.c (vectorizable_conversion): Properly
9645         set STMT_VINFO_VEC_STMT even for the SLP case.
9646
9647 2015-05-22  Marek Polacek  <polacek@redhat.com>
9648
9649         * doc/extend.texi: Use @pxref instead of @xref.
9650
9651 2015-05-22  hiraditya  <hiraditya@msn.com>
9652
9653         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9654         redundant if.
9655
9656 2015-05-22  Richard Biener  <rguenther@suse.de>
9657
9658         PR tree-optimization/65701
9659         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9660         Move peeling cost models into one place.  Peel for alignment
9661         for single loads only if an aligned load is cheaper than
9662         an unaligned load.
9663
9664 2015-05-22  Marek Polacek  <polacek@redhat.com>
9665
9666         PR c/47043
9667         * doc/extend.texi (Enumerator Attributes): New section.
9668         Document syntax of enumerator attributes.
9669
9670 2015-05-22  Richard Biener  <rguenther@suse.de>
9671
9672         * tree-vect-loop.c (get_reduction_op): New function.
9673         (vect_model_reduction_cost): Use it, add reduc_index parameter.
9674         Make ready for BB reductions.
9675         (vect_create_epilog_for_reduction): Use get_reduction_op.
9676         (vectorizable_reduction): Init reduc_index to a valid value.
9677         Adjust vect_model_reduction_cost call.
9678         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9679         operand for reduction defaults.  Add SAD_EXPR support.
9680         Assert we have a neutral op for SLP reductions.
9681         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9682         walking pattern stmt ops only recurse to SSA names.
9683
9684 2015-05-22  Richard Biener  <rguenther@suse.de>
9685
9686         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9687         assert with guard, remove check on detected reduction.
9688         (vect_recog_sad_pattern): Likewise.
9689         (vect_recog_widen_sum_pattern): Likewise.
9690
9691 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9692
9693         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9694         __always_inline__ attribute.
9695         (vaesdq_u8): Likewise.
9696         (vaesmcq_u8): Likewise.
9697         (vaesimcq_u8): Likewise.
9698         (vsha1cq_u32): Likewise.
9699         (vsha1mq_u32): Likewise.
9700         (vsha1pq_u32): Likewise.
9701         (vsha1h_u32): Likewise.
9702         (vsha1su0q_u32): Likewise.
9703         (vsha1su1q_u32): Likewise.
9704         (vsha256hq_u32): Likewise.
9705         (vsha256h2q_u32): Likewise.
9706         (vsha256su0q_u32): Likewise.
9707         (vsha256su1q_u32): Likewise.
9708         (vmull_p64): Likewise.
9709         (vmull_high_p64): Likewise.
9710
9711 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9712
9713         * final.c (final_scan_insn): Don't check HAVE_peephole with the
9714         preprocessor.
9715         * output.h: Likewise.
9716         * genconfig.c (main): Alwways define HAVE_peephole.
9717         * genpeep.c: Don't emit checks of HAVE_peephole.
9718
9719 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9720
9721         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9722         check HAVE_conditional_move with the preprocessor.
9723
9724 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9725
9726         * genconfig.c (main): Always define HAVE_conditional_move.
9727         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9728         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9729         is defined.
9730
9731 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9732
9733         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9734         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9735         and FRAME_POINTER_REGNUM with the preprocessor.
9736
9737 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9738
9739         * defaults.h: Add default for STACK_PUSH_CODE.
9740         * expr.c: Don't redefine STACK_PUSH_CODE.
9741         * recog.c: Likewise.
9742
9743 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9744
9745         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9746         sched-deps.c: Use if instead of preprocessor checks with
9747         STACK_GROWS_DOWNWARD.
9748
9749 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9750
9751         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9752         is defined.
9753         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9754         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9755         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9756         * doc/tm.texi: Regenerate.
9757
9758 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9759
9760         PR target/66232
9761         * config/i386/constraints.md (Bg): New constraint for GOT memory
9762         operand.
9763         * config/i386/i386.md (*call_got_x32): New pattern.
9764         (*call_value_got_x32): Likewise.
9765         * config/i386/predicates.md (GOT_memory_operand): New predicate.
9766
9767 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
9768
9769         PR tree-optimization/66233
9770         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9771         Simplify.
9772
9773 2015-05-21  Jeff Law  <law@redhat.com>
9774
9775         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9776         than MULT for shadd sequences.
9777
9778 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
9779
9780         * alias.c (alias_stats): New static var.
9781         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9782         (dump_alias_stats_in_alias_c): New function.
9783         * alias.h (dump_alias_stats_in_alias_c): Declare.
9784         * tree-ssa-alias.c (dump_alias_stats): Call it.
9785
9786 2015-05-08  Michael Matz  <matz@suse.de>
9787
9788         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9789         to strided_p.
9790         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9791         (STMT_VINFO_STRIDED_P): ... this.
9792         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9793         (vect_verify_datarefs_alignment): Likewise.
9794         (vect_enhance_data_refs_alignment): Likewise.
9795         (vect_analyze_data_ref_access): Likewise.
9796         (vect_analyze_data_refs): Accept strided stores.
9797         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9798         (vect_model_load_cost): Adjust for macro rename.
9799         (vectorizable_mask_load_store): Likewise.
9800         (vectorizable_load): Likewise.
9801         (vectorizable_store): Open code strided stores.
9802
9803 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9804
9805         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9806         Document sqrt_insn.
9807
9808 2015-05-21  Richard Biener  <rguenther@suse.de>
9809
9810         PR c++/66211
9811         * match.pd: Guard pattern optimzing (int)(float)int
9812         conversions to apply only on GIMPLE.
9813
9814 2015-05-21  Jeff Law  <law@redhat.com>
9815
9816         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9817         multiply-accumulate/shift-add insn generation.
9818
9819 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
9820
9821         PR target/54236
9822         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9823         operands[1] are the same.
9824
9825 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9826
9827         PR middle-end/66221
9828         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9829         build_distinct_type_copy to copy bounds.
9830
9831 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9832
9833         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9834         Change to unsigned int.
9835
9836 2015-05-20  Jeff Law  <law@redhat.com>
9837
9838         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9839         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9840         (pa_shadd_constant_p): Allow constants for shadd insns rather
9841         than valid scaling constants for memory addresses.
9842         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9843         * config/pa/predicates.md (mem_shadd_operand): New predicate.
9844         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9845         (shift-add insns using ASHIFT): New patterns.
9846
9847 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
9848
9849         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9850         feasible.
9851         (fix_up_fall_thru_edges): Likewise.
9852         (fix_crossing_conditional_branches): Likewise. Promote jump targets
9853         from to rtx_insn to rtx_code_label where feasible.
9854         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9855         gen_move_insn (returned type changed to rtx_insn).
9856         * builtins.c (expand_errno_check): Fix arguments of
9857         do_compare_rtx_and_jump (now expects rtx_code_label).
9858         (expand_builtin_acc_on_device): Likewise.
9859         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9860         invert_jump (now exprects rtx_jump_insn).
9861         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9862         (construct_init_block): Use rtx_code_label.
9863         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9864         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9865         calling redirect_jump.
9866         (patch_jump_insn): Likewise.
9867         (redirect_branch_edge): Likewise.
9868         (force_nonfallthru_and_redirect): Likewise.
9869         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9870         when suitable.
9871         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9872         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9873         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9874         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9875         to store the value retured by gen_label_rtx.
9876         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9877         rtx_jump_insn.
9878         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9879         (split_branches): Fix calls of redirect_jump.
9880         * dojump.c (jumpifnot): Promote argument type from rtx to
9881         rtx_code_label.
9882         (jumpifnot_1): Likewise.
9883         (jumpif): Likewise.
9884         (jumpif_1): Likewise.
9885         (do_jump_1): Likewise.
9886         (do_jump): Likewise. Use rtx_code_label when feasible.
9887         (do_jump_by_parts_greater_rtx): Likewise.
9888         (do_jump_by_parts_zero_rtx): Likewise.
9889         (do_jump_by_parts_equality_rtx): Likewise.
9890         (do_compare_rtx_and_jump): Likewise.
9891         * dojump.h: Update function prototypes.
9892         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9893         returns rtx_insn).
9894         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9895         rtx_jump_insn.
9896         (emit_label_before): Likewise.
9897         (emit_jump_insn_after_noloc): Likewise.
9898         (emit_jump_insn_after_setloc): Likewise.
9899         (emit_jump_insn_after): Likewise
9900         (emit_jump_insn_before_setloc): Likewise.
9901         (emit_jump_insn_before): Likewise.
9902         (emit_label_before): Promote return type to rtx_code_label.
9903         (emit_label): Likewise.
9904         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9905         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9906         gen_move_insn.
9907         (emit_stack_restore): Likewise.
9908         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9909         (do_cmp_and_jump): Likewise.
9910         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9911         from rtx to rtx_code_label.
9912         (gen_move_insn_uncast): New function.
9913         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9914         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9915         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9916         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9917         invert_jump_1 and redirect_jump_1.
9918         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9919         do_compare_rtx_and_jump.
9920         (expand_addsub_overflow): Likewise.
9921         (expand_neg_overflow): Likewise.
9922         (expand_mul_overflow): Likewise.
9923         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9924         return value of gen_move_insn.
9925         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9926         * loop-doloop.c (add_test): Use rtx_code_label.
9927         (doloop_modify): Likewise.
9928         (doloop_optimize): Likewise.
9929         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9930         * lra-constraints.c (emit_spill_move): Remove cast of value returned
9931         by gen_move_insn.
9932         (inherit_reload_reg): Add cast when calling dump_insn_slim.
9933         (split_reg): Likewise.
9934         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9935         gen_move_insn.
9936         * optabs.c (expand_binop_directly): Remove casts of values returned by
9937         maybe_gen_insn.
9938         (expand_unop_direct): Likewise.
9939         (expand_abs): Likewise.
9940         (maybe_emit_unop_insn): Likewise.
9941         (maybe_gen_insn): Promote return type to rtx_insn.
9942         * optabs.h: Update prototype of maybe_gen_insn.
9943         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
9944         redundant cast.
9945         * recog.c (struct peep2_insn_data): Promote type of insn field to
9946         rtx_insn.
9947         (peep2_reinit_state): Use NULL instead of NULL_RTX.
9948         (peep2_attempt): Remove casts of insn in peep2_insn_data.
9949         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
9950         * recog.h (struct insn_gen_fn): Promote return types of function
9951         pointers and operator ().from rtx to rtx_insn.
9952         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
9953         (fill_eager_delay_slots): Likewise.
9954         (relax_delay_slots): Likewise.
9955         (make_return_insns): Likewise.
9956         (dbr_schedule): Likewise.
9957         (optimize_skips): Likewise.
9958         (reorg_redirect_jump): Likewise.
9959         (fill_slots_from_thread): Likewise.
9960         * reorg.h: Update prototypes.
9961         * resource.c (find_dead_or_set_registers): Use dyn_cast to
9962         rtx_jump_insn instead of check.  Use it's jump_target method.
9963         * rtl.h (rtx_jump_insn::jump_label): Define new method.
9964         (rtx_jump_insn::jump_target): Define new method.
9965         (rtx_jump_insn::set_jump_target): Define new method.
9966         * rtlanal.c (tablejump_p): Promote type of one local variable.
9967         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
9968         (sched_analyze_insn): Likewise.
9969         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
9970         (print_insn): Likewise.
9971         * stmt.c (label_rtx): Promote return type to rtx_insn.
9972         (force_label_rtx): Likewise.
9973         (jump_target_rtx): Define new function.
9974         (expand_label): Use it, get rid of one cast.
9975         (expand_naked_return): Promote rtx to rtx_code_label.
9976         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
9977         (expand_case): Use rtx_code_label instread of rtx where feasible.
9978         (expand_sjlj_dispatch_table): Likewise.
9979         (emit_case_nodes): Likewise.
9980         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
9981         * store-motion.c (insert_store): Make use of new return type of
9982         gen_move_insn and remove a cast.
9983         (replace_store_insn): Likewise.
9984
9985 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
9986
9987         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
9988         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
9989
9990 2015-05-20  Jeff Law  <law@redhat.com>
9991
9992         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
9993         dispose of the jump thread path when the jump threading
9994         opportunity is cancelled.
9995
9996 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9997
9998         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
9999         when printing the caret character.
10000
10001 2015-05-20  Marek Polacek  <polacek@redhat.com>
10002
10003         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10004
10005 2015-05-20  Marek Polacek  <polacek@redhat.com>
10006
10007         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10008         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10009         * gimple-fold.c (canonicalize_bool): Likewise.
10010         (same_bool_result_p): Likewise.
10011         * tree-if-conv.c (parse_predicate): Likewise.
10012
10013 2015-05-20  Marek Polacek  <polacek@redhat.com>
10014
10015         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10016         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10017
10018 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10019
10020         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10021         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10022         values.
10023
10024 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
10025
10026         * config/mips/mips.h (micromips_globals): Declare.
10027
10028 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
10029
10030         * timevar.def (TV_INITIALIZE_RTL): New.
10031         * toplev.c (initialize_rtl): Use an auto_timevar to account this
10032         function's time to TV_INITIALIZE_RTL.
10033
10034 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10035
10036         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10037         gimple_build_nop calls.
10038         (chkp_find_bounds_for_elem): Likewise.
10039         (chkp_get_zero_bounds): Likewise.
10040         (chkp_get_none_bounds): Likewise.
10041         (chkp_get_bounds_by_definition): Likewise.
10042         (chkp_generate_extern_var_bounds): Likewise.
10043         (chkp_get_bounds_for_decl_addr): Likewise.
10044         (chkp_get_bounds_for_string_cst): Likewise.
10045
10046 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
10047
10048         PR tree-optimization/65447
10049         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10050         (dump_use, dump_uses): Support to dump sub use.
10051         (record_use): New parameters to support sub use.  Remove call to
10052         dump_use.
10053         (record_sub_use, record_group_use): New functions.
10054         (compute_max_addr_offset, split_all_small_groups): New functions.
10055         (group_address_uses, rewrite_use_address): New functions.
10056         (strip_offset): New declaration.
10057         (find_interesting_uses_address): Call record_group_use.
10058         (add_candidate): New assertion.
10059         (infinite_cost_p): Move definition forward.
10060         (add_costs): Check INFTY cost and return immediately.
10061         (get_computation_cost_at): Clear setup cost and dependent bitmap
10062         for sub uses.
10063         (determine_use_iv_cost_address): Compute cost for sub uses.
10064         (rewrite_use_address_1): Rename from old rewrite_use_address.
10065         (free_loop_data): Free sub uses.
10066         (tree_ssa_iv_optimize_loop): Call group_address_uses.
10067
10068 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10069             Jim Wilson  <jim.wilson@linaro.org>
10070
10071         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10072         new  fields loadv and storev.
10073         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10074         Initialize loadv and storev.
10075         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10076         (cortexa53_extra_costs): Likewise.
10077         (cortexa57_extra_costs): Likewise.
10078         (xgene1_extra_costs): Likewise.
10079         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10080         rtx_costs.
10081
10082 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10083
10084         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10085          storev.
10086         (cortexa8_extra_costs): Likewise.
10087         (cortexa5_extra_costs): Likewise.
10088         (cortexa7_extra_costs): Likewise.
10089         (cortexa12_extra_costs): Likewise.
10090         (cortexa15_extra_costs): Likewise.
10091         (v7m_extra_costs): Likewise.
10092
10093 2015-05-20  Jeff Law  <law@redhat.com>
10094
10095         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10096         instead of open-coded version.  Also delete the jump thread created
10097         within this function.
10098
10099 2015-05-20  Alan Modra  <amodra@gmail.com>
10100
10101         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10102         stack adjusting insn.  Formatting.
10103         (rs6000_emit_prologue): Track stack adjusting insn, and use of
10104         r12.  If possible, emit first -fsplit-stack arg pointer insn
10105         before stack adjust.  Don't use r12 to save cr if split-stack.
10106
10107 2015-05-20  Alan Modra  <amodra@gmail.com>
10108
10109         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10110         Define.
10111         (rs6000_supports_split_stack): New function.
10112         * gcc/config/rs6000/rs6000.c (machine_function): Add
10113         split_stack_arg_pointer.
10114         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10115         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10116         rather than virtual_incoming_args_rtx.
10117         (rs6000_va_start): Likewise.
10118         (split_stack_arg_pointer_used_p): New function.
10119         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10120         (morestack_ref): New var.
10121         (gen_add3_const, rs6000_expand_split_stack_prologue,
10122         rs6000_internal_arg_pointer, rs6000_live_on_entry,
10123         rs6000_split_stack_space_check): New functions.
10124         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10125         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10126         (UNSPECV_SPLIT_STACK_RETURN): Define.
10127         (split_stack_prologue, load_split_stack_limit,
10128         load_split_stack_limit_di, load_split_stack_limit_si,
10129         split_stack_return, split_stack_space_check): New expands and insns.
10130         * gcc/config/rs6000/rs6000-protos.h
10131         (rs6000_expand_split_stack_prologue): Declare.
10132         (rs6000_split_stack_space_check): Declare.
10133
10134 2015-05-20  Alan Modra  <amodra@gmail.com>
10135
10136         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10137         (direct_return): Test vrsave_size rather than vrsave_mask.
10138         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
10139         (rs6000_emit_epilogue): Likewise.
10140
10141 2015-05-20  Alan Modra  <amodra@gmail.com>
10142
10143         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10144         when not saving registers.
10145         (debug_stack_info): Adjust to omit printing unused offsets,
10146         as before.
10147         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10148         expression.
10149
10150 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10151
10152         PR c++/65835
10153         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10154         value_type to const char *.
10155
10156 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
10157
10158         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10159         to build a biarch toolchain again.
10160
10161 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
10162
10163         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10164         or implicit declarations.
10165         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10166         into it.
10167         (get_odr_type): Check type has linkage before adding bases.
10168         (register_odr_type): Check that type has linkage before adding it.
10169         (type_known_to_have_no_deriavations_p): Rename to ..
10170         (type_known_to_have_no_derivations_p): This one.
10171         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10172         (type_known_to_have_no_derivations_p): This one.
10173         * ipa-polymorphic-call.c
10174         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10175         type has linkage.
10176
10177 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10178
10179         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10180         (layout_type): Use RECORD_OR_UNION_TYPE_P.
10181
10182 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10183
10184         * config/s390/s390.c (s390_vector_bool_type_p): New function.
10185         (s390_invalid_binary_op): New function.
10186         (TARGET_INVALID_BINARY_OP): Define macro.
10187
10188 2015-05-19  David Sherwood  <david.sherwood@arm.com>
10189
10190         * loop-invariant.c (create_new_invariant): Don't calculate address cost
10191         if mode is not a scalar integer.
10192         (get_inv_cost): Increase computational cost for unused invariants.
10193
10194 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10195
10196         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
10197         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
10198         * config/s390/s390-builtin-types.def: New file.
10199         * config/s390/s390-builtins.def: New file.
10200         * config/s390/s390-builtins.h: New file.
10201         * config/s390/s390-c.c: New file.
10202         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10203         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10204         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10205         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10206         prototypes.
10207         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10208         Include.
10209         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10210         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10211         variable definitions.
10212         (s390_const_operand_ok): New function.
10213         (s390_expand_builtin): Rewrite.
10214         (s390_init_builtins): New function.
10215         (s390_handle_vectorbool_attribute): New function.
10216         (s390_attribute_table): Add s390_vector_bool attribute.
10217         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10218         (s390_branch_condition_mask): Generate masks for new modes.
10219         (s390_expand_vec_compare_cc): New function.
10220         (s390_mangle_type): Add mangling for vector bool types.
10221         (enum s390_builtin): Remove.
10222         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10223         efpc builtins.
10224         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10225         s390_cpu_cpp_builtins.
10226         (REGISTER_TARGET_PRAGMAS): New macro.
10227         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10228         (insn_cmp mode attribute): Add new CC modes.
10229         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10230         (lcbb): New pattern definition.
10231         * config/s390/s390intrin.h: Include vecintrin.h.
10232         * config/s390/t-s390: New file.
10233         * config/s390/vecintrin.h: New file.
10234         * config/s390/vector.md: Include vx-builtins.md.
10235         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10236         support.
10237
10238 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10239
10240         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10241         CCVFHE.
10242         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10243         (s390_select_ccmode): Likewise.
10244         (s390_canonicalize_comparison): Swap operands if necessary.
10245         (s390_expand_vec_compare_scalar): Expand DFmode compare using
10246         single element vector instructions.
10247         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10248         (s390_branch_condition_mask): Generate CC masks for the new modes.
10249         * config/s390/s390.md (v0, vf, vd): New mode attributes.
10250         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10251         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10252         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10253         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10254         (*extend<DSF:mode><BFP:mode>2): New insn definition.
10255         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10256         (extend<DSF:mode><BFP:mode>2): Turn into expander.
10257         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10258         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10259         (sqrt<mode>2): Add vector instruction.
10260
10261 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10262
10263         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10264         constraints.
10265         * config/s390/predicates.md (const0_operand, constm1_operand)
10266         (constable_operand): Accept vector operands.
10267         * config/s390/s390-modes.def: Add supported vector modes.
10268         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10269         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10270         (s390_bytemask_vector_p, s390_expand_vec_strlen)
10271         (s390_expand_vec_compare, s390_expand_vcond)
10272         (s390_expand_vec_init): Add prototypes.
10273         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10274         (s390_vector_mode_supported_p): New function.
10275         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10276         (s390_contiguous_bitmask_vector_p): New function.
10277         (s390_bytemask_vector_p): New function.
10278         (s390_split_ok_p): Vector regs don't work either.
10279         (regclass_map): Add VEC_REGS.
10280         (s390_legitimate_constant_p): Handle vector constants.
10281         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10282         (legitimate_reload_vector_constant_p): New function.
10283         (s390_preferred_reload_class): Handle CONST_VECTOR.
10284         (s390_reload_symref_address):  Likewise.
10285         (s390_secondary_reload): Vector memory instructions only support
10286         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
10287         (s390_emit_ccraw_jump): New function.
10288         (s390_expand_vec_strlen): New function.
10289         (s390_expand_vec_compare): New function.
10290         (s390_expand_vcond): New function.
10291         (s390_expand_vec_init): New function.
10292         (s390_dwarf_frame_reg_mode): New function.
10293         (print_operand): Handle addresses with 'O' and 'R' constraints.
10294         (NR_C_MODES, constant_modes): Add vector modes.
10295         (s390_output_pool_entry): Handle vector constants.
10296         (s390_hard_regno_mode_ok): Handle vector registers.
10297         (s390_class_max_nregs): Likewise.
10298         (s390_cannot_change_mode_class): New function.
10299         (s390_invalid_arg_for_unprototyped_fn): New function.
10300         (s390_function_arg_vector): New function.
10301         (s390_function_arg_float): Remove size variable.
10302         (s390_pass_by_reference): Handle vector arguments.
10303         (s390_function_arg_advance): Likewise.
10304         (s390_function_arg): Likewise.
10305         (s390_return_in_memory): Vector values are returned in a VR if
10306         possible.
10307         (s390_function_and_libcall_value): Handle vector arguments.
10308         (s390_gimplify_va_arg): Likewise.
10309         (s390_call_saved_register_used): Consider the arguments named.
10310         (s390_conditional_register_usage): Disable v16-v31 for non-vec
10311         targets.
10312         (s390_preferred_simd_mode): New function.
10313         (s390_support_vector_misalignment): New function.
10314         (s390_vector_alignment): New function.
10315         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10316         (TARGET_VECTOR_MODE_SUPPORTED_P)
10317         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10318         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10319         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10320         (TARGET_VECTOR_ALIGNMENT): Define target macro.
10321         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10322         (FIRST_PSEUDO_REGISTER): Increase value.
10323         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10324         (VECTOR_REG_P): Define macros.
10325         (FIXED_REGISTERS, CALL_USED_REGISTERS)
10326         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10327         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10328         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10329         Add vector registers.
10330         (CANNOT_CHANGE_MODE_CLASS): Call C function.
10331         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10332         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10333         memory.
10334         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10335         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10336         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10337         (VR*_REGNUM): New constants.
10338         (ALL): New mode iterator.
10339         (INTALL): Remove mode iterator.
10340         Include vector.md.
10341         (movti): Implement TImode moves for VRs.
10342         Disable TImode splitter for VR targets.
10343         Implement splitting TImode GPR<->VR moves.
10344         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10345         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10346         reload<mode>_la_in, reload<mode>_la_out.
10347         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10348         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10349         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10350         (mov<mode> SF SD): Prefer lder, lde for loading.
10351         Add lrl and strl instructions.
10352         Add vector instructions.
10353         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10354         Call s390_expand_vec_strlen on z13.
10355         (*cc_to_int): Change predicate to nonimmediate_operand.
10356         (addti3): Rename to *addti3.  New expander.
10357         (subti3): Rename to *subti3.  New expander.
10358         * config/s390/vector.md: New file.
10359
10360 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10361
10362         * common/config/s390/s390-common.c (processor_flags_table): Add
10363         z13.
10364         * config.gcc: Add z13.
10365         * config/s390/s390-opts.h (enum processor_type): Add
10366         PROCESSOR_2964_Z13.
10367         * config/s390/s390.c (s390_adjust_priority): Check for
10368         PROCESSOR_2964_Z13.
10369         (s390_reorg): Likewise.
10370         (s390_sched_reorder): Likewise.
10371         (s390_sched_variable_issue): Likewise.
10372         (s390_loop_unroll_adjust): Likewise.
10373         (s390_option_override): Likewise. Default to -mvx when available.
10374         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10375         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10376         (TARGET_VX_ABI): Define macros.
10377         macros.
10378         (TARGET_DEFAULT): Add MASK_OPT_VX.
10379         * config/s390/s390.md ("cpu" attribute): Add z13.
10380         ("cpu_facility" attribute): Add vec.
10381         * config/s390/s390.opt (processor_type): Add z13.
10382         (mvx): New options.
10383         * doc/invoke.texi: Add z13 option for -march.
10384
10385 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10386
10387         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10388         mode check to make sure that only scalar integer values are
10389         accepted.
10390
10391 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
10392
10393         * tree.c (verify_type_variant): Fix #undef.
10394         (gimple_canonical_types_compatible_p): Move here from lto.c
10395         (verify_type): Verify TYPE_CANONICAL compatibility.
10396         * tree.h (gimple_canonical_types_compatible_p): Declare.
10397
10398 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10399
10400         PR middle-end/66199
10401         * tree.h (OMP_TEAMS_COMBINED): Define.
10402         * gimplify.c (enum gimplify_omp_var_data): Add
10403         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10404         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10405         (omp_notice_variable): Accept both ORT_TEAMS
10406         and ORT_COMBINED_TEAMS.  Don't recurse if
10407         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10408         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10409         GOVD_FIRSTPRIVATE.
10410         (omp_no_lastprivate): New function.
10411         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10412         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10413         notice_outer and set appropriate bits, otherwise make
10414         sure default(none) combined constructs won't complain.
10415         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10416         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10417         omp_no_lastprivate either remove the clause or turn it
10418         into OMP_CLAUSE_PRIVATE.
10419         (gimplify_omp_for): Fix up handling of implicit
10420         lastprivate or linear iterators.
10421         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10422         ORT_COMBINED_TEAMS.
10423         * omp-low.c (lower_omp_for_lastprivate): For combined
10424         for simd use fd.loop.n2 from the for rather than simd.
10425
10426 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10427
10428         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10429         instead of gen_rtx_raw_REG.
10430         (cris_expand_epilogue): Likewise.
10431         * config/microblaze/microblaze.c (microblaze_classify_address):
10432         Likewise.
10433         * config/sparc/sparc.md: Likewise.
10434
10435 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
10436
10437         * config/alpha/alpha.c (alpha_legitimize_reload_address)
10438         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10439         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10440         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10441         Use CASE_CONST_SCALAR_INT.
10442         (print_operand) <case 'M'>: Use mode_width_operand to check the
10443         value of the constant.
10444         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10445         * config/alpha/predicates.md (input_operand): Use general_operand
10446         instead of match_code as operand check.
10447         (symbolic_operand): Use match_code with subexpression digits.
10448         * config/alpha/constraints.md (Q): Ditto.
10449
10450 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10451
10452         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10453
10454 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10455
10456         * config/s390/s390.c (s390_secondary_reload): Fix check for
10457         load/store relative.
10458
10459 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10460
10461         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
10462         alternative_mask to uint64_t.
10463
10464 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10465
10466         PR tree-optimization/66187
10467         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10468         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
10469         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10470
10471 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
10472
10473         * diagnostic.c (diagnostic_report_current_module): Strengthen
10474         local "new_map" from const line_map * to
10475         const line_map_ordinary *.
10476         * genmatch.c (error_cb): Likewise for local "map".
10477         (output_line_directive): Likewise for local "map".
10478         * input.c (expand_location_1): Likewise for local "map".
10479         Pass NULL rather than &map to
10480         linemap_unwind_to_first_non_reserved_loc, since the value is never
10481         read from there, and the value written back not read from here.
10482         (is_location_from_builtin_token): Strengthen local "map" from
10483         const line_map * to const line_map_ordinary *.
10484         (dump_location_info): Strengthen locals "map" from
10485         line_map *, one to const line_map_ordinary *, the other
10486         to const line_map_macro *.
10487         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10488         const line_map * to const line_map_macro *.
10489         (maybe_unwind_expanded_macro_loc): Add a call to
10490         linemap_check_macro when writing to the "map" field of the
10491         loc_map_pair.
10492         Introduce local const line_map_ordinary * "ord_map", using it in
10493         place of "map" in the part of the function where we know we have
10494         an ordinary map.  Strengthen local "m" from const line_map * to
10495         const line_map_ordinary *.
10496
10497 2015-05-19  Nick Clifton  <nickc@redhat.com>
10498
10499         PR target/66156
10500         * config/msp430/msp430.md (zero_extendhisi2): Add support for
10501         separate source and destination registers.
10502
10503 2015-05-19  Richard Biener  <rguenther@suse.de>
10504
10505         PR tree-optimization/66165
10506         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10507         for no load permutation.
10508
10509         PR tree-optimization/66185
10510         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10511         when building the SLP node from scalars.
10512
10513 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10514             Tristan Gingold  <gingold@adacore.com>
10515
10516         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10517         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10518         (expand_stack_restore): Call record_new_stack_level.
10519         (expand_stack_save): Do not call do_pending_stack_adjust.
10520         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10521         * calls.c (expand_call): Call record_new_stack_level for alloca.
10522         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10523         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10524         (update_sjlj_context): New global function.
10525         * except.h (update_sjlj_context): Declare.
10526         * explow.c (record_new_stack_level): New global function.
10527         (allocate_dynamic_stack_space): Call record_new_stack_level.
10528         * explow.h (record_new_stack_level): Declare.
10529         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10530         * cfgrtl.c (duplicate_insn_chain): Likewise.
10531
10532 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10533
10534         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10535         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10536         STACK_GROWS_DOWNWARD as normal if.
10537         (expand_call): Likewise.
10538
10539 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
10540
10541         PR target/54236
10542         * config/sh/sh.md (*round_int_even): New insn_and_split and
10543         accompanying new unnamed split.
10544
10545 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10546
10547         * bitmap.c (bitmap_set_range): Handle count==1 specially.
10548         (bitmap_clear_range): Likewise.
10549         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10550         bitmap_set_range unconditionally.
10551         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10552         * df-scan.c (df_mark_reg): Likewise.
10553         * haifa-sched.c (setup_ref_regs): Likewise.
10554         * sched-rgn.c (update_live_1): Likewise.
10555
10556 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10557
10558         * regs.h (END_HARD_REGNO): Delete.
10559         (END_REGNO): Move to...
10560         * rtl.h: ...here.
10561         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10562         * caller-save.c (mark_set_regs): Likewise.
10563         * combine.c (move_deaths, distribute_notes): Likewise.
10564         * cse.c (invalidate, invalidate_for_call): Likewise.
10565         * df-scan.c (df_ref_record): Likewise.
10566         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10567         (record_last_reg_set_info): Likewise.
10568         * reg-stack.c (convert_regs_exit): Likewise.
10569         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10570         * resource.c (update_live_status): Likewise.
10571         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10572
10573 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10574
10575         * rtl.h (reg_info): Add an nregs field.
10576         (REG_NREGS): Use it.
10577         (SET_REGNO_RAW): Delete.
10578         (set_regno_raw): New function.
10579         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10580         (END_REGNO): Redefine in terms of REG_NREGS.
10581         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10582         SET_REGNO_RAW.
10583         * emit-rtl.c (set_mode_and_regno): Likewise.
10584         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10585         instead of SET_REGNO_RAW.
10586
10587 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10588
10589         * rtl.h (PUT_MODE_RAW): New macro.
10590         (PUT_REG_NOTE_KIND): Use it.
10591         (set_mode_and_regno): Declare.
10592         (gen_raw_REG): Change regno to "unsigned int".
10593         (gen_rtx_REG): Change "unsigned" to "unsigned int".
10594         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10595         use set_mode_and_regno to change the mode of registers.
10596         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10597         * emit-rtl.c (set_mode_and_regno): New function.
10598         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
10599         * caller-save.c (reg_save_code): Use set_mode_and_regno.
10600         * expr.c (init_expr_target): Likewise.
10601         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10602         * postreload.c (reload_cse_simplify_operands): Likewise.
10603
10604 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10605
10606         * caller-save.c (init_caller_save): Use word_mode and
10607         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10608         * expr.c (init_expr_target): Likewise.
10609         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10610         * postreload.c (reload_cse_regs_1): Likewise.
10611
10612 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10613
10614         * rtl.def (REG): Change format to "r".
10615         * rtl.h (rtunion): Remove rt_reg.
10616         (reg_info): New structure.
10617         (rtx_def): Add reg field to main union.
10618         (X0REGATTR): Delete.
10619         (REG_CHECK): New macro.
10620         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10621         * rtl.c (rtx_format): Document "r".
10622         (rtx_code_size): Handle REG specially.
10623         * gengenrtl.c (special_format): Return true for formats
10624         that include 'r'.
10625         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10626         Deal with REG_ATTRS after the field loop.
10627         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10628         * expmed.c (init_expmed): Call gen_raw_REG instead of
10629         gen_rtx_raw_REG.
10630         * expr.c (init_expr_target): Likewise.
10631         * regcprop.c (maybe_mode_change): Likewise.
10632         * varasm.c (make_decl_rtl): Likewise.
10633         * final.c (leaf_renumber_regs_insn): Return early after
10634         handling REGs.
10635         * genemit.c (gen_exp): Handle 'r' fields.
10636         * genpeep.c (match_rtx): Likewise.
10637         * gensupport.c (subst_pattern_match): Likewise.
10638         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10639         (alter_constraints, subst_dup): Likewise.
10640         * read-rtl.c (read_rtx_code): Likewise.
10641         * print-rtl.c (print_rtx): Likewise.
10642         * genrecog.c (find_operand, find_matching_operand): Likewise.
10643         (validate_pattern, match_pattern_2): Likewise.
10644         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10645         (rtx_test::regno_field): New function.
10646         (operator ==, safe_to_hoist_p, transition_parameter_type)
10647         (parameter_type_string, print_parameter_value)
10648         (print_nonbool_test, print_test): Handle new enum values.
10649         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10650         * lra-constraints.c (operands_match_p): Likewise.
10651
10652 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10653
10654         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10655         Change type of new_regno to unsigned int.
10656         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10657         new_regno to unsigned int.
10658         (df_ref_change_reg_with_loc): Remove old_regno parameter.
10659         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
10660         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10661         (SET_REGNO_RAW): Add space after ",".
10662
10663 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10664
10665         * rtl.h (REG_NREGS): New macro
10666         * alias.c (record_set): Use it.
10667         * cfgcleanup.c (mark_effect): Likewise.
10668         * combine.c (likely_spilled_retval_1): Likewise.
10669         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10670         (move_deaths, distribute_notes): Likewise.
10671         * cselib.c (cselib_record_set): Likewise.
10672         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10673         * df-scan.c (df_mark_reg): Likewise.
10674         * dse.c (look_for_hardregs): Likewise.
10675         * dwarf2out.c (reg_loc_descriptor): Likewise.
10676         (multiple_reg_loc_descriptor): Likewise.
10677         * expr.c (write_complex_part, read_complex_part): Likewise.
10678         (emit_move_complex): Likewise.
10679         * haifa-sched.c (setup_ref_regs): Likewise.
10680         * ira-lives.c (mark_hard_reg_live): Likewise.
10681         * lra.c (lra_set_insn_recog_data): Likewise.
10682         * mode-switching.c (create_pre_exit): Likewise.
10683         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10684         (reload_combine_recognize_pattern): Likewise.
10685         (reload_combine_note_use, move2add_record_mode): Likewise.
10686         (reload_cse_move2add): Likewise.
10687         * reg-stack.c (subst_stack_regs_pat): Likewise.
10688         * regcprop.c (kill_value, copy_value): Likewise.
10689         (copyprop_hardreg_forward_1): Likewise.
10690         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10691         (build_def_use): Likewise.
10692         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10693         (deps_analyze_insn): Likewise.
10694         * sched-rgn.c (check_live_1, update_live_1): Likewise.
10695         * sel-sched.c (count_occurrences_equiv): Likewise.
10696         * valtrack.c (dead_debug_insert_temp): Likewise.
10697
10698 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10699
10700         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10701         * dse.c (note_add_store): Likewise.
10702         * ira-lives.c (mark_hard_reg_dead): Likewise.
10703         * loop-invariant.c (mark_reg_store): Likewise.
10704         (mark_reg_death): Likewise.
10705         * postreload.c (reload_combine): Likewise.
10706         (reload_combine_note_store): Likewise.
10707         (reload_combine_note_use): Likewise.
10708         * recog.c (peep2_reg_dead_p): Likewise.
10709
10710 2015-05-19  Alan Modra  <amodra@gmail.com>
10711
10712         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10713         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10714         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10715         unused predicates.
10716         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10717         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
10718         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10719         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10720
10721 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
10722
10723         * config/mips/mips.md (JOIN_MODE): New mode iterator.
10724         (join2_load_Store<JOIN_MODE:mode>): New pattern.
10725         (join2_loadhi): Likewise.
10726         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10727         load-load and store-stores.
10728         * config/mips/mips.opt (mload-store-pairs): New option.
10729         (TARGET_LOAD_STORE_PAIRS): New macro.
10730         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10731         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10732         * config/mips/mips.c (mips_load_store_bonding_p): New function.
10733
10734 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
10735
10736         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10737         explicit swaps.
10738         * dojump.c (do_compare_rtx_and_jump): Likewise.
10739         * expmed.c (emit_store_flag_1): Likewise.
10740         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10741         * final.c (sprint_ul): Use std::reverse for reversing a string.
10742         * fold-const.c (extract_muldiv_1): Use std::swap.
10743         * genmodes.c (emit_mode_int_n): Likewise.
10744         * ifcvt.c (dead_or_predicable): Likewise.
10745         * ira-build.c (ira_merge_live_ranges): Likewise.
10746         (swap_allocno_copy_ends_if_necessary): Likewise.
10747         * ira.c (ira_setup_alts): Likewise.
10748         * loop-iv.c (iv_analyze_expr): Likewise.
10749         (implies_p): Likewise.
10750         (canon_condition): Likewise.
10751         * lra-constraints.c (swap_operands): Likewise.
10752         * lra-lives.c (lra_merge_live_ranges): Likewise.
10753         * omega.c (swap): Remove.
10754         (bswap): Remove.
10755         (omega_unprotect_1): Use std::swap.
10756         (omega_solve_geq): Likewise.
10757         * optabs.c (expand_binop_directly): Likewise.
10758         (expand_binop): Likewise.
10759         (emit_conditional_move): Likewise.
10760         (emit_conditional_add): Likewise.
10761         * postreload.c (reload_cse_simplify_operands): Likewise.
10762         * reg-stack.c (emit_swap_insn): Likewise.
10763         (swap_to_top): Likewise.
10764         (compare_for_stack_reg): Likewise.
10765         (subst_asm_stack_regs): Likewise.
10766         * reload.c (find_reloads): Likewise.
10767         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10768         * sel-sched.c (invoke_reorder_hooks): Likewise.
10769         (create_block_for_bookkeeping): Likewise.
10770         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10771         (lambda_matrix_right_hermite): Use std::swap.
10772         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10773         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10774         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10775         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10776         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10777         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10778         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10779         * tree-vrp.c (compare_ranges): Likewise.
10780         * var-tracking.c (add_with_sets): Likewise.
10781         (vt_find_locations): Likewise.
10782
10783 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
10784
10785         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10786         pie executables.
10787         (FBSD_ENDFILE_SPEC): Likewise.
10788         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10789         config/freebsd-spec.h.
10790         (ENDFILE_SPEC): Likewise.
10791
10792 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
10793             Richard Henderson  <rth@redhat.com>
10794
10795         PR target/57032
10796         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10797         Check for a memory location that is not a reference (using an AND)
10798         to an unaligned location here.
10799         * config/alpha/predicates.md (normal_memory_operand): Remove.
10800
10801 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
10802
10803         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10804         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10805
10806 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
10807
10808         * config/mips/mips.c (micromips_globals): New variable.
10809         (mips_set_compression_mode): Save and reinitialize target-dependent
10810         state for microMIPS.
10811
10812 2015-05-18  Martin Liska  <mliska@suse.cz>
10813
10814         * dbgcnt.def: Add new counter.
10815         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10816
10817 2015-05-18  Martin Liska  <mliska@suse.cz>
10818
10819         * dbgcnt.def: Sort counters.
10820         * opts.c (common_handle_option): Do not compile if
10821         -fdbg-cnt-list is enabled.
10822
10823 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10824
10825         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10826         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
10827         address operator to va_list operand.
10828         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10829         unconditionally.
10830         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10831         operand.
10832         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10833         * config/s390/s390.c (s390_gimplify_va_arg): Same.
10834         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10835
10836 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10837
10838         * tree-ssa-tail-merge.c: Fix whitespace.
10839
10840 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
10841
10842         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10843         cortex-a17, and cortex-a17.cortex-a7.
10844
10845 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
10846
10847         PR target/54236
10848         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10849
10850 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
10851
10852         PR target/66174
10853         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10854         QImode inner modes for TARGET_AVX512BW.  Force mask operand
10855         to a register for AVX512F modes.
10856
10857 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10858
10859         * toplev.c (emit_debug_global_declarations): Do not output debug info
10860         when doing slim LTO objects.
10861
10862 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10863
10864         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10865         odr_types_equivalent_p): Declare.
10866         (odr_type_p): Use gcc_checking_assert.
10867         (type_in_anonymous_namespace_p) Declare.
10868         (type_with_linkage_p): Declare.
10869         * common.opt (Wlto-type-mismatch): New warning.
10870         * ipa-devirt.c (compound_type_base): New function.
10871         (odr_or_derived_type_p): New function.
10872         (odr_types_equivalent_p): New function.
10873         (add_type_duplicate): Simplify.
10874         (type_with_linkage_p): Add hack to prevent false positives on C types
10875         (type_in_anonymous_namespace_p): Likewise.
10876         * tree.c (need_assembler_name_p): Use type_with_linkage.
10877         * tree.h (type_in_anonymous_namespace_p): Remove.
10878         * doc/invoke.texi (-Wlto-type-mismatch): Document
10879
10880 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10881
10882         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10883         (verify_type): Verify STRING_FLAG.
10884
10885 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10886
10887         PR fortran/44054
10888         * tree-pretty-print.c (percent_K_format): Replace locus pointer
10889         with accessor function.
10890         * tree-diagnostic.c (diagnostic_report_current_function): Use
10891         diagnostic_location function.
10892         (maybe_unwind_expanded_macro_loc): Likewise.
10893         (virt_loc_aware_diagnostic_finalizer): Likewise.
10894         (default_tree_printer): Replace locus pointer with accessor function.
10895         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10896         (diagnostic_set_info_translated): Initialize second location.
10897         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10898         (diagnostic_show_locus): Handle two locations. Call
10899         diagnostic_print_caret_line.
10900         (diagnostic_print_caret_line): New.
10901         (default_diagnostic_starter): Use diagnostic_location function.
10902         (diagnostic_report_diagnostic): Use diagnostic_location function.
10903         (verbatim): Do not set text.locus.
10904         * diagnostic.h (struct diagnostic_info): Remove location field.
10905         (struct diagnostic_context): Make caret_chars an array of two.
10906         (diagnostic_location): New inline.
10907         (diagnostic_expand_location): Handle two locations.
10908         (diagnostic_same_line): New inline.
10909         (diagnostic_print_caret_line): Declare.
10910         (CARET_LINE_MARGIN): New constant.
10911         * pretty-print.c (pp_printf): Do not set text.locus.
10912         (pp_verbatim): Do not set text.locus.
10913         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10914         (struct text_info): Replace locus pointer with locations
10915         array. Add accessor functions.
10916
10917 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
10918             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10919
10920         PR target/65768
10921         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10922         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10923          large constants in register instead of splitting them.
10924
10925 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
10926
10927         PR target/66140
10928         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10929         replacements in memory addresses.
10930         (get_unaligned_address): Ditto.
10931
10932 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
10933
10934         * config/ft32/*: New files for FT32 port.
10935         * doc/install.texi: Add FT32 information.
10936         * doc/invoke.texi: Add FT32 information.
10937         * doc/md.texi: Add FT32 information.
10938         * doc/contrib.texi: Self added.
10939
10940 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
10941
10942         PR tree-optimization/64454
10943         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
10944         (-1 - A -> ~A): Remove unnecessary condition.
10945
10946 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10947
10948         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
10949         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10950         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
10951
10952 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10953
10954         * ipa-chkp.h (chkp_wrap_function): New.
10955         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
10956         (chkp_wrap_function_name): New.
10957         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
10958         to get wrapper name.
10959         * lto-cgraph.c: Include ipa-chkp.h.
10960         (input_cgraph_1): Avoid alias chain for wrappers.
10961
10962 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10963
10964         PR middle-end/66134
10965         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
10966         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
10967
10968 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10969
10970         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
10971         (AARCH64_FL_SLOWMUL): Delete.
10972         (AARCH64_FL_CRC): Redefine to 1<<3.
10973         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
10974
10975 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10976
10977         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
10978         casting.
10979
10980 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
10981
10982         * config/alpha/alpha.md (extendqidi2): Use general_operand
10983         instead of some_operand for operand[1] predicate.
10984         (extendhidi2): Ditto.
10985         (cbranchdi4): Use general_operand instead of some_operand
10986         for operand[1] and operands[2] predicates.
10987         (cstoredi4): Ditto.
10988         * config/alpha/predicates.md (some_operand): Remove unused predicate.
10989         (some_ni_operand): Ditto.
10990
10991 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
10992
10993         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
10994         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
10995         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
10996         low part of the constant using alpha_emit_set_const_1.
10997         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
10998
10999 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
11000
11001         * varasm.c (output_constant_pool_1): Pass down alignment from
11002         constant pool entry's descriptor to output_constant_pool_2.
11003         (output_object_block): Add comment prior to call to
11004         output_constant_pool_1.
11005
11006 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
11007
11008         PR rtl-optimization/65862
11009         * target.def (ira_change_pseudo_allocno_class): New hook.
11010         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11011         value of the hook.
11012         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11013         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11014         hook.
11015         * ira-costs.c (find_costs_and_classes): Call the hook and change
11016         classes when it is necessary.
11017         * doc/tm.texi: Update.
11018
11019 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
11020
11021         * config/i386/i386.md (sibcall_memory): Check that register with
11022         callee address is not also used as one of the arguments, instead
11023         of checking that it is not live after the sibcall.
11024         (sibcall_pop_memory): Ditto.
11025         (sibcall_value_memory): Ditto.
11026         (sibcall_value_pop_memory): Ditto.
11027
11028 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
11029
11030         * generic-match-head.c (types_match): Handle non-types.
11031         * gimple-match-head.c (types_match): Likewise.
11032         * match.pd: Remove unnecessary TREE_TYPE for types_match.
11033
11034 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
11035
11036         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11037         (csneg3<mode>_insn): Enable expansion of pattern.
11038
11039 2015-05-14  Nick Clifton  <nickc@redhat.com>
11040
11041         * config/rl78/rl78.c (rl78_select_section): Select the correct
11042         default section based upon the category of the decl.
11043
11044 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11045
11046         PR rtl-optimization/30967
11047         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11048         destination mode for the cost of scc patterns.
11049
11050 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11051
11052         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11053         using SWIM248 mode iterator.
11054         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11055         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
11056         for operand[2] constraint.
11057         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11058
11059 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11060
11061         PR middle-end/66133
11062         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11063         make sure it is never noreturn, even when the task body does not
11064         return.
11065         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11066         right before GIMPLE_OMP_RETURN.
11067         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11068         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
11069         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11070
11071 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11072
11073         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11074         * tree-ssa-math-opts.c: Include params.h
11075         (pow_synth_sqrt_info): New struct.
11076         (representable_as_half_series_p): New function.
11077         (get_fn_chain): Likewise.
11078         (print_nested_fn): Likewise.
11079         (dump_fractional_sqrt_sequence): Likewise.
11080         (dump_integer_part): Likewise.
11081         (expand_pow_as_sqrts): Likewise.
11082         (gimple_expand_builtin_pow): Use above to attempt to expand
11083         pow as series of square roots.  Removed now unused variables.
11084
11085 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11086
11087         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11088         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11089         Remove *p0 and *p1 arguments.  Rewrite function.
11090         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11091         (alpha_split_const_mov): Update calls to alpha_extract_integer and
11092         alpha_emit_set_long_const.
11093         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11094         (alpha_output_mi_thunk_osf): Ditto.
11095         * config/alpha/alpha.md (movti): Do not check operands[1]
11096         for CONST_DOUBLE.
11097
11098 2015-05-13  Richard Biener  <rguenther@suse.de>
11099
11100         PR tree-optimization/66129
11101         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11102         commutative.
11103         (vect_schedule_slp_instance): Fix typo.
11104
11105 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
11106
11107         * common.opt (fdump-internal-locations): New option.
11108         * input.c: Include diagnostic-core.h.
11109         (get_end_location): New function.
11110         (write_digit): New function.
11111         (write_digit_row): New function.
11112         (dump_location_range): New function.
11113         (dump_labelled_location_range): New function.
11114         (dump_location_info): New function.
11115         * input.h (dump_location_info): New prototype.
11116         * toplev.c (compile_file): Handle flag_dump_locations.
11117
11118 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
11119
11120         * gimple-expr.h (is_gimple_constant): Reorder.
11121         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11122
11123 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11124
11125         * combine.c (simplify_set): When generating a CC set, if the
11126         source already is in the correct mode, do not wrap it in a
11127         compare.  Simplify the rest of that code.
11128
11129 2015-05-13  Richard Biener  <rguenther@suse.de>
11130
11131         PR tree-optimization/66123
11132         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11133         a taken edge.
11134
11135 2015-05-13  Richard Biener  <rguenther@suse.de>
11136
11137         PR middle-end/66110
11138         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11139         specially.
11140         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11141
11142 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11143
11144         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11145         * aclocal.m4: Regenerated with automake-1.11.6.
11146
11147 2015-05-13  Tom de Vries  <tom@codesourcery.com>
11148
11149         PR tree-optimization/66010
11150         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11151         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11152         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
11153         and rval based on do_deref.
11154
11155 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11156
11157         PR target/65103
11158         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11159         link time constants into adress expressions and therefore set
11160         their cost to 0.
11161
11162 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11163
11164         PR target/66112
11165         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11166         Use SWI248 iterator instead of SWI.
11167         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
11168         Use eq_attr "alternative" "0" instead of match_test in
11169         length_immediate attribute computation.
11170         (*mulvhi4, *mulvhi4_1): New define_insns.
11171
11172         PR target/66112
11173         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11174         SIGNED to get precision of non-negative value.
11175
11176 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11177
11178         PR target/66048
11179         * function.c (diddle_return_value_1): Process bounds first.
11180         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11181         register.
11182
11183 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11184
11185         PR rtl-optimization/64616
11186         * loop-invariant.c (can_move_invariant_reg): New.
11187         (move_invariant_reg): Call above new function to decide whether
11188         instruction can just be moved, skipping creation of temporary
11189         register.
11190
11191 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11192
11193         PR target/pr66047.c
11194         * i386.c (ix86_function_sseregparm): Only return -1 if local function
11195         with implied regparm is called from -mno-sse function.
11196         (init_cumulative_args): Output error if ix86_function_sseregparm
11197         return -1 and SSE register would be needed.
11198         (function_arg_advance_32): Likewise.
11199         (function_arg_32): Likewise.
11200         * i386.h (ix86_args): Add decl field.
11201
11202 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11203
11204         PR ipa/65873
11205         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11206         inlines across optimization boundary.
11207
11208 2015-05-12  Jason Merrill  <jason@redhat.com>
11209
11210         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11211         string literal and macro name.
11212
11213 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
11214
11215         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11216         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11217         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11218
11219 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
11220
11221         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11222         (-Wmisleading-indentation): New option.
11223         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11224
11225 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
11226
11227         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11228         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11229         (alpha_extract_integer): Ditto.
11230         (alpha_legitimate_constant_p): Ditto.
11231         (alpha_split_tmode_pair): Ditto.
11232         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11233         (alpha_expand_mov): Ditto.
11234         (print_operand): Remove handling of 'H' modifier.
11235         <case 'm'>: Remove CONST_DOUBLE handling.
11236         (summarize_insn): Handle CONST_WIDE_INT.
11237         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11238         (anddi3): Ditto.
11239         (movti): Handle CONST_WIDE_INT.
11240         * config/alpha/constraints.md ('H'): Remove constraint definition.
11241         ('G'): Do not match MODE_FLOAT class.
11242         * config/alpha/predicates.md (const0_operand): Also match
11243         const_wide_int.
11244         (non_add_const_operand): Ditto.
11245         (non_zero_const_operand): Ditto.
11246         (some_operand): Ditto.
11247         (input_operand): Ditto.  Handle CONST_WIDE_INT.
11248         (and_operand): Do not match const_double.
11249         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11250
11251 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
11252
11253         PR target/65697
11254         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11255         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11256         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11257         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11258         is_mm_seq_cst, is_mm_sync): New accessor functions.
11259         * builtins.c (expand_builtin_sync_operation,
11260         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11261         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11262         (get_memmodel,  expand_builtin_atomic_compare_exchange,
11263         expand_builtin_atomic_load, expand_builtin_atomic_store,
11264         expand_builtin_atomic_clear): Use new accessor routines.
11265         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11266         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11267         (maybe_emit_sync_lock_test_and_set): Use new accessors and
11268         MEMMODEL_SYNC_ACQUIRE.
11269         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11270         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11271         expand_atomic_store): Use new accessors.
11272         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11273         * tsan.c (instrument_builtin_call): Update check for memory model beyond
11274         final enum to use MEMMODEL_LAST.
11275         * c-family/c-common.c: Use new accessor for memmodel_base.
11276         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11277         accessors.
11278         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11279         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11280         mem_thread_fence, *dmb): Likewise.
11281         * config/alpha/alpha.c (alpha_split_compare_and_swap,
11282         alpha_split_compare_and_swap_12): Likewise.
11283         * config/arm/arm.c (arm_expand_compare_and_swap,
11284         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11285         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11286         atomic_loaddi): Likewise.
11287         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11288         Likewise.
11289         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11290         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11291         use new accessors.
11292         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11293         atomic_store<mode>, atomic_compare_and_swap<mode>,
11294         atomic_exchange<mode>): Use new accessors.
11295         * config/mips/mips.c (mips_process_sync_loop): Likewise.
11296         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11297         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11298         rs6000_post_atomic_barrier): Add new cases.
11299         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11300         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11301         (atomic_load<mode>): Add new cases and use new accessors.
11302         (store_quadpti): Add new cases.
11303         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11304         accessors.
11305         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11306         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11307         model, not 8.
11308
11309 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11310
11311         * ipa-devirt.c (type_with_linkage_p): New function.
11312         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11313         type has linkage.
11314         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11315         (can_be_name_hashed_p): Simplify.
11316         (hash_odr_name): Check that type has linkage before checking if it is
11317         anonymous.
11318         (types_same_for_odr): Likewise.
11319         (odr_name_hasher::equal): Likewise.
11320         (odr_subtypes_equivalent_p): Likewise.
11321         (warn_types_mismatch): Likewise.
11322         (get_odr_type): Likewise.
11323         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11324         * ipa-utils.h (odr_type_p): Move offline.
11325         * tree.c (need_assembler_name_p): Fix handling of types
11326         without linkages.
11327         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11328
11329 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
11330
11331         * timevar.c (timevar_enable): Delete in favor of...
11332         (g_timer): New global.
11333         (struct timevar_def): Move to timevar.h inside class timer.
11334         (struct timevar_stack_def): Likewise.
11335         (timevars): Delete global in favor of field "m_timevars" within
11336         class timer in timevar.h
11337         (stack): Likewise, in favor of field "m_stack".
11338         (unused_stack_instances): Likewise, in favor of field
11339         "m_unused_stack_instances".
11340         (start_time): Likewise, in favor of field "m_start_time".
11341         (get_time): Eliminate check for timevar_enable.
11342         (timer::timer): New function, built from part of timevar_init.
11343         (timevar_init): Rewrite idempotency test from using
11344         "timevar_enable" bool to using dynamic allocation of "g_timer".
11345         Move rest of implementation into timer's constructor.
11346         (timevar_push_1): Rename to...
11347         (timer::push): ...this, adding "m_" prefixes to variables that
11348         are now fields of timer.
11349         (timevar_pop_1): Likewise, rename to...
11350         (timer::pop): ...this, and add "m_" prefixes.
11351         (timevar_start): Replace test for "timevar_enable" with one for
11352         "g_timer", and move bulk of implementation to...
11353         (timer::start): ...here, adding "m_" prefixes.
11354         (timevar_stop): Likewise, from here...
11355         (timer::stop): ...to here.
11356         (timevar_cond_start): Likewise, from here...
11357         (timer::cond_start): ...to here.
11358         (timevar_cond_stop): Likewise, from here...
11359         (timer::cond_stop): ...to here.
11360         (validate_phases): Rename to...
11361         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
11362         locals "total" and "tv" const.
11363         (timevar_print): Rename to...
11364         (timer::print): ...this, and add "m_" prefixes.  Make locals
11365         "total" and "tv" const.  Eliminate test for timevar_enable.
11366         * timevar.h (timevar_enable): Eliminate.
11367         (g_timer): New declaration.
11368         (timevar_push_1): Eliminate.
11369         (timevar_pop_1): Eliminate.
11370         (timevar_print): Eliminate.
11371         (class timer): New class.
11372         (timevar_push): Rewrite to use g_timer.
11373         (timevar_pop): Likewise.
11374         * toplev.c (toplev::~toplev): Likewise.
11375
11376 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
11377
11378         * arm-protos.h (arm_sched_autopref): Delete.
11379         (tune_params): Re-organize, use enums for flag values.
11380         (FUSE_OPS): New macro.
11381         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11382         (ARM_PREFETCH_BENEFICIAL): Likewise.
11383         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11384         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11385         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11386         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11387         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11388         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
11389         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11390         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11391         format.
11392         (arm_option_override, thumb2_reorg, arm_print_tune_info)
11393         (aarch_macro_fusion_pair_p): Update uses of current_tune.
11394         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11395
11396 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
11397
11398         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11399         "break".
11400
11401 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
11402             Sandra Loosemore <sandra@codesourcery.com>
11403
11404         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11405         value.
11406         (REG_CLASS_NAMES): Add "IJMP_REGS".
11407         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11408         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11409         use new "c" register constraint.
11410         * config/nios2/constraint.md (c): New register constraint
11411         corresponding to IJMP_REGS.
11412
11413 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11414
11415         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11416         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11417         define_splits): Delete, revamp, transmogrify into ...
11418         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11419         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11420         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11421         New.
11422
11423 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11424
11425         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11426         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11427
11428 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11429
11430         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11431         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11432         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11433         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11434         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11435         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11436         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11437         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11438         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11439         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11440         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11441         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11442         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11443         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11444         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11445         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11446         and 30 corresponding splitters): Delete.
11447
11448 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11449
11450         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11451         zero_extract.
11452
11453 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11454
11455         * combine.c (recog_for_combine_1): New function, factored out
11456         from recog_for_combine.
11457         (change_zero_ext): New function.
11458         (recog_for_combine): If recog fails, try again with the pattern
11459         modified by change_zero_ext; if that still fails, restore the
11460         pattern.
11461
11462 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
11463
11464         * combine.c (get_undo_marker): New function.
11465         (undo_to_marker): New function, largely factored out from ...
11466         (undo_all): ... this.  Adjust.
11467
11468 2015-05-12  Richard Biener  <rguenther@suse.de>
11469
11470         PR tree-optimization/66101
11471         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11472         fixup if we turn a loop exit edge to a fallthru edge.
11473
11474 2015-05-12  Richard Biener  <rguenther@suse.de>
11475
11476         PR tree-optimization/37021
11477         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11478         (SLP_TREE_TWO_OPERATORS): New define.
11479         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11480         SLP_TREE_TWO_OPERATORS.
11481         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11482         SLP node.
11483         (vect_build_slp_tree): Adjust.
11484         (vect_analyze_slp_cost_1): Likewise.
11485         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11486         emitting two vector stmts and mixing the results.
11487
11488 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11489
11490         * call.c (print_z_candidates): Remove dead code.
11491
11492 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11493
11494         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11495         and zEC12_simple_fp.
11496         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11497         to 1.
11498
11499 2015-05-12  Tom de Vries  <tom@codesourcery.com>
11500
11501         PR tree-optimization/66010
11502         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11503         ifn_va_arg.
11504         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11505         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
11506         va_lists are passed, and remove corresponding handling.
11507         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
11508         do_deref argument to ifn_va_arg.
11509         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11510         ifn_va_arg.
11511
11512 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11513
11514         PR target/65955
11515         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11516         REG before taking its REGNO.
11517
11518 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11519
11520         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11521         rsp->sign_bit_copies and rsp->nonzero_bits into ...
11522         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
11523         present to get more accurate information about the number of sign bit
11524         copies and non zero bits.
11525
11526 2015-05-12  Richard Biener  <rguenther@suse.de>
11527
11528         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11529         do not allow unrolling.
11530
11531 2015-05-11  Richard Henderson  <rth@redhat.com>
11532
11533         * config/i386/i386-modes.def (CCP): New.
11534         * config/i386/i386.c (put_condition_code): Handle it.
11535         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11536
11537 2015-05-11  Richard Henderson  <rth@redhat.com>
11538
11539         * target.def (md_asm_clobbers): Replace with...
11540         (md_asm_adjust): this.
11541         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11542         (TARGET_MD_ASM_ADJUST): New.
11543         * tm.texi: Rebuild.
11544         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11545         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11546         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11547
11548         * cfgexpand.c (check_operand_nalternatives): Accept vector of
11549         constraints instead of lists of outputs and inputs.
11550         (expand_asm_stmt): Save and restore input_location around the
11551         body of the function.  Move asm data into vectors instead of
11552         building tree lists.  Generate cleanup sequences as needed,
11553         rather than waiting til the end.  Use new md_asm_adjust hook.
11554
11555         * config/vxworks.c: Include vec.h before target.h.
11556         * gimple.c: Likewise.
11557         * incpath.c: Likewise.
11558         * mode-switching.c: Likewise.
11559
11560         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11561         (cris_md_asm_adjust): this.
11562         (TARGET_MD_ASM_CLOBBERS): Remove.
11563         (TARGET_MD_ASM_ADJUST): New.
11564         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11565         (ix86_md_asm_adjust): this.
11566         (TARGET_MD_ASM_CLOBBERS): Remove.
11567         (TARGET_MD_ASM_ADJUST): New.
11568         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11569         (mn10300_md_asm_adjust): this.
11570         (TARGET_MD_ASM_CLOBBERS): Remove.
11571         (TARGET_MD_ASM_ADJUST): New.
11572         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11573         (rs6000_md_asm_adjust): this.
11574         (TARGET_MD_ASM_CLOBBERS): Remove.
11575         (TARGET_MD_ASM_ADJUST): New.
11576         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11577         (visium_md_asm_adjust): this.
11578         (TARGET_MD_ASM_CLOBBERS): Remove.
11579         (TARGET_MD_ASM_ADJUST): New.
11580
11581 2015-05-11  Richard Henderson  <rth@redhat.com>
11582
11583         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11584         if noutputs is zero.
11585         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11586
11587         * cfgexpand.c (expand_asm_operands): Merge into...
11588         (expand_asm_stmt): ... here.
11589
11590         * cfgexpand.c (expand_asm_operands): Don't call
11591         resolve_asm_operand_names.
11592         * stmt.c (resolve_asm_operand_names): Clarify block comment.
11593
11594 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
11595
11596         * dwarf2out.c (gen_member_die): Sanity check that we access
11597         TYPE_MAIN_VARIANT for TYPE_METHODS.
11598         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11599         checking TYPE_METHODS.
11600         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11601         if non-null.
11602         (build_distinct_type_copy): Clear TYPE_METHODS.
11603         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11604         (verify_type): Allow TYPE_METHODS to be error_mark_node.
11605         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11606
11607 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11608
11609         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11610         (emit_pattern_before_setloc): Likewise.
11611
11612 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11613
11614         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11615         for define_peephole2s.
11616         (get_peephole2_pattern): New function.
11617         (main): Use it.  Call validate_pattern.
11618
11619 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11620
11621         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11622         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11623         (Last callee saved reg is different for AVR_TINY architecture)
11624
11625 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11626
11627         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11628         when looking for memory references.
11629
11630 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11631
11632         PR target/65753
11633         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11634         via function pointers.
11635
11636 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11637
11638         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11639         indirect call by forcing address into a pseudo with -fno-plt.
11640         * common.opt (flag_plt): New option.
11641         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11642         ([-fno-plt]): Document.
11643
11644 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
11645
11646         PR bootstrap/66105
11647         * config/rs6000/option-defaults.h: Add space between string literal
11648         and macro name.
11649
11650 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11651
11652         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11653         accross ARM targets.
11654
11655 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11656
11657         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11658         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11659
11660 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11661
11662         PR rtl-optimization/66076
11663         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11664         Don't grow the heap array if it is already big enough from a
11665         previous iteration.
11666
11667 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11668
11669         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11670         (is_called_in_ARM_mode): Remove.
11671         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11672         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11673         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11674          arm_declare_function_name.
11675
11676 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11677
11678         * config/arm/arm.c (arm_option_override): Reoganized and split into :
11679         (arm_option_params_internal); New function.
11680         (arm_option_check_internal): New function.
11681         (arm_option_override_internal): New function.
11682         (thumb_code, thumb1_code): Remove.
11683         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11684         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11685         (thumb_code, thumb1_code): Remove.
11686         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11687
11688 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11689
11690         * config/alpha/alpha.c (alpha_emit_set_const_1)
11691         (alpha_emit_set_long_const, alpha_extract_integer)
11692         (alpha_legitimate_constant_p, alpha_split_const_mov)
11693         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11694         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11695         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11696         HOST_WIDE_INT_1U.
11697         * config/alpha/predicates.md (mode_mask_operand): Do not match
11698         const_double RTX.
11699         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11700         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11701         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11702         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11703         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11704
11705 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
11706
11707         PR target/65780
11708         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11709         default_binds_local_p_2.
11710         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11711         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11712
11713 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11714
11715         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11716
11717 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11718
11719         Patch by Richard Biener
11720         * coverage.c (coverage_obj_init): Delay building of type variant
11721         until the type is finished.
11722
11723 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11724
11725         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11726         mismatch between C and C++ type; compoare correctly ARG_TYPES
11727         for non-prototypes and output correctly parameter index for METHOD_TYPE.
11728         (odr_types_equivalent_p): Fix wording of warning about attributes;
11729         it is OK to match prototype and non-prototype.
11730
11731 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11732
11733         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11734         TYPE_ARG_TYPES list.
11735         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11736         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11737
11738 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11739
11740         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11741         * tree.h (is_lang_specific): Constify.
11742
11743 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
11744
11745         PR tree-optimization/64454
11746         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11747         Rewrite.
11748
11749 2015-05-08  Jason Merrill  <jason@redhat.com>
11750
11751         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11752         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11753         config/darwin.h, config/darwin9.h, config/elfos.h,
11754         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11755         config/microblaze/microblaze.h, config/mips/mips.h,
11756         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11757         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11758         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11759         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11760         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11761         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11762         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11763         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11764         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11765         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11766         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11767         between string literal and macro name.
11768
11769 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11770
11771         * jump.c: Change argument types to rtx_insn *.
11772         * rtl.h: Adjust.
11773
11774 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11775
11776         * lra-constraints.c: Change argument type to rtx_insn *.
11777
11778 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11779
11780         * df-problems.c: Change argument type to rtx_insn *.
11781
11782 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11783
11784         * combine.c: Change argument type to rtx_insn *.
11785
11786 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11787
11788         * rtl.h: Adjust.
11789         * rtlanal.c: Change argument type to rtx_insn *.
11790
11791 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11792
11793         * sched-deps.c: Change argument types to rtx_insn *.
11794         * sched-int.h: Adjust.
11795
11796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11797
11798         * dwarf2cfi.c: Change argument type to rtx_insn *.
11799
11800 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11801
11802         * ira.c (decrease_live_ranges_number): Changetype of local
11803         variable to rtx_insn *.
11804         * recog.c: Change argument types to rtx_insn *.
11805         * recog.h: Adjust.
11806
11807 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11808
11809         * reorg.c: Change argument types to rtx_insn *.
11810
11811 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11812
11813         * ira-color.c: Change argument types to rtx_insn *.
11814         * lra-eliminations.c: Likewise.
11815         * ira.h: Adjust.
11816
11817 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11818
11819         * gcse.c: Change argument types to rtx_insn *.
11820
11821 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11822
11823         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11824
11825 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11826
11827         * emit-rtl.c (emit_debug_insn_before): Change argument type to
11828         rtx_insn *.
11829         * rtl.h: Adjust.
11830
11831 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11832
11833         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11834         * rtl.h: Adjust.
11835
11836 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11837
11838         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11839         * rtl.h: Adjust.
11840
11841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11842
11843         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11844         * rtl.h: Adjust.
11845
11846 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11847
11848         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11849         * rtl.h: Adjust.
11850
11851 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11852
11853         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11854         to rtx_insn *.
11855         * rtl.h: Adjust.
11856
11857 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11858
11859         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11860         to rtx_insn *.
11861         * rtl.h: Likewise.
11862
11863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11864
11865         * except.c (can_nonlocal_goto): Change type of argument to
11866         rtx_insn *.
11867         * rtl.h: Adjust.
11868
11869 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11870
11871         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11872         * rtl.h: Adjust.
11873
11874 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11875
11876         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11877         * cfgrtl.c (can_delete_label_p): Adjust.
11878         * rtl.h: likewise.
11879
11880 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11881
11882         * reorg.c (stop_search_p): Change argument to rtx_insn *.
11883
11884 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11885
11886         * except.c (make_reg_eh_region_note): Change argument to
11887         rtx_insn *.
11888         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11889         * except.h: Adjust.
11890
11891 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11892
11893         * mode-switching.c (commit_mode_sets): Change type of local
11894         variable from rtx to rtx_insn *.
11895
11896 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
11897
11898         * doc/install.texi (--enable-languages): Add missing jit and lto info.
11899         Add ^ to grep command.
11900         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11901         arg to last gimple_simplify declaration.  Add missing gimple_build
11902         declaration for built-in function case with four tree args.
11903
11904 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
11905             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11906
11907         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11908         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11909         (GNU_USER_DYNAMIC_LINKERN32): Update.
11910
11911 2015-05-08  Richard Biener  <rguenther@suse.de>
11912
11913         PR tree-optimization/66036
11914         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11915         Handle strided group loads.
11916         (vect_verify_datarefs_alignment): Likewise.
11917         (vect_enhance_data_refs_alignment): Likewise.
11918         (vect_analyze_group_access): Likewise.
11919         (vect_analyze_data_ref_access): Likewise.
11920         (vect_analyze_data_ref_accesses): Likewise.
11921         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11922         (vectorizable_load): Likewise.
11923
11924 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
11925
11926         * config/rs6000/rs6000.md: Require operand inequality in one
11927         of the peepholes.
11928
11929 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
11930             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11931
11932         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11933         from (set ...).
11934         * config/rx/rx.md (movdi, movdf): Likewise.
11935         Likewise for define_peephole2s.
11936
11937 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11938
11939         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
11940         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
11941         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
11942         vtst_u64): Rewrite using gcc vector extensions.
11943
11944 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11945
11946         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
11947         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
11948
11949 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11950
11951         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
11952
11953 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11954
11955         * config/glibc-stdint.h (OPTION_MUSL): Define.
11956         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
11957         Change the definition based on OPTION_MUSL for 64 bit targets.
11958         * config/linux.h (OPTION_MUSL): Redefine.
11959         * config/alpha/linux.h (OPTION_MUSL): Redefine.
11960         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
11961         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
11962
11963 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
11964             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11965
11966         * config.gcc (LIBC_MUSL): New tm_defines macro.
11967         * config/linux.h (OPTION_MUSL): Define.
11968         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
11969         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
11970         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11971         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11972         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11973         * config/linux.opt (mmusl): New option.
11974         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
11975         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11976         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11977         * configure: Regenerate.
11978
11979 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
11980             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11981
11982         PR target/48904
11983         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
11984         * config/i386/knetbsd-gnu64.h: New file.
11985
11986 2015-05-08  Marek Polacek  <polacek@redhat.com>
11987
11988         PR c/64918
11989         * doc/invoke.texi: Document -Woverride-init-side-effects.
11990
11991 2015-05-07  Marek Polacek  <polacek@redhat.com>
11992
11993         PR c/65179
11994         * doc/invoke.texi: Document -Wshift-negative-value.
11995
11996 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
11997
11998         * gcov-tool.c (do_merge): Refactore to remove int ret.
11999         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12000         !type == FUNC to type != FUNC.
12001         * reload.h (struct target_reload): Changee to type of
12002         x_spill_indirect_levels from bool to unsigned char.
12003
12004 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
12005
12006         * rtl.h (always_void_p): New function.
12007         * gengenrtl.c (always_void_p): Likewise.
12008         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12009         with code foo are always VOIDmode.
12010         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12011         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12012         compare-elim.c, config/aarch64/aarch64.c,
12013         config/aarch64/aarch64.md, config/alpha/alpha.c,
12014         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12015         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12016         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12017         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12018         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12019         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12020         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12021         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12022         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12023         config/ia64/vect.md, config/iq2000/iq2000.c,
12024         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12025         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12026         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12027         config/mep/mep.c, config/microblaze/microblaze.c,
12028         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12029         config/mn10300/mn10300.c, config/msp430/msp430.c,
12030         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12031         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12032         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12033         config/rs6000/altivec.md, config/rs6000/rs6000.c,
12034         config/rs6000/rs6000.md, config/rs6000/vector.md,
12035         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12036         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12037         config/sh/sh.md, config/sh/sh_treg_combine.cc,
12038         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12039         config/spu/spu.md, config/stormy16/stormy16.c,
12040         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12041         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12042         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12043         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12044         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12045         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12046         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12047         var-tracking.c: Update calls accordingly.
12048
12049 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
12050
12051         PR middle-end/192
12052         PR middle-end/54303
12053         * varasm.c (function_mergeable_rodata_prefix): New function.
12054         (mergeable_string_section): Use it.
12055         (mergeable_constant_section): Use it.
12056
12057 2015-05-07  Jeff Law  <law@redhat.com>
12058
12059         PR target/39726
12060         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12061         simplifier to narrow arithmetic.
12062         * generic-match-head.c: (types_match, single_use): New functions.
12063         * gimple-match-head.c: (types_match, single_use): New functions.
12064
12065 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12066
12067         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12068         rtx type.
12069
12070 2015-05-07  Richard Biener  <rguenther@suse.de>
12071
12072         PR tree-optimization/66002
12073         * passes.def: Schedule another pass_merge_phi after ifcombine, right
12074         before phiopt.
12075
12076 2015-05-07  Marek Polacek  <polacek@redhat.com>
12077             Martin Uecker  <uecker@eecs.berkeley.edu>
12078
12079         * doc/invoke.texi: Document -fsanitize=bounds-strict.
12080         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12081         into SANITIZE_NONDEFAULT.
12082         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12083
12084 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
12085
12086         PR target/66015
12087         * config/alpha/alpha.c (alpha_override_options_after_change): New.
12088         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12089         (alpha_override_options): Move align_loops, align_jumps and
12090         align_functions handling into alpha_override_options_after_change.
12091
12092 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
12093             Chris Jones  <chrisj@nvidia.com>
12094             Joshua Conner  <jconner@nvidia.com>
12095
12096         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12097         linking of crtfastmath.o.
12098         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12099
12100 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
12101
12102         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12103         (cstore<mode>4_unsigned_imm): New expander.
12104         (cstore<mode>4): Remove empty constraint strings.  Use the new
12105         expanders.
12106
12107 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
12108
12109         PR target/64208
12110         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12111         alternatives.
12112
12113 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12114
12115         * config/aarch64/geniterators.sh: Use standard BRE in sed.
12116
12117 2015-05-06  Alan Modra  <amodra@gmail.com>
12118
12119         PR target/66033
12120         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12121         (UNSPEC_NOP): Define.
12122         (reload_vsx_from_gpr<mode>): Add missing DONE.
12123         (reload_gpr_from_vsx<mode>): Likewise.
12124         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12125         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12126
12127 2015-05-06  Christian Bruel  <christian.bruel@st.com>
12128
12129         PR target/66015
12130         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12131         align_jumps, align_functions into aarch64_override_options_after_change.
12132
12133 2015-05-06  Richard Biener  <rguenther@suse.de>
12134
12135         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12136         vect_transform_slp_perm_load to check if we support a permutation
12137         for basic-block vectorization.
12138
12139 2015-05-06  Nick Clifton  <nickc@redhat.com>
12140
12141         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12142         used, even if it is not being used as a frame pointer.
12143
12144 2015-05-05  Jason Merrill  <jason@redhat.com>
12145
12146         * dwarf2out.c (gen_member_die): Don't emit anything for an
12147         anonymous class constructor.
12148
12149 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
12150
12151         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12152         that it reflects the block structure.
12153         (afdo_propagate_edge): Likewise.
12154         (afdo_calculate_branch_prob): Likewise.
12155         (afdo_annotate_cfg): Likewise.
12156         * cfgcleanup.c (equal_different_set_p): Likewise.
12157         (try_crossjump_to_edge): Likewise.
12158         * cgraph.c (cgraph_node::verify_node): Likewise.
12159         * cgraphunit.c (expand_all_functions): Likewise.
12160         * config/i386/i386.c (ix86_expand_copysign): Likewise.
12161         (exact_dependency_1): Likewise.
12162         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12163         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12164         * gensupport.c (process_define_subst): Likewise.
12165         * lto-wrapper.c (merge_and_complain): Likewise.
12166         * tree-if-conv.c (if_convertible_bb_p): Likewise.
12167         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12168         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12169         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12170         * tree-vect-loop.c (vectorizable_reduction): Likewise.
12171         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12172         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12173         * tree-vrp.c (vrp_finalize): Likewise.
12174         * tree.c (variably_modified_type_p): Likewise.
12175
12176 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
12177
12178         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12179         on darwin12 and later.
12180         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12181         file to pass -rdynamic on darwin12 and later.
12182         * config/darwin.opt (rdynamic): Add.
12183
12184 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12185
12186         * doc/extend.texi (C Extensions): Update menu for moved Variable
12187         Attributes and Type Attributes sections.
12188
12189 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12190
12191         PR target/65990
12192         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12193         if rep_8byte stringop strategy was specified for 32-bit target.
12194
12195 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
12196
12197         PR target/65915
12198         * config/i386/i386.md (vector convert to float spltiter): Check for
12199         xmm16+, when splitting scalar float conversion.
12200         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12201
12202 2015-05-05  Nick Clifton  <nickc@redhat.com>
12203
12204         * config/msp430/msp430-opts.h (enum msp430_regions): New.
12205         * config/msp430/msp430.c (msp430_override_options): Complain if
12206         -mcode-region or -mdata-region is used on a non MSP430X.
12207         (msp430_section_attr): New function.  Checks lower, upper and
12208         either attributes.
12209         (msp430_attribute_table): Add lower, upper and either.
12210         (gen_prefix): New function.  Generates a prefix for a section
12211         name.
12212         (msp430_select_section): New function - handles the choice of
12213         section for an object.  Takes into account memory region
12214         attributes and options.
12215         (msp430_function_section): Use gen_prefix.
12216         (TARGET_SECTION_TYPE_FLAGS): Define.
12217         (msp430_section_type_flags): New function.
12218         (TARGET_ASM_UNIQUE_SECTION): Define.
12219         (msp430_unique_section): New function.
12220         (msp430_output_aligned_decl_common): New function.
12221         (msp430_do_not_relax_short_jumps): New function.
12222         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12223         Define.
12224         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12225         * config/msp430/msp430-protos.h
12226         (msp430_do_not_relax_short_jumps): New prototype.
12227         (msp430_output_aligned_decl_common): New prototype.
12228         * config/msp430/msp430.md (length): New attribute.
12229         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12230         then use a long code sequence for short jumps.
12231         * config/msp430/msp430.opt (mcode-region): New.
12232         (mdata-region): New.
12233         * doc/invoke.texi: Document new options.
12234         * doc/extend.texi: Document new attributes.
12235
12236 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12237
12238         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12239         (tune_params): Add field branch_costs.
12240         (aarch64_branch_cost): Declare.
12241         * gcc/config/aarch64.c (generic_branch_cost): New.
12242         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12243         (cortexa53_tunings): Likewise.
12244         (cortexa57_tunings): Likewise.
12245         (thunderx_tunings): Likewise.
12246         (xgene1_tunings): Likewise.
12247         (aarch64_branch_cost): Define.
12248         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12249
12250 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12251
12252         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12253         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12254         * config/i386/i386.md: Ditto.
12255         * config/i386/winnt.c: Ditto.
12256
12257 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12258
12259         * doc/extend.texi (__atomic Builtins): Move implementation details
12260         to the end of the description, rewrite opening paragraphs, state
12261         difference with __sync builtins, state C11/C++11 assumptions,
12262         weaken itemized descriptions, add explanation of memory model
12263         behaviour, expand description of compare-exchange, simplify text.
12264
12265 2015-05-05  Renlin Li  <renlin.li@arm.com>
12266
12267         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12268
12269 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
12270
12271         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12272         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12273         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12274         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12275         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12276         * configure: Regenerate.
12277         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12278         * doc/install.texi (aarch64*-*-*): Document new
12279         --enable-fix-cortex-a53-843419 option.
12280         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12281         and -mno-fix-cortex-a53-843419 options.
12282
12283 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12284
12285         PR target/65871
12286         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12287
12288 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
12289
12290         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12291         fix overactive TYPE_MIN_VALUE check and add FIXME for type
12292         compatibility problems.
12293
12294 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
12295
12296         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12297         constraints.
12298         (cbranchsi4_reg): New.
12299         * config/microblaze/microblaze.c
12300         (microblaze_expand_conditional_branch_reg): New.
12301         * config/microblaze/microblaze-protos.h
12302         (microblaze_expand_conditional_branch_reg): New prototype.
12303
12304 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
12305
12306         * config/microblaze/microblaze.md (peephole2): New.
12307
12308 2015-05-04  Jeff Law  <law@redhat.com>
12309
12310         Revert:
12311         2015-05-04  Jeff Law  <law@redhat.com>
12312
12313         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12314         simplifier to narrow arithmetic.
12315         * generic-match-head.c: (types_match, single_use): New functions.
12316         * gimple-match-head.c: (types_match, single_use): New functions.
12317
12318 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12319
12320         PR target/65987
12321         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12322         (split_branches): Likewise.
12323
12324 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
12325
12326         * common.opt (fdelete-null-pointer-checks): Init to -1.
12327         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12328         override flag_delete_null_pointer_checks default.
12329         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12330         behavior re address zero.  Better document target-specific behavior.
12331         (-fisolate-errneous-paths-dereference): Mention relationship to
12332         -fdelete-null-pointer-checks.
12333
12334 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
12335
12336         PR tree-optimization/65984
12337         * ubsan.c: Include tree-cfg.h.
12338         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12339         stmt_could_throw_p test, rename can_throw variable to ends_bb.
12340
12341 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
12342
12343         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12344         to CONST_DOUBLE_P predicate.
12345         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12346         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12347         allow only operands that satisfy standard_sse_constant_p predicate.
12348         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12349         to CONST_DOUBLE_P predicate.
12350
12351 2015-05-04  Jeff Law  <law@redhat.com>
12352
12353         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12354         simplifier to narrow arithmetic.
12355         * generic-match-head.c: (types_match, single_use): New functions.
12356         * gimple-match-head.c: (types_match, single_use): New functions.
12357
12358 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
12359
12360         * config/arm/arm.c: Restore bootstrap.
12361
12362 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
12363
12364         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12365         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12366         as CONST_WIDE_INT, not CONST_DOUBLE.
12367         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12368         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12369         (ix86_find_base_term): Do not check for CONST_DOUBLE.
12370         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12371         (ix86_build_signbit_mask): Rewrite using wide ints.
12372         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12373         (ix86_rtx_costs): Handle CONST_WIDE_INT.
12374         (find_constant): Ditto.
12375         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12376         using gen_int_mode.
12377         * config/i386/predicates.md (x86_64_immediate_operand)
12378         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12379         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12380         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12381         (const0_operand): Also match const_wide_int.
12382         (constm1_operand): Ditto.
12383         (const1_operand): Ditto.
12384
12385 2015-05-04  Richard Biener  <rguenther@suse.de>
12386
12387         PR tree-optimization/65965
12388         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12389         store groups at gaps.
12390
12391 2015-05-04  Richard Biener  <rguenther@suse.de>
12392
12393         PR tree-optimization/65935
12394         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12395         then make sure to apply that swapping to the IL.
12396
12397 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
12398
12399         * Makefile.in (PATCHLEVEL_c): New variable.
12400         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12401         expand the same way as if DEVPHASE_c was non-empty.
12402
12403 2015-05-04  Kai Tietz  <ktietz@redhat.com>
12404
12405         PR target/65559
12406         * lto-wrapper.c (run_gcc): Open filename
12407         in binary-mode.
12408
12409 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
12410
12411         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
12412         sections up in file, to immediately after the Function Attributes
12413         section.
12414
12415 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
12416
12417         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12418
12419 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12420
12421         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12422         (insert_partition_copy_on_edge): Adjust.
12423         (insert_rtx_to_part_on_edge): Likewise.
12424         (insert_part_to_rtx_on_edge): Likewise.
12425
12426 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12427
12428         * function.c (set_return_jump_label): Change type of argument to
12429         rtx_insn *.
12430         * function.h (set_return_jump_label): Adjust.
12431
12432 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12433
12434         * reload.h (struct reg_equivs_t): Change type of init to
12435         rtx_insn *.
12436         * ira.c (fix_reg_equiv_init): Adjust.
12437         * reload1.c (eliminate_regs_1): Likewise.
12438         (init_eliminable_invariants): Likewise.
12439
12440 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12441
12442         * cselib.c (fp_setter_insn): Take a rtx_insn *.
12443         * cselib.h (fp_setter_insn): Adjust.
12444
12445 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12446
12447         * recog.c (struct validate_replace_src_data): Change type of
12448         insn field to rtx_insn *.
12449         (validate_replace_src_group): Change type of argument to rtx_insn *.
12450         * recog.h (validate_replace_src_group): Adjust.
12451
12452 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12453
12454         * haifa-sched.c: Change the type of some variables to rtx_insn *.
12455         * sched-deps.c: Likewise.
12456         * sched-int.h: Likewise.
12457         * sched-rgn.c: Likewise.
12458         * sel-sched.c: Likewise.
12459
12460 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12461
12462         to rtx_insn *.
12463         * config/i386/i386.c: Change the type of some arguments to
12464         rtx_insn *.
12465         * config/arm/arm.c: Likewise.
12466
12467 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12468
12469         * lra-constraints.c: Change type of some arguments to rtx_insn *.
12470
12471 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12472
12473         * regcprop.c (kill_autoinc_value): Change type of argument to
12474         rtx_insn *.
12475
12476 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12477
12478         * genrecog.c (print_subroutine): Adjust.
12479         * recog.c (get_bool_attr_mask_uncached): Likewise.
12480         * recog.h (struct recog_data_d): Change the type of insn to
12481         rtx_insn *.
12482
12483 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12484
12485         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12486
12487 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12488
12489         * df-problems.c (df_set_note): Change type of argument to
12490         rtx_insn *.
12491
12492 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12493
12494         * builtins.c (expand_builtin_trap): Change type of local
12495         variable to rtx_insn *.
12496         (add_sched_insns_for_speculation): Likewise.
12497         (ix86_emit_save_regs): Likewise.
12498         (get_scratch_register_on_entry): Likewise.
12499         (ix86_emit_restore_reg_using_pop): Likewise.
12500         (ix86_emit_leave): Likewise.
12501         (ix86_emit_restore_regs_using_mov): Likewise.
12502         (ix86_expand_epilogue): Likewise.
12503         Likewise.
12504         (rl78_alloc_physical_registers_umul): Likewise.
12505         * cselib.c (discard_useless_locs): Likewise.
12506         (cselib_invalidate_regno): Likewise.
12507         (cselib_invalidate_mem): Likewise.
12508         * function.c (expand_function_start): Likewise.
12509         (emit_use_return_register_into_block): Likewise.
12510         * gcse.c: Likewise.
12511         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12512         * ifcvt.c (noce_get_alt_condition): Likewise.
12513         * loop-doloop.c (doloop_condition_get): Likewise.
12514         * lra-constraints.c (inherit_in_ebb): Likewise.
12515         * modulo-sched.c (sms_schedule_by_order): Likewise.
12516         * recog.c (next_insn_tests_no_inequality): Likewise.
12517         * reorg.c (emit_delay_sequence): Likewise.
12518         (update_reg_dead_notes): Likewise.
12519         (fix_reg_dead_note): Likewise.
12520         (fill_slots_from_thread): Likewise.
12521         (delete_computation): Likewise.
12522
12523 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
12524
12525         * doc/extend.texi (Variable Attributes): Add menu and proper
12526         @nodes to subsections.  Move Microsoft Windows attributes to
12527         their own subsection.
12528         (Type Attributes): Reorganize introduction to remove duplicate
12529         list of attributes.  Add menu and proper @nodes to subsections.
12530         Alphabetize the main table of common attributes.
12531
12532 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12533
12534         * match.pd: New simplification patterns.
12535         (x + (x & 1))  -> ((x + 1) & ~1)
12536         (x & ~(x & y)) -> ((x & ~y))
12537         (x | ~(x | y)) -> ((x | ~y))
12538
12539 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12540
12541         * target.def (attribute_table): Mention that struct attribute_spec
12542         is defined in tree-core.h rather than tree.h
12543         * doc/tm.texi: Regenerate.
12544
12545 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
12546
12547         * genrecog.c (test): Rename to rtx_test.  Update rest of file
12548         accordingly.
12549
12550 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12551
12552         PR translation/65959
12553         * params.h (DEFPARAM): Rename msgid to nocmsgid.
12554
12555 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12556
12557         * gcc/config/aarch64/aarch64-protos.h (tune_params):
12558         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12559         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12560         Return value depending on target.
12561         (generic_tunings): Initialize new target settings.
12562         (cortexa53_tunings): Likewise.
12563         (cortexa57_tunings): Likewise.
12564         (thunderx_tunings): Likewise.
12565         (xgene1_tunings): Likewise.
12566
12567 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12568
12569         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12570         Make Cortex-A53 shift costs more accurate.
12571
12572 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12573
12574         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12575         UNSIGNED_FLOAT.
12576
12577 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12578
12579         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12580         Calculate cost of op0 and op1 in PLUS and MINUS cases.
12581
12582 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12583
12584         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12585         Add cost of op0 in the compare-with-fpzero case.
12586
12587 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
12588
12589         * builtins.c (fold_builtin_1): Remove spurious second
12590         semicolon.
12591         * cgraph.h (symtab_node::get_availability): Likewise.
12592         * opts.c (common_handle_option): Remove spurious second semicolon.
12593         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12594         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12595
12596 2015-04-30  Caroline Tice  <cmtice@google.com>
12597
12598         PR gcov-profile/65929
12599         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12600         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12601         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12602         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12603         * doc/tm.texi: Regenerate.
12604         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
12605         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12606         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
12607         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12608
12609 2015-04-30  Marek Polacek  <polacek@redhat.com>
12610
12611         * varasm.c (handle_cache_entry): Fix logic.
12612
12613 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12614
12615         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12616         (*extrsi5_insn_uxtw_alt): Likewise.
12617         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12618         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12619         operations.
12620
12621 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12622
12623         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12624         fabd in ABS case.
12625
12626 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12627
12628         * config/aarch64/aarch64.md
12629         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12630         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12631         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12632         appropriately.  Handle alternative EON form.
12633
12634 2015-04-30  Renlin Li  <renlin.li@arm.com>
12635
12636         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12637         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12638
12639 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12640
12641         PR ipa/65873
12642         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12643         -fstrict-aliasing boundaries.
12644
12645 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12646
12647         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12648         and [SU]MNEGL patterns.
12649
12650 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12651
12652         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12653         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12654         combined arithmetic-shift ops.  Properly handle all shift and extend
12655         operations that can occur in combination with PLUS/MINUS.
12656         Rename maybe_fma to compound_p.
12657         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12658         arithmetic and shift operations.
12659
12660 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12661
12662         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12663         rather than arith_shift cost when costing ADD/MINUS of an
12664         extended value.
12665
12666 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12667
12668         PR lto/65948
12669         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12670         to itself.
12671
12672 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
12673
12674         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12675         are for the same position.
12676
12677 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
12678
12679         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
12680         vectorize_loops.
12681         (vectorize_loops): Use it.
12682
12683 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12684
12685         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12686         for aggregate types.
12687         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12688         type to be non_ODR.
12689         * tree.c (need_assembler_name_p): Compute mangled name for
12690         non-fundamental types and integer types.
12691
12692 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
12693
12694         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12695         manual swaps.
12696         * expr.c (expand_expr_real_2): Likewise.
12697
12698 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12699
12700         * tree.c (build_common_builtin_nodes): Do not build
12701         __builtin_alloca_with_align as equivalent of library alloca.
12702
12703 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12704
12705         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12706         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12707         bugus variants.
12708         * tree.c: Include print-tree.h and ipa-utils.h
12709         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12710         (free_lang_data_in_cgraph): Call verify_type.
12711         (verify_type_variant): New function.
12712         (verify_type): New function.
12713         * tree.h (verify_type): Declare.
12714
12715 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
12716
12717         * config/mips/mips-cpus.def: (mips4): Change default processor
12718         from PROCESSOR_R8000 to PROCESSOR_R10000.
12719
12720 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12721
12722         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12723         la/jalr instead of jal.
12724
12725 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
12726
12727         PR target/65871
12728         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12729         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12730         (setcc+movzbl peephole2): Check also clobbered reg.
12731         (setcc+andl peephole2): Ditto.
12732
12733 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12734
12735         PR libgomp/65099
12736         * config/nvptx/mkoffload.c (target_ilp32): New variable.
12737         (main): Set it depending on "-foffload-abi=[...]".
12738         (compile_native, main): Use it to pass "-m32" or "-m64" to the
12739         compiler.
12740
12741 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12742
12743         PR target/65770
12744         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12745         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12746         Flip lane index back at assembly time for bigendian.
12747
12748 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12749
12750         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12751         * gimplify.c (gimplify_omp_workshare): Use it.
12752
12753 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12754
12755         * Makefile.in (build/genrecog.o): Depend on inchash.h.
12756         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12757         build/inchash.o
12758         * genrecog.c: Rewrite most of the code except for the third page.
12759
12760 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12761
12762         * inchash.h, inchash.c: Include bconfig.h for build objects.
12763         * Makefile.in (build/inchash.o): New rule.
12764
12765 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
12766
12767         PR target/65924
12768         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12769         number in type attribute expression.
12770
12771 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12772
12773         * loop-iv.c (canon_condition): Generalize to all types of integer
12774         constant.
12775
12776 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
12777
12778         * gimple-walk.c: Prune duplicate or unneeded includes.
12779         (walk_gimple_asm): Only call parse_input_constraint or
12780         parse_output_constraint if their findings are used.
12781         Honour parse_input_constraint and parse_output_constraint
12782         result.
12783
12784 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12785
12786         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12787
12788 2015-04-29  Tom de Vries  <tom@codesourcery.com>
12789
12790         PR tree-optimization/65893
12791         * passes.def (pass_all_optimizations): Move pass_stdarg to after
12792         pass_dce.
12793
12794 2015-04-29  Richard Biener  <rguenther@suse.de>
12795
12796         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12797         compute GROUP_SIZE for basic-block SLP.
12798         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12799         take into account gaps.
12800         (vect_get_mask_element): Properly reject references to previous
12801         vectors.
12802         (vect_transform_slp_perm_load): Likewise.
12803
12804 2015-04-29  Christian Bruel  <christian.bruel@st.com>
12805
12806         PR target/64835
12807         * config/i386/i386.c (ix86_default_align): New function.
12808         (ix86_override_options_after_change): Call ix86_default_align.
12809         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12810         (ix86_override_options_after_change): New function.
12811
12812 2015-04-28  Jeff Law  <law@redhat.com>
12813
12814         * tree-ssa-dom.c (record_equality); Fix comment typos.
12815
12816 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12817
12818         PR tree-optimization/65887
12819         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12820
12821 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
12822
12823         * doc/extend.texi (Declaring Attributes of Functions): Split into
12824         subsections by target.  Alphabetize the table of common attributes.
12825         Rewrite some of the introductory text to reflect the new structure.
12826         Update some cross-references to point to the new subsections.
12827         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
12828         duplicate copies in the discussion of function, label, and type
12829         attributes.
12830
12831 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
12832
12833         PR bootstrap/65910
12834         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12835
12836 2015-04-28  Jason Merrill  <jason@redhat.com>
12837
12838         PR c++/65734
12839         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12840         (finalize_type_size): Respect TYPE_USER_ALIGN.
12841         (layout_type) [ARRAY_TYPE]: Likewise.
12842
12843 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
12844
12845         * config/arm/arm.md (*arm_movt): Fix type attribute.
12846         (*cmpsi_shiftsi): Likewise.
12847         (*cmpsi_shiftsi_swp): Likewise.
12848         (*movsicc_insn): Likewise.
12849         (*cond_move): Likewise.
12850         (*if_plus_move): Likewise.
12851         (*if_move_plus): Likewise.
12852         (*if_arith_move): Likewise.
12853         (*if_move_arith): Likewise.
12854         (*if_shift_move): Likewise.
12855         (*if_move_shift): Likewise.
12856         (*arm_movtas_ze): Likewise.
12857         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12858         redundancy and type attribute.
12859         (*thumb2_movsi_insn): Fix type attribute.
12860         (*thumb2_addsi_short): Likewise.
12861         (thumb2_addsi3_compare0): Likewise.
12862         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12863         attributes accordingly.
12864
12865 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
12866
12867         PR other/65911
12868         * function.c (pad_to_arg_alignment): Add parentheses.
12869
12870 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
12871
12872         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12873         libgcc/config/frv/elf-lib.h.
12874
12875 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12876
12877         * tree-call-cdce.c: Fix example in header comment.
12878
12879 2015-04-28  Richard Biener  <rguenther@suse.de>
12880
12881         PR tree-optimization/62283
12882         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12883         fails fatally and we are vectorizing a basic-block simply
12884         cause the child to be constructed piecewise.
12885         (vect_analyze_slp_cost_1): Adjust.
12886         (vect_detect_hybrid_slp_stmts): Likewise.
12887         (vect_bb_slp_scalar_cost): Likewise.
12888         (vect_get_constant_vectors): For piecewise constructed
12889         constants place them after the last def.
12890         (vect_get_slp_defs): Adjust.
12891         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12892         externals for basic-block vectorization.
12893
12894 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12895
12896         PR target/63503
12897         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12898         aarch64-*-*.
12899         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12900         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12901         (AARCH64_TUNE_FMA_STEERING): Likewise.
12902         * config/aarch64/aarch64-cores.def: Set
12903         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12904         FMUL/FMADD instructions.
12905         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12906         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
12907         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12908         * config/aarch64/cortex-a57-fma-steering.h: New file.
12909         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12910
12911 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
12912
12913         * gensupport.c (std_preds): Add missing codes to address_operand entry.
12914
12915 2015-04-28  Richard Biener  <rguenther@suse.de>
12916
12917         PR tree-optimization/65851
12918         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12919         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
12920         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
12921         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12922         (ccp_visit_phi_node): Adjust.
12923         (evaluate_stmt): For simplifications to SSA names return its
12924         lattice value if that isn't VARYING.  Return immediately when
12925         simplified to a constant.
12926         (visit_assignment): Adjust.
12927         (ccp_visit_stmt): Likewise.
12928
12929 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12930
12931         PR tree-optimization/65818
12932         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12933         evaluated.
12934
12935 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12936
12937         * calls.c (save_fixed_argument_area): Don't check
12938         ARGS_GROW_DOWNWARD with the preprocessor.
12939         (restore_fixed_argument_area): Likewise.
12940         (mem_overlaps_already_clobbered_arg_p): Likewise.
12941         (check_sibcall_argument_overlap): Likewise.
12942         (expand_call): Likewise.
12943         (emit_library_call_value_1): Likewise.
12944         (store_one_arg): Likewise.
12945         * function.c (assign_parms): Likewise.
12946         (locate_and_pad_parm): Likewise.
12947         (pad_to_arg_alignment): Likewise.
12948         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12949
12950 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12951
12952         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
12953         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
12954         * calls.c (save_fixed_argument_area): Don't chekc if
12955         ARGS_GROW_DOWNWARD is defined.
12956         (restore_fixed_argument_area): Likewise.
12957         (mem_overlaps_already_clobbered_arg_p): Likewise.
12958         (check_sibcall_argument_overlap): Likewise.
12959         (expand_call): Likewise.
12960         (emit_library_call_value_1): Likewise.
12961         (store_one_arg): Likewise.
12962         * function.c (assign_parms): Likewise.
12963         (locate_and_pad_parm): Likewise.
12964         (pad_to_arg_alignment): Likewise.
12965         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12966
12967 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12968
12969         * defaults.h (gen_epilogue): New function.
12970         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
12971         defined.
12972         * cfgrtl.c (cfg_layout_finalize): Likewise.
12973         * df-scan.c: Likewise.
12974         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12975         (reposition_prologue_and_epilogue_notes): Likewise.
12976         * reorg.c (find_end_label): Likewise.
12977         * toplev.c: Likewise.
12978
12979 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12980
12981         * bb-reorder.c (HAVE_return): Don't check if its undefined.
12982         * defaults.h (gen_simple_return): New function.
12983         (gen_simple_return): Likewise.
12984         (HAVE_return): Add default definition to false.
12985         (HAVE_simple_return): Likewise.
12986         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
12987         HAVE_return and HAVE_simple_return are defined.
12988         * function.c (gen_return_pattern): Likewise.
12989         (convert_jumps_to_returns): Likewise.
12990         (thread_prologue_and_epilogue_insns): Likewise.
12991         * reorg.c (find_end_label): Likewise.
12992         (dbr_schedule): Likewise.
12993         * shrink-wrap.c: Likewise.
12994         * shrink-wrap.h: Likewise.
12995
12996 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12997
12998         * defaults.h (EPILOGUE_USES): Add default definition of false.
12999         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13000         * resource.c (init_resource_info): Likewise.
13001
13002 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13003
13004         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13005         to false.
13006         * dwarf2out.c (field_byte_offset): REmove check if
13007         PCC_BITFIELD_TYPE_MATTERS is defined.
13008         * stor-layout.c (layout_decl): Likewise.
13009         (update_alignment_for_field): Likewise.
13010         (place_field): Likewise.
13011
13012 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13013
13014         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13015         true.
13016         * regrename.c (check_new_reg_p): Remove check if
13017         HARD_REGNO_RENAME_OK is defined.
13018         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13019
13020 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13021
13022         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13023         * cse.c (fold_rtx): Likewise.
13024         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13025         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13026         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13027         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13028         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13029         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13030         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13031         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13032         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13033         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13034         * Likewise.
13035         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13036         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13037         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13038         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13039         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13040         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13041         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13042         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13043         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13044         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13045         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13046         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13047         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13048         * doc/tm.texi: Regenerate.
13049         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13050         either true or false.
13051
13052 2015-04-27  Jeff Law  <law@redhat.com>
13053
13054         PR tree-optimization/65217
13055         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13056         of them has a single use, make sure it is the LHS of the implied
13057         copy.
13058
13059 2015-04-28  Alan Modra  <amodra@gmail.com>
13060
13061         PR target/65810
13062         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13063         (offsettable_ok_by_alignment): Use minimum of decl and toc
13064         pointer alignment.  Replace dead code with assertion.
13065         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
13066         case if size exceeds toc pointer alignment.
13067         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13068         (rs6000_emit_move): Likewise.
13069         * configure.ac: Add linker toc pointer alignment check.
13070         * configure: Regenerate.
13071         * config.in: Regenerate.
13072
13073 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
13074
13075         * config.gcc: Add h8300-*-linux.
13076         * config/h8300/linux.h: New.
13077         * config/h8300/t-linux: New.
13078         * config/h8300/h8300.c (h8300_option_override): Normal mode
13079         is not supported for h8300-*-linux.
13080         (h8300_file_start): Target priority change.
13081         (get_shift_alg): Likewise.
13082         (h8300_shift_need_scratch_p): Likewise.
13083         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13084         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13085
13086 2015-04-27  Caroline Tice  <cmtice@google.com>
13087
13088         * final.c (final_scan_insn):  Output cold_function_name as function
13089         type.
13090         * varasm.c (cold_function_name):  Make global.
13091         (assemble_start_function):  Re-set cold_function_name.
13092         (assemble_end_function): Output cold partition size.
13093         * varasm.h (cold_function_name):  Declare global.
13094
13095 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
13096
13097         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13098         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13099         constraint.
13100         (*movxi_internal_avx512f): Ditto.
13101         (define_split): Check for xmm16+, when splitting scalar float_extend.
13102         (*extendsfdf2_mixed): Use "v" constraint.
13103         (define_split): Check for xmm16+, when splitting scalar float_truncate.
13104         (*truncdfsf_fast_sse): Use "v" constraint.
13105         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13106         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13107         (define_peephole2): Check for xmm16+, when converting scalar
13108         float_truncate.
13109         (define_peephole2): Check for xmm16+, when converting scalar
13110         float_extend.
13111         (*fop_<mode>_comm_mixed): Use "v" constraint.
13112         (*fop_<mode>_comm_sse): Ditto.
13113         (*fop_<mode>_1_mixed): Ditto.
13114         (*sqrt<mode>2_sse): Ditto.
13115         (*ieee_s<ieee_maxmin><mode>3): Ditto.
13116
13117 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13118
13119         * combine.c (simplify_if_then_else): Use std::swap instead
13120         of manually swapping.
13121         (known_cond): Likewise.
13122         (simplify_comparison): Likewise.
13123
13124 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
13125
13126         PR target/64579
13127         * config/rs6000/htm.md: Remove all define_expands.
13128         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13129         UNSPECV_HTM_TABORTWCI): Remove.
13130         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13131         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13132         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13133         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13134         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13135         tabortwci_internal): Remove define_insns.
13136         (tabort<wd>c, tabort<wd>ci): New define_insns.
13137         (tabort): Use gpc_reg_operand.
13138         (tcheck): Remove operand.
13139         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13140         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13141         expected value.
13142         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13143         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
13144         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13145         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13146         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13147         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13148         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13149         (tcheck): Remove builtin argument.
13150         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13151         not TARGET_64BIT.
13152         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
13153         tabortdc and tabortdci builtins when not in 64-bit mode.
13154         Modify code to handle the loss of the HTM define_expands.
13155         Emit code to copy the CR register to TARGET.
13156         (htm_init_builtins): Modify code to handle the loss of the HTM
13157         define_expands.
13158         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13159         (RS6000_BTC_64BIT): Likewise.
13160         (RS6000_BTC_CR): New macro.
13161         * doc/extend.texi: Update documentation for htm builtins.
13162
13163 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13164
13165         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13166         of manually swapping.
13167         (simplify_associative_operation): Likewise.
13168         (simplify_binary_operation): Likewise.
13169         (simplify_plus_minus): Likewise.
13170         (simplify_relational_operation): Likewise.
13171         (simplify_ternary_operation): Likewise.
13172
13173 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13174
13175         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13176         (xs_hi_nonmemory_operand): Remove error.
13177         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13178         general_operand rather than xs_hi_general_operand.
13179
13180 2015-04-27  Richard Biener  <rguenther@suse.de>
13181
13182         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13183         (record_equivalences_from_stmt): Valueize rhs.
13184         (record_equality): Canonicalize x and y order via
13185         tree_swap_operands_p.  Do not swap operands for same loop depth.
13186
13187 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
13188
13189         PR target/65296
13190         PR target/65895
13191         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13192         Add hint how to use own spec file.
13193
13194 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
13195
13196         PR tree-optimization/65875
13197         * tree-vrp.c (update_value_range): If in is_new case setting
13198         old_vr to VR_VARYING, also set new_vr to it.  Remove
13199         old_vr->type == VR_VARYING test.
13200         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13201         SSA_PROP_INTERESTING if update_value_range returned true,
13202         but new range is VR_VARYING.
13203
13204 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13205
13206         * combine.c (sign_extend_short_imm): New.
13207         (set_nonzero_bits_and_sign_copies): Use above new function for sign
13208         extension of src short immediate.
13209         (reg_nonzero_bits_for_combine): Likewise for tem.
13210
13211 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13212
13213         * stor-layout.c (self_referential_component_ref_p): New predicate.
13214         (copy_self_referential_tree_r): Use it.
13215         (self_referential_size): Punt for simple operations directly involving
13216         self-referential component references.
13217         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13218
13219 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13220
13221         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13222
13223 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13224
13225         * vec.h (vec): Make splice arguments const.  Update definitions
13226         accordingly.
13227
13228 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
13229
13230         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13231         alternatives.
13232
13233 2015-04-26  Tom de Vries  <tom@codesourcery.com>
13234
13235         PR tree-optimization/65826
13236         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13237
13238 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
13239
13240         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13241         (*madd3<mode>): Ditto.
13242         (*msub4<mode>): Ditto.
13243         (*msub3<mode>): Ditto.
13244         (*nmadd4<mode>): Ditto.
13245         (*nmadd3<mode>): Ditto.
13246         (*nmadd4<mode>_fastmath): Ditto.
13247         (*nmadd3<mode>_fastmath): Ditto.
13248         (*nmsub4<mode>): Ditto.
13249         (*nmsub3<mode>): Ditto.
13250         (*nmsub4<mode>_fastmath): Ditto.
13251         (*nmsub3<mode>_fastmath): Ditto.
13252
13253 2015-04-24  Jason Merrill  <jason@redhat.com>
13254
13255         PR c++/50800
13256         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13257         down when building TYPE_CANONICAL.
13258         (build_pointer_type_for_mode): Likewise.
13259
13260 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
13261
13262         * genrecog.c (validate_pattern): Check matching constraint refers
13263         to a lower numbered operand.
13264
13265 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13266
13267         PR target/65849
13268         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13269         save to independent variables use the Save attribute.  This will
13270         allow these options to be modified with the #pragma/attribute
13271         target support.
13272         (-mallow-movmisalign): Likewise.
13273         (-mallow-df-permute): Likewise.
13274         (-msched-groups): Likewise.
13275         (-malways-hint): Likewise.
13276         (-malign-branch-targets): Likewise.
13277         (-mvectorize-builtins): Likewise.
13278         (-msave-toc-indirect): Likewise.
13279
13280         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13281         can be set via the #pragma/attribute target support.
13282         (rs6000_opt_vars): Likewise.
13283         (rs6000_inner_target_options): If VSX was set, also set
13284         -mno-avoid-indexed-addresses.
13285
13286 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13287
13288         * config/arm/iterators.md (shiftable_ops): Rename to...
13289         (SHIFTABLE_OPS): ... This.  Update use in comments.
13290         (ior_xor): Rename to...
13291         (IOR_XOR): ... This.
13292         (vqh_ops): Rename to...
13293         (VQH_OPS): ... This.
13294         (vqhs_ops): Rename to...
13295         (VQHS_OPS): ... This.
13296         (rshifts): Rename to...
13297         (RSHIFTS): ... This.
13298         (returns): Rename to...
13299         (RETURNS): ... This.
13300         * config/arm/arm.md: Update uses of the above.
13301         * config/arm/neon.md: Likewise.
13302
13303 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13304
13305         * config.host (case ${host}): Add aarch64*-*-linux case.
13306         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13307         fields to all the cores.
13308         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13309         Add MCPU_MTUNE_NATIVE_SPECS.
13310         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13311         field to all extensions.
13312         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13313         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13314         Adjust definition of AARCH64_OPT_EXTENSION.
13315         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13316         (MCPU_MTUNE_NATIVE_SPECS): Define.
13317         * config/aarch64/driver-aarch64.c: New file.
13318         * config/aarch64/x-arch64: New file.
13319         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13320         -mtune and -march.
13321
13322 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13323             Wei Mi  <wmi@google.com>
13324
13325         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13326         * config/i386/i386.c (extract_base_offset_in_addr): New function.
13327         (ix86_operands_ok_for_move_multiple): Ditto.
13328         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13329         (movlpd/movhpd to movupd peephole2): Ditto.
13330
13331 2015-04-24  Marek Polacek  <polacek@redhat.com>
13332
13333         PR c/61534
13334         * input.h (from_macro_expansion_at): Define.
13335
13336         PR c/63357
13337         * doc/invoke.texi: Update description of -Wlogical-op.
13338
13339 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13340
13341         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13342         ternary operator in fprintf and harmonize spacing.
13343
13344 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13345
13346         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13347         Mark operand1 commutative.
13348
13349 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
13350
13351         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13352         input operands in memory.
13353         (*vec_concatv2si_sse4_1): Ditto.
13354         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13355         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13356         register_operand.
13357         (vec_extract_hi_v32hi): Ditto.
13358         (vec_extract_hi_v64hi): Ditto.
13359         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13360
13361 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13362             Steven Bosscher <steven@gcc.gnu.org>
13363
13364         PR rtl-optimization/34503
13365         * cprop.c (cprop_reg_p): New.
13366         (hash_scan_set): Use above function to check if register can be
13367         propagated.
13368         (find_avail_set): Return up to two sets, one whose source is a
13369         register and one whose source is a constant.  Sets are returned in an
13370         array passed as parameter rather than as a return value.
13371         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
13372         sets returned by find_avail_set, starting with the one whose source is
13373         a constant. Use cprop_reg_p to check if register can be propagated.
13374         (do_local_cprop): Use cprop_reg_p to check if register can be
13375         propagated.
13376         (implicit_set_cond_p): Likewise.
13377
13378 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13379
13380         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13381         (sem_function::equals): IGNORED_NODES parameter is now unused;
13382         update call of equals_private.
13383         (sem_function::equals_private): Do not call equals_wpa; skip
13384         gimple body matching if there is no body.
13385         (sem_function::init): Add logic to hash tthunk info.
13386         (sem_function::parse): Also parse thunks.
13387         * ipa-icf.h (equals_private): Update declaration.
13388
13389 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13390
13391         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13392         asterisk from name so this can be generated directly.
13393         (*altivec_stvx_<mode>_internal): Likewise.
13394         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13395         that this is never called during or after reload/lra.
13396         (rs6000_frame_related): Remove split_reg
13397         argument and logic that references it.
13398         (emit_frame_save): Remove last parameter from call to
13399         rs6000_frame_related.
13400         (rs6000_emit_prologue): Remove last parameter from eight calls to
13401         rs6000_frame_related.  Force generation of stvx instruction for
13402         Altivec register saves.  Remove split_reg handling, which is no
13403         longer needed.
13404         (rs6000_emit_epilogue):  Force generation of lvx instruction for
13405         Altivec register restores.
13406
13407 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13408
13409         * config/rs6000/rs6000.opt (mcrypto): Change option description to
13410         match category changes in ISA 2.07B.
13411
13412 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13413
13414         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13415         iterators.
13416         (cmp_op, cmp_type): New code attributes.
13417         (NEON_VCMP, NEON_VACMP): New int iterators.
13418         (cmp_op_unsp): New int attribute.
13419         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13420         (neon_vceq<mode>): Delete.
13421         (neon_vc<cmp_op><mode>_insn): New pattern.
13422         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13423         (neon_vcgeu<mode>): Delete.
13424         (neon_vcle<mode>): Likewise.
13425         (neon_vclt<mode>: Likewise.
13426         (neon_vcage<mode>): Likewise.
13427         (neon_vcagt<mode>): Likewise.
13428         (neon_vca<cmp_op><mode>): New define_expand.
13429         (neon_vca<cmp_op><mode>_insn): New pattern.
13430         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13431
13432 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13433
13434         * tree.h (attribute_value_equal): Declare.
13435         * tree.c (attribute_value_equal): Export.
13436
13437 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13438
13439         * ipa-icf.c (sem_item::compare_attributes): New function.
13440         (sem_item::compare_referenced_symbol_properties): Compare variable
13441         attributes.
13442         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13443         (sem_function::param_used_p): New function.
13444         (sem_function::equals_wpa): Fix attribute comparsion; match
13445         parameter type codes; do not compare paremter flags when
13446         they are not used; compare edge flags; compare indirect calls.
13447         (sem_item::update_hash_by_addr_refs): Hash reference type.
13448         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13449         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13450         reference use type.
13451         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13452         * ipa-icf.h (compare_attributes, param_used_p): Declare.
13453
13454 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
13455
13456         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13457         cleanup.
13458         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13459         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13460         (sem_item::compare_referenced_symbol_properties): New.
13461         (sem_item::hash_referenced_symbol_properties): New.
13462         (sem_item::compare_cgraph_references): Rename to ...
13463         (sem_item::compare_symbol_references): ... this one; use
13464         compare_referenced_symbol_properties.
13465         (sem_function::equals_wpa): Do not compare
13466         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13467         DECL_IS_OPERATOR_NEW; compare pointer sizes.
13468         (sem_item::update_hash_by_addr_refs): Call
13469         hash_referenced_symbol_properties.
13470         (sem_item::update_hash_by_local_refs): Cleanup.
13471         (sem_function::merge): Do not mix up symbol properties.
13472         (sem_variable::equals_wpa): Use compare_symbol_references.
13473         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13474         (sem_item::hash_referenced_symbol_properties): New.
13475         (sem_item::compare_symbol_references): New.
13476         (sem_item::compare_cgraph_references): Remove.
13477
13478 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
13479
13480         PR target/26702
13481         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13482         Emit size of local.
13483
13484 2015-04-23  Nick Clifton  <nickc@redhat.com>
13485
13486         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13487         ATTRIBUTE_UNUSED to x parameter.
13488         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13489
13490 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13491
13492         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13493         TARGET_CRYPTO to TARGET_P8_VECTOR>
13494         (crypto_vpermxor_<mode>): Likewise.
13495         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13496         (BU_CRYPTO_3A): Likewise.
13497         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13498         (BU_CRYPTO_OVERLOAD_3A): New #define.
13499         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13500         (VPMSUMH): Likewise.
13501         (VPMSUMW): Likewise.
13502         (VPMSUMD): Likewise.
13503         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13504         (VPERMXOR_V4SI): Likewise.
13505         (VPERMXOR_V8HI): Likewise.
13506         (VPERMXOR_V16QI): Likewise.
13507         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13508         BU_CRYPTO_OVERLOAD_2A.
13509         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13510         BU_CRYPTO_OVERLOAD_3A.
13511         * config/rs6000/rs6000.opt (mcrypto): Change description of
13512         option.
13513
13514 2015-04-23  Richard Biener  <rguenther@suse.de>
13515
13516         * passes.def: Remove copy propagation passes run directly after CCP.
13517         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13518         SSA names.
13519         (ccp_visit_phi_node): Rework to handle first executable edge
13520         specially.
13521
13522 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
13523
13524         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13525         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13526         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13527         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13528         (thumb_legimitimize_reload_address): Remove.
13529         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13530         Remove.
13531         (thumb_legimitimize_reload_address): Remove.
13532
13533 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13534
13535         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13536
13537 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13538
13539         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13540         MAX_LDM_STM_OPS.
13541         (store_multiple): Likewise.
13542
13543 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13544
13545         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13546         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13547         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13548         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13549         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13550         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13551         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13552         Specify issue_rate value.
13553         (arm_issue_rate): Look up issue rate from tuning structs. Remove
13554         large switch statement.
13555         (arm_marvell_pj4_tune): New struct.
13556         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13557         struct.
13558
13559 2015-04-23  Richard Biener  <rguenther@suse.de>
13560
13561         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13562         (vect_find_last_store_in_slp_instance): Rename to ...
13563         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13564         (vect_analyze_slp_cost_1): Use vector_load for constant defs
13565         and vec_construct for external defs when estimating prologue cost.
13566         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13567         Compute costs here only when vectorizing loops.
13568         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13569         have been determined.
13570         (vect_schedule_slp_instance): Simplify vectorized code placement
13571         and prepare for in-BB external defs.
13572         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13573         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13574         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13575         guard.
13576         (vect_model_load_cost): Likewise.
13577         (vectorizable_store): Instead add it here.
13578         (vectorizable_load): Likewise.
13579         (vect_is_simple_use): Dump def type textually.
13580
13581 2015-04-23  Richard Biener  <rguenther@suse.de>
13582
13583         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13584         * cfgloop.c (verify_loop_structure): Verify the root loop node.
13585         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13586         instead of get_eh_region_from_lp_number.
13587         * loop-init.c (fix_loop_structure): If we removed a loop, reset
13588         the SCEV cache.
13589
13590 2015-04-23  Anton Blanchard  <anton@samba.org>
13591
13592         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13593         need for -mprofile-kernel to save LR to stack.
13594
13595 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13596
13597         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13598         adjustments.
13599         (insn_is_swappable_p): Return 1 for a convert from double to
13600         single precision when all of its uses are splats of BE element
13601         zero.
13602
13603 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13604
13605         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13606
13607 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13608
13609         PR target/65456
13610         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
13611         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13612         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13613         option.
13614         (rs6000_builtin_mask_for_load): Return 0 for targets with
13615         efficient unaligned VSX accesses so that the vectorizer will use
13616         direct unaligned loads.
13617         (rs6000_builtin_support_vector_misalignment): Always return true
13618         for targets with efficient unaligned VSX accesses.
13619         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13620         stores on targets with efficient unaligned VSX accesses is almost
13621         always the same as the cost of an aligned load or store, so model
13622         it that way.
13623         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13624         unaligned vectors if we have efficient unaligned VSX accesses.
13625         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13626         undocumented option.
13627
13628 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13629
13630         Revert:
13631         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13632
13633         * config.gcc (LIBC_MUSL): New tm_defines macro.
13634         * config/linux.h (OPTION_MUSL): Define.
13635         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13636         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13637         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13638
13639         * config/linux.opt (mmusl): New option.
13640         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13641         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13642
13643         * configure: Regenerate.
13644
13645 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13646
13647         * config.gcc (LIBC_MUSL): New tm_defines macro.
13648         * config/linux.h (OPTION_MUSL): Define.
13649         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13650         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13651         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13652
13653         * config/linux.opt (mmusl): New option.
13654         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13655         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13656
13657         * configure: Regenerate.
13658
13659 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
13660
13661         * doc/invoke.texi (-fsanitize-sections): Update description.
13662         * asan.c (set_sanitized_sections): Parse incoming arg.
13663         (section_sanitized_p): Support wildcards.
13664
13665 2015-04-22  Tom de Vries  <tom@codesourcery.com>
13666
13667         PR tree-optimization/65823
13668         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13669         equality between ap_copy and ap.
13670
13671 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13672
13673         PR target/47098
13674         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13675
13676 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13677
13678         PR target/47122
13679         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13680
13681 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13682
13683         PR target/55144
13684         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13685         remove already contained t-files.
13686
13687 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13688
13689         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13690         Remove unneeded forward declarations.
13691         (suitable_for_tail_call_opt_p): Commentary typo fix.
13692
13693 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13694
13695         * varasm.c (emit_bss): Remove redundant guard.
13696
13697 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13698
13699         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13700
13701 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13702
13703         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13704
13705 2015-04-22  Hale Wang  <hale.wang@arm.com>
13706             Terry Guo  <terry.guo@arm.com>
13707
13708         PR rtl-optimization/64818
13709         * combine.c (can_combine_p): Don't combine user-specified
13710         register if it is in an asm input.
13711
13712 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
13713
13714         PR ipa/65076
13715         * passes.def (early_optimizations): Add pass_dse.
13716
13717 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13718
13719         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13720         * reorg.c (redundant_insn): Remove ifdef
13721         INSN_REFERENCES_ARE_DELAYED.
13722         * resource.c (mark_referenced_resources): Likewise.
13723
13724 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13725
13726         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13727         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13728         * resource.c (mark_set_resources): Likewise.
13729
13730 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13731
13732         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13733         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13734         (flow_find_head_matching_sequence): Likewise.
13735         (try_head_merge_bb): Likewise.
13736         * combine.c (can_combine_p): Likewise.
13737         (try_combine): Likewise.
13738         (distribute_notes): Likewise.
13739         * df-problems.c (can_move_insns_across): Likewise.
13740         * final.c (final): Likewise.
13741         * gcse.c (insert_insn_end_basic_block): Likewise.
13742         * ira.c (find_moveable_pseudos): Likewise.
13743         * reorg.c (try_merge_delay_insns): Likewise.
13744         (fill_simple_delay_slots): Likewise.
13745         (fill_slots_from_thread): Likewise.
13746         * sched-deps.c (sched_analyze_2): Likewise.
13747
13748 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13749
13750         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13751         PIC_OFFSET_TABLE_REGNUM.
13752
13753 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13754
13755         * alias.c (init_alias_target): Remove ifdef
13756         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13757         * df-scan.c (df_insn_refs_collect): Likewise.
13758         (df_get_regular_block_artificial_uses): Likewise.
13759         (df_get_eh_block_artificial_uses): Likewise.
13760         (df_get_entry_block_def_set): Likewise.
13761         (df_get_exit_block_use_set): Likewise.
13762         * emit-rtl.c (gen_rtx_REG): Likewise.
13763         * ira.c (ira_setup_eliminable_regset): Likewise.
13764         * reginfo.c (init_reg_sets_1): Likewise.
13765         * regrename.c (rename_chains): Likewise.
13766         * reload1.c (reload): Likewise.
13767         (eliminate_regs_in_insn): Likewise.
13768         * resource.c (mark_referenced_resources): Likewise.
13769         (init_resource_info): Likewise.
13770
13771 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13772
13773         * defaults.h (MASK_RETURN_ADDR): New definition.
13774         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13775         MASK_RETURN_ADDR.
13776
13777 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13778
13779         * defaults.h (RETURN_ADDR_OFFSET): New definition.
13780         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13781         RETURN_ADDR_OFFSET.
13782         (expand_builtin_frob_return_addr): Likewise.
13783
13784 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13785
13786         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13787         (try_redirect_by_replacing_jump): Likewise.
13788         (rtl_tidy_fallthru_edge): Likewise.
13789         * combine.c (insn_a_feeds_b): Likewise.
13790         (find_split_point): Likewise.
13791         (simplify_set): Likewise.
13792         * cprop.c (cprop_jump): Likewise.
13793         * cse.c (cse_extended_basic_block): Likewise.
13794         * df-problems.c (can_move_insns_across): Likewise.
13795         * function.c (emit_use_return_register_into_block): Likewise.
13796         * haifa-sched.c (sched_init): Likewise.
13797         * ira.c (find_moveable_pseudos): Likewise.
13798         * loop-invariant.c (find_invariant_insn): Likewise.
13799         * lra-constraints.c (curr_insn_transform): Likewise.
13800         * postreload.c (reload_combine_recognize_const_pattern):
13801         * Likewise.
13802         * reload.c (find_reloads): Likewise.
13803         * reorg.c (delete_scheduled_jump): Likewise.
13804         (steal_delay_list_from_target): Likewise.
13805         (steal_delay_list_from_fallthrough): Likewise.
13806         (redundant_insn): Likewise.
13807         (fill_simple_delay_slots): Likewise.
13808         (fill_slots_from_thread): Likewise.
13809         (delete_computation): Likewise.
13810         * sched-rgn.c (add_branch_dependences): Likewise.
13811
13812 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13813
13814         * genconfig.c (main): Always define HAVE_cc0.
13815         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13816         HAVE_cc0.
13817         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13818         (flow_find_head_matching_sequence): Likewise.
13819         (try_head_merge_bb): Likewise.
13820         * cfgrtl.c (rtl_merge_blocks): Likewise.
13821         (try_redirect_by_replacing_jump): Likewise.
13822         (rtl_tidy_fallthru_edge): Likewise.
13823         * combine.c (do_SUBST_MODE): Likewise.
13824         (insn_a_feeds_b): Likewise.
13825         (combine_instructions): Likewise.
13826         (can_combine_p): Likewise.
13827         (try_combine): Likewise.
13828         (find_split_point): Likewise.
13829         (subst): Likewise.
13830         (simplify_set): Likewise.
13831         (distribute_notes): Likewise.
13832         * cprop.c (cprop_jump): Likewise.
13833         * cse.c (cse_extended_basic_block): Likewise.
13834         * df-problems.c (can_move_insns_across): Likewise.
13835         * final.c (final): Likewise.
13836         (final_scan_insn): Likewise.
13837         * function.c (emit_use_return_register_into_block): Likewise.
13838         * gcse.c (insert_insn_end_basic_block): Likewise.
13839         * haifa-sched.c (sched_init): Likewise.
13840         * ira.c (find_moveable_pseudos): Likewise.
13841         * loop-invariant.c (find_invariant_insn): Likewise.
13842         * lra-constraints.c (curr_insn_transform): Likewise.
13843         * optabs.c (prepare_cmp_insn): Likewise.
13844         * postreload.c (reload_combine_recognize_const_pattern):
13845         * Likewise.
13846         * reload.c (find_reloads): Likewise.
13847         (find_reloads_address_1): Likewise.
13848         * reorg.c (delete_scheduled_jump): Likewise.
13849         (steal_delay_list_from_target): Likewise.
13850         (steal_delay_list_from_fallthrough): Likewise.
13851         (try_merge_delay_insns): Likewise.
13852         (redundant_insn): Likewise.
13853         (fill_simple_delay_slots): Likewise.
13854         (fill_slots_from_thread): Likewise.
13855         (delete_computation): Likewise.
13856         (relax_delay_slots): Likewise.
13857         * sched-deps.c (sched_analyze_2): Likewise.
13858         * sched-rgn.c (add_branch_dependences): Likewise.
13859
13860 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13861
13862         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13863         that is trivially ded on non cc0 targets.
13864         (simplify_set): Likewise.
13865         (mark_used_regs_combine): Likewise.
13866         * cse.c (new_basic_block): Likewise.
13867         (fold_rtx): Likewise.
13868         (cse_insn): Likewise.
13869         (cse_extended_basic_block): Likewise.
13870         (set_live_p): Likewise.
13871         * rtlanal.c (canonicalize_condition): Likewise.
13872         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13873
13874 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13875
13876         * conditions.h: Define macros even if HAVE_cc0 is undefined.
13877         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13878         * final.c: Likewise.
13879         * jump.c: Likewise.
13880         * recog.c: Likewise.
13881         * recog.h: Declare functions even when HAVE_cc0 is undefined.
13882         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13883
13884 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13885
13886         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13887         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13888         * builtins.c (expand_builtin): Remove check if
13889         EH_RETURN_DATA_REGNO is defined.
13890         * df-scan.c (df_bb_refs_collect): Likewise.
13891         (df_get_exit_block_use_set): Likewise.
13892         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13893         * ira-lives.c (process_bb_node_lives): Likewise.
13894         * lra-lives.c (process_bb_lives): Likewise.
13895
13896 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
13897
13898         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13899         FIRST_PSEUDO_REG): New.
13900         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13901         (ARG_POINTER_REGNUM): Define to ARGP_REG.
13902         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13903         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13904         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13905         (FIRST_INT_REG): New.
13906         (LAST_INT_REG): New.
13907         (FIRST_*_REG): Define using *_REG.
13908         (LAST_*_REG): Ditto.
13909         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13910         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13911         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13912
13913 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13914
13915         * expmed.c: (synth_mult): Only assume overlapping
13916         shift with previous steps in alg_sub_t_m2 case.
13917
13918 2015-04-21  Richard Biener  <rguenther@suse.de>
13919
13920         PR tree-optimization/65650
13921         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13922         transitions involving copies.
13923         (set_lattice_value): Adjust for copy lattice state.
13924         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13925         if that doesn't dominate the merge point.
13926         (bit_value_unop): Adjust what we treat as varying mask.
13927         (bit_value_binop): Likewise.
13928         (bit_value_assume_aligned): Likewise.
13929         (evaluate_stmt): When we simplified to a SSA name record a copy
13930         instead of dropping to varying.
13931         (visit_assignment): Simplify.
13932
13933         * gimple-match.h (gimple_simplify): Add another callback.
13934         * gimple-fold.c (fold_stmt_1): Adjust caller.
13935         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13936         for the 2nd callback.
13937         * gimple-match-head.c (gimple_simplify): Add a callback that is
13938         used to valueize the stmt operands and use it that way.
13939
13940 2015-04-21  Richard Biener  <rguenther@suse.de>
13941
13942         PR tree-optimization/65788
13943         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
13944
13945 2015-04-21  Richard Biener  <rguenther@suse.de>
13946
13947         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
13948         vec_construct cost by vec_stmt_cost.
13949
13950 2015-04-21  Richard Biener  <rguenther@suse.de>
13951
13952         * cfghooks.h (create_basic_block): Replace with two overloads
13953         for RTL and GIMPLE.
13954         (split_block): Likewise.
13955         * cfghooks.c (split_block): Rename to ...
13956         (split_block_1): ... this.
13957         (split_block): Add two type-safe overloads for RTL and GIMPLE.
13958         (split_block_after_labels): Call split_block_1.
13959         (create_basic_block): Rename to ...
13960         (create_basic_block_1): ... this.
13961         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
13962         (create_empty_bb): Call create_basic_block_1.
13963         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
13964         split_block_after_labels.
13965         * omp-low.c (expand_parallel_call): Likewise.
13966         (expand_omp_target): Likewise.
13967         (simd_clone_adjust): Likewise.
13968         * tree-chkp.c (chkp_get_entry_block): Likewise.
13969         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
13970         create_basic_block overload.
13971         (cgraph_node::expand_thunk): Likewise.
13972         * tree-cfg.c (make_blocks): Likewise.
13973         (handle_abnormal_edges): Likewise.
13974         * tree-inline.c (copy_bb): Likewise.
13975
13976 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13977
13978         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
13979         New pattern.
13980         (*xor_one_cmplsidi3_ze): Likewise.
13981
13982 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13983
13984         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
13985         use df_remove_problem rather than manually removing problems, leaving
13986         holes in df->problems_in_order[].
13987
13988 2015-04-21  Tom de Vries  <tom@codesourcery.com>
13989
13990         PR tree-optimization/65802
13991         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
13992
13993 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13994
13995         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
13996         Increase to 128.
13997         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
13998         at '.'.  Assert that there's enough space for everything.
13999
14000 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
14001
14002         PR tree-optimization/64950
14003         Revert:
14004         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
14005
14006         PR target/41089
14007         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14008         as volatile.
14009
14010 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
14011
14012         PR rtl-optimization/64916
14013         * cfgcleanup.c (values_equal_p): New function.
14014         (can_replace_by): Use it.
14015
14016 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
14017
14018         PR c++/65801
14019         * doc/invoke.texi ([-Wnarrowing]): Update.
14020
14021 2015-04-20  Jeff Law  <law@redhat.com>
14022
14023         PR tree-optimization/65658
14024         * tree-ssa-threadupdate.c (redirection_block_p): Remove
14025         redundant test for GIMPLE_ASSIGN in last change.
14026
14027 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
14028
14029         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14030         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14031         (legitimize_tls_address): Ditto.
14032         (ix86_expand_move): Ditto.
14033         (ix86_expand_binary_operator): Remove reload_in_progress checks.
14034         (ix86_expand_unary_operator): Ditto.
14035         * config/i386/predicates.md (index_register_operand): Ditto.
14036
14037 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
14038
14039         * reorg.c (try_merge_delay_insns): Improve correctness checking
14040         for targets with multiple delay slots.
14041
14042 2015-04-20  Jeff Law  <law@redhat.com>
14043
14044         PR tree-optimization/65658
14045         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14046         statements too.
14047
14048 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14049
14050         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14051         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14052         Delete.
14053
14054 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
14055
14056         PR debug/65807
14057         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14058
14059 2015-04-20  Richard Biener  <rguenther@suse.de>
14060
14061         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14062         * gimple-fold.c (gimple_build_valueize): New function.
14063         (gimple_build): Always use gimple_build_valueize as valueize hook.
14064
14065 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14066
14067         PR target/64134
14068         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14069         and overwrite variable parts if <= 1/2 the elements are variable.
14070
14071 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
14072
14073         PR rtl-optimization/65805
14074         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14075         Don't use difference of offset and previous offset if
14076         update_sp_offset is non-zero.
14077         (eliminate_regs_in_insn): Ditto.
14078         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14079         lra_eliminate_regs_1 call.
14080         * lra-constraints.c (get_equiv_with_elimination): Ditto.
14081
14082 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
14083
14084         * hash-table.h: Remove version of hash_table that stored value_type *.
14085         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14086         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14087         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14088         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14089         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14090         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14091         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14092         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14093         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14094         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14095         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14096         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14097         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14098         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14099         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14100         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14101
14102 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14103             Jakub Jelinek  <jakub@redhat.com>
14104
14105         PR target/65787
14106         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14107         subsequent SH_NONE operand does not overwrite an existing *special
14108         value.
14109         (adjust_extract): Handle case where a vec_extract operation is
14110         wrapped in a PARALLEL.
14111
14112 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14113
14114         PR target/65780
14115         * config/i386/i386.c (ix86_binds_local_p): Define only if
14116         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14117
14118 2015-04-17  Jeff Law  <law@redhat.com>
14119
14120         PR tree-optimization/47679
14121         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14122         * tree-ssa-scopedtables.c: New file.
14123         * tree-ssa-scopedtables.h: New file.
14124         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14125         (const_and_copies): Change name/type.
14126         (record_const_or_copy): Move into tree-ssa-scopedtables.c
14127         (record_const_or_copy_1): Similarly.
14128         (restore_vars_to_original_value): Similarly.
14129         (pass_dominator::execute): Create and destroy const_and_copies table.
14130         (thread_across_edge): Update passing of const_and_copies.
14131         (record_temporary_equivalence): Use method calls rather than
14132         manipulating const_and_copies directly.
14133         (record_equality, cprop_into_successor_phis): Similarly.
14134         (dom_opt_dom_walker::before_dom_children): Similarly.
14135         (dom_opt_dom_walker::after_dom_children): Similarly.
14136         (eliminate_redundant_computations): Similarly.
14137         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14138         (record_temporary_equivalence): Likewise.
14139         (invalidate_equivalences): Likewise.
14140         (record_temporary_equivalences_from_phis): Update due to type
14141         change of const_and_copies.  Use method calls rather than
14142         manipulating the stack directly.
14143         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14144         (thread_through_normal_block, thread_across_edge): Likewise.
14145         (thread_across_edge): Likewise.
14146         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14147         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
14148         of equiv_stack.
14149         (identify_jump_threads): Update due to type change of equiv_stack.
14150         (finalize_jump_threads): Delete the equiv_stack when complete.
14151
14152 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
14153
14154         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14155         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14156         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14157
14158 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
14159
14160         PR target/65535
14161         * config.gcc: Exit with a comment when we do not have a major version
14162         number for the FreeBSD target.
14163
14164 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14165
14166         PR target/65689
14167         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14168         maybe_allows_mem bitfields.
14169         (maybe_allows_none_start, maybe_allows_none_end,
14170         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14171         maybe_allows_mem_end): New variables.
14172         (compute_maybe_allows): New function.
14173         (add_constraint): Use it to initialize maybe_allows_reg and
14174         maybe_allows_mem fields.
14175         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14176         is_address constraints such that those that allow neither mem nor
14177         reg come first, then those that only allow reg but not mem, then
14178         those that only allow mem but not reg, then the rest.
14179         (write_allows_reg_mem_function): New function.
14180         (write_tm_preds_h): Call it.
14181         * stmt.c (parse_output_constraint, parse_input_constraint): Use
14182         the generated insn_extra_constraint_allows_reg_mem function
14183         instead of always setting *allows_reg = true; *allows_mem = true;
14184         for unknown extra constraints.
14185
14186 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14187
14188         PR target/65780
14189         * output.h (default_binds_local_p_3): New.
14190         * varasm.c (default_binds_local_p_3): Make it public.  Take an
14191         argument to indicate if common symbol may be local.  If common
14192         symbol may be local, treat non-external variable as defined
14193         locally.
14194         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14195         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14196         * config/i386/i386.c (ix86_binds_local_p): New.
14197         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14198         ix86_binds_local_p.
14199
14200 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14201
14202         PR debug/65771
14203         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14204         trying mem_loc_descriptor on XEXP (rtl, 0).
14205
14206 2015-04-17  Martin Liska  <mliska@suse.cz>
14207
14208         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14209         Release symbol_compare_collection.
14210         * ipa-reference.c: Add TODO that a vector should be released.
14211
14212 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14213
14214         PR target/65296
14215         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14216         to new AVR-LibC file layout (bug #44574).
14217         (*avrlibc_devicelib): Same.
14218         * config/avr/avr-mcus.def: Adjust comments.
14219         * config/avr/avr.opt (nodevicelib): Adjust help.
14220
14221 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
14222
14223         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14224
14225 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
14226
14227         PR c++/64527
14228         * gimplify.c (gimplify_init_constructor): Always emit a
14229         side-effecting constructor.
14230
14231 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14232
14233         PR tree-optimization/64950
14234         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14235         in cfun->curr_properties.
14236         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14237         if we generate an IFN_VA_ARG.
14238         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14239         function if PROP_gimple_lva is not set in src function.
14240
14241 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14242             Michael Matz  <matz@suse.de>
14243
14244         PR tree-optimization/64950
14245         * gimple-iterator.c (update_modified_stmts): Remove static.
14246         * gimple-iterator.h (update_modified_stmts): Declare.
14247         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14248         (gimplify_va_arg_internal): New function.
14249         (gimplify_va_arg_expr): Use IFN_VA_ARG.
14250         * gimplify.h (gimplify_va_arg_internal): Declare.
14251         * internal-fn.c (expand_VA_ARG): New unreachable function.
14252         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14253         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14254         (expand_ifn_va_arg): New function.
14255         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14256         (pass_stdarg::execute): Call expand_ifn_va_arg.
14257         (pass_data_lower_vaarg): New pass_data.
14258         (pass_lower_vaarg): New gimple_opt_pass.
14259         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14260         (make_pass_lower_vaarg): New function.
14261         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14262         properties_required field.
14263         * passes.def (all_passes): Add pass_lower_vaarg.
14264         * tree-pass.h (PROP_gimple_lva): Add define.
14265         (make_pass_lower_vaarg): Declare.
14266
14267 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14268
14269         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14270         * calls.c (call_expr_flags): Same.
14271
14272 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14273
14274         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14275         (pass_stdarg::execute): ... here.
14276
14277 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14278             Michael Matz  <matz@suse.de>
14279
14280         * tree-cfg.c (make_blocks_1): Factor out of ...
14281         (make_blocks): ... here.
14282         (make_edges_bb): Factor out of ...
14283         (make_edges): ... here.
14284         (gimple_find_sub_bbs): New function.
14285         * tree-cfg.h (gimple_find_sub_bbs): Declare.
14286
14287 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14288
14289         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14290
14291 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
14292
14293         * asan.c (set_sanitized_sections): New function.
14294         (section_sanitized_p): Ditto.
14295         (asan_protect_global): Optionally sanitize user-defined
14296         sections.
14297         * asan.h (set_sanitized_sections): Declare new function.
14298         * common.opt (fsanitize-sections): New option.
14299         * doc/invoke.texi (-fsanitize-sections): Document new option.
14300         * opts-global.c (handle_common_deferred_options): Handle new
14301         option.
14302
14303 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14304
14305         PR debug/65771
14306         * dwarf2out.c (loc_list_from_tree): Return NULL
14307         for DEBUG_EXPR_DECL.
14308
14309 2015-04-17  Christian Bruel  <christian.bruel@st.com>
14310
14311         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14312         same attributes.
14313
14314 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14315
14316         * ira-color.c (setup_left_conflict_sizes_p): Do not process
14317         node itself when computing left conflict subnode size.
14318
14319 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
14320
14321         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14322         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14323         *fop_<mode>_1_sse using enabled attribute.  Use
14324         register_mixssei387nonimm_operand operand 1 predicate. Change
14325         alternative 3 constraints from "x" to "v".
14326
14327 2015-04-16  Richard Biener  <rguenther@suse.de>
14328
14329         PR tree-optimization/65774
14330         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14331         bit-value tracking on.
14332
14333 2015-04-16  Richard Biener  <rguenther@suse.de>
14334
14335         PR tree-optimization/64277
14336         * tree-vrp.c (check_array_ref): Fix anti-range handling,
14337         simplify upper bound handling.
14338         (search_for_addr_array): Simplify.
14339         (check_array_bounds): Handle ADDR_EXPRs here.
14340         (check_all_array_refs): Simplify.
14341
14342 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
14343
14344         * config/i386/i386.c (print_reg): Rewrite function.
14345
14346 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14347
14348         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14349         Invert the condition.
14350
14351 2015-04-16  Renlin Li  <renlin.li@arm.com>
14352
14353         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14354         simplifications for UNSIGNED_FLOAT.
14355
14356 2015-04-16  Nick Clifton  <nickc@redhat.com>
14357
14358         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14359         MUL_UNINIT.
14360         (enum rl78_cpu_type): New.
14361         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14362         (umulhi3_shift_virt): Remove m constraint from operand 1.
14363         (umulqihi3_virt): Likewise.
14364         * config/rl78/rl78.c (rl78_option_override): Add code to process
14365         -mcpu and -mmul options.
14366         (rl78_alloc_physical_registers): Add code to handle divhi and
14367         divsi valloc attributes.
14368         (set_origin): Likewise.
14369         * config/rl78/rl78.h (RL78_MUL_G14): Define.
14370         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14371         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14372         __RL78_Gxx__.
14373         (ASM_SPEC): Pass -mcpu on to assembler.
14374         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14375         (mulqi3_rl78): Likewise.
14376         (mulhi3_g13): Likewise.
14377         (mulhi3): Generate the G13 or G14 versions of the insn directly.
14378         (mulsi3): Likewise.
14379         (mulhi3_g14): Add clobbers of AX and BC.
14380         (mulsi3_g14): Likewise.
14381         (mulsi3_g13): Likewise.
14382         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14383         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14384         * config/rl78/rl78.opt (mmul): Initialise value to
14385         RL78_MUL_UNINIT.
14386         (mcpu): New option.
14387         (m13, m14, mrl78): New option aliases.
14388         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14389         (MULTILIB_DIRNAMES): Add g13 and g14.
14390         * doc/invoke.texi: Document -mcpu and -mmul options.
14391
14392 2015-04-16  Richard Biener  <rguenther@suse.de>
14393
14394         * tree-ssa-ccp.c (likely_value): See if we have operands that
14395         are marked as never simulate again and return CONSTANT in this
14396         case.
14397         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14398         not have any operands that will be simulated again as
14399         not being simulated again.
14400
14401 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
14402
14403         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14404         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14405         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14406         attribute.
14407         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14408         enabled attribute.
14409         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14410         *float<SWI48:mode><MODEF:mode>2_sse.
14411         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14412         enabled attribute.
14413         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14414         enabled attribute.
14415
14416 2015-04-15  Tom de Vries  <tom@codesourcery.com>
14417
14418         PR other/65487
14419         * function.c (push_dummy_function): New function.
14420         (init_dummy_function_start): Use push_dummy_function.
14421         (pop_dummy_function): New function.  Factored out of ...
14422         (expand_dummy_function_end): ... here.
14423         * function.h (push_dummy_function, pop_dummy_function): Declare.
14424         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14425         pop_dummy_function.
14426         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14427
14428 2015-04-15  Jeff Law  <law@redhat.com>
14429
14430         PR tree-optimization/47679
14431         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14432         need for forward declaration in upcoming changes.
14433         (record_conditions, record_edge_info): Likewise.
14434
14435         PR rtl-optimization/42522
14436         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14437         SIGN_EXTRACT as a whole object rather than simplifying
14438         its operand.
14439
14440 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
14441
14442         PR ipa/65765
14443         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14444         and GIMPLE_PREDICT use break instead of return true. For
14445         GIMPLE_EH_DISPATCH, compare dispatch region.
14446
14447 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
14448
14449         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
14450         details about the implementation.  Make clear preference for
14451         __atomic builtins.  Reduce possibility of future change.
14452
14453 2015-04-15  Nick Clifton  <nickc@redhat.com>
14454
14455         * config/rx/rx.opt (mallow-string-insns): New option.
14456         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14457         builtin if string instructions are denied.
14458         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14459         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14460         appropriate.
14461         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14462         * config/rx/rx.md (movstr): Enable pattern only if string
14463         instructions are allowed.
14464         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14465         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14466         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14467         (MULTILIB_DIRNAMES): Add no-strings.
14468         * doc/invoke.texi: Document -mno-allow-string-insns.
14469
14470 2015-04-15  Alan Modra  <amodra@gmail.com>
14471
14472         PR target/65408
14473         PR target/58744
14474         PR middle-end/36043
14475         * calls.c (load_register_parameters): Don't load past end of
14476         mem unless suitably aligned.
14477
14478 2015-04-15  Nick Clifton  <nickc@redhat.com>
14479
14480         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14481         decrement instruction as being frame related.
14482         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14483         based addresses.
14484         If zero extending a function address enclose the operation in
14485         %code(...).
14486         (rl78_preferred_reload_class): New function.
14487         (TARGET_PREFERRED_RELOAD_CLASS): Define.
14488         * config/rl78/rl78.md: Remove useless constraints in expanders.
14489         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14490         (mulhi3_rl78): Likewise.
14491         (mulhi3_g13): Likewise.
14492         (mulsi3_rl78): Likewise.
14493         (es_addr): Move to before the multiply patterns.
14494
14495 2015-04-15  Alan Modra  <amodra@gmail.com>
14496
14497         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14498         and sequence_stack.  Add seq.
14499         (seq_stack): Delete.
14500         * function.c (prepare_function_start): Don't access x_last_insn.
14501         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14502         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14503         * emit_rtl.c (start_sequence, push_topmost_sequence,
14504         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14505         sequence accessors.
14506         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14507         remove_insn): Likewise.  Simplify.
14508         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14509         and pop_topmost_sequence.
14510         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
14511         debug insns.
14512         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14513
14514 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
14515
14516         PR target/65729
14517         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14518         the assertiion.
14519
14520 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14521
14522         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14523         (LEGACY_INT_REGNO_P): Ditto.
14524         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14525         (ANY_MASK_REG_P): Remove.
14526         (BND_REG_P): Rename from ANY_BND_REG_P.
14527         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14528         legacy integer registers.  Do not handle MMX_REG_P in a special way.
14529         Merge 64byte and 32byte SSE handling.
14530
14531 2015-04-14  Nick Clifton  <nickc@redhat.com>
14532
14533         * expr.c (expand_assignment): Force an address offset computation
14534         into a register before changing its mode.
14535         (expand_expr_real_1): Likewise.
14536
14537 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
14538
14539         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14540         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14541         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14542         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14543         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14544         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14545         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14546         and __aarch64_vget_lane_any.
14547
14548 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
14549
14550         PR rtl-optimization/65761
14551         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14552         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14553
14554 2015-04-14  Richard Biener  <rguenther@suse.de>
14555
14556         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14557         (graphite_can_represent_scev): Use POINTER_TYPE_P.
14558
14559 2015-04-14  Richard Biener  <rguenther@suse.de>
14560
14561         PR tree-optimization/65758
14562         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14563         against -1.
14564         (ccp_lattice_meet): Likewise.
14565         (bit_value_unop): Likewise.
14566         (bit_value_binop): Likewise.
14567         (bit_value_assume_aligned): Likewise.
14568
14569 2015-04-14  Christian Bruel  <christian.bruel@st.com>
14570
14571         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14572         function.
14573
14574 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
14575
14576         PR tree-optimization/63387
14577         * match.pd ((x unord x) | (y unord y) -> (x unord y),
14578         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14579
14580 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14581
14582         * config/i386/predicates.md (any_QIreg_operand): Rename from
14583         q_regs_operand.  Do not process subregs.
14584         (QIreg_operand): Use QI_REGNO_P predicate.
14585         (ext_QIreg_operand): Ditto.
14586         (ext_register_operand): Ditto.
14587         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14588         (AND splitters): Ditto.
14589         (AND with -65536 splitter): Add SWI48 mode for operand 0.
14590         (AND with -256 splitter): Use any_QIreg_operand predicate and
14591         SWI248 mode for operand 0.
14592         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14593         mode for operand 0.
14594         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14595
14596 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
14597
14598         * doc/plugins.texi: Rewrite first introductory paragraph.
14599
14600 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14601
14602         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14603         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14604
14605 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14606
14607         * ipa-profie.c (ipa_profile): Check number of parameters
14608         and possible polymorphic call targets before
14609         devirtualizing.
14610
14611 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
14612
14613         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14614         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14615
14616 2015-04-13  Richard Biener  <rguenther@suse.de>
14617
14618         PR tree-optimization/65204
14619         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14620         takens for bit-CCP.
14621
14622 2015-04-13  Richard Biener  <rguenther@suse.de>
14623
14624         PR target/65660
14625         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14626         and cond_not_taken_branch_cost to 4 and 2.
14627         (bdver2_cost): Likewise.
14628         (bdver3_cost): Likewise.
14629         (bdver4_cost): Likewise.
14630
14631 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14632
14633         * hash-table.h (hash_table constructor): Add mem stats.
14634         (alloc_entries): Likewise.
14635
14636 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14637
14638         * ipa-cp.c (ipcp_driver): Relase prev_edge.
14639         * passes.c (execute_one_pass): Only add transform if pass has one.
14640
14641 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
14642
14643         * config/i386/i386.c (ix86_option_override_internal): Don't set
14644         -fprefetch-loop-arrays if optimizing for size.
14645
14646 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14647             Gerald Pfeifer  <gerald@pfeifer.com>
14648
14649         * doc/contrib.texi (Contributors): Add Martin Jambor and
14650         Michael Matz.
14651
14652 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
14653
14654         * BASE-VER: Set to 6.0.0.
14655
14656         PR tree-optimization/65747
14657         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14658         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14659
14660 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14661
14662         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14663         sentence.  Improve grammar.
14664
14665 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14666
14667         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14668
14669 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14670
14671         PR ipa/65743
14672         * ipa-inline-transform.c (speculation_removed): Remove static var.
14673         (check_speculations): New function.
14674         (clone_inlined_nodes): Do not check spculations.
14675         (inline_call): Call check_speculations.
14676         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14677         consider non-invariants.
14678
14679 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14680             Martin Liska  <mliska@suse.cz>
14681
14682         PR ipa/65722
14683         * ipa-icf.c (sem_item::compare_cgraph_references): function and
14684         variable can not match.
14685         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14686         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14687
14688 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
14689
14690         PR tree-optimization/65735
14691         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14692         Remove visited_phis argument, add visited_bbs, avoid recursing into the
14693         same bb rather than just into the same phi node.
14694         (thread_through_normal_block): Adjust caller.
14695
14696 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14697
14698         * doc/contrib.texi (Contributors): Add Ira Rosen.
14699
14700 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
14701
14702         * gcov.c (find_source): Fix miswording in error message.
14703         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14704         (ix86_expand_sse_comi_round): Fix typo in error message.
14705
14706 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14707
14708         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14709
14710 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
14711
14712         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14713
14714 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14715
14716         PR target/65710
14717         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14718         Print bad_spills_num and insn_pseudos_num.
14719
14720 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14721
14722         PR target/65694
14723         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14724         when creating +1 values for SImode.
14725
14726 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14727
14728         PR target/65729
14729         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14730         assert.
14731
14732 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
14733             Iain Sandoe  <iain@codesourcery.com>
14734
14735         PR target/65351
14736         * configure: Regenerate.
14737
14738 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14739
14740         PR target/65671
14741         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14742
14743 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
14744
14745         * doc/contrib.texi (Contributors): Add John Marino.
14746
14747 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14748
14749         PR tree-optimization/65709
14750         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14751         TREE_TYPE (TREE_TYPE (t)).
14752
14753 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
14754
14755         PR target/65710
14756         * lra-int.h (lra_bad_spill_regno_start): New.
14757         * lra.c (lra_bad_spill_regno_start): New.
14758         (lra): Set up lra_bad_spill_regno_start.  Set up
14759         lra_constraint_new_regno_start unconditionally.
14760         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14761         spill preferences.
14762
14763 2015-04-09  Marek Polacek  <polacek@redhat.com>
14764             Jakub Jelinek  <jakub@redhat.com>
14765
14766         PR middle-end/65554
14767         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14768         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14769         of STRIP_NOPS.
14770
14771 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
14772
14773         PR rtl-optimization/65693
14774         * combine.c (is_parallel_of_n_reg_sets): Move outside of
14775         #ifndef HAVE_cc0.
14776
14777 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
14778
14779         PR target/65296
14780         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14781         device specs file if "device-specs%s" didn't resolve to a path.
14782
14783 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14784
14785         PR target/65676
14786         * config/i386/i386.c (fixup_modeless_constant): New.
14787         (ix86_expand_args_builtin): Fixup modeless constant operand.
14788         (ix86_expand_round_builtin): Ditto.
14789         (ix86_expand_special_args_builtin): Ditto.
14790         (ix86_expand_builtin): Ditto.
14791
14792 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14793
14794         PR target/65693
14795         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14796         any pow2 integer in between 2 and 0x80000000U inclusive.
14797
14798 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
14799
14800         PR rtl-optimization/65693
14801         * combine.c (is_parallel_of_n_reg_sets): Change first argument
14802         from an rtx_insn * to an rtx.
14803         (try_combine): Adjust both callers.  Use it once more.
14804
14805 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14806
14807         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14808         (chkp_make_static_const_bounds): Search existing
14809         symbol by assembler name.  Use make_decl_one_only.
14810         (chkp_get_zero_bounds_var): Remove node search which
14811         is now performed in chkp_make_static_const_bounds.
14812         (chkp_get_none_bounds_var): Likewise.
14813
14814 2015-04-08  Michael Witten  <mfwitten@gmail.com>
14815
14816         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14817         to an example.
14818
14819 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14820
14821         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14822
14823 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14824
14825         * doc/extend.texi (__sync Builtins): Fix grammar.
14826
14827 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14828
14829         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14830
14831 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14832
14833         * varasm.c (emit_local): Move definition of align.
14834
14835 2015-04-08  Julian Brown  <julian@codesourcery.com>
14836
14837         * config/nvptx/mkoffload.c (process): Support variable mapping.
14838
14839 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
14840
14841         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14842         alpha_links **.
14843         (alpha_write_one_linkage): Correct typo.
14844
14845 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14846
14847         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14848
14849 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14850
14851         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14852
14853 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14854
14855         * tree-chkp.h (chkp_insert_retbnd_call): New.
14856         * tree-chkp.c (chkp_insert_retbnd_call): New.
14857         * ipa-split.c (insert_bndret_call_after): Remove.
14858         (split_function): Use chkp_insert_retbnd_call.
14859         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14860         bounds for instrumented functions.
14861
14862 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
14863
14864         PR ipa/65540
14865         * calls.c (initialize_argument_information): When producing tail
14866         call also turn SSA_NAMES passed by references to original PARM_DECLs
14867
14868 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
14869
14870         PR target/65648
14871         * lra-remat.c (do_remat): Process input and non-input insn
14872         registers separately.
14873
14874 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14875
14876         PR debug/65678
14877         * valtrack.c (debug_lowpart_subreg): New function.
14878         (dead_debug_insert_temp): Use it.
14879
14880         PR middle-end/65680
14881         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14882         into signed HOST_WIDE_INT the same as negative bit_offset.
14883
14884 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14885
14886         * ipa-comdats.c (ipa_comdats): Visit all thunks
14887         to set proper comdat group.
14888
14889 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14890
14891         PR target/65489
14892         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14893         on constants for NEON VSTRUCT modes.
14894
14895 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14896             Iain Sandoe  <iain@codesourcery.com>
14897
14898         PR target/65351
14899         * configure: Regenerate.
14900
14901 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14902
14903         PR target/65614
14904         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14905         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14906         that LFD is used to load double constants instead of LFS.  Add
14907         defaults for all costs structures.  Add comments for missing
14908         initialization fields.
14909         (size32_cost): Likewise.
14910         (size64_cost): Likewise.
14911         (rs64a_cost): Likewise.
14912         (mpccore_cost): Likewise.
14913         (ppc403_cost): Likewise.
14914         (ppc405_cost): Likewise.
14915         (ppc440_cost): Likewise.
14916         (ppc476_cost): Likewise.
14917         (ppc601_cost): Likewise.
14918         (ppc603_cost): Likewise.
14919         (ppc604_cost): Likewise.
14920         (ppc604e_cost): Likewise.
14921         (ppc620_cost): Likewise.
14922         (ppc630_cost): Likewise.
14923         (ppccell_cost): Likewise.
14924         (ppc750_cost): Likewise.
14925         (ppc7450_cost): Likewise.
14926         (ppc8540_cost): Likewise.
14927         (ppce300c2c3_cost): Likewise.
14928         (ppce500mc_cost): Likewise.
14929         (ppce500mc64_cost): Likewise.
14930         (ppce5500_cost): Likewise.
14931         (ppce6500_cost): Likewise.
14932         (titan_cost): Likewise.
14933         (power4_cost): Likewise.
14934         (power6_cost): Likewise.
14935         (power7_cost): Likewise.
14936         (power8_cost): Likewise.
14937         (ppca2_cost): Likewise.
14938         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
14939
14940         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
14941         instead of XXLOR to copy SFmode to clear out dirty bits created
14942         when SFmode denormals are generated.
14943         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
14944         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
14945
14946 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
14947
14948         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
14949         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
14950         * config/aarch64/aarch64-tune.md: Regenerate.
14951
14952 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
14953
14954         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
14955         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
14956         * config/arm/arm-cores.def (exynos-m1): New core.
14957         * config/arm/arm-tune.md: Regenerate.
14958         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
14959         * config/arm/bpabi.h: Likewise.
14960
14961 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
14962
14963         * ipa-cp (set_single_call_flag): Remove too
14964         restrictive assert.
14965
14966 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
14967
14968         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
14969         GOMP_offload_unregister from the destructor.
14970
14971 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
14972
14973         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
14974         flags for instrumentation thunk.
14975         (chkp_produce_thunks): Likewise.
14976
14977 2015-04-05  Martin Liska  <mliska@suse.cz>
14978
14979         PR ipa/65665
14980         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
14981         has computed data structure.
14982         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14983
14984 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
14985
14986         * invoke.texi (inline-unit-growth): Increase growth to 20%
14987         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
14988
14989 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
14990
14991         PR target/65647
14992         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
14993         value checking.
14994         (lra_rematerialization_iter): New.
14995         * lra.c (lra): Initialize lra_rematerialization_iter.
14996         Stop updating lra_constraint_new_regno_start after switching of
14997         inheritance and rematerialization.
14998         * lra-remat.c (lra_rematerialization_iter): New.
14999         (lra_remat): Add printing pass iteration.  Do rematerialization
15000         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15001
15002 2015-04-04  Richard Biener  <rguenther@suse.de>
15003
15004         PR tree-optimization/64909
15005         PR tree-optimization/65660
15006         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15007         to take a cost vector for scalar iteration cost.
15008         (vect_get_single_scalar_iteration_cost): Likewise.
15009         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15010         Compute the scalar iteration cost into a cost vector.
15011         (vect_get_known_peeling_cost): Use the scalar cost vector to
15012         account for the cost of the peeled iterations.
15013         (vect_estimate_min_profitable_iters): Likewise.
15014         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15015         Likewise.
15016
15017 2015-04-04  Alan Modra  <amodra@gmail.com>
15018
15019         PR target/65576
15020         PR target/65240
15021         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15022         0.0 constant unless TARGET_VSX.
15023         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15024         alternative.
15025
15026 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15027
15028         PR ipa/65654
15029         * ipa-inline-transform.c (inline_call): Skip sanity check to work
15030         around the ICE
15031
15032 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15033
15034         PR ipa/65655
15035         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15036         speculative indirect edges to avoid ordering issue.
15037
15038 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15039
15040         PR ipa/65076
15041         * ipa-inline.c (edge_badness): Add combined size to the denominator.
15042
15043 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
15044
15045         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15046         TYPE_ARTIFICIAL on the .omp_data* types.
15047
15048 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15049
15050         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15051         instrumentation thunks.
15052
15053 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15054
15055         * config/i386/i386.c (ix86_expand_call): Avoid nested
15056         PARALLEL in returned call value.
15057
15058 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15059
15060         * lto-cgraph.c (input_cgraph_1): Always link instrumented
15061         assembler name with original one.
15062
15063 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15064
15065         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15066
15067 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15068
15069         Revert parts of r216820.
15070         * config/i386/i386.md (movqi_internal): Correct type calculation
15071         for alternatives 3 and 5.
15072
15073 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
15074
15075         PR preprocessor/61977
15076         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15077         predefine __vector/__bool/__pixel macros nor context sensitive
15078         macros for CLK_ASM.
15079         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15080
15081 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
15082
15083         * config/pa/pa.c (pa_output_move_double): Directly handle register
15084         indexed memory operand.  Simplify handling of scaled register indexed
15085         memory operands.
15086
15087 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15088
15089         PR driver/65444
15090         * config/i386/linux-common.h (MPX_SPEC): New.
15091         (CHKP_SPEC): Add MPX_SPEC.
15092         * doc/invoke.texi (-fcheck-pointer-boudns): Document
15093         possible issues with '-z bndplt' support in linker.
15094
15095 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15096
15097         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15098         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15099         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15100         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15101         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15102
15103 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
15104
15105         * config/i386/sync.md (UNSPEC_MOVA): Remove.
15106         (atomic_load<mode>): Change operand 0 predicate to
15107         nonimmediate_operand and fix up the destination when needed.
15108         Use UNSPEC_LDA.
15109         (atomic_loaddi_fpu): Use UNSPEC_LDA.
15110         (atomic_store<mode>): Change operand 1 predicate to
15111         nonimmendate_operand and move the source to register when needed.
15112         Use UNSPEC_STA.
15113         (atomic_store<mode>_1): Use UNSPEC_STA.
15114         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15115         Fix moves from memory operand.  Use UNSPEC_STA.
15116
15117 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15118
15119         * expmed.c (strict_volatile_bitfield_p): Check that the access will
15120         not cross a MODESIZE boundary.
15121         (store_bit_field, extract_bit_field): Added assertions in the
15122         strict volatile bitfields code path.
15123
15124 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15125
15126         PR target/65624
15127         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15128         Increase args array size by one to avoid buffer overflow.
15129
15130 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15131
15132         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15133         split_part.
15134         * ipa-inline.c (edge_badness): Add wrapper penalty.
15135         (sum_callers): Move up.
15136         (inline_small_functions): Set single_caller.
15137         * ipa-inline.h (inline_summary): Add single_caller.
15138         * ipa-split.c (split_function): Set split_part.
15139         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15140         * cgraph.h (cgraph_node): Add split_part.
15141
15142 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
15143
15144         PR target/58945
15145         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15146         Do not split operands 0 and operands 2 to halfmode.
15147         (atomic_compare_and_swap<mode>): Update for
15148         atomic_compare_and_swap<dwi>_doubleword changes.
15149
15150 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15151
15152         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15153         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15154         no caching is done.
15155
15156 2015-03-31  Martin Liska  <mliska@suse.cz>
15157
15158         PR ipa/65557
15159         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15160         has already filled up function summary.
15161         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15162
15163 2015-03-31  Richard Biener  <rguenther@suse.de>
15164
15165         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15166         of types.
15167
15168 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15169
15170         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15171         nested functions.
15172         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15173         (s390_asm_output_function_label): Adapt to new signature of
15174         s390_function_num_hotpatch_hw
15175         Optimise the code generating assembler output.
15176         Add comments to assembler file.
15177
15178 2015-03-31  Richard Biener  <rguenther@suse.de>
15179
15180         PR middle-end/65626
15181         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15182         of the noreturn call so it is last and cleanup_control_flow_bb
15183         can do the CFG part.
15184
15185 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
15186
15187         PR target/65531
15188         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15189         same_comdat_group for external symbols.
15190         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15191         infinite same_comdat_group traversal loop.
15192
15193 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
15194
15195         PR plugins/61176
15196         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15197         automatically to $headers.
15198
15199 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15200
15201         PR ipa/65610
15202         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15203         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15204         function.
15205         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15206         Use it.
15207         * ipa-prop.c (param_type_may_change_p): Likewise.
15208         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15209         (remove_unused_scope_block_p): Add in_ctor_dtor_block
15210         argument.  Before inlining, preserve
15211         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15212         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
15213         recursive calls.
15214         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15215
15216 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15217
15218         PR ipa/65076
15219         * ipa-inline.c (edge_badness): Base denominator on callee's
15220         grwoth squared.
15221
15222 2015-03-27  Martin Jambor  <mjambor@suse.cz>
15223
15224         PR ipa/65478
15225         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15226         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15227         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15228         node_calling_single_call.
15229         * ipa-cp.c (count_callers): New function.
15230         (set_single_call_flag): Likewise.
15231         (initialize_node_lattices): Count callers and set single_flag_call if
15232         necessary.
15233         (incorporate_penalties): New function.
15234         (good_cloning_opportunity_p): Use it, dump new flags.
15235         (propagate_constants_topo): Set node_within_scc flag if appropriate.
15236         * doc/invoke.texi (ipa-cp-recursion-penalty,
15237         ipa-cp-single-call-pentalty): Document.
15238
15239 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15240
15241         PR ipa/65588
15242         * symtab.c (symtab_node::get_partitioning_class): Register vars
15243         are duplicated.
15244         * varpool.c (symbol_table::output_variables) Do not assemble unefined
15245         decls for non-symbols.
15246
15247 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15248
15249         PR target/65248
15250         * output.h (default_binds_local_p_2): New.
15251         * varasm.c (default_binds_local_p_2): Renamed to ...
15252         (default_binds_local_p_3): This.  Don't return true on protected
15253         data symbol if protected data may be external.
15254         (default_binds_local_p): Use default_binds_local_p_3.
15255         (default_binds_local_p_1): Likewise.
15256         (default_binds_local_p_2): New.
15257         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15258         default_binds_local_p_2 if TARGET_MACHO is undefined.
15259
15260 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
15261
15262         PR target/65593
15263         * config/i386/i386.c (legitimize_pic_address): If base
15264         is SYMBOL_REF or LABEL_REF using %rip addressing, force
15265         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15266
15267 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15268
15269         PR target/65531
15270         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15271         comdat groups.
15272
15273 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15274
15275         PR ipa/65600
15276         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15277         of optimized out indirect call.
15278         (redirect_to_unreachable): Always build symbol table node for
15279         BUILT_IN_UNREACHABLE
15280
15281 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
15282
15283         PR target/65407
15284         * ira-costs.c (record_reg_classes): Process all constraint string
15285         containing 0-9.
15286
15287 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
15288
15289         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15290         memory_operand.
15291
15292         PR target/65052
15293         * config/c6x/constraints.md (S3): New constraint.
15294         * config/c6x/c6x.md (real_jump): Use it.
15295
15296 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15297
15298         PR middle-end/65595
15299         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15300         do redirection if the call is not optimized out.
15301
15302 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15303
15304         PR target/65495
15305         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15306         (fchkp-check-incomplete-type): Add LTO.
15307         (fchkp-zero-input-bounds-for-main): Likewise.
15308         (fchkp-first-field-has-own-bounds): Likewise.
15309         (fchkp-narrow-bounds): Likewise.
15310         (fchkp-narrow-to-innermost-array): Likewise.
15311         (fchkp-use-static-bounds): Likewise.
15312         (fchkp-use-static-const-bounds): Likewise.
15313         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15314
15315 2015-03-27  Marek Polacek  <polacek@redhat.com>
15316
15317         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15318
15319 2015-03-27  Marek Polacek  <polacek@redhat.com>
15320
15321         PR sanitizer/65583
15322         * ubsan.c (ubsan_create_edge): New function.
15323         (instrument_bool_enum_load): Call it.
15324         (instrument_nonnull_arg): Likewise.
15325         (instrument_nonnull_return): Likewise.
15326         (instrument_object_size): Likewise.
15327
15328 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15329
15330         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15331         auto_vec.
15332
15333 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15334
15335         PR lto/65536
15336         * lto-streamer.h (class lto_location_cache): New.
15337         (struct data_in): Add location_cache.
15338         (lto_input_location): Update prototype.
15339         (stream_input_location_now): New.
15340         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15341         pointer to location.
15342         (stream_input_location): Update.
15343         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15344         (warn_odr): Apply location cache before warning.
15345         (lto_input_location): Update prototype.
15346         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15347         Use stream_input_location_now.
15348         * lto-streamer-in.c (lto_location_cache::current_cache): New static
15349         variable.
15350         (lto_location_cache::cmp_loc): New function.
15351         (lto_location_cache::apply_location_cache): New function.
15352         (lto_location_cache::accept_location_cache): New function.
15353         (lto_location_cache::revert_location_cache): New function.
15354         (lto_location_cache::input_location): New function.
15355         (lto_input_location): Do location caching.
15356         (stream_input_location_now): New function.
15357         (input_eh_region, input_struct_function_base): Use
15358         stream_input_location_now.
15359         (lto_data_in_create): use new.
15360         (lto_data_in_delete): Use delete.
15361         * tree-streamer-in.c (unpack_ts_block_value_fields,
15362         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15363         lto_input_ts_exp_tree_pointers): Update for cached location api.
15364
15365 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15366
15367         PR ipa/65076
15368         * passes.def: Add pass_nothrow.
15369         * ipa-pure-const.c: (pass_data_nothrow): New.
15370         (pass_nothrow): New.
15371         (pass_nothrow::execute): New.
15372         (make_pass_nothrow): New.
15373         * tree-pass.h (make_pass_nothrow): Declare.
15374
15375 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15376
15377         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15378         edge to change by speculation resolution or redirection.
15379         (edge_set_predicate): Likewise.
15380         (inline_summary_t::duplicate): Likewise.
15381         (remap_edge_summaries): Likewise.
15382
15383 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15384
15385         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15386         New macros.
15387         (can_inline_edge_p): Relax option matching for always inline functions.
15388
15389 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
15390
15391         PR target/65561
15392         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15393         Check operand 4 and operand 0 for equality.
15394         (avx512f_vextract<shuffletype>32x4_1_maskm):
15395         Check operand 6 and operand 0 for equality.
15396         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15397         for equality.
15398         (vec_extract_hi_<mode>_maskm): Ditto.
15399
15400 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15401
15402         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15403         dead calls back to live.
15404         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15405         cross check to ...
15406         (cgraph_node::verify_node): ... here; verify only callee edges,
15407         not caller.
15408         * cif-code.def (CILK_SPAWN): New code.
15409
15410 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
15411
15412         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15413         (edge_set_predicate): Use it to mark unreachable edges.
15414         (inline_summary_t::duplicate): Remove unnecesary code.
15415         (remap_edge_summaries): Likewise.
15416         (dump_inline_summary): Report contains_cilk_spawn.
15417         (compute_inline_parameters): Compute contains_cilk_spawn.
15418         (inline_read_section, inline_write_summary): Stream
15419         contains_cilk_spawn.
15420         * ipa-inline.c (can_inline_edge_p): Do not touch
15421         DECL_STRUCT_FUNCTION that may not be available;
15422         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15423         remove check for callee_fun->can_throw_non_call_exceptions and
15424         replace it by optimization attribute check; check for flag_exceptions.
15425         * ipa-inline-transform.c (inline_call): Maintain
15426         DECL_FUNCTION_PERSONALITY
15427         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15428
15429 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
15430
15431         PR tree-optimization/65551
15432         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15433         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15434
15435 2015-03-26  Richard Biener  <rguenther@suse.de>
15436
15437         PR middle-end/65555
15438         * tree-cfg.c (verify_gimple_call): Do not require a call to
15439         have no LHS if it wasn't recognized as control altering yet.
15440
15441 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
15442
15443         PR tree-optimization/64715
15444         * passes.def: Add another instance of pass_object_sizes before ccp1.
15445         * tree-object-size.c (pass_object_sizes::execute): In
15446         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15447         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15448         __bos result and the computed constant.  Remove redundant
15449         checks, obsoleted by gimple_call_builtin_p test.
15450
15451         * var-tracking.c (variable_tracking_main_1): Don't track
15452         variables for targetm.no_register_allocation targets.
15453
15454 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
15455
15456         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15457         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15458
15459 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15460
15461         PR target/65569
15462         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15463         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
15464         0.0 is correctly setup.
15465         (extenddftf2_internal): Likewise.
15466
15467 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
15468
15469         PR tree-optimization/65177
15470         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15471         (bb_in_bbs): New.
15472         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
15473         edges not adjacent on the path to the original code.
15474
15475 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
15476
15477         PR bootstrap/65537
15478         * doc/install.texi (Building a native compiler): Document new
15479         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
15480         configuration assumes that the host supports the linker plugin.
15481
15482 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
15483
15484         PR target/65508
15485         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15486         chain for generated call.
15487
15488 2015-03-25  Richard Biener  <rguenther@suse.de>
15489
15490         * passes.c (pass_manager::execute_early_local_passes): Guard
15491         execution of pass_chkp_instrumentation_passes with
15492         flag_check_pointer_bounds.
15493         (pass_chkp_instrumentation_passes::gate): Likewise.
15494
15495 2015-03-25  Martin Liska  <mliska@suse.cz>
15496
15497         PR tree-optimization/65538
15498         * symbol-summary.h (function_summary::~function_summary):
15499         Relese memory for allocated summaries.
15500         (function_summary::release): New function.
15501
15502 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
15503
15504         PR lto/65515
15505         * lto-streamer-out.c (DFS::worklist): New struct.
15506         (DFS::worklist_vec): New data member.
15507         (DFS::next_dfs_num): Remove.
15508         (DFS::DFS): Rewritten using worklist instead of recursion,
15509         using most of code from DFS::DFS_write_tree.
15510         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15511         pass it to DFS_write_tree calls.
15512         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15513         quick initial checks push it into worklist_vec and return.
15514
15515 2015-03-25  Richard Biener  <rguenther@suse.de>
15516
15517         PR middle-end/65519
15518         * genmatch.c (expr::gen_transform): Re-write to avoid
15519         using gimple_build.
15520
15521 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15522
15523         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15524
15525 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15526
15527         * config/arm/arm.opt (print_tune_info): New option.
15528         * config/arm/arm.c (arm_print_tune_info): New function.
15529         (arm_file_start): Call arm_print_tune_info.
15530         * config/arm/arm-protos.h (struct tune_params): Add comment.
15531         * doc/invoke.texi (@item -mprint-tune-info): New item.
15532         (-mtune): mention it in ARM Option Summary.
15533
15534 2015-03-25  DJ Delorie  <dj@redhat.com>
15535
15536         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15537         correct clause.
15538
15539 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
15540             Martin Liska  <mliska@suse.cz>
15541
15542         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15543         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15544         (sem_item::add_type): New function.
15545         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15546         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15547         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15548         (sem_function::equals_wpa): Fix typo.
15549         * ipa-icf.h (sem_item::add_type): New function.
15550         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15551         order.
15552
15553 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
15554
15555         PR tree-optimization/65533
15556         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15557         with swapped operands, call vect_free_slp_tree on
15558         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15559         vector.
15560
15561 2015-03-24  Richard Biener  <rguenther@suse.de>
15562
15563         PR middle-end/65517
15564         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15565         for fixup if necessary.
15566
15567 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
15568
15569         * doc/extend.texi (Function Attributes): Add @cindex entries
15570         for all attributes and regularize their format.  Delete text
15571         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
15572         information about "eightbit_data", "tiny_data", and "model"
15573         variable attributes to the Variable Attributes section.  Fix
15574         some obvious typos and copy-editing issues.
15575         (Variable Attributes, Type Attributes): Likewise add/fix
15576         @cindex entries for all attributes.
15577
15578 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15579
15580         PR target/65523
15581         * tree-chkp.c (chkp_build_returned_bound): Ignore
15582         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15583
15584 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
15585
15586         PR target/65505
15587         * config/sh/predicates.md (simple_mem_operand,
15588         displacement_mem_operand): Add test for reg.
15589         (short_displacement_mem_operand): Test for displacement_mem_operand
15590         before invoking sh_disp_addr_displacement.
15591         * config/sh/constraints.md (Sdd, Sra): Simplify.
15592         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15593         Remove redundant displacement_mem_operand tests.
15594
15595 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
15596
15597         PR target/65296
15598         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15599         the same -mmcu=MCU more than once.
15600
15601 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15602
15603         PR bootstrap/65522
15604         * ipa-devirt.c: Remove duplicate demangle.h include.
15605
15606         PR target/65504
15607         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15608         on the pseudo.
15609         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15610         REG_POINTER on *destptr after adjusting it for prologue size.
15611
15612         PR ipa/65521
15613         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15614         ultimate_alias_target ()->order ints instead of
15615         ultimate_alias_target () pointers.
15616
15617 2015-03-23  Richard Biener  <rguenther@suse.de>
15618
15619         PR tree-optimization/65518
15620         * tree-vect-stmts.c (vectorizable_load): Reject single-element
15621         interleaving cases we generate absymal code for.
15622
15623 2015-03-23  Richard Biener  <rguenther@suse.de>
15624
15625         PR tree-optimization/65494
15626         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15627         matches here.
15628         (vect_analyze_slp_instance): But do that here, always and once.
15629
15630 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15631
15632         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15633         adding T or multiplying by T+1 and subracting T.
15634
15635 2015-03-22  Jeff Law  <law@redhat.com>
15636
15637         PR rtl-optimization/64317
15638         * Makefile.in (OBJS): Add gcse-common.c
15639         * gcse.c: Include gcse-common.h
15640         (struct modify_pair_s): Move structure definition to gcse-common.h
15641         (compute_transp): Move function to gcse-common.c.
15642         (canon_list_insert): Similarly.
15643         (record_last_mem_set_info): Break out some code and put it into
15644         gcse-common.c.  Call into the new common code.
15645         (compute_local_properties): Pass additional arguments to compute_transp.
15646         * postreload-gcse.c: Include gcse-common.h and df.h
15647         (modify_mem_list_set, blocks_with_calls): New variables.
15648         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15649         (get_bb_avail_insn): Pass in the expression index too.
15650         (alloc_mem): Allocate memory for the new bitmaps and lists.
15651         (free_mem): Free memory for the new bitmaps and lists.
15652         (insert_expr_in_table): Record a bitmap index for each entry we
15653         add to the table.
15654         (record_last_mem_set_info): Call into common code in gcse-common.c.
15655         (get_bb_avail_insn): If no available insn was found in the requested
15656         BB.  If BB has a single predecessor, see if the expression is
15657         transparent in BB and available in that single predecessor.
15658         (compute_expr_transp): New wrapper for compute_transp.
15659         (eliminate_partially_redundant_load): Pass expression's bitmap_index
15660         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
15661         (gcse_after_reload_main): If there are elements in the hash table,
15662         then compute transparency for all the elements in the hash table.
15663         * gcse-common.h: New file.
15664         * gcse-common.c: New file.
15665
15666 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
15667
15668         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15669         as an adjective.
15670         (System Headers): Likewise.
15671         (Ifdef): Likewise.
15672         (Traditional macros): Likewise.
15673         (Invocation): Likewise.
15674         (Option Index): Likewise.
15675         * doc/cppopts.texi (-M): Likewise.
15676         (-finput-charset): Likewise.
15677         (--help): Likewise.
15678         * doc.invoke.texi (AVR Options): Likewise.
15679         (V850 Options): Likewise.
15680
15681 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
15682
15683         PR ipa/65475
15684         * ipa-devirt.c: Include demangle.h
15685         (odr_type_d): Add field rtti_broken.
15686         (odr_subtypes_equivalent_p): Do not require name to match.
15687         (compare_virtual_tables): Fix typo; if type already has ODR violation,
15688         bypass the tests; be ready for function referneces in vtables that are
15689         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15690         (warn_odr): Give up for nameless types.
15691         (warn_types_mismatch): Report mismatch in mangled names;
15692         report mismatch in anonymous namespaces; look into component types to
15693         give useful error; report when mismatch is dragged in from other ODR
15694         type.
15695         (odr_types_equivalent_p): Match types for being polymorphic; avoid
15696         duplicated diagnostics.
15697         (add_type_duplicate): Reorder checks so more informative ones come
15698         first; fix typo; do not output "the extra base is defined here" when
15699         we did not warn.
15700         (BINFO_N_BASE_BINFOS): Relax sanity check.
15701
15702 2015-03-22  Martin Liska  <mliska@suse.cz>
15703             Jakub Jelinek  <jakub@redhat.com>
15704
15705         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15706         masks that can potentially include a builtin.
15707         (ix86_add_new_builtins): Introduce fast filter for isa values
15708         that cannot trigger builtin inclusion.
15709
15710 2015-03-22  Martin Liska  <mliska@suse.cz>
15711
15712         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15713         (sem_item::update_hash_by_local_refs): Likewise.
15714         (sem_variable::get_hash): Empty line is fixed.
15715         (sem_item_optimizer::execute): Include adding of hash references.
15716         (sem_item_optimizer::update_hash_by_addr_refs): New function.
15717         (sem_item_optimizer::build_hash_based_classes): Use local hash.
15718         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15719         (sem_item::update_hash_by_local_refs): Likewise.
15720
15721 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15722
15723         PR ipa/65502
15724         * ipa-comdats.c (enqueue_references): Walk through thunks.
15725         (ipa_comdats): Likewise.
15726         (set_comdat_group_1): New function.
15727
15728 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15729
15730         PR ipa/65475
15731         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15732         non-polymorphic
15733
15734 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
15735             Gerald Pfeifer  <gerald@pfeifer.com>
15736
15737         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15738
15739 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
15740             Sandra Loosemore  <sandra@codesourcery.com>
15741
15742         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15743         function parameter declaration.
15744         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15745         Update arguments to nios2_adjust_call_address().
15746         (sibcall_internal): Rename from *sibcall.
15747         (sibcall_value_internal): Rename from *sibcall_value.
15748         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15749         (nios2_large_got_address): Add target temp reg parameter.
15750         (nios2_got_address): Adjust call to nios2_large_got_address, add
15751         force_reg around it.
15752         (nios2_load_pic_address): Add target temp reg parameter, replace call
15753         to nios2_got_address with corresponding code.
15754         (nios2_legitimize_constant_address): Update call to
15755         nios2_load_pic_address.
15756         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15757         to use temp reg for PIC loading purposes.
15758         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15759         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15760         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15761
15762 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15763
15764         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15765         usage of "the @option{...}".
15766         (-Wopenmp-simd): Likewise.
15767         (-fsanitize-recover): Likewise.
15768         (-fsanitize-undefined-trap-on-error): Likewise.
15769         (-flto): Likewise.
15770         (tracer-dynamic-coverage-feedback): Likewise.
15771         (reorder-block-duplicate-feedback): Likewise.
15772         (loop-unroll-jam-size): Likewise.
15773         (-B): Likewise.
15774         (-I-): Likewise.
15775         (-mabs=legacy): Likewise.
15776         (-mupper-regs-df): Likewise.
15777         (-mupper-regs-sf): Likewise.
15778         (-mpointers-to-nested-functions): Likewise.
15779
15780 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15781
15782         * doc/extend.texi (Cilk Plus Builtins): Add markup.
15783
15784 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15785
15786         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15787         additional index entries and cross-references.
15788         (-fchkp-check-incomplete-type): Likewise.
15789         (-fchkp-first-field-has-own-bounds): Likewise.
15790         (-fchkp-narrow-to-innermost-array): Likewise.
15791         (-fchkp-use-fast-string-functions): Likewise.
15792         (-fchkp-use-nochk-string-functions): Likewise.
15793         (-fchkp-use-static-const-bounds): Likewise.
15794         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15795         (-fchkp-instrument-marked-only): Likewise.
15796         (-fchkp-use-wrappers): Likewise.
15797         (-static-libmpx): Likewise.
15798         (-static-libmpxwrappers): Likewise.
15799         * doc/extend.texi (bnd_legacy): Likewise.
15800         (bnd_instrument): Likewise.
15801         (bnd_variable_size): Likewise.
15802         (Pointer Bounds Checker builtins): Likewise.
15803
15804 2015-03-21  Tom de Vries  <tom@codesourcery.com>
15805
15806         PR tree-optimization/65458
15807         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15808         * cgraph.h (cgraph_node): Add parallelized_function field.
15809         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15810         (input_overwrite_node): Read parallelized_function field.
15811         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15812         parallelized_function on cgraph_node for child_fn.
15813         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15814         Remove include of gt-tree-parloops.h.
15815         (parallelized_functions): Remove static variable.
15816         (parallelized_function_p): Rewrite using parallelized_function field of
15817         cgraph_node.
15818         (create_loop_fn): Remove adding to parallelized_functions.
15819         * Makefile.in (GTFILES): Remove tree-parloops.c
15820
15821 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
15822
15823         PR rtl-optimization/64366
15824         * lra.c (lra_update_insn_regno_info): Consider regs in
15825         CALL_INSN_FUNCTION_USAGE memory.
15826
15827 2015-03-20  Richard Biener  <rguenther@suse.de>
15828
15829         PR middle-end/64715
15830         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15831         for type comparison and gcc_checking_assert.
15832         (chrec_fold_plus_poly_poly): Likewise.
15833         (chrec_fold_multiply_poly_poly): Likewise.
15834         (chrec_convert_1): Likewise.
15835         * gimplify.c (gimplify_expr): Remove premature folding of
15836         &X + CST to &MEM[&X, CST].
15837
15838 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15839
15840         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15841         already is final.
15842         (ipa_inline): Recompute inline_failed codes.
15843         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15844         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15845         CIF_FINAL_ERROR.
15846
15847 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
15848
15849         PR rtl-optimization/60851
15850         * recog.c (constrain_operands): Accept a pseudo register before reload
15851         for LRA enabled targets.
15852
15853 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15854
15855         PR target/65240
15856         * config/rs6000/predicates.md (easy_fp_constant): Remove special
15857         -ffast-math handling that kept non-0 constants live in the RTL
15858         until reload.  Remove logic testing the number of instructions it
15859         took to create a constant in a GPR that was never used, due to a
15860         test for soft-float earlier.
15861         (memory_fp_constant): Delete, no longer used.
15862
15863         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15864         alternatives for loading non-0 constants into GPRs for hard
15865         floating point that is no longer needed due to changes in
15866         easy_fp_constant.  Add support for loading 0.0 into GPRs.
15867         (mov<mode>_hardfloat32): Likewise.
15868         (mov<mode>_hardfloat64): Likewise.
15869         (mov<mode>_64bit_dm): Likewise.
15870         (movtd_64bit_nodm): Likewise.
15871         (pre-reload move FP constant define_split): Delete define_split,
15872         since it is no longer used.
15873         (extenddftf2_internal): Remove GHF constraints that are not valid
15874         for extenddftf2.
15875
15876 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
15877
15878         PR rtl-optimization/63491
15879         * lra-constraints.c (check_and_process_move): Use src instead of
15880         sreg.  Remove some dead code.
15881
15882 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
15883
15884         PR ipa/65380
15885         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15886         (sem_variable::merge): Likewise.
15887
15888 2015-03-19  Martin Liska  <mliska@suse.cz>
15889
15890         PR ipa/65465
15891         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15892         all fields of cgraph_thunk_info.
15893
15894 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15895
15896         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15897         clone instrumented thunks.
15898
15899 2015-03-19  Richard Biener  <rguenther@suse.de>
15900
15901         Revert
15902         2015-03-10  Richard Biener  <rguenther@suse.de>
15903
15904         PR middle-end/63155
15905         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15906         * tree-ssa-coalesce.c: Include timevar.h.
15907         (attempt_coalesce): Handle graph being NULL.
15908         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15909         Split out abnormal coalescing to ...
15910         (perform_abnormal_coalescing): ... this function.
15911         (coalesce_ssa_name): Perform abnormal coalescing without computing
15912         live/conflict.
15913         (verify_ssa_coalescing_worker): New function.
15914         (verify_ssa_coalescing): Likewise.
15915
15916 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15917             Jakub Jelinek  <jakub@redhat.com>
15918
15919         PR sanitizer/65400
15920         * tsan.c (instrument_gimple): Clear tail call flag on
15921         calls.
15922
15923 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15924
15925         PR sanitizer/65400
15926         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15927         call in the return bb.
15928         (find_split_points): Add RETURN_BB argument, don't call
15929         find_return_bb.
15930         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
15931         if true append TSAN_FUNC_EXIT internal call after the call to
15932         the split off function.
15933         (execute_split_functions): Call find_return_bb here.
15934         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15935         Adjust find_split_points and split_function calls.
15936
15937 2015-03-18  DJ Delorie  <dj@redhat.com>
15938
15939         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
15940         (iorqi3_virt): Likewise.
15941
15942 2015-03-18  Tom de Vries  <tom@codesourcery.com>
15943
15944         * tree-parloops.c (parallelize_loops): Make static.
15945         * tree-parloops.h (parallelize_loops): Remove extern declaration.
15946
15947 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
15948
15949         PR middle-end/64491
15950         Revert:
15951         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
15952
15953         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
15954         condition would be removed due to undefined behaviour.
15955
15956 2015-03-18  Martin Liska  <mliska@suse.cz>
15957
15958         PR ipa/65432
15959         * cgraph.c (cgraph_node::get_create): Remove unnecessary
15960         xstrdup_for_dump wrapper.
15961         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
15962         sem_item::name.
15963         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
15964         with xstrdup_for_dump.
15965         (sem_variable::equals): Likewise.
15966         (sem_item_optimizer::read_section): Use symtab_node::name instead of
15967         sem_item::name.
15968         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
15969         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
15970         symtab_node::asm_name with xstrdup_for_dump.
15971         (congruence_class::dump): Use symtab_node::name instead of
15972         sem_item::name.
15973         * ipa-icf.h (symtab_node::name): Remove.
15974         (symtab_node::asm_name): Likewise.
15975
15976 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
15977
15978         PR tree-optimization/65450
15979         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
15980         function.
15981         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
15982         it instead of duplicate_ssa_name_ptr_info.
15983
15984         PR target/65222
15985         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
15986
15987 2015-03-18  Richard Biener  <rguenther@suse.de>
15988
15989         * tree-data-ref.h (struct access_matrix): Remove.
15990         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
15991         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
15992         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
15993         (am_vector_index_for_loop): Likewise.
15994         (struct data_reference): Remove access_matrix member.
15995         (DR_ACCESS_MATRIX): Remove.
15996         (lambda_vector_new): Add comment.
15997         (lambda_matrix_new): Use XOBNEWVEC.
15998
15999 2015-03-18  Richard Biener  <rguenther@suse.de>
16000
16001         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16002         (pass_ch::execute): Cleanup the CFG only if we did sth.
16003         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16004
16005 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16006
16007         * expmed.c (synth_mult): Use std::swap instead of manually
16008         swapping algorithms.
16009
16010 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
16011
16012         PR target/65078
16013         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16014
16015 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
16016
16017         PR target/65296
16018         * config/avr/avr.opt (-nodevicelib): New option.
16019         * doc/invoke.texi (AVR Options): Document it.
16020         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16021         libgcc.a, libc.a, libm.a.
16022         * config/avr/specs.h: Same.
16023         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16024         which don't (directly) depend on the device.  Print more help.
16025         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16026         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16027         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16028         case of an error.
16029         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16030         for specs file name.
16031         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16032         * config/avr/avr-mcus.def: Adjust initializers and comments.
16033
16034 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
16035
16036         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16037         DECL_ONE_ONLY to check if decl is one only.
16038         * ipa-split.c (consider_split): Limit splitt of one only functions.
16039
16040 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16041
16042         PR tree-optimization/65427
16043         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16044         functions.
16045         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16046
16047 2015-03-16  Marek Polacek  <polacek@redhat.com>
16048
16049         * cgraph.h (add_new_static_var): Remove declaration.
16050         * varpool.c (add_new_static_var): Remove function.
16051
16052 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16053
16054         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16055         instead of vec<tree> * with vec_alloc and release for args.
16056         Adjust all users.
16057
16058         PR middle-end/65431
16059         * omp-low.c (delete_omp_context): Only splay_tree_delete
16060         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16061         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
16062
16063 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16064
16065         PR sanitizer/64820
16066         * cfgexpand.c (align_base): New function.
16067         (alloc_stack_frame_space): Call it.
16068         (expand_stack_vars): Align prev_frame to be sure
16069         data->asan_vec elements aligned properly.
16070
16071 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
16072
16073         PR middle-end/65409
16074         * expr.c (store_field): Do not do a direct block copy if the source is
16075         a PARALLEL with BLKmode.
16076
16077 2015-03-16  Tom de Vries  <tom@codesourcery.com>
16078
16079         PR middle-end/65414
16080         Revert:
16081         2015-03-12  Tom de Vries  <tom@codesourcery.com>
16082
16083         PR rtl-optimization/64895
16084         * lra-lives.c (check_pseudos_live_through_calls): Use
16085         actual_call_used_reg_set instead of call_used_reg_set, if available.
16086
16087 2015-03-16  Alan Modra  <amodra@gmail.com>
16088
16089         PR target/63150
16090         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16091         Modify Z->r bswapdi splitter to use dest in place of scratch.
16092         In r->Z and Z->r bswapdi splitter rename word_high, word_low
16093         to word1, word2 and rearrange logic to suit.
16094         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16095         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
16096         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16097         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
16098         early clobber.
16099
16100 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
16101
16102         PR tree-optimization/65369
16103         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16104         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16105         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16106
16107         PR tree-optimization/65418
16108         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16109         are casts in the first PLUS_EXPR operand, ensure tbias and
16110         *totallowp are in the inner type.
16111
16112         PR rtl-optimization/65401
16113         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16114         argument.  If true, adjust_address_nv of x with big-endian
16115         correction for the mode widening to GET_MODE (y).
16116         (make_field_assignment): Don't do MEM mode widening here.
16117         Use MEM_P instead of GET_CODE == MEM.
16118
16119 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16120
16121         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16122         the external decls.
16123
16124 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16125
16126         PR target/64600
16127         * config/arm/arm.c (arm_gen_constant, AND case): Use
16128         ARM_SIGN_EXTEND when constructing AND mask.
16129
16130 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16131
16132         * graph.c (print_graph_cfg): Make function names visible and append
16133         parenthesis to it.  Also make groups of basic blocks belonging to the
16134         same function visible.
16135
16136 2015-03-12  Richard Biener  <rguenther@suse.de>
16137
16138         PR middle-end/44563
16139         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16140         to avoid quadratic behavior with inline expansion splitting blocks.
16141         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16142         with the successor if the predecessor will be merged with it.
16143         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16144         entry block with its successor.
16145
16146 2015-03-13  Richard Biener  <rguenther@suse.de>
16147
16148         PR middle-end/44563
16149         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16150         (cleanup_tree_cfg_1): Do not call it.
16151         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16152         (fixup_noreturn_call): Mark the stmt as control altering.
16153         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16154         here.
16155         (pass_data_fixup_cfg): Produce a dump file.
16156         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16157         (need_noreturn_fixup): New global.
16158         (pass_dominator::execute): Fixup queued noreturn calls.
16159         (optimize_stmt): Queue calls that became noreturn for fixup.
16160         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16161         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16162         (el_to_fixup): New global.
16163         (eliminate_dom_walker::before_dom_childre): Queue calls that
16164         became noreturn for fixup.
16165         (eliminate): Fixup queued noreturn calls.
16166         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16167         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16168         (substitute_and_fold_dom_walker::before_dom_children): Queue
16169         alls that became noreturn for fixup.
16170         (substitute_and_fold): Fixup queued noreturn calls.
16171
16172 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
16173
16174         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16175         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16176         are building; for methods check ODR type of class they belong to if
16177         they may lead to a polymorphic call.
16178         (sem_function::compare_polymorphic_p): Be bit smarter about testing
16179         when function may lead to a polymorphic call.
16180         (sem_function::compare_type_list): Remove.
16181         (sem_variable::equals): Update use of compatible_types_p.
16182         (sem_variable::parse_tree_refs): Remove.
16183         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16184         cdtor.
16185         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16186         matching here.
16187         (func_checker::compatible_polymorphic_types_p): Break out from ...
16188         (unc_checker::compatible_types_p): ... here.
16189         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16190         Declare.
16191         (unc_checker::compatible_types_p): Update.
16192         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16193         Remove.
16194
16195 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16196
16197         PR rtl-optimization/65235
16198         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16199         When first element of vec_concat is const_int, calculate its size
16200         using second element.
16201
16202 2015-03-12  Richard Biener  <rguenther@suse.de>
16203
16204         PR middle-end/65270
16205         * fold-const.c (operand_equal_p): Fix ordering of resetting
16206         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16207
16208 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16209
16210         * config/s390/s390.c (s390_reorg): Move code to output nops after label
16211         to s390_reorg ().
16212         (s390_asm_output_function_label): Likewise.
16213         * config/s390/s390.c (s390_asm_output_function_label):
16214         Fix function label alignment with -mhtopatch.
16215         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16216         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16217         ("nop_2_byte"): New define_insn.
16218         ("nop_4_byte"): Likewise.
16219         ("nop_6_byte"): Likewise.
16220         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16221         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16222
16223 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16224
16225         PR target/65103
16226         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16227         register.
16228
16229 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16230
16231         PR target/65044
16232         * toplev.c (process_options): Restrict Pointer Bounds Checker
16233         usage with Address Sanitizer.
16234
16235 2015-03-12  Richard Biener  <rguenther@suse.de>
16236
16237         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16238         to split on.
16239         * omp-low.c (expand_omp_taskreg): Split block before removing
16240         the stmt.
16241         (expand_omp_target): Likewise.
16242         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16243         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16244         stmt to split_block.
16245
16246 2015-03-12  Tom de Vries  <tom@codesourcery.com>
16247
16248         PR rtl-optimization/64895
16249         * lra-lives.c (check_pseudos_live_through_calls): Use
16250         actual_call_used_reg_set instead of call_used_reg_set, if available.
16251
16252 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16253
16254         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16255         (cgraph_node::remove): Likewise.
16256         (cgraph_node::get_untransformed_body): Likewise.
16257         * varpool.c (varpool_node::remove): Likewise.
16258         (varpool_node::get_constructor): Add sanity check.
16259
16260 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
16261
16262         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16263         old GCC versions.
16264         (-fabi-compat-version): Likewise.
16265         (-ffriend-injection): Likewise.
16266         (-Wdeclaration-after-statement): Likewise.
16267         (-fomit-frame-pointer): Likewise.
16268         (-ftree-coalesce-inlined-vars): Likewise.
16269         (-fvisibility=): Likewise.
16270         * doc/extend.texi (Typeof): Likewise.
16271         (Zero Length): Likewise.
16272         (Escaped Newlines): Likewise.
16273         (Compound Literals): Likewise.
16274         (Function Attributes): Likewise.
16275         (Label Attributes): Likewise.
16276         (Type Attributes): Likewise.
16277         (Function Names): Likewise.
16278         (Other Builtins): Likewise.
16279         (Function Specific Option Pragmas): Likewise.
16280         (C++ Interface): Likewise.
16281
16282 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
16283
16284         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16285
16286 2015-03-11  Marek Polacek  <polacek@redhat.com>
16287
16288         PR tree-optimization/65388
16289         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16290
16291 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
16292
16293         PR target/65296
16294         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16295         * configure: Regenerate.
16296         * config.in: Regenerate.
16297         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16298         [-mn-flash]: Document it.
16299         [__AVR_ARCH__]: Document avrtiny.
16300
16301         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16302         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16303         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16304
16305 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16306
16307         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16308
16309 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16310
16311         PR target/65242
16312         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16313         allow reloads of PLUS in floating point/VSX registers.
16314
16315 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
16316
16317         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16318         crypto_sha256_fast.
16319         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16320
16321 2015-03-11  Richard Biener  <rguenther@suse.de>
16322
16323         PR tree-optimization/65310
16324         * tree-sra.c (build_ref_for_offset): Also preserve larger
16325         alignment.
16326
16327 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
16328
16329         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16330
16331 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16332
16333         PR target/65368
16334         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16335         new define_expand.
16336         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16337
16338 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16339
16340         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16341         (sem_function::equals_wpa): ... here.
16342
16343 2015-03-10  Marek Polacek  <polacek@redhat.com>
16344             Jakub Jelinek  <jakub@redhat.com>
16345
16346         PR sanitizer/65367
16347         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16348         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
16349         separately.
16350
16351 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16352
16353         PR target/65286
16354         * config/rs6000/t-linux: For powerpc64* target set
16355         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16356
16357 2015-03-10  Richard Biener  <rguenther@suse.de>
16358
16359         PR middle-end/44563
16360         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16361         for redirect_all_calls.
16362
16363 2015-03-10  Marek Polacek  <polacek@redhat.com>
16364
16365         * gdbinit.in (pcfun): Define and document.
16366
16367 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
16368
16369         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16370         of libgomp-plugin.h.
16371         (find_target_compiler): Support a case when the path to gcc is
16372         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16373         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16374         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16375         libgomp-plugin.h.
16376         (main): Use GCC_INSTALL_NAME as target_driver_name.
16377         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16378         define.
16379         (mkoffload.o): Remove obsolete include path and defines.
16380         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16381
16382 2015-03-10  Richard Biener  <rguenther@suse.de>
16383
16384         PR middle-end/63155
16385         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16386         * tree-ssa-coalesce.c: Include timevar.h.
16387         (attempt_coalesce): Handle graph being NULL.
16388         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16389         Split out abnormal coalescing to ...
16390         (perform_abnormal_coalescing): ... this function.
16391         (coalesce_ssa_name): Perform abnormal coalescing without computing
16392         live/conflict.
16393         (verify_ssa_coalescing_worker): New function.
16394         (verify_ssa_coalescing): Likewise.
16395
16396 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
16397
16398         PR target/65296
16399         * config.gcc (extra_options) [avr]: Remove.
16400         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16401         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16402         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16403
16404         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16405         (-mmcu=): Add Var and MissingArgError properties.
16406         (-march=): Remove.
16407         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16408         * config/avr/t-multilib: Regenerate.
16409         * config/avr/specs.h: New file.
16410         * config/avr/driver-avr.c: New file.
16411         * config/avr/genopt.sh: Remove file.
16412         * config/avr/avr-tables.opt: Remove file.
16413         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16414         * config/avr/avr-c.c: Same.
16415         * avr-arch.h: Same.
16416         (avr_current_device): Remove proto.
16417         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16418         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16419         (EXTRA_SPEC_FUNCTIONS): Define.
16420         (avr_devicespecs_file): New specs function proto.
16421         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16422         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16423         (avr_current_device): Remove definition and usage.
16424         (avr_set_core_architecture): New static function.
16425         (avr_option_override): Use it.
16426         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16427         (mcu_name): New static array.
16428         (comparator, avr_archs_str, avr_mcus_str): New static functions.
16429         (avr_inform_devices, avr_inform_core_architectures): New functions.
16430         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16431         (avrlibc.h) [WITH_AVRLIBC]: Include.
16432         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16433         (print_mcu): Rewrite from scratch.
16434         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16435         Forward to avr-specific specs defined in device-specs file.
16436         * config/avr/t-avr (driver-avr.o): New rule.
16437         (avr-devices.o): Depend on avr-arch.h.
16438         (avr-mcus): No more depend on avr-tables.opt.
16439         (avr-tables.opt): Remove rule.
16440         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16441
16442 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16443
16444         * c-family/c.opt (fchkp-use-wrappers): New.
16445         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16446         (chkp_wrap_function): New.
16447         (chkp_build_instrumented_fndecl): Support wrapped
16448         functions.
16449         * doc/invoke.texi (-fcheck-pointer-bounds): New.
16450         (-fchkp-check-incomplete-type): New.
16451         (-fchkp-first-field-has-own-bounds): New.
16452         (-fchkp-narrow-bounds): New.
16453         (-fchkp-narrow-to-innermost-array): New.
16454         (-fchkp-optimize): New.
16455         (-fchkp-use-fast-string-functions): New.
16456         (-fchkp-use-nochk-string-functions): New.
16457         (-fchkp-use-static-bounds): New.
16458         (-fchkp-use-static-const-bounds): New.
16459         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16460         (-fchkp-check-read): New.
16461         (-fchkp-check-write): New.
16462         (-fchkp-store-bounds): New.
16463         (-fchkp-instrument-calls): New.
16464         (-fchkp-instrument-marked-only): New.
16465         (-fchkp-use-wrappers): New.
16466         (-static-libmpx): New.
16467         (-static-libmpxwrappers): New.
16468
16469 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16470
16471         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16472         (CHKP_SPEC): Add wrappers library.
16473         * c-family/c.opt (static-libmpxwrappers): New.
16474
16475 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
16476
16477         * config/i386/linux-common.h (LIBMPX_LIBS): New.
16478         (LIBMPX_SPEC): New.
16479         (CHKP_SPEC): New.
16480         * gcc.c (CHKP_SPEC): New.
16481         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16482         * c-family/c.opt (static-libmpx): New.
16483
16484 2015-03-10  Richard Biener  <rguenther@suse.de>
16485
16486         PR middle-end/44563
16487         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16488         for compare_type.
16489         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16490         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16491         (cgraph_add_edge_to_call_site_hash): Likewise.
16492         (cgraph_node::get_edge): Likewise.
16493         (cgraph_edge::set_call_stmt): Likewise.
16494         (cgraph_edge::remove_caller): Likewise.
16495
16496 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
16497
16498         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16499         (callee_saved_gpr_regs_size): ... this.
16500         (callee_saved_regs_first_regno): Rename to ...
16501         (callee_saved_first_gpr_regno): ... this.
16502         (callee_saved_regs_last_regno) Rename to ...
16503         (callee_saved_last_gpr_regno): ... this.
16504         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16505         variables.
16506         (nds32_initial_elimination_offset): Likewise.
16507         (nds32_expand_prologue): Likewise.
16508         (nds32_expand_epilogue): Likewise.
16509         (nds32_expand_prologue_v3push): Likewise.
16510         (nds32_expand_epilogue_v3pop): Likewise.
16511         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16512         Adjust renamed variables.
16513         (nds32_output_stack_pop): Likewise.
16514
16515 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16516
16517         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16518         code in comment.
16519
16520 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16521
16522         PR rtl-optimization/65321
16523         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16524         than shift mode.
16525         * var-tracking.c (use_narrower_mode): Likewise.
16526
16527 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16528
16529         PR tree-optimization/65355
16530         * varasm.c (notice_global_symbol): Do not produce RTL.
16531         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16532         anchor.
16533         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16534         check for section anchors.
16535
16536 2015-03-10  Alan Modra  <amodra@gmail.com>
16537
16538         PR target/65286
16539         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16540         to be single-arch by default.  Set cpu_is_64bit for powerpc64
16541         given --with-cpu=native.
16542         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16543         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16544         and powerpc64le.
16545         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16546         rs6000_isa_flags rather than TARGET_64BIT.
16547
16548 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
16549             Kaz Kojima  <kkojima@gcc.gnu.org>
16550
16551         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16552
16553 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
16554
16555         PR lto/65361
16556         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16557         on a TREE_BINFO, instead use BINFO_TYPE.
16558
16559 2015-03-09  Richard Biener  <rguenther@suse.de>
16560
16561         PR middle-end/65270
16562         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16563         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16564         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
16565         of that.  When comparing dereferences compare alignment.
16566         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16567
16568 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16569
16570         * ipa-inline-analysis.c (check_callers): Check
16571         node->can_remove_if_no_direct_calls_and_refs_p.
16572         (growth_likely_positive): Reorganize to call
16573         can_remove_if_no_direct_calls_p later.
16574         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16575         will_be_removed_from_program_if_no_direct_calls_p): Add
16576         will_inline parameter.
16577         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16578         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16579         Handle inliner case correctly.
16580
16581 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16582
16583         PR tree-optimization/63743
16584         * cfgexpand.c (reorder_operands): Also reorder if only second operand
16585         had its definition forwarded by TER.
16586
16587 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16588
16589         PR lto/65316
16590         * ipa-utils.h (types_odr_comparable): Add strict argument.
16591         * ipa-devirt.c: Fix whitespace;
16592         (odr_hasher): Remove.
16593         (odr_name_hasher, odr_vtable_hasher): New hashers.
16594         (can_be_name_hashed_p): New predicate.
16595         (hash_type_name): remove.
16596         (hash_odr_name): New.
16597         (odr_name_hasher::hash): new.
16598         (can_be_vtable_hashed_p): New.
16599         (hash_odr_vtable): New.
16600         (odr_vtable_hasher::hash): New.
16601         (types_same_for_odr): Add strict parameter.
16602         (types_odr_comparable): Likewise.
16603         (odr_name_hasher::equal): New.
16604         (odr_vtable_hasher::equal): New.
16605         (odr_name_hasher::remove): New.
16606         (odr_hash_type): Change to hash_table<odr_name_hasher>.
16607         (odr_vtable_hash_type): New.
16608         (odr_vtable_hash): New.
16609         (odr_subtypes_equivalent_p): Do strict comparsion.
16610         (add_type_duplicate): Merge type names; cleanup; avoid type
16611         duplicates.
16612         (register_odr_type): Initialize vtable hash.
16613         (build_type_inheritance_graph): Likewise
16614         (get_odr_type): Reorg to use two hashes.
16615         (dump_possible_polymorphic_call_targets): Move sanity check after debug
16616         output.
16617         (ipa_devirt): Dump type_inheritance_graph.
16618         (types_same_for_odr): Add strict mode.
16619
16620 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16621
16622         PR ipa/65334
16623         * cgraph.h (symtab_node): Add definition_alignment,
16624         can_increase_alignment_p and increase_alignment.
16625         * symtab.c (symtab_node::can_increase_alignment_p,
16626         increase_alignment_1, symtab_node::increase_alignment,
16627         symtab_node::definition_alignment): New.
16628         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16629         can_increase_alignment_p.
16630         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16631         * tree-vect-stmts.c (ensure_base_align): Likewise.
16632         * varasm.c (function_section_1): Use definition_alignment.
16633         (assemble_start_function): Likewise.
16634         (emit_local): likewise.
16635         (build_constant_desc): Likewsie.
16636         (output_constant_def_contents): Likewise.
16637         (place_block_symbol): Likewise.
16638         (output_object_block): Likewise.
16639
16640 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16641
16642         PR ipa/65316
16643         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16644         when outputting debug.
16645
16646 2015-03-07  Marek Polacek  <polacek@redhat.com>
16647             Martin Uecker  <uecker@eecs.berkeley.edu>
16648
16649         PR sanitizer/65280
16650         * doc/invoke.texi: Update description of -fsanitize=bounds.
16651
16652 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16653
16654         * tree-ssa-phiopt.c (neg_replacement): Remove.
16655         (tree_ssa_phiopt_worker): Remove negate optimization.
16656
16657 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16658
16659         PR ipa/65302
16660         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16661
16662 2015-03-06  Richard Biener  <rguenther@suse.de>
16663
16664         PR middle-end/64928
16665         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16666         and liveout_obstack members.
16667         (calculate_live_on_exit): Remove.
16668         (calculate_live_ranges): Change declaration.
16669         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16670         (new_tree_live_info): Adjust.
16671         (calculate_live_ranges): Delete livein when not wanted.
16672         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16673         Deal with partly deleted live info.
16674         (loe_visit_block): Remove temporary bitmap by using
16675         bitmap_ior_and_compl_into.
16676         (live_worklist): Adjust accordingly.
16677         (calculate_live_on_exit): Make static.
16678         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16679         we do not need livein.
16680
16681 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
16682
16683         * real.c (real_from_string): Fix typo in assertion.
16684
16685 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
16686
16687         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16688         the patch.
16689
16690 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16691
16692         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16693
16694 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
16695
16696         PR target/64342
16697         * lra-assigns.c (find_hard_regno_for): Rename to
16698         find_hard_regno_for_1.  Add a new parameter.
16699         (find_hard_regno_for): New function using find_hard_regno_for_1.
16700
16701 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16702
16703         PR rtl-optimization/65067
16704         * expmed.c (store_bit_field, extract_bit_field): Reworked the
16705         strict volatile bitfield handling.
16706
16707 2015-03-05  Martin Liska  <mliska@suse.cz>
16708
16709         PR ipa/65318
16710         * ipa-icf.c (sem_variable::equals): Compare variables types.
16711
16712 2015-03-05  Richard Henderson  <rth@redhat.com>
16713
16714         PR target/65121
16715         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16716         correctly check weak symbol binding.
16717
16718 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
16719
16720         PR middle-end/65315
16721         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16722         needed alignment.
16723
16724 2015-03-05  Martin Liska  <mliska@suse.cz>
16725
16726         * ipa-inline.c (inline_small_functions): Set default value to
16727         prevent warning during bootstrap.
16728         * tree.h: Add pragma guard that ignores false positives during
16729         bootstrap.
16730
16731 2015-03-05  Richard Biener  <rguenther@suse.de>
16732
16733         PR tree-optimization/65310
16734         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16735         Properly preserve alignment of the base of the access.
16736
16737 2015-03-05  Richard Biener  <rguenther@suse.de>
16738
16739         PR ipa/65270
16740         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16741         Compare dependence info.
16742
16743 2015-03-05  Richard Biener  <rguenther@suse.de>
16744
16745         PR middle-end/65233
16746         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16747         tree-into-ssa.h.
16748         (walk_ssa_copies): Revert last chage.  Instead do not walk
16749         SSA names registered for SSA update.
16750
16751 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16752
16753         PR ipa/65270
16754         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16755         vtable references for their containing type.
16756         (sem_function::equals_wpa): Compare TYPE_RESTRICT
16757         and type attributes.
16758
16759 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16760
16761         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16762         before negating it.
16763         * stor-layout.c (finalize_record_size): Revert latest change.
16764
16765 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
16766
16767         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16768
16769 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16770
16771         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16772         for correct comdat handling.
16773         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16774         Likewise.
16775         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16776         (used_from_object_file_p_worker): Remove.
16777         (cgraph_node::only_called_directly_or_alised): Add
16778         used_from_object_file_p.
16779         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16780         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16781         can_remove_if_no_direct_calls_and_refs_p.
16782
16783 2015-03-04  Nick Clifton  <nickc@redhat.com>
16784
16785         * config/rl78/rl78.h (enum reg_class): Remove real registers from
16786         General register class.
16787         * config/rl78/rl78-real.md: Replace general register constraints
16788         with real+virtual register constraints.
16789
16790 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16791
16792         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16793         from checking for -mhtm option.
16794
16795 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16796
16797         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16798         (struct ipa_sra_check_caller_data): Add has_thunk field.
16799         (ipa_sra_check_caller): Check for thunk.
16800         (ipa_sra_preliminary_function_checks): Give up on function with
16801         thunks.
16802         (ipa_early_sra): Use call_for_symbol_and_aliases.
16803
16804 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16805
16806         PR target/65249
16807         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16808         called for __stack_chk_guard symbol.
16809
16810 2015-03-03  DJ Delorie  <dj@redhat.com>
16811
16812         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16813         inc/dec.
16814         (*addhi3_real): Likewise.
16815         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16816         pattern to match incrementing memory.
16817         * config/rl78/predicates.md (rl78_1_2_operand): New.
16818         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16819         it's the same and only mem.
16820         (rl78_alloc_physical_registers_op2): If there's effectively only
16821         one MEM, transcode it into HL.
16822         (rl78_far_p): Reject addresses that aren't legitimate.
16823
16824 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16825
16826         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16827         negating it.
16828
16829         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16830
16831 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16832
16833         Implement call0 ABI for xtensa
16834         * config/xtensa/constraints.md ("a" constraint): Include stack
16835         pointer in case of call0 ABI.
16836         ("q" constraint): Make empty in case of call0 ABI.
16837         ("D" constraint): Include stack pointer in case of call0 ABI.
16838         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16839         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16840         prototypes.
16841         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16842         variable.
16843         (xtensa_regno_to_class): Make it a local variable in the
16844         function xtensa_regno_to_class.
16845         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16846         macro, function prototype and implementation.
16847         (reg_nonleaf_alloc_order): Make it a local variable in the
16848         function order_regs_for_local_alloc.
16849         (xtensa_conditional_register_usage): New function.
16850         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16851         (xtensa_valid_move): Allow direct moves to stack pointer
16852         register in call0 ABI.
16853         (xtensa_setup_frame_addresses): Only spill register windows in
16854         windowed ABI.
16855         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16856         call0 ABI respectively.
16857         (xtensa_function_arg_1): Only mark a7 register for copying in
16858         windowed ABI.
16859         (xtensa_call_save_reg): New function.
16860         (compute_frame_size): Add space for callee saved register
16861         storage to the frame size in call0 ABI.
16862         (xtensa_expand_prologue): Generate code to set up stack frame
16863         and save callee-saved registers in call0 ABI.
16864         (xtensa_expand_epilogue): New function.
16865         (xtensa_set_return_address): New function.
16866         (xtensa_return_addr): Calculate return address in call0 ABI.
16867         (xtensa_builtin_saveregs): Only mark a7 register for copying and
16868         emit copying code in windowed ABI.
16869         (order_regs_for_local_alloc): Add preferred register allocation
16870         order for non-leaf function in call0 ABI.
16871         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16872         (xtensa_asm_trampoline_template): Add trampoline generation for
16873         call0 ABI.
16874         (xtensa_trampoline_init): Add trampoline initialization for
16875         call0 ABI.
16876         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16877         functions.
16878         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16879         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16880         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16881         ABI call-used registers.
16882         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16883         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16884         call0 ABI.
16885         (REG_CLASS_CONTENTS): Include all registers into the preferred
16886         reload registers set, adjust the set in the
16887         xtensa_conditional_register_usage.
16888         (xtensa_regno_to_class): Drop variable declaration.
16889         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16890         function.
16891         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16892         respectively.
16893         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16894         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16895         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16896         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16897         location in call0 ABI.
16898         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16899         stack adjustment size when handling exception.
16900         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16901         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16902         definitions.
16903         ("return" pattern): Generate ret.n/ret in call0 ABI.
16904         ("epilogue" pattern): Expand epilogue.
16905         ("nonlocal_goto" pattern): Use default in call0 ABI.
16906         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16907         emit eh_set_a0_* depending on ABI.
16908         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16909         ("eh_set_a0_call0", "blockage"): New patterns.
16910
16911 2015-03-03  Martin Liska  <mliska@suse.cz>
16912
16913         PR ipa/65287
16914         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16915
16916 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16917
16918         PR 65138/target
16919         * config/rs6000/rs6000-tables.opt: Regenerate table.
16920
16921 2015-03-03  Renlin Li  <renlin.li@arm.com>
16922
16923         * doc/md.texi (@item ^): Change ? into ^.
16924
16925 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
16926
16927         * doc/tm.texi: Regenerated.
16928
16929 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16930
16931         * builtins.c (expand_builtin_return_addr): Add
16932         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16933         surrounding #ifdef.
16934         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16935         definition to 1.
16936         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
16937         Likewise.
16938         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
16939         undefined.
16940         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
16941         paragraph.
16942
16943 2015-03-03  Martin Jambor  <mjambor@suse.cz>
16944             Eric Botcazou  <ebotcazou@adacore.com>
16945
16946         * tree-sra.c (ipa_sra_check_caller_data): New type.
16947         (has_caller_p): Removed.
16948         (ipa_sra_check_caller): New function.
16949         (ipa_sra_preliminary_function_checks): Use it.
16950
16951 2015-03-03  Martin Liska  <mliska@suse.cz>
16952
16953         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
16954         instead of if branch.
16955
16956 2015-03-03  Martin Liska  <mliska@suse.cz>
16957
16958         PR ipa/65282
16959         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
16960
16961 2015-03-23  Jeff Law  <law@redhat.com>
16962
16963         PR tree-optimization/65241
16964         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
16965         hash table if INSERT is true.
16966
16967 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16968
16969         PR target/65296
16970         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
16971
16972 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16973
16974         PR target/64331
16975         * config/avr/avr.c (context.h, tree-pass.h): Include them.
16976         (avr_pass_data_recompute_notes): New static variable.
16977         (avr_pass_recompute_notes): New class.
16978         (avr_register_passes): New static function.
16979         (avr_option_override): Call it.
16980
16981 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16982
16983         Fix various problems with specs file generation.
16984
16985         PR target/65296
16986         * config.gcc (extra_gcc_objs) [avr]: Remove.
16987         * config/avr/driver-avr.c: Remove file.
16988         * config/avr/t-avr (driver-avr.o): Remove rule.
16989         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
16990         INCLUDES to build.  Depend on TM_H.
16991         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
16992         build warnings.  Fix non-matching types and non-existing %-codes.
16993         (tm.h): Include.
16994         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
16995         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
16996         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
16997         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
16998         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
16999         (LIBGCC_SPEC): Remove definitions.
17000
17001 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
17002
17003         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17004         to create a register in testing mode.
17005
17006 2015-03-03  Martin Liska  <mliska@suse.cz>
17007             Jan Hubicka  <hubicka@ucw.cz>
17008
17009         PR ipa/65263
17010         * cgraph.c (cgraph_node::has_thunk_p): New function.
17011         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17012         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17013         (sem_function::merge): Assert is changed.
17014
17015 2015-03-03  Martin Liska  <mliska@suse.cz>
17016             Martin Jambor  <mjambor@suse.cz>
17017
17018         PR ipa/65087
17019         * ipa-icf.c (sem_item_optimizer::execute): Change function
17020         return value to boolean.
17021         (sem_item_optimizer::merge_classes): Likewise.
17022         (ipa_icf_driver): Return TODO_remove_functions in case there's
17023         a merge operation processed.
17024         * ipa-icf.h: Change function return value to boolean.
17025
17026 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17027
17028         PR 65138/target
17029         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17030         processor type for 64-bit little endian PowerPC.
17031
17032         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17033         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
17034         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
17035         printing built-in mask so it does not pass NULL pointers.
17036
17037         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17038         -mcpu=powerpc64le.
17039
17040 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
17041
17042         PR target/58158
17043         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17044         !ISA_HAS_FP_CONDMOVE.
17045
17046 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
17047
17048         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17049         reload_completed.
17050
17051 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
17052
17053         * doc/invoke.texi (Options for Code Generation Conventions):
17054         Fix URL of DSO paper.
17055
17056 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17057
17058         PR ipa/65130
17059         * ipa-inline.c (check_callers): Looks for recursion.
17060         (inline_to_all_callers): Give up on uninlinable or recursive edges.
17061         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17062         summary of inline clones.
17063         (do_estimate_growth_1): Fix recursion check.
17064
17065 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17066
17067         PR ipa/64988
17068         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17069         comdat groups.
17070
17071 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17072             Aldy Hernandez  <aldyh@redhat.com>
17073
17074         PR lto/65276
17075         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17076         when checking TYPE_BINFO.
17077
17078 2015-03-02  Richard Biener  <rguenther@suse.de>
17079
17080         PR ipa/65270
17081         * ipa-icf-gimple.c: Include builtins.h.
17082         (func_checker::compare_memory_operand): Compare base alignment.
17083
17084 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17085
17086         PR target/65184
17087         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17088         are never passed by reference.
17089
17090 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17091
17092         PR target/65183
17093         * tree-chkp.c (chkp_check_lower): Don't check against
17094         zero bounds for already instrumented functions.
17095         (chkp_check_upper): Likewise.
17096         (chkp_fini): Clean pass local data to avoid wrong reusage.
17097
17098 2015-02-28  Martin Liska  <mliska@suse.cz>
17099             Jan Hubicka  <hubicka@ucw.cz>
17100
17101         * ipa-icf.c (sem_variable::equals): Improve debug output;
17102         get variable constructor.
17103         (sem_variable::parse): Do not filter out too early; give up on
17104         volatile and register vars.
17105         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17106         variables.
17107         * ipa-icf.h (sem_variable::init): Do not set ctor.
17108         (sem_variable::ctor): Remove.
17109
17110 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
17111
17112         PR middle-end/65233
17113         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17114
17115 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17116
17117         * ipa-icf.c: Include stor-layout.h
17118         (sem_function::compare_cgraph_references): Rename to ...
17119         (sem_item::compare_cgraph_references): ... this one.
17120         (sem_variable::equals_wpa): New function
17121         (sem_variable::equals): Do not check stuff already verified by
17122         equals_wpa.
17123         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17124         * ipa-icf.h (sem_item): Add compare_cgraph_references.
17125         (sem_function): Remove compare_cgraph_references.
17126         (sem_variable): Turns equals_wpa into non-inline.
17127
17128 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17129
17130         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17131         (sem_item::add_expr): New function.
17132         (sem_function::hash_stmt): Handle operands of most statements.
17133         (sem_variable::get_hash): Hash the actual constructor.
17134         * ipa-icf.h (sem_item): Add add_expr.
17135         (sem_function): Update prototype of hash_stmt
17136
17137 2015-02-28  Martin Liska  <mliska@suse.cz>
17138             Jan Hubicka  <hubicka@ucw.cz>
17139
17140         PR ipa/65245
17141         * ipa-icf-gimple.c (func_checker::compare_function_decl):
17142         Remove.
17143         (func_checker::compare_variable_decl): Skip symtab vars.
17144         (func_checker::compare_cst_or_decl): Update.
17145         * ipa-icf.c (sem_function::parse): Do not consider aliases.
17146         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17147         use correct symtab predicates.
17148         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17149         (sem_variable::parse):  Update comment.
17150         (sem_item_optimizer::build_graph): Consider ultimate aliases
17151         for references.
17152
17153 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17154
17155         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17156         of OBJ_TYPE_REF.
17157
17158 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17159
17160         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17161         (sem_variable::merge) Likewise.
17162
17163 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17164
17165         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17166         target; also match flag_ipa_devirt.
17167
17168 2015-03-01  Martin Liska  <mliska@suse.cz>
17169             Jan Hubicka  <hubicka@ucw.cz>
17170
17171         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17172         Validate variable alignment.
17173         * ipa-icf.c (sem_function::equals_private): Be more precise
17174         about non-common function attributes.
17175         (sem_variable::equals): Likewise.
17176
17177 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17178
17179         PR ipa/65237
17180         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17181         across COMDAT group boundary.
17182
17183 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17184
17185         PR ipa/65232
17186         * ipa-icf.c (clear_decl_rtl): New function.
17187         (sem_function::merge): Clear RTL before forming alias.
17188         (sem_variable::merge): Clear RTL before forming alias.
17189
17190 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17191
17192         PR ipa/65236
17193         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17194
17195 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
17196
17197         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17198         to neon_to_gp<q>.
17199
17200 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17201
17202         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17203         a typo in the description.
17204
17205 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17206
17207         PR target/64317
17208         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17209         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17210         * lra-constraints.c: Include "params.h".
17211         (EBB_PROBABILITY_CUTOFF): Use
17212         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17213         (lra_inheritance): Use '<' instead of '<=' for
17214         EBB_PROBABILITY_CUTOFF.
17215         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17216         Document change.
17217
17218 2015-02-27  Martin Liska  <mliska@suse.cz>
17219
17220         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17221         vector length condition.
17222
17223 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
17224
17225         * doc/extend.texi (x86 transactional memory intrinsics):
17226         Reorganize discussion of _xbegin.  Clarify that the return
17227         value is a bit mask.  Expand example and move to end of section.
17228
17229 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17230             Aldy Hernandez  <aldyh@redhat.com>
17231
17232         PR rtl-optimization/65220
17233         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17234
17235 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17236
17237         PR target/65032
17238         * lra-remat.c (update_scratch_ops): New.
17239         (do_remat): Call it.
17240         * lra.c (lra_register_new_scratch_op): New. Take code from ...
17241         (remove_scratches): ... here.
17242         * lra-int.h (lra_register_new_scratch_op): New prototype.
17243
17244 2015-02-27  Marek Polacek  <polacek@redhat.com>
17245
17246         PR c/65040
17247         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17248         -Wformat-signedness anymore.
17249
17250 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17251
17252         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17253         function.
17254         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17255
17256 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17257
17258         * config/s390/s390.c (enum s390_builtin):
17259         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17260         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17261         (s390_init_builtins): Generate new builtin functions.
17262         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17263         (s390_sfpc, s390_efpc): New pattern definitions.
17264
17265 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17266
17267         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17268         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17269         (s390_builtin_decls): New array.
17270         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17271         (s390_builtin_decl): New function.
17272         (TARGET_BUILTIN_DECL): Define macro.
17273
17274 2015-02-27  Richard Biener  <rguenther@suse.de>
17275
17276         PR middle-end/63175
17277         * builtins.c (get_object_alignment_2): Make sure to re-apply
17278         the ANDed mask after recursing to its operand gets us a new
17279         misalignment bit position.
17280
17281 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
17282             Martin Liska  <mliska@suse.cz>
17283
17284         PR bootstrap/65150
17285         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17286         Use address_matters_p.
17287         (redirect_all_callers, set_addressable): New functions.
17288         (sem_function::merge): Reorganize and fix merging issues.
17289         (sem_variable::merge): Likewise.
17290         (sem_variable::compare_sections): Remove.
17291         * common.opt (fmerge-all-constants, fmerge-constants): Remove
17292         Optimization flag.
17293         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17294         redirect them.
17295         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17296         decl is used.
17297         (address_matters_1): New function.
17298         (symtab_node::address_matters_p): New function.
17299         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17300         check for merged flag.
17301         * cgraph.h (address_matters_p): Declare.
17302         (symtab_node::address_taken_from_non_vtable_p): Remove.
17303         (symtab_node::address_can_be_compared_p): New method.
17304         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17305         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17306         Remove.
17307         (comdat_can_be_unshared_p_1) Use address_matters_p.
17308         (update_vtable_references): Fix formating.
17309         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17310         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17311         * cgraphclones.c: Preserve merged and icf_merged flags.
17312
17313 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
17314
17315         * doc/extend.texi (Function Attributes): Fix spelling and typos.
17316         (Label Attributes): Likewise.
17317         (Cilk Plus Builtins): Likewise.
17318         (ARC SIMD Built-in Functions): Likewise.
17319         (ARM C Language Extensions (ACLE)): Likewise.
17320         (PowerPC Built-in Functions): Likewise.
17321         (PowerPC Hardware Transactional Memory Built-in Functions):
17322         Likewise.
17323
17324 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17325
17326         PR tree-optimization/65216
17327         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17328         new stmt and new SSA_NAME for lhs whenever the arguments have
17329         changed and weren't just swapped.  Fix comment typo.
17330
17331         PR tree-optimization/65215
17332         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17333         for PDP endian targets.
17334         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17335         Fix up formatting issues.
17336         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
17337         size is smaller than the original, adjust MEM_REF offset by the
17338         difference of sizes.  Use is_gimple_mem_ref_addr instead of
17339         is_gimple_min_invariant test to avoid adding address temporaries.
17340
17341 2015-02-26  Martin Liska  <mliska@suse.cz>
17342             Jan Hubicka  <hubicka@ucw.cz>
17343
17344         PR ipa/64693
17345         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17346         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17347         (sem_item_optimizer::process_cong_reduction): Include division by
17348         sensitive references.
17349         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17350         * ipa-ref.c (ipa_ref::address_matters_p): New function.
17351         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17352
17353 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
17354
17355         PR target/65192
17356         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17357         Remove.
17358         * config/avr/avr.c: Same.
17359         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17360         Refuse any constant address not in 0..0xbf.
17361         * config/avr/avr.md (*mov<mode>, *movsf): Remove
17362         tiny_valid_direct_memory_access_range from insn conditions.
17363         (mov<mode>): Don't special-case expansion of avrtiny addresses.
17364
17365 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
17366
17367         PR target/61142
17368         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17369         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17370         * config/sh/predicates.md (const_logical_operand): New predicate.
17371         * config/sh/sh.md: Add new peephole2 patterns.
17372
17373 2015-02-26  Marek Polacek  <polacek@redhat.com>
17374
17375         PR ipa/65008
17376         * ipa-inline.c (early_inliner): Recompute inline parameters.
17377
17378 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17379
17380         PR target/65171
17381         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17382         instructions with TImode operands are included in the analysis.
17383
17384 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
17385
17386         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17387         of an EDGE_FSM_THREAD.
17388
17389 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17390
17391         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17392
17393 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
17394
17395         PR debug/46102
17396         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17397
17398 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
17399
17400         PR tree-optimization/65048
17401         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17402         (thread_through_all_blocks): Call valid_jump_thread_path.
17403         Remove invalid FSM jump-thread paths.
17404
17405 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17406
17407         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17408         (ipa_write_optimization_summaries): Likewise.
17409         * tree-streamer.h: Include data-streamer.h.
17410         (streamer_mode_table): Declare extern variable.
17411         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17412         * lto-streamer-out.c (lto_output_init_mode_table,
17413         lto_write_mode_table): New functions.
17414         (produce_asm_for_decls): Call lto_write_mode_table when streaming
17415         offloading LTO.
17416         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17417         (lto_create_simple_input_block): Add mode_table argument to the
17418         lto_input_block constructors.
17419         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17420         Likewise.
17421         * data-streamer-in.c (string_for_index): Likewise.
17422         * ipa-inline-analysis.c (inline_read_section): Likewise.
17423         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17424         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17425         * lto-streamer-in.c (lto_read_body_or_constructor,
17426         lto_input_toplevel_asms): Likewise.
17427         (lto_input_mode_table): New function.
17428         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17429         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17430         Use bp_pack_machine_mode.
17431         * real.h (struct real_format): Add name field.
17432         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17433         (class lto_input_block): Add mode_table member.
17434         (lto_input_block::lto_input_block): Add mode_table_ argument,
17435         initialize mode_table.
17436         (struct lto_file_decl_data): Add mode_table field.
17437         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17438         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17439         unpack_ts_decl_common_value_fields,
17440         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17441         * tree-streamer.c (streamer_mode_table): New variable.
17442         * real.c (ieee_single_format, mips_single_format,
17443         motorola_single_format, spu_single_format, ieee_double_format,
17444         mips_double_format, motorola_double_format,
17445         ieee_extended_motorola_format, ieee_extended_intel_96_format,
17446         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17447         ibm_extended_format, mips_extended_format, ieee_quad_format,
17448         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17449         decimal_single_format, decimal_double_format, decimal_quad_format,
17450         ieee_half_format, arm_half_format, real_internal_format): Add name
17451         field.
17452         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17453
17454 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
17455
17456         PR target/65161
17457         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17458         reordering for selective scheduling.
17459
17460 2015-02-26  Terry Guo  <terry.guo@arm.com>
17461
17462         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17463         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17464         (arm_arch_no_volatile_ce): Declare new global variable.
17465         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17466         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17467         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17468         (TARGET_NO_VOLATILE_CE): New macro.
17469         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17470         volatile memory access in IT block
17471
17472 2015-02-25  Kai Tietz  <ktietz@redhat.com>
17473
17474         PR tree-optimization/61917
17475         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17476         that reduc_def_stmt is null.
17477
17478 2015-02-25  Martin Liska  <mliska@suse.cz>
17479
17480         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17481         hard register variables.
17482
17483 2015-02-25  Kai Tietz  <ktietz@redhat.com>
17484
17485         PR target/64212
17486         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17487         (symtab::noninterposable_alias): Likewise.
17488
17489 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
17490
17491         PR target/65167
17492         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17493         bounds registers.
17494         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17495
17496 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
17497
17498         PR target/64997
17499         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17500         as split condition; force split via '#' in output pattern.
17501
17502 2015-02-25  Richard Biener  <rguenther@suse.de>
17503             Kai Tietz  <ktietz@redhat.com>
17504
17505         PR tree-optimization/61917
17506         * tree-vect-loop.c (vectorizable_reduction): Allow
17507         vect_internal_def without reduction to exit graceful.
17508
17509 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17510
17511         PR target/65196
17512         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17513         only with NONDEBUG_INSN_P.
17514
17515 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17516
17517         Use variadic macros with avr-log.c.
17518
17519         * config/avr/avr-protos.h (avr_vdump): New prototype.
17520         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17521         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17522         * config/avr/avr-log.c: Adjust comments.
17523         (avr_vdump): New function.
17524         (avr_vadump): Pass caller as 2nd argument instead of format string.
17525         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17526         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17527
17528 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
17529
17530         PR lto/64374
17531         * target.def (target_option_stream_in): New target hook.
17532         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17533         targetm.target_option.post_stream_in if non-NULL.
17534         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17535         * doc/tm.texi: Updated.
17536         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17537         function.
17538         (TARGET_OPTION_POST_STREAM_IN): Redefine.
17539
17540 2015-02-24  Jeff Law  <law@redhat.com>
17541
17542         PR target/65117
17543         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17544         of operand 0 and operand 2.
17545         (zero_cost_loop_end, loop_end): Similarly.
17546
17547 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
17548
17549         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17550         CXX_MEM_STAT_INFO.
17551
17552 2015-02-24  DJ Delorie  <dj@redhat.com>
17553
17554         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17555         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17556         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17557         instead of hardcoding SImode.
17558
17559 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
17560
17561         * omp-low.c (create_omp_child_function): Tag entrypoint
17562         functions with a special attribute.
17563
17564 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17565
17566         PR target/65058
17567         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17568
17569 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
17570
17571         PR rtl-optimization/65123
17572         * lra-remat.c (operand_to_remat): Check hard regs in insn
17573         definition too.
17574
17575 2015-02-24  Nick Clifton  <nickc@redhat.com>
17576
17577         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17578         to the assembler.
17579
17580 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
17581
17582         PR libgomp/64625
17583         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17584         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17585         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17586         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17587         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17588         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17589         (BUILT_IN_GOACC_PARALLEL): Specify as
17590         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17591         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17592         * builtin-types.def
17593         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17594         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17595         Remove function types.
17596         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17597         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17598         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17599         New function types.
17600
17601 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
17602
17603         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17604
17605 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
17606
17607         PR tree-optimization/65170
17608         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17609         if val[1] < 0, clear also val[2] and return 3.
17610
17611 2015-02-24  Alan Modra  <amodra@gmail.com>
17612
17613         PR target/65172
17614         * config/rs6000/rs6000.c (get_memref_parts): Only return true
17615         when *base is a reg.  Handle nested plus addresses.  Simplify
17616         pre_modify test.
17617
17618 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
17619
17620         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17621         use natural alignment when optimizing for size.
17622
17623 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17624
17625         PR target/65153
17626         * config/sh/sh.md (movsicc_true+3): Remove peephole.
17627         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17628         * config/sh/sh.c (replace_n_hard_rtx): Remove.
17629
17630 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
17631
17632         PR fortran/63427
17633         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17634         too big for a wide_int.  Implement missing wrapping operation.
17635
17636 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
17637
17638         PR target/65163
17639         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17640         instead of const_int 4294901760.
17641
17642 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
17643
17644         * config/avr/t-avr: Fix typo in comment.
17645
17646 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
17647
17648         * doc/rtl.texi (fma): Clarify documentation.
17649
17650 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
17651
17652         PR debug/58123
17653         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17654         over input_location.
17655
17656 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17657
17658         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17659         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17660         restrict alignments to absolute_biggest_alignment.
17661         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17662         Define.
17663         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17664         * doc/tm.texi: Regenerate.
17665         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17666
17667 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
17668
17669         PR target/64172
17670         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17671
17672 2015-02-20  Richard Biener  <rguenther@suse.de>
17673
17674         PR tree-optimization/65136
17675         * tree-ssa-propagate.c: Include cfgloop.h.
17676         (replace_phi_args_in): Avoid replacing loop latch edge PHI
17677         arguments with constants.
17678
17679 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
17680             Martin Liska  <mliska@suse.cz>
17681
17682         PR target/63892
17683         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17684         don't try to create_thunk if stdarg_p.  If
17685         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17686         redirect_callers if possible.
17687         (sem_item_optimizer::execute): Call unregister_hooks here...
17688         (ipa_icf_driver): ... instead of here.
17689
17690 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17691
17692         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17693         Mark operand 0 as earlyclobber in 2nd alternative.
17694         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17695         Write negated shift amount into QI lowpart operand 0 and use it
17696         in the shift step.
17697         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17698
17699 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17700
17701         * cgraph.h (clone_function_name_1): Declare.
17702         * cgraphclones.c (clone_function_name_1): New function.
17703         (clone_function_name): Use it.
17704         * lto-partition.c: Include "stringpool.h".
17705         (must_not_rename, maybe_rewrite_identifier)
17706         (validize_symbol_for_target): New static functions.
17707         (privatize_symbol_name): Use must_not_rename.
17708         (promote_symbol): Call validize_symbol_for_target.
17709         (lto_promote_cross_file_statics): Likewise.
17710         (lto_promote_statics_nonwpa): Likewise.
17711
17712 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
17713
17714         PR target/64452
17715         * config/avr/avr.md (pushhi_insn): New insn.
17716         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17717
17718 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17719             Jakub Jelinek  <jakub@redhat.com>
17720
17721         * tree-streamer.c (preload_common_nodes): Don't preload
17722         TI_VA_LIST* for offloading.
17723         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17724         in_lto_p.
17725
17726 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
17727
17728         * config/pa/pa.c (pa_emit_move_sequence): Always force
17729         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
17730         note on insn.
17731
17732         * config/pa/pa.c (pa_reloc_rw_mask): New function.
17733         (TARGET_ASM_RELOC_RW_MASK): Define.
17734         (pa_cannot_force_const_mem): Revert previous change.
17735
17736 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
17737             Jan Hubicka  <hubicka@ucw.cz>
17738
17739         PR ipa/65028
17740         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17741         across jump functions.
17742
17743 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
17744
17745         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17746
17747 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
17748
17749         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17750
17751 2015-02-19  Richard Henderson  <rth@redhat.com>
17752
17753         PR middle-end/65074
17754         * varasm.c (default_binds_local_p_2): Don't test node->definition;
17755         test DECL_EXTERNAL independent of symtab_node.
17756
17757 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
17758
17759         PR lto/65012
17760         * varpool.c (varpool_node::get_constructor): Return early
17761         if this->lto_file_data is NULL.
17762
17763 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17764
17765         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17766         (rank_for_schedule_debug): Update.
17767         (ready_sort): Make static.  Move sorting logic to ...
17768         (ready_sort_debug, ready_sort_real): New static functions.
17769         (schedule_block): Sort both debug insns and real insns in preparation
17770         for ready list trimming.  Improve debug output.
17771         * sched-int.h (ready_sort): Remove global declaration.
17772
17773 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
17774
17775         * ipa-icf.c (sem_function::equals_private): Adjust.
17776         (sem_function::bb_dict_test): Take a vec<int> * instead of
17777         auto_vec<int>.
17778         * ipa-icf.h (bb_dict_test): Likewise.
17779
17780 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17781
17782         PR gcov-profile/64634
17783         * tree-eh.c (frob_into_branch_around): Fix up typos
17784         in function comment.
17785         (lower_catch): Put eh_seq resulting from EH lowering of
17786         the cleanup sequence after the cleanup rather than before it.
17787
17788 2015-02-18  Tom de Vries  <tom@codesourcery.com>
17789
17790         * common.opt (fstdarg-opt): New option.
17791         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17792         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17793         (@item -fstdarg-opt): New item.
17794
17795 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17796
17797         PR target/65064
17798         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17799         for common symbols.
17800
17801 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17802
17803         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17804         insn-modes.h.
17805         (ALL_HOST_OBJS): Add mkoffload.o.
17806         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17807
17808 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
17809
17810         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17811         (compare_virtual_tables): Be smarter about skipping typeinfos;
17812         do sane output on virtual table table mismatch.
17813         (warn_odr): Be ready for forward declarations of enums;
17814         output sane info on base mismatch and virtual table mismatch.
17815         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17816         when only one type is polymorphic.
17817         (get_odr_type): Fix hashtable corruption.
17818         (dump_odr_type): Dump mangled names.
17819
17820 2015-02-18  Richard Biener  <rguenther@suse.de>
17821
17822         PR tree-optimization/65063
17823         * tree-predcom.c (determine_unroll_factor): Return 1 if we
17824         have replaced looparound PHIs.
17825
17826 2015-02-18  Martin Liska  <mliska@suse.cz>
17827
17828         * lto-streamer.c (lto_streamer_init): Encapsulate
17829         streamer_check_handled_ts_structures with checking macro.
17830
17831 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17832
17833         PR ipa/65087
17834         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17835         section if !implicit_section.
17836         (cgraph_node::create_version_clone_with_body): Likewise.
17837         * trans-mem.c (ipa_tm_create_version): Likewise.
17838
17839 2015-02-18  Richard Biener  <rguenther@suse.de>
17840
17841         PR tree-optimization/62217
17842         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17843         into BIVs.
17844
17845 2015-02-18  Marek Polacek  <polacek@redhat.com>
17846
17847         PR sanitizer/65081
17848         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17849         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17850         is in range [-16K, -1].  Don't issue run-time error if
17851         (ptr > ptr + offset).
17852
17853 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
17854
17855         * doc/install.texi (nvptx-*-none): New section.
17856         * doc/invoke.texi (Nvidia PTX Options): Likewise.
17857         * config/nvptx/nvptx.opt: Update.
17858
17859         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17860         (access_check): New functions, copied from
17861         config/i386/intelmic-mkoffload.c.
17862         (main): For non-installed testing, look in all COMPILER_PATHs for
17863         GCC_INSTALL_NAME.
17864
17865         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17866
17867 2015-02-18  Andrew Pinski  <apinski@cavium.com>
17868             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17869
17870         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17871         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17872
17873 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17874
17875         * ipa-visibility.c (function_and_variable_visibility): Only
17876         check locality if node is not already local.
17877         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17878         call_for_symbol_and_aliases instead of
17879         call_for_symbol_thunks_and_aliases.
17880         (ipa_inline): Likewise.
17881         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17882         first walk aliases.
17883         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17884         call_for_symbol_and_aliases.
17885         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17886         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17887         (ipa_propagate_frequency): Update.
17888         (ipa_profile): Add opt_for_fn gueards.
17889
17890 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17891
17892         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17893         * doc/invoke.texi (SH options): Document it.
17894         * config/sh/sh.c (sh_insn_length_adjustment): Check
17895         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17896
17897 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
17898
17899         * common.opt (fipa-cp-alignment): New.
17900         * ipa-cp.c (ipcp_store_alignment_results): Check
17901         flag_ipa_cp_alignment.
17902         * opts.c (default_options_table): Enable -fipa-cp-alignment for
17903         -O2.
17904         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17905         * doc/invoke.texi: Document -fipa-cp-alignment.
17906
17907 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17908
17909         PR target/64793
17910         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17911         to nil.  Adjust comments.
17912
17913 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17914
17915         * ipa-visibility.c (function_and_variable_visibility): Only
17916         check locality if node is not already local.
17917         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17918         call_for_symbol_and_aliases instead of
17919         call_for_symbol_thunks_and_aliases.
17920         (ipa_inline): Likewise.
17921         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17922         first walk aliases.
17923         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17924         call_for_symbol_and_aliases.
17925         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17926         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17927         (ipa_propagate_frequency): Update.
17928         (ipa_profile): Add opt_for_fn guards.
17929
17930 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
17931
17932         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17933         skipping of "strange" tokens.
17934
17935 2015-02-17  Jeff Law  <law@redhat.com>
17936
17937         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
17938         obsolete comment.
17939
17940 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
17941
17942         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
17943         as forcing a HARD_DEP between instructions, thereby
17944         disallowing rewriting to break dependencies.
17945
17946 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
17947
17948         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
17949         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
17950         variables in boundary that have no inlitalizer encoded and are
17951         not aliases.
17952         * varasm.c (default_binds_local_p_2): External definitions do not
17953         count as definitions here.
17954
17955 2015-02-16  Jeff Law  <law@redhat.com>
17956
17957         PR tree-optimization/64823
17958         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
17959         statements.
17960         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17961         threading through blocks with PHIs, but no statements.
17962         (thread_through_normal_block): Distinguish between blocks where
17963         we did not process all the statements and blocks with no statements.
17964
17965 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
17966             James Greenhalgh  <james.greenhalgh@arm.com>
17967
17968         PR ipa/64963
17969         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
17970         section if not linkonce.  Fix up formatting.
17971         (cgraph_node::create_version_clone_with_body): Copy section.
17972         * trans-mem.c (ipa_tm_create_version): Likewise.
17973
17974 2015-02-16  Richard Biener  <rguenther@suse.de>
17975
17976         PR tree-optimization/65077
17977         * tree-ssa-structalias.c (get_constraint_for_1): Handle
17978         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
17979         (find_func_aliases): Allow float values to carry pointers again.
17980
17981 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17982
17983         * doc/install.texi (Specific): Reorder targets list to put
17984         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
17985         from the top menu.
17986
17987 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
17988             David Edelsohn  <dje.gcc@gmail.com>
17989
17990         PR target/65058
17991         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
17992         mapping class to external variable or function reference.
17993         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
17994         mapping class.
17995
17996 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
17997
17998         PR target/53348
17999         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18000         ASM_WEAKEN_DECL if defined.
18001
18002 2015-02-16  Richard Biener  <rguenther@suse.de>
18003
18004         PR lto/65015
18005         * varasm.c (default_file_start): For LTO produced units
18006         emit <artificial> as file directive.
18007
18008 2015-02-16  Richard Biener  <rguenther@suse.de>
18009
18010         PR tree-optimization/63593
18011         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18012         stmts and releasing SSA names until...
18013         (execute_pred_commoning): ... after processing all chains.
18014
18015 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
18016
18017         PR ipa/65059
18018         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18019         external functions.
18020
18021 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
18022
18023         * doc/bugreport.texi: Adjust section titles throughout the file
18024         to use "Title Case".
18025         * doc/extend.texi: Likewise.
18026         * doc/gcov.texi: Likewise.
18027         * doc/implement-c.texi: Likewise.
18028         * doc/implement-cxx.texi: Likewise.
18029         * doc/invoke.texi: Likewise.
18030         * doc/objc.texi: Likewise.
18031         * doc/standards.texi: Likewise.
18032         * doc/trouble.texi: Likewise.
18033
18034 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
18035
18036         * cgraph.h (symtab_node::has_aliases_p): Simplify.
18037         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18038         * tree.c (lookup_binfo_at_offset): Make static.
18039         (get_binfo_at_offset): Do not shadow offset; add explanatory
18040         comment.
18041
18042 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
18043
18044         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18045         for all floading point loads and stores except those using a register
18046         index address.
18047         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18048         to a register.
18049
18050 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18051
18052         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18053         (do_estimate_growth_1): Record if any uninlinable edge was seen.
18054         (estimate_growth): Handle uninlinable edges correctly.
18055         (check_callers): New.
18056         (growth_likely_positive): Handle aliases correctly.
18057
18058 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18059
18060         * ipa-chkp.c: Use iterate_direct_aliases.
18061         * symtab.c (resolution_used_from_other_file_p): Move inline.
18062         (symtab_node::create_reference): Fix formating.
18063         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18064         (symtab_node::iterate_reference): Move inline.
18065         (symtab_node::iterate_referring): Move inline.
18066         (symtab_node::iterate_direct_aliases): Move inline.
18067         (symtab_node::used_from_object_file_p_worker): Inline into ...
18068         (symtab_node::used_from_object_file_p): ... this one; move inline.
18069         (symtab_node::call_for_symbol_and_aliases): Move inline;
18070         use iterate_direct_aliases.
18071         (symtab_node::call_for_symbol_and_aliases_1): New method.
18072         (cgraph_node::call_for_symbol_and_aliases): Move inline;
18073         use iterate_direct_aliases.
18074         (cgraph_node::call_for_symbol_and_aliases_1): New method.
18075         (varpool_node::call_for_node_and_aliases): Rename to ...
18076         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18077         use iterate_direct_aliases.
18078         (varpool_node::call_for_symbol_and_aliases_1): New method.
18079         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18080         (ipa_discover_readonly_nonaddressable_var): Update.
18081         * ipa-devirt.c: Fix formating.
18082         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18083         Move inline.
18084         (cgraph_node::call_for_symbol_and_aliases): Move inline.
18085         (cgraph_node::call_for_symbol_and_aliases_1): New function..
18086         * cgraph.h (used_from_object_file_p_worker): Remove.
18087         (resolution_used_from_other_file_p): Move inline.
18088         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18089         (symtab_node::iterate_reference): Move inline.
18090         (symtab_node::iterate_referring): Move inline.
18091         (symtab_node::iterate_direct_aliases): Move inline.
18092         (symtab_node::used_from_object_file_p_worker): Inline into ...
18093         (symtab_node::used_from_object_file_p): Move inline.
18094         * tree-emutls.c (ipa_lower_emutls): Update.
18095         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18096         (varpool_node::call_for_node_and_aliases): Remove.
18097
18098 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
18099
18100         PR tree-optimization/62209
18101         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18102         op == range->exp, insert seq and gimplified code after labels
18103         instead of after the phi.
18104
18105 2015-02-13  Jeff Law  <law@redhat.com>
18106
18107         PR bootstrap/65060
18108         Revert my change for tree-optimization/64823.
18109
18110 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18111
18112         PR tree-optimization/65053
18113         * tree-ssa-phiopt.c (value_replacement): When moving assign before
18114         cond, either reset VR on lhs or set it to phi result VR.
18115
18116 2015-02-13  Jeff Law  <law@redhat.com>
18117
18118         PR tree-optimization/64823
18119         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18120         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18121         threading through blocks with PHIs, but no statements.
18122         (thread_through_normal_block): Distinguish between blocks where
18123         we did not process all the statements and blocks with no statements.
18124
18125         PR rtl-optimization/47477
18126         * match.pd (convert (plus/minus (convert @0) (convert @1): New
18127         simplifier to narrow arithmetic.
18128
18129 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
18130
18131         PR ipa/65028
18132         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18133         polymorphic call info when type is not known to be preserved.
18134
18135 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
18136
18137         PR ipa/65028
18138         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18139         (inline_call): Use it.
18140
18141 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
18142
18143         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18144         GOMP_DEVICE_NVIDIA_PTX.
18145
18146 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18147
18148         PR ipa/65034
18149         * stmt.c (emit_case_nodes): Use void_type_node instead of
18150         NULL_TREE as LABEL_DECL type.
18151
18152 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
18153
18154         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18155         constraints.
18156         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18157         symbolic references to data to be forced to constant memory on the
18158         SOM target.
18159
18160 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18161
18162         PR tree-optimization/65002
18163         * tree-cfg.c (pass_data_fixup_cfg): Don't update
18164         SSA on start.
18165         * tree-sra.c (some_callers_have_no_vuse_p): New.
18166         (ipa_early_sra): Reject functions whose callers
18167         assume function is read only.
18168
18169 2015-02-13  Richard Biener  <rguenther@suse.de>
18170
18171         PR lto/65015
18172         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18173         for LTO produced CUs.
18174
18175 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
18176
18177         PR tree-optimization/64705
18178         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18179         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18180         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18181         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18182         expand_simple_operations.
18183
18184 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18185             Richard Henderson  <rth@redhat.com>
18186
18187         PR rtl/32219
18188         * cgraphunit.c (cgraph_node::finalize_function): Set definition
18189         before notice_global_symbol.
18190         (varpool_node::finalize_decl): Likewise.
18191         * varasm.c (default_binds_local_p_2): Rename from
18192         default_binds_local_p_1, add weak_dominate argument.  Use direct
18193         returns instead of assigning to local variable.  Unify varpool and
18194         cgraph paths via symtab_node.  Reject undef weak variables before
18195         testing visibility.  Reorder tests for simplicity.
18196         (default_binds_local_p): Use default_binds_local_p_2.
18197         (default_binds_local_p_1): Likewise.
18198         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18199         via symtab_node.
18200         (default_elf_asm_output_external): Emit visibility when specified.
18201
18202 2015-02-13  Alan Modra  <amodra@gmail.com>
18203
18204         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18205         code setting up r11 for out-of-line fp restore.
18206
18207 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18208
18209         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18210         (muser-mode): Likewise.
18211
18212 2015-02-13  Alan Modra  <amodra@gmail.com>
18213
18214         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18215         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18216
18217 2015-02-12  David Howells  <dhowells@redhat.com>
18218
18219         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18220         warning.
18221         * tree-ssa-uninit.c (dump_predicates): Likewise.
18222         * opts.c (print_filtered_help): Likewise.
18223
18224 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18225
18226         * dwarf2out.c (output_die): Use "%s", name instead of name to
18227         avoid -Wformat-security warning.
18228
18229         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18230         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18231         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18232         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18233
18234 2015-02-12  Jason Merrill  <jason@redhat.com>
18235
18236         * common.opt (-flifetime-dse): New.
18237
18238 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18239
18240         PR sanitizer/65019
18241         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18242
18243         PR tree-optimization/65014
18244         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18245         use original second operand of arg0 or arg1 instead of
18246         that adjusted by STRIP_NOPS.
18247
18248 2015-02-11  Jeff Law  <law@redhat.com>
18249
18250         PR target/63347
18251         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18252         that needs to be queued, just queue it for a single cycle.
18253
18254 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
18255
18256         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18257         bodies of thunks; comment on why.
18258         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18259         symbols are extern.
18260
18261 2015-02-11  Richard Henderson  <rth@redhat.com>
18262
18263         PR sanitize/65000
18264         * tree-eh.c (mark_reachable_handlers): Mark source and destination
18265         regions of __builtin_eh_copy_values.
18266
18267 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
18268
18269         PR middle-end/65003
18270         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18271         ultimate alias is MEM with SYMBOL_REF satisfying
18272         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
18273         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18274
18275 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
18276
18277         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18278         "diagnostic-core.h".
18279         (main): Initialize progname, and call diagnostic_initialize.
18280
18281         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18282         instead of __OPENMP_TARGET__.
18283
18284         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18285         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18286         hard-coding PTX_ID.
18287
18288 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
18289
18290         * doc/sourcebuild.texi (pie_enabled): Document.
18291
18292 2015-02-11  Martin Liska  <mliska@suse.cz>
18293
18294         PR ipa/64813
18295         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18296         a return value for call to a function that is noreturn.
18297
18298 2015-02-11  Richard Biener  <rguenther@suse.de>
18299
18300         PR lto/65015
18301         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18302         and -fresolution.
18303
18304 2015-02-11  Andrew Pinski  <apinski@cavium.com>
18305
18306         PR target/64893
18307         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18308         Change the first argument type to size_type_node and add another
18309         size_type_node.
18310         (aarch64_simd_expand_builtin): Handle the new argument to
18311         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18312         print an out when the first two arguments are not
18313         nonzero integer constants.
18314         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18315         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18316
18317 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
18318
18319         PR target/61925
18320         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18321         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18322         (ix86_set_current_function): Rewritten.
18323         (ix86_add_new_builtins): Temporarily clear current_target_pragma
18324         when creating builtin fndecls.
18325
18326 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18327
18328         PR ipa/65005
18329         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18330         function.
18331         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18332         have no comdat group.
18333         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18334         (lto_output_varpool_node): Always output alias info.
18335         (output_refs): Output refs of boundary aliases, too.
18336         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18337         (output_symtab): Output call eges in thunks in boundary.
18338         (get_alias_symbol): Remove.
18339         (input_node, input_varpool_node): Do not special case weakrefs.
18340         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18341         alias and thunks targets in the boundary; do not take removed symbols
18342         from their comdat groups.
18343         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18344         (cgraph_node::global_info): Remove.
18345         (cgraph_node::rtl_info): Look through aliases and thunks.
18346         * cgrpah.h (global_info): Remove.
18347         (non_local_p): Remove.
18348
18349 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18350             Sandra Loosemore  <sandra@codesourcery.com>
18351
18352         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18353         to inline asm.  List dialects in proper order.
18354
18355 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18356             Sandra Loosemore  <sandra@codesourcery.com>
18357
18358         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18359
18360 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
18361
18362         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18363         modified) reference to Solaris.
18364
18365 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
18366
18367         * doc/extend.texi (Extended Asm): Fix typos.
18368
18369 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
18370
18371         PR sanitizer/65004
18372         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18373
18374 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
18375
18376         PR target/64661
18377         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18378         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18379         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18380         * config/sh/constraints.md (Ara, Add): New constraints.
18381         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18382         predicates.
18383         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18384         atomic_mem_operand_0.  Don't use force_reg on the memory address.
18385         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18386         Sra constraint.  Convert to insn_and_split.  Add workaround for
18387         PR 64974.
18388         (atomic_compare_and_swap<mode>_hard): Copy to
18389         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
18390         Use atomic_mem_operand_0 predicate.
18391         (atomic_compare_and_swap<mode>_soft_gusa,
18392         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18393         AraAdd constraints.
18394         (atomic_compare_and_swap<mode>_soft_tcb,
18395         atomic_compare_and_swap<mode>_soft_imask,
18396         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18397         atomic_mem_operand_0 predicate and SraSdd constraints.
18398         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18399         constraint.
18400         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18401         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
18402         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18403         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
18404         force_reg on the memory address.
18405         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18406         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18407         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18408         atomic_mem_operand_1 predicate and Sra constraint.
18409         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18410         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
18411         Use atomic_mem_operand_1 predicate.
18412         (atomic_<fetchop_name><mode>_hard): Copy to
18413         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
18414         Use atomic_mem_operand_1 predicate.
18415         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18416         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
18417         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
18418         insn_and_split.  Use atomic_mem_operand_1 predicate.
18419         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18420         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
18421         Use atomic_mem_operand_1 predicate.
18422         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18423         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
18424         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18425         in generated insn with original mem operand before emitting the insn.
18426         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18427         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18428         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18429         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18430         Use atomic_mem_operand_1 predicate and AraAdd constraints.
18431         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18432         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18433         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18434         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18435         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18436         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18437         atomic_not_fetch<mode>_soft_tcb,
18438         atomic_<fetchop_name>_fetch<mode>_soft_imask,
18439         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18440         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18441         Use atomic_mem_operand_1 predicate and SraSdd constraints.
18442
18443 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
18444
18445         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18446         and 3 earlyclobber operands.
18447
18448 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18449
18450         * common.opt (fstack-reuse): Mark as optimization.
18451
18452 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
18453
18454         PR ipa/64982
18455         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18456
18457 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
18458
18459         PR tree-optimization/64326
18460         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18461
18462 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
18463
18464         PR gcov-profile/61889
18465         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18466
18467 2015-02-10  Richard Biener  <rguenther@suse.de>
18468
18469         PR tree-optimization/64995
18470         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18471         value we use is final.
18472         (visit_reference_op_store): Always valueize op.
18473         (visit_use): Properly valueize vuses.
18474
18475 2015-02-10  Richard Biener  <rguenther@suse.de>
18476
18477         PR tree-optimization/64909
18478         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18479         pass a scalar-stmt count estimate to the cost model.
18480         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18481
18482 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
18483
18484         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18485         enabled by default together with var-tracking.
18486
18487 2015-02-10  Nick Clifton  <nickc@redhat.com>
18488
18489         * config/rl78/rl78.c: Remove DIV attribute code accidentally
18490         included in previous rl78 commit.
18491
18492 2015-02-10  Richard Biener  <rguenther@suse.de>
18493
18494         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18495         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18496         return the bitpack.
18497
18498 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
18499
18500         PR gcov-profile/61889
18501         * config.in: regenerate.
18502         * configure.in: Likewise.
18503         * configure.ac: Check for ftw.h.
18504         * gcov-tool.c: Check for ftw.h before using nftw.
18505
18506 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
18507
18508         PR lto/64076
18509         * ipa-visibility.c (update_visibility_by_resolution_info): Only
18510         assert when not in lto mode.
18511
18512 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18513
18514         * ira-color.c (setup_left_conflict_sizes_p): Simplify
18515         initialization/assignment of conflict_size.
18516
18517 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
18518
18519         PR ipa/64978
18520         * ipa-cp.c (gather_caller_stats): Skip thunks.
18521         (propagate_constants_topo): Skip aliases.
18522
18523 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18524
18525         PR target/64761
18526         * config/sh/sh.c (sh_option_override): Don't change
18527         -freorder-blocks-and-partition to -freorder-blocks even when
18528         unwinding is enabled.
18529         (sh_can_follow_jump): Return false if the followee jump is
18530         a crossing jump when -freorder-blocks-and-partition is specified.
18531         * config/sh/sh.md (*jump_compact_crossing): New insn.
18532
18533 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
18534             Kaz Kojima  <kkojima@gcc.gnu.org>
18535
18536         PR target/64761
18537         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18538         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18539         (sh_can_redirect_branch): Rename to ...
18540         (sh_can_follow_jump): ... this.  Constify argument types.
18541         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18542         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18543         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18544         * doc/tm.texi: Regenerate.
18545
18546 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18547
18548         PR sanitizer/64981
18549         * builtins.c (expand_builtin): Call targetm.expand_builtin
18550         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18551
18552 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18553
18554         PR ipa/61548
18555         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18556
18557 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18558
18559         PR ipa/63566
18560         * ipa-icf.c (set_local): New function.
18561         (sem_function::merge): Use it.
18562
18563 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18564
18565         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18566         (add_type_duplicate): Fix comparison of BINFOs.
18567
18568 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18569
18570         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18571         on getting VOID pointer.
18572
18573 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18574
18575         PR target/64979
18576         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18577         va_list escapes.
18578
18579 2015-02-09  Richard Biener  <rguenther@suse.de>
18580
18581         * genmatch.c (replace_id): Copy expr_type.
18582
18583 2015-02-09  Richard Biener  <rguenther@suse.de>
18584
18585         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18586         (streamer_write_tree_bitfields): Declare.
18587         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18588         properly unpack padding.
18589         (unpack_value_fields): Inline ...
18590         (streamer_read_tree_bitfields): ... here.
18591         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18592         and properly add padding bits.
18593         (streamer_pack_tree_bitfields): Fold into ...
18594         (streamer_write_tree_bitfields): ... this new function,
18595         exposing the bitpack object.
18596         * lto-streamer-out.c (lto_write_tree_1): Call
18597         streamer_write_tree_bitfields.
18598
18599 2015-02-09  Richard Biener  <rguenther@suse.de>
18600
18601         PR tree-optimization/54000
18602         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18603         (struct ivopts_data): Add loop_loc member.
18604         (tree_ssa_iv_optimize_loop): Dump loop location.
18605         (create_new_ivs): Likewise, also dump number of IVs generated.
18606
18607 2015-02-09  Martin Liska  <mliska@suse.cz>
18608
18609         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18610         just if not yet registered.
18611         (ipa_icf_generate_summary): Register callgraph hooks.
18612
18613 2015-02-08  Andrew Pinski  <apinski@cavium.com>
18614
18615         * config/aarch64/aarch64.c (gty_dummy): Delete.
18616
18617 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18618
18619         PR ipa/63566
18620         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18621         (cgraph_node::local_p): Remove thunk related FIXME.
18622
18623 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18624
18625         PR ipa/63566
18626         * i386.c (ix86_function_regparm): Look through aliases to see if callee
18627         is local and optimized.
18628         (ix86_function_sseregparm): Likewise; also use target's SSE math
18629         settings; error out instead of silently generating wrong code
18630         on mismatches.
18631         (init_cumulative_args): Look through aliases.
18632
18633 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18634
18635         PR ipa/63566
18636         * ipa-split.c (execute_split_functions): Split if function has aliases.
18637
18638 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18639
18640         PR ipa/63566
18641         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18642         aliases before trying to expand it.
18643         (cgraph_node::expand_thunk): Fix formating.
18644
18645 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
18646
18647         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18648         (Using Assembly Language with C): Expand introduction.
18649         (Basic Asm): Copy-edit.  Add more information about uses of
18650         basic asm.
18651         (Extended Asm): Copy-edit.  Document new escape syntax and
18652         %l[label] syntax.
18653         (Global Reg Vars): Copy-edit.
18654         (Local Reg Vars): Likewise.
18655
18656 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
18657
18658         PR debug/2714
18659         PR bootstrap/64256
18660         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18661         (DBX_CONTIN_CHAR): Define.
18662
18663 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
18664             Brian Rzycki  <b.rzycki@samsung.com>
18665
18666         PR tree-optimization/64878
18667         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18668         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18669         Stop recursion at loop phi nodes after having visited a loop phi node.
18670
18671 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18672
18673         * toplev.c (process_options): Change flag_ipa_ra before creating
18674         optimization_{default,current}_node.
18675
18676         PR ipa/64896
18677         * cgraphunit.c (cgraph_node::expand_thunk): If
18678         restype is not is_gimple_reg_type nor the thunk_fndecl
18679         returns aggregate_value_p, set restmp to a temporary variable
18680         instead of resdecl.
18681
18682 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
18683
18684         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18685
18686 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18687
18688         PR target/64205
18689         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18690         add a general secondary reload handler for SDmode, unless we have
18691         both read/write support for SDmode.
18692
18693 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18694
18695         PR middle-end/64937
18696         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18697         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18698         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18699         1 before, push it to abstract_vec.
18700         (dwarf2out_abstract_function): Adjust caller.  Don't call
18701         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18702         DECL_ABSTRACT_P flags for all abstract_vec elts.
18703
18704 2015-02-06  Renlin Li  <renlin.li@arm.com>
18705
18706         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18707         complex gimple.
18708         * tree-ssa.c (execute_update_addresses_taken): Likewise.
18709
18710 2015-02-06  Jeff Law  <law@redhat.com>
18711
18712         PR target/64889
18713         * config/h8300/h8300.c (push): New argument "in_prologue".
18714         Pass "in_prologue" along to "F".
18715         (h8300_push_pop): Corresponding changes.
18716         (h8300_expand_prologue): Likewise.
18717         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
18718
18719 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18720
18721         PR rtl-optimization/64957
18722         PR debug/64817
18723         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18724         IOR rather than for AND.
18725
18726 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
18727
18728         PR target/62631
18729         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18730         of shift-add and (add + shift) operations.  Rename local variable.
18731
18732 2015-02-05  Jeff Law  <law@redhat.com>
18733
18734         PR target/17306
18735         * config/h8300/constraints.md (U): Correctly dectect
18736         "eightbit_data" memory addresses.
18737         * config/h8300/h8300.c (eightbit_constant_address_p): Also
18738         handle (const (plus (symbol_ref (x)))) where x is declared
18739         as an 8-bit data memory address.
18740         * config/h8300/h8300.md (call, call_value): Correctly detect
18741         "funcvec" functions.
18742
18743         PR target/43264
18744         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18745         24 to 28 bits for the H8/300.
18746
18747 2015-02-06  Alan Modra  <amodra@gmail.com>
18748
18749         PR target/64876
18750         * config/rs6000/rs6000.c (chain_already_loaded): New function.
18751         (rs6000_call_aix): Use it.
18752
18753 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
18754
18755         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18756         check.
18757
18758 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18759
18760         * config/h8300/constraints.md ("U" constraint): Use strict
18761         variant of REG_OK_FOR_BASE_P after reload has started.
18762
18763 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
18764
18765         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18766         define to zero if !TARGET_NEON.
18767         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18768
18769 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18770             Trevor Saunders  <tsaunders@mozilla.com>
18771
18772         PR ipa/61548
18773         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18774
18775 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18776
18777         PR ipa/61548
18778         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18779         when removing varpool nodes.
18780
18781 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18782
18783         PR ipa/61548
18784         * varpool.c (varpool_node::remove): Fix order of variables.
18785
18786 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18787
18788         PR ipa/64686
18789         * ipa-inline.c (inline_small_functions): Fix ordering issue between
18790         speculation resolution and key updates.
18791
18792 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18793
18794         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18795         about not letting any speculative edges unupdated.
18796
18797 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18798
18799         PR gcov/64123
18800         * gcov-io.c (gcov_var): Export.
18801
18802 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18803
18804         PR middle-end/64922
18805         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18806         edges that become speculative.
18807
18808 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18809
18810         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18811         or DW_LANG_Fortran08.
18812         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18813         DW_LANG_Fortran08.
18814         (gen_compile_unit_die): Handle "GNU Fortran2003" and
18815         "GNU Fortran2008" language strings.
18816         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18817         * langhooks.h (lang_GNU_Fortran): New prototype.
18818         * langhooks.c (lang_GNU_Fortran): New function.
18819         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18820         lang_GNU_Fortran.
18821
18822 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18823
18824         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18825         (RTX_OK_FOR_OLO10_P): Likewise.
18826
18827 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18828
18829         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18830
18831 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18832
18833         PR middle-end/64922
18834         * gimple.c: Include gimple-ssa.h.
18835         (maybe_remove_unused_call_args): New function.
18836         * gimple.h (maybe_remove_unused_call_args): Declare.
18837         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18838         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18839         * gimple-fold.c (gimple_fold_call): Likewise.
18840
18841 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18842
18843         PR rtl-optimization/64905
18844         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18845         pointer alignment if it isn't needed.
18846
18847 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18848
18849         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18850         cortex-a72.cortex-a53.
18851         * config/aarch64/aarch64-tune.md: Regenerate.
18852         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18853
18854 2015-02-04  Nick Clifton  <nickc@redhat.com>
18855
18856         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18857         inside a MEM.
18858
18859 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18860
18861         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18862         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18863         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18864         of DEF_BUILTIN.
18865         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18866         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18867         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18868         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18869         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18870         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18871         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18872         * tree-core.h (enum built_in_function): In between
18873         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18874         for builtins that use DEF_BUILTIN_CHKP macro.
18875
18876 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
18877
18878         PR debug/64817
18879         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18880         operands for tcc_comparison exprs.  Fix typos.
18881
18882         PR debug/64817
18883         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18884         of two XORs that have an intervening AND or IOR.
18885
18886         PR debug/64817
18887         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18888         simplification of XOR of AND to not allocate new rtx before
18889         committing to a simplification.
18890
18891 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18892
18893         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18894         manual swaps in all peepholes.
18895
18896 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18897
18898         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18899         of manual swapping implementation.
18900         (aarch64_expand_vec_perm_const_1): Likewise.
18901
18902 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
18903
18904         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18905         (generic_addrcost_table): Remove NAMED_PARAM.
18906         (cortexa57_addrcost_table): Likewise.
18907         (xgene1_addrcost_table): Likewise.
18908         (generic_regmove_table): Likewise.
18909         (cortexa53_regmove_table): Likewise.
18910         (xgene1_regmove_table): Likewise.
18911         (generic_vector_table): Likewise.
18912         (cortexa57_vector_table): Likewise.
18913         (xgene1_vector_table): Likewise.
18914         (generic_tunings): Likewise.
18915         (cortexa53_tunings): Likewise.
18916         (cortexa57_tunings): Likewise.
18917         (xgene1_tunings): Likewise.
18918
18919 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18920
18921         * config/arm/arm-cores.def: Add cortex-a72 and
18922         cortex-a72.cortex-a53.
18923         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18924         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18925         * config/arm/arm-tune.md: Regenerate.
18926         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18927         "cortex-a72.cortex-a53".
18928         * doc/invoke.texi (ARM Options/-mtune): Likewise.
18929
18930 2015-02-04  Nick Clifton  <nickc@redhat.com>
18931
18932         PR target/64408
18933         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18934         of accepted codes.
18935         (nonimmediate_di_operand): Likewise.
18936
18937         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
18938         prefixes of known F5 using MSP430 MCUs.
18939
18940 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18941
18942         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
18943         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
18944         instead of __builtin_sqrt.
18945
18946 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
18947
18948         * varasm.c (do_assemble_alias): Follow transparent alias
18949         chain for target.
18950         (default_assemble_visibility): Follow transparent alias
18951         chain for decl name.
18952
18953 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18954
18955         PR middle-end/62103
18956         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
18957         to compute size of referenced value in the constant case.
18958
18959 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
18960
18961         PR rtl-optimization/64756
18962         * cse.c (invalidate_dest): New function.
18963         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
18964         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
18965         invalidate and do not record it.
18966
18967 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
18968
18969         PR target/64660
18970         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
18971         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
18972         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
18973         atomic_nand<mode>_soft_tcb): New insns.
18974         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
18975         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
18976         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
18977         Split into atomic_not_fetchsi_hard if operands[0] is unused.
18978         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
18979         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18980         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
18981         atomic_not<mode>_hard if operands[0] is unused.
18982         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
18983         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
18984         if operands[0] is unused.
18985         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
18986         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
18987         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
18988         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18989         unused.
18990         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
18991         into atomic_not<mode>_soft_tcb if operands[0] is unused.
18992         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
18993         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
18994         if operands[0] is unused.
18995         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
18996         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
18997         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
18998         atomic_nand_fetchsi_hard if operands[0] is unused.
18999         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
19000         atomic_nand<mode>_hard if operands[0] is unused.
19001         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
19002         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19003         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
19004         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19005         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
19006         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19007         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19008         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19009         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
19010         atomic_not<mode>_hard if operands[0] is unused.
19011         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19012         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19013         unused.
19014         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19015         into atomic_not<mode>_soft_tcb if operands[0] is unused.
19016         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
19017         atomic_nand<mode>_hard if operands[0] is unused.
19018         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19019         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19020
19021 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
19022
19023         PR jit/64810
19024         * Makefile.in (GCC_OBJS): Add gcc-main.o.
19025         * gcc-main.c: New file, containing "main" taken from gcc.c.
19026         * gcc.c (do_self_spec): Free decoded_options.
19027         (class driver): Move declaration to gcc.h.
19028         (main): Move declaration and implementation to new file
19029         gcc-main.c.
19030         (driver_get_configure_time_options): New function.
19031         * gcc.h (class driver): Move this declaration here, from
19032         gcc.c.
19033         (driver_get_configure_time_options): New declaration.
19034
19035 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
19036
19037         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19038         cross-module inlining.
19039         * cgraph.h (cgraph_node): Add flag merged.
19040         * ipa-icf.c (sem_function::merge): Maintain it.
19041
19042 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
19043
19044         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19045         instead of OBJECT_P.
19046
19047 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
19048
19049         PR target/62631
19050         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19051         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19052         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19053         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19054
19055 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
19056
19057         PR other/63504
19058         * combine.c (reg_n_sets_max): New variable.
19059         (can_change_dest_mode, reg_nonzero_bits_for_combine,
19060         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19061         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19062         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19063         (rest_of_handle_combine): Initialize reg_n_sets_max.
19064
19065 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
19066
19067         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19068         if some always_inline was inlined, apply changes before inlining
19069         heuristically.
19070
19071 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
19072
19073         PR jit/64810
19074         * config/arm/arm.c (arm_option_override): Set
19075         arm_selected_arch/cpu/tune to NULL on entry.
19076
19077 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
19078             Andrew Pinski  <pinskia@gcc.gnu.org>
19079             Jakub Jelinek  <jakub@gcc.gnu.org>
19080
19081         PR target/64231
19082         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19083         integer typing for small model. Use IN_RANGE.
19084
19085 2015-02-02  Richard Biener  <rguenther@suse.de>
19086
19087         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19088         * tree-vrp.c (vrp_valueize_1): Likewise.
19089
19090 2015-02-02  Alan Modra  <amodra@gmail.com>
19091
19092         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19093         than mem for toc_restore.
19094         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19095         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19096         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19097
19098 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
19099
19100         PR target/64047
19101         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19102         explicit default options.
19103
19104 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
19105
19106         PR ipa/64872
19107         * ipa-utils.c (ipa_merge_profiles): Add release argument.
19108         * ipa-icf.c (sem_function::merge): Do not release body when merging.
19109         * ipa-utils.h (ipa_merge_profiles): Update prototype.
19110
19111 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
19112
19113         PR debug/64817
19114         * cfgexpand.c (deep_ter_debug_map): New variable.
19115         (avoid_deep_ter_for_debug): New function.
19116         (expand_debug_expr): If TERed SSA_NAME is in
19117         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19118         instead of trying to expand SSA_NAME's def stmt.
19119         (expand_debug_locations): When expanding debug bind
19120         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19121         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19122         value.
19123         (pass_expand::execute): Call avoid_deep_ter_for_debug on
19124         all debug bind stmts.  Delete deep_ter_debug_map after
19125         expand_debug_location if non-NULL and clear it.
19126
19127 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
19128
19129         PR target/64851
19130         * config/sh/sync.md (atomic_fetch_notsi_hard,
19131         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19132         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19133         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19134         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19135         atomic_not_fetch<mode>_soft_imask): New insns.
19136
19137 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19138
19139         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19140         (rank_for_schedule_debug): Split from ...
19141         (rank_for_schedule): ... this.
19142         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19143         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19144
19145 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19146
19147         * doc/md.texi (Machine Constraints): Alphabetize table by target.
19148         * doc/extend.texi (x86 Variable Attributes): Move section to
19149         correct alphabetization after renaming.
19150         (x86 Type Attributes): Likewise.
19151         (Target Builtins): Re-alphabetize menu.
19152         (x86 Built-in Functions): Move section to correct alphabetization
19153         after renaming.
19154         (x86 transactional memory intrinsics): Likewise.
19155         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19156         and x86 Windows Options in table and menu.
19157         (x86 Options): Move section to correct alphabetization after
19158         renaming.
19159         (x86 Windows Options): Likewise.
19160
19161 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19162
19163         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19164         preferred names of the architecture and its 32- and 64-bit
19165         variants.
19166         * doc/invoke.texi: Likewise.
19167         * doc/md.texi: Likewise.
19168
19169 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19170
19171         PR target/64882
19172         * config/i386/predicates.md (address_no_seg_operand): Reject
19173         non-CONST_INT_P operands in invalid mode.
19174
19175 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19176
19177         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19178         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
19179         * config/i386/predicates.md (address_no_seg_operand): Call
19180         address_operand with VOIDmode.
19181         (vsib_address_operand): Ditto.
19182         (address_mpx_no_base_operand): Ditto.
19183         (address_mpx_no_index_operand): Ditto.
19184
19185 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19186
19187         PR target/64688
19188         * lra-constraints.c (original_subreg_reg_mode): New.
19189         (simplify_operand_subreg): Try to simplify subreg of const.  Use
19190         original_subreg_reg_mode for it.
19191         (swap_operands): Update original_subreg_reg_mode.
19192         (curr_insn_transform): Set up original_subreg_reg_mode.
19193
19194 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19195
19196         PR target/64617
19197         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19198         function.
19199         (process_alt_operands): Use it.
19200         (curr_insn_transform): Check the optional reload pseudo class is
19201         ok for the mode.
19202
19203 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
19204
19205         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19206         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19207         prototype.
19208         * toplev.h (init_asm_output): Update comment on use of
19209         UNKNOWN_LOCATION with fatal_error.
19210         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19211         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19212         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19213         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19214         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19215         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19216         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19217         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19218         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19219         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19220         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19221         fatal_error changed to pass input_location as first argument.
19222
19223 2015-01-30  Martin Liska  <mliska@suse.cz>
19224
19225         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19226         in #pragma GCC diagnostic guards.
19227
19228 2015-01-30  Richard Biener  <rguenther@suse.de>
19229
19230         PR tree-optimization/64829
19231         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19232         not add a widening conversion pattern but hand off extra
19233         widenings to callers.
19234         (vect_recog_widen_mult_pattern): Handle extra widening produced
19235         by vect_handle_widen_op_by_const.
19236         (vect_recog_widen_shift_pattern): Likewise.
19237         (vect_pattern_recog_1): Remove excess vertical space in dumping.
19238         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19239         (vect_init_vector_1): Likewise.
19240         (vect_get_vec_def_for_operand): Likewise.
19241         (vect_finish_stmt_generation): Likewise.
19242         (vectorizable_load): Likewise.
19243         (vect_analyze_stmt): Likewise.
19244         (vect_is_simple_use): Likewise.
19245
19246 2015-01-29  Jeff Law  <law@redhat.com>
19247
19248         * combine.c (try_combine): Fix typo in comment.
19249
19250 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
19251
19252         PR target/64580
19253         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19254         (rs6000_stack_info): Add assert.
19255         (rs6000_output_savres_externs): New function, split off from...
19256         (rs6000_output_function_prologue): ... here.  Do not call it for
19257         thunks.
19258
19259 2015-01-29  Jeff Law  <law@redhat.com>
19260
19261         PR target/15184
19262         * combine.c (try_combine): If I0 is a memory load and I3 a store
19263         to a related address, increase the "goodness" of doing a 4-insn
19264         combination with I0-I3.
19265         (make_field_assignment): Handle SUBREGs in the ior+and case.
19266
19267 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
19268
19269         PR tree-optimization/64746
19270         * tree-if-conv.c (mask_exists): New function.
19271         (predicate_mem_writes): Save created mask with given size for further
19272         use.
19273         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19274         (ifcvt_repair_bool_pattern): Collect all statements that are root
19275         of bool pattern and use iterative algorithm to remove multiple uses
19276         of predicates, display number of required iterations.
19277
19278 2015-01-29  Richard Biener  <rguenther@suse.de>
19279
19280         PR tree-optimization/64853
19281         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19282         stmt will get simulated again.
19283         * tree-ssa-ccp.c (valueize_op_1): Likewise.
19284
19285 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19286
19287         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19288         return_in_pc.  Remove redundant assignments.
19289         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19290         (arm_expand_epilogue): Don't compare boolean with true in if condition.
19291
19292 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
19293
19294         * config/i386/i386.c (ix86_mode_after): Make static.
19295
19296 2015-01-29  Richard Biener  <rguenther@suse.de>
19297
19298         PR tree-optimization/64844
19299         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19300         dump cost model analysis.
19301         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19302         Do not register adjusted load/store costs here.
19303
19304 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19305             Uros Bizjak  <ubizjak@gmail.com>
19306
19307         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19308         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19309         using x86_use_pseudo_pic_reg.
19310         * config/i386/i386.c (ix86_conditional_register_usage): Remove
19311         support for fixed PIC register.
19312         (ix86_use_pseudo_pic_reg): Not static any more.
19313
19314 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19315
19316         PR middle-end/64805
19317         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19318         to avoid error in cgraph node verification.
19319
19320 2015-01-29  Marek Polacek  <polacek@redhat.com>
19321
19322         * doc/standards.texi: Reflect that the default for C is gnu11.
19323
19324 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19325
19326         PR target/64761
19327         * reorg.c (switch_text_sections_between_p): New function.
19328         (relax_delay_slots): Call it when testing if the jump insn
19329         is removable.  Use targetm.can_follow_jump when testing if
19330         the conditional branch can follow an unconditional jump.
19331
19332 2015-01-27  Caroline Tice  <cmtice@google.com>
19333
19334         Committing VTV Cywin/Ming patch for Patrick Wollgast
19335         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19336         if -fvtable-verify=preinit/std is used.
19337         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19338         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19339         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19340         if -fvtable-verify=preinit/std is used.
19341         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19342         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19343         if -fvtable-verify=preinit/std is used.
19344         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19345         * config/i386/mingw32.h (LIB_SPEC): Likewise.
19346         * varasm.c (assemble_variable): Add code to properly set the comdat
19347         section and name for the .vtable_map_vars section in case the
19348         target is PE or COFF.
19349
19350 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
19351
19352         PR ipa/64801
19353         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19354         make sane BB profile.
19355         (cgraph_node::expand_thunk): Make sane BB profile.
19356         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19357         * cgraph.h (init_lowered_empty_function): Update prototype.
19358         * config/i386/i386.c (make_resolver_func): Update call.
19359         * predict.c (gate): Disable branch prediction pass if
19360         profile is already there.
19361
19362 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
19363
19364         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19365         * opth-gen.awk: Likewise.
19366         * common.opt: Mark flag_fp_contract_mode as Optimization.
19367
19368 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19369
19370         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19371         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19372
19373 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
19374
19375         PR target/64659
19376         * config/sh/predicates.md (atomic_arith_operand,
19377         atomic_logical_operand): Remove.
19378         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19379         (atomic_arith_operand_0): New predicate.
19380         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19381         Use atomic_arith_operand_0 for input values.
19382         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19383         atomic_compare_and_swap<mode>_soft_gusa,
19384         atomic_compare_and_swap<mode>_soft_tcb,
19385         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19386         arith_reg_operand instead of register_operand.
19387         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
19388         atomic_arith_operand_0 for newval input.
19389         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19390         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19391         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19392         arith_reg_operand instead of register_operand.
19393         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19394         fetchop_predicate_1, fetchop_constraint_1_llcs,
19395         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19396         fetchop_constraint_1_imask): New code iterator attributes.
19397         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19398         register_operand.  Use fetchop_predicate_1.
19399         (atomic_fetch_<fetchop_name>si_hard,
19400         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19401         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19402         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19403         and arith_reg_operand instead of register_operand.  Use
19404         fetchop_predicate_1, fetchop_constraint_1_gusa.
19405         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19406         and arith_reg_operand instead of register_operand.  Use
19407         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
19408         to allow R0 usage.
19409         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19410         and arith_reg_operand instead of register_operand.  Use
19411         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
19412         to allow R0 usage.
19413         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19414         register_operand.  Use atomic_logical_operand_1.
19415         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19416         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19417         arith_reg_operand instead of register_operand.
19418         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19419         Use arith_reg_dest and arith_reg_operand instead of register_operand.
19420         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
19421         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19422         register_operand.  Use fetchop_predicate_1.
19423         (atomic_<fetchop_name>_fetchsi_hard,
19424         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19425         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19426         fetchop_constraint_1_llcs.
19427         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19428         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19429         fetchop_constraint_1_gusa.
19430         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19431         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19432         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
19433         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19434         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
19435         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
19436         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19437         register_operand.  Use atomic_logical_operand_1.
19438         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19439         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19440         arith_reg_operand instead of register_operand.
19441         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19442         arith_reg_operand instead of register_operand.  Use logical_operand
19443         and K08.  Adjust asm sequence to allow R0 usage.
19444         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19445         arith_reg_operand instead of register_operand.  Use logical_operand
19446         and K08.
19447
19448 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
19449
19450         PR other/63504
19451         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19452         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19453         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19454         only get_full_len HOST_WIDE_INTs from get_val () array rather than
19455         all bits in *val_wide.
19456
19457 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
19458
19459         * varpool.c (tls_model_names): Fix names.
19460         (varpool_node::dump): Dump tls- prefix for tls models.
19461
19462 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
19463             Bernd Schmidt  <bernds@codesourcery.com>
19464             Nathan Sidwell  <nathan@codesourcery.com>
19465
19466         * config/nvptx/mkoffload.c: New file.
19467         * config/nvptx/t-nvptx: Add build rules for it.
19468         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19469         (extra_programs): Add mkoffload.
19470         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19471         function.
19472         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19473
19474 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
19475
19476         PR middle-end/64809
19477         * cfgexpand.c (reorder_operands): Skip debug gimples.
19478
19479 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
19480
19481         PR tree-optimization/64277
19482         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19483         range info when possible to refine estimation.
19484
19485 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19486
19487         PR tree-optimization/64718
19488         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19489         be a 16bit unsigned integer when n->range is 16.
19490         (bswap_replace): Convert src to that type if necessary for all bswap
19491         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
19492         set in pass_optimize_bswap::execute ().
19493
19494 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
19495
19496         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19497         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19498         integer and floating point variants.
19499         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19500
19501 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
19502
19503         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19504         for all vector modes.
19505
19506 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
19507
19508         PR bootstrap/64612
19509         * doc/sourcebuild.texi (comdat_group): Document.
19510
19511 2015-01-28  Terry Guo  <terry.guo@arm.com>
19512
19513         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19514
19515 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
19516
19517         * toplev.c (print_version): Add param "show_global_state", and
19518         only print GGC and plugin information if it is true.
19519         (init_asm_output): Pass in "true" for the new param when calling
19520         print_version.
19521         (process_options): Likewise.
19522         (toplev::main): Likewise.
19523         * toplev.h (print_version): Add new param to decl.
19524
19525 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19526
19527         PR ipa/60871
19528         PR ipa/64139
19529         * tree.c (lookup_binfo_at_offset): New function.
19530         (get_binfo_at_offset): Use it.
19531
19532 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19533
19534         PR ipa/64282
19535         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19536         on vtable being vtable.
19537
19538 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19539
19540         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19541         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19542         -mhotpatch= option.
19543         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19544         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
19545         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19546         Renamed.
19547         (s390_hotpatch_trampoline_halfwords_max): Renamed.
19548         (s390_hotpatch_hw_max): New name.
19549         (s390_hotpatch_trampoline_halfwords): Renamed.
19550         (s390_hotpatch_hw_before_label): New name.
19551         (get_hotpatch_attribute): Removed.
19552         (s390_hotpatch_hw_after_label): New name.
19553         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19554         attribute.
19555         (s390_attribute_table): Ditto.
19556         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19557         (s390_function_num_hotpatch_hw): New name.
19558         Remove special handling of inline functions and hotpatching.
19559         Return number of nops before and after the function label.
19560         (s390_can_inline_p): Removed.
19561         (s390_asm_output_function_label): Emit a configurable number of nops
19562         after the function label.
19563         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19564         (TARGET_CAN_INLINE_P) Removed.
19565         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19566
19567 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19568             Jiong Wang  <jiong.wang@arm.com>
19569
19570         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19571         of scratch reg.
19572         (cb<optab><mode>1): Likewise.
19573         * config/aarch64/iterators.md (bcond): New define_code_attr.
19574
19575 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19576
19577         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19578         memory accesses.
19579
19580 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19581
19582         * config/s390/s390.c (s390_register_move_cost): Increase costs for
19583         FPR->GPR moves.
19584
19585 2015-01-27  Richard Biener  <rguenther@suse.de>
19586
19587         * tree-vrp.c (update_value_range): Intersect the range with
19588         old recorded SSA name range information.
19589
19590 2015-01-27  Nick Clifton  <nickc@redhat.com>
19591
19592         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19593         BC, DE and HL registers directly, not via AX.
19594         When decrementing the stack pointer by a large amount, transfer SP
19595         into AX and perform the subtraction there.
19596         (rl78_expand_epilogue): Perform the inverse of the above
19597         enhancements.
19598
19599 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19600
19601         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19602
19603 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19604             Yury Gribov  <y.gribov@samsung.com>
19605
19606         PR ubsan/64741
19607         * ubsan.c (ubsan_source_location): Refactor code.
19608         (ubsan_type_descriptor): Update type size. Refactor code.
19609
19610 2015-01-27  Richard Biener  <rguenther@suse.de>
19611
19612         PR tree-optimization/56273
19613         PR tree-optimization/59124
19614         PR tree-optimization/64277
19615         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19616         from the first VRP pass.
19617
19618 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19619
19620         PR ipa/64776
19621         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19622         handle the first argument in the same loop as all the other arguments.
19623
19624         PR rtl-optimization/61058
19625         * jump.c (cleanup_barriers): Update basic block boundaries
19626         if BLOCK_FOR_INSN is non-NULL on PREV.
19627
19628 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19629
19630         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19631         bounds narrowing, already instrumented calls and calls to
19632         not instrumentable functions.
19633
19634 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19635
19636         PR tree-optimization/64807
19637         * wide-int.cc (wi::divmod_internal): Clear
19638         b_dividend[dividend_blocks_needed].
19639
19640 2015-01-26  DJ Delorie  <dj@redhat.com>
19641
19642         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19643         volatile memory references.
19644
19645 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
19646
19647         PR target/49263
19648         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19649         remove_insn.
19650         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19651         shifts if it already fits into K08.
19652
19653 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19654
19655         PR ipa/64730
19656         * ipa-inline.c (inline_small_functions): Print "unknown" even
19657         if edge->call_stmt is non-NULL, but has builtins or unknown
19658         location.
19659
19660         PR middle-end/64421
19661         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19662         with asterisk, skip the first character.
19663
19664 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19665
19666         PR target/64806
19667         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19668         order change.
19669
19670 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
19671
19672         PR target/64795
19673         * config/i386/i386.md (*movdi_internal): Also check operand 0
19674         to determine TYPE_LEA operand.
19675         (*movsi_internal): Ditto.
19676
19677 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19678
19679         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19680         OPTION_MASK_QUAD_MEMORY_ATOMIC.
19681
19682 2015-01-26  Renlin Li  <renlin.li@arm.com>
19683
19684         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19685         the comment.
19686         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19687         for higher part.
19688
19689 2015-01-26  Richard Biener  <rguenther@suse.de>
19690
19691         PR middle-end/64764
19692         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19693         combining two BIT_AND_EXPR predicates.
19694
19695 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19696
19697         PR bootstrap/64754
19698         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19699
19700 2015-01-26  Terry Guo  <terry.guo@arm.com>
19701
19702         * config/arm/arm.c (arm_file_start): Update the assignment of
19703         Tag_ABI_HardFP_use.
19704
19705 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
19706
19707         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19708         pipeline model.
19709         config/arm/arm.md: Include the new Cortex-A57 model.
19710         (generic_sched): Don't use generic_sched when tuning for
19711         Cortex-A57.
19712
19713 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
19714             Uros Bizjak  <ubizjak@gmail.com>
19715
19716         * config/i386/i386.c (get_builtin_code_for_version): Add
19717         support for BMI and BMI2 multiversion functions.
19718
19719 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19720
19721         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19722         (extract_bit_field): Likewise.
19723         (extract_low_bits): Likewise.
19724         (expand_mult): Likewise.
19725         (expand_mult_highpart_adjust): Likewise.
19726
19727 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19728
19729         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19730         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19731         * config/i386/i386.c (processor_model): Add
19732         M_INTEL_COREI7_BROADWELL.
19733         (arch_names_table): Add "broadwell".
19734
19735 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
19736
19737         PR target/49263
19738         PR target/53987
19739         PR target/64345
19740         PR target/59533
19741         PR target/52933
19742         PR target/54236
19743         PR target/51244
19744         * config/sh/sh-protos.h
19745         (sh_extending_set_of_reg::can_use_as_unextended_reg,
19746         sh_extending_set_of_reg::use_as_unextended_reg,
19747         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19748         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19749         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19750         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19751         (sh_treg_insns): New class.
19752         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19753         (scope_counter): New class.
19754         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19755         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19756         sh_extending_set_of_reg::can_use_as_unextended_reg,
19757         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19758         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19759         sh_split_treg_set_expr): New functions.
19760         (addsubcosts): Handle treg_set_expr.
19761         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19762         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19763         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19764         (sh_insn_operands_modified_between_p): Make non-static.
19765         * config/sh/predicates.md (zero_extend_movu_operand): Allow
19766         simple_mem_operand in addition to displacement_mem_operand.
19767         (zero_extend_operand): Don't allow zero_extend_movu_operand.
19768         (treg_set_expr, treg_set_expr_not_const01,
19769         arith_reg_or_treg_set_expr): New predicates.
19770         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19771         arith_or_int_operand instead of logical_operand.  Convert to
19772         insn_and_split.  Try to optimize constant operand in splitter.
19773         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
19774         (*tstqi_t_zero): Delete.
19775         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19776         (tstsi_t_and_not): Delete.
19777         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19778         Convert to insn_and_split.
19779         (unnamed split, tstsi_t_zero_extract_xor,
19780         tstsi_t_zero_extract_subreg_xor_little,
19781         tstsi_t_zero_extract_subreg_xor_big): Delete.
19782         (*tstsi_t_shift_mask): New insn_and_split.
19783         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19784         to recombine with surrounding insns when splitting.
19785         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19786         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19787         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19788         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19789         (*cbranch_div0s: Delete.
19790         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19791         Try to recombine with surrounding insns when splitting.  Add operand
19792         order variants.
19793         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19794         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19795         *addc_r_r_msb, *addc_2r_msb): Delete.
19796         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
19797         order variant.
19798         (*addc_negreg_t): New insn_and_split.
19799         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19800         Try to recombine with surrounding insns when splitting.
19801         Add operand order variants.
19802         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19803         insn_and_split patterns.
19804         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
19805         surrounding insns when splitting.
19806         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19807         (*rotcl): Likewise.  Add zero_extract variant.
19808         (*ashrsi2_31): New insn_and_split.
19809         (*negc): Convert to insn_and_split.  Use treg_set_expr.
19810         (*zero_extend<mode>si2_disp_mem): Update comment.
19811         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19812         condition.
19813         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
19814         with surrounding insns when splitting.
19815         (any_treg_expr_to_reg): New insn_and_split.
19816         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19817         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19818         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19819         *zero_extract_2): New single bit zero extract patterns.
19820         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19821         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19822         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19823         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19824         set destination.
19825         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19826         register_operand for set source.
19827
19828 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
19829
19830         * i386.opt (prefetch_sse): New targetsave.
19831         * i386.c (ix86_function_specific_save): Save prefetch_sse.
19832         (ix86_function_specific_restore): Restore prefetch_sse and initialize
19833         ix86_cost/ix86_tune_cost.
19834
19835 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19836
19837         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19838         Support the JIT by using 0 as the language type.
19839
19840 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
19841
19842         PR target/64317
19843         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
19844         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19845         (mark_regno_live, process_bb_lives): Pass new parameter value to
19846         make_hard_regno_born.
19847
19848 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19849
19850         PR rtl-optimization/63637
19851         PR rtl-optimization/60663
19852         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19853         if elt->cost is MAX_COST for ASM_OPERANDS.
19854         (find_sets_in_insn): Fix up comment typo.
19855         (cse_insn): Don't set src_volatile for all non-volatile
19856         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19857         or with "memory" clobber.  Set elt->cost to MAX_COST
19858         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
19859         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19860
19861 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19862
19863         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19864         alternative 1.
19865
19866 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19867
19868         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19869         libgcc/config/i386/elf-lib.h.
19870
19871 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19872
19873         PR driver/64737
19874         * gcc.c (print_configuration): Don't print a blank line at the end
19875         here...
19876         (run_attempt): ... but here unstead.
19877
19878         PR middle-end/64734
19879         * omp-low.c (scan_sharing_clauses): Don't ignore
19880         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19881         on target data/update constructs.
19882
19883 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19884
19885         PR target/50928
19886         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19887         (DEBUG_RELOAD): Removed define.
19888         (m32c_limit_reload_class): Enable traces with if DEBUG0.
19889         (m32c_function_arg): Added a type cast.
19890         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19891         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19892         * config/m32c/bitops.md (andqi3_16): Likewise.
19893         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19894         (push_a01_l): Likewise.
19895
19896 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19897
19898         PR jit/64721
19899         * main.c (main): Construct toplev instances with init_signals=true.
19900         * toplev.c (general_init): Add param "init_signals", and use it to
19901         conditionalize the calls to signal and host_hooks.extra_signals.
19902         (toplev::toplev): Add param "init_signals".
19903         (toplev::main): When invoking general_init, pass m_init_signals
19904         to control whether signal-handlers are installed.
19905         * toplev.h (toplev::toplev): Add param "init_signals".
19906         (toplev::m_init_signals): New field.
19907
19908 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19909
19910         PR jit/64722
19911         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19912         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19913         latter may be affected by the former (e.g. on i686).
19914
19915 2015-01-23  Martin Liska  <mliska@suse.cz>
19916
19917         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19918         false positive during profiledbootstrap.
19919
19920 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19921
19922         PR libgomp/64672
19923         * lto-opts.c (lto_write_options): Output non-explicit conservative
19924         -fno-openacc.
19925         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19926         (append_compiler_options): Pass -fopenacc through.
19927
19928 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19929
19930         PR libgomp/64707
19931         * lto-opts.c (lto_write_options): Output non-explicit conservative
19932         -fno-openmp.
19933         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19934         (append_compiler_options): Pass -fopenmp through.
19935
19936 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19937
19938         PR debug/64511
19939         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
19940         GTY markup.
19941
19942         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
19943         * diagnostic.def (DK_ICE_NOBT): New kind.
19944         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
19945         like DK_ICE, but never print backtrace.
19946         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
19947         (internal_error_no_backtrace): New function.
19948         * gcc.c (execute): Use internal_error_no_backtrace instead of
19949         internal_error.
19950
19951 2015-01-22  Jeff Law  <law@redhat.com>
19952
19953         PR target/52076
19954         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
19955         improve code density for small immediate to memory case.
19956         (insv): Better handle bitfield assignments when the field is
19957         being set to all ones.
19958         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
19959         operand predicate.
19960
19961 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19962             Jakub Jelinek  <jakub@redhat.com>
19963
19964         PR middle-end/64729
19965         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
19966         for !TARGET_LIBC_PROVIDES_SSP version and
19967         -fstack-protector-{all,strong,explicit} otherwise.
19968         * config/freebsd.h (LINK_SSP_SPEC): Handle
19969         -fstack-protector-{strong,explicit}.
19970
19971 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
19972             H.J. Lu  <hongjiu.lu@intel.com>
19973
19974         PR ipa/64694
19975         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
19976         heap.
19977
19978 2015-01-22  Wei Mi  <wmi@google.com>
19979
19980         PR rtl-optimization/64557
19981         * dse.c (record_store): Call get_addr for mem_addr.
19982         (check_mem_read_rtx): Likewise.
19983
19984 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19985
19986         * fold-const.c (const_binop): Add early return for non-tcc_binary.
19987
19988 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
19989
19990         * toplev.c (init_local_tick): Process the failure when read
19991         fails for random_seed.
19992
19993         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
19994         'pretty_name' to avoid memory overflow.
19995
19996 2015-01-22  Richard Biener  <rguenther@suse.de>
19997
19998         PR middle-end/64728
19999         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20000         abnormal coalescing on undefined SSA names.
20001
20002 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
20003
20004         PR target/64688
20005         PR target/64477
20006         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20007         for alternative 3.
20008         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20009
20010 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
20011
20012         PR middle-end/63325
20013         * fold-const.c (fold_checksum_tree): Don't include value of
20014         expr->decl_with_vis.symtab_node in the checksum.
20015
20016 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20017
20018         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20019
20020 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20021
20022         PR driver/64690
20023         * gcc.c (insert_comments): New function.
20024         (try_generate_repro): Call it.
20025         (append_text): Removed.
20026
20027 2015-01-22  Richard Biener  <rguenther@suse.de>
20028
20029         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20030         with IL incompatible options.  Properly honor user optimize
20031         attributes.
20032
20033 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
20034
20035         PR rtl-optimization/64682
20036         * combine.c (distribute_notes): When moving a death note for
20037         a register that is set in the new I2, make sure to put it
20038         before that new I2.
20039
20040 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
20041
20042         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20043         not TARGET_DEFAULT.
20044
20045 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
20046
20047         PR debug/64511
20048         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20049         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20050         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20051
20052         PR sanitizer/64706
20053         * doc/invoke.texi (-fsanitize=vptr): Document.
20054
20055         PR rtl-optimization/62078
20056         * dse.c: Include cfgcleanup.h.
20057         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20058         anything call purge_all_dead_edges and cleanup_cfg at the end
20059         of the pass.
20060
20061 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
20062
20063         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20064         edges.
20065
20066 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20067
20068         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20069         decl attribute.
20070
20071 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20072             Tejas Belagod <Tejas.Belagod@arm.com>
20073
20074         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20075         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20076         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20077         Removed.
20078
20079 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20080             Tejas Belagod <Tejas.Belagod@arm.com>
20081
20082         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20083         (aarch64_reverse_mask): New decls.
20084         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20085         (insn_count): New mode_attr.
20086         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20087         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20088         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20089         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20090         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20091         (aarch64_simd_st4): New patterns.
20092         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20093         (aarch64_reverse_mask): New functions.
20094
20095 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
20096
20097         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20098         Declare.
20099         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20100         addressing modes for BE.
20101         (aarch64_print_operand): Add 'R' specifier.
20102         (aarch64_simd_disambiguate_copy): Delete.
20103         (aarch64_simd_emit_reg_reg_move): New function.
20104         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20105         in define_splits for structural moves.
20106         (mov<mode>): Use less restrictive predicates.
20107         (*aarch64_mov<mode>): Simplify and only allow for LE.
20108         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20109
20110 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
20111
20112         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20113
20114 2015-01-21  Richard Henderson  <rth@redhat.com>
20115
20116         PR target/64669
20117         * ccmp.c (used_in_cond_stmt_p): Remove.
20118         (expand_ccmp_expr): Don't use it.
20119
20120 2015-01-21  Nick Clifton  <nickc@redhat.com>
20121
20122         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20123         PARALLELs.
20124
20125 2015-01-21  Richard Biener  <rguenther@suse.de>
20126
20127         PR middle-end/64313
20128         * tree-core.h (builtin_info, builtin_info_type): Turn from
20129         an object with two arrays into an array of an object with
20130         decl and two flags, implicit_p and declared_p.
20131         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20132         set_builtin_decl, set_builtin_decl_implicit_p,
20133         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20134         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20135         * builtins.c (builtin_info): Adjust.
20136         * gimplify.c (gimplify_addr_expr): References to builtins
20137         that have been declared by the user makes them eligible for
20138         use by the compiler.  Call set_builtin_decl_implicit_p on them.
20139
20140 2015-01-20  Jeff Law  <law@redhat.com>
20141
20142         PR target/59946
20143         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20144         allow pc-relative addresses in operand predicates or constraints.
20145
20146 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
20147
20148         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20149         neon on aarch32 processors for stringops.
20150
20151 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20152
20153         PR ipa/63576
20154         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20155
20156 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20157
20158         PR lto/45375
20159         * ipa-inline.c: Include lto-streamer.h
20160         (report_inline_failed_reason): Output source file differences and
20161         flags on optimization/target node mismatch.
20162         (can_inline_edge_p): Consider caller to be the outer inline function;
20163         be less restrictive about matching opimize and optimize_size attributes.
20164         (inline_account_function_p): Break out from ...
20165         (inline_small_functions): ... here.
20166         * ipa-inline-transform.c (clone_inlined_nodes): Use
20167         inline_account_function_p.
20168         (inline_call): Use optimize attribution; use inline_account_function_p.
20169         (inline_transform): Use opt_for_fn.
20170         * ipa-inline.h (inline_account_function_p): Declare.
20171
20172 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
20173
20174         PR debug/64663
20175         * dwarf2out.c (decl_piece_node): Don't put bitsize into
20176         mode if bitsize <= 0.
20177         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20178         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20179         sizes and positions.
20180
20181 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
20182
20183         * config/nios2/nios2.c (nios2_asm_file_end): Implement
20184         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20185         needed.
20186         (TARGET_ASM_FILE_END): Define.
20187
20188 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20189
20190         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20191         (struct tune_params): Use the enum.
20192         * arm.c (arm_*_tune): Update.
20193         (arm_option_override): Update.
20194
20195 2015-01-20  Richard Biener  <rguenther@suse.de>
20196
20197         PR ipa/64684
20198         * ipa-reference.c (add_static_var): Inline ...
20199         (analyze_function): ... here after splitting out from ...
20200         (is_proper_for_analysis): ... this.
20201
20202 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
20203
20204         PR target/64149
20205         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20206         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20207         replace the conditional with it's true branch.
20208         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20209         (arm_lra_p): Remove.
20210
20211 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
20212
20213         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20214
20215 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20216
20217         * config/tilegx/mul-tables.c: Move symtab.h include after
20218         coretypes.h include.
20219         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20220         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20221         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20222         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20223         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20224
20225 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
20226
20227         PR bootstrap/64676
20228         Revert:
20229         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
20230
20231         PR rtl-optimization/64081
20232         * loop-iv.c (def_pred_latch_p): New function.
20233         (latch_dominating_def): Allow specific cases with non-single
20234         definitions.
20235         (iv_get_reaching_def): Likewise.
20236         (check_complex_exit_p): New function.
20237         (check_simple_exit): Use check_complex_exit_p to allow certain cases
20238         with exits not executing on any iteration.
20239
20240 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20241
20242         PR lto/45375
20243         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20244         to set branch cost.
20245
20246 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20247
20248         PR lto/45375
20249         * i386.c (gate): Check flag_expensive_optimizations and
20250         optimize_size.
20251         (ix86_option_override_internal): Drop optimize_size condition
20252         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20253         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20254         MASK_PREFER_AVX128.
20255         (ix86_avx256_split_vector_move_misalign,
20256         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20257         * sse.md (all uses of TARGET_PREFER_AVX128): Add
20258         optimize_insn_for_speed_p check.
20259
20260 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
20261
20262         * config/mips/mips.h (FP_ASM_SPEC): New define.
20263         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20264         instead.
20265
20266 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
20267
20268         PR target/53988
20269         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20270         nullptr for insn when reaching the first insn.
20271         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20272         (sh_insn_operands_modified_between_p): Add nullptr check.
20273         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
20274         sign extending mem load if the insn contains any UNSPEC or
20275         UNSPEC_VOLATILE.
20276
20277 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20278
20279         * params.def (inline-unit-growth): Drop to 15%.
20280         * invoke.texi (inline-unit-growth): Document change.
20281
20282 2015-01-19  Martin Liska  <mliska@suse.cz>
20283
20284         PR ipa/64668
20285         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20286         function for second argument of OBJ_TYPE_REF.
20287
20288 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20289
20290         PR ipa/64218
20291         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20292         whether function is an alias.
20293
20294 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20295
20296         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20297         cases.
20298
20299 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
20300
20301         PR rtl-optimization/64671
20302         * lra-remat.c (operand_to_remat): Don't consider jump and call
20303         insns.
20304
20305 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
20306
20307         PR target/59828
20308         * config/rs6000/default64.h: Include rs6000-cpus.def.
20309         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20310         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20311         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20312         and POWER8.
20313         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20314         POWER8.
20315         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20316         pseudo-op to specify assembler dialect.
20317
20318 2015-01-19  Martin Liska  <mliska@suse.cz>
20319
20320         PR ipa/64664
20321         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20322         Handle safe potentially removed nodes during filtering.
20323
20324 2015-01-19  Martin Liska  <mliska@suse.cz>
20325
20326         * doc/extend.texi (no_icf): Add new attribute description.
20327         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20328         where the pass attempts to merge a function with no_icf attribute.
20329
20330 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20331
20332         PR target/64532
20333         * doc/md.texi (ARM Options): Document register constraints.
20334
20335 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
20336             Andrew Pinski  <apinski@cavium.com>
20337
20338         PR target/64304
20339         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20340         (ashl<mode>3): Don't expand if operands[2] is not constant.
20341
20342 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20343
20344         PR target/64448
20345         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20346         Match xor-and-xor RTL pattern.
20347
20348 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
20349
20350         PR rtl-optimization/64081
20351         * loop-iv.c (def_pred_latch_p): New function.
20352         (latch_dominating_def): Allow specific cases with non-single
20353         definitions.
20354         (iv_get_reaching_def): Likewise.
20355         (check_complex_exit_p): New function.
20356         (check_simple_exit): Use check_complex_exit_p to allow certain cases
20357         with exits not executing on any iteration.
20358
20359 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
20360
20361         * common.opt (fgraphite): Fix a typo.
20362
20363 2015-01-19  Felix Yang  <felix.yang@huawei.com>
20364
20365         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20366         pattern.
20367         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20368         uminp, smax_nanp, smin_nanp): New builtins.
20369         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20370         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20371         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20372         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20373         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20374         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20375         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20376         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20377         vpminnms_f32): Rewrite using builtin functions.
20378
20379 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
20380
20381         PR libgomp/64625
20382         * omp-low.c (offload_symbol_decl): Remove variable.
20383         (get_offload_symbol_decl): Remove function.
20384         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20385         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20386         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20387         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20388         BUILT_IN_GOACC_UPDATE don't pass it at all.
20389
20390 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20391
20392         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20393         callers.
20394
20395 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20396
20397         * ipa-chkp.c (chkp_produce_thunks): Add early param
20398         to split thunks production into two passes.  Keep
20399         'always_inline' function bodies after the first pass.
20400         (pass_data_ipa_chkp_early_produce_thunks): New.
20401         (pass_ipa_chkp_early_produce_thunks): New.
20402         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20403         chkp_produce_thunks signature.
20404         (make_pass_ipa_chkp_early_produce_thunks): New.
20405         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20406         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20407         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20408
20409 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20410
20411         * cgraph.c (cgraph_node::dump): Dump profile flags.
20412
20413 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
20414
20415         PR target/64652
20416         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20417         reg appear first in the parallel.
20418
20419 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20420
20421         * ipa-reference.c (set_reference_optimization_summary,
20422         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20423         disabled.
20424         (ignore_module_statics): New static var.
20425         (propagate_bits): If ipa-reference is disabled, do not look into local
20426         properties.
20427         (analyze_function): Disable analysis when ipa_reference is disabled.
20428         (generate_summary): Do not dump when reference is disabled;
20429         collect vars accessed from functions with ipa-reference disabled.
20430         (get_read_write_all_from_node): When ipa-reference is disabled, use the
20431         node flags.
20432         (gate): Enable for LTO.
20433         (ignore_edge_p): New function.
20434         (propagate): Skip functions w/o ipa-reference analysis.
20435         * optc-save-gen.awk: Handle optimize_debug correctly.
20436         * opth-gen.awk: Likewise.
20437         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20438         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20439         fira-share-save-slots, fira-share-spill-slots,
20440         fmodulo-sched-allow-regmoves, fpartial-inlining,
20441         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20442         ftracer, ftree-parallelize-loops, fassociative-math,
20443         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20444         Optimization
20445         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20446         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20447         Optimization.
20448         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20449         Fix for IPA.
20450
20451 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
20452
20453         PR ipa/64378
20454         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20455         flag correctly.
20456         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20457
20458 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
20459
20460         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20461         Remove duplicate option listings.
20462
20463 2015-01-18  Felix Yang  <felix.yang@huawei.com>
20464
20465         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20466         (autofdo_source_profile::get_callsite_total_count,
20467         function_instance::get_function_instance_by_decl,
20468         string_table::get_index, string_table::get_index_by_decl,
20469         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20470         Fix comment typos. Reformatting and minor code rearrangement.
20471
20472 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20473
20474         * config/rs6000/rs6000.md (probe_stack): Delete.
20475         (probe_stack_address): New.
20476
20477 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20478
20479         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20480         to test for 32-bit ABIs, not !TARGET_POWERPC64.
20481
20482 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
20483
20484         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20485         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
20486         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
20487         snafu.
20488         (rs6000_libcall_value): Use the new function.
20489
20490 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
20491
20492         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20493
20494 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
20495
20496         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20497         implement a more precise life analysis for it during backward scan.
20498
20499 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
20500
20501         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20502
20503 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
20504
20505         PR rtl-optimization/52773
20506         * calls.c (emit_library_call_value): When pushing arguments use
20507         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20508         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
20509         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20510
20511 2015-01-17  Jeff Law  <law@redhat.com>
20512
20513         PR rtl-optimization/32790
20514         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20515         not ZERO_EXTEND in SET_DESTs.
20516
20517 2015-01-17  Alan Modra  <amodra@gmail.com>
20518
20519         * cprop.c (do_local_cprop): Revert last change.
20520
20521 2015-01-16  DJ Delorie  <dj@redhat.com>
20522             Nick Clifton  <nickc@redhat.com>
20523
20524         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20525         (addhi3_real): Likewise.  Fix [HL+0] syntax.
20526         (subqi3_real): Likewise.
20527         (subhi3_real): Likewise.
20528         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
20529         (cbranchhi4_real): Likewise.
20530         (cbranchhi4_real_inverted): Likewise.
20531         (cbranchsi4_real_lt): Likewise.
20532         (cbranchsi4_real_ge): Likewise.
20533         (cbranchsi4_real_ge): Likewise.
20534         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20535         (sub<mode>3_virt): Likewise.
20536         (cbranchqi4_virt): Likewise.
20537         (cbranchhi4_virt): Likewise.
20538         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20539         always use '[reg+imm]' even when imm is zero.
20540         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20541         (rl78_general_operand): New.
20542         (rl78_nonimmediate_operand): New.
20543         (rl78_nonfar_operand): Use them.
20544         (rl78_nonfar_nonimm_operand): Likewise.
20545         (rl78_stack_based_mem): Fix.
20546         * config/rl78/constraints.md (Ibqi): New.
20547         (IBqi): New.
20548         (Wsa): New.
20549         (Wsf): New.
20550         (Cs1): Fix.
20551         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20552         (iorqi3): Likewise.
20553         (xorqi3): Likewise.
20554         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20555
20556         * config/rl78/constrains (Qs8): New constraint.
20557         * config/rl78/rl78.c (rl78_flags_already_set): New function.
20558         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20559         * config/rl78/rl78-real.md (update_Z): New attribute.
20560         Update patterns to set it.
20561         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20562         shorter compare and branch sequence can be used.
20563         (cbranchhi4_real): Likewise.
20564         (cbranchhi4_real_inverted): Likewise.
20565
20566         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20567         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20568         address space.
20569         * config/rl78/rl78.c (rl78_get_name_encoding): New.
20570         (rl78_option_override): Allow -mes0 only if C.
20571         (characterize_address): Support subregs of symbol_refs.
20572         (rl78_addr_space_address_mode): Move.  Add __near.
20573         (rl78_far_p): Likewise.
20574         (rl78_addr_space_pointer_mode): Likewise.
20575         (rl78_as_legitimate_address): Likewise.
20576         (rl78_addr_space_subset_p): Likewise.
20577         (rl78_addr_space_convert): Likewise.
20578         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20579         symbols with -mes0.
20580         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
20581         addressing.
20582         (rl78_alloc_physical_registers_op1): Change logic to prefer
20583         symbol[BC] addressing.
20584         (frodata_section): New.
20585         (rl78_asm_init_sections): Initialize it.
20586         (rl78_select_section): Put __far readonly symbols in .frodata.
20587         (rl78_make_type_far): New.
20588         (rl78_insert_attributes): Force all readonly symbols to be
20589         __far when -mes0.
20590         (rl78_asm_out_integer): New.
20591         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20592         * config/rl78/rl78.opt (-mes0): New.
20593
20594         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20595         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20596         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20597         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20598         (rl78_saddr_p): New.
20599         (rl78_output_aligned_common): New.
20600         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20601         (rl78_handle_saddr_attribute): New.
20602         (rl78_handle_naked_attribute): New.
20603         (rl78_attribute_table): Add saddr.
20604         (rl78_print_operand_1): Don't print '!' on saddr operands.
20605         (rl78_print_operand_1): Strip encodings.
20606         (rl78_sfr_p): New.
20607         (rl78_strip_name_encoding): New.
20608         (rl78_attrlist_to_encoding): New.
20609         (rl78_encode_section_info): New.
20610         (rl78_asm_init_sections): New.
20611         (rl78_select_section): New.
20612         (rl78_output_labelref): New.
20613         (rl78_output_aligned_common): New.
20614         (rl78_asm_out_integer): New.
20615         (rl78_asm_ctor_dtor): New.
20616         (rl78_asm_constructor): New.
20617         (rl78_asm_destructor): New.
20618
20619         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20620         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20621         (transcode_memory_rtx): Update.
20622         (rl78_expand_epilogue): Use A_REG instead of 0.
20623
20624 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20625
20626         * config/arm/arm-protos.h (struct tune_params): New field
20627         sched_autopref_queue_depth.
20628         * config/arm/arm.c (sched-int.h): Include header.
20629         (arm_first_cycle_multipass_dfa_lookahead_guard,)
20630         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20631         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20632         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20633         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20634         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20635         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20636         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20637         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
20638         * config/arm/t-arm (arm.o): Update.
20639         * haifa-sched.c (update_insn_after_change): Update.
20640         (rank_for_schedule): Use auto-prefetcher model, if requested.
20641         (autopref_multipass_init): New static function.
20642         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20643         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20644         variable for debug dumps.
20645         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20646         (autopref_multipass_dfa_lookahead_guard): New global function that
20647         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20648         (init_h_i_d): Update.
20649         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20650         * sched-int.h (enum autopref_multipass_data_status): New const enum.
20651         (autopref_multipass_data_): Structure for auto-prefetcher data.
20652         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20653         (struct _haifa_insn_data:autopref_multipass_data): New field.
20654         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20655         (autopref_multipass_dfa_lookahead_guard): Declare.
20656
20657 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20658
20659         * rtlanal.c (get_base_term): Handle SCRATCH.
20660
20661 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20662
20663         * config/aarch64/aarch64.c
20664         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20665         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20666         * config/arm/arm.c
20667         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20668         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20669
20670 2015-01-17  Alan Modra  <amodra@gmail.com>
20671
20672         * cprop.c (do_local_cprop): Disallow replacement of fixed
20673         hard registers.
20674
20675 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20676
20677         PR target/62066
20678         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20679         early return 0.
20680
20681 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20682
20683         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20684         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20685
20686 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20687
20688         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20689         * config/arm/thumb1.md: ... Here.
20690
20691 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20692
20693         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20694         TImode for TARGET_32BIT.
20695
20696 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20697
20698         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20699         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20700         as ...
20701         (rs6000_abi_word_mode): New function.
20702
20703 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20704
20705         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20706         instead of UNITS_PER_WORD to describe the size of stack slots.
20707
20708 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20709
20710         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20711         as rs6000_promote_function_mode.  Move comment to there.
20712         (rs6000_promote_function_mode): New function.
20713
20714 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20715
20716         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20717         -mpowerpc64 is active.
20718
20719 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20720
20721         PR middle-end/64353
20722         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20723         virtuals on start.
20724
20725 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20726
20727         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20728         introduced in revision 219724.
20729
20730 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20731             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20732
20733         PR target/64263
20734         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20735         destination is not a GP reg.
20736         (*movdi_aarch64): Likewise.
20737
20738 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
20739
20740         PR target/64623
20741         * config/rs6000/default64.h: Revert ISA change.
20742
20743 2015-01-16  Richard Biener  <rguenther@suse.de>
20744
20745         PR middle-end/64614
20746         * tree-ssa-uninit.c: Include tree-cfg.h.
20747         (MAX_SWITCH_CASES): New define.
20748         (convert_control_dep_chain_into_preds): Handle switch statements.
20749         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20750         (normalize_one_pred_1): Do not split bit-manipulations.
20751         Record (x & CST).
20752
20753 2015-01-16  Richard Biener  <rguenther@suse.de>
20754
20755         PR tree-optimization/64568
20756         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20757         complex load rewriting for TARGET_MEM_REFs.
20758
20759 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
20760
20761         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20762
20763 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
20764
20765         PR target/64149
20766         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20767         variable.
20768         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20769         (aarch64_lra_p): Remove.
20770
20771 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20772
20773         PR target/64363
20774         * ipa-chkp.h (chkp_instrumentable_p): New.
20775         * ipa-chkp.c: Include tree-inline.h.
20776         (chkp_instrumentable_p): New.
20777         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20778         Fix processing of not instrumentable functions.
20779         (chkp_versioning): Use chkp_instrumentable_p. Warn about
20780         not instrumentable functions.
20781         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20782         chkp_instrumentable_p.
20783         * tree-inline.h (copy_forbidden): New.
20784         * tree-inline.c (copy_forbidden): Not static anymore.
20785
20786 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20787
20788         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20789         ptr1, ptr2 unused.
20790
20791 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20792
20793         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20794         type OP_OUT to OP_INOUT.
20795
20796 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20797
20798         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20799         (high x) y) to y if x and y have the same base.
20800
20801 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20802
20803         * config/arm/cortex-a57.md: New.
20804         * config/aarch64/aarch64.md: Include it.
20805         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20806         * config/aarch64/aarch64-tune.md: Regenerate.
20807
20808 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
20809
20810         PR target/64015
20811         * ccmp.c (expand_ccmp_next): New function.
20812         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20813         and compare insn sequence.
20814         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20815         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20816         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20817         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20818         (*ccmp_ior): Changed to ccmp_ior<mode>.
20819         (cmp<mode>): New pattern.
20820         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20821         parameters.
20822         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20823
20824 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
20825
20826         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20827         _mm256_bsrli_epi128): New.
20828         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20829
20830 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20831
20832         * expmed.c (store_bit_field_using_insv): Improve warning message.
20833         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20834
20835 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20836
20837         PR rtl-optimization/64011
20838         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20839         there is partial overflow.
20840
20841 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20842
20843         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20844         prototype.
20845         (nds32_expand_epilogue_v3pop): Likewise.
20846         * config/nds32/nds32.md (sibcall): Define this for sibling call
20847         optimization.
20848         (sibcall_register): Likewise.
20849         (sibcall_immediate): Likewise.
20850         (sibcall_value): Likewise.
20851         (sibcall_value_register): Likewise.
20852         (sibcall_value_immediate): Likewise.
20853         (sibcall_epilogue): Likewise.
20854         (epilogue): Pass false to indicate this is not a sibcall epilogue.
20855         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20856         (nds32_expand_epilogue_v3pop): Likewise.
20857
20858 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20859
20860         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20861         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20862         (return_internal): New.
20863         (return): Define this named pattern.
20864         (simple_return): Define this named pattern.
20865         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20866         pattern instead of unspec_volatile_func_return.
20867         (nds32_expand_epilogue_v3pop): Likewise.
20868         (nds32_can_use_return_insn): New function.
20869
20870 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20871
20872         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20873         * config/nds32/nds32.md (pop25return): New.
20874         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20875         pop25return pattern.
20876
20877 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20878
20879         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20880         -mforbid-fp-as-gp, and -mex9 options.
20881
20882 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20883
20884         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20885         remove -mgp-direct option.
20886
20887 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20888
20889         * doc/invoke.texi (--param early-inlining-insns): Update default value.
20890         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20891
20892 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20893
20894         * ipa-inline.c (inline_small_functions): Work around hints
20895         cache issue.
20896
20897 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
20898
20899         PR target/59710
20900         * doc/invoke.texi (Option Summary): Document new Nios II
20901         -mgpopt= syntax.
20902         (Nios II Options): Likewise.
20903         * config/nios2/nios2.opt: Add -mgpopt= option support.
20904         Modify existing -mgpopt and -mno-gpopt options to be aliases.
20905         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20906         * config/nios2/nios2.c (nios2_option_override): Adjust
20907         -mgpopt defaulting.
20908         (nios2_in_small_data_p): Return true for explicit small data
20909         sections even with -G0.
20910         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20911         option choices.
20912
20913 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20914
20915         PR ipa/64612
20916         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20917         of comdat locals.
20918         (inline_call): Fix removal of aliases.
20919
20920 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
20921
20922         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20923         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20924         * opts.c (common_handle_option): Add -fsanitize=vptr.
20925         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20926         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20927         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20928         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20929         (ubsan_expand_vptr_ifn): New prototype.
20930         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20931         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20932         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20933         expand_LOOP_VECTORIZED): Make argument nameless, remove
20934         ATTRIBUTE_UNUSED.
20935         (expand_UBSAN_VPTR): New function.
20936         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
20937         in fn spec.
20938         (UBSAN_VPTR): New internal function.
20939         * sanopt.c (tree_map_traits): Renamed to ...
20940         (sanopt_tree_map_traits): ... this.
20941         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
20942         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
20943         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
20944         (maybe_optimize_ubsan_vptr_ifn): New function.
20945         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
20946         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
20947         -fsanitize=vptr.
20948         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
20949         internal calls like pure functions for aliasing, even when they
20950         have other side-effects that prevent making them ECF_PURE.
20951         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
20952         (ubsan_expand_vptr_ifn): New function.
20953
20954 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
20955
20956         PR rtl-optimization/64110
20957         * stmt.c (parse_output_constraint): Process '^' and '$'.
20958         (parse_input_constraint): Ditto.
20959         * lra-constraints.c (process_alt_operands): Process the new
20960         constraints.
20961         * ira-costs.c (record_reg_classes): Process the new constraint
20962         '^'.
20963         * genoutput.c (indep_constraints): Add '^' and '$'.
20964         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
20965         * doc/md.texi: Add description of the new constraints.
20966
20967 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
20968             Bernd Schmidt  <bernds@codesourcery.com>
20969             Cesar Philippidis  <cesar@codesourcery.com>
20970             James Norris  <jnorris@codesourcery.com>
20971             Tom de Vries  <tom@codesourcery.com>
20972             Ilmir Usmanov  <i.usmanov@samsung.com>
20973             Dmitry Bocharnikov  <dmitry.b@samsung.com>
20974             Evgeny Gavrin  <e.gavrin@samsung.com>
20975             Jakub Jelinek  <jakub@redhat.com>
20976
20977         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
20978         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20979         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20980         New function types.
20981         * builtins.c: Include "gomp-constants.h".
20982         (expand_builtin_acc_on_device): New function.
20983         (expand_builtin, is_inexpensive_builtin): Handle
20984         BUILT_IN_ACC_ON_DEVICE.
20985         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
20986         New macros.
20987         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
20988         flag_openmp.
20989         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
20990         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
20991         i386/intelmic-offload.h.
20992         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
20993         to libgomp and its dependencies.
20994         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
20995         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20996         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20997         * config/ia64/hpux.h (LIB_SPEC): Likewise.
20998         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20999         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21000         * doc/generic.texi: Update for OpenACC changes.
21001         * doc/gimple.texi: Likewise.
21002         * doc/invoke.texi: Likewise.
21003         * doc/sourcebuild.texi: Likewise.
21004         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21005         GF_OMP_FOR_KIND_OACC_LOOP.
21006         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21007         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21008         GF_OMP_TARGET_KIND_OACC_UPDATE,
21009         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21010         Dump more data.
21011         * gimple.c: Update comments for OpenACC changes.
21012         * gimple.def: Likewise.
21013         * gimple.h: Likewise.
21014         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21015         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21016         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21017         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21018         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21019         appropriate place.
21020         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21021         * gimplify.c: Include "gomp-constants.h".
21022         Update comments for OpenACC changes.
21023         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21024         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21025         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21026         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21027         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21028         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21029         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21030         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21031         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21032         OMP_CLAUSE_SEQ.
21033         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21034         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21035         OMP_CLAUSE_SET_MAP_KIND.
21036         (gimplify_oacc_cache): New function.
21037         (gimplify_omp_for): Handle OACC_LOOP.
21038         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21039         OACC_DATA.
21040         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21041         OACC_EXIT_DATA, OACC_UPDATE.
21042         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21043         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21044         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21045         (gimplify_body): Consider flag_openacc next to flag_openmp.
21046         * lto-streamer-out.c: Include "gomp-constants.h".
21047         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21048         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21049         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21050         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21051         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21052         (BUILT_IN_ACC_ON_DEVICE): New builtins.
21053         * omp-low.c: Include "gomp-constants.h".
21054         Update comments for OpenACC changes.
21055         (struct omp_context): Add reduction_map, gwv_below, gwv_this
21056         members.
21057         (extract_omp_for_data, use_pointer_for_field, install_var_field)
21058         (new_omp_context, delete_omp_context, scan_sharing_clauses)
21059         (create_omp_child_function, scan_omp_for, scan_omp_target)
21060         (check_omp_nesting_restrictions, lower_reduction_clauses)
21061         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21062         Update for OpenACC changes.
21063         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21064         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21065         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21066         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21067         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21068         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
21069         OMP_CLAUSE_MAP_*.
21070         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21071         Handle GF_OMP_FOR_KIND_OACC_LOOP.
21072         (expand_omp_target, lower_omp_target): Handle
21073         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21074         GF_OMP_TARGET_KIND_OACC_UPDATE,
21075         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21076         GF_OMP_TARGET_KIND_OACC_DATA.
21077         (pass_expand_omp::execute, execute_lower_omp)
21078         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21079         flag_openmp.
21080         (offload_symbol_decl): New variable.
21081         (oacc_get_reduction_array_id, oacc_max_threads)
21082         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21083         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21084         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21085         (oacc_gimple_assign, oacc_initialize_reduction_data)
21086         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21087         functions.
21088         (is_targetreg_ctx): Remove function.
21089         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21090         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21091         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21092         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21093         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21094         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21095         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21096         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21097         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21098         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21099         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21100         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21101         * tree-core.h: Update comments for OpenACC changes.
21102         (enum omp_clause_map_kind): Remove.
21103         (struct tree_omp_clause): Change type of map_kind member from enum
21104         omp_clause_map_kind to unsigned char.
21105         * tree-inline.c: Update comments for OpenACC changes.
21106         * tree-nested.c: Likewise.  Include "gomp-constants.h".
21107         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21108         (convert_tramp_reference_stmt, convert_gimple_call): Update for
21109         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21110         OMP_CLAUSE_SET_MAP_KIND.
21111         * tree-pretty-print.c: Include "gomp-constants.h".
21112         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21113         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21114         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21115         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21116         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21117         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
21118         instead of OMP_CLAUSE_MAP_*.
21119         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21120         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21121         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21122         * tree-streamer-in.c: Include "gomp-constants.h".
21123         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21124         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
21125         * tree-streamer-out.c: Include "gomp-constants.h".
21126         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21127         OMP_CLAUSE_MAP_*.
21128         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21129         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21130         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21131         * tree.c (omp_clause_num_ops): Update accordingly.
21132         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21133         Likewise.
21134         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21135         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21136         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21137         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21138         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21139         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21140         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21141         (OMP_CLAUSE_SET_MAP_KIND): New macro.
21142         * varpool.c (varpool_node::get_create): Consider flag_openacc next
21143         to flag_openmp.
21144         * config/i386/intelmic-offload.h: New file.
21145         * config/nvptx/offload.h: Likewise.
21146
21147 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21148
21149         * explow.h: Remove duplicate contents.
21150         * dojump.h: Likewise.
21151
21152 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
21153
21154         * arm.c (arm_xgene_tune): Add default initializer for instruction
21155         fusion.
21156
21157 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21158
21159         PR ipa/64068
21160         PR ipa/64559
21161         * ipa.c (symbol_table::remove_unreachable_nodes):
21162         Do not put abstract origins into boundary.
21163
21164 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
21165
21166         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21167         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21168
21169 2015-01-15  Steve Ellcey  <sellcey@mips.com>
21170
21171         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21172         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21173         builtins.def, and chkp-builtins.def.
21174
21175 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
21176
21177         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21178         ISA 2.7 (POWER8).
21179
21180 2015-01-15  Richard Biener  <rguenther@suse.de>
21181
21182         PR tree-optimization/61743
21183         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21184         information on PHIs for some simple cases.
21185
21186 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21187
21188         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21189         Include xgene1.md.
21190         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21191         * config/arm/arm-cores.def (xgene1): New entry.
21192         * config/arm/arm-tables.opt: Regenerate.
21193         * config/arm/arm-tune.md: Regenerate.
21194         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21195
21196 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21197
21198         * tree-if-conv.c: Include hash-map.h.
21199         (aggressive_if_conv): New variable.
21200         (fold_build_cond_expr): Add simplification of non-zero condition.
21201         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21202         destination block is not always executed.
21203         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21204         than two predecessors if AGGRESSIVE_IF_CONV is true.
21205         (if_convertible_stmt_p): Fix commentary.
21206         (all_preds_critical_p): New function.
21207         (has_pred_critical_p): New function.
21208         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21209         BB can have more than two predecessors and all incoming edges can be
21210         critical.
21211         (predicate_bbs): Skip predication for loop exit block, use build2_loc
21212         to compute predicate for true edge.
21213         (find_phi_replacement_condition): Delete this function.
21214         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21215         Allow interchange PHI arguments if EXTENDED is false.
21216         Change check that block containing reduction statement candidate
21217         is predecessor of phi-block since phi may have more than two arguments.
21218         (phi_args_hash_traits): New helper structure.
21219         (struct phi_args_hash_traits): New type.
21220         (phi_args_hash_traits::hash): New function.
21221         (phi_args_hash_traits::equal_keys): New function.
21222         (gen_phi_arg_condition): New function.
21223         (predicate_scalar_phi): Add handling of phi nodes with more than two
21224         arguments, delete COND and TRUE_BB arguments, insert body of
21225         find_phi_replacement_condition to predicate ordinary phi nodes.
21226         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21227         delete call of find_phi_replacement_condition and invoke
21228         predicate_scalar_phi with two arguments.
21229         (insert_gimplified_predicates): Add assert that non-predicated block
21230         don't have statements to insert.
21231         (ifcvt_split_critical_edges): New function.
21232         (ifcvt_split_def_stmt): Likewise.
21233         (ifcvt_walk_pattern_tree): Likewise.
21234         (stmt_is_root_of_bool_pattern): Likewise.
21235         (ifcvt_repair_bool_pattern): Likewise.
21236         (ifcvt_local_dce): Likewise.
21237         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21238         is copy of inner or outer loop force_vectorize field, invoke
21239         ifcvt_split_critical_edges, ifcvt_local_dce and
21240         ifcvt_repair_bool_pattern for aggressive if-conversion.
21241
21242 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
21243
21244         * config/aarch64/aarch64.md: Include xgene1.md.
21245         * config/aarch64/xgene1.md: New file.
21246
21247 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21248
21249         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21250         xgene1 (APM XGene-1) core definition.
21251         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21252         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21253         * doc/invoke.texi: Document -mcpu=xgene1.
21254
21255 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21256
21257         * dojump.h: New header file.
21258         * explow.h: Likewise.
21259         * expr.h: Remove includes.
21260         Move expmed.c prototypes to expmed.h.
21261         Move dojump.c prototypes to dojump.h.
21262         Move alias.c prototypes to alias.h.
21263         Move explow.c prototypes to explow.h.
21264         Move calls.c prototypes to calls.h.
21265         Move emit-rtl.c prototypes to emit-rtl.h.
21266         Move varasm.c prototypes to varasm.h.
21267         Move stmt.c prototypes to stmt.h.
21268         (saved_pending_stack_adjust): Move to dojump.h.
21269         (adjust_address): Move to explow.h.
21270         (adjust_address_nv): Move to emit-rtl.h.
21271         (adjust_bitfield_address): Likewise.
21272         (adjust_bitfield_address_size): Likewise.
21273         (adjust_bitfield_address_nv): Likewise.
21274         (adjust_automodify_address_nv): Likewise.
21275         * explow.c (expr_size): Move to expr.c.
21276         (int_expr_size): Likewise.
21277         (tree_expr_size): Likewise.
21278         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21279         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21280         * genemit.c (main): Generate includes statistics.h, real.h,
21281         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21282         stmt.h.
21283         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21284         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21285         explow.h, emit-rtl.h, stmt.h.
21286         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21287         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21288         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21289         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21290         emit-rtl.h, varasm.h, stmt.h.
21291         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21292         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21293         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21294         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21295         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21296         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21297         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21298         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21299         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21300         tm.h tree.h varasm.h vec.h wide-int.h.
21301         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21302         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21303         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21304         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21305         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21306         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21307         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21308         * loop-iv.c: Likewise.
21309         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21310         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21311         statistics.h stmt.h tree.h varasm.h wide-int.h.
21312         * lra-constraints.c: Likewise.
21313         * lra-eliminations.c: Likewise.
21314         * lra-lives.c: Likewise.
21315         * lra-remat.c: Likewise.
21316         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21317         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21318         statistics.h stmt.h tree.h varasm.h wide-int.h.
21319         * hw-doloop.c: Likewise.
21320         * ira-color.c: Likewise.
21321         * ira-emit.c: Likewise.
21322         * loop-doloop.c: Likewise.
21323         * loop-invariant.c: Likewise.
21324         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21325         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21326         statistics.h stmt.h tree.h varasm.h wide-int.h.
21327         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21328         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21329         statistics.h stmt.h tree.h varasm.h wide-int.h.
21330         * combine-stack-adj.c: Likewise.
21331         * cse.c: Likewise.
21332         * ddg.c: Likewise.
21333         * ifcvt.c: Likewise.
21334         * ira-costs.c: Likewise.
21335         * jump.c: Likewise.
21336         * lra-coalesce.c: Likewise.
21337         * lra-spills.c: Likewise.
21338         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21339         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21340         stmt.h varasm.h wide-int.h.
21341         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21342         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21343         varasm.h.
21344         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21345         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21346         statistics.h stmt.h varasm.h wide-int.h.
21347         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21348         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21349         varasm.h wide-int.h.
21350         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21351         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21352         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21353         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21354         statistics.h stmt.h.
21355         * config/tilepro/tilepro.c: Likewise.
21356         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21357         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21358         * config/pdp11/pdp11.c: Likewise.
21359         * config/xtensa/xtensa.c: Likewise.
21360         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21361         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21362         varasm.h.
21363         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21364         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21365         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21366         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21367         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21368         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21369         * rtl-chkp.c: Likewise.
21370         * tree-chkp-opt.c: Likewise.
21371         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21372         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21373         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21374         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21375         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21376         statistics.h stmt.h.
21377         * tree-vect-data-refs.c: Likewise.
21378         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21379         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21380         rtl.h statistics.h stmt.h varasm.h.
21381         * internal-fn.c: Likewise.
21382         * ipa-icf-gimple.c: Likewise.
21383         * lto-section-out.c: Likewise.
21384         * tree-data-ref.c: Likewise.
21385         * tree-nested.c: Likewise.
21386         * tree-outof-ssa.c: Likewise.
21387         * tree-predcom.c: Likewise.
21388         * tree-pretty-print.c: Likewise.
21389         * tree-scalar-evolution.c: Likewise.
21390         * tree-ssa-strlen.c: Likewise.
21391         * tree-vect-loop.c: Likewise.
21392         * tree-vect-patterns.c: Likewise.
21393         * tree-vect-slp.c: Likewise.
21394         * tree-vect-stmts.c: Likewise.
21395         * tsan.c: Likewise.
21396         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21397         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21398         stmt.h.
21399         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21400         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21401         statistics.h stmt.h varasm.h.
21402         * loop-unroll.c: Likewise.
21403         * ubsan.c: Likewise.
21404         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21405         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21406         stmt.h varasm.h.
21407         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21408         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21409         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21410         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21411         statistics.h stmt.h.
21412         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21413         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21414         statistics.h stmt.h varasm.h.
21415         * gimple-match-head.c: Likewise.
21416         * lto-cgraph.c: Likewise.
21417         * lto-section-in.c: Likewise.
21418         * lto-streamer-in.c: Likewise.
21419         * lto-streamer-out.c: Likewise.
21420         * tree-affine.c: Likewise.
21421         * tree-cfg.c: Likewise.
21422         * tree-cfgcleanup.c: Likewise.
21423         * tree-if-conv.c: Likewise.
21424         * tree-into-ssa.c: Likewise.
21425         * tree-ssa-alias.c: Likewise.
21426         * tree-ssa-copyrename.c: Likewise.
21427         * tree-ssa-dse.c: Likewise.
21428         * tree-ssa-forwprop.c: Likewise.
21429         * tree-ssa-live.c: Likewise.
21430         * tree-ssa-math-opts.c: Likewise.
21431         * tree-ssa-pre.c: Likewise.
21432         * tree-ssa-sccvn.c: Likewise.
21433         * tree-tailcall.c: Likewise.
21434         * tree-vect-generic.c: Likewise.
21435         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21436         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21437         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21438         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21439         * varasm.c: Likewise.
21440         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21441         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21442         varasm.h.
21443         * init-regs.c: Likewise.
21444         * ira.c: Likewise.
21445         * omp-low.c: Likewise.
21446         * stack-ptr-mod.c: Likewise.
21447         * tree-ssa-reassoc.c: Likewise.
21448         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21449         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21450         varasm.h.
21451         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21452         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21453         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21454         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21455         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21456         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21457         * tree-ssa-phiopt.c: Likewise.
21458         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21459         fixed-value.h hashtab.h real.h statistics.h stmt.h.
21460         * config/fr30/fr30.c: Likewise.
21461         * config/frv/frv.c: Likewise.
21462         * expr.c: Likewise.
21463         * final.c: Likewise.
21464         * optabs.c: Likewise.
21465         * passes.c: Likewise.
21466         * simplify-rtx.c: Likewise.
21467         * stmt.c: Likewise.
21468         * toplev.c: Likewise.
21469         * var-tracking.c: Likewise.
21470         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21471         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21472         * lower-subreg.c: Likewise.
21473         * postreload-gcse.c: Likewise.
21474         * ree.c: Likewise.
21475         * reginfo.c: Likewise.
21476         * store-motion.c: Likewise.
21477         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21478         fixed-value.h hashtab.h real.h stmt.h varasm.h.
21479         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21480         fixed-value.h hashtab.h statistics.h stmt.h.
21481         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21482         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21483         * except.c: Likewise.
21484         * explow.c: Likewise.
21485         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21486         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21487         varasm.h.
21488         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21489         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21490         * tree-ssa-structalias.c: Likewise.
21491         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21492         fixed-value.h insn-config.h real.h statistics.h.
21493         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21494         fixed-value.h insn-config.h real.h statistics.h stmt.h.
21495         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21496         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21497         * cfgbuild.c: Likewise.
21498         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21499         fixed-value.h real.h rtl.h statistics.h stmt.h.
21500         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21501         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21502         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21503         fixed-value.h real.h statistics.h stmt.h.
21504         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21505         fixed-value.h real.h statistics.h stmt.h varasm.h.
21506         * cprop.c: Likewise.
21507         * modulo-sched.c: Likewise.
21508         * postreload.c: Likewise.
21509         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21510         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21511         statistics.h stmt.h varasm.h.
21512         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21513         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21514         rtl.h statistics.h stmt.h varasm.h.
21515         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21516         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21517         varasm.h.
21518         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21519         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21520         varasm.h.
21521         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21522         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21523         varasm.h.
21524         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21525         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21526         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21527         function.h real.h statistics.h stmt.h varasm.h.
21528         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21529         insn-config.h real.h statistics.h stmt.h.
21530         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21531         statistics.h stmt.h.
21532         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21533         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21534         statistics.h stmt.h varasm.h.
21535         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21536         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21537         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21538         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21539         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21540         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21541         statistics.h stmt.h varasm.h.
21542         * ipa-polymorphic-call.c: Likewise.
21543         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21544         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21545         statistics.h stmt.h.
21546         * config/c6x/c6x.c: Likewise.
21547         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21548         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21549         statistics.h stmt.h varasm.h.
21550         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21551         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21552         stmt.h varasm.h.
21553         * ipa-split.c: Likewise.
21554         * tree-eh.c: Likewise.
21555         * tree-ssa-dce.c: Likewise.
21556         * tree-ssa-loop-niter.c: Likewise.
21557         * tree-vrp.c: Likewise.
21558         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21559         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21560         stmt.h.
21561         * config/nds32/nds32-fp-as-gp.c: Likewise.
21562         * config/nds32/nds32-intrinsic.c: Likewise.
21563         * config/nds32/nds32-isr.c: Likewise.
21564         * config/nds32/nds32-md-auxiliary.c: Likewise.
21565         * config/nds32/nds32-memory-manipulation.c: Likewise.
21566         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21567         * config/nds32/nds32-predicates.c: Likewise.
21568         * config/nds32/nds32.c: Likewise.
21569         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21570         fixed-value.h hashtab.h real.h statistics.h.
21571         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21572         fixed-value.h hashtab.h real.h statistics.h stmt.h.
21573         * config/arm/arm.c: Likewise.
21574         * config/avr/avr.c: Likewise.
21575         * config/bfin/bfin.c: Likewise.
21576         * config/h8300/h8300.c: Likewise.
21577         * config/i386/i386.c: Likewise.
21578         * config/ia64/ia64.c: Likewise.
21579         * config/iq2000/iq2000.c: Likewise.
21580         * config/m32c/m32c.c: Likewise.
21581         * config/m32r/m32r.c: Likewise.
21582         * config/m68k/m68k.c: Likewise.
21583         * config/mcore/mcore.c: Likewise.
21584         * config/mep/mep.c: Likewise.
21585         * config/mips/mips.c: Likewise.
21586         * config/mn10300/mn10300.c: Likewise.
21587         * config/moxie/moxie.c: Likewise.
21588         * config/pa/pa.c: Likewise.
21589         * config/rl78/rl78.c: Likewise.
21590         * config/rx/rx.c: Likewise.
21591         * config/s390/s390.c: Likewise.
21592         * config/sh/sh.c: Likewise.
21593         * config/sparc/sparc.c: Likewise.
21594         * config/spu/spu.c: Likewise.
21595         * config/stormy16/stormy16.c: Likewise.
21596         * config/v850/v850.c: Likewise.
21597         * config/vax/vax.c: Likewise.
21598         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21599         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21600         * config/msp430/msp430.c: Likewise.
21601         * predict.c: Likewise.
21602         * value-prof.c: Likewise.
21603         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21604         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21605         * config/microblaze/microblaze.c: Likewise.
21606         * config/nios2/nios2.c: Likewise.
21607         * config/rs6000/rs6000.c: Likewise.
21608         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21609         insn-config.h real.h rtl.h statistics.h stmt.h.
21610         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21611         insn-config.h real.h statistics.h stmt.h.
21612         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21613         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21614         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21615         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21616         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21617         fixed-value.h real.h statistics.h stmt.h.
21618         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21619         fixed-value.h statistics.h stmt.h.
21620         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21621         stmt.h.
21622
21623 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
21624
21625         * gengtype.c (create_user_defined_type): Workaround
21626         -Wmaybe-uninitialized false positives.
21627         * cse.c (fold_rtx): Likewise.
21628         * loop-invariant.c (gain_for_invariant): Likewise.
21629
21630 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21631
21632         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21633         set the memory attributes in all cases but clear MEM_EXPR if need be.
21634
21635 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21636
21637         PR tree-optimization/64434
21638         * cfgexpand.c (reorder_operands): New function.
21639         (expand_gimple_basic_block): Insert call of reorder_operands if
21640         optimized is true.
21641
21642 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21643
21644         * config/mips/micromips.md (*swp): Remove explicit parallel.
21645         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21646         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21647         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21648         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21649         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21650         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21651         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21652         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21653         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21654         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21655         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21656         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21657         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21658         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21659         (mips_wrdsp): Likewise.
21660         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21661         parallel.
21662         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21663         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21664         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21665         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21666         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21667         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21668         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21669         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21670         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21671
21672 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21673
21674         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21675         (mips_print_operand): Support 'y' to print exact log2 in decimal
21676         of a const_int.
21677         * config/mips/mips.h (ISA_HAS_LSA): New define.
21678         (ISA_HAS_DLSA): Likewise.
21679         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21680         * config/mips/predicates.md (const_immlsa_operand): New predicate.
21681
21682 2015-01-15  Martin Liska  <mliska@suse.cz>
21683
21684         PR target/64377
21685         * optc-save-gen.awk: Add support for array types.
21686
21687 2015-01-15  Richard Biener  <rguenther@suse.de>
21688
21689         PR middle-end/64365
21690         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21691         for MEM_REF access functions with the same base can never partially
21692         overlap.
21693
21694 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
21695
21696         * common.opt: New option -fstack-protector-explicit.
21697         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21698         (stack_protect_decl_phase): Handle stack_protect attribute for
21699         explicit stack protection requests.
21700         (expand_used_vars): Similarly.
21701         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21702         * doc/extend.texi: Add documentation for "stack_protect" attribute.
21703         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21704
21705 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
21706
21707         PR target/53988
21708         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21709         reg-reg copies.
21710         (sh_extending_set_of_reg): New struct.
21711         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21712         sh_remove_reg_dead_or_unused_notes): New Declarations.
21713         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21714         sh_find_extending_set_of_reg, sh_split_tst_subregs,
21715         sh_extending_set_of_reg::use_as_extended_reg): New functions.
21716         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21717         convert to insn_and_split and use new function sh_split_tst_subregs.
21718
21719 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
21720
21721         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21722         option.
21723         (Optimization Options): Move -fuse-ld documentation to...
21724         (Link Options): ...here.
21725
21726 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21727
21728         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21729         offsets.
21730         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21731         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21732         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21733         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21734         instead of ZR for the memory operand of LL/SC.
21735         (compare_and_swap_12, sync_add<mode>): Likewise.
21736         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21737         (sync_new_<optab>_12, sync_nand_12): Likewise.
21738         (sync_old_nand_12, sync_new_nand_12): Likewise.
21739         (sync_sub<mode>, sync_old_add<mode>): Likewise.
21740         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21741         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21742         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21743         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21744         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21745         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21746         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21747         * doc/md.texi (ZC): Update description.
21748
21749 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21750
21751         * builtins.c (expand_builtin_atomic_exchange): Remove error when
21752         memory model is CONSUME.
21753         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21754         expand_builtin_atomic_store): Change invalid memory model errors to
21755         warnings.
21756         (expand_builtin_atomic_clear): Change invalid model errors to warnings
21757         and issue warning for CONSUME.
21758
21759 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
21760
21761         * lto-cgraph: Update function comments for
21762         lto_symtab_encoder_encode_*.
21763
21764 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21765
21766         * Makefile.in (site.exp): Do not set ENABLE_LTO.
21767
21768 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21769
21770         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21771         * lto-cgraph.c (select_what_to_stream): Remove argument, use
21772         lto_stream_offload_p instead.
21773         * lto-streamer.h (select_what_to_stream): Remove argument.
21774         * passes.c (ipa_write_summaries): Likewise.
21775         * tree-pass.h (ipa_write_summaries): Likewise.
21776
21777 2015-01-14  Richard Biener  <rguenther@suse.de>
21778
21779         PR tree-optimization/59354
21780         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21781         groups larger than the slp group size as having gaps.
21782
21783 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21784
21785         PR middle-end/59448
21786         * builtins.c (get_memmodel): Promote consume to acquire always.
21787
21788 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21789
21790         PR target/64386
21791         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21792         V32HImode.
21793
21794 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21795
21796         PR target/64393
21797         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21798         Enable AVX512BW.
21799         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21800         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21801         AVX512VBMI, as it implies AVX512BW.
21802
21803 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21804
21805         PR target/64387
21806         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21807         (vec_unpacks_hi_v16sf): Ditto.
21808
21809 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21810
21811         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21812         is not available.
21813
21814 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21815
21816         * doc/invoke.texi (mapcs): Mention deprecation.
21817         (mapcs-frame): Likewise.
21818
21819 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21820
21821         PR target/64453
21822         * config/arm/arm.c (callee_saved_reg_p): Define.
21823         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21824         register is callee saved instead of !call_used_regs[reg].
21825         (thumb1_compute_save_reg_mask): Likewise.
21826
21827 2015-01-14  Hale Wang  <hale.wang@arm.com>
21828
21829         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21830         Cortex-M7.
21831
21832 2015-01-14  Richard Biener  <rguenther@suse.de>
21833
21834         PR lto/64415
21835         * tree-inline.c (insert_debug_decl_map): Check destination
21836         function MAY_HAVE_DEBUG_STMTS.
21837         (insert_init_debug_bind): Likewise.
21838         (insert_init_stmt): Remove redundant check.
21839         (remap_gimple_stmt): Drop debug stmts if the destination
21840         function has var-tracking assignments disabled.
21841
21842 2015-01-14  Martin Liska  <mliska@suse.cz>
21843
21844         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21845         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21846
21847 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21848
21849         PR target/64460
21850         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21851         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21852
21853 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21854
21855         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21856         level from an ARCH; do not inject the default.
21857         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21858         MIPS_ISA_LEVEL_SPEC.
21859         (MIPS_ISA_NAN2008_SPEC): Update comment.
21860         (BASE_DRIVER_SELF_SPECS): Likewise.
21861         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21862         MIPS_DEFAULT_ISA_LEVEL_SPEC.
21863         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21864         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21865         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21866
21867 2015-01-14  Richard Biener  <rguenther@suse.de>
21868
21869         PR tree-optimization/64493
21870         PR tree-optimization/64495
21871         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21872         assign the proper vectorized PHI to the inner loop exit PHIs.
21873
21874 2015-01-14  Joey Ye  <joey.ye@arm.com>
21875
21876         * config/arm/arm.c (arm_compute_save_reg_mask):
21877         Do not save lr in case of tail call.
21878         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21879
21880 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
21881
21882         * tree-vrp.c (check_array_ref): Emit more warnings
21883         for warn_array_bounds >= 2.
21884         * common.opt: New option -Warray-bounds=.
21885         * doc/invoke.texi: Document -Warray-bounds=.
21886
21887 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
21888
21889         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21890         (mforbid-fp-as-gp): Remove.
21891         (mex9): Remove.
21892         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21893         (nds32_symbol_load_store_p): Remove.
21894         (nds32_fp_as_gp_check_available): Clean up implementation.
21895         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21896         cases.
21897         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21898         fp-as-gp and ex9 cases.
21899
21900 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21901
21902         * tree-profile.c (init_ic_make_global_vars): Drop workaround
21903         for bintuils bug 14342.
21904         (init_ic_make_global_vars): Likewise.
21905         (gimple_init_edge_profiler): Likewise.
21906         (gimple_gen_ic_func_profiler): Likewise.
21907
21908 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21909
21910         * ipa-inline.c (inline_small_functions): Swap the operands in
21911         enum.
21912
21913 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21914
21915         PR ipa/64481
21916         * ipa-inline-analysis.c (node_growth_cache): Remove.
21917         (initialize_growth_caches): Do not initialize it.
21918         (free_growth_caches): Do not free it.
21919         (do_estimate_growth): Rename to ...
21920         (estimate_growth): ... this one; drop growth cache code.
21921         (growth_likely_positive): Always go the heuristics way.
21922         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21923         (reset_edge_caches): Do not reset node growth.
21924         (heap_edge_removal_hook): Do not maintain cache.
21925         (inline_small_functions): Likewise; strenghten sanity check.
21926         (ipa_inline): Do not maintain caches.
21927         * ipa-inline.h (node_growth_cache): Remove.
21928         (do_estimate_growth): Remove to ...
21929         (estimate_growth): this one; remove inline version.
21930         (reset_node_growth_cache): Remove.
21931
21932 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21933
21934         PR ipa/64565
21935         * ipa-inline.c (inline_small_functions): Update callee keys after
21936         resolving speculation
21937         (inline_small_functions): Always check monotonicity of the queue.
21938
21939 2015-01-13  Marek Polacek  <polacek@redhat.com>
21940
21941         PR middle-end/64391
21942         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
21943
21944 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
21945
21946         PR rtl-optimization/64286
21947         * ree.c (combine_reaching_defs): Move part of comment earlier,
21948         remove !SCALAR_INT_MODE_P check.
21949         (add_removable_extension): Don't add vector mode
21950         extensions if all uses of the source register aren't the same
21951         vector extensions.
21952
21953 2015-01-13  Renlin Li  <renlin.li@arm.com>
21954
21955         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
21956         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
21957
21958 2015-01-13  Martin Liska  <mliska@suse.cz>
21959
21960         * ipa-icf.c (sem_function::equals_private): Call new functions
21961         cl_target_option_print_diff and cl_optimization_print_diff.
21962         * optc-save-gen.awk (cl_target_option_print_diff): New function.
21963         (cl_optimization_print_diff): Likewise.
21964         * opth-gen.awk: Likewise.
21965
21966 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
21967
21968         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
21969         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
21970         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
21971         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
21972         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
21973         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
21974
21975 2015-01-13  Andrew Pinski  <apinski@cavium.com>
21976
21977         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
21978         instead of src mode.
21979
21980 2015-01-13  Richard Biener  <rguenther@suse.de>
21981
21982         PR lto/64373
21983         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
21984         DECL_CONTEXT.
21985
21986 2015-01-13  Andrew Pinski  <apinski@cavium.com>
21987
21988         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
21989         volatile mems.
21990         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21991
21992 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
21993
21994         PR middle-end/63974
21995         * cfgexpand.c (expand_computed_goto): Don't call
21996         convert_memory_address here.
21997
21998 2015-01-13  Richard Biener  <rguenther@suse.de>
21999
22000         PR tree-optimization/64406
22001         * tree-loop-distibution.c (pass_loop_distribution::execute):
22002         Reset the SCEV hashtable if we distributed anything.
22003
22004 2015-01-13  Richard Biener  <rguenther@suse.de>
22005
22006         PR tree-optimization/64404
22007         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22008         SLP types for CSEd loads.
22009
22010 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22011
22012         PR tree-optimization/64436
22013         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22014         merge of two symbolic numbers for a bitwise OR to ...
22015         (perform_symbolic_merge): This. Also fix computation of the range and
22016         end of the symbolic number corresponding to the result of a bitwise OR.
22017
22018 2015-01-13  Richard Biener  <rguenther@suse.de>
22019
22020         PR tree-optimization/64568
22021         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22022         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22023
22024 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22025
22026         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22027         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22028
22029 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22030
22031         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22032         target-specific symbol_ref flag.
22033         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22034         resides in rodata section.
22035         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22036         (nds32_encode_section_info): New function.
22037
22038 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22039
22040         * config/nds32/nds32.md (call): Use pseudo instruction bal which
22041         clobbers TA_REGNUM if large code model is specified.
22042         (call_register): Likewise.
22043         (call_immediate): Likewise.
22044         (call_value): Likewise.
22045         (call_value_register): Likewise.
22046         (call_value_immediate): Likewise.
22047
22048 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22049
22050         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22051         (TARGET_CMODEL_MEDIUM): New macro.
22052         (TARGET_CMODEL_LARGE): New macro.
22053         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22054         code model setting in assembly code.
22055
22056 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22057
22058         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22059         Remove MASK_GP_DIRECT flag.
22060         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22061         one of the multilib default options.
22062         * config/nds32/nds32.opt (mgp-direct): Remove.
22063         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22064         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
22065
22066 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22067
22068         * config/nds32/nds32.opt (mcmodel): Add new option.
22069         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22070         to describe code model.
22071
22072 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
22073
22074         PR target/64479
22075         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22076
22077 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22078
22079         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22080         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22081         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22082         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22083         __builtin_sh_set_fpscr.
22084
22085 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22086
22087         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22088         after a funtion name just to indicate it is a function.
22089         ([-fsanitize-undefined-trap-on-error]): Likewise.
22090         ([-fdbg-cnt=]): Likewise.
22091         ([-mmemcpy]): Likewise.
22092         ([-mflush-func]): Likewise.
22093         ([-msynci]): Likewise.
22094
22095 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22096
22097         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22098         example.
22099
22100 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
22101
22102         PR tree-optimization/64563
22103         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22104         instead of != VR_VARYING.
22105
22106         PR target/64513
22107         * config/i386/i386.c (ix86_expand_prologue): Add
22108         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22109
22110         PR tree-optimization/64454
22111         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22112         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22113         for signed or [0, op1 - 1] for unsigned modulo.
22114         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22115         even if op1 does not satisfy integer_pow2p.
22116
22117         PR other/64370
22118         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22119
22120 2015-01-12  Jeff Law  <law@redhat.com>
22121
22122         PR target/64461
22123         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22124         (trunchiqi2, truncsihi2): Similarly.
22125
22126         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22127         rather than calling F.
22128
22129 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22130
22131         * tsan.c (instrument_expr): Use force_gimple_operand.
22132         Use may_be_nonaddressable_p instead of is_gimple_addressable.
22133
22134 2015-01-12  Richard Biener  <rguenther@suse.de>
22135
22136         PR tree-optimization/64530
22137         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22138         back dr1.
22139
22140 2015-01-12  Richard Biener  <rguenther@suse.de>
22141
22142         PR middle-end/64357
22143         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22144         latches properly.
22145
22146 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22147
22148         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22149         Cortex-A17 tuning parameters.
22150         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22151
22152 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22153
22154         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22155         * config/arm/arm.c (arm_macro_fusion_p): New function.
22156         (arm_macro_fusion_pair_p): Likewise.
22157         (TARGET_SCHED_MACRO_FUSION_P): Define.
22158         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22159         (ARM_FUSE_NOTHING): Likewise.
22160         (ARM_FUSE_MOVW_MOVT): Likewise.
22161         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22162         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22163         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22164         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22165         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22166         arm_cortex_a5_tune): Specify fuseable_ops value.
22167
22168 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
22169
22170         PR bootstrap/64561
22171         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22172         test for PIE with copy reloc.
22173         * configure: Regenerated.
22174
22175 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22176
22177         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22178         in gen_rtx_REG.
22179         (arm_tls_descseq_addr): Likewise.
22180         (arm_gen_movmemqi): Likewise.
22181         (arm_expand_epilogue_apcs_frame): Likewise.
22182         (arm_expand_epilogue): Likewise.
22183         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
22184         in gen_rtx_REG.
22185
22186 2015-01-12  Martin Liska  <mliska@suse.cz>
22187
22188         PR ipa/64550
22189         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22190         volatility for correct operands.
22191
22192 2015-01-12  Martin Liska  <mliska@suse.cz>
22193
22194         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22195         indication that a function is not leaf.
22196         (sem_function::compare_polymorphic_p): Likewise.
22197
22198 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22199
22200         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22201         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22202         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22203         fold-const.h, tree-check.h.
22204
22205 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22206
22207         PR ipa/63967
22208         PR ipa/64425
22209         * ipa-inline.c (compute_uninlined_call_time,
22210         compute_inlined_call_time): Use counts for extra precision when
22211         needed possible.
22212         (big_speedup_p): Fix formating.
22213         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22214         (relative_time_benefit): Remove.
22215         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22216         merge guessed and read profile paths.
22217         (inline_small_functions): Count only !optimize_size functions into
22218         initial size; be more lax about sanity check when profile is used;
22219         be sure to update inlined function profile when profile is read.
22220
22221 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22222
22223         PR ipa/63470
22224         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22225         cost when edge becomes direct.
22226         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22227         is resolved or when introducing new speculation.
22228
22229 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
22230
22231         PR ipa/64551
22232         PR ipa/64552
22233         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22234         '||' to fix typo issue.
22235
22236         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22237         accept and return NULL.
22238
22239 2015-01-12  Martin Liska  <mliska@suse.cz>
22240
22241         * cgraph.c (cgraph_edge::remove_callee): Move function to header
22242         file for being inlined.
22243         (cgraph_set_edge_callee): Delete.
22244         (cgraph_edge::redirect_callee): Move function to header file
22245         for being inlined.
22246         (cgraph_edge::make_direct): Use new function.
22247         (cgraph_edge::dump_edge_flags): New function created from
22248         static dump_edge_flags function.
22249         (cgraph_node::dump): Use new function.
22250         (cgraph_edge::verify_count_and_frequency): New function created
22251         from verify_edge_count_and_frequency.
22252         (cgraph_edge::verify_corresponds_to_fndecl): New function created
22253         from verify_edge_corresponds_to_fndecl.
22254         (verify_edge_corresponds_to_fndecl): Delete.
22255         (cgraph_node::verify_node): Use new function.
22256         * cgraph.h (cgraph_edge::set_callee): New function.
22257         (cgraph_edge::dump_edge_flags): Likewise.
22258         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22259
22260 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
22261
22262         * ipa-utils.c (estimate_function_body_sizes): Do not
22263         free node params when called late with early=true.
22264
22265 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
22266
22267         * doc/md.texi (Instruction Patterns): Rewrite text for
22268         clarity.
22269         (Example): Likewise.
22270
22271 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
22272
22273         * doc/invoke.texi (Option Summary): Break long lines.
22274         [(-fdiagnostics-color)]: Put long literal in @smallexample
22275         instead of inline.
22276         [(-fsanitize-recover)]: Likewise.
22277         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22278         [(-ffast-math)]: Likewise.
22279         [(--param max-inline-insns-recursive)]: Likewise.
22280         [(--param max-inline-recursive-depth)]: Likewise.
22281         [(-mno-text-section-literals)]: Likewise.
22282
22283 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
22284
22285         * doc/install.texi: Update for libgomp being renamed from "GNU
22286         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22287         Runtime Library".
22288         * doc/sourcebuild.texi: Likewise.
22289
22290 2015-01-10  Anthony Green  <green@moxielogic.com>
22291
22292         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22293         mul.x availability for moxiebox configuration.
22294
22295 2015-01-09  Anthony Green  <green@moxielogic.com>
22296
22297         * config/moxie/moxie.md: Tabify assembly output.
22298
22299 2015-01-09  Anthony Green  <green@moxielogic.com>
22300
22301         * config/moxie/moxie.md (CC_REG): Correct register definition.
22302
22303 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
22304
22305         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22306         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
22307         of log files.
22308
22309 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22310
22311         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22312
22313 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
22314             Jakub Jelinek  <jakub@redhat.com>
22315
22316         PR middle-end/64412
22317         * lto-streamer.h (lto_stream_offload_p): New declaration.
22318         * lto-streamer.c (lto_stream_offload_p): New variable.
22319         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22320         at the same time as section_name_prefix.
22321         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22322         if lto_stream_offload_p.
22323         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22324         stream TREE_TARGET_OPTION if lto_stream_offload_p.
22325         (write_ts_function_decl_tree_pointers): Don't
22326         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22327         * tree-streamer-in.c (unpack_value_fields): Don't stream
22328         TREE_TARGET_OPTION in if ACCEL_COMPILER.
22329         (lto_input_ts_function_decl_tree_pointers): Don't stream
22330         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22331         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22332         instead of section_name_prefix string comparisons.
22333
22334 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
22335
22336         PR rtl-optimization/64536
22337         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22338         tablejumps.
22339
22340 2015-01-09  Michael Collison  <michael.collison@linaro.org>
22341
22342         PR tree-optimization/64322
22343         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22344         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22345
22346 2015-01-09  Tom de Vries  <tom@codesourcery.com>
22347
22348         PR rtl-optimization/64539
22349         * regcprop.c (kill_clobbered_values): Factor out of ...
22350         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
22351         instead of note_stores with kill_clobbered_value.
22352
22353 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22354
22355          * ginclude/unwind-arm-common.h: Revert previous commit.
22356
22357 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
22358
22359         * config.gcc (arm*-*-freebsd*): New configuration.
22360         * config/arm/freebsd.h: New file.
22361         * config.host: Add extra components for arm*-*-freebsd*.
22362         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22363         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22364
22365 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22366
22367         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22368         for -mcpu=e6500.
22369         * config/rs6000/t-rtems: Add e6500 multilibs.
22370
22371 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22372
22373         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22374         MPC8540.
22375
22376 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22377
22378         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22379         MULTILIB_EXCEPTIONS.
22380
22381 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22382
22383         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22384         MULTILIB_EXCEPTIONS.
22385
22386 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22387
22388         * config/arm/t-rtems-eabi: Rename to...
22389         * config/arm/t-rtems: ...this.
22390         * config/arm/rtems-eabi.h: Rename to...
22391         * config/arm/rtems.h: ...this.
22392         * config.gcc (arm*-*-rtems*): Reflect changes above.
22393
22394 2015-01-09  Richard Biener  <rguenther@suse.de>
22395
22396         PR tree-optimization/64410
22397         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22398         on the LHS.
22399         (execute_update_addresses_taken): Deal with that.
22400         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22401         loads/stores for complex variables.
22402
22403 2015-01-09  Martin Liska  <mliska@suse.cz>
22404
22405         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22406         name comparison.
22407         (func_checker::compare_memory_operand): New function.
22408         (func_checker::compare_operand): Split case to newly
22409         added functions.
22410         (func_checker::compare_cst_or_decl): New function.
22411         (func_checker::compare_gimple_call): Identify
22412         memory operands.
22413         (func_checker::compare_gimple_assign): Likewise.
22414         * ipa-icf-gimple.h: New function.
22415
22416 2015-01-09  Martin Liska  <mliska@suse.cz>
22417
22418         PR ipa/64503
22419         * sreal.c (sreal::dump): Change unsigned format to signed for
22420         m_exp value.
22421         (sreal::to_double): Replace exp2 with scalbln.
22422
22423 2015-01-09  Martin Liska  <mliska@suse.cz>
22424
22425         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22426         * ipa-icf.c (sem_function::equals_private): Add support for target and
22427         (sem_item_optimizer::merge_classes): Remove redundant function
22428         optimization flags comparison.
22429         * tree.h (target_opts_for_fn): New function.
22430
22431 2015-01-09  Tom de Vries  <tom@codesourcery.com>
22432
22433         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22434
22435 2015-01-09  Kito Cheng  <kito@0xlab.org>
22436
22437         PR rtl-optimization/64348
22438         * lra-constraints.c (split_reg): Fix caller-save store/restore
22439         instruction generation.
22440
22441 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
22442
22443         PR gcov-profile/61790
22444         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22445         long long.  Fallback to int64_t if host doesn't have long long and
22446         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
22447
22448 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22449
22450         PR tree-optimization/63989
22451         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22452         from 1000 to 10000.
22453         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22454         (get_stridx): If we don't have a record for certain SSA_NAME,
22455         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22456         constant offset, call get_stridx_plus_constant.
22457         (get_stridx_plus_constant): New function.
22458         (zero_length_string): Don't use get_stridx here.
22459
22460         PR target/55023
22461         PR middle-end/64388
22462         * dse.c (struct insn_info): Mention frame_read set also
22463         before reload for tail calls on some targets.
22464         (scan_insn): Revert 2014-12-22 change.  Set frame_read
22465         also before reload for tail calls if
22466         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
22467         instead of add_non_frame_wild_read for non-const/memset
22468         tail calls after reload.
22469
22470 2015-01-08  Jason Merrill  <jason@redhat.com>
22471
22472         * ubsan.c (do_ubsan_in_current_function): New.
22473         (pass_ubsan::gate): Use it.
22474         * ubsan.h: Declare it.
22475         * convert.c (convert_to_integer): Use it.
22476
22477 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22478
22479         PR target/64338
22480         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22481         compare_code when it is unconditionally overwritten afterwards.
22482         Use ix86_reverse_condition instead of reverse_condition.  Don't
22483         change code if *reverse_condition* returned UNKNOWN and don't
22484         swap ct/cf and negate diff in that case.
22485
22486 2015-01-08  Mike Stump  <mikestump@comcast.net>
22487
22488         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22489         (pass_tsan_O0::gate): Likewise.
22490         * extend.texi (Function Attributes): Add no_sanitize_thread
22491         documentation.
22492
22493 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
22494
22495         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22496         for registering builtins.
22497         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22498         add -fopenmp to the argv_obstack used when invoking
22499         compile_for_target.
22500
22501         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22502         add "-m32" or "-m64" to argv_obstack.
22503         (generate_host_descr_file): Likewise, when invoking host_compiler.
22504         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22505         ld.
22506
22507 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22508
22509         * config/sh/sh-mem.cc: Use constant as second operand when emitting
22510         tstsi_t insns.
22511
22512 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22513
22514         PR target/55212
22515         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22516         constant load if constant operand fits into I08.
22517
22518 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22519
22520         PR sanitizer/64336
22521         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22522         and TREE_THIS_VOLATILE for MEM_REFs.
22523         (build5_stat): Fix up initialization of TREE_READONLY and
22524         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22525
22526 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22527
22528         PR target/64533
22529         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22530         of r for the second alternative of the destination operand.
22531
22532 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
22533
22534         PR target/36557
22535         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22536
22537 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22538
22539         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22540         keywords.
22541         ([-fivar-visibility], [-fvisibility]): Likewise.
22542
22543 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22544
22545         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22546         the file where @code, @command, etc is more appropriate.
22547
22548 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
22549
22550         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22551         of -mrecip= documentation.
22552
22553 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22554
22555         PR target/64505
22556         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22557         correct reload handler if -m32 -mpowerpc64 is used.
22558
22559 2015-01-06  Tom de Vries  <tom@codesourcery.com>
22560
22561         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22562
22563 2015-01-08  Christian Bruel  <christian.bruel@st.com>
22564
22565         PR target/64507
22566         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22567
22568 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22569
22570         PR tree-optimization/63259
22571         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22572         if optab exists for 16bit byteswap.
22573
22574 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
22575
22576         * opts.c (common_handle_option): Add support for
22577         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22578         * doc/invoke.texi: Document -fno-sanitize=all,
22579         -f{,no-}sanitize-recover=all.  Document that
22580         -fsanitize=float-cast-overflow is not enabled
22581         by -fsanitize=undefined.  Fix up documentation
22582         of -f{,no-}sanitize-recover.
22583
22584 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22585
22586         * config.gcc: Add Visium support.
22587         * configure.ac: Likewise.
22588         * configure: Regenerate.
22589         * doc/extend.texi (interrupt attribute): Add Visium.
22590         * doc/invoke.texi: Document Visium options.
22591         * doc/install.texi: Document Visium target.
22592         * doc/md.texi: Document Visium constraints.
22593         * common/config/visium: New directory.
22594         * config/visium: Likewise.
22595
22596 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22597
22598         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22599         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22600
22601 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22602
22603         * combine.c (combine_validate_cost): Do not count the cost of a
22604         split I2 twice.  Do not display it twice in the dump, either.
22605
22606 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22607
22608         Revert parts of r219199.
22609         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22610         <inttypes.h>.
22611         ([-Wtraditional]): Restore markup on <limits.h>.
22612
22613 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
22614
22615         PR c++/31397
22616         * doc/invoke.texi: Document -Wsuggest-override.
22617
22618 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
22619
22620         PR rtl-optimization/64287
22621         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22622         (process_options): Disable flag_ipa_ra if profiling.
22623
22624 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22625
22626         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22627
22628 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
22629
22630         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22631         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22632         put under #if TARGET_LOOPS guard.
22633
22634 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
22635
22636         * config/i386/i386.c (output_387_binary_op): Use std::swap.
22637
22638 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
22639
22640         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22641         * rtl.h (refers_to_regno_p): Add overload.
22642         * cse.c: Use it.
22643         * bt-load.c: Likewise.
22644         * combine.c: Likewise.
22645         * df-scan.c: Likewise.
22646         * sched-deps.c: Likewise.
22647         * config/s390/s390.c: Likewise.
22648         * config/m32r/m32r.c: Likewise.
22649         * config/rs6000/spe.md: Likewise.
22650         * config/rs6000/rs6000.c: Likewise.
22651         * config/pa/pa.c: Likewise.
22652         * config/stormy16/stormy16.c: Likewise.
22653         * config/cris/cris.c: Likewise.
22654         * config/arc/arc.md: Likewise.
22655         * config/arc/arc.c: Likewise.
22656         * config/sh/sh.md: Likewise.
22657         * config/sh/sh.c: Likewise.
22658         * config/frv/frv.c: Likewise.
22659
22660 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22661
22662         PR sanitizer/64265
22663         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22664         call as cleanup of the whole body.
22665         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22666         * tsan.c (replace_func_exit): New function.
22667         (instrument_func_exit): Moved earlier.
22668         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22669         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22670         been found.
22671         (tsan_pass): Don't call instrument_func_exit.
22672         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22673         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22674         inlining.
22675
22676         PR sanitizer/64344
22677         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22678         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22679         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
22680         if the result is integer_zerop, return NULL_TREE.
22681         * convert.c (convert_to_integer): Pass expr as ARG.
22682
22683         PR tree-optimization/64465
22684         * tree-inline.c (redirect_all_calls): During inlining
22685         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22686         changed the stmt to a non-throwing call.
22687
22688 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22689
22690         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22691         etc markup throughout the file.
22692
22693 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22694
22695         Enable experimental TSAN support for Ada.
22696         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22697
22698 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22699
22700         PR tree-optimization/64494
22701         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22702         clear SSA_NAME_ANTI_RANGE_P flag.
22703
22704 2015-01-05  Marek Polacek  <polacek@redhat.com>
22705
22706         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22707
22708 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22709
22710         Update copyright years.
22711
22712         * gcc.c (process_command): Update copyright notice dates.
22713         * gcov-dump.c: Ditto.
22714         * gcov.c: Ditto.
22715         * doc/cpp.texi: Bump @copying's copyright year.
22716         * doc/cppinternals.texi: Ditto.
22717         * doc/gcc.texi: Ditto.
22718         * doc/gccint.texi: Ditto.
22719         * doc/gcov.texi: Ditto.
22720         * doc/install.texi: Ditto.
22721         * doc/invoke.texi: Ditto.
22722
22723         * auto-profile.c, auto-profile.h: Fix up Copyright line.
22724
22725 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
22726
22727         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22728         verb tense, etc.
22729         ([-fvtable-verify], [-fvtv-debug]): Likewise.
22730         ([-Wabi]): Likewise.
22731         ([-fmessage-length]): Likewise.
22732         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22733         ([-Wno-discarded-qualifiers]): Likewise.
22734         ([-Wnodiscarded-array-qualifiers]): Likewise.
22735         ([-Wno-virtual-move-assign]): Likewise.
22736         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22737         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22738         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22739         ([-fsanitize-undefined-trap-on-error]): Likewise.
22740         ([-floop-interchange]): Likewise.
22741         ([-ftree-coalesce-inlined-vars]): Likewise.
22742         ([-fvect-cost-model]): Likewise.
22743         ([-flto]): Likewise.
22744         ([--param]): Likewise.
22745         (Spec Files): Likewise.
22746         ([-mstrict-align]): Likewise.
22747         ([-mfix-cortex-a53-835769]): Likewise.
22748         ([-march], [-mtune]): Likewise.
22749         ([-mpic-register]): Likewise.
22750         ([-munaligned-access]): Likewise.
22751         ([-msp8]): Likewise.
22752         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22753         (AVR Built-in Macros): Likewise.
22754         ([-mpreferred-stack-boundary]): Likewise.
22755         ([-mtune-crtl]): Likewise.
22756         ([-mashf]): Likewise.
22757         ([-mmcu=]): Likewise.
22758         ([-minrt]): Likewise.
22759         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22760         ([-mupper-regs]): Likewise.
22761         ([-matomic-model]): Likewise.
22762         ([-mdiv]): Likewise.
22763         ([-mzdcbranch]): Likewise.
22764         ([-mdisable-callt]): Likewise.
22765         ([-msoft-float]): Likewise.
22766         ([-m8byte-align]): Likewise.
22767         ([-fstack-reuse]): Likewise.
22768
22769 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22770
22771         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22772         Fix markup, light copy-editing.
22773         ([-fauto-profile]): Rewrite to fix formatting and content
22774         problems.
22775
22776 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22777
22778         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22779         Copy-edit description.
22780         ([-fisolate-erroneous-paths-attribute]): Likewise.
22781         * common.opt (fisolate-erroneous-paths-dereference):
22782         Copy-edit description.
22783         (fisolate-erroneous-paths-attribute): Likewise.
22784
22785 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22786
22787         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22788         tidy grammar.
22789
22790 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22791
22792         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22793         ([-fvtv-debug]): Likewise.
22794         ([-Wc++-compat]): Likewise.
22795         ([-Wc++11-compat]): Likewise.
22796         ([-Wc++14-compat]): Likewise.
22797         ([-Wno-sized-deallocation]): Likewise.
22798         ([-femit-class-debug-always]): Likewise.
22799         ([-femit-struct-debug-detailed]): Likewise.
22800         ([-fno-keep-inline-dllexport]): Likewise.
22801         ([-fira-algorithm]): Likewise.
22802         ([-fira-region]): Likewise.
22803         ([-flra-remat]): Likewise.
22804         ([-fipa-ra]): Likewise.
22805         ([-fhoist-adjacent-loads]): Likewise.
22806         ([-fisolate-erroneous-paths-dereference]): Likewise.
22807         ([-fisolate-erroneous-paths-attribute]): Likewise.
22808         ([-ftree-switch-conversion]): Likewise.
22809         ([-ftree-tail-merge]): Likewise.
22810         ([-ftree-loop-if-convert]): Likewise.
22811         ([-ftree-loop-if-convert-stores]): Likewise.
22812         ([-ftree-loop-distribution]): Likewise.
22813         ([-ftree-loop-distribute-patterns]): Likewise.
22814         ([-flto-compression-level]): Likewise.
22815         ([-flto-report]): Likewise.
22816         ([-flto-report-wpa]): Likewise.
22817         ([-fuse-linker-plugin]): Likewise.
22818         ([-mfix-cortex-a53-835769]): Likewise.
22819         ([-mno-fix-cortex-a53-835769]): Likewise.
22820         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22821         explicit listing; add a note to the discussion indicating they
22822         exist.  Reorder table to group similar options.  Add missing
22823         @opindex entries.  Add @need commands throughout the table to
22824         allow it to be split across multiple pages.
22825         ([-m8bit-idiv]): Fix @opindex.
22826         ([-mavx256-split-unaligned-load]): Likewise.
22827         ([-mavx256-split-unaligned-store]): Likewise.
22828         ([-mstack-protector-guard]): Likewise.
22829         ([-mcpu=]): Likewise.
22830         ([-mcpu]): Likewise.
22831         ([-mpointer-size=]): Likewise.
22832
22833 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
22834
22835         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22836         instead of `m' constraint.  Likewise for unnamed movb comparison
22837         patterns using reg_before_reload_operand predicate.
22838         * config/pa/predicates.md (reg_before_reload_operand): Tighten
22839         predicate to reject register index and LO_SUM DLT memory forms
22840         after reload.
22841
22842 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22843
22844         * doc/invoke.texi (Option Summary): Fix spelling of
22845         -fdevirtualize-at-ltrans.
22846         ([-fdevirtualize]): Fix markup.
22847         ([-fdevirtualize-speculatively]): Fix typo.
22848         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
22849         implementor-speaky.
22850         * common.opt (fdevirtualize-at-ltrans): Likewise.
22851         * ipa-devirt.c: Fix typos in comments throughout the file.
22852         (ipa_devirt): Fix typos in format strings for dump output.
22853
22854 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22855
22856         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22857         discussion of defaults, light copy-editing.
22858
22859 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22860
22861         * tsan.c (instrument_expr): corrected previous checkin.
22862
22863 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22864
22865         Instrument bit field and unaligned accesses for TSAN.
22866         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22867         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22868         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22869         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22870         unaligned memory regions.
22871
22872 2015-01-01  Anthony Green  <green@moxielogic.com>
22873
22874         * config/moxie/predicates.md (moxie_general_movsrc_operand):
22875         Restrict move source register offsets to 16 bits.
22876 \f
22877 Copyright (C) 2015 Free Software Foundation, Inc.
22878
22879 Copying and distribution of this file, with or without modification,
22880 are permitted in any medium without royalty provided the copyright
22881 notice and this notice are preserved.