re PR middle-end/68528 ([5 Only] Wrong constant folding)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-11-25  Richard Biener  <rguenther@suse.de>
2
3         PR middle-end/68528
4         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
5         on stripped operands.
6
7 2015-11-25  Nathan Sidwell  <nathan@acm.org>
8
9         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
10         (nvptx_declare_function_name): Move assignments next to register
11         declarations, and process params here.
12
13 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
14
15         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
16         both the symbol and the "dot" symbol for function descriptors. Fix
17         inversion for rename of symbols with dollar sign.
18
19 2015-11-25  Tom de Vries  <tom@codesourcery.com>
20
21         * cfgloop.c (find_single_latch): New function, factored out of ...
22         (flow_loops_find): ... here.
23         (verify_loop_structure): Improve verification of loop->latch.
24         * cfgloop.h (find_single_latch): Declare.
25         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
26
27 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28
29         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
30         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
31         (STARTFILE_SPEC): Use %(startfile_vtv).
32         (ENDFILE_SPEC): Use %(endfile_vtv).
33         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
34         ENDFILE_VTV_SPEC.
35
36         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
37
38 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
39
40         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
41         noce_can_store_speculate): Delete.
42         (noce_process_if_block): Don't try to handle single MEM stores.
43         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
44         * alias.c (memory_must_be_modified_in_insn_p): Delete.
45
46 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
47
48         PR rtl-optimization/68435
49         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
50         for conflicts between a, b and the set destinations.
51
52 2015-11-25  Richard Biener  <rguenther@suse.de>
53
54         PR tree-optimization/68517
55         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
56         Properly handle zero-sized types.
57
58 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
59
60         * ipa-inline-analysis.c: Include gimplify.h
61         (set_cond_stmt_execution_predicate,
62         set_switch_stmt_execution_predicate): Be sure to not leak locations
63         to function body.
64
65 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
66
67         PR target/67089
68         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
69         match_uaddsub_overflow): New functions.
70         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
71
72 2015-11-25  Richard Biener  <rguenther@suse.de>
73
74         PR tree-optimization/68492
75         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
76         op from scalars after operand swapping.
77
78 2015-11-25  Richard Biener  <rguenther@suse.de>
79
80         PR tree-optimization/68502
81         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
82         check that the step is a multiple of the type size.
83
84 2015-11-24  Michael Collison  <michael.collison@linaro.org>
85
86         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
87         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
88         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
89
90 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
91
92         * frame-header-opt.c (gate): Check for optimize > 0.
93         (has_inlined_assembly): New function.
94         (needs_frame_header_p): Remove is_leaf_function check,
95         add argument type check.
96         (callees_functions_use_frame_header): Add is_leaf_function
97         and has_inlined_assembly calls..
98         (set_callers_may_not_allocate_frame): New function.
99         (frame_header_opt): Add is_leaf_function call, add
100         set_callers_may_not_allocate_frame call.
101         * config/mips/mips.c (mips_compute_frame_info): Add check
102         to see if callee saved regs can be put in frame header.
103         (mips_expand_prologue): Add check to see if step1 is zero,
104         fix cfa restores when using frame header to store regs.
105         (mips_can_use_return_insn): Check to see if registers are
106         stored in frame header.
107         * config/mips/mips.h (machine_function): Add
108         callers_may_not_allocate_frame and
109         use_frame_header_for_callee_saved_regs fields.
110
111 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
112
113         PR rtl-optimization/68520
114         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
115         its bit was already set in BB_WITH.
116
117 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
118
119         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
120         double check that type is main variant.
121         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
122         variant.
123         (verify_type_variant): Verify that variants have no
124         TYPE_ALIAS_SET_KNOWN_P set
125         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
126         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
127         only for main variants; stream TYPE_ALIAS_SET as a bit.
128         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
129         accordingly.
130
131 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
132
133         * tree.c (make_vector_type): Properly compute canonical type of the
134         main variant.
135         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
136         a main variant.
137
138 2015-11-24  Nathan Sidwell  <nathan@acm.org>
139
140         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
141         VOIDmode, don't alter incoming mode.
142         (nvptx_split_reg_p): Delete.
143         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
144         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
145         maybe_split_mode calls.
146         (nvptx_print_operand): Use maybe_split_mode.
147
148 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
149
150         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
151         only for types where LTO sets them.
152         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
153         (make_vector_type): Likewise.
154         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
155         * tree.h (canonical_type_used_p): New inline.
156         * alias.c (get_alias_set): Handle structural equality for all
157         types that pass canonical_type_used_p.
158         (record_component_aliases): Look through all types with
159         record_component_aliases for possible pointers; sanity check that
160         the alias sets match.
161
162 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
163
164         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
165
166 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
167
168         * tree.c (free_node): New function.
169         (type_hash_canon): Use it.
170         * tree.h (free_node): Declare.
171
172 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
173             Michael Meissner  <meissner@linux.vnet.ibm.com>
174
175         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
176         (Fv2): New mode attribute to be used when ISA 2.07 instructions
177         are used on SF values, and ISA 2.06 instructions on DF values.
178         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
179         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
180         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
181         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
182         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
183         (fre<Fs>): Use <Fv2> instead of <Fv>.
184         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
185         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
186         (xsrdpi<mode>): Add support for the lround function.
187         (lround<mode>di2): Likewise.
188         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
189         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
190         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
191         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
192
193 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
194             Sebastian Pop  <s.pop@samsung.com>
195
196         PR tree-optimization/67984
197         * graphite-isl-ast-to-gimple.c (is_constant): New.
198         (get_rename): Call is_constant.
199         (get_new_name): Same.
200
201 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
202             Sebastian Pop  <s.pop@samsung.com>
203
204         * graphite-dependences.c: Only include graphite.h.
205         * graphite-isl-ast-to-gimple.c: Same.
206         * graphite-optimize-isl.c: Same.
207         * graphite-poly.c: Same.
208         * graphite-scop-detection.c: Same.
209         * graphite-sese-to-poly.c: Same.
210         * graphite.c: Same.
211         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
212         * graphite-poly.h: Same.
213         * graphite-scop-detection.h: Same.
214         * graphite.h: New.
215
216 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
217
218         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
219         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
220         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
221         function already takes care of checking what it can emit.
222
223 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
224
225         * doc/invoke.texi (-fpic): Add the AArch64 limit.
226         (-fPIC): Add AArch64.
227
228 2015-11-24  Tom de Vries  <tom@codesourcery.com>
229
230         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
231         (pass_lim::execute): Allow to run outside pass_tree_loop.
232
233 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
234
235         * gcc/config/aarch64/aarch64.md (add<mode>3):
236         Block early expansion into 2 add instructions.
237         (add<mode>3_pluslong): New pattern to combine complex
238         immediates into 2 additions.
239
240 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
241
242         PR target/66217
243         PR target/67677
244         PR target/68332
245         * config/rs6000/predicates.md (and_operand): Check that the operand
246         is a const_int before calling rs6000_is_valid_and_mask.
247
248 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
249
250         * config/aarch64/aarch64.md (*condjump): Rename to...
251         (condjump): ... This.
252         (*compare_condjump<mode>): New define_insn_and_split.
253         (*compare_cstore<mode>_insn): Likewise.
254         (*cstore<mode>_insn): Rename to...
255         (cstore<mode>_insn): ... This.
256         * config/aarch64/iterators.md (CMP): Handle ne code.
257         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
258
259 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
260
261         PR target/68497
262         * config/i386/i386.c (output_387_binary_op): Fix assertion for
263         -fno-checking case.
264
265 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
266
267         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
268         (val_ssa_equiv_hash_traits::remove): Likewise.
269         (pass_uncprop::execute): Adjust.
270
271 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
272
273         * hash-map-traits.h (simple_hashmap_traits ::remove): call
274         destructors on values that are being removed.
275         * mem-stats.h (hash_map): Pass type of values to
276         simple_hashmap_traits.
277         * tree-sra.c (sra_deinitialize): Remove work around for hash
278         maps not destructing values.
279         * genmatch.c (sinfo_hashmap_traits): Adjust.
280         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
281
282 2015-11-24  Richard Biener  <rguenther@suse.de>
283             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
284
285         PR middle-end/68375
286         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
287         bogus assertion.
288
289 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
290
291         PR target/68483
292         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
293         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
294         returns false.
295         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
296         whenever first is nelt or above.  Don't mask expected with
297         2 * nelt - 1.
298
299 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
300
301         PR c/68337
302         * gimple-fold.c: Include ipa-chkp.h.
303         (gimple_fold_builtin_memory_op): Don't fold call if we
304         are going to instrument it and it may copy pointers.
305
306 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
307             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
308
309         PR rtl-optimization/68194
310         PR rtl-optimization/68328
311         PR rtl-optimization/68185
312         * ree.c (combine_reaching_defs): Reject copy_needed case if
313         copies_list is not empty.
314
315 2015-11-24  Richard Biener  <rguenther@suse.de>
316
317         PR middle-end/68221
318         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
319         use mem_ref_offset.
320
321 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
322
323         PR rtl-optimization/68381
324         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
325         is poisoned.
326
327 2015-11-23  Nick Clifton  <nickc@redhat.com>
328             Jeff Law  <law@redhat.com>
329
330         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
331         the source/dest of the target extension require a different number of
332         hard registers.
333         (combine_set_extension): Remove #if 0 code.
334
335 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
336             Sebastian Pop  <s.pop@samsung.com>
337
338         PR tree-optimization/68314
339         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
340         * graphite-poly.c (new_scop): Remove original_schedule.
341         (free_scop): Same.
342         * graphite-poly.h (struct scop): Same.
343         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
344         (build_pbb_scattering_polyhedrons): Add back.
345         (build_scop_minimal_scattering): Remove.
346         (build_scop_scattering): Add back.
347         (build_scop_original_schedule): Remove.
348         (build_poly_scop): Revert to only call build_scop_scattering.
349
350 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
351             Sebastian Pop  <s.pop@samsung.com>
352
353         PR tree-optimization/68493
354         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
355         missing early return when codegen_error is set.
356
357 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
358             Sebastian Pop  <s.pop@samsung.com>
359
360         PR tree-optimization/68279
361         * graphite-poly.c (new_scop): Remove poly_scop_p.
362         * graphite-poly.h (struct scop): Same.
363         (build_poly_scop): Declare.
364         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
365         (cleanup_loop_iter_dom): New.
366         (build_loop_iteration_domains): Early return when scev analysis fails.
367         (create_pw_aff_from_tree): Same.
368         (add_condition_to_pbb): Same.
369         (add_conditions_to_domain): Same.
370         (add_conditions_to_constraints): Same.
371         (build_scop_iteration_domain): Same.
372         (build_poly_scop): Same.  Do not initialize poly_scop_p.
373         * graphite-sese-to-poly.h: Remove.
374         * graphite.c: Do not include graphite-sese-to-poly.h.
375         (graphite_transform_loops): Stop before code generation when
376         build_poly_scop fails.
377         * sese.c (scalar_evolution_in_region): Add fixme note about scev
378         analysis.
379
380 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
381             Sebastian Pop  <s.pop@samsung.com>
382
383         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
384         Remove call to update_ssa.
385         * sese.c (sese_insert_phis_for_liveouts): Same.
386
387 2015-11-23  Marek Polacek  <polacek@redhat.com>
388
389         PR tree-optimization/68455
390         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
391         extract_range_from_multiplicative_op_1 on symbolic ranges.
392
393 2015-11-23  Richard Henderson  <rth@redhat.com>
394
395         * optabs.def (uaddv4_optab, usubv4_optab): New.
396         * internal-fn.c (expand_addsub_overflow): Use them.
397         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
398
399         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
400         to reversed operands.
401         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
402         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
403         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
404         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
405         (*add<SWI>3_cconly_overflow_2): New.
406         (*add<SWI>3_cc_overflow_2): New.
407         (*addsi3_zext_cc_overflow_2): New.
408
409 2015-11-23  Richard Biener  <rguenther@suse.de>
410
411         PR tree-optimization/68465
412         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
413         Also record equalities from multiple predecessor blocks if
414         only one non-backedge exists.
415
416 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
417
418         PR target/68363
419         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
420         that are not INSN_P.
421
422 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
423
424         * config/aarch64/aarch64-builtins.c
425         (aarch64_gimple_fold_builtin): Fold FMULX.
426
427 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
428
429         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
430         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
431         after GCC header files and before graphite header files.
432         * graphite-dependences.c: Same.
433         * graphite-isl-ast-to-gimple.c: Same.
434         * graphite-optimize-isl.c: Same.
435         * graphite-poly.c: Same.
436         * graphite-scop-detection.c: Same.
437         * graphite-sese-to-poly.c: Same.
438         * graphite.c: Same.
439
440 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
441             Jiong Wang  <jiong.wang@arm.com>
442
443         PR tree-optimization/68317
444         PR tree-optimization/68326
445         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
446         final min and max are not infinity.
447
448 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
449             Richard Biener  <rguenther@suse.de>
450
451         PR tree-optimization/68327
452         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
453         compute vectype for non-relevant mask producers.
454         * gcc/tree-vect-stmts.c (vectorizable_comparison): Check stmt
455         relevance earlier.
456
457 2015-11-23  Tom de Vries  <tom@codesourcery.com>
458
459         PR tree-optimization/68460
460         * tree-parloops.c (gather_scalar_reductions): Also call
461         free_stmt_vec_info_vec if simple_loop_info == NULL.
462
463 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
464
465         * opts.c (finish_options): Allow -fsanitize-recover=address for
466         userspace sanitization.
467         * asan.c (asan_expand_check_ifn): Redefine recover_p.
468         * doc/invoke.texi (fsanitize-recover): Update documentation.
469
470 2015-11-23  Tom de Vries  <tom@codesourcery.com>
471
472         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
473
474 2015-11-23  Richard Biener  <rguenther@suse.de>
475
476         PR tree-optimization/68445
477         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
478         two different strides.
479
480 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
481
482         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
483         * config/s390/s390.c (s390_check_symref_alignment): Use new
484         symref flags, early abort on wrong alignment
485         (s390_secondary_reload): Use new symref flags.
486         (s390_encode_section_info): Likewise.
487         * config/s390/predicates.md: Likewise.
488
489 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
490
491         PR target/68390
492         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
493         for indirect function call.
494
495 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
496
497         * config/aarch64/aarch64-simd.md
498         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
499         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
500         (*aarch64_mulx_elt_to_64v2df): Likewise.
501         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
502         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
503         (vmulx_lane_f64): Likewise.
504         (vmulxq_lane_f32): Refactored & moved.
505         (vmulxq_lane_f64): Likewise.
506         (vmulx_laneq_f32): New.
507         (vmulx_laneq_f64): Likewise.
508         (vmulxq_laneq_f32): Likewise.
509         (vmulxq_laneq_f64): Likewise.
510         (vmulxs_lane_f32): Likewise.
511         (vmulxs_laneq_f32): Likewise.
512         (vmulxd_lane_f64): Likewise.
513         (vmulxd_laneq_f64): Likewise.
514
515 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
516
517         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
518         In LTO we do not compute TYPE_CANONICAL of pointers.
519         (gimple_canonical_types_compatible_p): Improve coments; sanity check
520         that pointers do not have canonical type that would make us believe
521         they are different.
522         * alias.c (get_alias_set): Do structural type equality on pointers;
523         enable pointer path for LTO; also glob pointer to vector with pointer
524         to vector element; glob pointers and references for LTO; do more strict
525         sanity checking about build_pointer_type returning the canonical type
526         which is also the main variant.
527         (record_component_aliases): When component type is pointer and we
528         do LTO; record void_type_node alias set.
529
530 2015-11-21  Nathan Sidwell  <nathan@acm.org>
531
532         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
533
534         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
535         leading blank line.
536         (write_func_decl_from_insn): Likewise.
537         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
538         (nvptx_file_end): Likewise.
539         (nvptx_function_end): Undent output.
540         (nvptx_expand_call): Fix formatting.
541         (nvptx_output_call_insn): Indent output.
542         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
543         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
544
545 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
546
547         PR debug/66432
548         * tree-inline.c (copy_debug_stmt): If
549         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
550         in decl_debug_args, don't call remap_gimple_op_r on it.
551
552 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
553
554         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
555         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
556         Check that all record types are complete.
557         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
558         compare alias sets for types w/o alias sets.
559
560 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
561
562         * config/sparc/sparc.md (umulxhi_vis): Move around.
563         (*umulxhi_sp64): Likewise.
564         (umulxhi_v8plus): Likewise.
565         (xmulx_vis): Likewise.
566         (*xmulx_sp64): Likewise.
567         (xmulx_v8plus): Likewise.
568         (xmulxhi_vis): Likewise.
569         (*xmulxhi_sp64): Likewise.
570         (xmulxhi_v8plus): Likewise.
571
572 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
573
574         PR 62314
575         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
576         (class layout): Update comment
577         (layout::print_any_fixits): New method.
578         (layout::move_to_column): New method.
579         (diagnostic_show_locus): Add call to layout.print_any_fixits.
580
581 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
582
583         PR middle-end/68221
584         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
585         has non-zero bias, subtract it in integer type instead of
586         pointer plus of negated bias.
587
588         PR middle-end/68339
589         * omp-low.c (expand_simd_clones): Call node->get_body () before
590         allocating stuff in GC.
591
592 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
593
594         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
595
596 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
597
598         * config/aarch64/aarch64.md (predicated): Copy attribute from
599         "arm.md".
600         * config/arm/arm.md (predicated): Added description.
601
602 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
603
604         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
605         for unaligned_access.
606         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
607         from matching condition.
608         (unaligned_loadhis): Likewise.
609         (unaligned_loadhiu): Likewise.
610         (unaligned_storesi): Likewise.
611         (unaligned_storehi): Likewise.
612
613 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
614
615         PR target/68149
616         * config/arm/arm.md (unaligned_loaddi): Delete.
617         (unaligned_storedi): Likewise.
618         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
619         unaligned DImode memory ops.  Instead perform two back-to-back
620         unaligned SImode ops.
621
622 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
623             James Norris  <jnorris@codesourcery.com>
624
625         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
626         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
627
628 2015-11-20  Alan Hayward <alan.hayward@arm.com>
629
630         PR tree-optimization/68413
631         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
632         evolution base
633         (vectorizable_reduction): Use cached base
634
635 2015-11-20  Tom de Vries  <tom@codesourcery.com>
636
637         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
638         dump-file string.
639         (try_create_reduction_list): Same.  Fix typo in dump-file string.
640
641 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
642
643         * doc/md.texi (Standard Names): Move entry for addptr3 around,
644         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
645         glitch in entries for cbranch4 and jump.
646
647 2015-11-20  Tom de Vries  <tom@codesourcery.com>
648
649         PR tree-optimization/68373
650         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
651         of ...
652         (scev_const_prop): ... here.
653         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
654         * tree-parloops.c (try_create_reduction_list): Call
655         final_value_replacement_loop.
656
657 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
658
659         PR tree-optimization/52272
660         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
661         (struct iv_common_cand_hasher): New struct.
662         (iv_common_cand_hasher::hash): New function.
663         (iv_common_cand_hasher::equal): New function.
664         (struct ivopts_data): New fields, iv_common_cand_tab and
665         iv_common_cands.
666         (tree_ssa_iv_optimize_init): Initialize above fields.
667         (record_common_cand, common_cand_cmp): New functions.
668         (add_iv_candidate_derived_from_uses): New function.
669         (add_iv_candidate_for_use): Record iv_common_cands derived from
670         iv use in hash table, instead of adding candidates directly.
671         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
672         (record_important_candidates): Add important candidates to iv uses'
673         related_cands.  Always keep related_cands for future use.
674         (try_add_cand_for): Use iv uses' related_cands.
675         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
676         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
677
678 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
679
680         * config/s390/s390.md ("bswaphi2"): New pattern.
681
682 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
683
684         * config/s390/s390.md (GPR1_REGNUM): New constant.
685         ("*trunc<BFP:mode><DFP_ALL:mode>2")
686         ("*trunc<DFP_ALL:mode><BFP:mode>2")
687         ("trunc<BFP:mode><DFP_ALL:mode>2")
688         ("trunc<DFP_ALL:mode><BFP:mode>2")
689         ("*extend<BFP:mode><DFP_ALL:mode>2")
690         ("*extend<DFP_ALL:mode><BFP:mode>2")
691         ("extend<BFP:mode><DFP_ALL:mode>2")
692         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
693
694 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
695             Sebastian Pop  <s.pop@samsung.com>
696
697         PR tree-optimization/68428
698         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
699         over basic blocks outside the scop.
700
701 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
702             Sebastian Pop  <s.pop@samsung.com>
703
704         PR tree-optimization/68341
705         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
706         gcc_unreachable and safely fail codegen.
707         (copy_loop_close_phi_args): Do not insert merge phis in a basic
708         block with loop phi nodes.
709         (edge_for_new_close_phis): New.
710         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
711
712 2015-11-19  Nathan Sidwell  <nathan@acm.org>
713
714         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
715         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
716         (nvptx_declare_objec_name): Likewise.
717
718 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
719
720         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
721         (get_false_edge_from_guard_bb): Move...
722         * sese.c (get_false_edge_from_guard_bb)
723         (get_true_edge_from_guard_bb): ... here.
724
725 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
726
727         Revert
728         2015-11-18  Alan Modra  <amodra@gmail.com>
729
730         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
731         type-limits warning.
732
733
734 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
735
736         * tree.h (desired_pro_or_demotion_p): New function.
737         * tree-vrp.c (simplify_cond_using_ranges): Call it.
738
739 2015-11-19  Michael Matz  <matz@suse.de>
740
741         * fwprop.c (update_uses): Use flag_checking instead of
742         gcc_checking_assert.
743
744 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
745
746         * doc/gty.texi (Support for inheritance): Fix missing
747         parentheses in example.
748
749 2015-11-19  Marek Polacek  <polacek@redhat.com>
750
751         PR tree-optimization/68431
752         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
753
754 2015-11-19  Nathan Sidwell  <nathan@acm.org>
755
756         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
757         atomic_exchange<mode>): Input values can be immediates.
758
759 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
760
761         PR lto/61313
762         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
763         by the user.
764         * configure: Regenerate.
765
766 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
767
768         PR target/68408
769         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
770         (DTORS_SECTION_ASM_OP): Likewise.
771
772 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
773
774         PR rtl-optimization/68376
775         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
776         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
777
778 2015-11-19  Richard Biener  <rguenther@suse.de>
779
780         PR middle-end/68117
781         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
782         redirect_edge_var_map_destroy.
783
784 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
785
786         PR target/67770
787         * config/i386/i386.md (simple_return): Disable if
788         ix86_static_chain_on_stack is true.
789
790 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
791
792         PR bootstrap/68393
793         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
794         destinations.
795
796 2015-11-18  Jeff Law  <law@redhat.com>
797
798         PR tree-optimization/68198
799         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
800         between threading a multi-way branch and a thread path that contains
801         a multi-way branch.  Disallow the case where a path contains a
802         multi-way branch and does not thread a multi-way branch.
803         (thread_through_all_blocks): Update comment.
804
805 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
806
807         PR c/65083
808         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
809         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
810         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
811         functions before defining as macros.
812
813 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
814
815         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
816         (nvptx_record_offload_symbol): Remove code compensating for lack
817         of default dimension handling.
818         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
819
820 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
821
822         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
823         type to bool for early exit.
824         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
825         in case of error.
826         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
827         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
828         predecessor dominates the other.
829         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
830         element is not found it returns -1.
831         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
832         out early when codegen fails.
833         (graphite_regenerate_ast_isl): Remove codegen region when pending
834         phis could not be generated.
835
836 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
837
838         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
839         semicolon.
840         (class translate_isl_ast_to_gimple): Indentation.
841         (translate_pending_phi_nodes): Comment.
842         (add_parameters_to_ivs_params): Moved from sese.c inside class
843         translate_isl_ast_to_gimple.
844         (get_max_schedule_dimensions): Same.
845         (generate_isl_context): Same.
846         (extend_schedule): Same.
847         (generate_isl_schedule): Same.
848         (set_options): Same.
849         (scop_to_isl_ast): Same.
850         (is_valid_rename): Same.
851         (get_rename): Same.
852         (get_rename_from_scev): Same.
853         (get_def_bb_for_const): Same.
854         (get_new_name): Same.
855         (collect_all_ssa_names): Same.
856         (copy_loop_phi_args): Same.
857         (copy_loop_phi_nodes): Same.
858         (copy_loop_close_phi_args): Same.
859         (copy_loop_close_phi_nodes): Same.
860         (copy_cond_phi_args): Same.
861         (copy_cond_phi_nodes): Same.
862         (graphite_copy_stmts_from_block): Same.
863         (copy_bb_and_scalar_dependences): Same.
864         (add_phi_arg_for_new_expr): Same.
865         (rename_uses): Same.
866         (set_rename): Same.
867         (set_rename_for_each_def): Same.
868         (gsi_insert_earliest): Same.
869         (rename_all_uses): Same.
870         (codegen_error_p): Same.
871         (print_isl_ast_node): Same.
872         (translate_isl_ast_for_loop): Call function codegen_error_p.
873         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
874         (translate_isl_ast_node_user): Make nb_loops const and release
875         iv_map before exit.
876         (get_true_edge_from_guard_bb): Move all free-functions early.
877         (get_false_edge_from_guard_bb): Same.
878         (bb_contains_loop_close_phi_nodes): Same.
879         (bb_contains_loop_phi_nodes): Same.
880         (is_loop_closed_ssa_use):  Same.
881         (number_of_phi_nodes): Same.
882         (phi_uses_name): Same.
883         (later_of_the_two): Same.
884         (substitute_ssa_name):
885         (get_edges): Same.
886         (get_loc): Same.
887         (get_loop_init_value): Same.
888         (find_init_value): Same.
889         (find_init_value_close_phi): Same.
890         (ast_build_before_for): Same.
891         (graphite_regenerate_ast_isl): Formatting changes.
892         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
893         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
894         (set_rename): Same.
895         (gsi_insert_earliest): Same.
896         (collect_all_ssa_names): Same.
897         (rename_all_uses): Same.
898         (rename_uses): Same.
899         (get_def_bb_for_const): Same.
900         (copy_loop_phi_nodes): Same.
901         (copy_loop_close_phi_args): Same.
902         (copy_loop_close_phi_nodes): Same.
903         (copy_cond_phi_args): Same.
904         (copy_cond_phi_nodes): Same.
905         (set_rename_for_each_def): Same.
906         (graphite_copy_stmts_from_block): Same.
907         (copy_bb_and_scalar_dependences): Same.
908         (if_region_set_false_region): Same.
909         (scev_analyzable_p): Same.
910         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
911
912 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
913
914         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
915         commit from r125920 for FreeBSD.
916
917 2015-11-18  Jason Merrill  <jason@redhat.com>
918
919         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
920         to be vecs of vecs.
921         (add_finalizer): Split out from ggc_internal_alloc.
922         (ggc_handle_finalizers): Run finalizers for the current depth.
923         (init_ggc, ggc_pch_read): Reserve space for finalizers.
924
925 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
926
927         PR target/68410
928         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
929         from || expression.
930
931 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
932
933         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
934         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
935         and atmega328pb.
936         * doc/avr-mmcu.texi: Regenerate.
937
938 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
939
940         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
941         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
942         (struct bb_sese): New struct.
943         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
944         (BB_GET_SESE, BB_SET_SESE): Define.
945         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
946         (nvptx_find_sese): New.
947         (nvptx_neuter_pars): Find SESE regions when optimizing.
948
949 2015-11-18  Alan Modra  <amodra@gmail.com>
950
951         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
952         type-limits warning.
953
954 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
955
956         PR bootstrap/68406
957         * hash-set.h (hash_set::traverse): Expand Key typedef.
958
959 2015-11-18  Martin Liska  <mliska@suse.cz>
960
961         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
962         options struct.
963
964 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
965
966         * config/nvptx/nvptx.c (global_lock_var): New.
967         (nvptx_global_lock_addr): New.
968         (nvptx_lockless_update): Recomment and adjust for clarity.
969         (nvptx_lockfull_update): New.
970         (nvptx_reduction_update): New.
971         (nvptx_goacc_reduction_fini): Call it.
972
973 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
974
975         * regrename.h (struct du_head): Add target_data_1 and target_data_2
976         fields.
977         * regrename.c (create_new_chain): Clear entire struct after allocating.
978
979         * config/i386/i386.opt (mmitigate-rop): New option.
980         * doc/invoke.texi (mmitigate-rop): Document.
981         * config/i386/i386.c: Include "regrename.h".
982         (ix86_rop_should_change_byte_p, reg_encoded_number,
983         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
984         static functions.
985         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
986         * config/i386/i386.md (attr "modrm_class"): New.
987         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
988         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
989         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
990
991 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
992
993         PR target/68405
994         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
995
996 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
997
998         PR tree-optimization/68157
999         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1000         pow_stmt or mul_stmt from stmt's uid.
1001         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1002
1003 2015-11-18  Martin Liska  <mliska@suse.cz>
1004
1005         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1006
1007 2015-11-18  Martin Liska  <mliska@suse.cz>
1008
1009         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1010         Fix GNU coding style.
1011         (find_def_preds): Use auto_vec.
1012         (destroy_predicate_vecs): Change signature of the function.
1013         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1014         new signature.
1015         (simplify_preds_4): Use destroy_predicate_vecs instread of
1016         just releasing preds vector.
1017         (normalize_preds): Likewise.
1018         (is_use_properly_guarded): Use new signature of
1019         destroy_predicate_vecs.
1020         (find_uninit_use): Likewise.
1021
1022 2015-11-18  Richard Biener  <rguenther@suse.de>
1023
1024         PR tree-optimization/67790
1025         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1026         IL rewrite for MINUS_EXPR reductions, rename back to ...
1027         (vect_is_simple_reduction): ... this, removing the wrapper.
1028         (vect_force_simple_reduction): Adjust.
1029         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1030         reductions and make use if reduc_index in all places.  For
1031         the final reduction of MINUS_EXPR use PLUS_EXPR.
1032
1033 2015-11-18  Alan Modra  <amodra@gmail.com>
1034
1035         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1036         to ld.
1037         * configure: Regenerate.
1038
1039 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1040
1041         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1042
1043 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1044
1045         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1046         uses of ssa_name with constant.
1047
1048 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1049
1050         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1051         something changed.
1052
1053 2015-11-17  Tom de Vries  <tom@codesourcery.com>
1054
1055         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1056         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1057         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1058
1059 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
1060
1061         * regrename.c (regrename_find_superclass): New function, code moved
1062         from ...
1063         (rename_chains): ... here.  Call it.
1064         * regrename.h (regrename_find_superclass): Declare.
1065
1066         * regrename.c (record_out_operands): Terminate earlyclobbered
1067         operands here.
1068
1069         PR target/66785
1070         * regrename.c (record_operand_use): Keep track of failed operands
1071         and stop appending if we see any.
1072         * regrename.h (struct operand_rr_info): Add a failed field and shrink
1073         n_chains to short.
1074
1075 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1076
1077         PR 48568
1078         * doc/extend.texi (Common Function Attributes) [visibility]:
1079         Add cross-references to matching variable and type attributes.
1080         (Common Variable Attributes) [visibility]: Add missing entry.
1081
1082 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1083
1084         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1085         entries that map directly to optabs.
1086
1087 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1088
1089         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1090         entries that map directly to optabs.
1091
1092 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1093
1094         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1095         * internal-fn.c (direct_internal_fn_array): Update accordingly.
1096         * tree-vectorizer.h (vectorizable_function): Delete.
1097         * tree-vect-stmts.c: Include internal-fn.h.
1098         (vectorizable_internal_function): New function.
1099         (vectorizable_function): Inline into...
1100         (vectorizable_call): ...here.  Explicitly reject calls that read
1101         from or write to memory.  Try using an internal function before
1102         falling back on the old vectorizable_function behavior.
1103
1104 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1105
1106         * target.def (builtin_vectorized_function): Take a combined_fn (in
1107         the form of an unsigned int) rather than a function decl.
1108         (builtin_md_vectorized_function): New.
1109         * targhooks.h (default_builtin_vectorized_function): Replace the
1110         fndecl argument with an unsigned int.
1111         (default_builtin_md_vectorized_function): Declare.
1112         * targhooks.c (default_builtin_vectorized_function): Replace the
1113         fndecl argument with an unsigned int.
1114         (default_builtin_md_vectorized_function): New function.
1115         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1116         New hook.
1117         * doc/tm.texi: Regenerate.
1118         * tree-vect-stmts.c (vectorizable_function): Update call to
1119         builtin_vectorized_function, also passing internal functions.
1120         Call builtin_md_vectorized_function for target-specific builtins.
1121         * config/aarch64/aarch64-protos.h
1122         (aarch64_builtin_vectorized_function): Replace fndecl argument
1123         with an unsigned int.
1124         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1125         (aarch64_builtin_vectorized_function): Update after above changes.
1126         Use CASE_CFN_*.
1127         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1128         fndecl argument with an unsigned int.
1129         * config/arm/arm-builtins.c: Include case-cfn-macros.h
1130         (arm_builtin_vectorized_function): Update after above changes.
1131         Use CASE_CFN_*.
1132         * config/i386/i386.c: Include case-cfn-macros.h
1133         (ix86_veclib_handler): Take a combined_fn rather than a
1134         built_in_function.
1135         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
1136         mathfn_built_in rather than calling builtin_decl_implicit directly.
1137         (ix86_builtin_vectorized_function) Update after above changes.
1138         Use CASE_CFN_*.
1139         * config/rs6000/rs6000.c: Include case-cfn-macros.h
1140         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1141         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
1142         than calling builtin_decl_implicit directly.
1143         (rs6000_builtin_vectorized_function): Update after above changes.
1144         Use CASE_CFN_*.  Move BUILT_IN_MD to...
1145         (rs6000_builtin_md_vectorized_function): ...this new function.
1146         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1147
1148 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1149
1150         * tree-vect-patterns.c: Include internal-fn.h.
1151         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1152
1153 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1154
1155         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1156         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1157
1158 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1159
1160         * builtins.c (expand_errno_check, expand_builtin_mathfn)
1161         (expand_builtin_mathfn_2): Delete.
1162         (expand_builtin): Remove handling of functions with
1163         internal function equivalents.
1164         * internal-fn.def (SET_EDOM): New internal function.
1165         * internal-fn.h (set_edom_supported_p): Declare.
1166         * internal-fn.c (expand_SET_EDOM): New function.
1167         (set_edom_supported_p): Likewise.
1168         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1169         Rewrite comment at head of file.
1170         (is_call_dce_candidate): Rename to...
1171         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
1172         or gimple_call_builtin_p here.
1173         (edom_only_function): New function.
1174         (shrink_wrap_one_built_in_call_with_conds): New function, split out
1175         from...
1176         (shrink_wrap_one_built_in_call): ...here.
1177         (can_use_internal_fn, use_internal_fn): New functions.
1178         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1179         for calls that have an lhs.
1180         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1181         (pass_call_cdce::execute): Skip blocks that are optimized for size.
1182         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
1183         calls with an lhs.
1184         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1185         at -O and above.
1186
1187 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1188
1189         * builtins.h (called_as_built_in): Declare.
1190         * builtins.c (called_as_built_in): Make external.
1191         * internal-fn.h (expand_internal_call): Define a variant that
1192         specifies the internal function explicitly.
1193         * internal-fn.c (expand_load_lanes_optab_fn)
1194         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1195         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1196         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1197         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1198         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1199         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1200         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1201         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1202         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1203         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1204         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1205         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1206         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1207         argument.
1208         (internal_fn_expanders): Update prototype.
1209         (expand_internal_call): Define a variant that specifies the
1210         internal function explicitly. Use it to implement the previous
1211         interface.
1212         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1213         functions as calls to internal functions.
1214
1215 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1216
1217         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1218         (generated_files): Likewise.
1219         (s-cfn-operators, cfn-operators.pd): New rules.
1220         (s-match): Depend on cfn-operators.pd.
1221         * gencfn-macros.c: Expand comment to describe -o behavior.
1222         (print_define_operator_list): New function.
1223         (main): Accept -o.  Call print_define_operator_list.
1224         * genmatch.c (main): Add the current directory to the include path.
1225         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
1226         instead.
1227
1228 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1229
1230         * doc/match-and-simplify.texi: Document the "null" identifier.
1231         * genmatch.c (id_base::NULL_ID): New kind.
1232         (null_id): New variable.
1233         (get_operator): Add a parameter that says whether null identifiers
1234         are allowed.
1235         (contains_id): New function.
1236         (lower_for): Skip substitutions that would have a null_id in
1237         either the match or the result.
1238         (parser::parse_for): Allow the null identifier to be used.
1239         (parser::parse_operator_list): Likewise.
1240         (main): Initialize null_id.
1241
1242 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1243
1244         * match.pd: Use HYPOT and COS rather than hypot and cos.
1245         Use CASE_CFN_* macros.  Guard log/exp folds with
1246         SCALAR_FLOAT_TYPE_P.
1247         * genmatch.c (internal_fn): New enum.
1248         (fn_id::fn): Change to an unsigned int.
1249         (fn_id::fn_id): Accept internal_fn too.
1250         (add_builtin): Rename to...
1251         (add_function): ...this and turn into a template.
1252         (get_operator): Only try one variation if the original name fails.
1253         Only add _EXPR if the original name was all lower case.
1254         Try converting internal and built-in function names to their
1255         CFN equivalents.
1256         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1257         (dt_simplify::gen_1): Likewise.
1258         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1259         and get_call_combined_fn for generic.
1260         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1261         (decision_tree::gen): Likewise.
1262         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1263         Use add_function rather than add_builtin.  Register internal
1264         functions too.
1265         * generic-match-head.c: Include case-cfn-macros.h.
1266         * gimple-fold.c (replace_stmt_with_simplification): Use
1267         gimple_call_combined_fn to test whether we can keep an
1268         existing call.
1269         * gimple-match.h (code_helper): Replace built_in_function
1270         with combined_fn.
1271         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1272         and case-fn-macros.h.
1273         (gimple_resimplify1): Use fold_const_call.
1274         (gimple_resimplify2, gimple_resimplify3): Likewise.
1275         (build_call_internal, build_call): New functions.
1276         (maybe_push_res_to_seq): Use them.
1277         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
1278         rather than a built-in function.
1279         * tree.h (build_call_expr_internal_loc): Declare.
1280         (maybe_build_call_expr_loc): Likewise.
1281         * tree.c (build_call_expr_internal_loc_array): New function.
1282         (maybe_build_call_expr_loc): Likewise.
1283
1284 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1285
1286         * builtins.h (mathfn_built_in): Add a variant that takes
1287         a combined_fn.
1288         * builtins.c: Include case-cfn-macros.h.
1289         (CASE_MATHFN): Use CASE_CFN_*.
1290         (CASE_MATHFN_REENT): Use CFN_ codes.
1291         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1292         argument with a combined_fn.
1293         (mathfn_built_in): Add a variant that takes a combined_fn.
1294         (expand_builtin_int_roundingfn_2): Update callers accordingly.
1295         (fold_builtin_sincos, fold_builtin_classify): Likewise.
1296
1297 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1298
1299         * tree-vect-patterns.c: Include case-cfn-macros.h.
1300         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1301
1302 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1303
1304         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1305         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1306         (pass_cse_sincos::execute): Likewise.
1307
1308 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1309
1310         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1311         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1312         (decrement_power, acceptable_pow_call): Likewise.
1313         (attempt_builtin_copysign): Likewise.
1314
1315 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1316
1317         * tree-vrp.c: Include case-cfn-macros.h.
1318         (extract_range_basic): Switch on combined_fn rather than handling
1319         built-in functions and internal functions separately.
1320
1321 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1322
1323         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1324         than a built_in_function.
1325         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1326         a function decl.
1327         (integer_valued_real_call_p): Likewise.
1328         * fold-const.c: Include case-cfn-macros.h
1329         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1330         (negate_expr_p): Update accordingly.
1331         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1332         a function decl.
1333         (integer_valued_real_call_p): Likewise.
1334         (tree_invalid_nonnegative_warnv_p): Update accordingly.
1335         (integer_valued_real_p): Likewise.
1336         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1337         to tree_call_nonnegative_warnv_p.
1338         (gimple_call_integer_valued_real_p): Likewise
1339         integer_valued_real_call_p.
1340         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1341         (backprop::process_builtin_call_use): Extend to combined_fn.
1342         (strip_sign_op_1): Likewise.
1343         (backprop::process_use): Don't check for built-in calls here.
1344         (backprop::execute): Likewise.
1345         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1346
1347 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1348
1349         * fold-const-call.h (fold_const_call): Replace built_in_function
1350         arguments with combined_fn arguments.
1351         * fold-const-call.c: Include case-cfn-macros.h.
1352         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1353         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1354         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1355         built_in_function arguments with combined_fn arguments.
1356         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1357         (fold_builtin_3): Update calls to fold_const_call.
1358
1359 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1360
1361         * Makefile.in (HASH_TABLE_H): Add GGC_H.
1362         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1363         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1364         (build/gencfn-macros$(build_exeext): New rules.
1365         (genprogerr): Add cfn-macros.
1366         * hash-set.h (hash_set): Use the traits value_type as the key.
1367         * gencfn-macros.c: New file.
1368
1369 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1370
1371         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1372         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1373         * builtins.c (associated_internal_fn): Handle them.
1374
1375 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1376
1377         * builtins.h (associated_internal_fn): Declare.
1378         (replacement_internal_fn): Likewise.
1379         * builtins.c: Include internal-fn.h
1380         (associated_internal_fn, replacement_internal_fn): New functions.
1381         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1382         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1383         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1384         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1385         (LDEXP): New functions.
1386         * internal-fn.c: Include recog.h.
1387         (unary_direct, binary_direct): New macros.
1388         (expand_direct_optab_fn): New function.
1389         (expand_unary_optab_fn): New macro.
1390         (expand_binary_optab_fn): Likewise.
1391         (direct_unary_optab_supported_p): Likewise.
1392         (direct_binary_optab_supported_p): Likewise.
1393
1394 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1395
1396         * coretypes.h (tree_pair): New type.
1397         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
1398         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1399         * internal-fn.h (direct_internal_fn_info): New structure.
1400         (direct_internal_fn_array): Declare.
1401         (direct_internal_fn_p, direct_internal_fn): New functions.
1402         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1403         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1404         (mask_store_direct, store_lanes_direct): New macros.
1405         (direct_internal_fn_array) New array.
1406         (get_multi_vector_move): Return the optab handler without asserting
1407         that it is available.
1408         (expand_LOAD_LANES): Rename to...
1409         (expand_load_lanes_optab_fn): ...this and add an optab argument.
1410         (expand_STORE_LANES): Rename to...
1411         (expand_store_lanes_optab_fn): ...this and add an optab argument.
1412         (expand_MASK_LOAD): Rename to...
1413         (expand_mask_load_optab_fn): ...this and add an optab argument.
1414         (expand_MASK_STORE): Rename to...
1415         (expand_mask_store_optab_fn): ...this and add an optab argument.
1416         (direct_internal_fn_types, direct_optab_supported_p)
1417         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1418         (direct_internal_fn_supported_p): New functions.
1419         (direct_mask_load_optab_supported_p): New macro.
1420         (direct_load_lanes_optab_supported_p): Likewise.
1421         (direct_mask_store_optab_supported_p): Likewise.
1422         (direct_store_lanes_optab_supported_p): Likewise.
1423
1424 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1425
1426         * tree-core.h (internal_fn): Move immediately after the definition
1427         of built_in_function.
1428         (combined_fn): New enum.
1429         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1430         (internal_fn_p, as_internal_fn): New functions.
1431         (get_call_combined_fn, combined_fn_name): Declare.
1432         * tree.c (get_call_combined_fn): New function.
1433         (combined_fn_name): Likewise.
1434         * gimple.h (gimple_call_combined_fn): Declare.
1435         * gimple.c (gimple_call_combined_fn): New function.
1436
1437 2015-11-17  Martin Sebor  <msebor@redhat.com>
1438
1439         PR c++/68308
1440         * cp/init.c (build_new_1): Check for expression constness
1441         the right way.
1442
1443 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1444
1445         PR target/53587
1446         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1447         option list.
1448         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
1449         discussion of the Microsoft structure layout details here from
1450         its former home in extend.texi.
1451         * doc/extend.texi (x86 Variable Attributes): Replace detailed
1452         discussion with pointer to its new location.  Add cross-reference
1453         to corresponding type attributes.
1454         (x86 Type Attributes): Add cross-references to command-line options
1455         and variable attributes.
1456
1457 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
1458
1459         PR middle-end/68134
1460         * targhooks.c (default_get_mask_mode): Filter out
1461         scalar modes returned by mode_for_vector.
1462
1463 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1464
1465         PR target/68143
1466         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1467         offset from dstbase and use it appropriately in
1468         adjust_automodify_address.
1469         (arm_block_set_aligned_vect): Likewise.
1470
1471 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1472
1473         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1474         (MULTILIB_DIRNAMES): Adjust accordingly.
1475
1476 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
1477
1478         * config/aarch64/aarch64-cores.def (cortex-a35): New.
1479         * config/aarch64/aarch64.c (cortexa35_tunings): New.
1480         * config/aarch64/aarch64-tune.md: Regenerate.
1481         * doc/invoke.texi (-mcpu): Add Cortex-A35
1482
1483 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
1484
1485         PR target/68263
1486         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1487         to 32 for IAMCU.
1488         * config/i386/sse.md (*mov<mode>_internal): Always enable
1489         AVX and SSE unaligned moves for IAMCU.
1490
1491 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1492
1493         * tree-if-conv.c: Include varasm.h
1494         (ref_DR_map): Define.
1495         (baseref_DR_map): Like wise
1496         (struct ifc_dr): Add new tree predicate field.
1497         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1498         (memrefs_read_or_written_unconditionally): Remove.
1499         (write_memrefs_written_at_least_once): Remove.
1500         (ifcvt_memrefs_wont_trap): Use hash maps to query
1501         unconditional read/written information.
1502         (if_convertible_loop_p_1):  Initialize hash maps and predicates
1503         before hashing data references and delete hashmaps at the end.
1504
1505 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
1506
1507         PR 56036
1508         * doc/invoke.texi (Optimize Options): Move @end table to the right
1509         place.
1510
1511 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
1512
1513         PR 65129
1514         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1515         return value.
1516
1517 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1518
1519         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1520         128-bit types, just types that fit in a single vector.
1521         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1522
1523 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
1524
1525         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1526         in the user documentation.
1527         (define_peephole2, define_split): Similarly.
1528
1529 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1530
1531         * lto-streamer-out.c (write_global_references): Adjust integer type.
1532         (lto_output_decl_state_refs): Likewise.
1533
1534 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1535
1536         * config/arm/arm-cores.def (cortex-a35): New.
1537         * config/arm/arm.c (arm_cortex_a35_tune): New.
1538         * config/arm/arm-tables.opt: Regenerate.
1539         * config/arm/arm-tune.md: Regenerate.
1540         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1541         * config/arm/t-aprofile: Likewise.
1542         * doc/invoke.texi (-mcpu): Likewise.
1543
1544 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
1545
1546         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1547         and qdf24xx and xgene1 to match -march=armv8-a.
1548
1549 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1550
1551         PR rtl-optimization/68330
1552         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1553         of LSHIFTRT by a non-zero constant integer.
1554
1555 2015-11-16  Richard Biener  <rguenther@suse.de>
1556
1557         PR tree-optimization/68306
1558         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1559         bogus copying from verify_data_ref_alignment and use continue
1560         instead of return.
1561
1562 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
1563             Kaz Kojima  <kkojima@gcc.gnu.org>
1564
1565         PR target/68277
1566         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1567         operands[2].
1568         (*addsi3): Add another insn_and_split variant for reload.
1569
1570 2015-11-16  Richard Biener  <rguenther@suse.de>
1571
1572         PR middle-end/68117
1573         * cfgexpand.c (pass_expand::execute): Destroy the edge
1574         redirection var map before setting RTL CFG hooks.
1575
1576 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
1577
1578         * config/i386/sse.md (reduc_splus_v8df): Rename to...
1579         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1580
1581         (reduc_splus_v4df): Rename to...
1582         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1583
1584         (reduc_splus_v2df): Rename to...
1585         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1586
1587         (reduc_splus_v16sf): Rename to...
1588         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1589
1590         (reduc_splus_v8sf): Rename to...
1591         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1592
1593         (reduc_splus_v4sf): Rename to...
1594         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1595
1596         (reduc_<code>_<mode>, all 3 variants): Rename each to...
1597         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1598
1599         (reduc_umin_v8hf): Rename to...
1600         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1601
1602 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1603
1604         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1605         without additional conditions.
1606         * doc/extend.texi (@item simd): New.
1607
1608 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1609
1610         * passes.c (first_pass_instance): Remove variable.
1611         (execute_todo): Remove setting of first_pass_instance.
1612         * tree-pass.h (first_pass_instance): Remove declaration.
1613
1614 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1615
1616         * passes.def: Add arg to pass_ccp pass instantiation.
1617         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
1618         instead of first_pass_instance.
1619         (do_ssa_ccp): Add and handle param nonzero_p.
1620         (pass_ccp::pass_ccp): Initialize nonzero_p.
1621         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
1622         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1623         (pass_ccp::nonzero_p): New private member.
1624
1625 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1626
1627         * passes.def: Add arg to pass_object_sizes pass instantiation.
1628         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1629         insert_min_max_p.
1630         (pass_object_sizes::set_pass_param): New member function.  Set
1631         insert_min_max_p.
1632         (pass_object_sizes::insert_min_max_p): New private member.
1633         (pass_object_sizes::execute): Use insert_min_max_p instead of
1634         first_pass_instance.
1635
1636 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1637
1638         * passes.def: Add arg to pass_dominator pass instantiation.
1639         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1640         of comment.
1641         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1642         may_peel_loop_headers_p.
1643         (pass_dominator::set_pass_param): New member function.  Set
1644         may_peel_loop_headers_p.
1645         (pass_dominator::may_peel_loop_headers_p): New private member.
1646         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1647         first_pass_instance.
1648
1649 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1650
1651         * passes.def: Add arg to pass_reassoc pass instantiation.
1652         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1653         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1654         of first_pass_instance.
1655         (execute_reassoc): Add and handle insert_powi_p parameter.
1656         (pass_reassoc::insert_powi_p): New private member.
1657         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1658         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
1659         (pass_reassoc::execute): Call execute_reassoc with extra arg.
1660
1661 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1662
1663         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1664         * gen-pass-instances.awk (handle_line): Same.
1665         * pass_manager.h (class pass_manager): Define and undefine
1666         NEXT_PASS_WITH_ARG.
1667         * passes.c (opt_pass::set_pass_param): New function.
1668         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1669         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1670         * tree-pass.h (gimple_opt::set_pass_param): Declare.
1671         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1672         warn_array_bounds_p parameter.
1673         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1674         (pass_vrp::set_pass_param): New function.
1675         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1676         (pass_vrp::warn_array_bounds_p): New private member.
1677
1678 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1679
1680         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1681         (output_probe_stack_range): Rotate the loop and simplify.
1682
1683 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1684
1685         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1686         (output_probe_stack_range): Rotate the loop and simplify.
1687
1688 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1689
1690         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1691         an lea instruction when possible.
1692         (output_adjust_stack_and_probe): Rotate the loop and simplify.
1693         (ix86_emit_probe_stack_range): Adjust.
1694         (output_probe_stack_range): Rotate the loop and simplify.
1695
1696 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1697
1698         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1699         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1700         with appropriate pragma GCC target.
1701
1702 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1703
1704         PR target/65837
1705         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1706         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1707
1708 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1709
1710         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1711         (cortexa57_tunings): Use it.
1712
1713 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1714
1715         PR target/65837
1716         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1717         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1718         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1719         undefine __ARM_FP.
1720         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1721         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1722         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1723         * doc/extend.texi (-mfpu=): Describe attribute.
1724
1725 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1726
1727         PR target/65837
1728         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1729         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1730         arm_init_neon_builtins.
1731         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1732         (arm_init_neon_builtins_internal)
1733         (arm_init_crypto_builtins_internal):
1734         Test and set neon_set_p, neon_crypto_set_p.
1735         (neon_set_p, neon_crypto_set_p): New static booleans.
1736
1737 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1738
1739         PR target/65837
1740         * config/arm/arm.c (arm_fpu_desc): Remove.
1741         (all_fpus): Make global.
1742         (arm_option_override): Use FPU TARGET accessors.
1743         (arm_declare_function_name): Likewise.
1744         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1745         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1746         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1747         (TARGET_NEON): Likewise.
1748         (all_fpus): Declare extern.
1749         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1750         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1751
1752 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1753
1754         PR middle-end/68366
1755         * sdbout.c: Include emit-rtl.h and function.h.
1756
1757 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
1758
1759         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1760         Remove support for FreeBSD 5 and earlier.
1761
1762 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1763
1764         * configure: Regenerate.
1765         * configure.ac: Always define ENABLE_OFFLOADING.
1766         * cgraph.c (cgraph_node::create): Adjust.
1767         * gcc.c (process_command): Likewise.
1768         * omp-low.c (create_omp_child_function): Likewise.
1769         (expand_omp_target): Likewise.
1770         * varpool.c (varpool_node::get_create): Likewise.
1771
1772 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1773
1774         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1775         * df-scan.c (df_get_exit_block_use_set): Adjust.
1776         * except.c (expand_eh_return): Likewise.
1777
1778 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1779
1780         * config/i386/i386.h (TARGET_PECOFF): Remove define.
1781         * defaults.h (TARGET_PECOFF): New default definition.
1782         * varasm.c (handle_vtv_comdat_section): Adjust.
1783
1784 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1785
1786         * defaults.h: New definition of SDB_DEBUGGING_INFO.
1787         * doc/tm.texi: Regenerate.
1788         * doc/tm.texi.in: Adjust.
1789         * final.c (rest_of_clean_state): Remove check if
1790         SDB_DEBUGGING_INFO is defined.
1791         * function.c (number_blocks): Likewise.
1792         * output.h: Likewise.
1793         * sdbout.c: Likewise.
1794         * toplev.c (process_options): Likewise.
1795
1796 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1797
1798         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1799         (enum sdb_masks): Likewise.
1800         * sdbout.c (plain_type_1): Likewise.
1801         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1802
1803 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1804
1805         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1806         internal calls - 0 if ordered simd and 1 for ordered threads simd.
1807         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1808         argument is 1, replace it with GOMP_ordered_* call instead of removing
1809         it.
1810
1811 2015-11-13  Rich Felker <dalias@libc.org>
1812
1813         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1814         address loading hack for FDPIC targets.
1815
1816 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
1817             Jeff Law  <law@redhat.com>
1818
1819         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1820         * common.opt (-fsplit-paths): New flag controlling path splitting.
1821         * doc/invoke.texi (fsplit-paths): Document.
1822         * opts.c (default_options_table): Add -fsplit-paths to -O2.
1823         * passes.def: Add split_paths pass.
1824         * timevar.def (TV_SPLIT_PATHS): New timevar.
1825         * tracer.c: Include "tracer.h"
1826         (ignore_bb_p): No longer static.
1827         (transform_duplicate): New function, broken out of tail_duplicate.
1828         (tail_duplicate): Use transform_duplicate.
1829         * tracer.h (ignore_bb_p): Declare
1830         (transform_duplicate): Likewise.
1831         * tree-pass.h (make_pass_split_paths): Declare.
1832         * gimple-ssa-split-paths.c: New file.
1833
1834 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
1835             Marek Polacek  <polacek@redhat.com>
1836             Jason Merrill  <jason@redhat.com>
1837
1838         * convert.c (maybe_fold_build1_loc): New.
1839         (maybe_fold_build2_loc): New.
1840         (convert_to_pointer_1): Split out from convert_to_pointer.
1841         (convert_to_pointer_nofold): New.
1842         (convert_to_real_1): Split out from convert_to_real.
1843         (convert_to_real_nofold): New.
1844         (convert_to_integer_1): Split out from convert_to_integer.
1845         (convert_to_integer_nofold): New.
1846         (convert_to_complex_1): Split out from convert_to_complex.
1847         (convert_to_complex_nofold): New.
1848         * convert.h: Declare new functions.
1849         * tree-complex.c (create_one_component_var): Break up line to
1850         avoid sequence point issues.
1851
1852 2015-11-13  Jason Merrill  <jason@redhat.com>
1853
1854         * fold-const.c (fold_convert_const): Fold changing cv-quals on
1855         VECTOR_CST.
1856
1857         * hash-map.h (hash_map::empty): New.
1858
1859 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1860
1861         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1862         (oacc_loop_fixed_partitions): Correct return type to bool.
1863         (oacc_loop_auto_partitions): New.
1864         (oacc_loop_partition): Take mask argument, call
1865         oacc_loop_auto_partitions.
1866         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1867
1868 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1869
1870         * config/rs6000/constraints.md (we constraint): New constraint for
1871         64-bit power9 vector support.
1872         (wL constraint): New constraint for the element in a vector that
1873         can be addressed by the MFVSRLD instruction.
1874
1875         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1876         declaration.
1877         (convert_int_to_float128): Likewise.
1878         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1879         hardware support for IEEE 128-bit floating point.
1880         (rs6000_expand_float128_convert): Likewise.
1881         (convert_float128_to_int): Likewise.
1882         (convert_int_to_float128): Likewise.
1883
1884         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1885         ISA 3.0 hardware IEEE 128-bit floating point.
1886         (UNSPEC_IEEE128_MOVE): Likewise.
1887         (UNSPEC_IEEE128_CONVERT): Likewise.
1888         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1889         (Ff): Add support for DImode.
1890         (Fv): Likewise.
1891         (any_fix code iterator): New and updated iterators for IEEE
1892         128-bit floating point hardware support.
1893         (any_float code iterator): Likewise.
1894         (s code attribute): Likewise.
1895         (su code attribute): Likewise.
1896         (az code attribute): Likewise.
1897         (uns code attribute): Likewise.
1898         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1899         floating point hardware support.
1900         (abs<mode>2, FLOAT128 iterator): Likewise.
1901         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1902         floating point hardware.
1903         (sub<mode>3, IEEE128 iterator): Likewise.
1904         (mul<mode>3, IEEE128 iterator): Likewise.
1905         (div<mode>3, IEEE128 iterator): Likewise.
1906         (copysign<mode>3, IEEE128 iterator): Likewise.
1907         (sqrt<mode>2, IEEE128 iterator): Likewise.
1908         (neg<mode>2, IEEE128 iterator): Likewise.
1909         (abs<mode>2, IEEE128 iterator): Likewise.
1910         (nabs<mode>2, IEEE128 iterator): Likewise.
1911         (fma<mode>4_hw, IEEE128 iterator): Likewise.
1912         (fms<mode>4_hw, IEEE128 iterator): Likewise.
1913         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1914         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1915         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1916         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1917         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1918         (fix_fixuns code attribute): Likewise.
1919         (float_floatuns code attribute): Likewise.
1920         (fix<uns>_<mode>si2_hw): Likewise.
1921         (fix<uns>_<mode>di2_hw): Likewise.
1922         (float<uns>_<mode>si2_hw): Likewise.
1923         (float<uns>_<mode>di2_hw): Likewise.
1924         (xscvqp<su>wz_<mode>): Likewise.
1925         (xscvqp<su>dz_<mode>): Likewise.
1926         (xscv<su>dqp_<mode): Likewise.
1927         (ieee128_mfvsrd): Likewise.
1928         (ieee128_mfvsrwz): Likewise.
1929         (ieee128_mtvsrw): Likewise.
1930         (ieee128_mtvsrd): Likewise.
1931         (trunc<mode>df2_odd): Likewise.
1932         (cmp<mode>_h): Likewise.
1933         (128-bit GPR splitters): Don't split a 128-bit move that is a
1934         direct move between GPR and vector registers using ISA 3.0 direct
1935         move instructions.
1936         (maddld4): Add support for the ISA 3.0 integer multiply-add
1937         instruction.
1938
1939         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1940         debugging.
1941         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1942         constraint.  Disable the VSX<->GPR direct move helpers if we have
1943         the MFVSRLD and MTVSRDD instructions.
1944         (rs6000_secondary_reload_simple_move): Add support for doing
1945         vector direct moves directly without additional scratch registers
1946         if we have ISA 3.0 instructions.
1947         (rs6000_secondary_reload_direct_move): Update comments.
1948         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1949         instructions.
1950
1951         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1952         direct move instructions.
1953         (vsx_movti_64bit): Likewise.
1954         (vsx_extract_<mode>): Likewise.
1955
1956         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1957         macros for ISA 3.0 direct move instructions.
1958         (TARGET_DIRECT_MOVE_128): Likewise.
1959         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1960         instruction.
1961
1962         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1963         constraints.  Update wa documentation to say not to use %x<n> on
1964         instructions that only take Altivec registers.
1965
1966 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1967
1968         * Makefile.in (OBJS): Add gcc-rich-location.o.
1969         * diagnostic.c (diagnostic_append_note): Pass line_table to
1970         rich_location ctor.
1971         (emit_diagnostic): Likewise.
1972         (inform): Likewise.
1973         (inform_n): Likewise.
1974         (warning): Likewise.
1975         (warning_at): Likewise.
1976         (warning_n): Likewise.
1977         (pedwarn): Likewise.
1978         (permerror): Likewise.
1979         (error): Likewise.
1980         (error_n): Likewise.
1981         (error_at): Likewise.
1982         (sorry): Likewise.
1983         (fatal_error): Likewise.
1984         (internal_error): Likewise.
1985         (internal_error_no_backtrace): Likewise.
1986         (source_range::debug): Likewise.
1987         * gcc-rich-location.c: New file.
1988         * gcc-rich-location.h: New file.
1989         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1990         (warning_at): Likewise.
1991         * gimple.h (gimple_set_block): Use set_block function.
1992         * input.c (dump_line_table_statistics): Dump stats on how many
1993         ranges were optimized vs how many needed ad-hoc table.
1994         (write_digit_row): Add "map" param; use its range_bits
1995         to calculate the per-character offset.
1996         (dump_location_info): Print the range and column bits for each
1997         ordinary map.  Use the range bits to calculate the per-character
1998         offset.  Pass the map as a new param to the various calls to
1999         write_digit_row.  Eliminate uses of
2000         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2001         * print-tree.c (print_node): Print any source range information.
2002         * rtl-error.c (diagnostic_for_asm): Likewise.
2003         * toplev.c (general_init): Initialize line_table's
2004         default_range_bits.
2005         * tree-cfg.c (move_block_to_fn): Likewise.
2006         (move_block_to_fn): Likewise.
2007         * tree-inline.c (copy_phis_for_bb): Likewise.
2008         * tree.c (tree_set_block): Likewise.
2009         (get_pure_location): New function.
2010         (set_source_range): New functions.
2011         (set_block): New function.
2012         (set_source_range): New functions.
2013         * tree.h (CAN_HAVE_RANGE_P): New.
2014         (EXPR_LOCATION_RANGE): New.
2015         (EXPR_HAS_RANGE): New.
2016         (get_expr_source_range): New inline function.
2017         (DECL_LOCATION_RANGE): New.
2018         (set_source_range): New decls.
2019         (get_decl_source_range): New inline function.
2020
2021 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
2022
2023         PR tree-optimization/67682
2024         * tree-vect-slp.c (vect_split_slp_store_group): New.
2025         (vect_analyze_slp_instance): During basic block SLP, recurse on
2026         subgroups if vect_build_slp_tree fails after 1st vector.
2027
2028 2015-11-13  Christian Bruel  <christian.bruel@st.com>
2029
2030         PR target/65837
2031         * config/arm/arm.c (arm_option_override): Move NEON check...
2032         (arm_option_check_internal): here
2033         (arm_file_start): Move .fpu print...
2034         (arm_declare_function_name): here
2035         (arm_option_print): Dump current fpu name.
2036         * config/arm/arm.opt (arm_fpu_index): Mark Save.
2037
2038 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
2039             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2040
2041         * combine.c (subst): Don't substitute or simplify when
2042         handling register-wise widening multiply.
2043         (force_to_mode): Likewise.
2044
2045 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
2046
2047         PR tree-optimization/68264
2048         * tree-call-cdce.c (gen_one_condition): Update commentary.
2049         (gen_conditions_for_pow_int_base): Invert the sense of the tests
2050         passed to gen_one_condition.
2051         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
2052         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2053         using EDGE_FALSE_VALUE for edges to the call block and
2054         EDGE_TRUE_VALUE for the others.
2055
2056 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2057
2058         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2059         complex types.
2060
2061 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2062
2063         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2064
2065 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2066
2067         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2068         len_of_prefix.
2069
2070 2015-11-13  Tom de Vries  <tom@codesourcery.com>
2071
2072         * gen-pass-instances.awk (handle_line): Add args_str variable.
2073
2074 2015-11-13  Martin Liska  <mliska@suse.cz>
2075
2076         * graphite-poly.c (free_scop): Release scop->drs vector.
2077         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2078         Release dom vector.
2079         (try_generate_gimple_bb): Use vNULL as a default initialization
2080         for vectors.
2081
2082 2015-11-13  Martin Liska  <mliska@suse.cz>
2083
2084         PR ipa/68311
2085         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2086         Replace array initialization (using a variable post-increment)
2087         that possible triggers multiple unsequenced modifications
2088         with a pair of pushes to a vector.
2089
2090 2015-11-13  Richard Biener  <rguenther@suse.de>
2091
2092         PR tree-optimization/68306
2093         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2094         loop related checks ...
2095         (vect_verify_datarefs_alignment): ... here.
2096         (vect_slp_analyze_and_verify_node_alignment): Compute and
2097         verify alignment of the single DR that it matters.
2098         * tree-vect-stmts.c (vectorizable_store): Add an assert.
2099         (vectorizable_load): Add a comment.
2100         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2101         for determining load cost.
2102
2103 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2104
2105         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2106         mix of boolean and integer vectors in a single statement.
2107         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2108         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2109         determine constant type.
2110         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2111         for loop invariants.
2112
2113 2015-11-13  Alan Hayward <alan.hayward@arm.com>
2114
2115         PR tree-optimization/66558
2116         * tree-vect-loop.c (is_integer_induction):Add.
2117         (vectorizable_reduction): Add integer induction checks.
2118
2119 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
2120
2121         Revert [ARM] Remove neon-testgen.ml and generated tests.
2122
2123         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2124
2125         [ARM] Remove neon-testgen.ml and generated tests.
2126
2127         * config/arm/neon-testgen.ml: Remove.
2128
2129 2015-11-13  Richard Biener  <rguenther@suse.de>
2130
2131         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2132         Signal fatal failure if early checks fail.
2133         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2134         do not bother testing further vector sizes.
2135
2136 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
2137
2138         * config/i386/predicates.md (misaligned_operand): Return true if
2139         operand is aligned to less than its natural alignmnet.
2140
2141 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2142
2143         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2144         (vec_cmpu@var{m}@var{n}): New item.
2145         (vcond@var{m}@var{n}): Specify comparison is signed.
2146         (vcondu@var{m}@var{n}): New item.
2147         (vcond_mask_@var{m}@var{n}): New item.
2148         (maskload@var{m}@var{n}): New item.
2149         (maskstore@var{m}@var{n}): New item.
2150
2151 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2152
2153         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2154         types of stored value and storage are compatible.
2155
2156 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
2157
2158         * gcc.c (POST_LINK_SPEC): Define if not already defined.
2159         (LINK_COMMAND_SPEC): Use post_link.
2160         (post_link_spec): New, initialize to POST_LINK_SPEC.
2161         (post_link): Initialize new static spec.
2162         * doc/tm.texi.in (POST_LINK_SPEC): Document.
2163         * doc/tm.texi: Regenerated.
2164
2165 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2166
2167         PR driver/67613
2168         * Makefile.in (GCC_OBJS): Add spellcheck.o.
2169         (OBJS): Add spellcheck-tree.o.
2170         * gcc.c: Include "spellcheck.h".
2171         (suggest_option): New function.
2172         (driver::handle_unrecognized_options): Call suggest_option to
2173         provide a hint about misspelled options.
2174         * spellcheck.c: Update file comment.
2175         (levenshtein_distance): Convert 4-param implementation from static
2176         to extern scope.  Remove note about unit tests from leading
2177         comment for const char * implementation.  Move tree
2178         implementation to...
2179         * spellcheck-tree.c: New file.
2180         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
2181
2182 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2183
2184         * Makefile.in (OBJS): Add spellcheck.o.
2185         * spellcheck.c: New file.
2186         * spellcheck.h: New file.
2187
2188 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
2189
2190         * config/ft32/ft32.md (*sne): New insn pattern.
2191
2192 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
2193
2194         * gcc/cprop.c (is_too_expensive): Remove.
2195         (gcse.h): Include.
2196         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2197         is_too_expensive.
2198         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2199         * gcc/gcse.c (is_too_expensive): Rename to ...
2200         (gcse_or_cprop_is_too_expensive): ... this.
2201         Expand warning to add required size of max-gcse-memory.
2202         (one_pre_gcse_pass): Use it.
2203         (one_code_hoisting_pass): Use it.
2204         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
2205
2206 2015-11-12  James Norris  <jnorris@codesourcery.com>
2207             Joseph Myers  <joseph@codesourcery.com>
2208
2209         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2210         GF_OMP_TARGET_KIND_OACC_DECLARE.
2211         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2212         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2213         * gimplify.c (oacc_declare_returns): New.
2214         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2215         (device_resident_p): New function.
2216         (oacc_default_clause): Handle device_resident clause.
2217         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2218         (gimplify_expr): Handle OACC_DECLARE.
2219         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2220         * omp-low.c (expand_omp_target): Handle
2221         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2222         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2223         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2224         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2225         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2226         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2227         GOMP_MAP_DEVICE_RESIDENT.
2228
2229 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2230
2231         [ARM] Remove neon-testgen.ml and generated tests.
2232
2233         * config/arm/neon-testgen.ml: Remove.
2234
2235 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
2236
2237         * config/aarch64/aarch64-cores.def (qdf24xx): New.
2238         * config/aarch64/aarch64-tune.md: Regenerated.
2239         * config/arm/arm-cores.def (qdf24xx): New.
2240         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2241         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2242         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2243         (ARM Options/-mtune): Likewise.
2244
2245 2015-11-12  Martin Liska  <mliska@suse.cz>
2246
2247         * config/i386/i386.c (ix86_valid_target_attribute_p):
2248         Finalize options at the of the function.
2249         * gcc.c (driver_get_configure_time_options): Call newly
2250         introduced init_opts_obstack.
2251         * lto-wrapper.c (main): Likewise.
2252         * opts.c (init_opts_obstack): New function.
2253         (init_options_struct): Call newly introduced init_opts_obstack.
2254         * opts.h (init_options_struct): Declare.
2255
2256 2015-11-12  Martin Liska  <mliska@suse.cz>
2257
2258         PR ipa/68035
2259         * ipa-icf.c (void sem_item::set_hash): New function.
2260         (sem_function::get_hash): Use renamed m_hash member variable.
2261         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2262         (sem_item::update_hash_by_local_refs): Likewise.
2263         (sem_variable::get_hash): Use renamed m_hash member variable.
2264         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2265         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2266         (sem_item_optimizer::build_graph): As the hash value of an item
2267         is lazy initialized, force the calculation.
2268         * ipa-icf.h (set_hash): Declare new function and rename hash member
2269         variable to m_hash.
2270
2271 2015-11-12  Richard Biener  <rguenther@suse.de>
2272
2273         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2274         Rename to vect_slp_analyze_instance_dependence.
2275         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2276         Remove WAR special-case.
2277         (vect_slp_analyze_node_dependences): Instead add more specific
2278         code here, not relying on other instances being vectorized.
2279         (vect_slp_analyze_instance_dependence): Adjust accordingly.
2280         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2281         vertical space in dump files.
2282         (vect_print_slp_tree): Likewise.
2283         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2284         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2285         not vectorized stmts until after dependence analysis removed
2286         instances.  Merge alignment and dependence checks.
2287         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2288         flag on all stmts.
2289
2290 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
2291
2292         * config/aarch64/aarch64-protos.h (tune_params): Add new members
2293         "max_case_values" and "cache_line_size".
2294         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2295         function.
2296         (aarch64_override_options_internal): Tune heuristics based on new
2297         members in "tune_params".
2298         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2299
2300 2015-11-12  Richard Biener  <rguenther@suse.de>
2301
2302         PR tree-optimization/68306
2303         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2304         relevant and vectorizable checks here.
2305         (vect_verify_datarefs_alignment): Add relevant check here.
2306
2307 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
2308
2309         * gimplify.c (oacc_default_clause): New.
2310         (omp_notice_variable): Call it.
2311
2312 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2313
2314         PR tree-optimization/68305
2315         * tree-vect-slp.c (vect_get_constant_vectors): Support
2316         COND_EXPR with SSA_NAME as a condition.
2317
2318 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2319
2320         * config/visium/visium-protos.h (notice_update_cc): Delete.
2321         (print_operand): Likewise.
2322         (print_operand_address): Likewise.
2323
2324 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2325
2326         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2327         FUNCTION_VALUE_REGNO_P): Remove.
2328         * config/alpha/alpha-protos.h (function_value): Remove.
2329         * config/alpha/alpha.c (function_value): Rename to...
2330         (alpha_function_value_1): ... this.  Make static.
2331         (alpha_function_value, alpha_libcall_value,
2332         alpha_function_value_regno_p): New functions.
2333         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2334         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2335
2336 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2337
2338         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2339         * config/alpha/alpha.c (alpha_memory_latency): Make static.
2340         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2341         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2342
2343 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2344
2345         PR target/67265
2346         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2347         assertion on the CFA register.
2348
2349 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2350
2351         * expr.c (do_store_flag): Expand vector comparison as
2352         VEC_COND_EXPR if vector comparison is not supported by target.
2353
2354 2015-11-12  Renlin Li  <renlin.li@arm.com>
2355
2356         * config/arm/arm.md (addsi3_compare_op2): Make the order of
2357         assembly pattern consistent with constraint order.
2358
2359 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2360
2361         * gen-pass-instances.awk (handle_line): Simplify match regexp.
2362
2363 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2364
2365         * gen-pass-instances.awk (handle_line): Simplify init of
2366         postfix_starts_at.
2367
2368 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2369
2370         * gen-pass-instances.awk (handle_line): Rename var where to
2371         call_starts_at.
2372
2373 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
2374
2375         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2376         do not expand to rtl.
2377
2378 2015-11-12  Richard Biener  <rguenther@suse.de>
2379
2380         PR tree-optimization/58497
2381         * tree-vect-generic.c: Include gimplify.h.
2382         (tree_vec_extract): Lookup constant/constructor DEFs.
2383         (do_cond): Unshare cond.
2384
2385 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2386
2387         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2388         combined insn if the alignment of vector mode memory operand
2389         is less than ssememalign.
2390
2391 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2392
2393         * gen-pass-instances.awk (handle_line): Print parentheses and
2394         pass_name explicitly.
2395
2396 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2397
2398         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2399         and postfix vars.
2400
2401 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2402
2403         * gen-pass-instances.awk (handle_line): Add comments.
2404
2405 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2406
2407         * gen-pass-instances.awk (handle_line): Rename len_of_end to
2408         len_of_close.
2409
2410 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2411
2412         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2413
2414 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2415
2416         * gen-pass-instances.awk (handle_line): Restructure using early-out.
2417
2418 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2419
2420         * gen-pass-instances.awk (handle_line): Unify semicolon use.
2421
2422 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2423
2424         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2425
2426 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2427
2428         * gen-pass-instances.awk: Add emacs indent setting.
2429
2430 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2431
2432         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2433         to match.pd.
2434         Move Convert A/(B/C) to (A/B)*C to match.pd.
2435         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2436         Move Optimize (X & (-A)) / A where A is a power of 2, to
2437         X >> log2(A) to match.pd.
2438
2439         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2440         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2441         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2442         New simplifier.
2443         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2444
2445 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
2446
2447         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2448         variable.
2449         (neon_vst2_lane<mode>): Likewise.
2450         (neon_vld3_lane<mode>): Likewise.
2451         (neon_vst3_lane<mode>): Likewise.
2452         (neon_vld4_lane<mode>): Likewise.
2453         (neon_vst4_lane<mode>): Likewise.
2454
2455 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
2456             Sebastian Pop  <s.pop@samsung.com>
2457
2458         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2459         New member codegen_error
2460         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2461         early return.
2462         (translate_isl_ast_node_user): Early return in case of error.
2463         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2464         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2465         (add_parameters_to_ivs_params): Remove macro.
2466         (graphite_regenerate_ast_isl): Add if_region pointer to region.
2467         * graphite-poly.c (new_poly_dr): Remove macro.
2468         (print_pdr): Same.
2469         (new_gimple_poly_bb): Same.
2470         (free_gimple_poly_bb): Same.
2471         (print_scop_params): Same.
2472         * graphite-poly.h (struct poly_dr): Same.
2473         (struct poly_bb): Add new_bb.
2474         (gbb_from_bb): Remove dead code.
2475         (pbb_from_bb): Same.
2476         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2477         (parameter_index_in_region): Same.
2478         (find_scop_parameters): Same.
2479         (build_cross_bb_scalars_def): New.
2480         (build_cross_bb_scalars_use): New.
2481         (graphite_find_cross_bb_scalar_vars): New
2482         (try_generate_gimple_bb): Reads and Writes.
2483         (build_alias_set): Move.
2484         (gather_bbs::before_dom_children): Gather bbs visited.
2485         (build_scops): call build_alias_set.
2486         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2487         (remove_simple_copy_phi): Delete.
2488         (remove_invariant_phi): Delete.
2489         (simple_copy_phi_p): Delete.
2490         (reduction_phi_p): Delete.
2491         (isl_id_for_dr): Remove unused param.
2492         (parameter_index_in_region_1): Remove macro usage.
2493         (set_scop_parameter_dim): Same.
2494         (add_param_constraints): Same.
2495         (add_conditions_to_constraints): Same
2496         (build_scop_iteration_domain): Same.
2497         (pdr_add_alias_set): Comment.
2498         (add_scalar_version_numbers): New.
2499         (build_poly_dr): ISL id.
2500         (build_scop_drs): Move.
2501         (build_poly_sr_1): Same.
2502         (insert_stmts): Remove.
2503         (build_poly_sr): New.
2504         (new_pbb_from_pbb): Delete.
2505         (insert_out_of_ssa_copy_on_edge): Delete.
2506         (create_zero_dim_array): Delete.
2507         (scalar_close_phi_node_p): Delete.
2508         (propagate_expr_outside_region): Delete.
2509         (rewrite_close_phi_out_of_ssa): Delete.
2510         (rewrite_phi_out_of_ssa): Delete.
2511         (rewrite_degenerate_phi): Delete.
2512         (rewrite_reductions_out_of_ssa): Delete.
2513         (rewrite_cross_bb_scalar_dependence): Delete.
2514         (handle_scalar_deps_crossing_scop_limits):
2515         (rewrite_cross_bb_scalar_deps): Delete.
2516         (build_poly_scop): Remove calls to out-of-ssa functions.
2517         * graphite.c (graphite_transform_loops): Early return in case of
2518         codegen error.
2519         * sese.c (debug_rename_map_1): Delete.
2520         (debug_rename_map): Delete.
2521         (sese_record_loop): Remove macro.
2522         (build_sese_loop_nests): Same.
2523         (new_sese_info): Same.
2524         (free_sese_info): Same.
2525         (sese_insert_phis_for_liveouts):
2526         (is_loop_closed_ssa_use): New.
2527         (number_of_phi_nodes): New.
2528         (bb_contains_loop_close_phi_nodes): New.
2529         (bb_contains_loop_phi_nodes): New.
2530         (phi_uses_name): New.
2531         (is_valid_rename):
2532         (get_rename): Add old_bb and loop_phi for more precise matching of
2533         exprs.
2534         (set_rename): Pass region.
2535         (later_of_the_two): New.
2536         (gsi_insert_earliest): New.
2537         (collect_all_ssa_names): New.
2538         (substitute_ssa_name): New.
2539         (rename_all_uses): New.
2540         (get_rename_from_scev): New.
2541         (rename_uses): Pass old_bb for more precise matching of exprs.
2542         (get_def_bb_for_const): New.
2543         (get_new_name): New.
2544         (get_loc): New.
2545         (get_edges): New.
2546         (copy_loop_phi_args): New.
2547         (copy_loop_phi_nodes): New.
2548         (get_loop_init_value): New.
2549         (find_init_value): New.
2550         (find_init_value_close_phi): New.
2551         (copy_loop_close_phi_args): New.
2552         (copy_loop_close_phi_nodes): New.
2553         (add_phi_arg_for_new_expr): New.
2554         (copy_cond_phi_args): New.
2555         (copy_cond_phi_nodes): New.
2556         (copy_phi_nodes): New.
2557         (should_copy_to_new_region): New.
2558         (set_rename_for_each_def): New.
2559         (graphite_copy_stmts_from_block): Early return in case of error.
2560         (copy_bb_and_scalar_dependences): Same.
2561         * sese.h (vec_find): New.
2562         (SESE_PARAMS): Delete.
2563         (SESE_LOOPS): Delete.
2564         (SESE_LOOP_NEST): Delete.
2565         (sese_contains_loop): Remove macro usage.
2566         (sese_nb_params): Same.
2567         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2568
2569 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2570
2571         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2572         isl_union_map_add_map on every pbb->schedule.
2573
2574 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2575
2576         * tree-parloops.c (create_parallel_loop): Return void.
2577
2578 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2579
2580         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2581         block only when needed.
2582
2583 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
2584
2585         * config/alpha/alpha-protos.h (print_operand): Remove.
2586         (print_operand_address): Remove.
2587         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2588         (PRINT_OPERAND_ADDRESS): Remove.
2589         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2590         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2591         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2592         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2593         (print_operand_address): Rename to...
2594         (alpha_print_operand_address): ...this and make static.
2595         (print_operand): Rename to...
2596         (alpha_print_operand): ...this and make static.
2597         (alpha_print_operand_punct_valid_p): New static function.
2598
2599 2015-11-11  Richard Biener  <rguenther@suse.de>
2600
2601         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2602         Declare.
2603         (vect_analyze_data_refs_alignment): Make loop vect specific.
2604         (vect_verify_datarefs_alignment): Likewise.
2605         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2606         Add missing continue.
2607         (vect_compute_data_ref_alignment): Export.
2608         (vect_compute_data_refs_alignment): Merge into...
2609         (vect_analyze_data_refs_alignment): ... this.
2610         (verify_data_ref_alignment): Split out from ...
2611         (vect_verify_datarefs_alignment): ... here.
2612         (vect_slp_analyze_and_verify_node_alignment): New function.
2613         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2614         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2615         misplaced checks on alignment.
2616         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
2617         alignment analysis after SLP discovery and do it per instance.
2618         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2619         bother to re-try using different vector sizes.
2620
2621 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2622             Cesar Philippidis  <cesar@codesourcery.com>
2623
2624         * gimplify.c (enum omp_region_type): Add ORT_ACC,
2625         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
2626         (gimple_add_tmp_var): Add ORT_ACC checks.
2627         (gimplify_var_or_parm_decl): Likewise.
2628         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2629         (omp_add_variable): Look in outer contexts for openacc and allow
2630         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2631         (omp_notice_variable, omp_is_private, omp_check_private): Add
2632         ORT_ACC checks.
2633         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2634         Permit private openacc reductions.
2635         (gimplify_oacc_cache): Specify ORT_ACC.
2636         (gimplify_omp_workshare): Adjust OpenACC region types.
2637         (gimplify_omp_target_update): Likewise.
2638         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2639         (lower-rec_input_clauses): Don't handle openacc firstprivate
2640         references here.
2641         (lower_omp_target): Emit initializers for openacc firstprivate vars.
2642
2643 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
2644
2645         PR target/67265
2646         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2647         frame pointer for stack checking if non-call exceptions aren't used.
2648         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2649
2650 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
2651
2652         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2653         [LA]SHIFTRT.
2654
2655 2015-11-11  Martin Liska  <mliska@suse.cz>
2656             Richard Biener  <rguenther@suse.de>
2657
2658         PR rtl-optimization/68287
2659         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2660         number of elements.
2661
2662 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
2663
2664         * config/mips/mips.c (mips_breakable_sequence_p): New function.
2665         (mips_break_sequence): New function.
2666         (mips_reorg_process_insns): Use them. Use compact branches in selected
2667         situations.
2668
2669 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
2670
2671         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2672
2673 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
2674             Jim Wilson  <wilson@gcc.gnu.org>
2675
2676         PR target/67305
2677         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2678         be true and eliminable registers mentioned.
2679
2680 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
2681
2682         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2683         options.
2684         * config/arc/arc-opts.h: Add ARCv2 CPUs.
2685         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2686         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2687         situation, and store instructions with large offsets.
2688         (arc_secondary_reload_conv): New function.
2689         (arc_init): Add ARCv2 options.
2690         (arc_conditional_register_usage): Select the proper register usage
2691         for ARCv2 processors.
2692         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2693         architecture.
2694         (arc_compute_function_type): Likewise.
2695         (arc_print_operand): Handle new ARCv2 punctuation characters.
2696         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2697         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2698         function.
2699         (arc_reorg, arc_hazard): Use it.
2700         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2701         (ASM_SPEC): Add ARCv2 options.
2702         (TARGET_NORM): ARC HS has norm instructions by default.
2703         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2704         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2705         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2706         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2707         Likewise.
2708         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2709         (TARGET_LP_WR_INTERLOCK): Likewise.
2710         * config/arc/arc.md
2711         (commutative_binary_mult_comparison_result_used, movsicc_insn)
2712         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2713         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2714         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2715         Use it for ARCv2.
2716         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2717         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2718         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2719         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2720         (extzvsi): New pattern.
2721         * config/arc/arc.opt: New ARCv2 options.
2722         * config/arc/arcEM.md: New file.
2723         * config/arc/arcHS.md: Likewise.
2724         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2725         values.
2726         (Cm2): A signed 9-bit integer constant constraint.
2727         (C62): An unsigned 6-bit integer constant constraint.
2728         (C16): A signed 16-bit integer constant constraint.
2729         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2730         (short_const_int_operand): New predicate.
2731         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2732         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2733         -mcode-density and -mdiv-rem.
2734
2735 2015-11-11  Julia Koval  <julia.koval@intel.com>
2736
2737         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2738
2739 2015-11-11  Julia Koval  <julia.koval@intel.com>
2740
2741         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2742
2743 2015-11-11  Martin Liska  <mliska@suse.cz>
2744
2745         * gimple-ssa-strength-reduction.c (create_phi_basis):
2746         Use auto_vec.
2747         * passes.c (release_dump_file_name): New function.
2748         (pass_init_dump_file): Used from this function.
2749         (pass_fini_dump_file): Likewise.
2750         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2751         * var-tracking.c (vt_initialize): Use pool_allocator.
2752
2753 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
2754             Jiong Wang      <jiong.wang@arm.com>
2755
2756         PR tree-optimization/68234
2757         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2758         node which estimiated to be VR_VARYING initially.
2759
2760 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
2761
2762         * regname.c (scan_rtx_reg): Check the matching number of consecutive
2763         registers when tying chains.
2764         (build_def_use): Move terminated_this_insn earlier in the function.
2765
2766 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
2767
2768         * configure.ac: Use = with test and not ==.
2769         * configure: Regenerated.
2770
2771 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
2772
2773         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2774         machine asserts.  Update defines for 64 bit.
2775
2776 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2777
2778         PR target/63870
2779         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2780         lane number.
2781         (neon_vst1_lane<mode>): Likewise.
2782         (neon_vld2_lane<mode>): Likewise.
2783         (neon_vst2_lane<mode>): Likewise.
2784         (neon_vld3_lane<mode>): Likewise.
2785         (neon_vst3_lane<mode>): Likewise.
2786         (neon_vld4_lane<mode>): Likewise.
2787         (neon_vst4_lane<mode>): Likewise.
2788
2789 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2790
2791         PR target/63870
2792         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2793         qualifier_struct_load_store_lane_index.
2794         (arm_storestruct_lane_qualifiers) Likewise.
2795         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2796         big-endian.
2797         (neon_vst1_lane<mode>) Likewise.
2798         (neon_vld2_lane<mode>) Likewise.
2799         (neon_vst2_lane<mode>) Likewise.
2800         (neon_vld3_lane<mode>) Likewise.
2801         (neon_vst3_lane<mode>) Likewise.
2802         (neon_vld4_lane<mode>) Likewise.
2803         (neon_vst4_lane<mode>) Likewise.
2804
2805 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2806
2807         PR target/63870
2808         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2809         qualifier_struct_load_store_lane_index.
2810         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2811         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2812         argument qualifiers.
2813         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2814         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2815
2816 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
2817
2818         * config/nvptx/nvptx.opt (moptimize): New flag.
2819         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2820         default.
2821         (nvptx_optimize_inner): New.
2822         (nvptx_process_pars): Call it when optimizing.
2823         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2824
2825 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2826
2827         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2828         Remove redundant code.
2829
2830 2015-11-10  Jeff Law  <law@redhat.com>
2831
2832         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2833         call to output_address.
2834         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2835         Add unnamed machine_mode argument.
2836
2837 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2838
2839         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2840         default to 64-bit.
2841
2842 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2843
2844         * config/i386/i386.md (*movabs<mode>_1): Add explicit
2845         size directives for -masm=intel.
2846         (*movabs<mode>_2): Ditto.
2847
2848 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2849
2850         * config/i386/i386.c (ix86_print_operand): Remove dead code that
2851         tried to avoid (%rip) for call operands.
2852
2853 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2854
2855         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2856         argument.  Do not use RIP relative addressing when no_rip is set.
2857         (ix86_print_operand): Update call to ix86_print_operand_address_as.
2858         (ix86_print_operand_address): Ditto.
2859         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2860         absolute movabs operand 0.  Add square braces for -masm=intel.
2861         (*movabs<mode>_2): Ditto for operand 1.
2862
2863 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2864
2865         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2866         combine_vcvtf2i pattern.
2867
2868 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2869
2870         * config/arm/arm.c (neon_valid_immediate): Remove integer
2871         CONST_DOUBLE handling.  It should never occur.
2872
2873 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
2874
2875         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2876         (ATOMIC_LDOP): Likewise.
2877         (atomic_ldop): Likewise.
2878         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2879         (ATOMIC_LDOP): Likewise.
2880         (atomic_ldop): Likewise.
2881
2882 2015-11-10  Martin Liska  <mliska@suse.cz>
2883
2884         * alloc-pool.h (allocate_raw): New function.
2885         (operator new (size_t, object_allocator<T> &a)): Use the
2886         function instead of object_allocator::allocate).
2887
2888 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2889
2890         * config/i386/sse.md (HALFMASKMODE): New attribute.
2891         (DOUBLEMASKMODE): New attribute.
2892         (vec_pack_trunc_qi): New.
2893         (vec_pack_trunc_<mode>): New.
2894         (vec_unpacks_lo_hi): New.
2895         (vec_unpacks_lo_si): New.
2896         (vec_unpacks_lo_di): New.
2897         (vec_unpacks_hi_hi): New.
2898         (vec_unpacks_hi_<mode>): New.
2899
2900 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2901
2902         * optabs.c (expand_binop_directly): Allow scalar mode for
2903         vec_pack_trunc_optab.
2904         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2905         boolean vector producers from pattern sequence when computing VF.
2906         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2907         vect_recog_mask_conversion_pattern.
2908         (search_type_for_mask): Choose the smallest
2909         type if different size types are mixed.
2910         (build_mask_conversion): New.
2911         (vect_recog_mask_conversion_pattern): New.
2912         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2913         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2914         load with pattern.
2915         (vectorizable_conversion): Support boolean vectors.
2916         (free_stmt_vec_info): Allow patterns for statements with no lhs.
2917         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2918
2919 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2920
2921         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2922         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2923         Cast mask to FP mode if required.
2924         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2925         (vcond_mask_<mode><avx512fmaskmodelower>): New.
2926         (vcond_mask_<mode><sseintvecmodelower>): New.
2927         (vcond_mask_<mode><sseintvecmodelower>): New.
2928         (vcond_mask_v2div2di): New.
2929         (vcond_mask_<mode><sseintvecmodelower>): New.
2930         (vcond_mask_<mode><sseintvecmodelower>): New.
2931
2932 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2933
2934         * optabs-query.h (get_vcond_mask_icode): New.
2935         * optabs-tree.c (expand_vec_cond_expr_p): Use
2936         get_vcond_mask_icode for VEC_COND_EXPR with mask.
2937         * optabs.c (expand_vec_cond_mask_expr): New.
2938         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2939         * optabs.def (vcond_mask_optab): New.
2940         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2941         generate redundant comparison for COND_EXPR.
2942         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2943         as a condition.
2944         (vectorizable_condition): Likewise.
2945         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2946         cond_exp with no embedded comparison.
2947         (vect_build_slp_tree_1): Likewise.
2948
2949 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2950
2951         * config/i386/sse.md (maskload<mode>): Rename to ...
2952         (maskload<mode><sseintvecmodelower>): ... this.
2953         (maskstore<mode>): Rename to ...
2954         (maskstore<mode><sseintvecmodelower>): ... this.
2955         (maskload<mode><avx512fmaskmodelower>): New.
2956         (maskstore<mode><avx512fmaskmodelower>): New.
2957
2958 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2959
2960         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2961         (expand_MASK_STORE): Adjust to maskstore optab changes.
2962         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2963          Adjust to maskload, maskstore optab changes.
2964         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2965         * optabs.def (maskload_optab): Transform into convert optab.
2966         (maskstore_optab): Likewise.
2967         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2968         can_vec_mask_load_store_p signature change.
2969         (predicate_mem_writes): Use boolean mask.
2970         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2971         can_vec_mask_load_store_p signature change.  Allow invariant masks.
2972         (vectorizable_operation): Ignore type precision for boolean vectors.
2973
2974 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2975
2976         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2977         (const_vector_mask_from_tree): New.
2978         (const_vector_from_tree): Use const_vector_mask_from_tree
2979         for boolean vectors.
2980         * optabs-query.h (get_vec_cmp_icode): New.
2981         * optabs-tree.c (expand_vec_cmp_expr_p): New.
2982         * optabs-tree.h (expand_vec_cmp_expr_p): New.
2983         * optabs.c (vector_compare_rtx): Add OPNO arg.
2984         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2985         (expand_vec_cmp_expr): New.
2986         * optabs.def (vec_cmp_optab): New.
2987         (vec_cmpu_optab): New.
2988         * optabs.h (expand_vec_cmp_expr): New.
2989         * tree-vect-generic.c (expand_vector_comparison): Add vector
2990         comparison optabs check.
2991         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
2992         operations for VF.  Add mask type computation.
2993         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2994         (vectorizable_comparison): New.
2995         (vect_analyze_stmt): Add vectorizable_comparison.
2996         (vect_transform_stmt): Likewise.
2997         (vect_init_vector): Support boolean vector invariants.
2998         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2999         (vectorizable_condition): Directly provide vectype for invariants
3000         used in comparison.
3001         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3002         (enum vect_var_kind): Add vect_mask_var.
3003         (enum stmt_vec_info_type): Add comparison_vec_info_type.
3004         (vectorizable_comparison): New.
3005         (vect_get_vec_def_for_operand): Add VECTYPE arg.
3006         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3007         (vect_create_destination_var): Likewise.
3008         * tree-vect-patterns.c (check_bool_pattern): Check fails
3009         if we can vectorize comparison directly.
3010         (search_type_for_mask): New.
3011         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3012         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3013         comparison statements.
3014         (vect_get_constant_vectors): Support boolean vector constants.
3015         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3016         (ix86_expand_int_vec_cmp): New.
3017         (ix86_expand_fp_vec_cmp): New.
3018         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3019         op_true and op_false.
3020         (ix86_int_cmp_code_to_pcmp_immediate): New.
3021         (ix86_fp_cmp_code_to_pcmp_immediate): New.
3022         (ix86_cmp_code_to_pcmp_immediate): New.
3023         (ix86_expand_mask_vec_cmp): New.
3024         (ix86_expand_fp_vec_cmp): New.
3025         (ix86_expand_int_sse_cmp): New.
3026         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3027         (ix86_expand_int_vec_cmp): New.
3028         (ix86_get_mask_mode): New.
3029         (TARGET_VECTORIZE_GET_MASK_MODE): New.
3030         * config/i386/sse.md (avx512fmaskmodelower): New.
3031         (vec_cmp<mode><avx512fmaskmodelower>): New.
3032         (vec_cmp<mode><sseintvecmodelower>): New.
3033         (vec_cmpv2div2di): New.
3034         (vec_cmpu<mode><avx512fmaskmodelower>): New.
3035         (vec_cmpu<mode><sseintvecmodelower>): New.
3036         (vec_cmpuv2div2di): New.
3037
3038 2015-11-10  Richard Biener  <rguenther@suse.de>
3039
3040         PR tree-optimization/68240
3041         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3042         properly.
3043         (visit_phi): For PHIs with just a single executable edge
3044         take its value directly.
3045         (expressions_equal_p): Handle VN_TOP properly.
3046
3047 2015-11-10  Richard Biener  <rguenther@suse.de>
3048
3049         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3050         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3051         conservatively.
3052
3053 2015-11-10  Richard Biener  <rguenther@suse.de>
3054
3055         PR tree-optimization/56118
3056         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3057         cost favor vectorized version.
3058
3059 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3060
3061         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3062         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3063         (neg_not_op): New code attribute.
3064
3065 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3066
3067         * ifcvt.c (noce_try_inverse_constants): New function.
3068         (noce_process_if_block): Call it.
3069         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3070         * optabs.def (negcc_optab, notcc_optab): Declare.
3071         * optabs.c (emit_conditional_neg_or_complement): New function.
3072         * doc/tm.texi (Standard Names): Document negcc, notcc names.
3073
3074 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3075
3076         PR rtl-optimization/68236
3077         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3078         if insn_queue doesn't exist.
3079         (haifa_sched_finish): Reset insn_queue to NULL.
3080
3081 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
3082
3083         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3084         (build_def_use): Initialize terminated_this_insn.
3085         (find_best_rename_reg): Pick and check register from the tied chain.
3086         (regrename_do_replace): Mark head as renamed.
3087         (struct du_head *terminated_this_insn). New static variable.
3088         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
3089         * regrename.h (struct du_head): Add tied_chain, renamed members.
3090
3091 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3092
3093         PR bootstrap/68256
3094         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3095         Return false.
3096
3097 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3098
3099         PR target/57845
3100         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3101         not promote the mode for aggregate types.
3102
3103 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3104
3105         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3106         * omp-low.c (build_oacc_routine_dims): New.
3107
3108 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3109
3110         * config/rs6000/constraints.md (wF constraint): New constraints
3111         for power9/toc fusion.
3112         (wG constraint): Likewise.
3113
3114         * config/rs6000/predicates.md (u6bit_cint_operand): New
3115         predicate, recognize 0..63.
3116         (upper16_cint_operand): New predicate for power9 and toc fusion.
3117         (fpr_reg_operand): Likewise.
3118         (toc_fusion_or_p9_reg_operand): Likewise.
3119         (toc_fusion_mem_raw): Likewise.
3120         (toc_fusion_mem_wrapped): Likewise.
3121         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3122         address range.
3123         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3124         instead.
3125         (fusion_addis_mem_combo_load): Add support for power9 fusion of
3126         floating point loads, floating point stores, and gpr stores.
3127         (fusion_addis_mem_combo_store): Likewise.
3128         (fusion_offsettable_mem_operand): Likewise.
3129
3130         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3131         (emit_fusion_load_store): Likewise.
3132         (fusion_p9_p): Likewise.
3133         (expand_fusion_p9_load): Likewise.
3134         (expand_fusion_p9_store): Likewise.
3135         (emit_fusion_p9_load): Likewise.
3136         (emit_fusion_p9_store): Likewise.
3137         (fusion_wrap_memory_address): Likewise.
3138
3139         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3140         elements for power9 fusion.
3141         (rs6000_debug_print_mode): Rework debug information to print more
3142         information about fusion.
3143         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3144         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3145         offsettable memory address.
3146         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3147         (emit_fusion_gpr_load): Move most of the code from
3148         emit_fusion_gpr_load into emit_fusion-addis that handles both
3149         power8 and power9 fusion.
3150         (emit_fusion_addis): Likewise.
3151         (emit_fusion_load_store): Likewise.
3152         (fusion_wrap_memory_address): Add support for TOC fusion.
3153         (fusion_split_address): Likewise.
3154         (fusion_p9_p): Add support for power9 fusion.
3155         (expand_fusion_p9_load): Likewise.
3156         (expand_fusion_p9_store): Likewise.
3157         (emit_fusion_p9_load): Likewise.
3158         (emit_fusion_p9_store): Likewise.
3159
3160         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3161         new instructions in ISA 3.0.
3162         (TARGET_CTZ): Likewise.
3163         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3164         (TARGET_TOC_FUSION_FP): Likewise.
3165
3166         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3167         fusion unspecs.
3168         (UNSPEC_FUSION_ADDIS): Likewise.
3169         (QHSI mode iterator): New iterator for power9 fusion.
3170         (GPR_FUSION): Likewise.
3171         (FPR_FUSION): Likewise.
3172         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3173         (umod<mode>3): Likewise.
3174         (divmod peephole): Likewise.
3175         (udivmod peephole): Likewise.
3176         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3177         instructions.
3178         (ctz<mode>2_h): Likewise.
3179         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3180         (ashdi3_extswsli_dot): Likewise.
3181         (ashdi3_extswsli_dot2): Likewise.
3182         (power9 fusion splitter): New power9/toc fusion support.
3183         (toc_fusionload_<mode>): Likewise.
3184         (toc_fusionload_di): Likewise.
3185         (fusion_gpr_load_<mode>): Update predicate function.
3186         (power9 fusion peephole2s): New power9/toc fusion support.
3187         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3188         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3189         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3190         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3191         (fusion_p9_<mode>_constant): Likewise.
3192
3193 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
3194
3195         * optabs.c (prepare_libcall_arg): New function.
3196         (expand_fixed_convert): Add call to prepare_libcall_arg.
3197
3198 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3199
3200         * sched-int.h (dump_rgn_dependencies_dot): Declare
3201         * sched-rgn.c (dump_rgn_dependencies_dot): New function
3202         * print-rtl.h (print_insn): Add prototype
3203
3204         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3205         * common.opt (-fsched-verbose): Set default value to 1.
3206         * invoke.texi (-fsched-verbose): Update the option's description.
3207
3208 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3209
3210         * config/visium/visium.h (PRINT_OPERAND): Delete.
3211         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3212         (PRINT_OPERAND_ADDRESS): Likewise.
3213         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3214         to...
3215         (visium_print_operand_punct_valid_p): ...this.  New function.
3216         (TARGET_PRINT_OPERAND): Define to...
3217         (print_operand): Rename to...
3218         (visium_print_operand): ...this.
3219         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3220         (visium_output_address): Rename to...
3221         (visium_print_operand_address): ...this.
3222         (print_operand_address): Delete.
3223
3224 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3225
3226         PR middle-end/68259
3227         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3228         Check that the type of the first operand is an aggregate type.
3229
3230 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3231
3232         * omp-low.c: Fix some OpenACC comment typos.
3233         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3234         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3235         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3236
3237 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
3238
3239         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3240
3241 2015-11-09  Jeff Law  <law@redhat.com>
3242
3243         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3244         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
3245         Fix comment typo.
3246
3247 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3248             Peter Bergner  <bergner@vnet.ibm.com>
3249
3250         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3251         ISA 3.0 (power9).
3252         (-mpower9-vector): Likewise.
3253         (-mpower9-dform): Likewise.
3254         (-mpower9-minmax): Likewise.
3255         (-mtoc-fusion): Likewise.
3256         (-mmodulo): Likewise.
3257         (-mfloat128-hardware): Likewise.
3258
3259         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3260         mask for ISA 3.0 (power9).
3261         (POWERPC_MASKS): Add new ISA 3.0 switches.
3262         (power9 cpu): Add power9 cpu.
3263
3264         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3265         (ASM_CPU_SPEC): Likewise.
3266         (EXTRA_SPECS): Likewise.
3267
3268         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3269         PROCESSOR_POWER9.
3270
3271         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3272         (rs6000_debug_reg_global): Add support for power9 fusion.
3273         (rs6000_setup_reg_addr_masks): Cache mode size.
3274         (rs6000_option_override_internal): Until real power9 tuning is
3275         added, use -mtune=power8 for -mcpu=power9.
3276         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3277         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3278         of Altivec registers.
3279         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3280         (rs6000_loop_align): Add support for power9 cpu.
3281         (rs6000_file_start): Likewise.
3282         (rs6000_adjust_cost): Likewise.
3283         (rs6000_issue_rate): Likewise.
3284         (insn_must_be_first_in_group): Likewise.
3285         (insn_must_be_last_in_group): Likewise.
3286         (force_new_group): Likewise.
3287         (rs6000_register_move_cost): Likewise.
3288         (rs6000_opt_masks): Likewise.
3289
3290         * config/rs6000/rs6000.md (cpu attribute): Add power9.
3291         * config/rs6000/rs6000-tables.opt: Regenerate.
3292
3293         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3294         _ARCH_PWR9 if power9 support is available.
3295
3296         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3297         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3298
3299         * configure.ac: Determine if the assembler supports the ISA 3.0
3300         instructions.
3301         * config.in (HAVE_AS_POWER9): Likewise.
3302         * configure: Regenerate.
3303
3304         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3305         switches.
3306
3307 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3308
3309         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3310         Remove integer CONST_DOUBLE handling.  It should never occur.
3311
3312 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3313
3314         PR target/68129
3315         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3316         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3317         Delete VOIDmode case.  Assert that mode is not VOIDmode.
3318         * config/aarch64/predicates.md (const0_operand): Remove const_double
3319         match.
3320
3321 2015-11-09  Martin Liska  <mliska@suse.cz>
3322
3323         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3324         body_info release function.
3325         * ipa-prop.c (ipa_release_body_info): New function.
3326         (ipa_analyze_node): Call the function.
3327         (ipa_node_params::~ipa_node_params): Release known_csts.
3328         * ipa-prop.h (ipa_release_body_info): Declare.
3329
3330 2015-11-09  Martin Liska  <mliska@suse.cz>
3331
3332         * gcc.c (record_temp_file): Release name string.
3333         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3334         * lra-lives.c (free_live_range_list): Utilize
3335         lra_live_range_pool for allocation and deallocation.
3336         (create_live_range): Likewise.
3337         (copy_live_range): Likewise.
3338         (lra_merge_live_ranges): Likewise.
3339         (remove_some_program_points_and_update_live_ranges): Likewise.
3340         (lra_create_live_ranges_1): Release point_freq_vec that can
3341         be not freed from previous iteration of the function.
3342         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3343         * tree-sra.c (sra_deinitialize): Release all vectors in
3344         base_access_vec.
3345         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3346         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3347         Release edge_info for a removed edge.
3348         (thread_through_all_blocks): Free region vector.
3349         * tree-ssa.h (free_dom_edge_info): Declare function extern.
3350
3351 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
3352
3353         * optabs.c (expand_vec_cond_expr): Always get sign from type.
3354         * tree.c (wide_int_to_tree): Support negative values for boolean.
3355         (build_nonstandard_boolean_type): Use signed type for booleans.
3356
3357 2015-11-09  Richard Biener  <rguenther@suse.de>
3358
3359         PR tree-optimization/68248
3360         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3361
3362 2015-11-09  Richard Biener  <rguenther@suse.de>
3363
3364         PR tree-optimization/56118
3365         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3366         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3367         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3368         function.
3369         (vect_slp_analyze_data_ref_dependences): Instead of computing
3370         all dependences of the region DRs just analyze the code motions
3371         SLP vectorization will perform.  Remove SLP instances that
3372         cannot have their store/load motions applied.
3373         (vect_analyze_data_refs): Allow DRs without a vectype
3374         in BB vectorization.
3375
3376 2015-11-09  Julian Brown  <julian@codesourcery.com>
3377
3378         * final.c (output_asm_insn): Pass VOIDmode to output_address.
3379         (output_address): Add MODE argument. Pass to print_operand_address
3380         hook.
3381         * targhooks.c (default_print_operand_address): Add MODE argument.
3382         * targhooks.h (default_print_operand_address): Update prototype.
3383         * output.h (output_address): Update prototype.
3384         * target.def (print_operand_address): Add MODE argument.
3385         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3386         output_address.
3387         (print_operand): Pass access mode to output_address.
3388         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3389         argument.
3390         (mcore_print_operand): Update calls to mcore_print_operand_address.
3391         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3392         output_address.
3393         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3394         output_address.
3395         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3396         global.
3397         (tilegx_print_operand): Don't set above global. Update calls to
3398         output_address.
3399         (tilegx_print_operand_address): Add MODE argument. Use instead of
3400         output_memory_reference_mode global.
3401         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3402         (frv_print_operand): Pass mode to frv_print_operand_address calls.
3403         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3404         output_address.
3405         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3406         (cris_print_operand): Pass mode to output_address calls.
3407         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3408         * config/aarch64/aarch64.h (aarch64_print_operand)
3409         (aarch64_print_operand_address): Remove prototypes.
3410         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3411         global.
3412         (aarch64_print_operand): Make static. Update calls to output_address.
3413         (aarch64_print_operand_address): Add MODE argument. Use instead of
3414         aarch64_memory_reference_mode global.
3415         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3416         hooks.
3417         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3418         Delete macro definitions.
3419         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3420         * config/xtensa/xtensa.c (print_operand): Pass mode in
3421         output_address calls.
3422         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3423         argument.
3424         (h83000_print_operand): Update calls to h8300_print_operand_address
3425         and output_address.
3426         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3427         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3428         global.
3429         (tilepro_print_operand): Pass mode to output_address.
3430         (tilepro_print_operand_address): Add MODE argument. Use instead of
3431         output_memory_reference_mode.
3432         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3433         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3434         to output_address calls.
3435         (nvptx_print_operand_address): Add MODE argument.
3436         * config/alpha/alpha.c (print_operand): Pass mode argument in
3437         output_address calls.
3438         * config/m68k/m68k.c (print_operand): Pass mode argument in
3439         output_address call.
3440         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3441         (avr_print_operand): Update calls to avr_print_operand_address.
3442         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3443         argument. Update calls to output_address.
3444         (sparc_print_operand): Pass mode to output_address.
3445         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3446         argument.
3447         (iq2000_print_operand): Pass mode in output_address calls.
3448         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3449         MODE argument.
3450         (xstormy16_print_operand): Pass mode to
3451         xstormy16_print_operand_address calls.
3452         * config/mips/mips.c (mips_print_operand): Update calls to
3453         output_address.
3454         (mips_print_operand_address): Add MODE argument.
3455         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3456         to output_address.
3457         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3458         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3459         output_address.
3460         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3461         (rx_print_operand): Update calls to output_address,
3462         rx_print_operand_address.
3463         * config/nds32/nds32.c (nds32_print_operand): Update calls to
3464         output_address.
3465         (nds32_print_operand_address): Add MODE argument.
3466         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3467         output_address calls.
3468         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3469         output_address call.
3470         (c6x_print_address_operand): Update calls to output_address.
3471         (c6x_print_operand_address): Pass mode to above.
3472         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3473         (v850_print_operand): Pass mode to v850_print_operand_address,
3474         output_address.
3475         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3476         (mmix_print_operand): Pass mode in output_address calls.
3477         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3478         (sh_print_operand): Pass mem mode to output_address,
3479         sh_print_operand_address.
3480         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3481         (cr16_print_operand): Pass mode to output_address,
3482         cr16_print_operand_address.
3483         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3484         output_address.
3485         * config/microblaze/microblaze.c (print_operand): Pass mode to
3486         output_address.
3487         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3488         output_address.
3489         (nios2_print_operand_address): Add MODE argument. Update call to
3490         nios2_print_operand_address.
3491         * config/s390/s390.c (print_operand): Pass mode to output_address.
3492         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3493         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3494         output_address.
3495         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3496         Use instead of output_memory_reference_mode.
3497         (output_memory_reference_mode): Delete global.
3498         (arm_print_operand): Pass mem mode to output_address.
3499         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3500         (m32r_print_operand): Pass mode to output_address.
3501         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3502         argument.
3503         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3504         * config/i386/i386.c (ix86_print_operand): Pass mode to
3505         output_address calls.
3506         (ix86_print_operand_address): Add MODE argument.
3507
3508 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3509
3510         PR middle-end/68251
3511         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3512         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3513         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3514         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3515
3516 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3517
3518         PR rtl-optimization/67749
3519         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3520         case before emitting the two blocks.  Instead modify the register
3521         in the corresponding final insn of the basic block.
3522
3523 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3524
3525         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3526         assembler syntax.
3527         Support Solaris ld.
3528         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3529
3530         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3531         HAVE_INITFINI_ARRAY_SUPPORT.
3532         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3533
3534         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3535         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3536         Don't check HAVE_AS_SPARC_NOBITS.
3537         Heed SECTION_NOTYPE.
3538
3539         * configure: Regenerate.
3540         * config.in: Regenerate.
3541
3542 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3543
3544         PR middle-end/68253
3545         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3546
3547 2015-11-09  Richard Henderson  <rth@redhat.com>
3548
3549         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3550         __SEG_GS, __SEG_TLS.
3551         (ix86_register_pragmas): Register address spaces __seg_fs,
3552         __seg_gs, __seg_tls.
3553         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3554         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3555         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3556         * config/i386/i386.c (ix86_decompose_address): Likewise.
3557         (ix86_legitimate_address_p): Likewise.
3558         (memory_address_length): Likewise.  Check mem address space too.
3559         (ix86_print_operand): Use ix86_print_operand_address_as.
3560         (ix86_print_operand_address_as): Rename from
3561         ix86_print_operand_address, add new addr_space_t parameter.
3562         Validate that either the parameter or the ix86_address segment
3563         is default address space.  Handle ADDR_SPACE_SEG_TLS.
3564         (ix86_print_operand_address): New.
3565         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3566         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3567         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3568         (ix86_addr_space_zero_address_valid): New.
3569         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3570         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3571         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3572         * config/i386/predicates.md (address_no_seg_operand): Likewise.
3573         (vsib_address_operand): Likewise.
3574         (address_mpx_no_base_operand): Likewise.
3575         (address_mpx_no_index_operand): Likewise.
3576         * doc/extend.texi (x86 Named Address Spaces): New section.
3577
3578         * config/i386/i386.c (ix86_check_no_addr_space): New.
3579         (decide_alg): Add have_as parameter.
3580         (alg_usable_p): Likewise; disable rep algorithms if set.
3581         (ix86_expand_set_or_movmem): Notice if either MEM has a
3582         non-default address space.
3583         (ix86_expand_strlen): Likewise.
3584         * config/i386/i386.md (strmov, strset): Likewise.
3585         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3586         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3587         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3588         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3589         *cmpstrnqi_1, *strlenqi_1): Likewise.
3590
3591         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3592         (*movabs<mode>_2): Likewise.
3593
3594         * dwarf2out.c (modified_type_die): Pass the address space number
3595         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3596         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3597         * targhooks.c (default_addr_space_debug): New.
3598         * targhooks.h (default_addr_space_debug): Declare.
3599         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3600         * doc/tm.texi: Rebuild.
3601
3602         * gimple.c (check_loadstore): Return false when 0 is a valid address.
3603         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3604         null when 0 is valid in the source address space.
3605         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3606         * targhooks.c (default_addr_space_zero_address_valid): New.
3607         * targhooks.h (default_addr_space_zero_address_valid): Declare.
3608         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3609         * doc/tm.texi: Rebuild.
3610
3611         * cselib.c (add_mem_for_addr): Compare address spaces when
3612         matching memories.
3613         (cselib_lookup_mem): Likewise.
3614         * fold-const.c (operand_equal_p): Check address spaces of
3615         pointer types before checking integer constants.
3616
3617         PR tree-opt/66768
3618         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3619         the correct type for the base.
3620
3621 2015-11-09  Jeff Law  <law@redhat.com>
3622
3623         * tree-into-ssa.c (names_to_release): No longer static.
3624         * tree-into-ssa.h (names_to_release): Declare.
3625         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3626         (release_free_names_and_compact_live_names): New function extracted
3627         from pass_release_ssa_names::execute.
3628         (pass_release_ssa_names::execute): Use it.
3629
3630 2015-11-09  Alan Modra  <amodra@gmail.com>
3631
3632         * gensupport.c (add_mnemonic_string): Make len param a size_t.
3633         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
3634         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
3635         return value.
3636
3637 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
3638
3639         PR rtl-optimization/68182
3640         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3641         branch with only one successor just like unconditional branches.
3642
3643 2015-11-08  Jeff Law  <law@redhat.com>
3644
3645         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3646         non-FSM path has no edges marked with EDGE_DFS_BACK.
3647         (ssa_redirect_edges): No longer call mark_loop_for_removal.
3648         (thread_single_edge, def_split_header_continue_p): Remove.
3649         (bb_ends_with_multiway_branch): Likewise.
3650         (thread_through_loop_header): Remove cases of threading from
3651         latch through the header.  Simplify knowing we won't thread
3652         the latch.
3653         (thread_through_all_blocks): Simplify knowing that only the FSM
3654         threader needs to handle backedges.
3655
3656 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3657
3658         * doc/extend.texi (type attributes): Document scalar_storage_order.
3659         (Structure-Packing Pragmas): Rename into...
3660         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
3661         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3662         (Warnings): Document -Wno-scalar-storage-order.
3663         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3664         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3665         extract_bit_field and store_bit_field.
3666         (initialize_argument_information): Adjust call to store_expr.
3667         (load_register_parameters): Adjust call to extract_bit_field.
3668         * expmed.c (check_reverse_storage_order_support): New function.
3669         (check_reverse_float_storage_order_support): Likewise.
3670         (flip_storage_order): Likewise.
3671         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
3672         of the value if it is true.  Pass REVERSE to recursive call after
3673         adjusting the target offset.
3674         Do not use extraction or movstrict instruction if REVERSE is true.
3675         Pass REVERSE to store_fixed_bit_field.
3676         (store_bit_field): Add REVERSE parameter and pass to it to above.
3677         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3678         store_split_bit_field and store_fixed_bit_field_1.
3679         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
3680         order of the value if it is true and adjust the target offset.
3681         (store_split_bit_field): Add REVERSE parameter and pass it to
3682         store_fixed_bit_field.  Adjust the target offset if it is true.
3683         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
3684         of the value if it is true.  Pass REVERSE to recursive call after
3685         adjusting the target offset.
3686         Do not use extraction or subreg instruction if REVERSE is true.
3687         Pass REVERSE to extract_fixed_bit_field.
3688         (extract_bit_field): Add REVERSE parameter and pass to it to above.
3689         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3690         extract_split_bit_field and extract_fixed_bit_field_1.
3691         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
3692         order of the value if it is true and adjust the target offset.
3693         (extract_split_bit_field): Add REVERSE parameter and pass it to
3694         extract_fixed_bit_field.  Adjust the target offset if it is true.
3695         * expmed.h (flip_storage_order): Declare.
3696         (store_bit_field): Adjust prototype.
3697         (extract_bit_field): Likewise.
3698         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3699         (emit_group_store): Adjust call to store_bit_field.
3700         (copy_blkmode_from_reg): Likewise.
3701         (copy_blkmode_to_reg): Likewise.
3702         (write_complex_part): Likewise.
3703         (read_complex_part): Likewise.
3704         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
3705         that it isn't true if the target is a register.
3706         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3707         and flip the storage order of the value.
3708         <BIT_IOR_EXPR>: Flip the storage order of the value.
3709         (get_bit_range): Adjust call to get_inner_reference.
3710         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3711         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
3712         with reverse storage order.
3713         (store_expr_with_bounds): Add REVERSE parameter and pass it to
3714         recursive calls and call to store_bit_field.  Force the value into a
3715         register if it is true and then flip the storage order of the value.
3716         (store_expr): Add REVERSE parameter and pass it to above.
3717         (categorize_ctor_elements_1): Adjust call to
3718         initializer_constant_valid_p.
3719         (store_constructor_field): Add REVERSE parameter and pass it to
3720         recursive calls and call to store_field.
3721         (store_constructor): Add REVERSE parameter and pass it to calls to
3722         store_constructor_field and store_expr.  Set it to true for an
3723         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3724         (store_field): Add REVERSE parameter and pass it to recursive calls
3725         and calls to store_expr and store_bit_field.  Temporarily flip the
3726         storage order of the value with record type and integral mode and
3727         adjust the shift if it is true.
3728         (get_inner_reference): Add PREVERSEP parameter and set it to true
3729         upon encoutering a reference with reverse storage order.
3730         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3731         (expand_constructor): Adjust call to store_constructor.
3732         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3733         of the union type to store_expr in the MEM case and assert that it
3734         isn't set in the REG case.  Adjust call to store_field.
3735         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3736         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3737         get_inner_reference and extract_bit_field. Temporarily flip the
3738         storage order of the value with record type and integral mode and
3739         adjust the shift if it is true.  Flip the storage order of the value
3740         at the end if it is true.
3741         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3742         get_inner_reference.  Do not fetch an inner reference if it is true.
3743         * expr.h (store_expr_with_bounds): Ajust prototype.
3744         (store_expr): Likewise.
3745         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3746         REF_REVERSE_STORAGE_ORDER on the reference according to it.
3747         (optimize_bit_field_compare): Deal with reverse storage order.
3748         Adjust calls to get_inner_reference and make_bit_field_ref.
3749         (decode_field_reference): Add PREVERSEP parameter and adjust call to
3750         get_inner_reference.
3751         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
3752         to decode_field_reference and make_bit_field_ref.
3753         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3754         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3755         (fold_comparison): Adjust call to get_inner_reference.
3756         (split_address_to_core_and_offset): Adjust call to
3757         get_inner_reference.
3758         * gimple-expr.c (useless_type_conversion_p): Return false for array
3759         types with different TYPE_REVERSE_STORAGE_ORDER flag.
3760         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3761         REF_REVERSE_STORAGE_ORDER flag.
3762         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3763         * output.h (assemble_real): Adjust prototype.
3764         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3765         * stor-layout.c (finish_record_layout): Propagate the
3766         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3767         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3768         (TYPE_SATURATING): Adjust.
3769         (REF_REVERSE_STORAGE_ORDER): Document.
3770         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3771         set it to true upon encoutering a reference with reverse storage order.
3772         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3773         * tree-inline.c (remap_gimple_op_r): Propagate the
3774         REF_REVERSE_STORAGE_ORDER flag.
3775         (copy_tree_body_r): Likewise.
3776         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3777         store_expr.
3778         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3779         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3780         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3781         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3782         REF_REVERSE_STORAGE_ORDER flag.
3783         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3784         (gimple_canonical_types_compatible_p): Likewise.
3785         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3786         (TYPE_SATURATING): Adjust.
3787         (REF_REVERSE_STORAGE_ORDER): New flag.
3788         (reverse_storage_order_for_component_p): New inline predicate.
3789         (storage_order_barrier_p): Likewise.
3790         (get_inner_reference): Adjust prototype.
3791         * varasm.c: Include expmed.h.
3792         (assemble_variable_contents): Adjust call to output_constant.
3793         (assemble_real): Add REVERSE parameter.  Flip the storage
3794         order of the value if REVERSE is true.
3795         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3796         (assemble_constant_contents): Adjust call to output_constant.
3797         (output_constant_pool_2): Adjust call to assemble_real.
3798         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3799         TYPE_REVERSE_STORAGE_ORDER.
3800         (initializer_constant_valid_p): Add REVERSE parameter.
3801         (output_constant): Add REVERSE parameter.
3802         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3803         <REAL_TYPE>: Adjust call to assemble_real.
3804         <COMPLEX_TYPE>: Pass it to recursive calls.
3805         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
3806         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
3807         (struct oc_local_state): Add REVERSE field.
3808         (output_constructor_array_range): Adjust calls to output_constant.
3809         (output_constructor_regular_field): Likewise.
3810         (output_constructor_bitfield): Adjust call to output_constructor.
3811         Flip the storage order of the value if REVERSE is true.
3812         (output_constructor): Add REVERSE parameter.  Set it to true for an
3813         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
3814         output_constructor_bitfield.
3815         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3816         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3817         * builtins.c (get_object_alignment_2): Likewise.
3818         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3819         and get_ref_base_and_extent.
3820         * dbxout.c (dbxout_expand_expr): Likewise.
3821         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3822         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3823         (loc_list_from_tree): Likewise.
3824         (fortran_common): Likewise.
3825         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3826         get_ref_base_and_extent.
3827         (get_base_constructor): Likewise.
3828         (fold_const_aggregate_ref_1): Likewise.
3829         * gimple-laddress.c (pass_laddress::execute): Adjust call to
3830         get_inner_reference.
3831         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3832         get_inner_reference and bail out on reverse storage order.
3833         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3834         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3835         build_ref_for_offset.
3836         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3837         get_ref_base_and_extent.
3838         (ipa_polymorphic_call_context): Likewise.
3839         (extr_type_from_vtbl_ptr_store): Likewise.
3840         (check_stmt_for_type_change): Likewise.
3841         (get_dynamic_type): Likewise.
3842         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3843         get_ref_base_and_extent.
3844         (compute_complex_assign_jump_func): Likewise.
3845         (get_ancestor_addr_info): Likewise.
3846         (compute_known_type_jump_func): Likewise.
3847         (determine_known_aggregate_parts): Likewise.
3848         (ipa_get_adjustment_candidate): Likewise.
3849         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3850         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3851         (build_ref_for_offset): Adjust prototype.
3852         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3853         get_inner_reference.
3854         * tree-affine.c (tree_to_aff_combination): Adjust call to
3855         get_inner_reference.
3856         (get_inner_reference_aff): Likewise.
3857         * tree-data-ref.c (split_constant_offset_1): Likewise.
3858         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
3859         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3860         get_inner_reference.
3861         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3862         (dump_access): Print new fields.
3863         (create_access): Adjust call to get_ref_base_and_extent and set the
3864         REVERSE flag according to the result.
3865         (completely_scalarize_record): Set the REVERSE flag.
3866         (scalarize_elem): Add REVERSE parameter.
3867         (build_access_from_expr_1): Preserve storage order barriers.
3868         (build_accesses_from_assign): Likewise.
3869         (build_ref_for_offset): Add REVERSE parameter and set the
3870         REF_REVERSE_STORAGE_ORDER flag accordingly.
3871         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3872         the REF_REVERSE_STORAGE_ORDER flag if there are components.
3873         (analyze_access_subtree): Likewise.
3874         (create_artificial_child_access): Set the REVERSE flag.
3875         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3876         (turn_representatives_into_adjustments): Propagate REVERSE flag.
3877         (ipa_sra_check_caller): Adjust call to get_inner_reference.
3878         * tree-ssa-alias.c (ao_ref_base): Adjust call to
3879         get_ref_base_and_extent.
3880         (aliasing_component_refs_p): Likewise.
3881         (stmt_kills_ref_p_1): Likewise.
3882         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3883         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3884         Return true if reverse storage order.
3885         <BIT_FIELD_REF>: Likewise.
3886         <COMPONENT_REF>: Likewise.
3887         <ARRAY_REF>: Likewise.
3888         <ARRAY_RANGE_REF>: Likewise.
3889         (split_address_cost): Likewise.  Bail out if reverse storage order.
3890         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3891         get_inner_reference.  Bail out if reverse storage order.
3892         (bswap_replace): Adjust call to get_inner_reference.
3893         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3894         the REF_REVERSE_STORAGE_ORDER flag.
3895         <BIT_FIELD_REF>: Likewise.
3896         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3897         barriers.
3898         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3899         to the REF_REVERSE_STORAGE_ORDER flag.
3900         <BIT_FIELD_REF>: Likewise.
3901         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3902         (contains_storage_order_barrier_p): New predicate.
3903         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3904         Punt on storage order barriers if necessary.
3905         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3906         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3907         call to get_ref_base_and_extent.
3908         (do_structure_copy): Likewise.
3909         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3910         get_inner_reference.
3911         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
3912         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3913         * ubsan.c (instrument_bool_enum_load): Likewise.
3914         (instrument_object_size): Likewise.
3915         * var-tracking.c (track_expr_p): Adjust call to
3916         get_ref_base_and_extent.
3917         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3918         get_inner_reference.
3919         * config/s390/s390.c (s390_expand_atomic): Adjust call to
3920         store_bit_field.
3921         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3922         extract_bit_field.
3923         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3924
3925 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3926
3927         * config/sparc/sparc.opt (mfix-at697f): Add final period.
3928
3929 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
3930
3931         PR rtl-optimization/67864
3932         * common/config/i386/i386-common.c (ix86_option_optimization_table)
3933         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3934         at -Os and up.
3935
3936 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3937
3938         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3939         internal functions.
3940
3941 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3942
3943         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3944         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3945
3946 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3947
3948         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3949         * internal-fn.c: Don't undef it here.
3950         * tree-core.h: Likewise.
3951
3952 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3953
3954         * builtins.c (fold_builtin_nan): Delete.
3955         (fold_builtin_memcmp): Remove case where both arguments are constant.
3956         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3957         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3958         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3959         * fold-const-call.c: Include fold-const.h.
3960         (host_size_t_cst_p): New function.
3961         (build_cmp_result, fold_const_builtin_nan): Likewise.
3962         (fold_const_call_1): New function, split out from...
3963         (fold_const_call): ...here (for all three interfaces).  Handle
3964         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3965
3966 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3967
3968         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3969         (fold_builtin_1): Don't call them.
3970         * fold-const-call.c: Include tm.h.
3971         (fold_const_call_ss): New variant for integer-to-integer folds.
3972         (fold_const_call): Call it.
3973
3974 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3975
3976         * builtins.c (fold_builtin_classify): Move constant cases to...
3977         * fold-const-call.c (fold_const_call_ss): ...here.
3978
3979 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3980
3981         * builtins.h (c_getstr): Move to...
3982         * fold-const.h (c_getstr): ...here.
3983         * builtins.c (c_getstr): Move to...
3984         * fold-const.c (c_getstr): ...here.
3985
3986 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3987
3988         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3989         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3990
3991 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3992
3993         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3994         the dominance info; free it if we can't.
3995         (pass_call_cdce::execute): Don't free the dominance info here.
3996
3997 2015-11-06  Jeff Law <law@redhat.com>
3998
3999         * tree-ssa-threadedge.c (dummy_simplify): Remove.
4000         (thread_around_empty_blocks): Remove backedge_seen_p argument.
4001         If we thread to a backedge, then return false.  Update recursive
4002         call to eliminate backedge_seen_p argument.
4003         (thread_through_normal_block): Remove backedge_seen_p argument.
4004         Remove backedge_seen_p argument from calls to
4005         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
4006         If we thread to a backedge, then return 0.
4007         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
4008         pass it to thread_through_normal_block or thread_through_empty_blocks.
4009         For joiner handling, if we see a backedge, do not try normal
4010         threading.
4011
4012 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4013
4014         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4015         * graphite-poly.c (new_scop): Initialize original_schedule.
4016         (free_scop): Free original_schedule.
4017         * graphite-poly.h (struct scop): Add field original_schedule.
4018         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4019         (build_poly_scop): Call build_scop_original_schedule.
4020
4021 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4022
4023         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4024         (build_pbb_minimal_scattering_polyhedrons): New.
4025         (build_scop_scattering): Remove.
4026         (build_scop_minimal_scattering): New.
4027         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4028         (build_poly_scop): Call build_scop_minimal_scattering.
4029
4030 2015-11-06  Jeff Law <law@redhat.com>
4031
4032         * cfg-flags.def (IGNORE): New edge flag.
4033         * tree-vrp.c (identify_jump_threads): Mark and clear edges
4034         scheduled for removal with EDGE_IGNORE around call into
4035         jump threader.  Do no thread across edges with EDGE_IGNORE,
4036         but do allow threading across those with EDGE_DFS_BACK.
4037
4038 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
4039
4040         * doc/md.texi (multi-alternative constraints): Don't document
4041         alternatives inherently tied to reload for the user documentation.
4042
4043 2015-11-06  Michael Collison  <michael.collison@linaro.org>
4044             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4045
4046         Revert:
4047         2015-08-01  Michael Collison  <michael.collison@linaro.org
4048                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4049
4050         * config/arm/arm.md (*arm_smin_cmp): New pattern.
4051         (*arm_umin_cmp): Likewise.
4052
4053 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
4054
4055         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4056         * omp-low.c (check_omp_nesting_restrictions): Update for the
4057         various new OpenMP 4.5 nesting restrictions, clarified
4058         nesting glossary, closely nested region relationship clarified
4059         to mean explicit or implicit parallel regions (target/teams),
4060         use %</%> or %qs where appropriate.
4061
4062 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4063             Sebastian Pop  <s.pop@samsung.com>
4064
4065         * graphite-scop-detection.c (loop_is_valid_scop): Call
4066         optimize_loop_nest_for_speed_p.
4067
4068 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4069             Sebastian Pop  <s.pop@samsung.com>
4070
4071         * graphite-optimize-isl.c (optimize_isl): Call
4072         isl_options_set_schedule_maximize_band_depth.
4073
4074 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
4075             Sebastian Pop  <s.pop@samsung.com>
4076
4077         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4078         and exit edges should not be a part of irreducible loop.
4079         (scop_detection::can_represent_loop_1): Loops should not be
4080         irreducible.
4081         (scop_detection::harmful_stmt_in_region): All the basic block
4082         should belong to reducible loops.
4083
4084 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
4085
4086         * config/aarch64/aarch64-simd-builtins.def: Update builtins
4087         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4088         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4089         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4090         (aarch64_tbx4v8qi): Rename to...
4091         aarch64_tbx4<mode>): ... this.
4092         (aarch64_qtbl3<mode>): New pattern.
4093         (aarch64_qtbx3<mode>): New pattern.
4094         (aarch64_qtbl4<mode>): New pattern.
4095         (aarch64_qtbx4<mode>): New pattern.
4096         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4097         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4098         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4099         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4100         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4101         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4102         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4103         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4104         functions.
4105
4106 2015-11-06  Mike Stump  <mikestump@comcast.net>
4107
4108         PR debug/66728
4109         * dwarf2out.c (get_full_len): Return a value based upon the actual
4110         precision needed for the value.
4111         (add_const_value_attribute): Use a maximal wide-int for
4112         CONST_WIDE_INTs, not VOIDmode.
4113         (output_die): Don't ever output NULL with printf.
4114
4115         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4116         BLKmode nor VOIDmode values.
4117
4118 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4119
4120         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4121         and "range2".
4122         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4123         * diagnostic-core.h (warning_at_rich_loc): New declaration.
4124         (error_at_rich_loc): New declaration.
4125         (permerror_at_rich_loc): New declaration.
4126         (inform_at_rich_loc): New declaration.
4127         * diagnostic-show-locus.c (adjust_line): Delete.
4128         (struct point_state): New struct.
4129         (class colorizer): New class.
4130         (class layout_point): New class.
4131         (class layout_range): New class.
4132         (struct line_bounds): New.
4133         (class layout): New class.
4134         (colorizer::colorizer): New ctor.
4135         (colorizer::~colorizer): New dtor.
4136         (layout::layout): New ctor.
4137         (layout::print_source_line): New method.
4138         (layout::print_annotation_line): New method.
4139         (layout::get_state_at_point): New method.
4140         (layout::get_x_bound_for_row): New method.
4141         (diagnostic_show_locus): Reimplement in terms of class layout.
4142         (diagnostic_print_caret_line): Delete.
4143         * diagnostic.c (diagnostic_initialize): Replace
4144         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4145         (diagnostic_set_info_translated): Convert param from location_t
4146         to rich_location *.  Eliminate calls to set_location on the
4147         message in favor of storing the rich_location ptr there.
4148         (diagnostic_set_info): Convert param from location_t to
4149         rich_location *.
4150         (diagnostic_build_prefix): Break out array into...
4151         (diagnostic_kind_color): New variable.
4152         (diagnostic_get_color_for_kind): New function.
4153         (diagnostic_report_diagnostic): Colorize the option_text
4154         using the color for the severity.
4155         (diagnostic_append_note): Update for change in signature of
4156         diagnostic_set_info.
4157         (diagnostic_append_note_at_rich_loc): New function.
4158         (emit_diagnostic): Update for change in signature of
4159         diagnostic_set_info.
4160         (inform): Likewise.
4161         (inform_at_rich_loc): New function.
4162         (inform_n): Update for change in signature of diagnostic_set_info.
4163         (warning): Likewise.
4164         (warning_at): Likewise.
4165         (warning_at_rich_loc): New function.
4166         (warning_n): Update for change in signature of diagnostic_set_info.
4167         (pedwarn): Likewise.
4168         (permerror): Likewise.
4169         (permerror_at_rich_loc): New function.
4170         (error): Update for change in signature of diagnostic_set_info.
4171         (error_n): Likewise.
4172         (error_at): Likewise.
4173         (error_at_rich_loc): New function.
4174         (sorry): Update for change in signature of diagnostic_set_info.
4175         (fatal_error): Likewise.
4176         (internal_error): Likewise.
4177         (internal_error_no_backtrace): Likewise.
4178         (source_range::debug): New function.
4179         * diagnostic.h (struct diagnostic_info): Eliminate field
4180         "override_column".  Add field "richloc".
4181         (struct diagnostic_context): Add field "colorize_source_p".
4182         (diagnostic_override_column): Delete.
4183         (diagnostic_set_info): Convert param from location_t to
4184         rich_location *.
4185         (diagnostic_set_info_translated): Likewise.
4186         (diagnostic_append_note_at_rich_loc): New function.
4187         (diagnostic_num_locations): New function.
4188         (diagnostic_expand_location): Get the location from the
4189         rich_location.
4190         (diagnostic_print_caret_line): Delete.
4191         (diagnostic_get_color_for_kind): New declaration.
4192         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4193         (error_cb): Update for change in signature of "error" callback.
4194         (fatal_at): Likewise.
4195         (warning_at): Likewise.
4196         * input.c (linemap_client_expand_location_to_spelling_point): New.
4197         * pretty-print.c (text_info::set_range): New method.
4198         (text_info::get_location): New method.
4199         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4200         (struct text_info): Eliminate "locations" array in favor of
4201         "m_richloc", a rich_location *.
4202         (textinfo::set_location): Add a "caret_p" param, and reimplement
4203         in terms of a call to set_range.
4204         (textinfo::get_location): Eliminate inline implementation in favor of
4205         an out-of-line reimplementation.
4206         (textinfo::set_range): New method.
4207         * rtl-error.c (diagnostic_for_asm): Update for change in signature
4208         of diagnostic_set_info.
4209         * tree-diagnostic.c (default_tree_printer): Update for new
4210         "caret_p" param for textinfo::set_location.
4211         * tree-pretty-print.c (percent_K_format): Likewise.
4212
4213 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4214
4215         Properly apply.
4216         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4217         * config/aarch64/aarch64.c
4218         (aarch64_can_use_per_function_literal_pools_p): New.
4219         (aarch64_use_blocks_for_constant_p): Adjust declaration
4220         and use aarch64_can_use_function_literal_pools_p.
4221         (aarch64_select_rtx_section): Update.
4222
4223 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4224
4225         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4226         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4227         (arm_output_multireg_pop): Likewise.
4228         (output_move_double):  Likewise.
4229         (output_move_quad):  Likewise.
4230         (output_return_instruction): Likewise.
4231         (arm_print_operand): Remove support for %( and %. print modifiers.
4232         (arm_output_shift): Make unified asm.
4233         (arm_declare_function_name): Likewise.
4234         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4235         (ASM_APP_OFF): Adjust.
4236         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4237         (ASM_OUTPUT_REG_POP): Likewise.
4238         * config/arm/arm.md: Adjust uses of %., %(, %)
4239         * config/arm/sync.md: Likewise.
4240         * config/arm/thumb2.md: Likewise.
4241         * config/arm/ldmstm.md: Regenerate.
4242         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4243         * doc/invoke.texi (masm-unified-syntax): Update documentation.
4244
4245 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4246
4247         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4248
4249 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4250
4251         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4252         add OEP_MATCH_SIDE_EFFECTS.
4253         * fold-const.c (operand_equal_p): Update documentation; handle
4254         OEP_MATCH_SIDE_EFFECTS.
4255         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4256         OEP_MATCH_SIDE_EFFECTS.
4257
4258 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
4259             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4260
4261         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4262         * config/aarch64/aarch64-protos.h: Declare.
4263         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4264         frsqrts.
4265         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4266         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4267         code when applicable.
4268         * config/aarch64/aarch64.md: Added enum entries.
4269         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4270
4271 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4272
4273         PR ipa/68057
4274         PR ipa/68220
4275         * ipa-polymorphic-call.c
4276         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4277         issue when offset is out of range.
4278         (contains_type_p): Fix out of range check, clear dynamic flag.
4279
4280 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
4281
4282         * config.gcc (e6500): Fix cpu_is_64bit typo.
4283
4284 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
4285
4286         * tree-sra.c (completely_scalarize): Properly handle negative array
4287         indices using offset_int.
4288
4289 2015-11-06  Richard Biener  <rguenther@suse.de>
4290
4291         * alloc-pool.h (object_allocator::allocate): Default-initialize
4292         object.
4293
4294 2015-11-06  Richard Biener  <rguenther@suse.de>
4295
4296         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4297         * lra.c (init_reg_info): Truncate copy_vec instead of
4298         re-allocating a new one and leaking the old.
4299         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4300         bb_infos vec.
4301         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4302         * postreload-gcse.c (free_mem): Free modify_mem_list and
4303         canon_modify_mem_list.
4304
4305 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
4306
4307         PR tree-optimization/68145
4308         * tree-vect-stmts.c (vectorizable_operation): Fix
4309         determination for booleans.
4310
4311 2015-11-06  Tom de Vries  <tom@codesourcery.com>
4312
4313         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4314         cond_jump, instead of split after last nondebug insn before cond_jump.
4315         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4316         returning.
4317
4318 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4319
4320         PR target/68088
4321         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4322         subregs from accumulator and make sure it's a register.
4323
4324 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
4325
4326         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4327         low part to scalar.
4328         (reduc_uplus_<mode>): Remove.
4329         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4330         loongson_extract_lo_<mode>.
4331         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4332         reduc_smax_<mode>, reduc_smax_<mode>, use vec
4333         loongson_extract_lo_<mode>.
4334         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4335
4336 2015-11-06  Richard Biener  <rguenther@suse.de>
4337
4338         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4339         members.
4340         (vect_stmt_in_region_p): Declare.
4341         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4342         (destroy_bb_vec_info): Likewise.
4343         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4344         (vect_get_and_check_slp_defs): Likewise.
4345         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4346         (vect_slp_bb): Likewise.
4347         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4348         in terms of vect_stmt_in_region_p.
4349         (vect_pattern_recog): Iterate over the BB region.
4350         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4351         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4352         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4353         * config/i386/i386.c: Include gimple-iterator.h.
4354         * config/aarch64/aarch64.c: Likewise.
4355
4356 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
4357
4358         PR rtl-optimization/67753
4359         PR rtl-optimization/64164
4360         * function.c (assign_parm_setup_block): Avoid allocating a
4361         stack slot if we don't have an ABI-reserved one.  Emit the
4362         copy to target_reg in the conversion seq if the copy from
4363         entry_parm is in it too.  Don't use the conversion seq to copy
4364         a PARALLEL to a REG or a CONCAT.
4365
4366 2015-11-06  Richard Biener  <rguenther@suse.de>
4367
4368         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4369         equal_keys.
4370
4371 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
4372             Thomas Schwinge  <thomas@codesourcery.com>
4373             James Norris  <jnorris@codesourcery.com>
4374
4375
4376         * gimplify.c (gimplify_scan_omp_clauses): Add support for
4377         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
4378         (gimplify_adjust_omp_clauses): Likewise.
4379         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4380         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4381         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4382         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4383         (omp_clause_code_name): Likewise.
4384         (walk_tree_1): Handle OMP_CLAUSE_TILE.
4385         * tree.h (OMP_TILE_LIST): New macro.
4386
4387 2015-11-05  Martin Sebor  <msebor@redhat.com>
4388
4389         PR c++/67942
4390         * doc/invoke.texi (-Wplacement-new): Document new option.
4391
4392 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
4393
4394         PR tree-optimization/65963
4395         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4396         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4397
4398 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
4399
4400         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4401         (noce_convert_multiple_sets): Likewise.
4402         (noce_process_if_block): Call them.
4403
4404 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4405
4406         * gimple-fold.c: Include omp-low.h.
4407         (fold_internal_goacc_dim): New.
4408         (gimple_fold_call): Call it.
4409
4410 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4411             Ilya Verbin  <ilya.verbin@intel.com>
4412
4413         * builtin-types.def
4414         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4415         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4416         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4417         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4418         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4419         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4420         (struct cgraph_simd_clone_arg): Adjust comment.
4421         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4422         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
4423         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4424         to GOMP_target_data_ext.
4425         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4426         to GOMP_target_update_ext.
4427         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4428         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4429         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4430         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4431         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4432         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4433         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4434         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4435         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4436         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4437         * tree-core.h (enum omp_clause_schedule_kind): Add
4438         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4439         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4440         OMP_CLAUSE_SCHEDULE_LAST value.
4441         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4442         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4443         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4444         OMP_FOR_CHECK.  Remove comment.
4445         * tree-pretty-print.c (dump_omp_clause): Handle
4446         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4447         Simplify.  Print schedule clause modifiers.
4448         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4449         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4450         cases.
4451         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4452         (omp_default_clause): Tweak for
4453         private/firstprivate/is_device_ptr variables on target
4454         construct and use_device_ptr on target data.
4455         (omp_check_private): Likewise.
4456         (omp_notice_variable): For references check whether what it refers
4457         to has mappable type, rather than the reference itself.
4458         (omp_is_private): Diagnose linear iteration variables on non-simd
4459         constructs.
4460         (omp_no_lastprivate): Return true only for Fortran.
4461         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4462         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4463         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4464         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4465         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
4466         lastprivate and linear when combined with distribute.  Gimplify
4467         variable low-bound for array reduction.  Look through
4468         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4469         reductions.
4470         (gimplify_adjust_omp_clauses_1): For implicit references to
4471         variables with reference type and when not ref to scalar or
4472         ref to pointer, map what they refer to using tofrom and
4473         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4474         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4475         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4476         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
4477         Diagnose the same var on both firstprivate and lastprivate on
4478         distribute construct.
4479         (gimplify_omp_for): Fix up handling of predetermined
4480         lastprivate or linear iter vars when combined with distribute.
4481         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4482         functions.
4483         (gimplify_omp_workshare): Call optimize_target_teams.
4484         * omp-low.c (struct omp_region): Add sched_modifiers field.
4485         (struct omp_for_data): Likewise.
4486         (omp_any_child_fn_dumped): New variable.
4487         (extract_omp_for_data): Fill in sched_modifiers, and mask out
4488         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4489         from sched_kind.
4490         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4491         bits of OMP_CLAUSE_SCHED_KIND.
4492         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4493         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
4494         for array section reductions.
4495         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4496         for distribute parallel for, if there are lastprivate clauses on the
4497         for.
4498         (lower_rec_input_clauses): Handle non-zero low-bound on array
4499         section reductions.
4500         (lower_reduction_clauses): Likewise.
4501         (lower_send_clauses): Look through POINTER_PLUS_EXPR
4502         for array section reductions.
4503         (expand_parallel_call): Use nonmonotonic entrypoints for
4504         nonmonotonic: dynamic/guided.
4505         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4506         child_fn if current_function_decl has assembler name set, but child_fn
4507         does not.  Dump the header and IL of the child function when not in SSA
4508         form.
4509         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
4510         arguments to BUILT_IN_GOMP_TARGET.
4511         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4512         Initialize the extra _looptemp_ clause to fd->loop.n2.
4513         (expand_omp_for): Use nonmonotonic entrypoints for
4514         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
4515         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
4516         again if we have dumped any child functions.
4517         (lower_omp_for_lastprivate): Determine the right count variable
4518         for distribute simd, or distribute parallel for{, simd}.
4519         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4520         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
4521         support.
4522         (simd_clone_clauses_extract): Handle variable step
4523         for references and arguments passed by reference.
4524         (simd_clone_mangle): Mangle ref/uval/val variable steps.
4525         (simd_clone_adjust_argument_types): Handle
4526         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4527         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4528         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4529         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4530         (simd_clone_linear_addend): New function.
4531         (simd_clone_adjust): Handle variable step like similarly
4532         to constant step, use simd_clone_linear_addend to determine
4533         the actual step at runtime.
4534
4535 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4536
4537         * target.def (goacc.dim_limit): New hook.
4538         * targhooks.h (default_goacc_dim_limit): Declare.
4539         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4540         * doc/tm.texi: Rebuilt.
4541         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4542         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4543         (default_goacc_dim_limit): New.
4544         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4545         (nvptx_goacc_dim_limit) New.
4546         (TARGET_GOACC_DIM_LIMIT): Override.
4547         * tree-vrp.c: Include omp-low.h, target.h.
4548         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4549         IFN_GOACC_DIM_POS.
4550
4551 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4552
4553         * tree-vect-generic.c (do_compare): Use -1 for true
4554         result instead of 1.
4555
4556 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4557
4558         * config/aarch64/aarch64.c
4559         (aarch64_can_use_per_function_literal_pools_p): New.
4560         (aarch64_use_blocks_for_constant_p): Adjust declaration
4561         and use aarch64_can_use_function_literal_pools_p.
4562         (aarch64_select_rtx_section): Update.
4563
4564 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4565
4566         * targhooks.c (default_get_mask_mode): Use BLKmode in
4567         case target doesn't support required vector mode.
4568         * stor-layout.c (layout_type); Check for BLKmode.
4569
4570 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4571             Sebastian Pop  <s.pop@samsung.com>
4572
4573         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4574         Remove use of parameter_rename_map.
4575         (copy_def): Remove.
4576         (copy_internal_parameters): Remove.
4577         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4578         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4579         (free_sese_info): Do not free parameter_rename_map.
4580         (set_rename): Do not use parameter_rename_map.
4581         (rename_uses): Update call to set_rename.
4582         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4583         * sese.h (parameter_rename_map_t): Remove.
4584         (struct sese_info_t): Remove field parameter_rename_map.
4585
4586 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4587             Sebastian Pop  <s.pop@samsung.com>
4588
4589         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4590         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4591         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4592         anonymous namespace.
4593         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4594         (isl_id_for_pbb): Use a buffer of size 10.
4595         (isl_id_for_ssa_name): Same.
4596         * sese.c (set_rename): Add more dumps.
4597
4598 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4599
4600         * omp-low.c (struct omp_context): Remove reduction_map field.
4601         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4602         (new_omp_context, delete_omp_context, scan_omp_target): Remove
4603         reduction_map handling.
4604         (lower_omp_target): Remove obsolete openacc reduction handling.
4605
4606 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4607
4608         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4609
4610 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4611             Cesar Philippidis  <cesar@codesourcery.com>
4612
4613         * config/nvptx/nvptx.c: Include gimple headers.
4614         (worker_red_size, worker_red_align, worker_red_name,
4615         worker_red_sym): New.
4616         (nvptx_option_override): Initialize worker reduction buffer.
4617         (nvptx_file_end): Write out worker reduction buffer var.
4618         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4619         nvptx_expand_cmp_swap): New builtin expanders.
4620         (enum nvptx_builtins): New.
4621         (nvptx_builtin_decls): New.
4622         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4623         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4624         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4625         nvptx_lockless_update): New helpers.
4626         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4627         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4628         (nvptx_goacc_reduction): New.
4629         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4630         TARGET_BUILTIN_DECL): Override.
4631         (TARGET_GOACC_REDUCTION): Override.
4632
4633 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4634             Cesar Philippidis  <cesar@codesourcery.com>
4635
4636         * internal-fn.def (GOACC_REDUCTION): New.
4637         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4638         * internal-fn.c (expand_GOACC_REDUCTION): New.
4639         * target.def (goacc.reduction): New OpenACC hook.
4640         * targhooks.h (default_goacc_reduction): Declare.
4641         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4642         * doc/tm.texi: Rebuilt.
4643         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4644         scan_sharing_clauses): Remove oacc reduction handling here.
4645         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4646         (oacc_lower_reduction_var_helper): Delete.
4647         (lower_oacc_reductions): New.
4648         (lower_reduction_clauses): Don't handle OpenACC reductions here.
4649         (lower_oacc_head_tail): Call lower_oacc_reductions.
4650         (oacc_gimple_assign, oacc_init_reduction_array,
4651         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4652         oacc_process_reduction_data): Delete.
4653         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
4654         dummy OpenACC gang reduction for reductions at outer level.
4655         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4656         (default_goacc_reduction): New.
4657         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4658
4659 2015-11-04  Martin Liska  <mliska@suse.cz>
4660
4661         * cgraphunit.c (cgraph_node::expand_thunk): Call
4662         allocate_struct_function before init_function_start.
4663         (cgraph_node::expand): Use push_cfun and pop_cfun.
4664         * config/i386/i386.c (ix86_code_end): Call
4665         allocate_struct_function before init_function_start.
4666         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4667         * function.c (init_function_start): Move preamble to all
4668         callers.
4669         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4670         (execute_one_pass): Handle newly added TODO_discard_function.
4671         (execute_pass_list_1): Terminate if cfun equals to NULL.
4672         (execute_pass_list): Do not push and pop cfun, expect that
4673         cfun is set.
4674         * tree-pass.h (TODO_discard_function): Define.
4675
4676 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
4677
4678         * cfganal.c (inverted_post_order_compute): Remove conditional
4679         compilation, use flag_checking.
4680         * config.in: Regenerate.
4681         * configure: Regenerate.
4682         * configure.ac: Remove ENABLE_CHECKING.
4683         * genconditions.c: Do not #undef ENABLE_CHECKING.
4684         * sese.h (bb_in_region): Comment out broken check.
4685         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4686         conditional compilation, use flag_checking.
4687
4688 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4689
4690         PR tree-optimization/67742
4691         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4692         field.
4693         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4694         (create_variable_info_for_1): Add and handle handle_param parameter.
4695         Add restrict handling.
4696         (create_variable_info_for): Call create_variable_info_for_1 with extra
4697         arg.
4698         (make_param_constraints): Drop restrict_name parameter.  Ignore
4699         vi->only_restrict_pointers.
4700         (intra_create_variable_infos): Call create_variable_info_for_1 with
4701         extra arg.  Remove restrict handling.  Call make_param_constraints with
4702         one fewer arg.
4703
4704 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4705
4706         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4707         variable.
4708
4709 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4710
4711         * config/arm/coff.h: Remove.
4712
4713 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4714
4715         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4716         check for aggregate types and beef up comment for mode check.
4717
4718 2015-11-03  Richard Biener  <rguenther@suse.de>
4719
4720         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4721         data references here.
4722         * tree-vect-loop.c: Include cgraph.h.
4723         (vect_analyze_loop_2): Collect data references here.
4724         * tree-vect-slp.c (find_bb_location): Inline ...
4725         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
4726         Factor in vect_slp_transform_bb.
4727         (vect_slp_transform_bb): Removed.
4728         (vect_slp_analyze_bb_1): Collect data references here.
4729         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4730         vect_slp_bb.
4731         * tree-vectorizer.h (vect_slp_bb): Declare.
4732         (vect_slp_analyze_bb): Remove.
4733         (vect_slp_transform_bb): Remove.
4734         (find_bb_location): Remove.
4735         (vect_analyze_data_refs): Remove stmt count reference parameter.
4736
4737 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
4738
4739         * multiple_target.c (create_dispatcher_calls): Add target check
4740         on ifunc.
4741         (create_target_clone): Change assembler name for versioned declarations.
4742
4743 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
4744             Chung-Lin Tang  <cltang@codesourcery.com>
4745
4746         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4747         * omp-low.c (check_omp_nesting_restrictions): Allow
4748         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4749         contexts.
4750
4751 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
4752
4753         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4754         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4755         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4756         builtin.
4757         (vmulxq_f32): Likewise.
4758         (vmulx_f64): New.
4759         (vmulxq_f64): Rewrite to call fmulx builtin.
4760         (vmulxs_f32): Likewise.
4761         (vmulxd_f64): Likewise.
4762         (vmulx_lane_f32): Remove.
4763         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4764
4765 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
4766
4767         * config/aarch64/aarch64.md (*movhf_aarch64): Use
4768         aarch64_reg_or_fp_zero for second operand.
4769
4770 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
4771
4772         * gimple-expr.c: Include hash-set.h and rtl.h.
4773         (mark_addressable_queue): New var.
4774         (mark_addressable): Factor actual marking into...
4775         (mark_addressable_1): ... this.  Queue it up during expand.
4776         (mark_addressable_2): New.
4777         (flush_mark_addressable_queue): New.
4778         * gimple-expr.h (flush_mark_addressable_queue): Declare.
4779         * cfgexpand.c: Include gimple-expr.h.
4780         (pass_expand::execute): Flush mark_addressable queue.
4781
4782 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
4783
4784         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4785         bb_no_side_effects_p tests...
4786         (tree_ssa_ifcombine_bb): ... here.
4787
4788         PR tree-optimization/68083
4789         * tree-ssa-ifcombine.c: Include tree-ssa.h.
4790         (bb_no_side_effects_p): Test for undefined uses too.
4791         * tree-ssa.c (gimple_uses_undefined_value_p): New.
4792         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4793
4794 2015-11-02  Jeff Law <law@redhat.com>
4795
4796         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4797         cases where the loop latch edge is in the middle of an FSM path.
4798
4799 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4800
4801         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4802         (make_param_constraints): ... this.  Add and handle restrict_name
4803         parameter.  Handle is_full_var case.
4804         (intra_create_variable_infos): Use make_param_constraints.
4805
4806 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4807
4808         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4809         make_copy_constraint call with make_constraint_from call.
4810
4811 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
4812
4813         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4814         PIE executables.
4815
4816 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
4817
4818         * builtins.h (fold_fma): Move to fold-const-call.h.
4819         * builtins.c: Include fold-const-call.h.
4820         (mathfn_built_in_2): New function, split out from...
4821         (mathfn_built_in_1): ...here.
4822         (do_real_to_int_conversion, fold_const_builtin_pow)
4823         (fold_const_builtin_logb, fold_const_builtin_significand)
4824         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4825         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4826         (fold_builtin_sincos): Use fold_const_call to handle constants.
4827         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4828         checks for ERROR_MARK.  Use fold_const_call to handle constant
4829         folds for math functions.
4830         (fold_fma): Move to fold-const-call.c.
4831         * fold-const.c: Include fold-const-call.h.
4832         * Makefile.in (OBJS): Add fold-const-call.o.
4833         (PLUGIN_HEADERS): Add fold-const-call.h.
4834         * realmpfr.h (real_from_mpfr): Allow the format to be specified
4835         directly.
4836         * realmpfr.c (real_from_mpfr): Likewise.
4837         * fold-const-call.h, fold-const-call.c: New files.
4838
4839 2015-11-02  Julian Brown  <julian@codesourcery.com>
4840
4841         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4842         brackets and semicolon.
4843
4844 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
4845
4846         Revert:
4847         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4848
4849         PR tree-optimization/65963
4850         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4851         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4852
4853 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
4854
4855         PR middle-end/68166
4856         * fold-const.c: Include "md5.h".
4857
4858 2015-11-01  Jeff Law <law@redhat.com>
4859
4860         * vmsdbgout.c: Revert unused header file reduction patch.
4861
4862         * config/mcore/mcore.c: Include regs.h.
4863
4864 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4865
4866         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4867
4868 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4869
4870         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4871         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4872         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4873
4874 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4875
4876         * ggc-common.c: Restore needed header for checking=release.
4877
4878 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4879
4880         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4881
4882 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4883
4884         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4885         existing varinfo for arguments.
4886
4887 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4888
4889         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4890         create_function_info_for.  Dump constraints generated during
4891         create_function_info_for. Move intra_create_variable_infos call and
4892         function-return-values-escape bit to ...
4893         (create_function_info_for): ... here, and merge
4894         intra_create_variable_infos call with argument loop.  Add and handle
4895         nonlocal_p parameter.
4896
4897 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4898
4899         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4900         updating is alap, and seperated from preceding code.  Make sure
4901         insert_vi_for_tree is seperated from surrounding code.
4902
4903 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4904
4905         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4906
4907 2015-10-30  Jeff Law <law@redhat.com>
4908             Nathan Sidwell  <nathan@acm.org>
4909
4910         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4911         args.
4912         (MOVE_MAX): Set to 8.
4913
4914 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
4915
4916         * cgraph.c: Include context.h for offloading.
4917         * varpool.c: Include context.h and omp-low.h.
4918
4919 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
4920
4921         * rtl.h (contains_symbol_ref_p): Declare.
4922         (SYMBOL_REF_P): Define.
4923         * rtlanal.c (contains_symbol_ref_p: New function.
4924         * lra-constraints.c (contains_symbol_ref_p): Remove.
4925         * var-tracking.c (contains_symbol_ref): Remove.
4926         (track_expr_p): Use contains_symbol_ref_p instead of
4927         contains_symbol_ref.
4928
4929 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4930
4931         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4932         * fold-const.c (get_array_ctor_element_at_index): New.
4933         (fold): Remove binary-search through CONSTRUCTOR, call previous.
4934
4935         * fold-const.h (get_array_ctor_element_at_index): New.
4936
4937 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
4938
4939         * Makefile.in (OBJS): Add multiple_target.o.
4940         * attrib.c (make_attribute): Moved from config/i386/i386.c
4941         * config/i386/i386.c (make_attribute): Deleted.
4942         * multiple_target.c (create_dispatcher_calls): New.
4943         (get_attr_len): Ditto.
4944         (get_attr_str): Ditto.
4945         (separate_attrs): Ditto.
4946         (is_valid_asm_symbol): Ditto.
4947         (create_new_asm_name): Ditto.
4948         (create_target_clone): Ditto.
4949         (expand_target_clones): Ditto.
4950         (ipa_target_clone): Ditto.
4951         (ipa_dispatcher_calls): Ditto.
4952         * passes.def (pass_target_clone): Two new ipa passes.
4953         * tree-pass.h (make_pass_target_clone): Ditto.
4954         * doc/extend.texi (target_clones): New attribute description.
4955
4956 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
4957
4958         PR rtl-optimization/68106
4959         * lra-remat.c (input_regno_present_p): Process hard regs
4960         explicitly present in machine description insns.
4961         (call_used_input_regno_present_p): Ditto.
4962         (calculate_gen_cands): Ditto.
4963         (do_remat): Ditto.
4964
4965 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
4966
4967         * config/arm/neon-testgen.ml: Fix comment typo.
4968
4969 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4970
4971         * rtlanal.c (reg_set_p): Expand function comment.
4972
4973 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
4974
4975         * alias.c: Remove unused headers.
4976         * asan.c: Likewise.
4977         * attribs.c: Likewise.
4978         * auto-inc-dec.c: Likewise.
4979         * auto-profile.c: Likewise.
4980         * bb-reorder.c: Likewise.
4981         * bitmap.c: Likewise.
4982         * bt-load.c: Likewise.
4983         * builtins.c: Likewise.
4984         * caller-save.c: Likewise.
4985         * calls.c: Likewise.
4986         * ccmp.c: Likewise.
4987         * cfg.c: Likewise.
4988         * cfganal.c: Likewise.
4989         * cfgbuild.c: Likewise.
4990         * cfgcleanup.c: Likewise.
4991         * cfgexpand.c: Likewise.
4992         * cfghooks.c: Likewise.
4993         * cfgloop.c: Likewise.
4994         * cfgloopanal.c: Likewise.
4995         * cfgloopmanip.c: Likewise.
4996         * cfgrtl.c: Likewise.
4997         * cgraph.c: Likewise.
4998         * cgraphbuild.c: Likewise.
4999         * cgraphclones.c: Likewise.
5000         * cgraphunit.c: Likewise.
5001         * cilk-common.c: Likewise.
5002         * combine-stack-adj.c: Likewise.
5003         * combine.c: Likewise.
5004         * compare-elim.c: Likewise.
5005         * convert.c: Likewise.
5006         * coverage.c: Likewise.
5007         * cppbuiltin.c: Likewise.
5008         * cprop.c: Likewise.
5009         * cse.c: Likewise.
5010         * cselib.c: Likewise.
5011         * data-streamer-in.c: Likewise.
5012         * data-streamer-out.c: Likewise.
5013         * data-streamer.c: Likewise.
5014         * dbxout.c: Likewise.
5015         * dce.c: Likewise.
5016         * ddg.c: Likewise.
5017         * debug.c: Likewise.
5018         * df-core.c: Likewise.
5019         * df-problems.c: Likewise.
5020         * df-scan.c: Likewise.
5021         * dfp.c: Likewise.
5022         * dojump.c: Likewise.
5023         * dominance.c: Likewise.
5024         * domwalk.c: Likewise.
5025         * double-int.c: Likewise.
5026         * dse.c: Likewise.
5027         * dumpfile.c: Likewise.
5028         * dwarf2asm.c: Likewise.
5029         * dwarf2cfi.c: Likewise.
5030         * dwarf2out.c: Likewise.
5031         * emit-rtl.c: Likewise.
5032         * except.c: Likewise.
5033         * explow.c: Likewise.
5034         * expmed.c: Likewise.
5035         * expr.c: Likewise.
5036         * final.c: Likewise.
5037         * fixed-value.c: Likewise.
5038         * fold-const.c: Likewise.
5039         * function.c: Likewise.
5040         * fwprop.c: Likewise.
5041         * gcse.c: Likewise.
5042         * generic-match-head.c: Likewise.
5043         * ggc-common.c: Likewise.
5044         * gimple-builder.c: Likewise.
5045         * gimple-expr.c: Likewise.
5046         * gimple-fold.c: Likewise.
5047         * gimple-iterator.c: Likewise.
5048         * gimple-low.c: Likewise.
5049         * gimple-match-head.c: Likewise.
5050         * gimple-pretty-print.c: Likewise.
5051         * gimple-ssa-isolate-paths.c: Likewise.
5052         * gimple-ssa-strength-reduction.c: Likewise.
5053         * gimple-streamer-in.c: Likewise.
5054         * gimple-streamer-out.c: Likewise.
5055         * gimple-walk.c: Likewise.
5056         * gimple.c: Likewise.
5057         * gimplify-me.c: Likewise.
5058         * gimplify.c: Likewise.
5059         * godump.c: Likewise.
5060         * graph.c: Likewise.
5061         * graphds.c: Likewise.
5062         * haifa-sched.c: Likewise.
5063         * hw-doloop.c: Likewise.
5064         * ifcvt.c: Likewise.
5065         * init-regs.c: Likewise.
5066         * internal-fn.c: Likewise.
5067         * ipa-chkp.c: Likewise.
5068         * ipa-comdats.c: Likewise.
5069         * ipa-cp.c: Likewise.
5070         * ipa-devirt.c: Likewise.
5071         * ipa-icf-gimple.c: Likewise.
5072         * ipa-icf.c: Likewise.
5073         * ipa-inline-analysis.c: Likewise.
5074         * ipa-inline-transform.c: Likewise.
5075         * ipa-inline.c: Likewise.
5076         * ipa-polymorphic-call.c: Likewise.
5077         * ipa-profile.c: Likewise.
5078         * ipa-prop.c: Likewise.
5079         * ipa-pure-const.c: Likewise.
5080         * ipa-ref.c: Likewise.
5081         * ipa-reference.c: Likewise.
5082         * ipa-split.c: Likewise.
5083         * ipa-utils.c: Likewise.
5084         * ipa-visibility.c: Likewise.
5085         * ipa.c: Likewise.
5086         * ira-build.c: Likewise.
5087         * ira-color.c: Likewise.
5088         * ira-conflicts.c: Likewise.
5089         * ira-costs.c: Likewise.
5090         * ira-emit.c: Likewise.
5091         * ira-lives.c: Likewise.
5092         * ira.c: Likewise.
5093         * jump.c: Likewise.
5094         * langhooks.c: Likewise.
5095         * lcm.c: Likewise.
5096         * lists.c: Likewise.
5097         * loop-doloop.c: Likewise.
5098         * loop-init.c: Likewise.
5099         * loop-invariant.c: Likewise.
5100         * loop-iv.c: Likewise.
5101         * loop-unroll.c: Likewise.
5102         * lower-subreg.c: Likewise.
5103         * lra-assigns.c: Likewise.
5104         * lra-coalesce.c: Likewise.
5105         * lra-constraints.c: Likewise.
5106         * lra-eliminations.c: Likewise.
5107         * lra-lives.c: Likewise.
5108         * lra-remat.c: Likewise.
5109         * lra-spills.c: Likewise.
5110         * lra.c: Likewise.
5111         * lto-cgraph.c: Likewise.
5112         * lto-compress.c: Likewise.
5113         * lto-opts.c: Likewise.
5114         * lto-section-in.c: Likewise.
5115         * lto-section-out.c: Likewise.
5116         * lto-streamer-in.c: Likewise.
5117         * lto-streamer-out.c: Likewise.
5118         * lto-streamer.c: Likewise.
5119         * mcf.c: Likewise.
5120         * mode-switching.c: Likewise.
5121         * modulo-sched.c: Likewise.
5122         * optabs.c: Likewise.
5123         * opts-global.c: Likewise.
5124         * passes.c: Likewise.
5125         * plugin.c: Likewise.
5126         * postreload-gcse.c: Likewise.
5127         * postreload.c: Likewise.
5128         * predict.c: Likewise.
5129         * print-tree.c: Likewise.
5130         * profile.c: Likewise.
5131         * real.c: Likewise.
5132         * realmpfr.c: Likewise.
5133         * recog.c: Likewise.
5134         * ree.c: Likewise.
5135         * reg-stack.c: Likewise.
5136         * regcprop.c: Likewise.
5137         * reginfo.c: Likewise.
5138         * regrename.c: Likewise.
5139         * regstat.c: Likewise.
5140         * reload.c: Likewise.
5141         * reload1.c: Likewise.
5142         * reorg.c: Likewise.
5143         * resource.c: Likewise.
5144         * rtl-chkp.c: Likewise.
5145         * rtl-error.c: Likewise.
5146         * rtlanal.c: Likewise.
5147         * rtlhooks.c: Likewise.
5148         * sanopt.c: Likewise.
5149         * sched-deps.c: Likewise.
5150         * sched-ebb.c: Likewise.
5151         * sched-rgn.c: Likewise.
5152         * sdbout.c: Likewise.
5153         * sel-sched-dump.c: Likewise.
5154         * sel-sched-ir.c: Likewise.
5155         * sel-sched.c: Likewise.
5156         * sese.c: Likewise.
5157         * shrink-wrap.c: Likewise.
5158         * simplify-rtx.c: Likewise.
5159         * stack-ptr-mod.c: Likewise.
5160         * statistics.c: Likewise.
5161         * stmt.c: Likewise.
5162         * stor-layout.c: Likewise.
5163         * store-motion.c: Likewise.
5164         * stringpool.c: Likewise.
5165         * symtab.c: Likewise.
5166         * target-globals.c: Likewise.
5167         * targhooks.c: Likewise.
5168         * toplev.c: Likewise.
5169         * tracer.c: Likewise.
5170         * trans-mem.c: Likewise.
5171         * tree-affine.c: Likewise.
5172         * tree-call-cdce.c: Likewise.
5173         * tree-cfg.c: Likewise.
5174         * tree-cfgcleanup.c: Likewise.
5175         * tree-chkp-opt.c: Likewise.
5176         * tree-chkp.c: Likewise.
5177         * tree-chrec.c: Likewise.
5178         * tree-complex.c: Likewise.
5179         * tree-data-ref.c: Likewise.
5180         * tree-dfa.c: Likewise.
5181         * tree-diagnostic.c: Likewise.
5182         * tree-dump.c: Likewise.
5183         * tree-eh.c: Likewise.
5184         * tree-emutls.c: Likewise.
5185         * tree-if-conv.c: Likewise.
5186         * tree-inline.c: Likewise.
5187         * tree-into-ssa.c: Likewise.
5188         * tree-iterator.c: Likewise.
5189         * tree-loop-distribution.c: Likewise.
5190         * tree-nested.c: Likewise.
5191         * tree-nrv.c: Likewise.
5192         * tree-object-size.c: Likewise.
5193         * tree-outof-ssa.c: Likewise.
5194         * tree-parloops.c: Likewise.
5195         * tree-phinodes.c: Likewise.
5196         * tree-predcom.c: Likewise.
5197         * tree-pretty-print.c: Likewise.
5198         * tree-profile.c: Likewise.
5199         * tree-scalar-evolution.c: Likewise.
5200         * tree-sra.c: Likewise.
5201         * tree-ssa-address.c: Likewise.
5202         * tree-ssa-alias.c: Likewise.
5203         * tree-ssa-ccp.c: Likewise.
5204         * tree-ssa-coalesce.c: Likewise.
5205         * tree-ssa-copy.c: Likewise.
5206         * tree-ssa-dce.c: Likewise.
5207         * tree-ssa-dse.c: Likewise.
5208         * tree-ssa-forwprop.c: Likewise.
5209         * tree-ssa-ifcombine.c: Likewise.
5210         * tree-ssa-live.c: Likewise.
5211         * tree-ssa-loop-ch.c: Likewise.
5212         * tree-ssa-loop-im.c: Likewise.
5213         * tree-ssa-loop-ivcanon.c: Likewise.
5214         * tree-ssa-loop-ivopts.c: Likewise.
5215         * tree-ssa-loop-manip.c: Likewise.
5216         * tree-ssa-loop-niter.c: Likewise.
5217         * tree-ssa-loop-prefetch.c: Likewise.
5218         * tree-ssa-loop-unswitch.c: Likewise.
5219         * tree-ssa-loop.c: Likewise.
5220         * tree-ssa-math-opts.c: Likewise.
5221         * tree-ssa-operands.c: Likewise.
5222         * tree-ssa-phiopt.c: Likewise.
5223         * tree-ssa-phiprop.c: Likewise.
5224         * tree-ssa-pre.c: Likewise.
5225         * tree-ssa-propagate.c: Likewise.
5226         * tree-ssa-reassoc.c: Likewise.
5227         * tree-ssa-scopedtables.c: Likewise.
5228         * tree-ssa-sink.c: Likewise.
5229         * tree-ssa-strlen.c: Likewise.
5230         * tree-ssa-structalias.c: Likewise.
5231         * tree-ssa-tail-merge.c: Likewise.
5232         * tree-ssa-ter.c: Likewise.
5233         * tree-ssa-threadupdate.c: Likewise.
5234         * tree-ssa-uncprop.c: Likewise.
5235         * tree-ssa-uninit.c: Likewise.
5236         * tree-ssa.c: Likewise.
5237         * tree-ssanames.c: Likewise.
5238         * tree-stdarg.c: Likewise.
5239         * tree-streamer-in.c: Likewise.
5240         * tree-streamer-out.c: Likewise.
5241         * tree-streamer.c: Likewise.
5242         * tree-switch-conversion.c: Likewise.
5243         * tree-tailcall.c: Likewise.
5244         * tree-vect-data-refs.c: Likewise.
5245         * tree-vect-generic.c: Likewise.
5246         * tree-vect-loop-manip.c: Likewise.
5247         * tree-vect-loop.c: Likewise.
5248         * tree-vect-patterns.c: Likewise.
5249         * tree-vect-slp.c: Likewise.
5250         * tree-vect-stmts.c: Likewise.
5251         * tree-vectorizer.c: Likewise.
5252         * tree-vrp.c: Likewise.
5253         * tree.c: Likewise.
5254         * tsan.c: Likewise.
5255         * ubsan.c: Likewise.
5256         * value-prof.c: Likewise.
5257         * var-tracking.c: Likewise.
5258         * varasm.c: Likewise.
5259         * varpool.c: Likewise.
5260         * vmsdbgout.c: Likewise.
5261         * vtable-verify.c: Likewise.
5262         * web.c: Likewise.
5263         * wide-int-print.cc: Likewise.
5264         * wide-int.cc: Likewise.
5265         * xcoffout.c: Likewise.
5266
5267 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
5268
5269         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5270         between pass numbering and execution order.
5271
5272 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5273
5274         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5275         check for dependencies.
5276
5277 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5278
5279         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5280         CDI_DOMINATORS.
5281
5282 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5283
5284         * real.h (format_helper): New.
5285         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5286         (real_from_target, real_nan, real_2expN, real_value_truncate)
5287         (significand_size, real_from_string2, exact_real_inverse)
5288         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5289         (real_round, real_isinteger, real_from_integer): Replace
5290         machine_mode arguments with format_helper arguments.
5291         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5292         (real_from_integer, real_nan, real_2expN, real_convert)
5293         (real_value_truncate, exact_real_truncate, real_to_target)
5294         (real_from_target, significand_size, real_powi, real_trunc)
5295         (real_floor, real_ceil, real_round, real_isinteger): Replace
5296         machine_mode arguments with format_helper arguments.
5297         (real_to_target_fmt, real_from_target_fmt): Delete.
5298         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5299         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5300         argument with real_format.
5301         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5302
5303 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5304
5305         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5306         (fixed_to_decimal, fixed_convert_from_real)
5307         (real_convert_from_fixed): Fix mode arguments to real_2expN.
5308
5309 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5310
5311         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5312         SCALAR_FLOAT_MODE_P.
5313
5314 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5315
5316         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5317         (completely_scalarize): Comment zero-length arrays.
5318         (get_access_replacement): Correct comment re. precondition.
5319
5320 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5321
5322         * config/i386/i386.c (get_builtin_code_for_version): Set priority
5323         for PROCESSOR_ZNVER1.
5324         (enum processor_model): Add M_AMDFAM17H_znver1.
5325         (struct arch_names_table): Likewise.
5326         * doc/extend.texi: ADD znver1.
5327
5328 2015-10-30  Richard Biener  <rguenther@suse.de>
5329
5330         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5331         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
5332         zeros to be folded to VECTOR_CSTs.
5333         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5334         * fold-const.c (fold): Use build_vector_from_ctor.
5335
5336 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
5337
5338         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5339         "mov %0.h[0], %1.h[0] to "neon_move".
5340         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5341         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5342         "mov_imm".
5343         (*cmovsi_insn_uxtw): Likewise.
5344
5345 2015-10-30  Tom de Vries  <tom@codesourcery.com>
5346
5347         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5348         unsigned, and initialize, and use initial value instead of hardcoded
5349         constant.  Add generic constraints dumping section.  Don't dump global
5350         initializers constraints dumping section if empty.  Don't update
5351         variable from if unused.
5352
5353 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5354
5355         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5356         flag_checking and/or CHECKING_P to eliminate conditional compilation
5357         on ENABLE_CHECKING.
5358         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5359         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5360         * config/i386/i386.c (ix86_print_operand_address): Likewise.
5361         (output_387_binary_op): Likewise.
5362         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5363         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5364         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5365         Likewise.
5366         * config/rs6000/rs6000.h: Likewise.
5367         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5368
5369 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5370
5371         * config/sh/sh.opt (mfdpic): Add missing period.
5372
5373 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
5374
5375         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5376         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5377         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5378         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5379         mcore_base_register_rtx_p, mcore_legitimate_index_p,
5380         mcore_legitimate_address_p): New functions.
5381         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5382
5383 2015-10-29  Jeff Law  <law@redhat.com>
5384
5385         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5386         method.
5387         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5388         * tree-ssa-threadedge.c
5389         (record_temporary_equivalences_from_stmts_at_dest): Remove
5390         backedge_seen argument and associated code which invalidated
5391         equivalences based on the value of that argument.
5392         (thread_through_normal_block): Corresponding changes.
5393
5394 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5395
5396         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5397         function earlier in the file.
5398         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5399         df_regs_ever_live_p.
5400
5401 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5402
5403         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5404         by ignoring it.
5405
5406 2015-10-29  Richard Henderson  <rth@redhat.com>
5407
5408         PR target/68124
5409         PR rtl-opt/67609
5410         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5411         sse check to the exact conditions of PR 67609.
5412
5413 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5414
5415         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5416         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5417         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5418         of the traditional names that TFmode uses for handling IEEE
5419         extended double. If -mfloat128, add KFmode functions for all of
5420         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5421         make TFmode use the same emulation functions as KFmode.
5422         (init_float128_ibm): Likewise.
5423         (init_float128_ieee): Likewise.
5424         (rs6000_generate_compare): For IEEE 128-bit floating point
5425         comparisons, call the unordered comparison function instead of the
5426         ordered comparison function.
5427         (rs6000_expand_float128_convert): Deal with operands that are
5428         memory operands. Restructure the code to use a switch statement on
5429         the mode. Add support for TFmode defaulting to either IBM extended
5430         double or IEEE 128-bit floating point. If the underlying types are
5431         the same, use a move instead of a conversion function.
5432         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5433         use for IEEE 128-bit floating point constants with -mfloat128.
5434         (rs6000_c_mode_for_suffix): Likewise.
5435         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5436         128-bit floating point with IBM extended double floating point.
5437         (rs6000_invalid_binary_op): Likewise.
5438         (rs6000_gen_le_vsx_permute): On little endian systems generate a
5439         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5440         types that can go in vector registers.
5441         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5442         point types that can go in vector registers on little endian
5443         PowerPC systems.
5444         (mark_swaps_for_removal): Likewise.
5445         (rs6000_analyze_swaps): Likewise.
5446         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5447
5448         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5449         rework IEEE 128-bit floating point insns to deal with TFmode being
5450         either IBM extended double or IEEE 128-bit floating point.
5451         (IFKF): Likewise.
5452         (IBM128): Update iterator to add condition that the mode is IBM
5453         extended double.
5454         (IEEE128): New iterator for IEEE 128-bit floating point.
5455         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5456         (FLOAT128): Likewise.
5457         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5458         iterator.
5459         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5460         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5461         instead of hard coding TFmode or KFmode.
5462         (negtf2_internal): Likewise.
5463         (neg<mode>2_internal): Likewise.
5464         (abs<mode>2): Likewise.
5465         (abstf2_internal): Likewise.
5466         (abs<mode>2_internal): Likewise.
5467         (ieee_128bit_neg<mode>2): Likewise.
5468         (ieee_128bit_neg<mode>2_internal): Likewise.
5469         (ieee_128bit_abs<mode>2): Likewise.
5470         (ieee_128bit_abs<mode>2_internal): Likewise.
5471         (ieee_128bit_nabs<mode>2): Likewise.
5472         (ieee_128bit_nabs<mode>2_internal): Likewise.
5473         (extendiftf2): Add explicit conversions between 128-bit floating
5474         point types. Drop the old conversions that had become unwieldy.
5475         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5476         (extendifkf2): Likewise.
5477         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5478         (extendtfkf2): Likewise.
5479         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5480         (trunciftf2): Likewise.
5481         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5482         (truncifkf2): Likewise.
5483         (float<SDI:mode><IFKF:mode>2): Likewise.
5484         (trunckftf2): Likewise.
5485         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5486         (trunctfif2): Likewise.
5487         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5488         (extenddftf2): Rework 128-bit floating point conversions to
5489         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5490         KFmode expanders into one function.
5491         (extenddf<mode>2): Likewise.
5492         (extenddftf2_fprs): Likewise.
5493         (extenddf<mode>2_fprs): Likewise.
5494         (extenddftf2_vsx): Likewise.
5495         (extenddf<mode>2_vsx): Likewise.
5496         (extendsftf2): Likewise.
5497         (extendsf<mode>2): Likewise.
5498         (trunctfdf2): Likewise.
5499         (trunc<mode>df2): Likewise.
5500         (trunctfdf2_internal1): Likewise.
5501         (trunc<mode>df2_internal1): Likewise.
5502         (trunctfdf2_internal2): Likewise.
5503         (trunc<mode>df2_internal2): Likewise.
5504         (trunctfsf2): Likewise.
5505         (trunc<mode>sf2): Likewise.
5506         (trunctfsf2_fprs): Likewise.
5507         (trunc<mode>sf2_fprs): Likewise.
5508         (floatsit2f): Likewise.
5509         (floatsi<mode>2): Likewise.
5510         (fix_trunc_helper): Likewise.
5511         (fix_trunc_helper<mode>): Likewise.
5512         (fix_trunctfsi2): Likewise.
5513         (fix_trunc<mode>si2): Likewise.
5514         (fix_trunctfsi2_fprs): Likewise.
5515         (fix_trunc<mode>si2_fprs): Likewise.
5516         (fix_trunctfsi2_internal): Likewise.
5517         (fix_trunc<mode>si2_internal): Likewise.
5518         (fix_trunctfdi2): Likewise.
5519         (fix_trunc<mode>di2): Likewise.
5520         (fixuns_trunctf<mode>2): Likewise.
5521         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5522         (floatditf2): Likewise.
5523         (floatdi<mode>2): Likewise.
5524         (floatuns<mode>tf2): Likewise.
5525         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5526         (cmptf_internal1): Use a mode iterator to add support for both
5527         types (IFmode, TFmode) that support IBM extended double.
5528         (cmp<mode>_internal1): Likewise.
5529         (cmptf_internal2): Likewise.
5530         (cmp<mode>_internal2): Likewise.
5531
5532         * doc/extend.texi (Floating Types): Document __ibm128 and
5533         __float128 on PowerPC.
5534
5535         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5536         -mfloat128 and -mno-float128.
5537
5538 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5539
5540         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5541         floating point modes that can go in vector registers.
5542         (MODES_TIEABLE_P): Move tests for vector modes before tests for
5543         scalar floating point, so that IEEE 128-bit floating point that
5544         can go in vector registers bind with vectors and not FP.
5545         (struct rs6000_args): Add libcall field.
5546
5547         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5548         and -mfloat128-software switches.  Replace them with a binary
5549         -mfloat128 switch.
5550         (-mfloat128): Likewise.
5551
5552         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5553         128-bit floating point types in GPRs, even if the appropriate
5554         option enabling the type was not used.
5555         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5556         debugging.
5557         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5558         pre-decrement on IEEE 128-bit floating point values.
5559         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5560         is IEEE 128-bit floating point.
5561         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5562         128-bit floating point types that can go in vector registers.
5563         (rs6000_option_override_internal): Change -mfloat128-none and
5564         -mfloat128-software to -mfloat128, and move code to be near other
5565         VSX option handling.
5566         (rs6000_option_override_internal): Disable -mfloat128 if we don't
5567         have the Altivec ABI.
5568         (rs6000_init_builtins): Don't make TFmode use either IFmode or
5569         KFmode floating point nodes. Instead, have three separate nodes.
5570         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5571         eventually moving the long double default to IEEE 128-bit floating
5572         point.
5573         (rs6000_opt_masks): Add -mfloat128.
5574         (struct rs6000_opt_var): Fix typo in comment.
5575         (init_cumulative_args): Initialize libcall field in
5576         CUMULATIVE_ARGS.
5577         (rs6000_function_arg): Treat library functions as if they had
5578         prototypes to prevent IEEE 128-bit support functions from passing
5579         arguments in both GPRs and vector registers.
5580         (rs6000_arg_partial_bytes): Likewise.
5581
5582         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5583         an option that can be turned on via -mcpu=<xxx>.
5584
5585         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5586         longer used.
5587
5588         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5589         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5590         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5591         double is IBM extended double.
5592
5593         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5594         SUBREGs.
5595
5596 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5597
5598         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5599         * genconditions.c: Define CHECKING_P in the generated code.
5600         * genextract.c: Use flag_checking in insn_extract.
5601         * gengtype.c (main): Remove conditional compilation.
5602         * gengtype.h: Likewise.
5603
5604 2015-10-29  Jeff Law  <law@redhat.com>
5605
5606         PR tree-optimization/67892
5607         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5608         in comment.
5609         (thread_through_normal_block): If we have seen a backedge, then
5610         do nothing.  No longer call find_jump_threads_backwards here.
5611         (thread_across_edge): Use find_jump_threads_backwards to find
5612         jump threads if the old style threader was not successful.
5613         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5614         gsi_last_nondebug_bb.  Return NULL if the block does not end
5615         with a control statement.
5616         (find_jump_threads_backwards): Setup code moved here from
5617         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
5618         single edge argument instead of name & block.
5619         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5620         prototype.
5621
5622 2015-10-29  Tom de Vries  <tom@codesourcery.com>
5623
5624         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5625         types.
5626
5627 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
5628
5629         * omp-low.c (lower_omp_target): Remove unreachable code & merge
5630         ifs.
5631
5632 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
5633
5634         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5635
5636 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5637
5638         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5639         guard_bb0 and use guard_bb throughout.
5640
5641 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5642
5643         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5644         unnecessary label.
5645
5646 2015-10-29  Richard Biener  <rguenther@suse.de>
5647
5648         PR middle-end/68142
5649         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5650         overflow.
5651
5652 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
5653
5654         * alias.c: Reorder #include statements and remove duplicates.
5655         * asan.c: Likewise.
5656         * attribs.c: Likewise.
5657         * auto-inc-dec.c: Likewise.
5658         * auto-profile.c: Likewise.
5659         * bb-reorder.c: Likewise.
5660         * bt-load.c: Likewise.
5661         * builtins.c: Likewise.
5662         * caller-save.c: Likewise.
5663         * calls.c: Likewise.
5664         * ccmp.c: Likewise.
5665         * cfg.c: Likewise.
5666         * cfganal.c: Likewise.
5667         * cfgbuild.c: Likewise.
5668         * cfgcleanup.c: Likewise.
5669         * cfgexpand.c: Likewise.
5670         * cfghooks.c: Likewise.
5671         * cfgloop.c: Likewise.
5672         * cfgloopanal.c: Likewise.
5673         * cfgloopmanip.c: Likewise.
5674         * cfgrtl.c: Likewise.
5675         * cgraph.c: Likewise.
5676         * cgraphbuild.c: Likewise.
5677         * cgraphclones.c: Likewise.
5678         * cgraphunit.c: Likewise.
5679         * cilk-common.c: Likewise.
5680         * combine-stack-adj.c: Likewise.
5681         * combine.c: Likewise.
5682         * compare-elim.c: Likewise.
5683         * convert.c: Likewise.
5684         * coverage.c: Likewise.
5685         * cppbuiltin.c: Likewise.
5686         * cprop.c: Likewise.
5687         * cse.c: Likewise.
5688         * cselib.c: Likewise.
5689         * data-streamer-in.c: Likewise.
5690         * data-streamer-out.c: Likewise.
5691         * data-streamer.c: Likewise.
5692         * dbxout.c: Likewise.
5693         * dce.c: Likewise.
5694         * ddg.c: Likewise.
5695         * debug.c: Likewise.
5696         * df-core.c: Likewise.
5697         * df-problems.c: Likewise.
5698         * df-scan.c: Likewise.
5699         * dfp.c: Likewise.
5700         * dojump.c: Likewise.
5701         * dominance.c: Likewise.
5702         * double-int.c: Likewise.
5703         * dse.c: Likewise.
5704         * dumpfile.c: Likewise.
5705         * dwarf2asm.c: Likewise.
5706         * dwarf2cfi.c: Likewise.
5707         * dwarf2out.c: Likewise.
5708         * emit-rtl.c: Likewise.
5709         * except.c: Likewise.
5710         * explow.c: Likewise.
5711         * expmed.c: Likewise.
5712         * expr.c: Likewise.
5713         * final.c: Likewise.
5714         * fixed-value.c: Likewise.
5715         * fold-const.c: Likewise.
5716         * function.c: Likewise.
5717         * fwprop.c: Likewise.
5718         * gcse.c: Likewise.
5719         * generic-match-head.c: Likewise.
5720         * ggc-common.c: Likewise.
5721         * gimple-builder.c: Likewise.
5722         * gimple-expr.c: Likewise.
5723         * gimple-fold.c: Likewise.
5724         * gimple-iterator.c: Likewise.
5725         * gimple-low.c: Likewise.
5726         * gimple-match-head.c: Likewise.
5727         * gimple-pretty-print.c: Likewise.
5728         * gimple-ssa-isolate-paths.c: Likewise.
5729         * gimple-ssa-strength-reduction.c: Likewise.
5730         * gimple-streamer-in.c: Likewise.
5731         * gimple-streamer-out.c: Likewise.
5732         * gimple-walk.c: Likewise.
5733         * gimple.c: Likewise.
5734         * gimplify-me.c: Likewise.
5735         * gimplify.c: Likewise.
5736         * godump.c: Likewise.
5737         * graph.c: Likewise.
5738         * graphite-poly.c: Likewise.
5739         * haifa-sched.c: Likewise.
5740         * hw-doloop.c: Likewise.
5741         * ifcvt.c: Likewise.
5742         * incpath.c: Likewise.
5743         * init-regs.c: Likewise.
5744         * internal-fn.c: Likewise.
5745         * ipa-chkp.c: Likewise.
5746         * ipa-comdats.c: Likewise.
5747         * ipa-cp.c: Likewise.
5748         * ipa-devirt.c: Likewise.
5749         * ipa-icf-gimple.c: Likewise.
5750         * ipa-icf.c: Likewise.
5751         * ipa-inline-analysis.c: Likewise.
5752         * ipa-inline-transform.c: Likewise.
5753         * ipa-inline.c: Likewise.
5754         * ipa-polymorphic-call.c: Likewise.
5755         * ipa-profile.c: Likewise.
5756         * ipa-prop.c: Likewise.
5757         * ipa-pure-const.c: Likewise.
5758         * ipa-ref.c: Likewise.
5759         * ipa-reference.c: Likewise.
5760         * ipa-split.c: Likewise.
5761         * ipa-utils.c: Likewise.
5762         * ipa-visibility.c: Likewise.
5763         * ipa.c: Likewise.
5764         * ira-build.c: Likewise.
5765         * ira-color.c: Likewise.
5766         * ira-conflicts.c: Likewise.
5767         * ira-costs.c: Likewise.
5768         * ira-emit.c: Likewise.
5769         * ira-lives.c: Likewise.
5770         * ira.c: Likewise.
5771         * jump.c: Likewise.
5772         * langhooks.c: Likewise.
5773         * lcm.c: Likewise.
5774         * lists.c: Likewise.
5775         * loop-doloop.c: Likewise.
5776         * loop-init.c: Likewise.
5777         * loop-invariant.c: Likewise.
5778         * loop-iv.c: Likewise.
5779         * loop-unroll.c: Likewise.
5780         * lower-subreg.c: Likewise.
5781         * lra-assigns.c: Likewise.
5782         * lra-coalesce.c: Likewise.
5783         * lra-constraints.c: Likewise.
5784         * lra-eliminations.c: Likewise.
5785         * lra-lives.c: Likewise.
5786         * lra-remat.c: Likewise.
5787         * lra-spills.c: Likewise.
5788         * lra.c: Likewise.
5789         * lto-cgraph.c: Likewise.
5790         * lto-compress.c: Likewise.
5791         * lto-opts.c: Likewise.
5792         * lto-section-in.c: Likewise.
5793         * lto-section-out.c: Likewise.
5794         * lto-streamer-in.c: Likewise.
5795         * lto-streamer-out.c: Likewise.
5796         * lto-streamer.c: Likewise.
5797         * mode-switching.c: Likewise.
5798         * modulo-sched.c: Likewise.
5799         * omp-low.c: Likewise.
5800         * optabs.c: Likewise.
5801         * opts-global.c: Likewise.
5802         * passes.c: Likewise.
5803         * plugin.c: Likewise.
5804         * postreload-gcse.c: Likewise.
5805         * postreload.c: Likewise.
5806         * predict.c: Likewise.
5807         * print-tree.c: Likewise.
5808         * profile.c: Likewise.
5809         * real.c: Likewise.
5810         * realmpfr.c: Likewise.
5811         * recog.c: Likewise.
5812         * ree.c: Likewise.
5813         * reg-stack.c: Likewise.
5814         * regcprop.c: Likewise.
5815         * reginfo.c: Likewise.
5816         * regrename.c: Likewise.
5817         * regstat.c: Likewise.
5818         * reload.c: Likewise.
5819         * reload1.c: Likewise.
5820         * reorg.c: Likewise.
5821         * resource.c: Likewise.
5822         * rtl-chkp.c: Likewise.
5823         * rtl-error.c: Likewise.
5824         * rtlanal.c: Likewise.
5825         * rtlhooks.c: Likewise.
5826         * sanopt.c: Likewise.
5827         * sched-deps.c: Likewise.
5828         * sched-ebb.c: Likewise.
5829         * sched-rgn.c: Likewise.
5830         * sese.c: Likewise.
5831         * shrink-wrap.c: Likewise.
5832         * simplify-rtx.c: Likewise.
5833         * stack-ptr-mod.c: Likewise.
5834         * statistics.c: Likewise.
5835         * stmt.c: Likewise.
5836         * stor-layout.c: Likewise.
5837         * store-motion.c: Likewise.
5838         * stringpool.c: Likewise.
5839         * symtab.c: Likewise.
5840         * target-globals.c: Likewise.
5841         * targhooks.c: Likewise.
5842         * toplev.c: Likewise.
5843         * tracer.c: Likewise.
5844         * trans-mem.c: Likewise.
5845         * tree-affine.c: Likewise.
5846         * tree-call-cdce.c: Likewise.
5847         * tree-cfg.c: Likewise.
5848         * tree-cfgcleanup.c: Likewise.
5849         * tree-chkp-opt.c: Likewise.
5850         * tree-chkp.c: Likewise.
5851         * tree-chrec.c: Likewise.
5852         * tree-complex.c: Likewise.
5853         * tree-data-ref.c: Likewise.
5854         * tree-dfa.c: Likewise.
5855         * tree-diagnostic.c: Likewise.
5856         * tree-dump.c: Likewise.
5857         * tree-eh.c: Likewise.
5858         * tree-emutls.c: Likewise.
5859         * tree-if-conv.c: Likewise.
5860         * tree-inline.c: Likewise.
5861         * tree-into-ssa.c: Likewise.
5862         * tree-iterator.c: Likewise.
5863         * tree-loop-distribution.c: Likewise.
5864         * tree-nested.c: Likewise.
5865         * tree-nrv.c: Likewise.
5866         * tree-object-size.c: Likewise.
5867         * tree-outof-ssa.c: Likewise.
5868         * tree-parloops.c: Likewise.
5869         * tree-phinodes.c: Likewise.
5870         * tree-predcom.c: Likewise.
5871         * tree-pretty-print.c: Likewise.
5872         * tree-profile.c: Likewise.
5873         * tree-scalar-evolution.c: Likewise.
5874         * tree-sra.c: Likewise.
5875         * tree-ssa-address.c: Likewise.
5876         * tree-ssa-alias.c: Likewise.
5877         * tree-ssa-ccp.c: Likewise.
5878         * tree-ssa-coalesce.c: Likewise.
5879         * tree-ssa-copy.c: Likewise.
5880         * tree-ssa-dce.c: Likewise.
5881         * tree-ssa-dom.c: Likewise.
5882         * tree-ssa-dse.c: Likewise.
5883         * tree-ssa-forwprop.c: Likewise.
5884         * tree-ssa-ifcombine.c: Likewise.
5885         * tree-ssa-live.c: Likewise.
5886         * tree-ssa-loop-ch.c: Likewise.
5887         * tree-ssa-loop-im.c: Likewise.
5888         * tree-ssa-loop-ivcanon.c: Likewise.
5889         * tree-ssa-loop-ivopts.c: Likewise.
5890         * tree-ssa-loop-manip.c: Likewise.
5891         * tree-ssa-loop-niter.c: Likewise.
5892         * tree-ssa-loop-prefetch.c: Likewise.
5893         * tree-ssa-loop-unswitch.c: Likewise.
5894         * tree-ssa-loop.c: Likewise.
5895         * tree-ssa-math-opts.c: Likewise.
5896         * tree-ssa-operands.c: Likewise.
5897         * tree-ssa-phiopt.c: Likewise.
5898         * tree-ssa-phiprop.c: Likewise.
5899         * tree-ssa-pre.c: Likewise.
5900         * tree-ssa-propagate.c: Likewise.
5901         * tree-ssa-reassoc.c: Likewise.
5902         * tree-ssa-sccvn.c: Likewise.
5903         * tree-ssa-scopedtables.c: Likewise.
5904         * tree-ssa-sink.c: Likewise.
5905         * tree-ssa-strlen.c: Likewise.
5906         * tree-ssa-structalias.c: Likewise.
5907         * tree-ssa-tail-merge.c: Likewise.
5908         * tree-ssa-ter.c: Likewise.
5909         * tree-ssa-threadedge.c: Likewise.
5910         * tree-ssa-threadupdate.c: Likewise.
5911         * tree-ssa-uncprop.c: Likewise.
5912         * tree-ssa-uninit.c: Likewise.
5913         * tree-ssa.c: Likewise.
5914         * tree-ssanames.c: Likewise.
5915         * tree-stdarg.c: Likewise.
5916         * tree-streamer-in.c: Likewise.
5917         * tree-streamer-out.c: Likewise.
5918         * tree-streamer.c: Likewise.
5919         * tree-switch-conversion.c: Likewise.
5920         * tree-tailcall.c: Likewise.
5921         * tree-vect-data-refs.c: Likewise.
5922         * tree-vect-generic.c: Likewise.
5923         * tree-vect-loop-manip.c: Likewise.
5924         * tree-vect-loop.c: Likewise.
5925         * tree-vect-patterns.c: Likewise.
5926         * tree-vect-slp.c: Likewise.
5927         * tree-vect-stmts.c: Likewise.
5928         * tree-vectorizer.c: Likewise.
5929         * tree-vrp.c: Likewise.
5930         * tree.c: Likewise.
5931         * tsan.c: Likewise.
5932         * ubsan.c: Likewise.
5933         * value-prof.c: Likewise.
5934         * var-tracking.c: Likewise.
5935         * varasm.c: Likewise.
5936         * varpool.c: Likewise.
5937         * vtable-verify.c: Likewise.
5938         * web.c: Likewise.
5939         * wide-int-print.cc: Likewise.
5940         * wide-int.cc: Likewise.
5941         * xcoffout.c: Likewise.
5942
5943 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * Makefile.in (NO_PIE_CFLAGS): New.
5946         (NO_PIE_FLAG): Likewise.
5947         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5948         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5949         (BUILD_NO_PIE_CFLAGS): Likewise.
5950         (BUILD_NO_PIE_FLAG): Likewise.
5951         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5952         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5953         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5954         $(BUILD_NO_PIE_CFLAGS).
5955         (BUILD_CXXFLAGS): Likewise.
5956         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5957         $(BUILD_NO_PIE_FLAG).
5958         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
5959         (BUILD_NO_PIE_FLAG): Likewise.
5960         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5961         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5962         * configure: Regenerated.
5963
5964 2015-10-29  Richard Biener  <rguenther@suse.de>
5965
5966         PR middle-end/56956
5967         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5968         unsigned conditonal negation to ABS_EXPR.
5969
5970 2015-10-29  Richard Biener  <rguenther@suse.de>
5971
5972         * gimple-match-head.c (gimple_simplify): Remove premature checking
5973         of builtin_decl_implicit of function calls we simplify.
5974
5975 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
5976
5977         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5978         (get_computation_cost_at): Ditto.
5979         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5980         and inv_expr_id.
5981
5982 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5983
5984         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5985         superfluous code.
5986
5987 2015-10-28  Jason Merrill  <jason@redhat.com>
5988
5989         * Makefile.in (TAGS): Include libcpp and libiberty.
5990
5991 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5992
5993         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5994         (extract_omp_for_data): Remove OpenACC special handling of
5995         chunking.
5996
5997         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5998         (struct parallel): Update comment.
5999         (nvptx_reorg): Likewise.
6000         (nvptx_neuter): Cleanup whitespace.
6001
6002 2015-10-28  Richard Henderson  <rth@redhat.com>
6003
6004         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6005
6006 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6007
6008         PR target/67839
6009         * config/avr/predicates.md (low_io_address_operand): Don't
6010         consider MODE when computing upper bound.
6011         (io_address_operand): Likewise.
6012
6013 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
6014
6015         * fold-const.c (operand_equal_p): Do not verify that types are
6016         compatible for MEM_REFs.
6017
6018 2015-10-28  Richard Biener  <rguenther@suse.de>
6019
6020         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6021         in simplifying VEC_COND_EXPR conditions.
6022
6023 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6024
6025         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6026         into vi_next of a full_var.
6027
6028 2015-10-28  Tom de Vries  <tom@codesourcery.com>
6029
6030         * tree-ssa-structalias.c (new_var_info, make_heapvar)
6031         (make_constraint_from_restrict, make_constraint_from_global_restrict)
6032         (create_function_info_for, create_variable_info_for_1)
6033         (create_variable_info_for): Add and handle add_id parameter.
6034         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6035         (init_base_vars): Add extra argument to calls to new_var_info.
6036         (get_vi_for_tree): Add extra argument to call to
6037         create_variable_info_for.
6038         (process_constraint, do_deref, process_all_all_constraints): Add extra
6039         argument to calls to new_scalar_tmp_constraint_exp.
6040         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6041         argument to calls to make_heapvar.
6042         (make_restrict_var_constraints): Add extra argument to call to
6043         make_constraint_from_global_restrict.
6044         (intra_create_variable_infos): Add extra argument to call to
6045         create_variable_info_for_1.
6046         (ipa_pta_execute): Add extra argument to call to
6047         create_function_info_for.
6048
6049 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6050
6051         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6052         (sibcall_value): Likewise.
6053
6054 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6055
6056         * config/nvptx/nvptx.h (struct machine_function): Add
6057         axis_predicate.
6058         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6059         nvptx_expand_oacc_join): Declare.
6060         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6061         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6062         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6063         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6064         UNSPECV_JOINING, UNSPECV_JOIN): New.
6065         (BITS, BITD): New mode iterators.
6066         (br_true_uni, br_false_uni): New.
6067         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6068         (oacc_dim_size, oacc_dim_pos): New.
6069         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6070         (oacc_fork, oacc_join): New.
6071         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6072         (worker_load<mode>, worker_store<mode>): New.
6073         (nvptx_barsync): New.
6074         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6075         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6076         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6077         worker_bcast_sym): New.
6078         (nvptx_option_override): Initialize worker broadcast buffer.
6079         (nvptx_emit_forking, nvptx_emit_joining): New.
6080         (nvptx_init_axis_predicate): New.
6081         (nvptx_declare_function_name): Init axis predicates.
6082         (nvptx_expand_call): Add fork/join markers around routine call.
6083         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6084         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6085         (nvptx_gen_vcast): New.
6086         (struct wcast_data_t): New.
6087         (enum propagate_mask): New.
6088         (nvptx_gen_wcast): New.
6089         (nvptx_print_operand): Add 'S' case.
6090         (struct parallel): New.
6091         (parallel::parallel, parallel::~parallel): New.
6092         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6093         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6094         nvptx_find_par, nvptx_discover_pars): New.
6095         (nvptx_propagate): New.
6096         (vprop_gen, nvptx_vpropagate): New.
6097         (wprop_gen, nvptx_wpropagate): New.
6098         (nvptx_wsync): New.
6099         (nvptx_single, nvptx_skip_par): New.
6100         (nvptx_process_pars, nvptx_neuter_pars): New.
6101         (ntptx_reorg): Split blocks, generate parallel structure, apply
6102         neutering.
6103         (nvptx_cannot_copy_insn_p): New.
6104         (nvptx_file_end): Emit worker broadcast decl.
6105         (nvptx_goacc_fork_join): New.
6106         (TARGET_CANNOT_COPY_INSN_P): Override.
6107         (TARGET_GOACC_FORK_JOIN): Override.
6108
6109 2015-10-28  Richard Biener  <rguenther@suse.de>
6110
6111         * fold-const.c (negate_expr_p): Adjust the division case to
6112         properly avoid introducing undefined overflow.
6113         (fold_negate_expr): Likewise.
6114
6115 2015-10-28  Richard Biener  <rguenther@suse.de>
6116
6117         PR tree-optimization/65962
6118         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6119         Avoid creating loop carried dependences also for outer loops
6120         of the loop a use to replace is in.
6121
6122 2015-10-28  Richard Biener  <rguenther@suse.de>
6123
6124         * common.opt (fchecking): New flag controlling flag_checking.
6125         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6126         * timevar.c (timer::print): Adjust output.
6127         * doc/invoke.texi (fchecking): Document.
6128
6129 2015-10-28  Richard Biener  <rguenther@suse.de>
6130
6131         PR middle-end/68067
6132         * fold-const.c (negate_expr_p): We cannot negate plus or minus
6133         if overflow is not wrapping.  Likewise multiplication unless
6134         one operand is constant and not power of two.
6135         (fold_negate_expr): Adjust accordingly.
6136
6137 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6138
6139         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6140         fields.
6141         (is_oacc_parallel, is_oacc_kernels): New.
6142         (enclosing_target_ctx): May return NULL.
6143         (ctx_in_oacc_kernels_region): New.
6144         (check_oacc_kernel_gwv): New.
6145         (oacc_loop_or_target_p): Delete.
6146         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
6147         operands.  Strip reductions fro kernels.
6148         (scan_omp_target): Don't calculate gwv mask.
6149         (lower_oacc_head_mark, lower_oacc_loop_marker,
6150         lower_oacc_head_tail): New.
6151         (struct oacc_collapse): New.
6152         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6153         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6154         Remove OpenACC handling.
6155         (expand_oacc_for): New.
6156         (expand_omp_for): Call expand_oacc_for.
6157         (lower_omp_for): Call lower_oacc_head_tail.
6158
6159 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
6160
6161         * attribs.c (check_attribute_tables): New function, broken out from...
6162         (init_attributes): Use it.
6163         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6164         gcc_checking_assert and checking_* functions to eliminate
6165         ENABLE_CHECKING conditionals.
6166         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6167         (pass_expand::execute): Likewise.
6168         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6169         * cgraphunit.c (mark_functions_to_output): Likewise.
6170         (cgraph_node::expand_thunk): Likewise.
6171         (symbol_table::compile): Likewise.
6172         * ddg.c (add_cross_iteration_register_deps): Likewise.
6173         (create_ddg_all_sccs): Likewise.
6174         * df-core.c (df_finish_pass, df_analyze): Likewise.
6175         * diagnostic-core.h: Likewise.
6176         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6177         * dominance.c (calculate_dominance_info): Likewise.
6178         * dwarf2out.c (add_AT_die_ref): Likewise.
6179         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6180         (loc_list_from_tree, gen_lexical_block_die): Likewise.
6181         gen_type_die_with_usage, gen_type_die): Likewise.
6182         (dwarf2out_decl): Likewise.
6183         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6184         * except.c (duplicate_eh_regions): Likewise.
6185         * fwprop.c (register_active_defs, update_df_init): Likewise.
6186         (fwprop_init, fwprop_done): Likewise.
6187         (update_uses): Likewise.
6188         * ggc-page.c (ggc_grow): Likewise.
6189         * gimplify.c (gimplify_body): Likewise.
6190         (gimplify_hasher::equal): Likewise.
6191         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6192         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6193         Likewise.
6194         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6195         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6196         * hash-table.h (::find_empty_slot_for_expand): Likewise.
6197         * ifcvt.c (if_convert): Likewise.
6198         * ipa-cp.c (ipcp_propagate_stage): Likewise.
6199         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6200         (odr_type_p, odr_types_equivalent_p): Likewise.
6201         (add_type_duplicate, get_odr_type): Likewise.
6202         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6203         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6204         (sem_item_optimizer::verify_classes): Likewise.
6205         (sem_item_optimizer::traverse_congruence_split): Likewise.
6206         (sem_item_optimizer::checking_verify_classes): New.
6207         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6208         method.
6209         * cfgrtl.c (commit_edge_insertions): Likewise.
6210         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6211         (rtl_flow_call_edges_add): Likewise.
6212         * cgraph.c (symbol_table::create_edge): Likewise.
6213         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6214         * cgraph.h (symtab_node): Likewise.
6215         (symtab_node::checking_verify_symtab_nodes): Define.
6216         (cgraph_node::checking_verify_cgraph_nodes): Define.
6217         * cfghooks.h (checking_verify_flow_info): Define.
6218         * cfgloop.h (checking_verify_loop_structure): Define.
6219         * dominance.h (checking_verify_dominators): Define.
6220         * et-forest.c: Fix comment.
6221         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6222         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6223         ENABLE_CHECKING conditionals.
6224         * ipa-inline-transform.c (save_inline_function_body): Likewise.
6225         * ipa-inline.c (inline_small_functions): Likewise.
6226         (early_inliner): Likewise.
6227         * ipa-inline.h (estimate_edge_growth): Likewise.
6228         * ipa-visibility.c (function_and_variable_visibility): Likewise.
6229         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6230         (ipa_single_use): Likewise.
6231         * ira-int.h: Likewise.
6232         * ira.c (ira): Likewise.
6233         * loop-doloop.c (doloop_optimize_loops): Likewise.
6234         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6235         * loop-invariant.c (move_loop_invariants): Likewise.
6236         * lra-assigns.c (lra_assign): Likewise.
6237         * lra-constraints.c (lra_constraints): Likewise.
6238         * lra-eliminations.c (lra_eliminate): Likewise.
6239         * lra-int.h (struct lra_reg): Likewise.
6240         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6241         (lra_create_live_ranges_1): Likewise.
6242         * lra-remat.c (create_remat_bb_data): Likewise.
6243         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6244         (lra): Likewise.
6245         (check_rtl): Always define. Remove incorrect guard around
6246         extract_constrain_insn call.
6247         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6248         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6249         ENABLE_CHECKING conditionals.
6250         * lto-streamer-out.c (DFS::DFS): Likewise.
6251         (lto_output): Likewise.
6252         * lto-streamer.c (lto_streamer_init): Likewise.
6253         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6254         expand_omp_target, execute_expand_omp): Likewise.
6255         (lower_omp_target): Likewise.
6256         * passes.c (execute_function_todo): Likewise.
6257         (execute_todo, execute_one_pass): Likewise.
6258         (verify_curr_properties): Always define.
6259         * predict.c (tree_estimate_probability: Use flag_checking,
6260         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6261         ENABLE_CHECKING conditionals.
6262         (propagate_freq): Likewise.
6263         * pretty-print.c (pp_format): Likewise.
6264         * real.c (real_to_decimal_for_mode): Likewise.
6265         * recog.c (split_all_insns): Likewise.
6266         * regcprop.c (kill_value_one_regno): Likewise.
6267         (copy_value): Likewise.
6268         (validate_value_data): Define unconditionally.
6269         * reload.c: Fix comment.
6270         * timevar.c: Include options.h
6271         * tree-ssa.h (checking_verify_ssa): Define.
6272         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6273         * sched-deps.c (CHECK): Remove unused macro.
6274         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6275         gcc_checking_assert and checking_* functions to eliminate
6276         ENABLE_CHECKING conditionals.
6277         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6278         * sel-sched.c (struct moveop_static_params): Likewise.
6279         (find_best_reg_for_expr, move_cond_jump): Likewise.
6280         (move_op_orig_expr_not_found): Likewise.
6281         (code_motion_process_successors, move_op): Likewise.
6282         * ssa-iterators.h (first_readonly_imm_use): Likewise.
6283         (next_readonly_imm_use): Likewise.
6284         * store-motion.c (compute_store_table): Likewise.
6285         * symbol-summary.h (function_summary::function_summary): Likewise.
6286         * target.h (cumulative_args_t): Likewise.
6287         (get_cumulative_args, pack_cumulative_args): Likewise.
6288         * timevar.c: (timer::print): Likewise.
6289         * trans-mem.c (ipa_tm_execute): Likewise.
6290         * tree-cfg.c (move_stmt_op): Likewise.
6291         (move_sese_region_to_fn): Likewise.
6292         (gimple_flow_call_edges_add): Likewise.
6293         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6294         Likewise.
6295         * tree-eh.c (remove_unreachable_handlers): Likewise.
6296         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6297         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6298         * tree-into-ssa.c (update_ssa): Likewise.
6299         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6300         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6301         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6302         * tree-predcom.c (suitable_component_p): Likewise.
6303         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6304         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6305         * tree-ssa-live.c (verify_live_on_entry): Likewise.
6306         * tree-ssa-live.h (register_ssa_partition): Likewise.
6307         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6308         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6309         (tree_transform_and_unroll_loop): Likewise.
6310         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6311         * tree-ssa-operands.c (get_expr_operands): Likewise.
6312         * tree-ssa-propagate.c (replace_exp_1): Likewise.
6313         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6314         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6315         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6316         * tree-ssanames.c (release_ssa_name_fn): Likewise.
6317         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6318         * tree-vect-loop-manip.c
6319         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6320         (slpeel_checking_verify_cfg_after_peeling): Likewise.
6321         (vect_do_peeling_for_loop_bound): Likewise.
6322         (vect_do_peeling_for_alignment): Likewise.
6323         * tree-vrp.c (supports_overflow_infinity): Likewise.
6324         (set_value_range): Likewise.
6325         * tree.c (free_lang_data_in_cgraph): Likewise.
6326         * value-prof.c (gimple_remove_histogram_value): Likewise.
6327         (free_hist): Likewise.
6328         * var-tracking.c (canonicalize_values_star): Likewise.
6329         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6330
6331 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6332
6333         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6334         IFN_GOACC_LOOP): New.
6335         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6336         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6337         IFN_UNIQUE_OACC_TAIL_MARK.
6338         (enum ifn_goacc_loop_kind): New.
6339         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6340         IFN_UNIQUE_OACC_JOIN cases.
6341         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6342         (expand_GOACC_LOOP): New.
6343         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6344         * omp-low.c: Include gimple-pretty-print.h.
6345         (struct oacc_loop): New.
6346         (enum oacc_loop_flags): New.
6347         (oacc_thread_numbers): New.
6348         (oacc_xform_loop): New.
6349         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6350         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6351         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6352         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6353         oacc_loop_discovery): New.
6354         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6355         oacc_loop_process): New.
6356         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6357         (execute_oacc_device_lower): Discover & process loops.  Process
6358         internal fns.
6359         * target.def (goacc.fork_join): Change sense of hook, clarify
6360         documentation.
6361         * doc/tm.texi: Regenerated.
6362
6363 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6364
6365         * target-insns.def (oacc_fork, oacc_join): Define.
6366         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6367         (goacc.fork_join): New GOACC hook.
6368         * targhooks.h (default_goacc_fork_join): Declare.
6369         * omp-low.c (default_goacc_forkjoin): New.
6370         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6371         * doc/tm.texi: Regenerate.
6372
6373 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6374
6375         * omp-low.c (oacc_init_rediction_array): New.
6376         (oacc_initialize_reduction_data): Initialize array.
6377
6378 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6379
6380         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6381
6382 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6383
6384         * internal-fn.c (expand_UNIQUE): New.
6385         * internal-fn.h (enum ifn_unique_kind): New.
6386         * internal-fn.def (IFN_UNIQUE): New.
6387         * target-insns.def (unique): Define.
6388         * gimple.h (gimple_call_internal_unique_p): New.
6389         * gimple.c (gimple_call_same_target_p): Check internal fn
6390         uniqueness.
6391         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6392         * tree-ssa-threadedge.c
6393         (record_temporary_equivalences_from_stmts): Likewise.
6394         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6395
6396 2015-10-27  Richard Henderson  <rth@redhat.com>
6397
6398         PR rtl-opt/67609
6399         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6400         narrowing subregs on SSE and MMX registers.
6401         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6402         appear to be sub-words of multi-register pseudos must be rejected.
6403         * doc/tm.texi: Regenerate.
6404
6405 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6406
6407         PR target/68102
6408         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6409         operands[0] is a reg before taking its REGNO in split condition.
6410         (*movdi_aarch64): Likewise.
6411
6412 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6413
6414         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6415         Handle floating point inner modes properly.
6416
6417 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
6418
6419         * tree-vect-looop.c
6420         (vectorizable_live_operation): Change iterator.
6421
6422 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6423             Aditya Kumar  <aditya.k7@samsung.com>
6424
6425         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6426           function to schedule based on isl_schedule_node.
6427         (get_schedule_map_st): New schedule optimizer based on
6428         isl_schedule_node.
6429         (scop_get_domains): New. Return the isl_union_set containing the
6430         domains of all the pbbs.
6431         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6432
6433 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6434
6435         PR target/67215
6436         * calls.c (prepare_call_address): Don't handle -fno-plt here.
6437         * config/i386/i386.c (ix86_expand_call): Generate indirect call
6438         via GOT for -fno-plt.  Support indirect call via GOT for x32.
6439         * config/i386/predicates.md (sibcall_memory_operand): Allow
6440         GOT memory operand.
6441
6442 2015-10-27  Richard Biener  <rguenther@suse.de>
6443
6444         PR tree-optimization/68104
6445         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6446         strided access check ...
6447         (vect_compute_data_refs_alignment): ... here.
6448
6449 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
6450             Joseph Myers  <joseph@codesourcery.com>
6451             Mark Shinwell  <shinwell@codesourcery.com>
6452             Andrew Stubbs  <ams@codesourcery.com>
6453             Rich Felker <dalias@libc.org>
6454
6455         * config.gcc: Handle --enable-fdpic.
6456         * config/sh/constraints.md (Ccl): New constraint.
6457         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6458         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6459         __SH_FDPIC__.
6460         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6461         library functions.
6462         * config/sh/sh-protos.h (function_symbol_result): New struct.
6463         (function_symbol): Return function_symbol_result.
6464         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6465         declarations.
6466         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6467         target hook.
6468         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6469         (sh_option_override): Force -fPIC if FDPIC is in effect.
6470         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6471         UNSPEC_GOTOFFFUNCDESC cases.
6472         (prepare_move_operands): Use FDPIC initial GOT register for
6473         TLS-related GOT access; inhibit cross-section address offset constants
6474         for FDPIC.
6475         (sh_assemble_integer): New function.
6476         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6477         PC-relative call sites.
6478         (expand_ashiftrt): Adapt invocation of function_symbol.
6479         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6480         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6481         UNSPEC_GOTOFFFUNCDESC.
6482         (legitimize_pic_address): Resolve function symbols to function
6483         descriptors for FDPIC.  Do not use GOT-relative addressing for local
6484         data that may be read-only on FDPIC.
6485         (sh_emit_storesi, sh_emit_storehi): New functions.
6486         (sh_trampoline_init): Generate FDPIC trampolines.
6487         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6488         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6489         (sh_output_mi_thunk): Generate FDPIC call.
6490         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
6491         FDPIC, generate call site labels to use PC-relative addressing rather
6492         than GOT-relative addressing.
6493         (sh_conditional_register_usage): Make PIC register fixed and call used
6494         when FDPIC is in effect.
6495         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6496         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6497         sh_get_fdpic_reg_initial_val): New functions.
6498         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6499         Handle -mfdpic.
6500         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6501         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6502         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6503         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6504         FDPIC_SELF_SPECS.
6505         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6506         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6507         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6508         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6509         constants.
6510         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6511         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6512         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6513         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6514         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6515         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6516         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6517         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6518         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6519         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6520         block_move_real, block_lump_real, block_move_real_i4,
6521         block_lump_real_i4): Add support for FDPIC calls.
6522         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6523         call_value_pop): Adjust for new function_symbol signature.
6524         * config/sh/sh.opt (-mfdpic): New option.
6525         * doc/install.texi (Options specification): Document --enable-fdpic.
6526         * doc/invoke.texi (SH Options): Document -mfdpic.
6527
6528
6529 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6530
6531         PR tree-optimization/65963
6532         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6533         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6534
6535 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6536
6537         PR target/67929
6538         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6539         * config/arm/constraints.md (Dp): Update callsite.
6540         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6541
6542 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6543
6544         * builtins.c (fold_builtin_load_exponent): Rename to...
6545         (fold_const_builtin_load_exponent): ...this and only handle
6546         constant arguments.
6547         (fold_builtin_2): Update accordingly.
6548         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6549
6550 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6551
6552         * builtins.c (fold_builtin_logb): Rename to...
6553         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6554         (fold_builtin_significand): Rename to...
6555         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6556         (fold_builtin_1): Update accordingly.
6557
6558 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6559
6560         * builtins.c (fold_builtin_fmin_fmax): Delete.
6561         (fold_builtin_2): Handle constant fmin and fmax arguments here.
6562         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6563
6564 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
6565
6566         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6567         for register extension into sign and zero register extension.
6568         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6569         for sign and zero register extension.
6570         (cortexa57_addrcost_table): Likewise.
6571         (xgene1_addrcost_table): Likewise.
6572
6573 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6574
6575         * fold-const.c (fold_minmax): Delete.
6576         (fold_binary_loc): Don't call it.
6577         * match.pd: Add rules previously handled by fold_minmax.
6578
6579 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6580
6581         * builtins.c (fold_builtin_fma): Remove constant handling.
6582         (fold_builtin_3): Handle constant fma arguments here.
6583
6584 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6585
6586         * builtins.c (fold_builtin_fabs): Remove constant handling.
6587         (fold_builtin_abs): Likewise.
6588
6589 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6590
6591         * builtins.c (fold_builtin_copysign): Delete.
6592         (fold_builtin_2): Handle constant copysign arguments here.
6593         * match.pd: Add rules previously handled by fold_builtin_copysign.
6594
6595 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6596
6597         * builtins.c (fold_builtin_signbit): Delete.
6598         (fold_builtin_2): Handle constant signbit arguments here.
6599         * match.pd: Add rules previously handled by fold_builtin_signbit.
6600
6601 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6602
6603         * match.pd: Handle sqrt(x) cmp 0 specially.
6604
6605 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
6606
6607         * tree-vect-generic.c (expand_vector_operations_1): Check
6608         optab type before using it.
6609
6610 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6611
6612         * config/aarch64/aarch64-protos.h
6613         (struct tune_params): Add autoprefetcher_model field.
6614         * config/aarch64/aarch64.c: Include params.h
6615         (generic_tunings): Specify autoprefetcher_model value.
6616         (cortexa53_tunings): Likewise.
6617         (cortexa57_tunings): Likewise.
6618         (cortexa72_tunings): Likewise.
6619         (thunderx_tunings): Likewise.
6620         (xgene1_tunings): Likewise.
6621         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6622         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6623         (aarch64_override_options_internal): Set
6624         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6625
6626 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6627
6628         * builtins.c (fold_builtin_exponent): Delete.
6629         (fold_builtin_2): Handle constant expN arguments here.
6630         * match.pd: Fold expN(logN(x)) -> x.
6631
6632 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6633
6634         * builtins.c (fold_builtin_powi): Delete.
6635         (fold_builtin_2): Handle constant powi arguments here.
6636         * match.pd: Add rules previously handled by fold_builtin_powi.
6637
6638 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6639
6640         * builtins.c (fold_builtin_pow): Delete in favor of...
6641         (fold_const_builtin_pow): ...this new function.  Only handle constant
6642         arguments.
6643         (fold_builtin_2): Update accordingly.
6644         * match.pd: Add rules previously handled by fold_builtin_pow.
6645
6646 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6647
6648         * builtins.c (fold_builtin_hypot): Delete.
6649         (fold_builtin_2): Handle constant hypot arguments here.
6650         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
6651         hypot(x, x) to fabs(x)*sqrt(2).
6652
6653 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6654
6655         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6656         instead of make_ssa_name if not yet in SSA form.
6657
6658 2015-10-27  Richard Biener  <rguenther@suse.de>
6659
6660         * cfg.c (free_edge): Add function argument and use it instead of cfun.
6661         (clear_edges): Likewise.
6662         * cfg.h (clear_edges): Adjust prototype.
6663         * cfgexpand.c (pass_expand::execute): Adjust.
6664         * cfgloop.c (release_recorded_exits): Add function argument and use
6665         it instead of cfun.
6666         * cfgloop.h (release_recorded_exits): Adjust prototype.
6667         (loops_state_satisfies_p): Add overload with function argument.
6668         (loops_state_set): Likewise.
6669         (loops_state_clear): Likewise.
6670         (struct loop_iterator): Add function argument to constructor
6671         and iterator and use it instead of cfun.
6672         (FOR_EACH_LOOP_FN): New macro.
6673         (loop_optimizer_finalize): Add overload with function argument.
6674         * loop-init.c (loop_optimizer_init): Adjust.
6675         (fix_loop_structure): Likewise.
6676         (loop_optimizer_finaliz): Add function argument and use it
6677         instead of cfun.
6678         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6679         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6680         * cgraph.c (release_function_body): Do not push/pop cfun.
6681         * final.c (rest_of_clean_state): Adjust.
6682         * graphite.c (graphite_finalize): Likewise.
6683         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6684         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6685         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6686         (tree_unroll_loops_completely): Likewise.
6687         (pass_complete_unrolli::execute): Likewise.
6688         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6689         Add function argument and use it instead of cfun.
6690         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6691         Adjust prototype.
6692         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6693         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6694         instead of cfun.
6695         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6696         * tree-ssanames.c (fini_ssanames): Add function argument and use it
6697         instead of cfun.
6698         * tree-ssanames.c (fini_ssanames): Adjust prototype.
6699         * tree-vrp.c (execute_vrp): Adjust.
6700         * value-prof.c (free_histograms): Add function argument and use it
6701         instead of cfun.
6702         * value-prof.h (free_histograms): Adjust prototype.
6703
6704 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6705
6706         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6707         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6708         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
6709
6710 2015-10-27  Tom de Vries  <tom@codesourcery.com>
6711
6712         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6713         field_type.
6714
6715 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
6716
6717         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6718         (inv_can_prop_to_addr_use): New function.
6719         (record_use): Call can_prop_to_addr_uses, set the new field.
6720         (get_inv_cost): Count cost if inv can't be propagated into its
6721         address uses.
6722
6723 2015-10-26  Doug Evans  <dje@google.com>
6724
6725         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6726
6727 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
6728
6729         * match.pd (fold_widened_comparison): Apply simplifications to all
6730         integral types.
6731
6732 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
6733
6734         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6735         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6736         * doc/tm.texi: Regenerated.
6737         * reorg.c (dbr_schedule): Use new hook.
6738         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6739
6740 2015-10-26  Jeff Law  <law@redhat.com>
6741
6742         PR tree-optimization/68013
6743         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6744         Make sure the first block in the path is in VISITED_BBs.
6745
6746 2015-10-26  Richard Biener  <rguenther@suse.de>
6747         Dominik Vogt  <vogt@linux.vnet.ibm.com>
6748
6749         PR middle-end/67443
6750         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6751         Properly prune ref->ref for accesses outside of ref.
6752
6753 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6754
6755         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6756         new statements to be inserted if inplace.  Allow calls to have
6757         nonempty sequences.
6758
6759 2015-10-26  Richard Biener  <rguenther@suse.de>
6760
6761         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6762         (do_valueize): New function.
6763         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6764         replace_uses_by.
6765         * tree-ssa-threadedge.c: Remove builtins.h include, include
6766         gimple-fold.h
6767         (fold_assignment_stmt): Remove.
6768         (threadedge_valueize): New function.
6769         (record_temporary_equivalences_from_stmts): Use
6770         gimple_fold_stmt_to_constant_1, note additional cleanup
6771         opportunities.
6772
6773 2015-10-26  Richard Biener  <rguenther@suse.de>
6774
6775         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6776         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6777
6778 2015-10-26  Alan Hayward <alan.hayward@arm.com>
6779
6780         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6781         VEC_COND_EXPR types.
6782
6783 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6784
6785         * auto-inc-dec.c (insert_move_insn_before): Delete.
6786         (attempt_change): Remember to cost the simple move in the
6787         FORM_PRE_ADD and FORM_POST_ADD cases.
6788
6789 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
6790
6791         PR target/68091
6792         * config/sh/sh.c (sh_vector_mode_supported_p): Use
6793         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6794
6795 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6796
6797         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6798         factored out of ...
6799         (intra_create_variable_infos): ... here.
6800
6801 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6802
6803         * tree-ssa-structalias.c (intra_create_variable_infos): Add
6804         restrict_pointer_p and recursive_restrict_p variables.
6805
6806 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6807
6808         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6809         get_vi_for_tree call.
6810
6811 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6812
6813         PR middle-end/67989
6814         * optabs.c (expand_atomic_compare_and_swap): Handle case when
6815         ptarget_oval or ptarget_bool are const0_rtx.
6816
6817 2015-10-26  Christian Bruel  <christian.bruel@st.com>
6818
6819         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6820         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6821         * cp/method.c (implicitly_declare_fn): Likewise.
6822         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6823         * java/class.c (add_method_1): Likewise.
6824
6825 2015-10-26  Richard Biener  <rguenther@suse.de>
6826
6827         * alloc-pool.h (base_pool_allocator): Use placement new.
6828         (base_pool_allocator::remove): Likewise.  Compute size outside of
6829         flag_checking.
6830
6831 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6832
6833         * builtins.c (do_real_to_int_conversion): New function.
6834         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6835         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6836         arguments here.
6837         * match.pd: Add rules previously handled by fold_fixed_mathfn
6838         and fold_builtin_int_roundingfn.
6839
6840 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6841
6842         * match.pd: Use macros to define built-in operator lists.
6843
6844 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
6845             Richard Biener  <rguenther@suse.de>
6846
6847         * genmatch.c (dt_simplify::gen): Skip captures that are
6848         part of the result.
6849         (parser::parse_expr): Allow captures in results too.
6850         * builtins.c (fold_builtin_cexp): Delete.
6851         (fold_builtin_1): Handle constant cexp arguments here.
6852         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6853
6854 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
6855
6856         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6857         conditional compilation.
6858         (base_pool_allocator::remove): Use flag_checking.
6859
6860 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
6861
6862         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6863
6864         PR middle-end/68079
6865         * dojump.c (do_compare_and_jump): Canonicalize both function and
6866         method types.
6867
6868 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
6869
6870         PR target/68084
6871         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6872         for =@ccae.
6873
6874 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6875
6876         PR ipa/pr67600
6877         * ipa-polymorphic-call.c
6878         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6879         instance offset with offset of outer type.
6880
6881 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6882
6883         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6884
6885 2015-10-23  Caroline Tice  <cmtice@google.com>
6886
6887         (from Richard Biener
6888         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
6889         call to iterative_hash_host_wide_int.
6890
6891 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6892
6893         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6894         Define as yes.
6895
6896 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6897
6898         * tree-vect-generic.c (expand_vector_operations_1): Check
6899         optab exists before use it.
6900
6901 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6902
6903         * tree-vect-generic.c (expand_vector_condition): Avoid
6904         uninitialized variable warning.
6905
6906 2015-10-23  Jeff Law  <law@redhat.com>
6907
6908         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6909         here.  Instead...
6910         (execute_todo): Call it here.
6911         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6912         statistics
6913         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6914
6915 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6916             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6917
6918         * config.gcc (enable_secureplt): Add *-linux*-musl*.
6919
6920 2015-10-23  Jeff Law  <law@redhat.com>
6921
6922         PR tree-optimization/67830
6923         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6924         Explicitly verify the mask has no bits outside the type of
6925         the innermost operands.
6926
6927 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6928             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6929
6930         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6931         (MUSL_DYNAMIC_LINKER64): Define.
6932         (GNU_USER_DYNAMIC_LINKER32): Update.
6933         (GNU_USER_DYNAMIC_LINKER64): Update.
6934         (CHOOSE_DYNAMIC_LINKER): Update.
6935
6936         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6937         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6938         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6939         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6940         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6941         (CHOOSE_DYNAMIC_LINKER): Update.
6942         (INCLUDE_DEFAULTS): Redefine.
6943
6944         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6945
6946 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6947
6948         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6949         comparing addresses.
6950
6951 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6952
6953         * fold-const.c (operand_equal_p): Handle matching of vector
6954         constructors.
6955
6956 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6957
6958         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6959
6960 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
6961             Andrew Pinski  <apinski@cavium.com>
6962
6963         PR rtl-optimization/67736
6964         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6965         of gen_lowpart.
6966
6967 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6968
6969         PR middle-end/68066
6970         * tree.c (build_truth_vector_type): Support BLK mode
6971         returned for boolean vector.
6972
6973 2015-10-23  Alan Hayward <alan.hayward@arm.com>
6974
6975         PR tree-optimization/65947
6976         * tree-vect-loop.c
6977         (vect_is_simple_reduction_1): Find condition reductions.
6978         (vect_model_reduction_cost): Add condition reduction costs.
6979         (get_initial_def_for_reduction): Add condition reduction initial var.
6980         (vect_create_epilog_for_reduction): Add condition reduction epilog.
6981         (vectorizable_reduction): Condition reduction support.
6982         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6983         * doc/sourcebuild.texi (Vector-specific attributes): Document
6984         vect_max_reduc
6985
6986 2015-10-23  Richard Biener  <rguenther@suse.de>
6987
6988         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6989         and builtins.def.
6990
6991 2015-10-23  Richard Biener  <rguenther@suse.de>
6992             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6993
6994         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6995         into (A ^ B) - B to match.pd
6996         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6997
6998         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6999         New simplifier.
7000         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7001         New simplifier.
7002         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7003         New simplifier.
7004         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7005         New simplifier.
7006         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7007         INTEGER_CST@1)): New simplifier.
7008
7009 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
7010
7011         * builtins.c (integer_valued_real_p): Move to fold-const.c.
7012         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7013         (fold_builtin_ceil, fold_builtin_round): Delete.
7014         (fold_builtin_1): Handle constant trunc, floor, ceil and round
7015         arguments here.
7016         * convert.c (convert_to_real): Remove narrowing of rounding
7017         functions.
7018         * fold-const.h (integer_valued_real_unary_p)
7019         (integer_valued_real_binary_p, integer_valued_real_call_p)
7020         (integer_valued_real_single_p, integer_valued_real_p): Declare.
7021         * fold-const.c (tree_single_nonnegative_warnv_p): Move
7022         name_registered_for_update_p check to SSA_NAME case statement.
7023         Don't call tree_simple_nonnegative_warnv_p for SSA names.
7024         (integer_valued_real_unary_p, integer_valued_real_binary_p)
7025         (integer_valued_real_call_p, integer_valued_real_single_p)
7026         (integer_valued_real_invalid_p): New functions.
7027         (integer_valued_real_p): Move from fold-const.c and rework
7028         to call the functions above.  Handle SSA names.
7029         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7030         * gimple-fold.c (gimple_assign_integer_valued_real_p)
7031         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7032         (gimple_stmt_integer_valued_real_p): New functions.
7033         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7034         Fold f(x)->x for the same f if x is known to be integer-valued.
7035         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7036         the result.  Canonicalize floor(x) as trunc(x) if x is
7037         nonnegative.
7038
7039 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7040
7041         * tree-ssa-structalias.c (intra_create_variable_infos): Use
7042         make_constraint_from.
7043
7044 2015-10-23  Tom de Vries  <tom@codesourcery.com>
7045
7046         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7047         setting of is_full_var in case of a single field.
7048
7049 2015-10-22  Martin Sebor  <msebor@redhat.com>
7050
7051         PR driver/68043
7052         * config/i386/i386.opt: Add missing periods to the ends of sentences.
7053         * config/msp430/msp430.opt: Same.
7054
7055 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7056
7057         * doc/extend.exp (Global Register Variables): Rewrite.
7058
7059 2015-10-22  Jeff Law  <law@redhat.com>
7060
7061         * genattrtab.c (main): If we do not have any annul-true or annul-false
7062         slots, then write out a dummy eligible_for_annul_true or
7063         eligible_for_annul_false as needed.
7064
7065 2015-10-22  Nick Clifton  <nickc@redhat.com>
7066
7067         * config/msp430/msp430.opt: Add -msilicon-errata and
7068         -msilicon-errata-warn.
7069         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7070         assembler.
7071         * doc/invoke.texi: Document new options.
7072
7073 2015-10-22  Richard Biener  <rguenther@suse.de>
7074
7075         PR tree-optimization/58497
7076         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7077         (expand_vector_operations_1): Use it.  Lower operations on
7078         all uniform vectors to scalar operations if the HW supports it.
7079
7080 2015-10-22  Richard Biener  <rguenther@suse.de>
7081
7082         PR tree-optimization/19049
7083         PR tree-optimization/65962
7084         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7085         to strided accesses if single-element interleaving doesn't work.
7086
7087 2015-10-22  Richard Biener  <rguenther@suse.de>
7088
7089         PR middle-end/68046
7090         PR middle-end/61893
7091         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7092         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7093         (expand_unop): Likewise.
7094
7095 2015-10-22  Richard Biener  <rguenther@suse.de>
7096
7097         * fold-const.c (fold_addr_of_array_ref_difference): Properly
7098         convert operands before folding a MINUS_EXPR.
7099         (fold_binary_loc): Move simplification of MINUS_EXPR on
7100         converted POINTER_PLUS_EXPRs ...
7101         * match.pd: ... here.
7102
7103 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7104
7105         * builtins.c (fold_builtin_tan): Delete.
7106         (fold_builtin_1): Handle constant tan arguments here.
7107         * match.pd: Simplify (tan (atan x)) to x.
7108
7109 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7110
7111         * builtins.c (fold_builtin_cproj): Delete.
7112         (fold_builtin_1): Handle constant arguments here.
7113         (build_complex_cproj): Move and rename to...
7114         * tree.c: (build_complex_inf): ...this.
7115         * tree.h (build_complex_inf): Declare.
7116         * match.pd: Fold cproj(x)->x if x has no infinity.
7117         Use build_complex_inf for existing cproj rules.
7118
7119 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7120
7121         PR target/68015
7122         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7123         already have a comparison result.
7124
7125 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7126
7127         PR target/63304
7128         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7129         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7130         (aarch64_classify_address): Likewise.
7131         (aarch64_secondary_reload): Likewise.
7132         (aarch64_override_options_after_change_1): Adjust.
7133         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7134         Use aarch64_nopcrelative_literal_loads.
7135         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7136         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7137         Declare.
7138
7139 2015-10-21  Martin Sebor  <msebor@redhat.com>
7140
7141         PR driver/68043
7142         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7143         (print_filtered_help): Reference aliased option's name and encourage
7144         readers to use it in preference to the alias if the former is not
7145         documented.  Mention when using an option is diagnosed.
7146         * gcc.c (display_help): End each sentence with a period.
7147
7148         * common.opt: End each sentence that describes an option with
7149         a period.
7150         * config/aarch64/aarch64.opt: Same.
7151         * config/alpha/alpha.opt: Same.
7152         * config/arc/arc.opt: Same.
7153         * config/arm/arm.opt: Same.
7154         * config/avr/avr.opt: Same.
7155         * config/bfin/bfin.opt: Same.
7156         * config/c6x/c6x.opt: Same.
7157         * config/cr16/cr16.opt: Same.
7158         * config/cris/cris.opt: Same.
7159         * config/cris/linux.opt: Same.
7160         * config/darwin.opt: Same.
7161         * config/epiphany/epiphany.opt: Same.
7162         * config/fr30/fr30.opt: Same.
7163         * config/frv/frv.opt: Same.
7164         * config/ft32/ft32.opt: Same.
7165         * config/g.opt: Same.
7166         * config/h8300/h8300.opt: Same.
7167         * config/i386/cygming.opt: Same.
7168         * config/i386/djgpp.opt: Same.
7169         * config/i386/i386.opt: Same.
7170         * config/i386/interix.opt: Same.
7171         * config/i386/mingw-w64.opt: Same.
7172         * config/i386/mingw.opt: Same.
7173         * config/ia64/ia64.opt: Same.
7174         * config/ia64/ilp32.opt: Same.
7175         * config/iq2000/iq2000.opt: Same.
7176         * config/linux.opt: Same.
7177         * config/lm32/lm32.opt: Same.
7178         * config/lynx.opt: Same.
7179         * config/m32c/m32c.opt: Same.
7180         * config/m32r/m32r.opt: Same.
7181         * config/m68k/ieee.opt: Same.
7182         * config/m68k/m68k.opt: Same.
7183         * config/mcore/mcore.opt: Same.
7184         * config/mep/mep.opt: Same.
7185         * config/microblaze/microblaze.opt: Same.
7186         * config/mips/mips.opt: Same.
7187         * config/mmix/mmix.opt: Same.
7188         * config/mn10300/mn10300.opt: Same.
7189         * config/moxie/moxie.opt: Same.
7190         * config/msp430/msp430.opt: Same.
7191         * config/nios2/elf.opt: Same.
7192         * config/nios2/nios2.opt: Same.
7193         * config/nvptx/nvptx.opt: Same.
7194         * config/pa/pa-hpux.opt: Same.
7195         * config/pa/pa-hpux1010.opt: Same.
7196         * config/pa/pa-hpux1111.opt: Same.
7197         * config/pa/pa-hpux1131.opt: Same.
7198         * config/pa/pa.opt: Same.
7199         * config/pa/pa64-hpux.opt: Same.
7200         * config/pdp11/pdp11.opt: Same.
7201         * config/rl78/rl78.opt: Same.
7202         * config/rs6000/476.opt: Same.
7203         * config/rs6000/aix64.opt: Same.
7204         * config/rs6000/darwin.opt: Same.
7205         * config/rs6000/linux64.opt: Same.
7206         * config/rs6000/rs6000.opt: Same.
7207         * config/rs6000/sysv4.opt: Same.
7208         * config/s390/s390.opt: Same.
7209         * config/s390/tpf.opt: Same.
7210         * config/sh/sh.opt: Same.
7211         * config/sol2.opt: Same.
7212         * config/sparc/long-double-switch.opt: Same.
7213         * config/sparc/sparc.opt: Same.
7214         * config/spu/spu.opt: Same.
7215         * config/stormy16/stormy16.opt: Same.
7216         * config/tilegx/tilegx.opt: Same.
7217         * config/tilepro/tilepro.opt: Same.
7218         * config/v850/v850.opt: Same.
7219         * config/vax/vax.opt: Same.
7220         * config/visium/visium.opt: Same.
7221         * config/vms/vms.opt: Same.
7222         * config/vxworks.opt: Same.
7223         * config/xtensa/xtensa.opt: Same.
7224
7225 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7226             Sebastian Pop  <s.pop@samsung.com>
7227
7228         * graphite-scop-detection.c (parameter_index_in_region): Update call to
7229         invariant_in_sese_p_rec.
7230         * graphite-sese-to-poly.c (extract_affine): Same.
7231         * sese.c (invariant_in_sese_p_rec): Pass in an extra
7232         parameter has_vdefs.
7233         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7234         variable depends on virtual definitions in the current region.
7235         * sese.h (invariant_in_sese_p_rec): Update declaration.
7236
7237 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7238             Sebastian Pop  <s.pop@samsung.com>
7239
7240         * graphite-scop-detection.c (build_scops): Do not handle scops
7241         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7242         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7243
7244 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
7245
7246         * config.in: Regenerate.
7247         * configure: Regenerate.
7248         * configure.ac (CHECKING_P): Define.
7249         * system.h: Use CHECKING_P.
7250
7251 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7252
7253         PR ipa/67056
7254         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7255         is negative we don't know the type.
7256         (check_stmt_for_type_change): Skip constructors of non-polymorphic
7257         types as those won't help devirutalization.
7258
7259 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7260
7261         * fold-const.c (operand_equal_p): Add code matching empty constructors.
7262
7263 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
7264
7265         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7266         comments.
7267         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7268         Add comments on sign of the result.
7269         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7270         Recurse on operand #1 instead of operand #0.
7271         <CEIL_MOD_EXPR>: Do not recurse.
7272         <ROUND_MOD_EXPR>: Likewise.
7273
7274 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7275
7276         * cfgrtl.c (pass_free_cfg::execute): Adjust.
7277         * final.c (dbr_sequence_length): Always define.
7278         (shorten_branches): Adjust.
7279         * genattr-common.c (main): Always define DELAY_SLOTS.
7280         * genattr.c (main): Unconditionally declare functions and define
7281         macros related to delay slots.
7282         * genattrtab.c (write_eligible_delay): Adjust.
7283         (main): Always write out delay slot functions.
7284         * opts.c (default_options_table): Adjust.
7285         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7286         (redirect_with_delay_list_safe_p): Likewise.
7287         (fill_simple_delay_slots): Likewise.
7288         (fill_slots_from_thread): Likewise.
7289         (make_return_insns): Likewise.
7290         (dbr_schedule): Likewise.
7291         (rest_of_handle_delay_slots): Likewise.
7292         (pass_delay_slots::gate): Likewise.
7293         * toplev.c (process_options): Likewise.
7294
7295 2015-10-21  Richard Henderson  <rth@redhat.com>
7296
7297         * targhooks.c (default_addr_space_pointer_mode): Remove check
7298         for generic address space.
7299         (default_addr_space_address_mode): Likewise.
7300         (default_addr_space_valid_pointer_mode): Likewise.
7301         (default_addr_space_legitimate_address_p): Likewise.
7302         (default_addr_space_legitimize_address): Likewise.
7303         * target.def (addr_space.pointer_mode): Update documentation
7304         of default behavior.
7305         (addr_space.address_mode): Likewise.
7306         * tm.texi: Update.
7307
7308         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7309         address spaces.
7310
7311 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7312
7313         * builtins.c (fold_builtin_cabs): Delete.
7314         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7315         * match.pd: Add rules previously handled by fold_builtin_cabs.
7316
7317 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7318
7319         * fold-const.h (fold_strip_sign_ops): Delete.
7320         * fold-const.c (fold_strip_sign_ops): Likewise.
7321         (fold_unary_loc, fold_binary_loc): Remove calls to it.
7322         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7323         (fold_builtin_ccos): Delete.
7324         (fold_builtin_pow): Don't call fold_strip_sign_ops.
7325         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7326         Remove fndecl argument.
7327         (fold_builtin_1): Update calls accordingly.  Handle constant
7328         cos, cosh, ccos and ccosh here.
7329
7330 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7331
7332         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7333         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7334         * common.opt (fssa-backprop): New option.
7335         * fold-const.h (negate_mathfn_p): Declare.
7336         * fold-const.c (negate_mathfn_p): Make public.
7337         * timevar.def (TV_TREE_BACKPROP): New.
7338         * tree-pass.h (make_pass_backprop): Declare.
7339         * passes.def (pass_backprop): Add.
7340         * gimple-ssa-backprop.c: New file.
7341
7342 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7343             Sebastian Pop  <s.pop@samsung.com>
7344
7345         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7346         Do not call create_empty_if_region_on_edge when cond_expr is true.
7347         (translate_isl_ast_node_for): Check whether a guard has been generated.
7348
7349 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7350
7351         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7352         (operator=): Removed.
7353         (dr_info): Make alias_set number the last argument with default
7354         value of invalid_alias_set.
7355         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7356         of dr_info.
7357         (rewrite_reductions_out_of_ssa): Iterate only through the
7358         basic blocks which are inside region.
7359         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7360         * sese.h (struct sese_l): Removed assignment operator.
7361         (split_region_for_bb): Removed dead code.
7362
7363 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7364
7365         * graphite-poly.h (struct dr_info): Removed conversion constructor.
7366         (struct scop): Renamed scop::region to scop::scop_info
7367         (scop_set_region): Same.
7368         (SCOP_REGION): Removed
7369         (SCOP_CONTEXT): Removed.
7370         (POLY_SCOP_P): Removed.
7371         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7372         Rename scop->region to scop->scop_info.
7373         (add_parameters_to_ivs_params): Same.
7374         (graphite_regenerate_ast_isl): Same.
7375         * graphite-poly.c (new_scop): Same.
7376         (free_scop): Same.
7377         (print_scop_params): Same.
7378         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7379         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7380         (dot_all_scops_1): Rename scop->region to scop->scop_info.
7381         (scop_detection::nb_pbbs_in_loops): Same.
7382         (find_scop_parameters): Same.
7383         (try_generate_gimple_bb): Same.
7384         (gather_bbs::before_dom_children): Same.
7385         (gather_bbs::after_dom_children): Same.
7386         (build_scops): Same.
7387         * graphite-sese-to-poly.c (build_scop_scattering): Same.
7388         (extract_affine_chrec): Same.
7389         (extract_affine): Same.
7390         (set_scop_parameter_dim): Same.
7391         (build_loop_iteration_domains): Same.
7392         (create_pw_aff_from_tree): Same.
7393         (add_param_constraints): Same.
7394         (build_scop_iteration_domain): Same.
7395         (build_scop_drs): Same.
7396         (analyze_drs_in_stmts): Same.
7397         (insert_out_of_ssa_copy_on_edge): Same.
7398         (rewrite_close_phi_out_of_ssa):Same.
7399         (rewrite_reductions_out_of_ssa):Same.
7400         (handle_scalar_deps_crossing_scop_limits):Same.
7401         (rewrite_cross_bb_scalar_deps):Same.
7402         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7403         (build_poly_scop):Same.
7404         (build_alias_set): Use pointer to dr_info.
7405         * graphite.c (print_graphite_scop_statistics):
7406         (graphite_transform_loops):
7407         * sese.h (struct sese_l): Remove conversion constructor.
7408
7409 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7410
7411         PR middle-end/67966
7412         * tree.c (verify_type): Verify that TYPE_MODE match
7413         between TYPE_CANONICAL and type.
7414         * expr.c (store_expr_with_bounds): Revert my previous change.
7415         * expmed.c (store_bit_field_1): Revert prevoius change.
7416         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7417         to match for all types.
7418
7419 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
7420
7421         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7422         nesting.
7423
7424 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7425
7426         * doc/tm.texi: Regenerated.
7427         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7428         * stor-layout.c (layout_type): Use mode to get vector mask size.
7429         * target.def (get_mask_mode): New.
7430         * targhooks.c (default_get_mask_mode): New.
7431         * targhooks.h (default_get_mask_mode): New.
7432         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7433         for boolean vector.
7434         * tree.c (MAX_BOOL_CACHED_PREC): New.
7435         (nonstandard_boolean_type_cache): New.
7436         (build_nonstandard_boolean_type): New.
7437         (make_vector_type): Vector mask has no canonical type.
7438         (build_truth_vector_type): New.
7439         (build_same_sized_truth_vector_type): New.
7440         (truth_type_for): Support vector masks.
7441         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7442         (build_truth_vector_type): New.
7443         (build_same_sized_truth_vector_type): New.
7444         (build_nonstandard_boolean_type): New.
7445         * tree-cfg.c (verify_gimple_comparison) Require boolean
7446         vector type for vector comparison.
7447         (verify_gimple_assign_ternary): Likewise.
7448         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7449         condition operand.
7450         * tree-vect-stmts.c (vectorizable_condition): Use boolean
7451         vector type for vector comparison.
7452         * tree-vect-generic.c (elem_op_func): Add new operand to hold
7453         vector type.
7454         (do_unop): Adjust to modified function type.
7455         (do_binop): Likewise.
7456         (do_plus_minus): Likewise.
7457         (do_negate); Likewise.
7458         (expand_vector_piecewise): Likewise.
7459         (do_cond): Likewise.
7460         (do_compare): Use comparison instead of condition.
7461         (expand_vector_divmod): Use boolean vector type for comparison.
7462         (expand_vector_operations_1): Skip scalar mask operations.
7463
7464 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7465
7466         * omp-low.c (simd_clone_create): Set in_other_partition
7467         for created clones.
7468
7469 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7470
7471         * doc/extend.exp (Local Register Variables): Rewrite.
7472
7473 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7474
7475         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7476         and x*x in cases where the operands are sign ops.  Extend these
7477         rules to handle copysign as a sign op (including for cos, cosh
7478         and pow, which already treated negate and abs as sign ops).
7479
7480 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
7481
7482         PR target/68018
7483         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7484         for 64-bit MS_ABI targets also when default incoming stack boundary
7485         is overriden.
7486
7487 2015-10-21  Richard Biener  <rguenther@suse.de>
7488
7489         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7490         cond stmts, enhanced and split out from ...
7491         (vn_phi_eq): ... here.
7492
7493 2015-10-21  Richard Biener  <rguenther@suse.de>
7494
7495         PR middle-end/68031
7496         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7497         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7498         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
7499         make sure they are not registered for update.
7500
7501 2015-10-21  Richard Biener  <rguenther@suse.de>
7502
7503         PR tree-optimization/68026
7504         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7505         unsigned VARYING values.
7506
7507 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
7508
7509         * asan.c (asan_emit_stack_protection): Don't pass local stack to
7510         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7511         NULL and use local stack than.
7512         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7513         in addition to __asan_init.
7514         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7515         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7516         * asan.h (asan_intercepted_p): Handle new string builtins.
7517         * ubsan.c (ubsan_use_new_style_p): New function.
7518         (ubsan_instrument_float_cast): If location is unknown, assign
7519         input_location to loc. Propagate loc to ubsan_create_data if
7520         ubsan_use_new_style_p returned true.
7521
7522 2015-10-21  Jeff Law  <law@redhat.com>
7523
7524         * Makefile.in (OBJS): Remove sched-vis.c
7525         * sched-vis.c: Removed.  Code moved into...
7526         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
7527         * rtl.h: Remove prototypes for functions now living in print-rtl.c
7528         * print-rtl.h Add prototypes for new functions in print-rtl.c.
7529         * auto-inc-dec.c: Include print-rtl.h
7530         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7531         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7532
7533         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7534         ATTRIBUTE_UNUSED.
7535
7536 2015-10-21  Richard Biener  <rguenther@suse.de>
7537             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7538
7539         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7540         to match.pd.
7541         Move (a * (1 << b)) is (a << b) to match.pd.
7542         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7543         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7544         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7545
7546         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7547         New simplifier.
7548         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7549         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7550         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7551         : New simplifier.
7552         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7553         New simplifier.
7554         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7555
7556 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
7557             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7558             Alan Modra  <amodra@gmail.com>
7559
7560         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7561         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7562         (LINK_SPEC): Add %(link_secure_plt).
7563         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7564         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7565
7566 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
7567             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7568
7569         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7570         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7571
7572 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7573
7574         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7575         New function.
7576         (fusion_load_store): Use it.
7577         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7578         ldp and stp in VD modes.
7579         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7580         (store_pair<mode>, VD): Likewise.
7581
7582 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7583
7584         PR rtl-optimization/67609
7585         * lra-splill.c (lra_final_code_change): Don't remove all
7586         sub-registers.
7587
7588 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7589
7590         * simplify-rtx.c (simplify_binary_operation): If either operand was
7591         a constant pool reference use them if all other simplifications failed.
7592
7593 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7594
7595         * config/aarch64/aarch64.md
7596         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7597         * config/aarch64/aarch64-simd.md
7598         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7599         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7600         (aarch64_fpconst_pow_of_2): New function.
7601         (aarch64_vec_fpconst_pow_of_2): Likewise.
7602         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7603         prototype.
7604         (aarch64_vec_fpconst_pow_of_2): Likewise.
7605         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7606         (aarch64_fp_vec_pow2): Likewise.
7607
7608 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
7609
7610         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7611         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
7612         * config/alpha/alpha.c (alpha_function_arg_advance): Update
7613         ALPHA_ARG_SIZE usage.
7614         (alpha_arg_partial_bytes): Ditto.
7615
7616 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7617
7618         PR target/66810
7619         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7620         error_mark_node decls.
7621
7622 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7623
7624         PR target/67963
7625         PR target/67985
7626         * common/config/i386/i386-common.c (ix86_handle_option): Remove
7627         OPT_miamcu handling.
7628         * config/i386/i386.c (PTA_NO_80387): New macro.
7629         (processor_alias_table): Add PTA_NO_80387 to lakemont.
7630         (ix86_option_override_internal): Update MASK_80387 from
7631         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
7632         SSE math only if 80387 is supported.  Don't change
7633         MASK_FLOAT_RETURNS.
7634         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7635         80387 is supported.
7636         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7637         if TARGET_80387 is true and TARGET_IAMCU is false.
7638         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7639         is true and TARGET_IAMCU_P is false.
7640
7641 2015-10-20  Richard Biener  <rguenther@suse.de>
7642
7643         PR tree-optimization/68017
7644         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7645
7646 2015-10-20  Martin Liska  <mliska@suse.cz>
7647
7648         * cgraphclones.c (cgraph_node::create_virtual_clone):
7649         Verify cgraph_node.local.versionable instead of calling
7650         tree_versionable_function_p.
7651         * ipa-cp.c (determine_versionability): Save the information
7652         to ipa_node_params summary.
7653         (ipcp_versionable_function_p): Use it.
7654         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7655         (ipcp_generate_summary): Do not compute cgraph_node
7656         versionability.
7657         * ipa-inline-analysis.c (inline_generate_summary): Compute
7658         versionability for all cgraph nodes.
7659         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7660         ipa_node_params::versionability.
7661         * ipa-prop.h (struct ipa_node_params): Declare it.
7662
7663 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7664
7665         PR other/67868
7666         * varasm.c (assemble_variable): Move special vtv handling to..
7667         (handle_vtv_comdat_sections): .. here. New function.
7668         (output_object_block): Handle vtv sections.
7669
7670 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7671
7672         PR target/66912
7673         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7674
7675 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
7676
7677         * doc/extend.texi: Update documentation WRT inline functions.
7678
7679 2015-10-20  Alan Modra  <amodra@gmail.com>
7680
7681         PR go/66870
7682         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7683         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7684         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7685
7686 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
7687
7688         PR rtl-optimization/66790
7689         * df.h (DF_MIR): New macro.
7690         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7691         (DF_MIR_INFO_BB): New macro.
7692         (DF_MIR_IN, DF_MIR_OUT): New macros.
7693         (struct df_mir_bb_info): New.
7694         (df_mir): New macro.
7695         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7696         declarations.
7697         (df_mir_get_bb_info): New.
7698         * df-problems.c (struct df_mir_problem_data): New.
7699         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7700         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7701         df_mir_confluence_0, df_mir_confluence_n,
7702         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7703         df_mir_bottom_dump, df_mir_verify_solution_start,
7704         df_mir_verify_solution_end): New.
7705         (problem_MIR): New.
7706         (df_mir_add_problem, df_mir_simulate_one_insn): New.
7707         * timevar.def (TV_DF_MIR): New.
7708         * ree.c: Include bitmap.h
7709         (add_removable_extension): Add an INIT_REGS parameter.  Use it
7710         to skip zero-extensions that may get an uninitialized register.
7711         (find_removable_extensions): Compute must-initialized registers
7712         using the MIR dataflow problem. Update the call to
7713         add_removable_extension.
7714         (find_and_remove_re): Call df_mir_add_problem.
7715
7716 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
7717
7718         * common/config/mn10300/mn10300-common.c
7719         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7720         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7721
7722 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
7723
7724         * doc/extend.texi (Explicit Register Variables): Simplify and
7725         avoid unnecessary and confusion abbreviations.  Update cross
7726         references.
7727         doc/implement-c.tex: Update cross reference.
7728
7729 2015-10-19  Jeff Law  <law@redhat.com>
7730
7731         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7732         that create irreducible loops unless the path elimiantes a multiway
7733         branch.
7734
7735 2015-10-19  Richard Biener  <rguenther@suse.de>
7736
7737         PR tree-optimization/67975
7738         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7739         * tree-cfg.c (extract_true_false_controlled_edges): Split out
7740         core worker from ...
7741         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7742         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7743         instead of block number for PHIs with two or one args.
7744         (vn_phi_eq): Compare edge predicates of PHIs that are in different
7745         blocks.
7746
7747 2015-10-19  Richard Biener  <rguenther@suse.de>
7748
7749         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7750         (gimple_stmt_nonnegative_warnv_p): Use it.
7751         * match.pd (CPROJ): New operator list.
7752         (cproj (complex ...)): Move simplifications from ...
7753         * builtins.c (fold_builtin_cproj): ... here.
7754
7755 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7756
7757         * config/i386/i386.c (ix86_expand_vector_move): Use
7758         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7759         alignment.
7760
7761 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7762
7763         * doc/invoke.texi: Replace @optindex with @opindex.
7764
7765 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7766
7767         PR target/67995
7768         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7769         arch= is set,  clear all bits in x_ix86_isa_flags, except for
7770         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7771
7772 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
7773
7774         PR middle-end/68002
7775         * common.opt (fkeep-static-functions): New option.
7776         * doc/invoke.texi: Document it.
7777         * cgraphunit.c (cgraph_node::finalize_function): Use it.
7778
7779 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7780
7781         * sched-int.h (struct autopref_multipass_data_): Remove offset
7782         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
7783         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7784         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
7785         (autopref_rank_data): New function.
7786         (autopref_rank_for_schedule): Use it.
7787         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7788
7789 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
7790
7791         PR other/65800
7792         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7793
7794 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7795
7796         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7797         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
7798         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7799         (STANDARD_STARTFILE_PREFIX_1): New.
7800         (STANDARD_STARTFILE_PREFIX_2): New.
7801
7802 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7803
7804         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7805         (darwin_driver_init): Note a version-min when provided on the c/l.
7806         * config/darwin.h (%darwin_minversion): Remove.
7807         * config/i386/darwin.h: Likewise.
7808         * config/rs6000/darwin.h: Likewise.
7809         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7810         rather than an arbitrary constant.
7811
7812 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7813
7814         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7815         PPC, detect conflicts between -arch and multilib settings.  Detect
7816         and warn about conflicts between multiple -arch definitions.
7817
7818 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7819
7820         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7821
7822 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7823
7824         * lra-constraints.c (add_next_usage_insn): Change argument type
7825         from rtx to rtx_insn *.
7826
7827 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
7828
7829         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7830         for Lakemont.
7831
7832 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
7833
7834         * config/tilepro/gen-mul-tables.cc: Adjust include files.
7835         * config/tilegx/mul-tables.c: Regenerate.
7836         * config/tilepro/mul-tables.c: Regenerate.
7837
7838         * config/tilegx/tilegx-c.c: Adjust include files.
7839         * config/tilegx/tilegx.c: Likewise.
7840         * config/tilepro/tilepro-c.c: Likewise.
7841         * config/tilepro/tilepro.c: Likewise.
7842         * config/aarch64/aarch64-builtins.c: Likewise.
7843         * config/aarch64/aarch64.c: Likewise.
7844         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7845         * config/alpha/alpha.c: Likewise.
7846         * config/arc/arc.c: Likewise.
7847         * config/arm/aarch-common.c: Likewise.
7848         * config/arm/arm-builtins.c: Likewise.
7849         * config/arm/arm-c.c: Likewise.
7850         * config/arm/arm.c: Likewise.
7851         * config/avr/avr-c.c: Likewise.
7852         * config/avr/avr-devices.c: Likewise.
7853         * config/avr/avr-log.c: Likewise.
7854         * config/avr/avr.c: Likewise.
7855         * config/bfin/bfin.c: Likewise.
7856         * config/c6x/c6x.c: Likewise.
7857         * config/cr16/cr16.c: Likewise.
7858         * config/cris/cris.c: Likewise.
7859         * config/darwin-c.c: Likewise.
7860         * config/darwin-driver.c: Likewise.
7861         * config/darwin.c: Likewise.
7862         * config/default-c.c: Likewise.
7863         * config/epiphany/epiphany.c: Likewise.
7864         * config/epiphany/mode-switch-use.c: Likewise.
7865         * config/epiphany/resolve-sw-modes.c: Likewise.
7866         * config/fr30/fr30.c: Likewise.
7867         * config/frv/frv.c: Likewise.
7868         * config/ft32/ft32.c: Likewise.
7869         * config/glibc-c.c: Likewise.
7870         * config/h8300/h8300.c: Likewise.
7871         * config/i386/host-cygwin.c: Likewise.
7872         * config/i386/host-mingw32.c: Likewise.
7873         * config/i386/i386-c.c: Likewise.
7874         * config/i386/i386.c: Likewise.
7875         * config/i386/msformat-c.c: Likewise.
7876         * config/i386/winnt-cxx.c: Likewise.
7877         * config/i386/winnt-stubs.c: Likewise.
7878         * config/i386/winnt.c: Likewise.
7879         * config/ia64/ia64-c.c: Likewise.
7880         * config/ia64/ia64.c: Likewise.
7881         * config/iq2000/iq2000.c: Likewise.
7882         * config/lm32/lm32.c: Likewise.
7883         * config/m32c/m32c-pragma.c: Likewise.
7884         * config/m32c/m32c.c: Likewise.
7885         * config/m32r/m32r.c: Likewise.
7886         * config/mcore/mcore.c: Likewise.
7887         * config/mep/mep-pragma.c: Likewise.
7888         * config/mep/mep.c: Likewise.
7889         * config/microblaze/microblaze-c.c: Likewise.
7890         * config/microblaze/microblaze.c: Likewise.
7891         * config/mips/mips-tables.opt
7892         * config/mips/mips.c: Likewise.
7893         * config/mmix/mmix.c: Likewise.
7894         * config/mn10300/mn10300.c: Likewise.
7895         * config/moxie/moxie.c: Likewise.
7896         * config/msp430/msp430-c.c: Likewise.
7897         * config/msp430/msp430.c: Likewise.
7898         * config/nds32/nds32-cost.c: Likewise.
7899         * config/nds32/nds32-fp-as-gp.c: Likewise.
7900         * config/nds32/nds32-intrinsic.c: Likewise.
7901         * config/nds32/nds32-isr.c: Likewise.
7902         * config/nds32/nds32-md-auxiliary.c: Likewise.
7903         * config/nds32/nds32-memory-manipulation.c: Likewise.
7904         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7905         * config/nds32/nds32-predicates.c: Likewise.
7906         * config/nds32/nds32.c: Likewise.
7907         * config/nios2/nios2.c: Likewise.
7908         * config/nvptx/mkoffload.c: Likewise.
7909         * config/nvptx/nvptx.c: Likewise.
7910         * config/pa/pa.c: Likewise.
7911         * config/pdp11/pdp11.c: Likewise.
7912         * config/rl78/rl78-c.c: Likewise.
7913         * config/rl78/rl78.c: Likewise.
7914         * config/rs6000/host-darwin.c: Likewise.
7915         * config/rs6000/rs6000-c.c: Likewise.
7916         * config/rs6000/rs6000-linux.c: Likewise.
7917         * config/rs6000/rs6000.c: Likewise.
7918         * config/rx/rx.c: Likewise.
7919         * config/s390/s390-c.c: Likewise.
7920         * config/s390/s390.c: Likewise.
7921         * config/sh/sh-c.c: Likewise.
7922         * config/sh/sh-mem.cc: Likewise.
7923         * config/sh/sh.c: Likewise.
7924         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7925         * config/sh/sh_treg_combine.cc: Likewise.
7926         * config/sol2-c.c: Likewise.
7927         * config/sol2-cxx.c: Likewise.
7928         * config/sol2-stubs.c: Likewise.
7929         * config/sol2.c: Likewise.
7930         * config/sparc/sparc-c.c: Likewise.
7931         * config/sparc/sparc.c: Likewise.
7932         * config/spu/spu-c.c: Likewise.
7933         * config/spu/spu.c: Likewise.
7934         * config/stormy16/stormy16.c: Likewise.
7935         * config/v850/v850-c.c: Likewise.
7936         * config/v850/v850.c: Likewise.
7937         * config/vax/vax.c: Likewise.
7938         * config/visium/visium.c: Likewise.
7939         * config/vms/vms-c.c: Likewise.
7940         * config/vms/vms.c: Likewise.
7941         * config/vxworks.c: Likewise.
7942         * config/winnt-c.c: Likewise.
7943         * config/xtensa/xtensa.c: Likewise.
7944
7945 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7946
7947         PR target/67745
7948         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7949         (FUNCTION_BOUNDARY_P): New macro:
7950         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7951         New hook.
7952         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7953         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7954         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7955         * function.c (allocate_struct_function): Call
7956         relayout_function hook.
7957         * passes.c (rest_of_decl_compilation): Likewise.
7958
7959 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7960
7961         PR target/67745
7962         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7963         * config/arm/arm.c (arm_option_override_internal): Call
7964         arm_override_options_after_change_1.
7965         (arm_override_options_after_change): New function.
7966         (arm_override_options_after_change_1): Likewise.
7967         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7968
7969 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7970
7971         Revert:
7972         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7973         empty constructors.
7974
7975 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7976
7977         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7978         argument is an ADDR_EXPR.
7979
7980 2015-10-16  Richard Biener  <rguenther@suse.de>
7981
7982         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7983         and get rid of force_gimple_operand_gsi.
7984         (gimple_fold_builtin_memory_chk): Likewise.
7985         (gimple_fold_builtin_stxcpy_chk): Likewise.
7986         (rewrite_to_defined_overflow): Likewise.
7987         (gimple_convert_to_ptrofftype): New function.
7988         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7989
7990 2015-10-16  Richard Biener  <rguenther@suse.de>
7991
7992         * tree-nested.h (build_addr): Adjust prototype.
7993         * tree-nested.c (build_addr): Remove context argument and use
7994         mark_addressable.
7995         (get_static_chain): Adjust calls to build_addr.
7996         (convert_nl_goto_reference): Likewise.
7997         (convert_tramp_reference_op): Likewise.
7998         (finalize_nesting_tree_1): Likewise.
7999         * value-prof.c (gimple_ic): Likewise.
8000         * gimple-low.c (lower_builtin_setjmp): Likewise.
8001         * tree-parloops.c (take_address_of): Likewise.
8002         (create_call_for_reduction_1): Likewise.
8003         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8004         (gimple_gen_ic_func_profiler): Likewise.
8005
8006 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8007
8008         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8009         empty constructors.
8010
8011 2015-10-16  Michael Collison  <michael.collison@linaro.org>
8012             Andrew Pinski <andrew.pinski@caviumnetworks.com>
8013
8014         * match.pd ((x < y) && (x < z) -> x < min (y,z),
8015         (x > y) and (x > z) -> x > max (y,z))
8016
8017 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
8018             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8019
8020         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8021         (DYNAMIC_LINKER): Renamed to ...
8022         (GLIBC_DYNAMIC_LINKER): This.
8023         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8024
8025 2015-10-15  Marek Polacek  <polacek@redhat.com>
8026
8027         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8028         gimple_call_builtin instead of is_gimple_call.
8029
8030 2015-10-15  Richard Biener  <rguenther@suse.de>
8031
8032         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8033
8034 2015-10-15  Richard Biener  <rguenther@suse.de>
8035
8036         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8037         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8038         * tree-vect-loop.c (get_initial_def_for_induction): Drop
8039         use of force_gimple_operand in favor of gimple_build.
8040         Use vect_get_new_ssa_name.
8041         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8042         (vectorizable_mask_load_store): Likewise.
8043         (vectorizable_call): Likewise.
8044         (vectorizable_store): Likewise.
8045         (vectorizable_load): Likewise.
8046         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8047
8048 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
8049
8050         PR tree-optimization/67945
8051         * tree-pass.h (PROP_gimple_opt_math): New property flag.
8052         * generic-match-head.c (canonicalize_math_p): New function.
8053         * gimple-match-head.c: Include tree-pass.h.
8054         (canonicalize_math_p): New function.
8055         * match.pd: Group math built-in rules into simplifications
8056         and canonicalizations.  Guard the latter with canonicalize_math_p.
8057         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8058         PROP_gimple_opt_math property.
8059
8060 2015-10-15  Marek Polacek  <polacek@redhat.com>
8061
8062         PR tree-optimization/67953
8063         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8064
8065 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
8066
8067         * config.gcc: Recognize "." in architecture base name for AArch64.
8068
8069 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8070
8071         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8072         ROUND_UP macro.
8073         * config/mips/mips.c (mips_setup_incoming_varargs): Use
8074         ROUND_DOWN to calculate off.
8075         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8076         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8077         rounded_size.
8078
8079 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8080
8081         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8082
8083 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
8084             Torvald Riegel  <triegel@redhat.com>
8085
8086         PR target/67281
8087         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8088         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8089         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8090         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8091         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
8092         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8093         trechkpt, treclaim, tsr, ttest): New define_expands.
8094         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8095         __TM_FENCE__ for htm.
8096         * doc/extend.texi: Update documentation for htm builtins.
8097
8098 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8099
8100         PR target/67967
8101         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8102         REG_CFA_EXPRESSION to aligned SSE stores.
8103
8104 2015-10-14  Jeff Law  <law@redhat.com>
8105
8106         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8107         num_threaded_edges for successful FSM threads too.
8108
8109 2015-10-14  Richard Biener  <rguenther@suse.de>
8110
8111         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8112         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
8113         (vect_get_vec_def_for_operand): Remove unused parameter.
8114         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8115         (vect_create_epilog_for_reduction): Likewise.
8116         (vectorizable_reduction): Likewise.
8117         (vectorizable_live_operation): Likewise.
8118         * tree-vect-patterns.c (type_conversion_p): Likewise.
8119         (vect_recog_vector_vector_shift_pattern): Likewise.
8120         (check_bool_pattern): Likewise.
8121         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8122         (vect_analyze_slp_cost_1): Likewise.
8123         * tree-vect-stmts.c (process_use): Likewise.
8124         (vect_get_vec_def_for_operand): Do not handle reductions.
8125         (vect_get_vec_defs): Adjust.
8126         (vectorizable_mask_load_store): Likewise.
8127         (vectorizable_call): Likewise.
8128         (vectorizable_simd_clone_call): Likewise.
8129         (vect_get_loop_based_defs): Likewise.
8130         (vectorizable_conversion): Likewise.
8131         (vectorizable_assignment): Likewise.
8132         (vectorizable_shift): Likewise.
8133         (vectorizable_operation): Likewise.
8134         (vectorizable_store): Likewise.
8135         (vectorizable_load): Likewise.
8136         (vect_is_simple_cond): Likewise.
8137         (vectorizable_condition): Likewise.
8138         (vect_is_simple_use): Remove unused parameters.
8139         (vect_is_simple_use_1): Adjust and rename.
8140
8141 2015-10-14  Richard Biener  <rguenther@suse.de>
8142
8143         PR tree-optimization/67915
8144         * match.pd: Handle comparisons of addresses of STRING_CSTs.
8145         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8146         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8147         stmt folding in favor of GIMPLE one.
8148
8149 2015-10-14  Marek Polacek  <polacek@redhat.com>
8150
8151         PR tree-optimization/67815
8152         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8153         (reassociate_bb): Call it.
8154
8155 2015-10-14  Richard Biener  <rguenther@suse.de>
8156
8157         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8158         Reset info at start.
8159         (vect_analyze_group_access_1): Add debug print.
8160         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8161         (vect_compute_single_scalar_iteration_cost): ... to this.
8162         (vect_analyze_loop_2): Adjust.
8163         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8164         * tree-vectorizer.h: ... here.
8165         (add_stmt_info_to_vec): Remove.
8166         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8167
8168 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8169
8170         * targhooks.c (default_target_option_pragma_parse): Do not warn if
8171         called on behalf of "#pragma GCC pop_options".
8172
8173 2015-10-14  Tom de Vries  <tom@codesourcery.com>
8174
8175         * cfganal.c (verify_no_unreachable_blocks): New function.
8176         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8177         verify_no_unreachable_blocks.
8178         cfganal.h (verify_no_unreachable_blocks): Declare.
8179
8180 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
8181
8182         * common.opt: Add flag_checking.
8183         * system.h (CHECKING_P): Define.
8184
8185 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8186             Aldy Hernandez  <aldyh@redhat.com>
8187             Ilya Verbin  <ilya.verbin@intel.com>
8188
8189         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8190         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8191         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8192         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8193         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8194         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8195         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8196         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8197         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8198         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8199         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8200         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8201         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8202         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8203         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8204         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8205         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8206         (struct cgraph_simd_clone_arg): Adjust comment.
8207         * coretypes.h (struct gomp_ordered): New forward decl.
8208         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8209         set critical clauses to it.
8210         (gimple_build_omp_ordered): Return gomp_ordered * instead of
8211         gimple *.  Add CLAUSES argument, set ordered clauses to it.
8212         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8213         GIMPLE_OMP_ORDERED.
8214         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8215         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8216         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
8217         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8218         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
8219         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8220         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
8221         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8222         renumber
8223         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8224         (gomp_critical): Add clauses field.
8225         (gomp_ordered): New struct.
8226         (is_a_helper <gomp_ordered *>::test): New inline.
8227         (gimple_build_omp_critical): Add CLAUSES argument.
8228         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
8229         instead of gimple *.
8230         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8231         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8232         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8233         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8234         inline functions.
8235         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8236         (dump_gimple_omp_target): Handle enter data and exit data.
8237         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8238         (dump_gimple_omp_critical): Print clauses.
8239         (dump_gimple_omp_ordered): New function.
8240         (dump_gimple_omp_task): Handle taskloop.
8241         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8242         GIMPLE_OMP_ORDERED.
8243         * gimple-walk.c (walk_gimple_op): Walk clauses on
8244         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8245         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8246         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8247         (struct gimplify_omp_ctx): Add loop_iter_var,
8248         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8249         and target_firstprivatize_array_bases fields.
8250         (delete_omp_context): Release loop_iter_var.
8251         (gimplify_bind_expr): Handle ORT_NONE.
8252         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8253         ORT_COMBINED_TARGET.
8254         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8255         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8256         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
8257         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
8258         ctx->target_map_scalars_firstprivate.
8259         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
8260         data sharing clauses.  For data sharing clause with VLA decl
8261         on omp target/target data don't add firstprivate for the pointer.
8262         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8263         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8264         the addition of ORT_COMBINED_TARGET.
8265         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
8266         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
8267         pointers as zero length array sections and
8268         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8269         data sharing.
8270         (omp_check_private): Handle omp_member_access_dummy_var vars.
8271         (find_decl_expr): New function.
8272         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
8273         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8274         Handle OMP_CLAUSE_GANG separately.  Handle
8275         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8276         clauses.  Diagnose linear clause on combined
8277         distribute {, parallel for} simd construct, unless it is the loop
8278         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8279         Handle map clauses with COMPONENT_REF.  Initialize
8280         ctx->target_map_scalars_firstprivate,
8281         ctx->target_firstprivatize_array_bases and
8282         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
8283         linear clause even to target region if combined.  Remove
8284         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8285         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
8286         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8287         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
8288         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8289         For linear clause on worksharing loop combined with parallel add
8290         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
8291         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
8292         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
8293         taskloop if needed.
8294         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8295         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8296         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8297         GOMP_MAP_POINTER.
8298         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
8299         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8300         in target body.  Handle removal of struct mapping if struct is not
8301         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
8302         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
8303         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
8304         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8305         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8306         clause appear together.  Handle
8307         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
8308         clause if it has map-type-modifier always.  Handle
8309         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8310         clauses.
8311         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8312         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8313         callers.
8314         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
8315         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
8316         iterators in doacross loops.
8317         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8318         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
8319         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
8320         for the addition of ORT_COMBINED_TARGET.
8321         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8322         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
8323         and OMP_TARGET_EXIT_DATA.
8324         (gimplify_omp_ordered): New function.
8325         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8326         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
8327         Gimplify clauses on OMP_CRITICAL.
8328         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8329         expand_GOMP_SIMD_ORDERED_END): New functions.
8330         * internal-fn.def (GOMP_SIMD_ORDERED_START,
8331         GOMP_SIMD_ORDERED_END): New internal functions.
8332         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8333         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8334         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8335         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8336         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8337         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8338         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8339         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8340         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8341         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8342         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8343         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8344         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8345         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8346         adjust type.
8347         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8348         GOMP_target_data_41, adjust type.
8349         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8350         GOMP_target_update_41, adjust type.
8351         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8352         field.
8353         (struct omp_for_data): Add ordered and simd_schedule fields.
8354         (omp_member_access_dummy_var, unshare_and_remap_1,
8355         unshare_and_remap, is_taskloop_ctx): New functions.
8356         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8357         (extract_omp_for_data): Handle taskloops and doacross loops
8358         and simd schedule modifier.
8359         (omp_adjust_chunk_size): New function.
8360         (get_ws_args_for): Use it.
8361         (lookup_sfield): Change first argument to splay_tree_key,
8362         add overload with first argument tree.
8363         (maybe_lookup_field): Likewise.
8364         (use_pointer_for_field): Handle omp_member_access_dummy_var.
8365         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8366         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8367         (build_outer_var_ref): Add LASTPRIVATE argument, handle
8368         taskloops and omp_member_access_dummy_var vars.
8369         (build_sender_ref): Change first argument to splay_tree_key,
8370         add overload with first argument tree.
8371         (install_var_field): For mask & 8 use &DECL_UID as key instead
8372         of the tree itself.
8373         (fixup_child_record_type): Const qualify *.omp_data_i.
8374         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8375         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8376         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8377         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8378         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8379         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8380         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8381         kinds.
8382         (add_taskreg_looptemp_clauses): New function.
8383         (scan_omp_parallel): Use it.
8384         (scan_omp_task): Likewise.
8385         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8386         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8387         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8388         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
8389         sandwiched taskloop constructs.  Type check
8390         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
8391         region.  Diagnose depend(source) or depend(sink:...) on
8392         target constructs or task/taskloop.
8393         (handle_simd_reference): Use get_name.
8394         (lower_rec_input_clauses): Likewise.  Ignore all
8395         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8396         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
8397         before passing it to omp_clause_{default,copy}_ctor.  Handle
8398         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
8399         lastprivate_firstprivate flag for linear that needs copyin and
8400         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8401         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8402         on taskloop lookup decl in outer context.  Pass true to
8403         build_outer_var_ref lastprivate argument.  Handle
8404         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8405         outside of outer taskloop for.
8406         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8407         OMP_CLAUSE_DECL.
8408         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8409         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
8410         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
8411         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
8412         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8413         abstract origin.  Handle omp_member_access_dummy_var vars.
8414         (expand_parallel_call): Use expand_omp_build_assign.
8415         (expand_task_call): Handle taskloop construct expansion.  Add
8416         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
8417         integers.  Add priority argument to GOMP_task* calls.  Or in
8418         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8419         GOMP_task call.
8420         (expand_omp_build_assign): Add prototype.  Add AFTER
8421         argument, if true emit statements after *GSI_P and continue linking.
8422         (expand_omp_taskreg): Adjust expand_task_call caller.
8423         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8424         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8425         zero_iter2_bb and first_zero_iter2 arguments, handle computation
8426         of counts even for ordered loops.
8427         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8428         (expand_omp_ordered_source, expand_omp_ordered_sink,
8429         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8430         functions.
8431         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
8432         clauses on worksharing loop.  Handle DOACROSS loop expansion.
8433         (expand_omp_for_static_nochunk): Handle linear clauses on
8434         worksharing loop.  Adjust expand_omp_for_init_counts
8435         callers.
8436         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
8437         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
8438         expand_omp_for_init_counts callers.
8439         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8440         functions.
8441         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8442         Handle doacross loops.
8443         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8444         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
8445         GOMP_target_{41,update_41,enter_exit_data} libcalls.
8446         (expand_omp): Don't expand ordered depend constructs here, record
8447         ord_stmt instead for later expand_omp_for_generic.
8448         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8449         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8450         clause as stand-alone directive.
8451         (lower_omp_ordered_clauses): New function.
8452         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8453         don't lower anything.
8454         (lower_omp_for_lastprivate): Use last _looptemp_ clause
8455         on taskloop for comparison.
8456         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
8457         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8458         expansion for linear adjustments.
8459         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8460         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8461         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
8462         to tree * pointing to the stmt's clauses.
8463         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8464         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8465         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8466         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8467         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8468         clauses.  Always use short kind and 8-bit align shift.
8469         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8470         (struct lower_omp_regimplify_operands_data): New type.
8471         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8472         New functions.
8473         (lower_omp_1): Use lower_omp_regimplify_operands instead of
8474         gimple_regimplify_operands.
8475         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8476         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8477         clause as stand-alone directive.
8478         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8479         (simd_clone_mangle): Mangle the various linear kinds
8480         per the new ABI.
8481         (simd_clone_adjust_argument_types): Handle
8482         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8483         (simd_clone_init_simd_arrays): Don't do anything for uval.
8484         (simd_clone_adjust): Handle
8485         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8486         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8487         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8488         * omp-low.h (omp_member_access_dummy_var): New prototype.
8489         * passes.def (pass_simduid_cleanup): Schedule another copy of the
8490         pass after all optimizations.
8491         * tree.c (omp_clause_code_name): Add entries for
8492         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8493         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8494         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
8495         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8496         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8497         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
8498         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8499         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8500         clauses.
8501         * tree-core.h (enum omp_clause_linear_kind): New.
8502         (struct tree_omp_clause): Change type of map_kind
8503         from unsigned char to unsigned int.  Add subcode.if_modifier
8504         and subcode.linear_kind fields.
8505         (enum omp_clause_code): Add
8506         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8507         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8508         (OMP_CLAUSE_REDUCTION): Document
8509         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8510         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8511         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8512         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
8513         operand.
8514         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
8515         operand.
8516         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8517         codes.
8518         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8519         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8520         char.
8521         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8522         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8523         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8524         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8525         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8526         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8527         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8528         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8529         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8530         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8531         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8532         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8533         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8534         * tree-inline.c (remap_gimple_stmt): Handle clauses on
8535         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
8536         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8537         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8538         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8539         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8540         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8541         (convert_local_omp_clauses): Likewise.
8542         * tree-pretty-print.c (dump_omp_clause): Handle
8543         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8544         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8545         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8546         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8547         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
8548         GOMP_MAP_FORCE_DEALLOC.  Handle
8549         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8550         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8551         and clauses on OMP_ORDERED and OMP_CRITICAL.
8552         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8553         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8554         (vectorize_loops): Adjust comments.
8555         (pass_simduid_cleanup::execute): Likewise.
8556         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8557         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8558         * wide-int.h (wi::gcd): New.
8559
8560 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8561
8562         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8563         (ix86_function_arg_advance): Ditto.
8564         (ix86_function_arg): Ditto.
8565         (ix86_gimplify_va_arg): Ditto.
8566         (ix86_class_max_nregs): Ditto.
8567         (inline_memory_move_cost): Ditto.
8568         (ix86_set_reg_reg_cost): Ditto.
8569         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8570
8571 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
8572
8573         PR middle-end/67912
8574         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8575
8576 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8577
8578         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8579         ROUND_UP macro and UNITS_PER_WORD * 2.
8580         * config/sparc/sparc.c (sparc_compute_frame_size):
8581         Use ROUND_UP and ROUND_DOWN macros where applicable.
8582         (function_arg_record_value, function_arg_record_value_1)
8583         (function_arg_record_value_1): Ditto.
8584         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8585         alignment to double-word.
8586         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8587         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8588         rounded_size.
8589
8590 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
8591
8592         * rtl.h (print_insn): Fix prototype.
8593
8594 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8595
8596         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8597         -1.  Add assert that returned entry matches phi argument.
8598         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8599         free_stmt_vec_info_vec ...
8600         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
8601         with -1.
8602
8603 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
8604
8605         PR tree-optimization/67909, 67947
8606         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8607         really skip the inner loop.
8608
8609 2015-10-13  Jeff Law  <law@redhat.com>
8610
8611         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8612         Allow single block jump threading paths.
8613
8614 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8615
8616         PR tree-optimization/67476
8617         * doc/invoke.texi (@item parloops-schedule): New item.
8618         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8619         * tree-parloops.c: Include params-enum.h.
8620         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8621
8622 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8623
8624         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8625         * params-enum.h: New file.
8626         * opts.c (handle_param): Handle case that param arg is a string.
8627         * params-list.h: Handle DEFPARAMENUM5 in params.def.
8628         * params.c (find_param): New function, factored out of ...
8629         (set_param_value): ... here.
8630         (param_string_value_p): New function.
8631         * params.h (struct param_info): Add value_names field.
8632         (find_param, param_string_value_p): Declare.
8633
8634 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8635
8636         PR tree-optimization/67476
8637         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8638
8639 2015-10-13  Richard Biener  <rguenther@suse.de>
8640
8641         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8642         the data dependence vector.
8643         (vect_peeling_hash_insert): Get the peeling hash table as argument.
8644         (vect_peeling_hash_get_lowest_cost): Likewise.
8645         (vect_enhance_data_refs_alignment): Adjust.
8646         (struct _vect_peel_info, struct _vect_peel_extended_info,
8647         struct peel_info_hasher): Move from ...
8648         * tree-vectorizer.h: ... here.
8649         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8650         (LOOP_VINFO_PEELING_HTAB): Likewise.
8651         (struct _loop_vec_info): Remove min_profitable_iters and
8652         peeling_htab members.
8653         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8654         here.
8655         (destroy_loop_vec_info): Adjust.
8656         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8657         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8658         to estimate alias versioning cost.
8659         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8660
8661 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
8662
8663         * real.h (real_isinteger): Declare.
8664         * real.c (real_isinteger): New function.
8665         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8666         if y is an even integer.
8667
8668 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8669
8670         revert:
8671         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8672         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8673         counts when these are more informative.
8674
8675 2015-10-12  Jeff Law  <law@redhat.com>
8676
8677         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8678         (fsm_find_control_stmt_paths): Change name of first argument to
8679         more accurately relfect what it really is.  Handle simplification
8680         of GIMPLE_COND after finding a thread path for NAME.
8681         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8682         nontrivial conditions to be handled by FSM threader.
8683         (thread_through_normal_block): Extract the name to looup via
8684         FSM threader from COND_EXPR.
8685
8686         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8687         restriction that traced SSA_NAME is a user variable.
8688
8689 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8690
8691         PR tree-optimization/67476
8692         * omp-low.c (expand_omp_for_generic): Add missing phis.
8693
8694 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8695
8696         PR tree-optimization/67476
8697         * omp-low.c (expand_omp_for_generic): Handle simple latch.
8698
8699 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
8700
8701         * config/aarch64/aarch64-simd-builtins.def: Update builtins
8702         tables: add tbl3 and tbx4.
8703         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8704         (aarch64_tbx4v8qi): New.
8705         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8706         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8707         Rewrite using builtin functions.
8708         * config/aarch64/iterators.md (UNSPEC_TBX): New.
8709
8710 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8711
8712         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8713         ROUND_UP macro.
8714         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8715         Use ROUND_UP and ROUND_DOWN macros where applicable.
8716         (rs6000_darwin64_record_arg_flush): Ditto.
8717         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8718         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8719         rounded_size.
8720
8721 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8722
8723         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8724         (AARCH64_ROUND_DOWN): Ditto.
8725         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8726
8727 2015-10-12  Richard Biener  <rguenther@suse.de>
8728
8729         PR ipa/67783
8730         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8731         code that analyzes IVs on each stmt but in a cheaper way avoiding
8732         quadratic behavior.
8733
8734 2015-10-12  Nick Clifton  <nickc@redhat.com>
8735
8736         * config/msp430/msp430.c (msp430_mcu_names): Rename to
8737         msp430_mcu_data, add fields for ISA and hardware multiply
8738         support.  Import latest data from the devices.csv file.
8739         (msp430_override_option): Use the data from the new array.
8740         (msp430_use_f5_series_hwmult): Likewise.
8741         (use_32bit_hwmult): Likewise.
8742         (msp430_no_hwmult): Likewise.
8743         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8744         MCU names.
8745         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8746         not recognised then no hardware multiply support is assumed and
8747         that only the MSP430 ISA is allowed.
8748
8749 2015-10-12  Richard Biener  <rguenther@suse.de>
8750
8751         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8752         related code ...
8753         (vect_analyze_loop_2): ... here.
8754
8755 2015-10-11  Jason Merrill  <jason@redhat.com>
8756
8757         PR c++/67557
8758         * expr.c (store_field): Call store_constructor directly when
8759         storing a CONSTRUCTOR into a target smaller than its type.
8760         Guard against unsafe bitwise copy.
8761
8762 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8763
8764         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8765         counts when these are more informative.
8766
8767 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8768
8769         * tree-profile.c (tree_profiling): Do not clear
8770         pure/const when not instrumenting.
8771         (pass tree_profile): Add dump of symtab.
8772
8773 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8774
8775         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8776         addresses.
8777         (fold_addr_of_array_ref_difference): Likewise.
8778
8779 2015-10-11  Jeff Law  <law@redhat.com>
8780
8781         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8782         tree-ssa-threadbackward.c.
8783         (fsm_find_control_statement_thread_paths): Likewise.
8784         (thread_through_normal_block): Break out FSM bits and move them
8785         into a new function in tree-ssa-threadbackward.c.  Call new function
8786         instead.
8787         Minimize header file usage.
8788         * tree-ssa-threadbackward.h: New file.
8789         * tree-ssa-threadbackward.c: Likewise.
8790         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8791
8792 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
8793
8794         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8795
8796 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
8797
8798         PR rtl-optimization/67864
8799         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8800         fallthrough edges for conditional jumps.  Don't sort candidate
8801         edges if not optimizing for speed.
8802
8803 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8804
8805         * defaults.h (REVERSE_CONDITION): New default definition.
8806         * jump.c (reversed_comparison_code_parts): Adjust.
8807
8808 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8809
8810         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8811         check HARD_FRAME_POINTER_IS_ARG_POINTER.
8812
8813 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8814
8815         * defaults.h (FRAME_ADDR_RTX): New default definition.
8816         * builtins.c (expand_builtin_return_addr): Adjust.
8817
8818 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8819
8820         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8821         * builtins.c (expand_builtin_return_addr): Adjust.
8822
8823 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8824
8825         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8826         * builtins.c (expand_builtin_return_addr): Adjust.
8827         * doc/tm.texi: Likewise.
8828         * doc/tm.texi.in: Likewise.
8829         * except.c (expand_builtin_unwind_init): Likewise.
8830
8831 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8832
8833         * builtins.c (expand_builtin_return_addr): Adjust.
8834         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8835
8836 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8837
8838         * tree.c (type_with_interoperable_signedness): New.
8839         (gimple_canonical_types_compatible_p): Use it.
8840         * tree.h (type_with_interoperable_signedness): Declare
8841
8842 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8843
8844         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8845         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8846         when OEP_ADDRESS_OF is se.
8847
8848 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8849             Sebastian Pop  <s.pop@samsung.com>
8850
8851         * graphite-dependences.c (scop_get_dependences): Add dump of the
8852         data dependence graph.
8853         * graphite-poly.c (print_isl_union_map): New.
8854         (debug_isl_union_map): New.
8855         * graphite-poly.h (print_isl_union_map): Declare.
8856         (debug_isl_union_map): Declare.
8857
8858 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8859             Sebastian Pop  <s.pop@samsung.com>
8860
8861         * graphite-poly.c (print_iteration_domain): Remove verbosity.
8862         Remove OpenScop formatting.
8863         (print_iteration_domains): Same.
8864         (debug_iteration_domain): Same.
8865         (debug_iteration_domains): Same.
8866         (print_pdr): Same.
8867         (debug_pdr): Same.
8868         (dump_gbb_cases): Same.
8869         (dump_gbb_conditions): Same.
8870         (print_pdrs): Same.
8871         (debug_pdrs): Same.
8872         (print_pbb_body): Same.
8873         (print_pbb): Same.
8874         (print_scop_params): Same.
8875         (print_scop_context): Same.
8876         (print_scop): Same.
8877         (debug_pbb_domain): Same.
8878         (debug_pbb): Same.
8879         (debug_scop_context): Same.
8880         (debug_scop): Same.
8881         (debug_scop_params): Same.
8882         * graphite-poly.h: Same.
8883         * graphite.c (graphite_transform_loops): Same.
8884
8885 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8886
8887         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8888         call that isn't needed.
8889
8890 2015-10-09  Jeff Law  <law@redhat.com>
8891
8892         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8893         rather than moving each name to the freelist individually.
8894
8895 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
8896
8897         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8898         * frame-header-opt.c: New file.
8899         * config/mips/mips-proto.h (mips_register_frame_header_opt):
8900         Add prototype.
8901         * config/mips/mips.c (mips_compute_frame_info): Check
8902         optimize_call_stack flag.
8903         (mips_option_override): Register new frame_header_opt pass.
8904         (mips_frame_info, mips_int_mask, mips_shadow_set,
8905         machine_function): Move these types to...
8906         * config/mips/mips.h: here.
8907         (machine_function): Add does_not_use_frame_header and
8908         optimize_call_stack fields.
8909         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8910         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8911         Document new flags.
8912         * config/mips/mips.opt (mframe-header-opt): Add new option.
8913
8914 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
8915
8916         * config/i386/i386.c
8917         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8918         ROUND_DOWN where applicable.
8919
8920 2015-10-09  Jeff Law  <law@redhat.com>
8921
8922         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8923         correct statement.
8924
8925 2015-10-09  Renlin Li  <renlin.li@arm.com>
8926
8927         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8928         operands[0] and operands[2].
8929         (neon_vtrn<mode>_insn): Likewise.
8930         (neon_vzip<mode>_insn): Likewise.
8931
8932 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8933
8934         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8935         ((X & C2) << C1): Expand to...
8936         (X {&,^,|} C2 << C1): ...This.
8937         ((X & C2) >> C1): Expand to...
8938         (X {&,^,|} C2 >> C1): ...This.
8939
8940 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
8941
8942         PR target/67895
8943         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8944         Adjust embedded rounding/SAE specifier position.
8945         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8946         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8947         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8948         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8949         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8950         Likewise.
8951         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8952
8953 2015-10-09  Martin Jambor  <mjambor@suse.cz>
8954
8955         tree-optimization/67794
8956         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8957         between types of state,ents but accept original definitions as a
8958         parameter.
8959         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8960         iterate over definitions.
8961
8962 2015-10-09  James Norris  <jnorris@codesourcery.com>
8963
8964         * config/rs6000/rs6000.c (rs6000_offload_options): New.
8965         (TARGET_OFFLOAD_OPTIONS): New.
8966
8967 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
8968
8969         PR middle-end/67891
8970         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8971
8972         PR middle-end/67766
8973         * function.c (expand_function_end): Move return value
8974         promotion past the handling of PARALLELs and CONCATs.
8975
8976         PR rtl-optimization/67828
8977         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8978         (tree_may_unswitch_on): Don't unswitch on expressions
8979         involving undefined values.
8980
8981 2015-10-09  Richard Biener  <rguenther@suse.de>
8982
8983         * genmatch.c (print_operand): Fix formatting.
8984         (dt_node::append_simplify): Warn for multiple simplifiers
8985         that match the same pattern.
8986         * match.pd (log (exp @0)): Remove duplicates.
8987
8988 2015-10-09  Richard Biener  <rguenth@suse.de>
8989
8990         PR target/67366
8991         * gimple-fold.c (optabs-query.h): Include
8992         (gimple_fold_builtin_memory_op): Allow unaligned stores
8993         when movmisalign_optabs are available.
8994
8995 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8996
8997         PR target/67366
8998         * config/arm/arm.md (movmisalign<mode>): New.
8999         * config/arm/iterators.md (HSI): New.
9000
9001 2015-10-09  Richard Biener  <rguenther@suse.de>
9002
9003         PR tree-optimization/67891
9004         * gimple-match.h (gimple_simplified_result_is_gimple_val):
9005         New helper.
9006         (gimple_resimplify1): Declare.
9007         (gimple_resimplify2): Likewise.
9008         (gimple_resimplify3): Likewise.
9009         * gimple-match-head.c (gimple_resimplify1): Export.
9010         (gimple_resimplify2): Likewise.
9011         (gimple_resimplify3): Likewise.
9012         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9013         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9014         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9015         to avoid creating stmts without VN info.
9016
9017 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
9018
9019         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9020         of availability.
9021
9022 2015-10-08  Jeff Law  <law@redhat.com>
9023
9024         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9025         and release_ssa_name in two places.
9026         (gimple_stringop_fixed_value): Similarly.
9027
9028         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9029         release_defs.
9030
9031         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9032         unlink_stmt_vdef and release_ssa_name_fn.
9033
9034         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9035         release_defs.
9036
9037 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
9038
9039         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9040         SSE register save area to 16 bytes only if the incoming stack
9041         boundary is no less than 16 bytes.
9042
9043 2015-10-08  Jeff Law  <law@redhat.com>
9044
9045         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9046         release_ssa_name.  Fix typo in comment.
9047
9048 2015-10-08  Nathan Sidwell  <nathan@acm.org>
9049
9050         * config/nvptx/nvptx.h (struct machine_function): Add comment.
9051         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9052         may return pointer as well as in memory.
9053         (nvptx_output_return): Likewise.
9054
9055 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9056
9057         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9058         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9059         * match.pd: Add rules previously handled by fold_builtin_sqrt
9060         and fold_builtin_cbrt.
9061
9062 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
9063
9064         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9065         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9066         * fold-const.h (tree_unary_nonnegative_warnv_p)
9067         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9068         (tree_expr_nonnegative_warnv_p): Add depth parameters.
9069         * fold-const.c: Include gimple-fold.h and params.h.
9070         (tree_ssa_name_nonnegative_warnv_p): New function.
9071         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9072         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9073         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9074         Add a depth parameter and increment it for recursive calls to
9075         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
9076         to handle SSA names.
9077         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9078         (gimple_stmt_nonnegative_warnv_p): Declare.
9079         * tree-vrp.c (remove_range_assertions): Remove assert that condition
9080         cannot be proven false.
9081         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9082         (gimple_stmt_nonnegative_warnv_p): Move to...
9083         * gimple-fold.c: ...here.  Add depth parameters and pass them
9084         down to the tree routines.  Accept statements that aren't
9085         assignments or calls but just return false for them.
9086         (gimple_val_nonnegative_real_p): Delete.
9087         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9088         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9089         Check HONOR_NANs first.
9090
9091 2015-10-08  Martin Jambor  <mjambor@suse.cz>
9092
9093         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
9094         unnecessary MIN.
9095
9096 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9097
9098         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9099         in the tail of outer-loop.
9100
9101 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
9102
9103         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9104         return UI_NONE.
9105
9106 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9107
9108         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9109         "cfghooks.h", add prototypes for introduced new functions.
9110         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9111         checks on ability of loop unswitching to tree_unswitch_single_loop;
9112         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9113         on innermost loop check.
9114         (tree_unswitch_single_loop): Add all required checks on ability of
9115         loop unswitching under zero recursive level guard.
9116         (tree_unswitch_outer_loop): New function.
9117         (find_loop_guard): Likewise.
9118         (empty_bb_without_guard_p): Likewise.
9119         (used_outside_loop_p): Likewise.
9120         (get_vop_from_header): Likewise.
9121         (hoist_guard): Likewise.
9122         (check_exit_phi): Likewise.
9123
9124 2015-10-08  Marek Polacek  <polacek@redhat.com>
9125
9126         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9127         ops element.
9128
9129 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9130
9131         PR c/65345
9132         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9133         create_tmp_var_raw instead of create_tmp_var.
9134
9135 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
9136
9137         * expr.c (store_expr_with_bounds): Handle aggregate moves from
9138         BLKmode.
9139         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9140         to define gimple type system; compare aggregates only by size.
9141
9142 2015-10-07  Jeff Law  <law@redhat.com>
9143
9144         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9145         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9146         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
9147         unnecessarily.
9148
9149 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9150             Sebastian Pop  <s.pop@samsung.com>
9151
9152         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9153         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9154         (generate_isl_schedule): Same.
9155         * graphite-optimize-isl.c (scop_get_domains): Same.
9156         (apply_schedule_map_to_scop): Same.
9157         * graphite-poly.c (print_iteration_domains): Same.
9158         (remove_gbbs_in_scop): Same.
9159         (new_scop): Same.
9160         (free_scop): Same.
9161         (print_scop): Same.
9162         * graphite-poly.h (struct scop): Rename bbs to pbbs.
9163         (SCOP_BBS): Remove.
9164         * graphite-scop-detection.c (compare_bb_depths): Remove.
9165         (graphite_sort_dominated_info): Remove.
9166         (try_generate_gimple_bb): Move out of scop_detection.
9167         (all_non_dominated_preds_marked_p): Remove.
9168         (build_scop_bbs_1): Remove.
9169         (build_scop_bbs): Remove.
9170         (nb_pbbs_in_loops): Do not use SCOP_BBS.
9171         (find_scop_parameters): Same.
9172         (sese_dom_walker): Rename gather_bbs.
9173         (before_dom_children): Call try_generate_gimple_bb and collect gbb
9174         and pbb.
9175         (build_scops): Call gather_bbs.
9176         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9177         (add_conditions_to_constraints): Same.
9178         (build_scop_iteration_domain): Same.
9179         (build_scop_drs): Same.
9180         (new_pbb_from_pbb): Same.
9181         * sese.c (new_sese_info): Create bbs.
9182         * sese.h (struct sese_info_t): Add bbs.
9183
9184 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
9185
9186         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9187         encoding in 64-bit mode.
9188
9189 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
9190
9191         PR target/66697
9192         * config/i386/i386.c (ix86_option_override_internal): Always use
9193         8-byte minimum stack boundary in 64-bit mode.
9194         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9195         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9196         Add a REG_CFA_EXPRESSION note if needed.
9197         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9198         (ix86_handle_force_align_arg_pointer_attribute): New.
9199         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9200         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9201         with ix86_handle_force_align_arg_pointer_attribute.
9202         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9203
9204 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9205             Sebastian Pop  <s.pop@samsung.com>
9206
9207         * graphite-scop-detection.c (parameter_index_in_region): Remove
9208         use of SESE_ADD_PARAMS.
9209         (find_scop_parameters): Same.
9210         * sese.c (new_sese_info): Same.
9211         * sese.h (struct sese_info_t): Remove add_params.
9212         (SESE_ADD_PARAMS): Remove.
9213
9214 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9215             Sebastian Pop  <s.pop@samsung.com>
9216
9217         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9218         an sese_info_p.
9219         (copy_def): Same.
9220         (copy_internal_parameters): Same.
9221         (translate_isl_ast_to_gimple): Use an sese_l.
9222         (build_iv_mapping): Same.
9223         * graphite-poly.c (new_sese): Rename new_sese_info.
9224         (free_sese): Rename free_sese_info.
9225         * graphite-poly.h (struct scop): Use an sese_info_p.
9226         (scop_set_region): Same.
9227         * graphite-scop-detection.c (struct sese_l): Moved...
9228         (get_entry_bb): Moved...
9229         (get_exit_bb): Moved...
9230         (parameter_index_in_region_1): Use an sese_info_p.
9231         (parameter_index_in_region): Same.
9232         (scan_tree_for_params): Same.
9233         (find_params_in_bb): Same.
9234         (sese_dom_walker): Use an sese_l.
9235         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9236         (reduction_phi_p): Same.
9237         (parameter_index_in_region_1): Use an sese_info_p.
9238         (propagate_expr_outside_region): Use an sese_l.
9239         * graphite.c: Replace uses of SCOP_REGION.
9240         * sese.c (sese_record_loop): Use an sese_info_p.
9241         (build_sese_loop_nests): Same.
9242         (sese_build_liveouts_use): Same.
9243         (sese_build_liveouts_bb): Same.
9244         (sese_build_liveouts_bb): Same.
9245         (sese_bad_liveouts_use): Same.
9246         (sese_reset_debug_liveouts_bb): Same.
9247         (sese_build_liveouts): Same.
9248         (new_sese): Renamed new_sese_info.
9249         (free_sese): Renamed free_sese_info.
9250         (set_rename): Use an sese_info_p.
9251         (graphite_copy_stmts_from_block): Same.
9252         (copy_bb_and_scalar_dependences): Same.
9253         (outermost_loop_in_sese_1): Use an sese_l.
9254         (outermost_loop_in_sese): Same.
9255         (if_region_set_false_region): Use an sese_info_p.
9256         (move_sese_in_condition): Same.
9257         (scalar_evolution_in_region): Use an sese_l.
9258         * sese.h (struct sese_l): ... here.
9259         (SESE_ENTRY): Remove.
9260         (SESE_ENTRY_BB): Remove.
9261         (SESE_EXIT): Remove.
9262         (SESE_EXIT_BB): Remove.
9263         (sese_contains_loop): Use an sese_info_p.
9264         (sese_nb_params): Same.
9265         (bb_in_sese_p): Use an sese_l.
9266         (stmt_in_sese_p): Same.
9267         (defined_in_sese_p): Same.
9268         (loop_in_sese_p): Same.
9269         (sese_loop_depth): Same.
9270         (struct ifsese_s): Use an sese_info_p.
9271         (gbb_loop_at_index): Use an sese_l.
9272         (nb_common_loops): Same.
9273         (scev_analyzable_p): Same.
9274
9275 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9276
9277         * config/i386/i386.c (ix86_conditional_register_usage): Use
9278         CALL_USED_REGISTERS_MASK.
9279         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9280
9281 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9282
9283         PR bootstrap/67385
9284         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9285         * configure: Regenerated.
9286
9287 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9288
9289         PR target/67850
9290         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9291         (ix86_set_current_function): This.
9292         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9293
9294 2015-10-07  Richard Biener  <rguenther@suse.de>
9295
9296         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9297         (vinfo_for_stmt): Adjust.
9298         (set_vinfo_for_stmt): Likewise.
9299         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9300         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9301         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9302         of inner loop.
9303         (vect_analyze_loop_1): Remove.
9304         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9305         inner loop when vectorizing an outer loop by splitting out from ...
9306         (vect_analyze_loop_form): ... here.
9307
9308 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9309
9310         PR c/65345
9311         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9312         Use create_tmp_var_raw instead of create_tmp_var.
9313
9314 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9315
9316         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9317         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9318         * real.c (CACHED_FRACTION): New helper macro.
9319         (dconst_third_ptr): Use it.
9320         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9321         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9322         dconst_sixth.
9323         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9324
9325 2015-10-06  Jeff Law  <law@redhat.com>
9326
9327         PR tree-optimization/67816
9328         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9329         from remove_jump_threads_starting_at.  Accept an edge rather than
9330         a basic block.
9331         * tree-ssa-threadupdate.c (removed_edges): New hash table.
9332         (remove_jump_threads_including): Note edges that get removed from
9333         the CFG for later pruning of jump threading paths including them.
9334         (thread_through_all_blocks): Remove paths which include edges that
9335         have been removed.
9336         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9337         on each outgoing edges when optimizing away a control statement.
9338
9339 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9340
9341         * reorg.c (emit_delay_sequence): Store list of delay slot insns
9342         in a vector instead of rtx_insn_list.
9343         (add_to_delay_list): Likewise.
9344         (delete_from_delay_slot): Likewise.
9345         (optimize_skip): Likewise.
9346         (redirect_with_delay_list_safe_p): Likewise.
9347         (check_annul_list_true_false): Likewise.
9348         (steal_delay_list_from_target): Likewise.
9349         (steal_delay_list_from_fallthrough): Likewise.
9350         (redundant_insn): Likewise.
9351         (fill_simple_delay_slots): Likewise.
9352         (fill_slots_from_thread): Likewise.
9353         (fill_eager_delay_slots): Likewise.
9354         (relax_delay_slots): Likewise.
9355
9356 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
9357
9358         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9359         For -mgpopt=local, also exclude unintialized common symbols.
9360         * doc/invoke.texi (Nios II Options): Document the change.
9361
9362 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9363
9364         * config/aarch64/iterators.md (vwcore): Add missing cases for
9365          V4HF/V8HF modes.
9366
9367 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9368             Sebastian Pop  <s.pop@samsung.com>
9369
9370         * graphite-poly.c (new_scop): Initialize drs.
9371         * graphite-poly.h (struct dr_info): New.
9372         (struct scop): Add drs.
9373         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9374         (pdr_add_memory_accesses): Same.
9375         (build_poly_dr): Same.
9376         (build_alias_set): Same.
9377         (build_scop_drs): Same.
9378         (build_pbb_drs): Remove.
9379         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9380         * tree-data-ref.h (data_reference): Remove alias_set.
9381
9382 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9383             Sebastian Pop  <s.pop@samsung.com>
9384
9385         * graphite-poly.c (free_data_refs_aux): Remove.
9386         (free_gimple_poly_bb): Do not call free_data_refs_aux.
9387         * graphite-poly.h (struct base_alias_pair): Remove.
9388         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9389         base_alias_pair and dr->aux.
9390         (build_alias_set): Same.
9391         * tree-data-ref.c (create_data_ref): Initialize alias_set.
9392         * tree-data-ref.h (data_reference): Add alias_set.
9393
9394 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9395             Sebastian Pop  <s.pop@samsung.com>
9396
9397         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9398         Do not set PDR_BASE_OBJECT_SET.
9399         * graphite-poly.h (poly_dr): Same.
9400         (PDR_BASE_OBJECT_SET): Remove.
9401         (new_poly_dr): Update decl.
9402         * graphite-sese-to-poly.c (build_poly_dr): Update call to
9403         new_poly_dr.
9404         (write_alias_graph_to_ascii_dimacs): Remove.
9405         (write_alias_graph_to_ascii_dot): Remove.
9406         (write_alias_graph_to_ascii_ecc): Remove.
9407         (dr_same_base_object_p): Remove.
9408         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
9409         code.
9410         (build_base_obj_set_for_drs): Remove.
9411         (dump_alias_graphs): Remove.
9412         (build_scop_drs): Remove dead code.
9413
9414 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9415             Peter Bergner  <bergner@vnet.ibm.com>
9416
9417         PR target/67808
9418         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9419         allow registers, but provide insns for the combiner to create for
9420         loads from memory. Separate VSX code from non-VSX code. For
9421         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9422         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9423         so that registers come before memory operations. Drop support from
9424         converting DFmode to TFmode, if the DFmode value is in a GPR
9425         register.
9426         (extenddftf2_fprs): Likewise.
9427         (extenddftf2_internal): Likewise.
9428         (extenddftf2_vsx): Likewise.
9429         (extendsftf2): In the expander, only allow registers, but provide
9430         insns for the combiner to create for stores and loads.
9431
9432 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9433
9434         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9435         from the decl parameter.
9436
9437 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
9438
9439         PR 67861
9440         * gimple-fold.c (gimple_fold_builtin): Add break after
9441         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9442
9443 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9444
9445         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9446         to scop->isl_context.
9447
9448 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9449
9450         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9451         (output_probe_stack_range): Rotate the loop and simplify.
9452         (thumb1_expand_prologue): Tweak sorry message.
9453         * config/arm/arm.md (probe_stack): Use bare string.
9454
9455 2015-10-06  Nick Clifton  <nickc@redhat.com>
9456
9457         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9458
9459 2015-10-06  Nick Clifton  <nickc@redhat.com>
9460
9461         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9462         (ATTR_PERSIST): New constant.
9463         (msp430_data_attr): New function - verifies an attribute that only
9464         applies to variables.
9465         (msp430_attributes): Add noinit and persistent attributes.
9466         (noinit_section): New variable.
9467         (presis_section): New variable.
9468         (TARGET_ASM_INIT_SECTIONS): Define.
9469         (msp430_init_sections): New function - initialises the noinit and
9470         persist section variables.
9471         (msp430_select_section): Add support for noinit and persist
9472         attributes.
9473         (msp430_section_type_flags): Likewise.
9474         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
9475         and persistent attributes.
9476
9477 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9478             Sebastian Pop  <s.pop@samsung.com>
9479
9480         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9481         (no_violations): Remove.
9482         (subtract_commutative_associative_deps): Remove.
9483         (compute_deps): Do not call subtract_commutative_associative_deps.
9484         (transform_is_safe): Remove.
9485         (graphite_legal_transform): Remove.
9486         * graphite-poly.h (graphite_legal_transform): Remove.
9487
9488 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
9489
9490         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9491         which are in this region are passed so gcc_assert and remove redundant
9492         computation.
9493         * sese.c (sese_build_liveouts): Pass only those bbs which are not
9494         in region.
9495         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9496         gcc_assert on that and remove unnecessary computation.
9497         (sese_build_liveouts_use): Same.
9498
9499 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9500
9501         * graphite-dependences.c (scop_get_reads): Renamed scop->context
9502         to scop->param_context.
9503         (scop_get_must_writes): Same.
9504         (scop_get_may_writes): Same.
9505         (scop_get_original_schedule): Same.
9506         (scop_get_transformed_schedule): Same.
9507         (subtract_commutative_associative_deps): Same.
9508         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9509         (generate_isl_context): Same.
9510         (generate_isl_schedule): Same.
9511         (scop_to_isl_ast): Same.
9512         (graphite_regenerate_ast_isl): Same.
9513         * graphite-optimize-isl.c (scop_get_domains): Same.
9514         (optimize_isl): Renamed scop->context to scop->param_context.
9515         * graphite-poly.c (new_poly_bb): Change the type of argument to
9516         gimple_poly_bb_p.
9517         (new_scop): Renamed scop->context to scop->param_context.
9518         (free_scop): Same.
9519         (print_scop_context): Same.
9520         * graphite-poly.h (new_poly_dr): Change the type of argument from
9521         void* to data_reference_p.
9522         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9523         (new_poly_bb): Change the type of argument from void* to
9524         gimple_poly_bb_p.
9525         (pbb_set_black_box): Same.
9526         (struct scop): Rename context to param_context, ctx to isl_context.
9527         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9528         Move declarations closer to assignment.
9529         (find_params_in_bb): Same.
9530         (find_scop_parameters): Same.
9531         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9532         Global to be used for statement IDs.
9533         (isl_id_for_pbb): Use ssa_name_version_typesize.
9534         (simple_copy_phi_p): Move declarations closer to assignment.
9535         (build_pbb_scattering_polyhedrons): Same.
9536         (build_scop_scattering): Same.
9537         (isl_id_for_ssa_name): Same.
9538         (extract_affine_name): Same.
9539         (extract_affine_int): Same.
9540         (extract_affine): Same.
9541         (set_scop_parameter_dim): Use renamed member.
9542         (build_loop_iteration_domains): Same.
9543         (add_param_constraints): Same.
9544         (build_scop_iteration_domain): Same.
9545         (pdr_add_data_dimensions): Same.
9546         (build_poly_dr): Same.
9547         (build_scop_drs): Move declarations closer to assignment.
9548         (analyze_drs_in_stmts): Same.
9549         (insert_out_of_ssa_copy): Same.
9550         (insert_out_of_ssa_copy_on_edge): Same.
9551         (propagate_expr_outside_region): Same.
9552         (rewrite_phi_out_of_ssa): Same.
9553         (rewrite_degenerate_phi): Same.
9554         (rewrite_reductions_out_of_ssa): Same.
9555         (rewrite_cross_bb_scalar_dependence): Same.
9556         (handle_scalar_deps_crossing_scop_limits): Same.
9557         (rewrite_cross_bb_scalar_deps): Same.
9558         * graphite.c (graphite_transform_loops): Use renamed member.
9559
9560 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
9561
9562         PR c/65345
9563         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9564         create_tmp_var_raw instead of create_tmp_var.
9565
9566 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9567
9568         PR c/65345
9569         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9570         Use create_tmp_var_raw instead of create_tmp_var.
9571
9572 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
9573
9574         PR target/67849
9575         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9576         split for upper-bank registers when target does not support
9577         AVX512VL.
9578         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9579         split when target does not support AVX512VL.
9580
9581 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
9582
9583         PR c/65345
9584         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9585         Adjust to use create_tmp_var_raw instead of create_tmp_var.
9586
9587 2015-10-06  Nick Clifton  <nickc@redhat.com>
9588
9589         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9590         multiplication.
9591
9592 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9593
9594         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9595         (case ${target}): Add znver1.
9596         * config/i386/cpuid.h(bit_CLZERO):  Define.
9597         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9598         -march=native recognize znver1 processors.
9599         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9600         znver1, clzero def_and_undef.
9601         * config/i386/i386.c (struct processor_costs znver1_cost): New.
9602         (m_znver1): New definition.
9603         (m_AMD_MULTIPLE): Includes m_znver1.
9604         (processor_target_table): Add znver1 entry.
9605         (ix86_target_string) : Add clzero entry.
9606         (static const char *const cpu_names): Add znver1 entry.
9607         (ix86_option_override_internal): Add znver1 instruction sets.
9608         (PTA_CLZERO) :  New definition.
9609         (ix86_option_override_internal): Handle new clzerooption.
9610         (ix86_issue_rate): Add znver1.
9611         (ix86_adjust_cost): Add znver1.
9612         (ia32_multipass_dfa_lookahead): Add znver1.
9613         (has_dispatch): Add znver1.
9614         * config/i386/i386.h (TARGET_znver1): New definition.
9615         (TARGET_CLZERO): Define.
9616         (TARGET_CLZERO_P): Define.
9617         (struct ix86_size_cost): Add TARGET_ZNVER1.
9618         (enum processor_type): Add PROCESSOR_znver1.
9619         * config/i386/i386.md (define_attr "cpu"): Add znver1.
9620         (set_attr znver1_decode): New definitions for znver1.
9621         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9622         (mclzero): New.
9623         * config/i386/mmx.md (set_attr znver1_decode): New definitions
9624         for znver1.
9625         * config/i386/sse.md (set_attr znver1_decode): Likewise.
9626         * config/i386/x86-tune.def:  Add znver1 tunings.
9627         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9628         * doc/invoke.texi: Add details about znver1
9629
9630 2015-10-06  Richard Biener  <rguenther@suse.de>
9631
9632         PR tree-optimization/67859
9633         * tree-ssa-pre.c (create_expression_by_pieces): Properly
9634         discard not inserted stmts.
9635
9636 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
9637
9638         * doc/extend.texi (Template Instantiation): Reorder options and
9639         de-emphasize -frepo.
9640         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9641         example instead of -frepo.
9642
9643 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9644
9645         PR c/65345
9646         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9647         use create_tmp_var_raw rather than create_tmp_var.
9648
9649 2015-10-06  Richard Biener  <rguenther@suse.de>
9650
9651         * tree-vectorizer.h (vec_info): New base class for...
9652         (_loop_vec_info): ... this and ...
9653         (_bb_vec_info): ... this.
9654         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9655         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9656         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9657         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9658         vect_destroy_datarefs): Adjust interface to take a vec_info *
9659         rather than both a loop_vec_info and a bb_vec_info argument.
9660         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9661         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9662         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9663         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9664         accordingly.
9665         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9666         (destroy_loop_vec_info, vect_analyze_loop_2,
9667         vect_is_simple_reduction_1, get_initial_def_for_induction,
9668         vect_create_epilog_for_reduction, vectorizable_reduction,
9669         vectorizable_live_operation, vect_transform_loop): Adjust.
9670         * tree-vect-patterns.c (type_conversion_p,
9671         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9672         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9673         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9674         check_bool_pattern, vect_recog_bool_pattern,
9675         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9676         * tree-vect-slp.c (vect_get_and_check_slp_defs,
9677         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9678         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9679         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9680         (new_bb_vec_info): Initialize base classs.
9681         * tree-vect-stmts.c (record_stmt_cost, process_use,
9682         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9683         vectorizable_mask_load_store, vectorizable_call,
9684         vectorizable_simd_clone_call, vectorizable_conversion,
9685         vectorizable_assignment, vectorizable_shift,
9686         vectorizable_operation, vectorizable_store,
9687         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9688         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9689         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9690
9691 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9692
9693         PR c/65345
9694         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9695         create_tmp_var_raw rather than create_tmp_var.
9696
9697 2015-10-05  Marek Polacek  <polacek@redhat.com>
9698
9699         * tree-ssa-loop-im.c
9700         (move_computations_dom_walker::before_dom_children): Don't set
9701         SSA_NAME_ANTI_RANGE_P.
9702         * tree-ssa-phiopt.c (value_replacement): Likewise.
9703
9704 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9705             Sebastian Pop  <s.pop@samsung.com>
9706
9707         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9708
9709 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9710             Sebastian Pop  <s.pop@samsung.com>
9711
9712         * graphite-poly.c (new_gimple_poly_bb): ... here.
9713         (free_data_refs_aux): ... here.
9714         (free_gimple_poly_bb): ... here.
9715         (remove_gbbs_in_scop): ... here.
9716         (new_scop): Call new_sese.
9717         (free_scop): Call remove_gbbs_in_scop and free_sese.
9718         * graphite-poly.h (base_alias_pair): ... here.
9719         (new_gimple_poly_bb): Declare.
9720         (free_gimple_poly_bb): Declare.
9721         * graphite-scop-detection.c (parameter_index_in_region_1):
9722         (parameter_index_in_region): ... here.
9723         (scan_tree_for_params): ... here.
9724         (find_params_in_bb): ... here.
9725         (find_scop_parameters): ... here.
9726         (build_scops): Call find_scop_parameters.
9727         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9728         (free_scops): Move...
9729         (single_pred_cond_non_loop_exit): Move...
9730         (sese_dom_walker::before_dom_children): Move...
9731         (sese_dom_walker::after_dom_children): Move...
9732         (build_poly_scop): Move...
9733         * graphite-sese-to-poly.h (base_alias_pair): Move...
9734         * graphite.c (free_scops): ... here.
9735
9736 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9737             Sebastian Pop  <s.pop@samsung.com>
9738
9739         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9740         (trivially_empty_bb_p): Move...
9741         (same_close_phi_node): Move...
9742         (new_gimple_poly_bb): Move...
9743         (compare_bb_depths): Move...
9744         (graphite_sort_dominated_info): Move...
9745         (remove_duplicate_close_phi): Move...
9746         (make_close_phi_nodes_unique): Move...
9747         (canonicalize_loop_closed_ssa): Move...
9748         (canonicalize_loop_closed_ssa_form): Move...
9749         (loop_ivs_can_be_represented): Move...
9750         (single_pred_cond_non_loop_exit): Move...
9751         (graphite_can_represent_init): Move...
9752         (graphite_can_represent_scev): Move...
9753         (stmt_has_simple_data_refs_p): Move...
9754         (stmt_has_side_effects):  Move...
9755         (graphite_can_represent_stmt): Move...
9756         (scop_detection): ... here.
9757         (sese_dom_walker): ... and here.
9758         (build_scops): Call all moved functions.
9759         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9760         (all_non_dominated_preds_marked_p): Move...
9761         (build_scop_bbs_1): Move...
9762         (build_scop_bbs): Move...
9763         (set_scop_parameter_dim): Move...
9764         (nb_pbbs_in_loops): Move...
9765         (build_poly_scop): Do not call all the moved functions.
9766
9767 2015-10-05  Martin Jambor  <mjambor@suse.cz>
9768             Jan Hubicka  <hubicka@ucw.cz>
9769
9770         * ipa-cp.c (ipcp_alignment_lattice): New type.
9771         (ipcp_param_lattices): Use the above to represent alignment.
9772         (ipcp_alignment_lattice::print): New function.
9773         (print_all_lattices): Use it to print alignment information.
9774         (ipcp_alignment_lattice::top_p): New function.
9775         (ipcp_alignment_lattice::bottom_p): Likewise.
9776         (ipcp_alignment_lattice::set_to_bottom): Likewise.
9777         (ipcp_alignment_lattice::meet_with_1): Likewise.
9778         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9779         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9780         (initialize_node_lattices): Likewise.
9781         (propagate_alignment_accross_jump_function): Work with the new class
9782         for alignment lattices.
9783         (propagate_constants_accross_call): Pass only the alignment lattice to
9784         propagate_alignment_accross_jump_function.
9785         (ipcp_store_alignment_results): Work with the new class for alignment
9786         lattices.
9787
9788 2015-10-05  Marek Polacek  <polacek@redhat.com>
9789
9790         PR tree-optimization/67821
9791         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9792
9793 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
9794
9795         PR other/65021
9796         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9797         function to...
9798         (mkoffload_cleanup): ... this.  Adjust all users.
9799         (maybe_unlink): Look at save_temps and verbose flags instead of
9800         debug flag.
9801         (main): Parse "-save-temps" flag.
9802         (generate_target_descr_file, generate_target_offloadend_file)
9803         (generate_host_descr_file, prepare_target_image): Pass it on.
9804         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9805         (mkoffload_cleanup): New function.
9806         (maybe_unlink): Look at save_temps and verbose flags instead of
9807         debug flag.
9808         (main): Instead of calling utils_cleanup, register atexit handler
9809         for mkoffload_cleanup.
9810         (main): Parse "-save-temps" flag.
9811         (compile_native, main): Pass it on.
9812         * lto-wrapper.c (compile_offload_image): Likewise.
9813
9814 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9815
9816         * gimple.h (gimple_op_ptr): Require a non const gimple *.
9817         (gimple_assign_lhs_ptr): Likewise.
9818         (gimple_assign_rhs1_ptr): Likewise.
9819         (gimple_assign_rhs2_ptr): Likewise.
9820         (gimple_assign_rhs3_ptr): Likewise.
9821         (gimple_call_lhs_ptr): Likewise.
9822         (gimple_call_fn_ptr): Likewise.
9823         (gimple_call_chain_ptr): Likewise.
9824                 (gimple_call_arg_ptr): Likewise.
9825                 (gimple_cond_lhs_ptr): Likewise.
9826         (gimple_cond_rhs_ptr): Likewise.
9827         (gimple_switch_index_ptr): Likewise.
9828         (gimple_return_retval_ptr): Likewise.
9829
9830 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9831
9832         * gimple.h (gimple_asm_input_op_ptr): Remove.
9833         (gimple_asm_output_op_ptr): Likewise.
9834
9835 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9836
9837         * gimple.h (gimple_location_ptr): Remove.
9838         * tree-vrp.c (check_all_array_refs): Adjust.
9839
9840 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9841
9842         * tree-ssa-operands.c (build_uses): store tree * instead of
9843         tree.
9844         (finalize_ssa_uses): Adjust.
9845         (append_use): Likewise.
9846         (verify_ssa_operands): Likewise.
9847
9848 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9849
9850         * real.h (build_real_truncate): Declare.
9851         * tree.c (build_real_truncate): New function.
9852         (strip_float_extensions): Use it.
9853         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9854         (fold_builtin_hypot, fold_builtin_pow): Likewise.
9855         * match.pd: Likewise.
9856
9857 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9858            Jiong Wang  <jiong.wang@arm.com>
9859
9860         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9861
9862 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9863
9864         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9865         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9866         (aarch64_print_operand, aarch64_float_const_representable_p)
9867         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9868         instead of REAL_VALUE_FROM_CONST_DOUBLE.
9869         * config/arc/arc.c (arc_print_operand): Likewise.
9870         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9871         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9872         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9873         Likewise.
9874         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9875         (consttable_16): Likewise.
9876         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9877         * config/avr/avr.c (avr_print_operand): Likewise.
9878         * config/bfin/bfin.md: Likewise (in a define_split).
9879         * config/c6x/c6x.md: Likewise (in a define_split).
9880         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9881         (cr16_print_operand): Likewise.
9882         * config/cris/cris.c (cris_print_operand): Likewise.
9883         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9884         * config/fr30/fr30.c (fr30_print_operand): Likewise.
9885         (fr30_const_double_is_zero): Likewise.
9886         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9887         * config/frv/frv.md: Likewise (in a define_split).
9888         * config/frv/predicates.md (int_2word_operand): Likewise.
9889         * config/h8300/h8300.c (h8300_print_operand): Likewise.
9890         * config/i386/i386.c (standard_80387_constant_p): Likewise.
9891         (ix86_print_operand, ix86_split_to_parts): Likewise.
9892         * config/i386/i386.md: Likewise (in a define_split).
9893         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9894         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9895         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9896         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9897         (print_operand): Likewise.
9898         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9899         * config/mep/mep.md: Likewise (in define_split).
9900         * config/microblaze/microblaze.c (microblaze_const_double_ok)
9901         (print_operand): Likewise.
9902         * config/mips/mips.md (consttable_float): Likewise.
9903         * config/mmix/mmix.c (mmix_intval): Likewise.
9904         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9905         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9906         * config/pa/pa.c (pa_singlemove_string): Likewise.
9907         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9908         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9909         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9910         (output_toc): Likewise.
9911         * config/rs6000/rs6000.md: Likewise (in define_splits).
9912         * config/rx/rx.c (rx_print_operand): Likewise.
9913         * config/s390/s390.c (s390_output_pool_entry): Likewise.
9914         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9915         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9916         (and also in define_splits).
9917         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9918         (fp_high_losum_p): Likewise.
9919         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9920         (*movsf_high): Likewise.
9921         * config/spu/spu.c (const_double_to_hwint): Likewise.
9922         * config/v850/v850.c (const_double_split): Likewise.
9923         * config/vax/vax.c (vax_float_literal): Likewise.
9924         * config/visium/visium.c (visium_expand_copysign): Likewise.
9925         * config/visium/visium.md: Likewise (in define_split).
9926         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9927         * config/xtensa/xtensa.c (print_operand): Likewise.
9928         (xtensa_output_literal): Likewise.
9929         * cprop.c (implicit_set_cond_p): Likewise.
9930         * dwarf2out.c (insert_float): Likewise.
9931         * expmed.c (expand_mult, make_tree): Likewise.
9932         * expr.c (compress_float_constant): Likewise.
9933         * rtlanal.c (split_double): Likewise.
9934         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9935         (simplify_const_unary_operation, simplify_binary_operation_1)
9936         (simplify_const_binary_operation): Likewise.
9937         (simplify_const_relational_operation): Likewise.
9938         * varasm.c (output_constant_pool_2): Likewise.
9939
9940 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9941
9942         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9943         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9944         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9945         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9946         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9947         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9948         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9949         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9950         (ix86_emit_swsqrtsf): Likewise.
9951         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9952         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9953         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9954         * config/pa/pa.c (pa_expand_builtin): Likewise.
9955         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9956         (rs6000_scale_v2df): Likewise.
9957         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9958         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9959         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9960         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9961         (vec_ctul): Likewise.
9962         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9963         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9964         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9965         * cse.c (fold_rtx): Likewise.
9966         * emit-rtl.c (immed_double_const): Likewise (in comments).
9967         (init_emit_once): Likewise.
9968         * expr.c (compress_float_constant, expand_expr_real_1)
9969         (const_vector_from_tree): Likewise.
9970         * optabs.c (expand_float, expand_fix): Likewise.
9971         * reg-stack.c (reg_to_stack): Likewise.
9972         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9973         (simplify_const_unary_operation, simplify_binary_operation_1)
9974         (simplify_const_binary_operation, simplify_relational_operation)
9975         (simplify_immed_subreg): Likewise.
9976
9977 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9978
9979         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9980         * doc/tm.texi: Regenerate.
9981         * real.h (REAL_ARITHMETIC): Delete.
9982         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9983         (ix86_expand_round_sse4): Use real_arithmetic instead of
9984         REAL_ARITHMETIC.
9985         * config/i386/sse.md (round<mode>2): Likewise.
9986         * rtl.h (rtx_to_tree_code): Likewise (in comment).
9987         * explow.c (rtx_to_tree_code): Likewise (in comment).
9988         * match.pd: Likewise.
9989         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9990         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9991         (expand_pow_as_sqrts): Likewise.
9992         * tree-pretty-print.c (dump_generic_node): Remove code that
9993         was conditional on REAL_ARITHMETIC being undefined.
9994
9995 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9996
9997         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9998         * doc/tm.texi: Regenerate.
9999         * real.h (real_less): Declare.
10000         (REAL_VALUES_LESS): Delete.
10001         * real.c (real_less): New function.
10002         (real_compare): Use it.
10003         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10004         of REAL_VALUES_LESS.
10005         * config/microblaze/microblaze.c (microblaze_const_double_ok):
10006         Likewise.
10007         * fold-const.c (fold_convert_const_int_from_real): Likewise.
10008         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10009         (simplify_const_relational_operation): Likewise.
10010         * tree-call-cdce.c (check_pow): Likewise.
10011         (gen_conditions_for_pow_cst_base): Likewise.
10012
10013 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10014
10015         * real.h (REAL_VALUES_IDENTICAL): Delete.
10016         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10017         instead of REAL_VALUES_IDENTICAL.
10018         * fold-const.c (operand_equal_p): Likewise.
10019         * ipa-icf.c (sem_variable::equals): Likewise.
10020         * tree-complex.c (some_nonzerop): Likewise.
10021         (expand_complex_multiplication): Likewise.
10022         * tree.c (simple_cst_equal): Likewise.
10023         * varasm.c (compare_constant): Likewise.
10024
10025 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
10026
10027         * real.h (real_equal): Declare.
10028         (REAL_VALUES_EQUAL): Delete.
10029         * real.c (real_equal): New function.
10030         (real_compare): Use it.
10031         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10032         * doc/tm.texi: Regenerate.
10033         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10034         real_equal instead of REAL_VALUES_EQUAL.
10035         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10036         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10037         (fp_const_from_val): Likewise.
10038         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10039         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10040         (floating_exact_log2): Likewise.
10041         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10042         * config/vax/vax.c (vax_float_literal): Likewise.
10043         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10044         * cprop.c (implicit_set_cond_p): Likewise.
10045         * expmed.c (expand_mult): Likewise.
10046         * fold-const.c (const_binop): Likewise.
10047         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10048         (simplify_const_binary_operation): Likewise.
10049         (simplify_const_relational_operation): Likewise.
10050         * tree-call-cdce.c (check_pow): Likewise.
10051         (gen_conditions_for_pow_cst_base): Likewise.
10052         * tree-inline.c (estimate_num_insns): Likewise.
10053         * tree-ssa-dom.c (record_equality): Likewise.
10054         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10055         (gimple_expand_builtin_pow): Likewise.
10056         (pass_optimize_widening_mul::execute): Likewise.
10057         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10058         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10059         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10060
10061 2015-10-05  Richard Biener  <rguenther@suse.de>
10062
10063         PR ipa/67783
10064         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10065         consider loop header PHI defs as IVs.
10066
10067 2015-10-05  Richard Biener  <rguenther@suse.de>
10068
10069         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10070         call handling ...
10071         (create_expression_by_pieces): ... here and build GIMPLE
10072         calls directly.  Use gimple_build API and avoid force_gimple_operand.
10073         (insert_into_preds_of_block): Simplify.
10074         (do_regular_insertion): Add comment.
10075
10076 2015-10-04  Jason Merrill  <jason@redhat.com>
10077
10078         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10079
10080 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
10081
10082         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10083         check for general register.
10084         (ix86_emit_save_regs): Ditto.
10085         (ix86_emit_save_regs_using_mov): Ditto.
10086         (ix86_emit_restore_regs_using_pop): Ditto.
10087         (ix86_emit_restore_regs_using_mov): Ditto.
10088
10089 2015-10-03  Marek Polacek  <polacek@redhat.com>
10090
10091         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10092         (insn-dfatab.o): Likewise.
10093
10094 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
10095
10096         * config.gcc (xtensa*-*-uclinux*): New configuration.
10097         * config/xtensa/uclinux.h: New file.
10098         * config/xtensa/uclinux.opt: New file.
10099
10100 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
10101
10102         * doc/cpp.texi (Standard Predefined Macros): Document value of
10103         __cplusplus for C++14.
10104
10105 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
10106
10107         * gcc.c (process_command): Use spec_machine rather than
10108         spec_host_machine to build tooldir_prefix2.
10109
10110 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10111             Bernd Schmidt  <bernds@codesourcery.com>
10112
10113         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10114         (Token, Stmt): Remove structs.
10115         (decls, vars, fns): Remove variables.
10116         (alloc_comment, append_stmt, is_keyword): Remove macros.
10117         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10118         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10119         (parse_init, parse_file): Remove functions.
10120         (read_file): Accept a pointer to a length and store into it.
10121         (process): Don't try to parse the input file, just write it out as
10122         a string, but looking for maps.  Also write out the length.
10123         (main): Don't use "-S" to compile PTX code.
10124
10125 2015-10-02  Jeff Law  <law@redhat.com>
10126
10127         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10128         fixups.
10129
10130 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10131
10132         PR target/67822
10133         * config/nvptx/mkoffload.c (main): Scan the argument vector for
10134         -fopenmp, and skip generating an offloading image if specified.
10135
10136 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
10137
10138         * system.h (ROUND_UP): New macro definition.
10139         (ROUND_DOWN): Ditto.
10140         * ggc-page.c (ROUND_UP): Remove local macro definition.
10141         (PAGE_ALIGN): Implement using ROUND_UP macro.
10142
10143         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10144         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10145         to align values.
10146         (ix86_compute_frame_layout): Ditto.
10147         (ix86_expand_prologue): Ditto.
10148         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10149         to round down values.
10150         (expand_set_or_movmem_via_rep): Ditto.
10151
10152 2015-10-02  Marek Polacek  <polacek@redhat.com>
10153
10154         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10155
10156 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
10157
10158         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10159         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10160         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10161         (free_gimple_bb): Renamed free_gimple_poly_bb.
10162         (try_generate_gimple_bb): Hoist loop invariant code.
10163         (analyze_drs_in_stmts): Same.
10164         (build_scop_drs): Call renamed functions.
10165         (new_pbb_from_pbb): Same.
10166         (scop_ivs_can_be_represented): Delete as functionality now moved to
10167         graphite-scop-detection.c
10168         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10169
10170 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
10171
10172         * graphite-scop-detection.c (stmt_has_side_effects): New function
10173           outlined from stmt_simple_for_scop_p.
10174         (graphite_can_represent_stmt): Same.
10175         (stmt_simple_for_scop_p): Moved code out of this function for better
10176         readability.
10177
10178 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10179
10180         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10181         F_AVX512IFMA.
10182         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10183
10184 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10185
10186         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10187
10188 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10189
10190         PR rtl-optimization/67756
10191         * lra-constraints.c (match_reload): Add a new parameter.  Use it
10192         for creating a pseudo with the same value.
10193         (curr_insn_transform): Pass a new argument to match_reload.
10194
10195 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10196
10197         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10198         (expand_vec_perm_even_odd_1): Handle V64QImode.
10199         (ix86_expand_vec_perm_const_1): Try expansion with
10200         expand_vec_perm_even_odd_trunc as well.
10201         * config/i386/sse.md (VI124_AVX512F): Rename to ...
10202         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10203         to V54QI.
10204         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10205         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10206         to V32HI and V16SI.
10207         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10208         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10209         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10210         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10211         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10212         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10213
10214 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10215
10216         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10217         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10218
10219 2015-10-02  Jason Merrill  <jason@redhat.com>
10220
10221         PR c/59218
10222         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10223         (diagnose_tm_1_op): Also diagnose volatile accesses in
10224         transaction_safe function.
10225
10226 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
10227
10228         * system.h (malloc.h): Don't include obsolete header.
10229
10230 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10231
10232         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10233         (TLS_SECTION_ASM_FLAG): Delete.
10234
10235 2015-10-02  Marek Polacek  <polacek@redhat.com>
10236
10237         PR c/64249
10238         * doc/invoke.texi: Document -Wduplicated-cond.
10239         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10240         (insn-dfatab.o): Likewise.
10241         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10242         warning.
10243
10244 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
10245
10246         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10247         sequences.
10248
10249 2015-10-02  Renlin Li  <renlin.li@arm.com>
10250
10251         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10252
10253 2015-10-02  Renlin Li  <renlin.li@arm.com>
10254
10255         PR target/66776
10256         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10257
10258 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10259
10260         PR rtl-optimization/67786
10261         PR rtl-optimization/67787
10262         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10263         it modifies a reg used in the condition calculation.
10264
10265 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
10266
10267         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10268         alternatives for reads from memory and moves from general-purpose
10269         registers.
10270         (*aarch64_combinez_be<mode>): Likewise.
10271
10272 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
10273
10274         PR target/51726
10275         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10276         selectany within this function without need to keep attribute.
10277         (i386_pe_encode_section_info): Remove selectany-code.
10278
10279 2015-10-02  Richard Biener  <rguenther@suse.de>
10280
10281         * tree-ssa-sccvn.c (has_VN_INFO): New function.
10282         (free_scc_vn): Use it.
10283         (visit_use): Remove dead code and refactor to use gassign
10284         and use less indentation.
10285
10286 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10287
10288         PR target/67788
10289         PR target/67789
10290         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10291         (rs6000_cannot_copy_insn_p): New function.
10292         * config/rs6000/rs6000.md (cannot_copy): New attribute.
10293         (load_toc_v4_PIC_1_normal): Set cannot_copy.
10294         (load_toc_v4_PIC_1_476): Ditto.
10295
10296 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10297
10298         * graphite-scop-detection.c (struct sese_l): New conversion constructor
10299         so that this type can be pushed into a vec.
10300         (class scop_builder): use sese_l to collect scops.
10301         (get_scops): New getter function.
10302         (remove_intersecting_scops): Use sese_l instead of scops_p.
10303         (intersects): Same.
10304         (add_scop): Same.
10305         (subsumes): Same.
10306         (remove_subscops): Same.
10307         (build_scops): Add scops to vec<scops_p> once all the scops have been
10308         detected.
10309
10310 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10311
10312         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10313         Renamed type from gimple_bb_p to gimple_poly_bb_p.
10314         (translate_isl_ast_node_user): Same.
10315         * graphite-poly.c (new_poly_bb): Same.
10316         * graphite-poly.h (gbb_from_bb): Same.
10317         * sese.h: Same.
10318         * graphite-sese-to-poly.c (new_gimple_bb):
10319         gimple_bb_p -> gimple_poly_bb_p
10320         (build_scop_scattering): Same.
10321         (find_params_in_bb): Same.
10322         (add_conditions_to_domain): Same.
10323         (sese_dom_walker::before_dom_children): Same.
10324         (analyze_drs_in_stmts): Same.
10325         (new_pbb_from_pbb): Same.
10326         (free_data_refs_aux): New pointer to type base_alias_pair.
10327         * graphite-sese-to-poly.h: Same.
10328         * sese.c (if_region_set_false_region): Fixed Indentation.
10329         (move_sese_in_condition): Same.
10330
10331 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10332             Aditya Kumar  <aditya.k7@samsung.com>
10333
10334         PR tree-optimization/66980
10335         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10336         when data reference analysis has failed.
10337
10338 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10339             Aditya Kumar  <aditya.k7@samsung.com>
10340
10341         PR tree-optimization/67754
10342         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10343         scev analysis on the same loop nest as analyze_drs_in_stmts.
10344         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10345         renamed...
10346         (try_generate_gimple_bb): Call outermost_loop_in_sese.
10347         (analyze_drs_in_stmts): Same.
10348         * sese.c (outermost_loop_in_sese): ...here.
10349
10350 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10351             Aditya Kumar  <aditya.k7@samsung.com>
10352
10353         PR tree-optimization/67754
10354         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10355         recursion on the inner loops.
10356
10357 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10358
10359         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10360         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10361         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10362         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10363         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10364
10365 2015-10-01  Marek Polacek  <polacek@redhat.com>
10366
10367         PR c/65345
10368         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10369         create_tmp_var_raw rather than create_tmp_var.
10370
10371 2015-10-01  Marek Polacek  <polacek@redhat.com>
10372
10373         PR tree-optimization/67769
10374         * tree-ssa-phiopt.c (conditional_replacement): Call
10375         reset_flow_sensitive_info_in_bb.
10376         (minmax_replacement): Likewise.
10377         (abs_replacement): Likewise.
10378
10379 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
10380
10381         * builtins.c: Don't include gomp-constants.h.
10382         (fold_builtin_1): Don't fold acc_on_device here.
10383         * gimple-fold.c: Include gomp-constants.h.
10384         (gimple_fold_builtin_acc_on_device): New.
10385         (gimple_fold_builtin): Call it.
10386
10387 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10388
10389         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10390         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10391
10392 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
10393
10394         * config/arm/aarch-common-protos.h
10395         (aarch_accumulator_forwarding): New.
10396         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10397         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10398         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10399         * config/arm/cortex-a53.md: Rewrite.
10400
10401 2015-10-01  Richard Biener  <rguenther@suse.de>
10402
10403         * gimple-match.h (mprts_hook): Declare.
10404         * gimple-match.head.c (mprts_hook): Define.
10405         (maybe_push_res_to_seq): Use new hook.
10406         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10407         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10408         (vn_ssa_aux::has_constants): Remove.
10409         * tree-ssa-sccvn.c: Include gimple-match.h.
10410         (VN_INFO_GET): Assert we don't re-use SSA names.
10411         (vn_get_expr_for): Remove.
10412         (expr_has_constants): Likewise.
10413         (stmt_has_constants): Likewise.
10414         (simplify_binary_expression): Likewise.
10415         (simplify_unary_expression): Likewise.
10416         (vn_lookup_simplify_result): New hook.
10417         (visit_copy): Adjust.
10418         (visit_reference_op_call): Likewise.
10419         (visit_phi): Likewise.
10420         (visit_use): Likewise.
10421         (process_scc): Likewise.
10422         (init_scc_vn): Likewise.
10423         (visit_reference_op_load): Likewise.  Use match-and-simplify and
10424         a gimple seq for inserted expressions.
10425         (try_to_simplify): Remove GENERIC stmt combining code.
10426         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10427         * tree-ssa-pre.c (eliminate_insert): Adjust.
10428         (eliminate_dom_walker::before_dom_children): Likewise.
10429
10430 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10431
10432         * doc/invoke.texi (Optimization Options): Add
10433         -freorder-blocks-algorithm=.
10434         (Optimize Options) <-O>: Add -freorder-blocks.
10435         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
10436         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10437         <-freorder-blocks>: Also enabled at levels -O and -Os.
10438         <-freorder-blocks-algorithm=>: Document new option.
10439
10440 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10441
10442         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10443         with flag_reorder_blocks_algorithm.
10444         * common.opt (freorder-blocks-algorithm=): New flag.
10445         (reorder_blocks_algorithm): New enum.
10446         * flag-types.h (reorder_blocks_algorithm): New enum.
10447         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10448         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10449
10450 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10451
10452         * bb-reorder.c: Add intro comment.
10453         (reorder_basic_blocks_software_trace_cache): Print a header to
10454         the dump file.
10455         (edge_order): New function.
10456         (reorder_basic_blocks_simple): New function.
10457         (reorder_basic_blocks): Choose between the STC and the simple
10458         algorithms (always choose the former).
10459
10460 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10461
10462         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10463         function, factored out from ...
10464         (reorder_basic_blocks): ... here.
10465
10466 2015-10-01  Tom de Vries  <tom@codesourcery.com>
10467
10468         * tree-cfg.c (dump_function_to_file): Dump function attributes using
10469         __attribute__(()) string.  Move dumping of function attributes to before
10470         function name.
10471
10472 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
10473
10474         PR target/66870
10475         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10476         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10477         based on gold linker version.
10478         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10479         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10480         * configure, config.in: Regenerate.
10481
10482 2015-10-01  Alan Modra  <amodra@gmail.com>
10483
10484         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10485         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10486         (rs6000_output_mi_thunk): Likewise.
10487
10488 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10489
10490         * config/nvptx/mkoffload.c (process): Change offload data format.
10491
10492 2015-09-30  Jeff Law  <law@redhat.com>
10493
10494         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10495         with constant conditions.
10496         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10497         (remove_ctrl_stmt_and_useless_edges): No longer static.
10498         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10499         (remove_ctrl_stmt_and_useless_edges): Likewise.
10500
10501 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10502             Cesar Philippidis  <cesar@codesourcery.com>
10503
10504         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10505         (TARGET_GOACC_VALIDATE_DIMS): Override.
10506         * target.def (TARGET_GOACC): New target hook prefix.
10507         (validate_dims): New hook.
10508         * targhooks.h (default_goacc_validate_dims): New.
10509         * omp-low.c (oacc_validate_dims): New.
10510         (execute_oacc_device_lower): New.
10511         (default_goacc_validate_dims): New.
10512         (pass_data_oacc_device_lower): New.
10513         (pass_oacc_device_lower): New pass.
10514         (make_pass_oacc_device_lower): New.
10515         * tree-pass.h (make_pass_oacc_device_lower): Declare.
10516         * passes.def (pass_oacc_device_lower): Add it.
10517         * doc/tm.texi: Rebuilt.
10518         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10519         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10520
10521 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10522
10523         PR rtl-optimization/67037
10524         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10525
10526 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
10527
10528         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10529         * passes.c: Include tree-ssanames.h.
10530         (execute_function_todo): Flush the pending free SSA_NAMEs after
10531         eliminating unreachable basic blocks.
10532         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10533         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10534         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10535         (flush_ssanames_freelist): New function.
10536         (release_ssaname_fn): Put released names on the queue.
10537         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10538         * tree-ssanames.h (flush_ssanames_freelist): Declare.
10539
10540 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10541
10542         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10543         (generate_target_descr_file, generate_target_offloadend_file)
10544         (generate_host_descr_file, prepare_target_image): Pass it on.
10545         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10546         (compile_native, main): Pass it on.
10547         * lto-wrapper.c (compile_offload_image): Likewise.
10548
10549 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10550             Ilya Verbin  <ilya.verbin@intel.com>
10551             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10552
10553         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10554         (prepare_target_image, main): Refactor argv building to use
10555         obstacks.
10556
10557 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10558
10559         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10560         * config/spu/spu.c (spu_expand_atomic_op): New function.
10561         * config/spu/spu.md (AINT): New mode iterator.
10562         (ATOMIC): New code iterator.
10563         (atomic_name, atomic_pred): New code predicates.
10564         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10565         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10566         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10567         "atomic_<atomic_name>_fetch<mode>"): Likewise.
10568
10569 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
10570
10571         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10572         debug insns.
10573         (scalar_chain::convert_reg): Likewise.
10574
10575 2015-09-30  Richard Biener  <rguenther@suse.de>
10576
10577         * builtins.c: Add comment that no new simplifications should
10578         be added here.
10579
10580 2015-09-30  Marek Polacek  <polacek@redhat.com>
10581
10582         PR tree-optimization/67690
10583         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10584         reset_flow_sensitive_info_in_bb.
10585         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10586         * tree-ssanames.c: Include "gimple-iterator.h".
10587         (reset_flow_sensitive_info_in_bb): New function.
10588         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10589
10590 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10591
10592         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10593         variable, replacing it with...
10594         (offload_abi): ... this new variable.  Adjust all users.
10595         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10596
10597 2015-09-30  Matthias Klose  <doko@ubuntu.com>
10598
10599         * configure.ac: Remove extraneous ;;.
10600         * configure: Regenerate.
10601
10602 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
10603
10604         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10605         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10606         predicate, disallow register for operand 2.
10607
10608 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
10609
10610         * graphite-dependences.c (scop_get_dependences): Moved in down
10611         in order to be visible to its caller.
10612         * graphite-poly.h: Removed compute_deps, and extend_schedule.
10613
10614 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10615             Aditya Kumar  <aditya.k7@samsung.com>
10616
10617         PR tree-optimization/67754
10618         * graphite-optimize-isl.c (optimize_isl): Call
10619         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10620
10621 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10622
10623         * builtins.c (expand_builtin_acc_on_device): Delete.
10624         (expand_builtin): Don't call it.
10625         (fold_builtin_1): Fold acc_on_device.
10626
10627 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10628
10629         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10630         (ix86_nsaved_sseregs): Likewise.
10631
10632 2015-09-29  Jeff Law  <law@redhat.com>
10633
10634         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10635         computation of unused value.
10636
10637         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10638         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10639         inline macro expansion.
10640
10641         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10642
10643         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10644         (gen_shl_sext): Likewise.
10645         * config/sh/sh.md (divsi3): Likewise.
10646         (imm->ext_dest_operand splitter): Likewise.
10647
10648 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10649             Aditya Kumar  <aditya.k7@samsung.com>
10650
10651         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10652         (nb_data_writes_in_bb): Remove.
10653         (split_pbb): Remove.
10654         (split_reduction_stmt): Remove.
10655         (is_reduction_operation_p): Remove.
10656         (phi_contains_arg): Remove.
10657         (follow_ssa_with_commutative_ops): Remove.
10658         (detect_commutative_reduction_arg): Remove.
10659         (detect_commutative_reduction_assign): Remove.
10660         (follow_inital_value_to_phi): Remove.
10661         (edge_initial_value_for_loop_phi): Remove.
10662         (initial_value_for_loop_phi): Remove.
10663         (used_outside_reduction): Remove.
10664         (detect_commutative_reduction): Remove.
10665         (translate_scalar_reduction_to_array_for_stmt): Remove.
10666         (remove_phi): Remove.
10667         (dr_indices_valid_in_loop): Remove.
10668         (close_phi_written_to_memory): Remove.
10669         (translate_scalar_reduction_to_array): Remove.
10670         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10671         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10672         (rewrite_commutative_reductions_out_of_ssa): Remove.
10673         (build_poly_scop): Remove call to
10674         rewrite_commutative_reductions_out_of_ssa.
10675
10676 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
10677
10678         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10679         Add new insn types for vector load and store pairs.
10680         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10681         types "neon_ldp{,_q}".
10682         * config/arm/cortex-a57.md (neon_load_c): Add insn types
10683         "neon_ldp{,_q}".
10684         (neon_store_complex): Add insn types "neon_stp{,_q}".
10685         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10686         "neon_{ldp,stp}_q".
10687
10688 2015-09-29  Jeff Law  <law@redhat.com>
10689
10690         * config/rx/constraints.md (Int08): Fix undefined left shift
10691         behaviour.
10692         (Sint08, Sint16, Sint24): Likewise.
10693         * config/rx/rx.c (rx_get_stack_layout): Likewise.
10694
10695         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10696         behaviour.
10697
10698         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10699         left shift behaviour.
10700         * config/msp430/constraints.md ('L' constraint): Similarly.
10701         ('Ys' constraint): Similarly.
10702
10703 2015-09-29  Richard Biener  <rguenther@suse.de>
10704
10705         PR tree-optimization/67170
10706         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10707         the translate function pointer parameter to get the
10708         bool whether to disambiguate only by reference.
10709         (walk_non_aliased_vuses): Likewise.
10710         * tree-ssa-alias.c (maybe_skip_until): Adjust.
10711         (get_continuation_for_phi_1): Likewise.
10712         (get_continuation_for_phi): Likewise.
10713         (walk_non_aliased_vuses): Likewise.
10714         * tree-ssa-sccvn.c (const_parms): New bitmap.
10715         (vn_reference_lookup_3): Adjust for interface change.
10716         Disambiguate parameters pointing to readonly memory.
10717         (free_scc_vn): Free const_parms.
10718         (run_scc_vn): Initialize const_parms from a fn spec attribute.
10719
10720 2015-09-29  Richard Biener  <rguenther@suse.de>
10721
10722         PR tree-optimization/67741
10723         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10724         builtin calls with correct signature.
10725
10726 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
10727
10728         PR target/65105
10729         * config/i386/i386.c: Include dbgcnt.h.
10730         (has_non_address_hard_reg): New.
10731         (convertible_comparison_p): New.
10732         (scalar_to_vector_candidate_p): New.
10733         (remove_non_convertible_regs): New.
10734         (scalar_chain): New.
10735         (scalar_chain::scalar_chain): New.
10736         (scalar_chain::~scalar_chain): New.
10737         (scalar_chain::add_to_queue): New.
10738         (scalar_chain::mark_dual_mode_def): New.
10739         (scalar_chain::analyze_register_chain): New.
10740         (scalar_chain::add_insn): New.
10741         (scalar_chain::build): New.
10742         (scalar_chain::compute_convert_gain): New.
10743         (scalar_chain::replace_with_subreg): New.
10744         (scalar_chain::replace_with_subreg_in_insn): New.
10745         (scalar_chain::emit_conversion_insns): New.
10746         (scalar_chain::make_vector_copies): New.
10747         (scalar_chain::convert_reg): New.
10748         (scalar_chain::convert_op): New.
10749         (scalar_chain::convert_insn): New.
10750         (scalar_chain::convert): New.
10751         (convert_scalars_to_vector): New.
10752         (pass_data_stv): New.
10753         (pass_stv): New.
10754         (make_pass_stv): New.
10755         (ix86_option_override): Created and register stv pass.
10756         (flag_opts): Add -mstv.
10757         (ix86_option_override_internal): Likewise.
10758         * config/i386/i386.md (SWIM1248x): New.
10759         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10760         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10761         (*anddi3_doubleword): New.
10762         (*zext<mode>_doubleword): New.
10763         (*zextsi_doubleword): New.
10764         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10765         (*<code>di3_doubleword): New.
10766         * config/i386/i386.opt (mstv): New.
10767         * dbgcnt.def (stv_conversion): New.
10768
10769 2015-09-29  Tom de Vries  <tom@codesourcery.com>
10770
10771         * tree-cfg.c (dump_function_to_file): Dump function attributes.
10772
10773 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10774
10775         PR target/67716
10776         * config/sh/sh.c (sh_override_options_after_change): New.
10777         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10778         (sh_option_override): Move align_loops, align_jumps and
10779         align_functions handling into sh_override_options_after_change.
10780
10781 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10782
10783         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10784         (nvptx_record_offload_symbol): Record function execution geometry.
10785         * config/nvptx/mkoffload.c (process): Include launch geometry in
10786         function data.
10787         * omp-low.c (oacc_launch_pack): New.
10788         (replace_oacc_fn_attrib): New.
10789         (set_oacc_fn_attrib): New.
10790         (get_oacc_fn_attrib): New.
10791         (expand_omp_target): Create keyed varargs for GOACC_parallel call
10792         generation.
10793         * omp-low.h (get_oacc_fn_attrib): Declare.
10794         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10795         (DEF_FUNCTION_TYPE_VAR_11): Delete.
10796         * tree.h (OMP_CLAUSE_EXPR): New.
10797         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10798
10799 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10800             Sebastian Pop  <s.pop@samsung.com>
10801
10802         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10803
10804 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10805             Sebastian Pop  <s.pop@samsung.com>
10806
10807         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10808         * graphite-scop-detection.c (struct sese_l): New type.
10809         (get_entry_bb): API for getting entry bb of SESE.
10810         (get_exit_bb): API for getting exit bb of SESE.
10811         (class debug_printer): New type.  Simple printer in debug mode.
10812         (trivially_empty_bb_p): New.  Return true when BB is empty or
10813         contains only debug instructions.
10814         (graphite_can_represent_expr): Call scalar_evoution_in_region
10815         instead of analyze_scalar_evolution.  Pass in scop instead of only
10816         the scop entry.
10817         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10818         scop entry.
10819         (stmt_simple_for_scop_p): Same.
10820         (harmful_stmt_in_bb): Same.
10821         (graphite_can_represent_loop): Deleted.
10822         (struct scopdet_info): Deleted.
10823         (scopdet_basic_block_info): Deleted.
10824         (build_scops_1): Deleted.
10825         (bb_in_sd_region): Deleted.
10826         (find_single_entry_edge): Deleted.
10827         (find_single_exit_edge): Deleted.
10828         (create_single_entry_edge): Deleted.
10829         (sd_region_without_exit): Deleted.
10830         (create_single_exit_edge): Deleted.
10831         (unmark_exit_edges): Deleted.
10832         (mark_exit_edges): Deleted.
10833         (create_sese_edges): Deleted.
10834         (build_graphite_scops): Deleted.
10835         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10836         (build_scops): Use the new scop_builder to build scops.
10837         (dot_all_scops_1): Use the new pretty printer.  Print loop father
10838         as well.
10839         (loop_body_is_valid_scop): New.  Return true if loop body is a
10840         valid scop.
10841         (class scop_builder): New.  Builds SCoPs for polyhedral
10842         optimizations.
10843         (scop_builder): New constructor.
10844         (static sese_l invalid_sese): sese_l with invalid edges.
10845         (get_sese): Get an sese (from a loop) if possible, invalid_sese
10846         otherwise.
10847         (get_nearest_dom_with_single_entry): Get nearest dominator of a
10848         basic_block with single entry.  Return NULL if we get to the
10849         beginning of a function.
10850         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10851         a basic_block with single exit.  Return NULL if we get to the
10852         beginning of a function.
10853         (print_sese): Pretty-print SESE.
10854         (merge_sese): Merge two SESEs if possible and return the new SESE.
10855         (build_scop_depth): Start building the SCoP within a loop nest.
10856         (build_scop_breadth): Start building the SCoP at a single loop
10857         depth.  Merge adjacent SESEs if valid.
10858         (can_represent_loop_1): Returns true if Graphite can represent
10859         loop inside SCoP.  Helper for can_represent_loop.
10860         (can_represent_loop): Returns true if Graphite can represent LOOP
10861         and all its nested loops in SCoP.
10862         (loop_is_valid_scop): Returns true if LOOP and all its nests
10863         constitute a valid SCoP.
10864         (region_has_one_loop): Returns true of a region has only one loop.
10865         (add_scop): Add SCoP to the list of valid scops.  Removes an
10866         already existing scop if it intersects with or subsumed by this one.
10867         (harmful_stmt_in_region): Returns true if SCoP has any statment
10868         which cannot be represented by Graphite.
10869         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10870         (remove_subscops): Remove any SCoP from the list of already found
10871         SCoPs, if subsumed by S1.
10872         (intersects): Return true if region bounded by SCoPs S1 and S2
10873         intersect.
10874         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10875         * graphite.c (print_graphite_scop_statistics):
10876         (print_graphite_statistics): Print SCoP info while debugging.
10877         (graphite_initialize): Early exit in case number of loops in a
10878         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10879         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10880         (graphite_finalize):
10881         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10882         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10883         (recompute_all_dominators): Recalculate POST_DOMINATORS.
10884         * tree-cfg.c (print_loops): Print the function name while printing
10885         loops.
10886
10887 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10888             Sebastian Pop  <s.pop@samsung.com>
10889
10890         PR tree-optimization/67700
10891         * graphite-sese-to-poly.c (parameter_index_in_region): Call
10892         invariant_in_sese_p_rec.
10893         (extract_affine): Same.
10894         (rewrite_cross_bb_scalar_deps): Call update_ssa.
10895         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
10896         * sese.h (invariant_in_sese_p_rec): Declare.
10897
10898 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
10899
10900         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10901
10902 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
10903
10904         Revert:
10905         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10906                     Jiong Wang  <jiong.wang@arm.com>
10907
10908         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10909         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10910         (REG_CLASS_NAMES): Likewise.
10911         (REG_CLASS_CONTENTS): Likewise.
10912         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10913         (aarch64_register_move_cost): Likewise.
10914         (aarch64_load_symref_appropriately): Invoke the new added pattern if
10915         possible.
10916         * config/aarch64/constraints.md (Uc0): New constraint.
10917
10918 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
10919
10920         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10921
10922 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
10923
10924         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10925         SECTION_EXCLUDE in XO mapping class.
10926
10927 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10928
10929         PR target/54236
10930         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10931         and handle ne and eq codes.
10932         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10933         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
10934         CONST_INT_P.  Use reverse_condition.
10935         (sh_split_treg_set_expr): Likewise.
10936
10937 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
10938
10939         * config/arm/types.md (type): Add rotate_imm.
10940         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10941         ROR immediate case.
10942         (*rorsi3_insn_uxtw): Likewise.
10943         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10944         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10945         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10946
10947 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10948
10949         PR rtl-optimization/67481
10950         * ifcvt.c (contains_ccmode_rtx_p): New function.
10951         (insn_valid_noce_process_p): Use it.
10952
10953 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10954
10955         PR rtl-optimization/67456
10956         PR rtl-optimization/67464
10957         PR rtl-optimization/67465
10958         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10959         move in the mode of x.  Handle combination of complex and simple
10960         block pairs as well as the case when one is empty.
10961
10962 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10963
10964         * doc/gimple.texi: Update references to gimple_statement_base.
10965         * gdbhooks.py: Likewise.
10966         * gimple.h: Likewise.
10967
10968 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10969
10970         * config/sparc/driver-sparc.c: map LEON to leon3
10971
10972 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10973
10974         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10975           and make it inverse to change default
10976         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10977           supervisor mode
10978         * doc/invoke.texi: Document change of default
10979
10980 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10981
10982         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10983         true on %f0 for a target without FPU.
10984         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10985         without FPU.
10986         (untyped_return): Do not load %f0 for a target without FPU.
10987
10988 2015-09-28  Andrew Pinski  <apinski@cavium.com>
10989
10990         * config/aarch64/aarch64.md (prefetch):
10991         Change the predicate of operand 0 to register_operand.
10992
10993 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
10994
10995         * config/i386/predicates.md (register_sse4nonimm_operand): New
10996         predicate.
10997         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10998         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10999         Use register_sse4nonimm_operand as operand 0 predicate.
11000         (*vec_extractv8hi_sse2): Remove insn pattern.
11001         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11002         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11003
11004 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
11005             Kaz Kojima  <kkojima@gcc.gnu.org>
11006
11007         PR target/67391
11008         * config/sh/sh-protos.h (sh_lra_p): Declare.
11009         * config/sh/sh.c (sh_lra_p): Make non-static.
11010         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11011         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
11012         Expand into addsi3_scr if operands[2] if needed.
11013         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
11014         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
11015         (addsi3_scr, *addsi3): New insn_and_split patterns.
11016
11017 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
11018
11019         PR rtl-optimization/64164
11020         PR tree-optimization/67312
11021         PR middle-end/67340
11022         PR middle-end/67490
11023         PR bootstrap/67597
11024         * cfgexpand.c (parm_in_stack_slot_p): Remove.
11025         (ssa_default_def_partition): Remove.
11026         (get_rtl_for_parm_ssa_default_def): Remove.
11027         (set_rtl): Check that RTL assignments match expectations.
11028         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
11029         default def location for params and results.  Record SSA names
11030         or types in REG and MEM attrs, respectively.
11031         (set_parm_rtl): New.
11032         (expand_one_ssa_partition): Drop logic that assigned MEMs with
11033         unassigned addresses.
11034         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11035         deferred stack alloc vars.
11036         (expand_used_vars): Skip partitions holding parm default defs.
11037         Move adjust_one_expanded_partition_var loop...
11038         (pass_expand::execute): ... here.  Drop redundant assert.
11039         Adjust comments before the final loop over all ssa names.
11040         Require assigned rtl of parms and results to match exactly.
11041         Reset its attributes to match them, not any other variables in
11042         the same partition.
11043         (expand_debug_expr): Use entry value for PARM's default defs
11044         only iff they have zero nondebug uses.
11045         * cfgexpand.h (parm_in_stack_slot_p): Remove.
11046         (get_rtl_for_parm_ssa_default_def): Remove.
11047         (set_parm_rtl): Declare.
11048         * doc/invoke.texi: Improve wording.
11049         * explow.c (promote_decl_mode): Fix promote_function_mode for
11050         result decls not by reference.
11051         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11052         bypass TYPE_MODE to get the actual vector mode.
11053         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
11054         2015-08-19's changes as follows.  Drop include of
11055         basic-block.h and df.h.
11056         (rtl_for_parm): Remove.
11057         (maybe_reset_rtl_for_parm): Remove.
11058         (parm_in_unassigned_mem_p): Remove.
11059         (use_register_for_decl): Add logic for RESULT_DECLs matching
11060         assign_parms' behavior.
11061         (split_complex_args): Revert.
11062         (assign_parms_augmented_arg_list): Revert.  Add comment
11063         referencing the logic above.
11064         (assign_parm_adjust_stack_rtl): Revert.
11065         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
11066         of SET_DECL_RTL.  Set up a REG if the parm demands so.
11067         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
11068         calls into a single set_parm_rtl.  Set up a temporary RTL
11069         temporarily for expand_assignment.
11070         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
11071         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
11072         (assign_bounds): Revert.
11073         (assign_parms): Revert.  Use set_parm_rtl.
11074         (allocate_struct_function): Relayout result and parms of
11075         non-abstruct functions.
11076         (expand_function_start): Revert.  Use set_parm_rtl.  If the
11077         result is not a hard reg, create a pseudo from the promoted
11078         mode of the default def.  Promote static chain mode.
11079         * tree-outof-ssa.c (remove_ssa_form): Drop unused
11080         partition_has_default_def.  Set up
11081         partitions_for_parm_default_defs.
11082         (finish_out_of_ssa): Remove partition_has_default_def.
11083         Release partitions_for_parm_default_defs.
11084         * tree-outof-ssa.h (struct ssaexpand): Remove
11085         partition_has_default_def.  Add
11086         partitions_for_parm_default_defs.
11087         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11088         stor-layout.h.
11089         (build_ssa_conflict_graph): Fix conflict-detection of default
11090         defs of even unused default defs of params and results.
11091         (for_all_parms): New.
11092         (create_default_def): New.
11093         (register_default_def): New.
11094         (coalesce_with_default): New.
11095         (create_outofssa_var_map): Create default defs for all parms
11096         and results, and register their partitions.  Add GIMPLE_RETURN
11097         operands as coalesce candidates with results.  Add default
11098         defs of each parm or result as coalesce candidates with its
11099         other defs.  Mark each result def, and each default def of
11100         parms, as used_in_copy.
11101         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
11102         with the ssa names, even anonymous ones.  Drop
11103         parm_in_stack_slot_p calls.  Require same signedness and
11104         alignment.
11105         (coalesce_ssa_name): Add coalesce candidates for all defs of
11106         each parm and result, even unused ones.
11107         (parm_default_def_partition_arg): New type.
11108         (set_parm_default_def_partition): New.
11109         (get_parm_default_def_partitions): New.
11110         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11111         * tree-ssa-live.c (partition_view_init): Regard unused defs of
11112         parms and results as used.
11113         (verify_live_on_entry): Don't error out just because they're
11114         not live.
11115
11116 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
11117
11118         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11119         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11120         (output_fde): Don't output length for debug_frame on AIX.
11121         (output_call_frame_info): Don't output length for debug_frame on AIX.
11122         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11123         HAVE_XCOFF_DWARF_EXTRAS.
11124         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11125         HAVE_XCOFF_DWARF_EXTRAS.
11126         (output_compilation_unit_header): Don't output length on AIX.
11127         (output_pubnames): Don't output length on AIX.
11128         (output_aranges): Delete argument. Compute length locally. Don't
11129         output length on AIX.
11130         (output_line_info): Don't output length on AIX.
11131         (dwarf2out_finish): Don't compute aranges_length.
11132         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11133         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11134         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11135         symbol decoration for AIX.
11136         (rs6000_xcoff_debug_unwind_info): New.
11137         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11138         for SECTION_DEBUG.
11139         (rs6000_xcoff_declare_function_name): Emit different
11140         .function pseudo-op when DWARF2_DEBUG. Don't call
11141         xcoffout_declare_function for DWARF2_DEBUG.
11142         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11143         Redefine.
11144         * config/rs6000/aix71.h: New.
11145         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11146         locations support.
11147         * configure: Regenerate.
11148         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11149         DWARF support.
11150
11151 2015-09-26  Jeff Law  <law@redhat.com>
11152
11153         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11154         behaviour.
11155         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11156         behaviour.
11157
11158         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11159         behaviour
11160
11161         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11162         undefined behaviour.
11163
11164         * config/cris/cris.md (asrandb): Fix left shift undefined
11165         behaviour.
11166         (asrandw): Likewise.
11167
11168 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11169
11170         PR target/61578
11171         * lra-constarints.c (match_reload): Check presence of the input pseudo
11172         in the output operand.
11173
11174 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11175
11176         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11177
11178 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11179
11180         * doc/invoke.texi (-fsanitize): Update URLs.
11181
11182 2015-09-25  Teresa Johnson  <tejohnson@google.com>
11183
11184         * opts.c (finish_options): Unset -freorder-blocks-and-partition
11185         if not using profile.
11186
11187 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11188
11189         PR pretty-print/67567
11190         * pretty-print.c (pp_string): Add gcc_checking_assert.
11191         * pretty-print.h (output_buffer_append_r): Likewise.
11192
11193 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
11194
11195         PR target/67675
11196         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11197         addr2 individually.  Don't emit logical or insn if one is known to
11198         be aligned approriately.
11199         (sh_expand_cmpnstr): Likewise.
11200
11201 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
11202
11203         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11204         __builtin_aarch64_fp[sc]r arguments into a register.
11205
11206 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
11207
11208         * config.gcc (x86_archs): Replace lakemount with lakemont.
11209         (with_cpu): Likewise.
11210         (with_arch): Likewise.
11211         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11212         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
11213         __tune_lakemount__ with __tune_lakemont__.
11214         * config/i386/i386.c (lakemount_cost): Renamed to ...
11215         (lakemont_cost): This.
11216         (m_LAKEMOUNT): Renamed to ...
11217         (m_LAKEMONT): This.
11218         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11219         (processor_target_table): Replace "lakemount" with "lakemont".
11220         (processor_alias_table): Likewise.
11221         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11222         PROCESSOR_LAKEMONT.
11223         (ix86_adjust_cost): Likewise.
11224         (ia32_multipass_dfa_lookahead): Likewise.
11225         * config/i386/i386.h (processor_type): Likewise.
11226         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11227         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
11228         Lakemount with Lakemont.
11229
11230 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
11231
11232         * config.gcc (x86_archs): Replace iamcu with lakemount.
11233         (with_cpu): Likewise.
11234         (with_arch): Likewise.
11235         * doc/invoke.texi: Likewise.
11236         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11237         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
11238         __tune_iamcu__ with __tune_lakemount__.
11239         * config/i386/i386.c (iamcu_cost): Renamed to ...
11240         (lakemount_cost): This.
11241         (m_IAMCU): Renamed to ...
11242         (m_LAKEMOUNT): This.
11243         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11244         (processor_target_table): Replace "iamcu" with "lakemount".
11245         (processor_alias_table): Likewise.
11246         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11247         PROCESSOR_LAKEMOUNT.
11248         (ix86_adjust_cost): Likewise.
11249         (ia32_multipass_dfa_lookahead): Likewise.
11250         * config/i386/i386.h (processor_type): Likewise.
11251         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11252
11253 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
11254
11255         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11256         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11257         Declare.
11258         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11259         (pa_expand_compare_and_swap_loop): New.
11260         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11261         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11262         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11263         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11264         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11265         Revise.
11266
11267 2015-09-24  Michael Collison  <michael.collison@linaro.org>
11268
11269         PR other/57195
11270         * read-md.c (read_name): Allow mode iterators inside angle
11271         brackets in rtl expressions.
11272
11273 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
11274
11275         PR target/61578
11276         * ira-color.c (update_allocno_cost): Add parameter.
11277         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
11278         parameter.
11279
11280 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11281
11282         PR driver/67640
11283         * opts-common.c (prune_options): Discard all -fdiagnostics-color
11284         but the last one, which is moved to the front to be processed
11285         first.
11286         * opts.c (enable_warning_as_error): Reject options that do not
11287         control warnings.
11288
11289 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11290
11291         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11292
11293 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11294
11295         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11296         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11297         (aarch64_cannot_force_const_mem): Likewise.
11298         (aarch64_classify_address): Likewise.
11299         (aarch64_classify_symbolic_expression): Likewise.
11300         (aarch64_print_operand): Likewise.
11301         (aarch64_classify_symbol): Likewise.
11302         (aarch64_mov_operand_p): Likewise.
11303         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11304         (aarch64_mov_operand): Likewise.
11305
11306 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
11307
11308         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11309         for info->spe_gp_size.
11310
11311 2015-09-24  Richard Biener  <rguenther@suse.de>
11312
11313         PR lto/67699
11314         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11315         abstract origins.
11316
11317 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
11318
11319         * tree-object-size.c (plus_stmt_object_size)
11320         (cond_expr_object_size): Change the formal parameters from gimple
11321         to gimple *.
11322         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11323         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11324         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11325
11326 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11327
11328         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11329         Check for ld -type pie on Solaris 11.x and 12.
11330         * configure: Regenerate.
11331         * config.in: Regenerate.
11332
11333         * gcc.c (LD_PIE_SPEC): Allow redefinition.
11334
11335         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11336         (STARTFILE_SPEC): Use it.
11337         (ENDFILE_CRTEND_SPEC): Define.
11338         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11339         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11340         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11341         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11342         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11343         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11344         (ENDFILE_ARCH_SPEC): Define.
11345         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11346
11347 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11348
11349         * configure.ac (gcc_cv_solaris_crts): New test.
11350         * configure. Regenerate.
11351         * config.in: Regenerate.
11352         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11353         HAVE_SOLARIS_CRTS variant.
11354
11355 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11356
11357         * tree-inline.h (count_insns_seq): Delete prototype.
11358         (estimate_num_insns_seq): Define prototype.
11359         * tree-inline.c (count_insns_seq): Delete.
11360         (estimate_num_insns_seq): Remove static qualifier.
11361         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11362         with estimate_num_insns_seq.
11363
11364 2015-09-24  Richard Biener  <rguenther@suse.de>
11365
11366         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11367         members.
11368         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11369         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
11370         offset.
11371         (ao_ref_init_from_vn_reference): Record clique and base in the
11372         built base.
11373         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11374
11375 2015-09-24  Richard Biener  <rguenther@suse.de>
11376
11377         PR tree-optimization/48885
11378         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11379         as not including any restrict tags from other pointers.
11380
11381 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11382
11383         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11384         character when appending to offload_targets.
11385
11386         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11387         offload targets by commas, not colons.
11388         * config.in: Regenerate.
11389         * configure: Likewise.
11390         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11391         instead of setting up the default offload targets here...
11392         (process_command): ..., do it here.
11393         libgomp/
11394         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11395         targets are separated by commas.
11396         * config.h.in: Regenerate.
11397
11398 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11399             Nathan Sidwell  <nathan@codesourcery.com>
11400
11401         * omp-low.h (omp_reduction_init_op): Declare.
11402         * omp-low.c (omp_reduction_init_op): New, broken out of ...
11403         (omp_reduction_init): ... here.  Call it.
11404         * tree-parloops.c (initialize_reductions): Use
11405         omp_reduction_init_op.
11406
11407 2015-09-23   Richard Biener  <rguenther@suse.de>
11408
11409         PR middle-end/67662
11410         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11411         undefined overflow unless they will cancel out.
11412
11413 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11414
11415         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11416         insn emit.
11417
11418 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11419
11420         PR c/49655
11421         * opts.h (write_langs): Declare.
11422         * opts-global.c (write_langs): Make it extern.
11423
11424 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
11425
11426         PR target/67391
11427         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11428         overlapping regs when matching the pattern.
11429
11430 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
11431
11432         * config/aarch64/aarch64-simd.md
11433         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11434         (aarch64_float_truncate_hi_v4sf_le): New.
11435         (aarch64_float_truncate_hi_v4sf_be): Likewise.
11436
11437 2015-09-23  Richard Biener  <rguenther@suse.de>
11438
11439         * tree-ssa-structalias.c (intra_create_variable_infos): Build
11440         representatives for all restrict qualified pointer destinations.
11441
11442 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11443
11444         * config/i386/i386.md (define_code_attr mshift): New.
11445         (define_mode_iterator SWI1248_AVX512BW): Rename ...
11446         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11447         only.
11448         (define_insn "*k<logic><mode>"): Use new iterator name.
11449         (define_insn "*<mshift><mode>3"): New.
11450
11451 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
11452
11453         PR middle-end/67649
11454         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11455         mark the block as accessible.
11456
11457 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
11458
11459         * function.c (thread_prologue_and_epilogue_insns): Delete
11460         orig_entry_edge argument to try_shrink_wrapping.
11461         * shrink-wrap.c (can_get_prologue): New function.
11462         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11463         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
11464         can_get_prologue where needed.  Remove code that finds a single
11465         edge for the prologue.  Remove code that tests if any reg clobbered
11466         by the prologue is live on the prologue edge.  Remove code that finds
11467         the new prologue edge after duplicating blocks.  Make a new prologue
11468         block and edge.
11469         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11470
11471 2015-09-22  Jeff Law  <law@redhat.com>
11472
11473         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11474         behavior.
11475
11476 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
11477
11478         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
11479         -Wtemplates, -Wnamespaces): Document.
11480
11481 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11482
11483         PR tree-optimization/67671
11484         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11485         pointer references as restrict.
11486
11487 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11488
11489         * config/nios2/nios2.c (nios2_legitimize_address): When handling
11490         'reg + reloc' cases, allow first operand to be non-REG, and use
11491         force_reg() to enforce address pattern.
11492
11493 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
11494
11495         PR target/67480
11496         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11497         (define_mode_iterator VI12_AVX_AVX512F): New.
11498         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11499         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11500         (define_insn "*<code><mode>3"): ... Into new pattern using
11501         VI12_AVX_AVX512F iterators without masking.
11502
11503 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11504
11505         * config.gcc: Support "skylake-avx512".
11506         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11507         PROCESSOR_SKYLAKE_AVX512.
11508         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11509         (processor_target_table): Add "skylake-avx512".
11510         (PTA_SKYLAKE_AVX512): Define.
11511         (ix86_option_override_internal): Add "skylake_avx512".
11512         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11513         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11514         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11515         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11516         * doc/invoke.texi (skylake-avx512): New.
11517
11518 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11519
11520         * config/i386/i386.md (define_insn "kunpckhi"): Fix
11521         operand in pattern.
11522         (define_insn "kunpcksi"): Ditto.
11523         (define_insn "kunpckdi"): Ditto.
11524
11525 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11526
11527         * config/i386/i386.md (define_split not/xor SWI1248x): Use
11528         iterator instead of fixed modes.
11529
11530 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11531
11532         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11533         Adjust declaration.
11534         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11535         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
11536         out_result.  Update to support update-fetch operations.
11537         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11538         Adjust for change to aarch64_gen_atomic_ldop.
11539         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11540         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11541         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11542         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11543         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11544
11545 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11546
11547         * config/aarch64/aarch64-protos.h
11548         (aarch64_atomic_ldop_supported_p): Declare.
11549         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11550         (enum aarch64_atomic_load_op_code): New.
11551         (aarch64_emit_atomic_load_op): New.
11552         (aarch64_gen_atomic_ldop): Update to support load-operate
11553         patterns.
11554         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11555         to an expander.
11556         (aarch64_atomic_<atomic_optab><mode>): New.
11557         (aarch64_atomic_<atomic_optab><mode>_lse): New.
11558         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11559         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11560         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11561
11562 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11563
11564         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11565         (UNSPECV_ATOMIC_LDOP_OR): New.
11566         (UNSPECV_ATOMIC_LDOP_BIC): New.
11567         (UNSPECV_ATOMIC_LDOP_XOR): New.
11568         (UNSPECV_ATOMIC_LDOP_PLUS): New.
11569         (ATOMIC_LDOP): New.
11570         (atomic_ldop): New.
11571         (aarch64_atomic_load<atomic_ldop><mode>): New.
11572
11573 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11574
11575         * config/aarch64/aarch64.md
11576         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11577         pattern.
11578
11579 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11580
11581         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11582         Declare.
11583         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11584         (aarch64_gen_atomic_ldop): New.
11585         (aarch64_split_atomic_op): Fix whitespace and add a comment.
11586         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11587         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11588         (atomic_exchange<mode>): Replace with an expander.
11589         (aarch64_atomic_exchange<mode>): New.
11590         (aarch64_atomic_exchange<mode>_lse): New.
11591         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11592         (aarch64_atomic_swp<mode>): New.
11593
11594 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11595
11596         * tree-inline.c (expand_call_inline): Use inform for extra note.
11597         Do not give a note with UNKNOWN_LOCATION.
11598         Replace input_location with gimple_location (stmt).
11599         Use true/false instead of TRUE/FALSE.
11600
11601 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11602
11603         PR tree-optimization/67666
11604         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11605         with single field non-conservative.
11606
11607 2015-09-21  David S. Miller  <davem@davemloft.net>
11608
11609         PR/67622
11610         Revert:
11611         2015-09-11  David S. Miller  <davem@davemloft.net>
11612
11613         * config/sparc/constraints.md: Make "U" constraint a real register
11614         constraint.
11615         * config/sparc/sparc.c (TARGET_LRA_P): Define.
11616         (D_MODES, DF_MODES): Add missing cast.
11617         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11618         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11619         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11620         cost to 8.
11621         * config/sparc/sparc.h (PROMOTE_MODE): Define.
11622         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11623         provide these insn when flag_pic.
11624
11625         2015-09-17  David S. Miller  <davem@davemloft.net>
11626
11627         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11628         Declare.
11629         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11630         function.
11631         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11632         (HARD_REGNO_CALLER_SAVE_MODE): Define.
11633         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11634         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11635         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11636         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11637         provide when flag_pic.
11638
11639 2015-09-21  Jeff Law  <law@redhat.com>
11640
11641         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11642         behavior.
11643
11644 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11645
11646         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11647
11648 2015-09-21  Richard Biener  <rguenther@suse.de>
11649
11650         * passes.c (rest_of_decl_compilation): Do not call
11651         dwarf2out_early_global_decl for aliases.
11652
11653 2015-09-21  Richard Biener  <rguenther@suse.de>
11654
11655         PR debug/67664
11656         * dwarf2out.c (add_location_or_const_value_attribute): Remove
11657         attribute parameter.  Early exit if either DW_AT_const_value
11658         or DW_AT_location are present already.
11659         (gen_variable_die): Adjust caller.
11660         (dwarf2out_late_global_decl): Likewise.
11661
11662 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11663
11664         PR target/67657
11665         * config/sh/sh.c (sh_remove_overlapping_post_inc,
11666         sh_peephole_emit_move_insn): Add new functions.
11667         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11668         sh_peephole_emit_move_insn): Declere them.
11669         * config/sh/sh.md: Use them in various peephole2 patterns.
11670
11671 2015-09-21  Richard Biener  <rguenther@suse.de>
11672
11673         PR middle-end/67651
11674         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11675         address with -fno-delete-null-pointer-checks.
11676
11677 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
11678
11679         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11680         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11681         (reduc_uplus_v16qi): Remove.
11682
11683         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11684         (reduc_<VEC_reduc_name>_v2df): Remove.
11685         (reduc_<VEC_reduc_name>_v4sf): Remove.
11686         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11687
11688         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11689         gen_ function by removing * prefix.
11690         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11691
11692 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11693
11694         PR middle-end/60832
11695         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11696         Print i_bound without converting it to a tree.
11697
11698 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
11699
11700         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11701         operands[4] operands[5] swap with std::swap, removed tmp variable.
11702         (arm_evpc_neon_vzip): Replaced in0/in1 and
11703         out0/out1 swaps with std::swap, removed x variable.
11704         (arm_evpc_neon_vtrn): Replaced in0/int1 and
11705         out0/out1 swaos with std::swap, removed x variable.
11706         (arm_expand_vec_perm_const_1): Replaced
11707         d->op0/d->op1 swap with std::swap, removed x variable.
11708         (arm_evpc_neon_vuzp): Replaced in0/in1 and
11709         out0/out1 swaps with std::swap, removed x variable.
11710
11711 2015-09-21  Jonathan Yong  <10walls@gmail.com>
11712
11713         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11714         sysroot/usr/lib/32api for additional win32 libraries,
11715         fixes failing Cygwin bootstrapping.
11716
11717 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11718
11719         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11720
11721 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11722
11723         PR target/67126
11724         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11725         (*mov_t_msb_neg): Rewrite negc pattern.
11726
11727 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11728
11729         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11730         immediate generation code.
11731
11732 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11733
11734         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11735         redundant immediate generation code.
11736
11737 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11738
11739         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11740         (AARCH64_NUM_BITMASKS): Remove.
11741         (aarch64_bitmasks_cmp): Remove.
11742         (aarch64_build_bitmask_table): Remove.
11743
11744 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11745
11746         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11747         slow immediate matching loops with a faster algorithm.
11748
11749 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11750
11751         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11752         faster algorithm.
11753
11754 2015-09-20  Jeff Law  <law@redhat.com>
11755
11756         PR tree-optimization/47679
11757         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11758         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11759         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11760         (thread_through_normal_block): Use record_temporary_equivalences.
11761
11762 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
11763
11764         * coretypes.h (gimple): Change typedef to be a forward declaration.
11765         * gimple.h (gimple_statement_base): rename to gimple.
11766         * (all functions and types using gimple): Adjust.
11767         * *.[ch]: Likewise.
11768
11769 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
11770             David Edelsohn  <dje.gcc@gmail.com>
11771
11772         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11773         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11774         (EH_FRAME_THROUGH_COLLECT2): Define.
11775         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11776         (ASM_OUTPUT_DWARF_PCREL): Define.
11777         (ASM_OUTPUT_DWARF_DATAREL): Define.
11778
11779 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
11780
11781         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11782         of TARGET_ELF32.
11783
11784 2015-09-18  Jeff Law  <law@redhat.com>
11785
11786         PR tree-optimization/47679
11787         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
11788         it here ...
11789         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11790         object.  Update constructor.
11791         (pass_dominator::execute):  Corresponding chagnes to declaration
11792         and initialization of avail_exprs_stack.  Update constructor call
11793         for dom_opt_dom_walker object.
11794         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
11795         it down to children as needed.
11796         (record_equivalences_from_incoming_edge): Likewise.
11797         (eliminate_redundant_computations): Likewise.
11798         (record_equivalences_from_stmt): Likewise.
11799         (simplify_stmt_for_jump_threading): Likewise.
11800         (record_temporary_equivalences): Likewise.
11801         (optimize_stmt): Likewise.
11802         (dom_opt_dom_walker::thread_across_edge): Update access to
11803         avail_exprs_stack object and pass it to children as needed.
11804         (dom_opt_dom_walker::before_dom_children): Similarly.
11805         (dom_opt_dom_walker::after_dom_children): Similarly.
11806         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11807         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11808         Add avail_expr_stack argument.  Pass it to children as needed.
11809         (dummy_simplify): Likewise.
11810         (simplify_control_stmt_condition): Likewise.
11811         (thread_around_empty_blocks): Likewise.
11812         (thread_through_normal_block): Likewise.
11813         (thread_across_edge): Likewise.
11814         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11815         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11816
11817         PR tree-optimization/47679
11818         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
11819         it here ...
11820         (dom_opt_dom_walker): New private member holding the const_and_copies
11821         object.  Update constructor.
11822         (pass_dominator::execute): Corresponding changes to declaration
11823         and initialization of const_and_copies.  Update constructor call
11824         for the dom_opt_dom_walker object.
11825         (record_temporary_equivalences): Accept const_and_copies argument
11826         pass it down to children as needed.
11827         (record_equality): Likewise.
11828         (record_equivalences_from_incoming_edge): Likewise.
11829         (cprop_into_successor_phis, optimize_stmt): Likewise.
11830         (eliminate_redundant_computations): Likewise.
11831         (dom_opt_dom_walker::thread_across_edge): Update access to
11832         const_and_copies object and pass it to children as needed.
11833         (dom_opt_dom_walker::before_dom_children): Similarly.
11834         (dom_opt_dom_walker::after_dom_children): Similarly.
11835
11836         PR tree-optimization/47679
11837         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
11838         it into the avail_exprs_stack class.
11839         (pass_dominator::execute): Corresponding changes to declaration
11840         and initialization of avail_exprs.  Pass avail_exprs to
11841         dump_dominator_optimization_stats.
11842         (record_cond): Extract avail_exprs from avail_exprs_stack.
11843         (lookup_avail_expr): Similarly.
11844         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
11845         position in file.
11846         (dump_dominator_optimization_stats): Make static and prototype.
11847         Add argument for the hash table to dump.
11848         (debug_dominator_optimization_stats): Remove.
11849         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11850         prototype.
11851         (debug_dominator_optimization_stats): Similarly.
11852         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11853         "void" in prototype for pop_to_marker method.  Add accessor method
11854         for the underlying avail_exprs table.
11855
11856         * tree-ssa-threadedge.c: Remove trailing whitespace.
11857
11858 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
11859
11860         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11861         unsigned.
11862         (pa_ldil_cint_p): Likewise.
11863         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11864         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11865         Update callers.
11866         * config/pa/pa.md: Likewise.
11867
11868 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
11869
11870         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11871         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11872         (diagnostic_show_locus): Likewise.
11873         (diagnostic_print_caret_line): Likewise.
11874         * diagnostic-show-locus.c: New file.
11875
11876 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
11877
11878         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11879         "back" parameter. Declare label in #if block.
11880
11881 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
11882
11883         PR middle-end/67619
11884         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11885         the address to a register.
11886
11887 2015-09-18  Jeff Law  <law@redhat.com>
11888
11889         PR tree-optimization/47679
11890         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11891         * tree-ssa-dom.c: Remove unnecessary header includes.
11892         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11893         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11894         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11895         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11896         (pass_phi_only_cprop::execute): Likewise.
11897         (make_pass_phi_only_cprop): Likewise.
11898         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
11899         uses of file scoped statics by passing the required objects
11900         as parameters wherever needed.
11901
11902 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
11903             David Edelsohn  <dje.gcc@gmail.com>
11904
11905         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11906         EH_FRAME_THROUGH_COLLECT2.
11907         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11908         DW_EH_PE_datarel.
11909         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11910         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
11911         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11912         * except.c (switch_to_exception_section): Use a read-only section
11913         even if EH_FRAME_SECTION_NAME is undefined.
11914         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11915         * collect2.c (write_c_file_stat): Provide dbase on AIX.
11916         (scan_prog_file): Don't export __dso_handle nor
11917         __gcc_unwind_dbase.
11918         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11919         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11920         (ASM_OUTPUT_DWARF_PCREL): Define.
11921         (ASM_OUTPUT_DWARF_DATAREL): Define.
11922         (EH_FRAME_THROUGH_COLLECT2): Define.
11923         (EH_FRAME_IN_DATA_SECTION): Delete.
11924         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11925         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11926         Declare.
11927         (rs6000_asm_output_dwarf_datarel): Declare.
11928         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11929         (rs6000_aix_asm_output_dwarf_datarel): New.
11930         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11931         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11932         (EH_FRAME_THROUGH_COLLECT2): Define.
11933         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11934         (EH_FRAME_THROUGH_COLLECT2): Define.
11935         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11936         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11937         (EH_FRAME_THROUGH_COLLECT2): New.
11938         (ASM_OUTPUT_DWARF_DATAREL): New.
11939         * doc/tm.texi: Regenerate.
11940
11941 2015-09-18  Richard Biener  <rguenther@suse.de>
11942
11943         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11944         we're in early phase.
11945         (schedule_generic_params_dies_gen): Likewise.
11946         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11947         work as possible, retaining unhandled cases.
11948         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11949         clear out generic_type_instances at the end.
11950         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11951         (dwarf2out_early_finish): ... here.  Do most of
11952         gen_remaining_tmpl_value_param_die_attribute here.
11953
11954 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
11955
11956         PR tree-optimization/67283
11957         * tree-sra.c (type_consists_of_records_p): Rename to...
11958         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11959         (completely_scalarize_record): Rename to...
11960         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11961         (scalarize_elem): New.
11962         (analyze_all_variable_accesses): Follow renamings.
11963
11964 2015-09-18  Richard Biener  <rguenther@suse.de>
11965
11966         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11967         in early-dwarf.
11968
11969 2015-09-18  Richard Biener  <rguenther@suse.de>
11970
11971         PR tree-optimization/66142
11972         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11973         treat MEM[&x] and x the same.
11974         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11975         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11976         when we simplified sth.
11977         (vn_reference_maybe_forwprop_address): Likewise.
11978         (valueize_refs_1): When we simplified through
11979         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11980         set valueized_anything to true.
11981         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11982         one ref kills the other instead of just a offset-based test.
11983         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11984         for the operand_equal_p test to compare bases and also compare
11985         sizes.
11986
11987 2015-09-17  Christian Bruel  <christian.bruel@st.com>
11988
11989         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11990
11991 2015-09-17  Richard Henderson  <rth@redhat.com>
11992
11993         PR libstdc++/65913
11994         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11995         pointers that encode the alignment of the object.
11996
11997 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         PR rtl-optimization/66790
12000         * df-problems.c (LIVE): Amend documentation.
12001
12002 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
12003
12004         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12005         and optabs-tree.o.
12006         (GTFILES): Replace optabs.c with optabs-libfunc.c.
12007         * genopinit.c (main): Add an include guard to insn-opinit.h.
12008         Protect the rtx_code parts with NUM_RTX_CODE.
12009         * optabs.h: Split parts out to...
12010         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12011         * optabs.c: Split parts out to...
12012         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12013         * cilk-common.c: Include optabs-query.h rather than optabs.h.
12014         * fold-const.c: Likewise.
12015         * target-globals.c: Likewise.
12016         * tree-if-conv.c: Likewise.
12017         * tree-ssa-forwprop.c: Likewise.
12018         * tree-ssa-loop-prefetch.c: Likewise.
12019         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12020         Remove unncessary include files.
12021         * tree-ssa-phiopt.c: Likewise.
12022         * tree-ssa-reassoc.c: Likewise.
12023         * tree-switch-conversion.c: Likewise.
12024         * tree-vect-data-refs.c: Likewise.
12025         * tree-vect-generic.c: Likewise.
12026         * tree-vect-loop.c: Likewise.
12027         * tree-vect-patterns.c: Likewise.
12028         * tree-vect-slp.c: Likewise.
12029         * tree-vect-stmts.c: Likewise.
12030         * tree-vrp.c: Likewise.
12031         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12032         rather than optabs.h.
12033         * expr.c: Include optabs-tree.h.
12034         * function.c: Likewise.
12035
12036 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12037
12038         PR middle-end/65958
12039         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12040         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12041         * config/arm/arm.c: Include common/common-target.h.
12042         (use_return_insn): Return 0 if the static chain register was saved
12043         above a non-APCS frame.
12044         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12045         (struct scratch_reg): New.
12046         (get_scratch_register_on_entry): New function.
12047         (release_scratch_register_on_entry): Likewise.
12048         (arm_emit_probe_stack_range): Likewise.
12049         (output_probe_stack_range): Likewise.
12050         (arm_expand_prologue): Factor out code dealing with the IP register
12051         for nested function and adjust it for stack checking.
12052         Invoke arm_emit_probe_stack_range if static builtin stack checking
12053         is enabled.
12054         (thumb1_expand_prologue): Sorry out if static builtin stack checking
12055         is enabled.
12056         (arm_expand_epilogue): Add the saved static chain register, if any, to
12057         the amount of pre-pushed registers to pop.
12058         (arm_frame_pointer_required): Return true if static stack checking is
12059         enabled and we want to catch the exception with the EABI unwinder.
12060         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12061         (UNSPEC_PROBE_STACK_RANGE): Likewise.
12062         * config/arm/arm.md (probe_stack): New insn.
12063         (probe_stack_range): Likewise.
12064
12065 2015-09-17  Richard Biener  <rguenther@suse.de>
12066
12067         * genmatch.c (parser::parse_expr): Improve error message
12068         for mis-placed flags.
12069
12070 2015-09-17  Richard Biener  <rguenther@suse.de>
12071
12072         * passes.c (rest_of_decl_compilation): Always call early_global_decl
12073         debug hook when we created a varpool node.
12074         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12075         dwarf2out_early_global_decl, when not just add location or
12076         value attributes to existing DIEs.
12077
12078 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
12079
12080         * config/aarch64/aarch64.md (copysigndf3): New.
12081         (copysignsf3): Likewise.
12082
12083 2015-09-17  David S. Miller  <davem@davemloft.net>
12084
12085         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12086         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12087         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12088         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12089         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12090         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12091         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12092         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12093         provide when flag_pic.
12094
12095 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12096
12097         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12098         object_allocator change.
12099
12100 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12101
12102         PR tree-optimization/66388
12103         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12104         (dump_iv): Dump no_overflow information.
12105         (alloc_iv): Initialize new field for struct iv.
12106         (mark_bivs): Count number of no_overflow bivs.
12107         (find_deriving_biv_for_expr, record_biv_for_address_use): New
12108         functions.
12109         (idx_find_step): Call new functions above.
12110         (add_candidate_1, add_candidate): New paramter.
12111         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12112         (get_computation_aff): Simplify convertion of cand for BIV.
12113         (get_computation_cost_at): Step cand's base if necessary.
12114
12115 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12116
12117         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12118         parameter.
12119         (tree_simplify_using_condition): Ditto.
12120         (simplify_using_initial_conditions): Ditto.
12121         (loop_exits_before_overflow): Pass new argument to function
12122         simplify_using_initial_conditions.  Remove case for type conversions
12123         simplification.
12124         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12125         parameter.
12126         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12127         in iv base using loop initial conditions.
12128
12129 2015-09-16  Jeff Law  <law@redhat.com>
12130
12131         PR tree-optimization/47679
12132         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12133         (free_all_edge_infos): Use it.
12134         (allocate_edge_info): Free preexisting edge info data.
12135         (pass_dominator::execute): Set up initial edge info structures.
12136         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12137         thread_across_edge.
12138         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12139         If non-null, then push/pop markers appropriately.
12140         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12141         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12142         thread-across_edge.
12143
12144 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
12145
12146         * config/ft32/ft32.c: Fix the memory address space predicate.
12147
12148 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12149
12150         PR target/67573
12151         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12152         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12153
12154 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12155
12156         * toplev.h (check_global_declaration): Remove declaration.
12157         * toplev.c (check_global_declaration): Move to ...
12158         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12159         (analyze_functions): Update call.
12160
12161 2015-09-16  David S. Miller  <davem@davemloft.net>
12162
12163         * lra-constraints.c (simplify_operand_subreg): Do not assume that
12164         lowpart of a SUBREG has offset zero.
12165
12166 2015-09-16  Jeff Law  <law@redhat.com>
12167
12168         PR tree-optimization/47679
12169         * tree-ssa-dom.c (enum expr_kind): Moved from here to
12170         tree-ssa-scopedtables.h.
12171         (struct hashable_expr, class expr_hash_elt): Likewise.
12172         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12173         Move associated methods into tree-ssa-scopedtables.c.
12174         (avail_expr_hash, initialize_expr_from_cond): Similarly.
12175         (hashable_expr_equal_p, add_expr_commutative): Likewise.
12176         (add_hashable_expr): Likewise.
12177         (record_cond): Delete element directly.
12178         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12179         private copy ctor and assignment operator methods.
12180         (expr_elt_hasher): Inline trivial methods.
12181         (initialize_expr_from_cond): Prototype.
12182         * tree-ssa-scopedtables.c: Add necessary includes, functions and
12183         methods that were previously in tree-ssa-dom.c.  Improve various
12184         comments.
12185
12186 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
12187
12188         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12189
12190 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
12191
12192         PR bootstrap/67587
12193         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12194         fixup_partitions.
12195
12196 2015-09-16  Richard Biener  <rguenther@suse.de>
12197
12198         PR middle-end/67253
12199         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12200         location of possibly shared trees.
12201
12202 2015-09-16  Richard Biener  <rguenther@suse.de>
12203
12204         PR middle-end/67271
12205         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12206
12207 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
12208
12209         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12210         offset and size computations instead of HOST_WIDE_INT.
12211
12212 2015-09-16  Richard Biener  <rguenther@suse.de>
12213
12214         PR middle-end/67442
12215         * fold-const.c (extract_muldiv_1): Properly extend multiplication
12216         result before builting a tree via wide_int_to_tree.
12217
12218 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
12219
12220         * Makefile.in: Add memory-block.cc
12221         (pool_allocator::initialize): Use fixed block size.
12222         (pool_allocator::release): Use memory_block_pool.
12223         (pool_allocator::allocate): Likewise.
12224         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12225         object pools.
12226         * cfg.c (initialize_original_copy_tables): Likewise.
12227         * cselib.c (elt_list_pool, elt_loc_list_pool,
12228         cselib_val_pool): Likewise.
12229         * df-problems.c (df_chain_alloc): Likewise.
12230         * df-scan.c (df_scan_alloc): Likewise.
12231         * dse.c (cse_store_info_pool, rtx_store_info_pool,
12232         read_info_type_pool, insn_info_type_pool, bb_info_pool,
12233         group_info_pool, deferred_change_pool): Likewise.
12234         * et-forest.c (et_nodes, et_occurrences): Likewise.
12235         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12236         ipcp_agg_lattice_pool): Likewise.
12237         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12238         * ipa-profile.c (histogram_pool): Likewise.
12239         * ipa-prop.c (ipa_refdesc_pool): Likewise.
12240         * ira-build.c (live_range_pool, allocno_pool, object_pool,
12241         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12242         * ira-color.c (update_cost_record_pool): Likewise.
12243         * lra-lives.c (lra_live_range_pool): Likewise.
12244         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12245         * memory-block.cc: New file.
12246         * memory-block.h: New file.
12247         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12248         * sched-deps.c (sched_deps_init): Likewise.
12249         * sel-sched-ir.c (sched_lists_pool): Likewise.
12250         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12251         * tree-sra.c (access_pool): Likewise.
12252         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12253         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12254         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12255         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12256         * tree-ssa-strlen.c (strinfo_pool): Likewise.
12257         * tree-ssa-structalias.c (variable_info_pool): Likewise.
12258         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12259         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12260
12261 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12262
12263         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12264         definition.
12265         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12266         call0 ABI.
12267
12268 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12269
12270         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12271         to pass TLS call argument, according to current ABI.
12272         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12273         callx0 for TLS call, according to current ABI.
12274
12275 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12276
12277         * tree-eh.c (lower_try_finally_dup_block): Clear location information
12278         on stack restore statements.
12279         (decide_copy_try_finally): Do not consider a stack restore statement as
12280         coming from sources.
12281
12282 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
12283
12284         * config/alpha/alpha.c (alpha_expand_block_clear): Use
12285         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12286
12287 2015-09-15  Jeff Law  <law@redhat.com>
12288
12289         PR tree-optimization/47679
12290         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12291         methods and private members.
12292         (avail_exprs_stack): Similarly.  Change type of global
12293         from a pair of expr_hash_elt_t to the new class.
12294         (expr_elt_hasher::hash): Corresponding changes.
12295         (expr_elt_hasher::equal): Similarly.
12296         (avail_expr_hash): Similarly.
12297         (pass_dominator::execute): Similarly.
12298         (dom_opt_dom_walker::thread_across_edge): Similarly.
12299         (record_cond): Similarly.
12300         (dom_opt_dom_walker::before_dom_children): Similarly.
12301         (dom_opt_dom_walker::after_dom_children): Similarly.
12302         (lookup_avail_expr): Likewise.
12303         (initialize_hash_element): Now a expr_hash_elt constructor.
12304         (initialize_hash_element_from_expr): Similarly.
12305         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12306         (free_expr_hash_elt): Call dtor for the element.
12307         (remove_local_expressions_from_table): Now the "pop_to_marker"
12308         method in the available_exprs_stack class.
12309         (avail_expr_stack::record_expr): Method factored out.
12310         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12311         Fix formatting.
12312         (hashable_expr_equal_p): Fix formatting.
12313
12314 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
12315
12316         * input.h (location_get_source_line): Drop "expanded_location"
12317         param in favor of a file and line number.
12318         * input.c (location_get_source_line): Likewise.
12319         (dump_location_info): Update for change in signature of
12320         location_get_source_line.
12321         * diagnostic.c (diagnostic_print_caret_line): Likewise.
12322
12323 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12324
12325         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12326         Bump to 4KB for SJLJ exceptions.
12327         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
12328         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12329         * doc/tm.texi: Regenerate.
12330
12331 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12332
12333         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12334         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
12335         Update prototype.
12336
12337 2015-09-15  Richard Biener  <rguenther@suse.de>
12338
12339         PR tree-optimization/67470
12340         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12341         structure for PHI hoisting by inserting a forwarder block
12342         if appropriate.
12343
12344 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12345
12346         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12347         (arm_option_print): New function.
12348
12349 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12350
12351         PR target/52144
12352         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12353         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12354         Remove flags parameter.
12355         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12356         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12357         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12358         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12359         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12360         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12361         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12362         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12363
12364 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12365
12366         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12367
12368         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12369         AARCH64_VALID_SIMD_DREG_MODE.
12370
12371 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12372
12373         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12374         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12375         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12376         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12377         aarch64_ld4_lane<mode>): Combine together, making...
12378         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12379         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12380         aarch64_st4_lane<mode>): Combine together, making...
12381         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12382         * config/aarch64/iterators.md (nregs): Add comment.
12383
12384 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12385
12386         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12387         Change operand mode from <V_TWO_ELEM> to BLK.
12388         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12389         (aarch64_vec_store_lanesoi_lane<mode): Likewise
12390         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12391         (aarch64_ld2_lane<mode>): Likewise.
12392         (aarch64_st2_lane<VQ:mode>): Likewise.
12393         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12394
12395 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12396
12397         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12398         Change operand mode from <V_FOUR_ELEM> to BLK.
12399         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12400         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12401         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12402         (aarch64_ld4_lane<mode>): Likewise.
12403         (aarch64_st4_lane<mode>): Likewise.
12404         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12405
12406 2015-09-15  Richard Biener  <rguenther@suse.de>
12407
12408         PR middle-end/67563
12409         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12410         transfer EH info from old to new stmt.
12411         (replace_call_with_value): Likewise.
12412         (replace_call_with_call_and_fold): Likewise.
12413         (gimple_fold_builtin_memory_op): Likewise.
12414         (gimple_fold_builtin_memset): Likewise.
12415         (gimple_fold_builtin_stpcpy): Likewise.
12416         (gimple_fold_call): Likewise.
12417
12418 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12419
12420         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12421         comment.
12422         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12423         (aarch64_simd_intEI_type_node): Likewise.
12424         (aarch64_simd_builtin_std_type): Remove EImode case.
12425         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12426         * config/aarch64/aarch64-modes.def: Remove EImode.
12427
12428 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12429
12430         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12431         Change operand mode from <V_THREE_ELEM> to BLK.
12432         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12433         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12434         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12435         (aarch64_ld3_lane<mode>): Likewise.
12436         (aarch64_st3_lane<mode>): Likewise.
12437         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12438
12439 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12440
12441         * config/aarch64/aarch64-simd.md
12442         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12443         Change all TImode operands to BLKmode.
12444         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12445         Change all EImode operands to BLKmode.
12446         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12447         Change all OImode operands to BLKmode.
12448
12449         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12450         and call set_mem_size.
12451         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12452
12453         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12454
12455 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12456
12457         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12458         to...
12459         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12460
12461         (vec_store_lanesci_lane<mode>): Rename to...
12462         (aarch64_vec_store_lanesci_lane<mode>): ...this.
12463
12464         (vec_store_lanesxi_lane<mode>): Rename to...
12465         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12466
12467         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12468         aarch64_st4_lane<mode>): Follow renaming.
12469
12470 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12471
12472         * config/s390/s390.c (s390_const_operand_ok): Add missing
12473         brackets.
12474
12475 2015-09-15  Richard Biener  <rguenther@suse.de>
12476
12477         PR lto/67568
12478         * lto-streamer.h (lto_location_cache::current_sysp): Properly
12479         initialize.
12480         * lto-streamer-out.c (clear_line_info): Likewise.
12481
12482 2015-09-15  Richard Biener  <rguenther@suse.de>
12483
12484         * doc/match-and-simplify.texi: Fix wording.
12485
12486 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
12487
12488         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12489         unnecessary type conversion in op1.
12490
12491 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
12492
12493         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12494         (dup_block_and_redirect): Delete function.
12495         (can_dup_for_shrink_wrapping): New function.
12496         (fix_fake_fallthrough_edge): New function.
12497         (try_shrink_wrapping): Rewrite function.
12498         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12499
12500 2015-09-14  Rich Felker  <dalias@libc.org>
12501
12502         * configure.ac: Change target pattern for sh TLS support
12503         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12504         * configure: Regenerate.
12505
12506 2015-09-14  Jeff Law  <law@redhat.com>
12507
12508         PR tree-optimization/47679
12509         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12510         type rather than void *.
12511
12512 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12513
12514         PR fortran/67460
12515         * diagnostic.c (diagnostic_initialize): Do not set
12516         some_warnings_are_errors.
12517         (diagnostic_finish): Use DK_WERROR count instead.
12518         (diagnostic_report_diagnostic): Do not set
12519         some_warnings_are_errors.
12520         * diagnostic.h (struct diagnostic_context): Remove
12521         some_warnings_are_errors.
12522
12523 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
12524
12525         * config/sparc/predicates.md (const_all_ones_operand): Use
12526         CONSTM1_RTX to simplify definition.
12527
12528 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
12529
12530         PR target/67061
12531         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12532         Handle call insns.
12533
12534 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
12535
12536         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12537         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12538         OPT_fshow_column to handled saved option cases.
12539         (append_compiler_options): Do not skip the above added options.
12540
12541 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12542
12543         PR target/63304
12544         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12545         nopcrelative_literal_loads.
12546         (aarch64_classify_address): Likewise.
12547         (aarch64_constant_pool_reload_icode): Define.
12548         (aarch64_secondary_reload): Handle secondary reloads for
12549         literal pools.
12550         (aarch64_override_options): Handle nopcrelative_literal_loads.
12551         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12552         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12553         Define.
12554         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12555         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12556         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12557         predicate.
12558         * doc/invoke.texi (mpc-relative-literal-loads): Document.
12559
12560 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
12561
12562         PR middle-end/67401
12563         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12564         sync_compare_and_swap_optab libcall to target_oval.
12565
12566 2015-09-14  Marek Polacek  <polacek@redhat.com>
12567
12568         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12569         value.
12570         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12571
12572 2015-09-11  Mark Wielaard  <mjw@redhat.com>
12573
12574         PR c/28901
12575         * toplev.c (check_global_declaration): Check and use
12576         warn_unused_const_variable.
12577         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12578         (-Wunused-variable): Remove non-constant. For C implies
12579         -Wunused-const-variable.
12580         (-Wunused-const-variable): New.
12581
12582 2015-09-14  Richard Biener  <rguenther@suse.de>
12583
12584         * doc/match-and-simplify.texi: Update for changed syntax
12585         of inner ifs and the new switch expression.
12586
12587 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12588
12589         * config/i386/haswell.md: New file describing Haswell pipeline.
12590         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12591         haswell-like processors.
12592         (ix86_reassociation_width): Increase reassociation width for 64-bit
12593         Haswell processor family.
12594         * config/i386/i386.md: Introduce haswell cpu and include new md file.
12595
12596 2015-09-14  Richard Biener  <rguenther@suse.de>
12597
12598         * doc/match-and-simplify.texi: Fixup some formatting issues
12599         and document the 's' flag.
12600
12601 2015-09-13  Olivier Hainque  <hainque@adacore.com>
12602             Eric Botcazou  <ebotcazou@adacore.com>
12603
12604         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12605         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
12606         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12607         (TARGET_CPU_gr5): Likewise.
12608         (TARGET_CPU_gr6): Likewise.
12609         (MULTILIB_DEFAULTS): Likewise.
12610         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12611         for mcpu=gr5 and mcpu=gr6.
12612         (MULTILIB_DIRNAMES): Adjust accordingly.
12613
12614 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12615
12616         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12617         (mem_ref_p): Likewise.
12618         (outermost_indep_loop): Adjust.
12619         (mem_ref_in_stmt): Likewise.
12620         (determine_max_movement): Likewise.
12621         (mem_ref_alloc): Likewise.
12622         (record_mem_ref_loc): Likewise.
12623         (set_ref_stored_in_loop): Likewise.
12624         (mark_ref_stored): Likewise.
12625         (gather_mem_refs_stmt): Likewise.
12626         (mem_refs_may_alias_p): Likewise.
12627         (for_all_locs_in_loop): Likewise.
12628         (struct rewrite_mem_ref_loc): Likewise.
12629         (rewrite_mem_refs): Likewise.
12630         (struct first_mem_ref_loc_1): Likewise.
12631         (first_mem_ref_loc): Likewise.
12632         (struct sm_set_flag_if_changed): Likewise.
12633         (execute_sm_if_changed_flag_set): Likewise.
12634         (execute_sm): Likewise.
12635         (hoist_memory_references):
12636         (struct ref_always_accessed): Likewise.
12637         (ref_always_accessed_p): Likewise.
12638         (refs_independent_p): Likewise.
12639         (record_dep_loop): Likewise.
12640         (ref_indep_loop_p_1): Likewise.
12641         (ref_indep_loop_p_2): Likewise.
12642         (ref_indep_loop_p): Likewise.
12643         (can_sm_ref_p): Likewise.
12644         (find_refs_for_sm): Likewise.
12645         (tree_ssa_lim_finalize): Likewise.
12646
12647 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12648
12649         * dwarf2out.c (dw_attr_ref): Remove typedef.
12650         (dw_line_info_ref): Likewise.
12651         (pubname_ref): Likewise.
12652         (dw_ranges_ref): Likewise.
12653         (dw_ranges_by_label_ref): Likewise.
12654         (comdat_type_node_ref): Likewise.
12655         (get_AT): Adjust.
12656         (get_AT_low_pc): Likewise.
12657         (get_AT_hi_pc): Likewise.
12658         (get_AT_string): Likewise.
12659         (get_AT_flag): Likewise.
12660         (get_AT_unsigned): Likewise.
12661         (get_AT_ref): Likewise.
12662         (get_AT_file): Likewise.
12663         (remove_AT): Likewise.
12664         (print_die): Likewise.
12665         (check_die): Likewise.
12666         (die_checksum): Likewise.
12667         (attr_checksum_ordered): Likewise.
12668         (struct checksum_attributes): Likewise.
12669         (collect_checksum_attributes): Likewise.
12670         (die_checksum_ordered): Likewise.
12671         (same_die_p): Likewise.
12672         (is_declaration_die): Likewise.
12673         (clone_die): Likewise.
12674         (clone_as_declaration): Likewise.
12675         (copy_declaration_context): Likewise.
12676         (break_out_comdat_types): Likewise.
12677         (copy_decls_walk): Likewise.
12678         (output_location_lists): Likewise.
12679         (external_ref_hasher::hash): Likewise.
12680         (optimize_external_refs_1): Likewise.
12681         (build_abbrev_table): Likewise.
12682         (size_of_die): Likewise.
12683         (unmark_all_dies): Likewise.
12684         (size_of_pubnames): Likewise.
12685         (output_die_abbrevs): Likewise.
12686         (output_die): Likewise.
12687         (output_pubnames): Likewise.
12688         (add_ranges_num): Likewise.
12689         (add_ranges_by_labels): Likewise.
12690         (add_high_low_attributes): Likewise.
12691         (gen_producer_string): Likewise.
12692         (dwarf2out_set_name): Likewise.
12693         (new_line_info_table): Likewise.
12694         (prune_unused_types_walk_attribs): Likewise.
12695         (prune_unused_types_update_strings): Likewise.
12696         (prune_unused_types): Likewise.
12697         (resolve_addr): Likewise.
12698         (optimize_location_lists_1): Likewise.
12699         (index_location_lists): Likewise.
12700         (dwarf2out_finish): Likewise.
12701
12702 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12703
12704         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12705
12706 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12707
12708         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12709         (dump_asserts_for): Adjust.
12710         (register_new_assert_for): Likewise.
12711         (process_assert_insertions): Likewise.
12712         (insert_range_assertions): Likewise.
12713
12714 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12715
12716         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12717         and remove typedef.
12718         (new_temp_expr_table): Adjust.
12719         (free_temp_expr_table): Likewise.
12720         (version_to_be_replaced_p): Likewise.
12721         (make_dependent_on_partition): Likewise.
12722         (add_to_partition_kill_list): Likewise.
12723         (remove_from_partition_kill_list): Likewise.
12724         (add_dependence): Likewise.
12725         (finished_with_expr): Likewise.
12726         (process_replaceable): Likewise.
12727         (kill_expr): Likewise.
12728         (kill_virtual_exprs): Likewise.
12729         (mark_replaceable): Likewise.
12730         (find_replaceable_in_bb): Likewise.
12731         (find_replaceable_exprs): Likewise.
12732         (debug_ter): Likewise.
12733
12734 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12735
12736         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12737         (struct btr_user): Rename from btr_user_s.
12738         (struct btr_def): Rename from btr_def_s.
12739         (find_btr_def_group): Adjust.
12740         (add_btr_def): Likewise.
12741         (new_btr_user): Likewise.
12742         (note_other_use_this_block): Likewise.
12743         (compute_defs_uses_and_gen): Likewise.
12744         (link_btr_uses): Likewise.
12745         (build_btr_def_use_webs): Likewise.
12746         (block_at_edge_of_live_range_p): Likewise.
12747         (btr_def_live_range): Likewise.
12748         (combine_btr_defs): Likewise.
12749         (move_btr_def): Likewise.
12750         (migrate_btr_def): Likewise.
12751         (migrate_btr_defs): Likewise.
12752
12753 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12754
12755         * var-tracking.c (shared_hash_def): Rename to shared_hash.
12756         (shared_hash): Remove typedef.
12757         (struct dataflow_set): Adjust.
12758         (shared_hash_unshare): Likewise.
12759         (dataflow_set_merge): Likewise.
12760         (vt_initialize): Likewise.
12761         (vt_finalize): Likewise.
12762
12763 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12764
12765         * var-tracking.c (struct location_chain): Rename from
12766         location_chain_def.
12767         (struct variable_part): Adjust.
12768         (variable_htab_free): Likewise.
12769         (unshare_variable): Likewise.
12770         (get_init_value): Likewise.
12771         (get_addr_from_local_cache): Likewise.
12772         (drop_overlapping_mem_locs): Likewise.
12773         (val_reset): Likewise.
12774         (struct variable_union_info): Likewise.
12775         (variable_union): Likewise.
12776         (find_loc_in_1pdv): Likewise.
12777         (insert_into_intersection): Likewise.
12778         (intersect_loc_chains): Likewise.
12779         (canonicalize_loc_order_check): Likewise.
12780         (canonicalize_values_mark): Likewise.
12781         (canonicalize_values_star): Likewise.
12782         (canonicalize_vars_star): Likewise.
12783         (variable_merge_over_cur): Likewise.
12784         (remove_duplicate_values): Likewise.
12785         (variable_post_merge_new_vals): Likewise.
12786         (variable_post_merge_perm_vals): Likewise.
12787         (find_mem_expr_in_1pdv): Likewise.
12788         (dataflow_set_preserve_mem_locs): Likewise.
12789         (dataflow_set_remove_mem_locs): Likewise.
12790         (variable_part_different_p): Likewise.
12791         (onepart_variable_different_p): Likewise.
12792         (find_src_set_src): Likewise.
12793         (dump_var): Likewise.
12794         (set_slot_part): Likewise.
12795         (clobber_slot_part): Likewise.
12796         (delete_slot_part): Likewise.
12797         (vt_expand_var_loc_chain): Likewise.
12798         (emit_note_insn_var_location): Likewise.
12799         (vt_finalize): Likewise.
12800
12801 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12802
12803         * dse.c (store_info_t): Remove typedef.
12804         (group_info_t): Likewise.
12805         (const_group_info_t): Likewise.
12806         (deferred_change_t): Likewise.
12807         (get_group_info): Adjust.
12808         (free_store_info): Likewise.
12809         (canon_address): Likewise.
12810         (clear_rhs_from_active_local_stores): Likewise.
12811         (record_store): Likewise.
12812         (replace_read): Likewise.
12813         (check_mem_read_rtx): Likewise.
12814         (scan_insn): Likewise.
12815         (remove_useless_values): Likewise.
12816         (dse_step1): Likewise.
12817         (dse_step2_init): Likewise.
12818         (dse_step2_nospill): Likewise.
12819         (scan_stores_nospill): Likewise.
12820         (scan_reads_nospill): Likewise.
12821         (dse_step3_exit_block_scan): Likewise.
12822         (dse_step3): Likewise.
12823         (dse_step5_nospill): Likewise.
12824         (dse_step6): Likewise.
12825
12826 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12827
12828         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12829         (alias_set_entry): Remove typedef.
12830         (alias_set_subset_of): Adjust.
12831         (alias_sets_conflict_p): Likewise.
12832         (init_alias_set_entry): Likewise.
12833         (get_alias_set): Likewise.
12834         (new_alias_set): Likewise.
12835         (record_alias_subset): Likewise.
12836
12837 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
12838
12839         * doc/install.texi (Downloading the source): Mark up
12840         contrib/download_prerequisites properly and drop leading "./".
12841
12842 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12843
12844         * config/arc/arc.h: Remove define of STRUCT_VALUE.
12845         * config/lm32/lm32.h: Likewise.
12846         * config/mep/mep.h: Likewise.
12847         * config/visium/visium.h: Likewise.
12848         * system.h: Poison STRUCT_VALUE macro.
12849
12850 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
12851
12852         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12853         CONSTANT_P operands.
12854
12855 2015-09-11  David S. Miller  <davem@davemloft.net>
12856
12857         * config/sparc/constraints.md: Make "U" constraint a real register
12858         constraint.
12859         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12860         (D_MODES, DF_MODES): Add missing cast.
12861         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12862         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12863         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12864         cost to 8.
12865         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12866         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12867         provide these insn when flag_pic.
12868
12869 2015-09-11  Jeff Law  <law@redhat.com>
12870
12871         PR tree-optimization/47679
12872         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12873         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12874         member with m_.  Update inline member functions as necessary.  Add
12875         toplevel comment.
12876         * tree-ssa-scopedtables.c: Update const_and_copies's member
12877         functions to use m_ prefix to access the stack.
12878
12879 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12880
12881         * graphite-optimize-isl.c (disable_tiling): Remove.
12882         (get_schedule_for_band): Do not use disable_tiling.
12883         (get_prevector_map): Delete function.
12884         (enable_polly_vector): Remove.
12885         (get_schedule_for_band_list): Remove dead code.
12886
12887 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12888
12889         * graphite-optimize-isl.c (get_tile_map): Refactor.
12890         (get_schedule_for_band): Same.
12891         (getScheduleForBand): Same.
12892         (get_prevector_map): Same.
12893         (get_schedule_for_band_list): Same.
12894         (get_schedule_map): Same.
12895         (get_single_map): Same.
12896         (apply_schedule_map_to_scop): Same.
12897         (optimize_isl): Same.
12898
12899 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12900
12901         PR target/63304
12902         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12903         (movtf): Delete.
12904         * config/aarch64/iterators.md (GPF_TF_F16): New.
12905         (GPF_F16): Delete.
12906
12907 2015-09-10  Nathan Sidwell  <nathan@acm.org>
12908
12909         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12910         (nvptx_reorg): Adjust comments.
12911
12912 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
12913
12914         PR bootstrap/67363
12915         * configure.ac: Check if setenv and unsetenv are declared.
12916         * configure: Rebuild.
12917         * config.in: Rebuild.
12918         * system.h: Declare setenv and unsetenv if not declared.
12919
12920 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12921
12922         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12923         commentary to simplify permute mask adjustment equation.
12924         (special_handling_values): Add SH_VPERM.
12925         (const_load_sequence_p): New function.
12926         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12927         the mask loaded from the constant pool.
12928         (adjust_vperm): New function.
12929         (handle_special_swappables): Call adjust_vperm.
12930         (dump_swap_insn_table): Handle SH_VPERM.
12931
12932 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12933
12934         * shrink-wrap.c (requires_stack_frame_p): Remove static.
12935         * shrink-wrap.h (requires_stack_frame_p): Put back.
12936
12937 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12938
12939         * reload1.c (elimination_costs_in_insn): Locally turn
12940         -Wmaybe-uninitialized into a warning.
12941
12942 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
12943
12944         * shrink-wrap.c (requires_stack_frame_p): Make static.
12945         (prepare_shrink_wrap): Likewise.
12946         (dup_block_and_redirect): Likewise.
12947         * shrink-wrap.h: Remove declarations of those functions.
12948
12949 2015-09-10  Mark Wielaard  <mjw@redhat.com>
12950
12951         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12952
12953 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
12954
12955         PR target/67506
12956         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12957         missing simplify_gen_subreg.
12958
12959 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12960
12961         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12962         the vector element is bigger than 64 bit.
12963
12964 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12965
12966         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12967         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12968
12969 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12970
12971         * config/s390/s390.c: Add V1TImode to constant pool modes.
12972
12973 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12974
12975         PR target/67439
12976         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12977         predicate.  Set predicable_short_it attr to "no".
12978
12979 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
12980
12981         PR rtl-optimization/67421
12982         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12983         left wide shift tranformation.
12984
12985 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
12986
12987         * common/config/arc/arc-common.c: Remove references to A5.
12988         * config/arc/arc-opts.h: Likewise.
12989         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12990         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12991         * config/arc/t-arc-newlib: Likewise.
12992
12993 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
12994
12995         * config/arc/arc.md (length): Fix attribute length for conditional
12996         executed instructions with long immediate.
12997
12998 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12999
13000         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13001         type for second alternative.
13002
13003 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
13004
13005         * doc/invoke.texi (Downloading GCC): Mention
13006         contrib/download_prerequisites script.
13007
13008 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
13009
13010         PR c++/67523
13011         * gimplify.c (gimplify_omp_for): If inner stmt is not found
13012         for combined loop, assert seen_error () and return GS_ERROR.
13013
13014         PR middle-end/67521
13015         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13016         if decl is already in outer->variables.
13017
13018         PR middle-end/67517
13019         * gimplify.c (gimplify_scan_omp_clauses): Instead of
13020         asserting that decl is not specified in octx->variables,
13021         break out of the loop if it is.
13022
13023         PR c++/67514
13024         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13025         iterator is not explicitly determined, but is defined inside
13026         of the combined workshare region, handle it like if it has
13027         DECL_EXPR in OMP_FOR_PRE_BODY.
13028
13029 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13030
13031         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13032         (*cmp<mode>): Add assembler spacing.
13033         (setcc_int<mode>, set_cc_float<mode>): Likewise.
13034         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13035         level.
13036         (write_func_decl_from_insn): Refactor argument loops & comma emission.
13037         (nvptx_expand_call): Likewise.
13038         (nvptx_output_call_insn): Likewise.
13039         (nvptx_reorg_subreg): Add spacing.
13040
13041 2015-09-09  Marek Polacek  <polacek@redhat.com>
13042
13043         PR middle-end/67512
13044         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13045         for comparisons.
13046
13047 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13048
13049         PR c++/53184
13050         * doc/invoke.texi ([Wsubobject-linkage]): Document.
13051
13052 2015-09-09  Tom de Vries  <tom@codesourcery.com>
13053
13054         * params-list.h: Add missing copyright notice.
13055
13056 2015-09-09  Nathan Sidwell  <nathan@acm.org>
13057
13058         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13059         sel_truesi, not andsi.
13060
13061 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13062
13063         * config/arm/arm.md (*subsi3_compare0): Rename to...
13064         (subsi3_compare0): ... This.
13065         (modsi3): New define_expand.
13066         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13067         when operand is power of 2.
13068
13069 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13070
13071         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13072         (*neg<mode>2_compare0): Rename to...
13073         (neg<mode>2_compare0): ... This.
13074         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13075         Move check for speed inside the if-then-elses.  Reflect
13076         CSNEG sequence in MOD by power of 2 case.
13077
13078 2015-09-09  Alan Modra  <amodra@gmail.com>
13079
13080         PR target/67378
13081         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13082         reload replacement for PRE_MODIFY address reg.
13083
13084 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
13085
13086         PR tree-optimization/53852
13087         * config.in: Regenerate.
13088         * configure: Regenerate.
13089         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13090         * graphite-optimize-isl.c (optimize_isl): Stop computation when
13091         PARAM_MAX_ISL_OPERATIONS is reached.
13092         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13093         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13094         result equal to isl_stat_ok as the status now can be isl_error_quota.
13095         (subtract_commutative_associative_deps): Same.
13096         (compute_deps): Same.
13097
13098 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13099             Sebastian Pop  <s.pop@samsung.com>
13100
13101         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13102         Return the parameter if it was saved in corresponding
13103         parameter_rename_map of the region.
13104         (copy_def): Copy def from sese region to the newly created region.
13105         (copy_internal_parameters): Copy all the internal parameters defined
13106         within a region to the newly created region.
13107         (graphite_regenerate_ast_isl): Copy parameters to the new region before
13108         translating isl to gimple.
13109         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13110         the loop-nest does not have any data-references.
13111         (build_graphite_scops): Create a scop only when there is at least one
13112         loop inside it.
13113         (contains_only_close_phi_nodes): Deleted.
13114         (print_graphite_scop_statistics): Deleted
13115         (print_graphite_statistics): Deleted
13116         (limit_scops): Deleted.
13117         (build_scops): Removed call to limit_scops.
13118         * sese.c (new_sese): Construct.
13119         (free_sese): Destruct.
13120         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13121         added.
13122         (set_rename): Pass sese region so that parameters inside the region can
13123         be added to its parameter_rename_map.
13124         (rename_uses): Pass sese region.
13125         (graphite_copy_stmts_from_block): Do not copy parameters that have been
13126         generated in the header of the scop. For each SSA_NAME in the
13127         parameter_rename_map rename its usage.
13128         (invariant_in_sese_p_rec): Return false if tree t is defined outside
13129         sese region.
13130         (scalar_evolution_in_region): If the tree t is invariant just return t.
13131         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13132         struct sese to keep track of all the parameters which need renaming.
13133         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13134         any data-refs.
13135         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13136
13137 2015-09-08  Tom de Vries  <tom@codesourcery.com>
13138
13139         * Makefile.in (generated_files): Add params.list.
13140         (params.list, s-params.list): Add rule.
13141         * params.h (enum compiler_param): Include params-list.h.  Move define
13142         DEFPARAM, include params.def and undef DEFPARAM ...
13143         * params-list.h: ... here.  New file.
13144
13145 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
13146
13147         * pretty-print.h (printer_fn): Fix typo in comment.
13148
13149 2015-09-07  Jeff Law  <law@redhat.com>
13150
13151         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13152
13153 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13154
13155         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13156         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13157         (arm_neon_fp16_hw): New.
13158
13159 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13160
13161         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13162         UNITS_PER_WORD >= 4.
13163
13164 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13165
13166         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13167         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13168         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13169         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13170         (aarch64_float_extend_lo_v2df): Rename to...
13171         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13172
13173         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13174         (float_extend_lo): Add v4sf.
13175
13176         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13177         * config/aarch64/iterators.md (VQ_HSF): New iterator.
13178         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13179         (Vwide): New mode_attr.
13180
13181 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13182
13183         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13184         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13185         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13186         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13187         V4HF and V8HF variants to iterator.
13188
13189         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13190
13191         * config/aarch64/iterators.md (VDQF_F16): New.
13192         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13193
13194 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13195
13196         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13197         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13198         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13199         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13200         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13201         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13202         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13203         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13204         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13205         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13206         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13207         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13208         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13209         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13210         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13211         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13212         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13213         vld1q_dup_f16): New.
13214
13215 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13216
13217         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13218         Reparameterize to...
13219         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13220         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13221         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13222
13223         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13224         v8hf variant.
13225         (float_truncate_lo_): Use BUILTIN_VDF iterator.
13226
13227         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13228
13229         * config/aarch64/iterators.md (VDF, Vdtype): New.
13230         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13231
13232 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13233
13234         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13235         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13236         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13237         Add __builtin_aarch64_simd_hf.
13238         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13239         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13240         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13241         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13242         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13243         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13244         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13245         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13246         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13247
13248         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13249         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13250         (VDC, Vdbl): Add V4HF.
13251
13252 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13253
13254         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13255         V4HFmode and V8HFmode.
13256         (aarch64_split_simd_move): Add case for V8HFmode.
13257         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13258         (aarch64_simd_builtin_std_type): Handle HFmode.
13259         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13260
13261         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13262         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13263         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13264
13265         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13266         Float16x8_t.
13267
13268         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13269         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13270         New typedefs.
13271         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13272         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13273         vst1q_lane_f16): New.
13274         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13275         (VALLDI_F16, VALL_F16): New.
13276         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13277         Add cases for V4HF and V8HF.
13278         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13279
13280 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13281
13282         * config/arm/arm-builtins.c (VAR11, VAR12): New.
13283         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13284         vld4_dup): Add v4hf variant.
13285         (vget_high, vget_low): Add v8hf variant.
13286         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13287         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13288         v4hf and v8hf variants.
13289
13290         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13291         (VDX): Add V4HF.
13292         (V_DOUBLE): Add case for V4HF.
13293         (VQX): Add V8HF.
13294         (V_HALF): Add case for V8HF.
13295         (VDQX): Add V4HF, V8HF.
13296         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13297         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13298
13299         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13300         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13301         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13302         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13303         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13304         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13305         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13306         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13307         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13308
13309         (neon_vcreate, neon_vreinterpretv8qi<mode>,
13310         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13311         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13312         Change VDX to VD_RE.
13313
13314         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13315         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13316         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13317
13318         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13319         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13320         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13321         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13322         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13323         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13324         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13325         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13326         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13327
13328 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13329
13330         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13331         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13332         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13333         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13334         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13335         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13336         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13337         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13338         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13339         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13340         New.
13341
13342 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13343
13344         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13345
13346         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13347
13348         * config/arm/arm-builtins.c (v8hf_UP): New.
13349         (arm_init_simd_builtin_types): Initialise Float16x8_t.
13350
13351         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13352
13353         * config/arm/arm_neon.h (float16x8_t): New typedef.
13354
13355 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13356
13357         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13358         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13359         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13360         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13361         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13362         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13363         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13364         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13365         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13366         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13367
13368 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
13369
13370         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13371         non-alphanumeric characters in the symbol name.
13372
13373 2015-09-07  Marek Polacek  <polacek@redhat.com>
13374
13375         PR inline-asm/67448
13376         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13377         a memory input.
13378
13379 2015-09-07  Marek Polacek  <polacek@redhat.com>
13380
13381         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13382
13383 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
13384
13385         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13386         not warn.
13387
13388 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
13389
13390         PR middle-end/67452
13391         * tree-ssa-live.c: Include cfgloop.h.
13392         (remove_unused_locals): Clear loop->simduid if simduid is about
13393         to be removed from cfun->local_decls.
13394
13395 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13396
13397         PR target/65210
13398         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13399         attribute as well.
13400
13401 2015-09-04  Tom de Vries  <tom@codesourcery.com>
13402
13403         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13404
13405 2015-09-04  Jeff Law  <law@redhat.com>
13406
13407         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13408         unnecessary constructor.  It's now trivial and implemented inside...
13409         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13410         constructor.  Add comments to various methods.  Remove unused
13411         private fields.
13412         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13413         * tree-vrp.c (identify_jump_threads): Likewise.
13414         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13415         indentation issues.
13416         (thread_across_edge): Similarly.
13417         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13418         arguments in constructor call.
13419
13420 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
13421
13422         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13423         temp path contains a '-'.
13424
13425 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13426             Petr Murzin  <petr.murzin@intel.com>
13427             Kirill Yukhin  <kirill.yukhin@intel.com>
13428
13429         * config/i386/i386-builtin-types.def
13430         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13431         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13432         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13433         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13434         * config/i386/i386.c
13435         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13436         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13437         IX86_BUILTIN_SCATTERALTDIV16SI.
13438         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13439         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13440         __builtin_ia32_scatteraltdiv8si.
13441         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13442         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13443         IX86_BUILTIN_SCATTERALTDIV16SI.
13444         (ix86_vectorize_builtin_scatter): New.
13445         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13446         ix86_vectorize_builtin_scatter.
13447
13448 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13449             Petr Murzin  <petr.murzin@intel.com>
13450             Kirill Yukhin  <kirill.yukhin@intel.com>
13451
13452         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13453         * doc/tm.texi: Regenerate.
13454         * target.def: Add scatter builtin.
13455         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13456         for loads/stores in case of gather/scatter accordingly.
13457         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13458         STMT_VINFO_GATHER_P(S).
13459         (vect_check_gather): Rename to ...
13460         (vect_check_gather_scatter): this.
13461         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13462         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13463         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13464         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13465         variable and new checkings for it accordingly.
13466         * tree-vect-stmts.c
13467         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13468         STMT_VINFO_GATHER_P(S).
13469         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13470         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13471
13472 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13473
13474         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13475         define_insn.
13476         (mulv16qi3): New define_expand.
13477
13478 2015-09-03  Martin Sebor  <msebor@redhat.com>
13479
13480         PR c/66516
13481         * doc/extend.texi (Other Builtins): Document when the address
13482         of a built-in function can be taken.
13483
13484 2015-09-03  Richard Biener  <rguenther@suse.de>
13485
13486         * dwarf2out.c (flush_limbo_die_list): Split out from ...
13487         (dwarf2out_early_finish): ... here.
13488         (dwarf2out_finish): Do not call dwarf2out_early_finish but
13489         flush_limbo_die_list.  Assert we have no deferred asm names.
13490
13491 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13492
13493         * optabs.c (expand_binop): Don't create a broadcast vector with a
13494         source element wider than the inner mode.
13495
13496 2015-09-03  Richard Biener  <rguenther@suse.de>
13497
13498         * varasm.c (output_constant): Use fold_convert instead of
13499         wide_int_to_tree.
13500
13501 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13502
13503         PR tree-optimization/65637
13504         * omp-low.c (expand_omp_for_static_chunk): Handle case that
13505         fin_bb has 2 predecessors.
13506
13507 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13508
13509         PR tree-optimization/65637
13510         * omp-low.c (find_phi_with_arg_on_edge): New function.
13511         (expand_omp_for_static_chunk): Fix inner loop phi.
13512
13513 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13514
13515         PR tree-optimization/65637
13516         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13517         that head is NULL.
13518
13519 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13520
13521         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13522
13523 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13524
13525         * doc/invoke.texi (parloops-chunk-size): Add item.
13526         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13527         * tree-parloops.c: Include params.h.
13528         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13529         param parloops-chunk-size is used.
13530
13531 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13532
13533         PR middle-end/67351
13534         * fold-const.c (fold_binary_loc) : Move
13535         Transform (x >> c) << c into x & (-1<<c) or
13536         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13537         types using simplify and match.
13538         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13539         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13540
13541 2015-09-03  Richard Biener  <rguenther@suse.de>
13542
13543         PR ipa/66705
13544         * tree-ssa-structalias.c (ctor_for_analysis): New function.
13545         (create_variable_info_for_1): Use ctor_for_analysis instead
13546         of get_constructor.
13547         (create_variable_info_for): Likewise.
13548
13549 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
13550
13551         PR ipa/67280
13552         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13553         in new callgraph edge.
13554
13555 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
13556
13557         PR target/59810
13558         PR target/63652
13559         PR target/63653
13560         * config/aarch64/aarch64-simd.md
13561         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13562         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13563         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13564         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13565
13566 2015-09-02  Alan Modra  <amodra@gmail.com>
13567
13568         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13569         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13570         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13571
13572 2015-09-02  Alan Modra  <amodra@gmail.com>
13573
13574         PR target/67417
13575         * config/rs6000/predicates.md (current_file_function_operand): Don't
13576         return true for weak symbols.
13577         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13578
13579 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13580             Andrew Bennett  <andrew.bennett@imgtec.com>
13581
13582         * config/mips/mips-opts.h (mips_cb_setting): New enum.
13583         * config/mips/mips-protos.h: Add definitions for
13584         mips_output_jump and mips_output_equal_conditional_branch
13585         * config/mips/mips.c (MIPS_JR): Change to support the
13586         JIC instruction.
13587         (mips_emit_compare): Add support for the MIPS R6 conditional
13588         compact branches.
13589         (mips_process_sync_loop): Likewise.
13590         (mips_output_order_conditional_branch): Likewise.
13591         (mips16_build_call_stub): Change MIPS_CALL to
13592         mips_output_jump.
13593         (mips_print_operand_punctuation): Update 's' case to only
13594         apply to micromips r2.
13595         (mips_adjust_insn_length): Add support for forbidden slot
13596         hazards.
13597         (mips_avoid_hazard): Likewise.
13598         (mips_reorg_process_insns): Likewise.
13599         (mips_output_jump): New function.
13600         (mips_output_equal_conditional_branch): Likewise.
13601         (mips_output_conditional_branch): Use jrc/bc if compact
13602         branch support is enabled.  Ensure the forbidden slots
13603         between the two branch instructions is filled with a nop.
13604         (mips_option_override): Add support to process the compact
13605         branch option and set the correct defaults.  Prevent
13606         non-explict relocs being using for MIPS R6.
13607         (mips_trampoline_init): Add compact branch support.
13608         (mips_mult_zero_zero_cost): Allow zero initialisation of
13609         accumulators with TARGET_DSP.
13610         * config/mips/mips.h (TARGET_CB_NEVER): New define.
13611         (TARGET_CB_MAYBE): New define.
13612         (TARGET_CB_ALWAYS): New define.
13613         (ISA_HAS_DELAY_SLOTS): New define.
13614         (ISA_HAS_COMPACT_BRANCHES): New define.
13615         (ISA_HAS_JRC): New define.
13616         (MIPS_BRANCH_C): New define.
13617         (MIPS_CALL): Removed.
13618         (MICROMIPS_J): Removed.
13619         * config/mips/mips.md (compact_form): New attr.
13620         (hazard): Add support for forbidden slots.
13621         (define_delay): Add support for compact branches.
13622         (*branch_order<mode>): Likewise.
13623         (*branch_order<mode>_inverted): Likewise.
13624         (*branch_equality<mode>): Likewise.
13625         (*branch_equality<mode>_inverted): Likewise.
13626         (*jump_absolute): Likewise.
13627         (*jump_pic): Likewise.
13628         (indirect_jump): Use mips_output_jump to produce assembly output.
13629         (tablejump_<mode>"): Likewise.
13630         (*<optab>"): Likewise.
13631         (<optab>_internal): Likewise.
13632         (sibcall_internal): Likewise.
13633         (sibcall_value_internal): Likewise.
13634         (sibcall_value_multiple_internal): Likewise.
13635         (call_internal): Likewise.
13636         (call_split): Likewise.
13637         (call_internal_direct): Likewise.
13638         (call_direct_split): Likewise.
13639         (call_value_internal): Likewise.
13640         (call_value_split): Likewise.
13641         (call_value_internal_direct): Likewise.
13642         (call_value_direct_split): Likewise.
13643         (call_value_multiple_internal): Likewise.
13644         (call_value_multiple_split): Likewise.
13645         (mips_get_fcsr_mips16_<mode>): Likewise.
13646         (mips_set_fcsr_mips16_<mode>): Likewise.
13647         (tls_get_tp_mips16_<mode>): Likewise.
13648         * config/mips/mips.opt: Add -mcompact-branches option.
13649         * config/mips/predicates.md (order_operator): Ensure the
13650         conditional compact branches are only used if the ISA them.
13651         * doc/invoke.texi: Document -mcompact-branches option.
13652
13653 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
13654
13655         PR target/61578
13656         * lra-lives.c (process_bb_lives): Process move pseudos with the
13657         same value for copies and preferences
13658         * lra-constraints.c (match_reload): Create match reload pseudo
13659         with the same value from single dying input pseudo.
13660
13661 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13662
13663         PR target/67405
13664         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13665
13666 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
13667
13668         * trans-mem.c: Add contributed-by.
13669         * trans-mem.h: Same.
13670
13671 2015-09-01  Richard Biener  <rguenther@suse.de>
13672
13673         * expr.c (expand_expr_real_1): For expanding TERed defs
13674         set the current location to that of the def if not UNKNOWN.
13675
13676 2015-09-01  David Sherwood  <david.sherwood@arm.com>
13677
13678         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13679
13680 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13681
13682         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13683         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
13684         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13685         Include rtl-iter.h.
13686         (noce_simple_bbs): New function.
13687         (noce_try_move): Bail if basic blocks are not simple.
13688         (noce_try_store_flag): Likewise.
13689         (noce_try_store_flag_constants): Likewise.
13690         (noce_try_addcc): Likewise.
13691         (noce_try_store_flag_mask): Likewise.
13692         (noce_try_cmove): Likewise.
13693         (noce_try_minmax): Likewise.
13694         (noce_try_abs): Likewise.
13695         (noce_try_sign_mask): Likewise.
13696         (noce_try_bitop): Likewise.
13697         (bbs_ok_for_cmove_arith): New function.
13698         (noce_emit_all_but_last): Likewise.
13699         (noce_emit_insn): Likewise.
13700         (noce_emit_bb): Likewise.
13701         (noce_try_cmove_arith): Handle non-simple basic blocks.
13702         (insn_valid_noce_process_p): New function.
13703         (contains_mem_rtx_p): Likewise.
13704         (bb_valid_for_noce_process_p): Likewise.
13705         (noce_process_if_block): Allow non-simple basic blocks
13706         where appropriate.
13707
13708 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
13709
13710         * tree-ssa-dom.c (record_equivalences_from_phis,
13711         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13712         (lookup_avail_expr): Likewise, and remove comment and unused temp.
13713
13714 2015-09-01  Nick Clifton  <nickc@redhat.com>
13715
13716         * config/msp430/msp430.opt (mcpu): Fix typo.
13717
13718 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13719
13720         * config/aarch64/aarch64.c (aarch64_set_current_function):
13721         Re-layout any vector parameters have non-simd layout.
13722         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13723         Delete.
13724         (aarch64_simd_expand_args): Delete call to the above.
13725
13726 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
13727
13728         * doc/invoke.texi (asan-stack): Add space before option.
13729
13730 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13731
13732         * tree.h (zerop): New function.
13733         * tree.c (zerop): Likewise.
13734         (element_precision): Handle expressions.
13735         * match.pd (define_predicates): Add zerop.
13736         (x <= +Inf): Fix comment.
13737         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13738         * fold-const.c (fold_binary_loc): ... here. Remove.
13739
13740 2015-08-31  Richard Biener  <rguenther@suse.de>
13741
13742         PR middle-end/67381
13743         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13744
13745 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13746
13747         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13748         (CEXPI): New operator list.
13749         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13750         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13751         Converted from ...
13752         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13753
13754 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13755
13756         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13757         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13758         parameter.
13759         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13760         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13761         (rewrite_into_loop_closed_ssa): ... here.
13762         (replace_uses_in_dominated_bbs): Remove function.
13763         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13764         rewrite_into_loop_closed_ssa_1.
13765
13766 2015-08-31  Michael Matz  <matz@suse.de>
13767
13768         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13769         enter entry and exit blocks for reverse post order.
13770
13771 2015-08-31  Richard Biener  <rguenther@suse.de>
13772
13773         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13774         (lto_location_cache::current_sysp): Likewise.
13775         (output_block::current_sysp): Likewise.
13776         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13777         (lto_location_cache::apply_location_cache): Properly record
13778         system header locations.
13779         (lto_location_cache::input_location): Input whether a file
13780         is a system header.
13781         * lto-streamer-out.c (lto_output_location): Stream whether a file
13782         is a system header.
13783
13784 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13785
13786         PR bootstrap/67363
13787         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13788
13789 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13790
13791         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13792         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13793         Improve function header comments.
13794
13795 2015-08-30  Michael Collison  <michael.collison@linaro.org>
13796
13797         PR other/67320
13798         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13799         standard names
13800
13801 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13802
13803         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13804         special_handling bitfield.
13805         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13806         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13807         that represents a general xxpermdi.
13808         (insn_is_swappable_p): Add handling for vec_concat of two
13809         doublewords, which maps to a specific xxpermdi.
13810         (adjust_xxpermdi): New function.
13811         (adjust_concat): Likewise.
13812         (handle_special_swappables): Call adjust_xxpermdi and
13813         adjust_concat.
13814         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13815
13816 2015-08-30  Rich Felker <dalias@libc.org>
13817
13818         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13819         case instead of sh[123456ble]-*-*.
13820
13821 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
13822
13823         * ira.c (print_unform_and_important_classes,
13824         print_translated_classes): Remove reg_class_names static array.
13825         (print_unform_and_important_classes): Rename to ...
13826         (print_uniform_and_important_classes): ... this.
13827         (ira_debug_allocno_classes): Update accordingly.
13828
13829 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13830
13831         PR tree-optimization/46193
13832         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13833         clause.
13834
13835 2015-08-28  Jeff Law  <law@redhat.com>
13836
13837         PR lto/66752
13838         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13839         unable to find X NE 0 in the tables, return X as the simplified
13840         condition.
13841         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13842         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13843         to VISISTED_BBS.
13844         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13845         after removing the control flow statement and unnecessary edges.
13846
13847 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
13848
13849         Revert:
13850         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13851
13852         PR tree-optimization/67283
13853         * tree-sra.c (type_consists_of_records_p): Rename to...
13854         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13855
13856         (completely_scalarize_record): Rename to...
13857         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13858         code to:
13859         (scalarize_elem): New.
13860
13861 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
13862
13863         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13864         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13865         (aarch64_symbol_type): Likewise.
13866         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13867         Likewise.
13868         (aarch64_expand_mov_immediate): Likewise.
13869         (aarch64_print_operand): Likewise.
13870         (aarch64_classify_tls_symbol): Likewise.
13871
13872 2015-08-28  Richard Biener  <rguenther@suse.de>
13873
13874         * cgraphunit.c (symbol_table::compile): Move early debug generation
13875         and finish...
13876         (symbol_table::finalize_compilation_unit): ... back here and
13877         add a !seen_error () guard.
13878
13879 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13880
13881         * toplev.c (process_options): Do not use flag_loop_block,
13882         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
13883         flag_loop_optimize_isl.
13884
13885 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13886
13887         * Makefile.in (OBJS): Remove graphite-blocking.o and
13888         graphite-interchange.o.
13889         * common.opt (floop-strip-mine, floop-interchange, floop-block):
13890         Alias of floop-nest-optimize.
13891         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13892         Document as alias of -floop-nest-optimize.
13893         * graphite-blocking.c: Remove.
13894         * graphite-interchange.c: Remove.
13895         * graphite-optimize-isl.c: Include dumpfile.h.
13896         (getScheduleForBand): Add dump for tiled loops.  Use
13897         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13898         * graphite-poly.c (scop_max_loop_depth): Remove.
13899         (print_scattering_function_1): Remove.
13900         (print_scattering_function): Remove.
13901         (print_scattering_functions): Remove.
13902         (debug_scattering_function): Remove.
13903         (debug_scattering_functions): Remove.
13904         (apply_poly_transforms): Remove use of flag_loop_block,
13905         flag_loop_strip_mine, and flag_loop_interchange.
13906         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13907         PBB_ORIGINAL.
13908         (print_pdr_access_layout): Remove.
13909         (print_pdr): Print ISL representation.
13910         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13911         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13912         (free_scop): Same.
13913         (openscop_print_pbb_domain): Remove.
13914         (print_pbb): Remove call to print_scattering_function.
13915         (openscop_print_scop_context): Remove.
13916         (print_scop_context): Do not print matrices anymore.
13917         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13918         SCOP_TRANSFORMED_SCHEDULE.
13919         (print_isl_set): Add printing of a new line.
13920         (print_isl_map): Same.
13921         (print_isl_aff): Same.
13922         (print_isl_constraint): Same.
13923         (loop_to_lst): Remove.
13924         (scop_to_lst): Remove.
13925         (lst_indent_to): Remove.
13926         (print_lst): Remove.
13927         (debug_lst): Remove.
13928         (dot_lst_1): Remove.
13929         (dot_lst): Remove.
13930         (reverse_loop_at_level): Remove.
13931         (reverse_loop_for_pbbs): Remove.
13932         * graphite-poly.h (pdr_dim_iter_domain): Remove.
13933         (pdr_nb_params): Remove.
13934         (pdr_alias_set_dim): Remove.
13935         (pdr_subscript_dim): Remove.
13936         (pdr_iterator_dim): Remove.
13937         (pdr_parameter_dim): Remove.
13938         (same_pdr_p): Remove.
13939         (struct poly_scattering): Remove.
13940         (struct poly_bb): Remove _original, _transformed, _saved.
13941         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13942         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13943         (PBB_NB_LOCAL_VARIABLES): Remove.
13944         (PBB_NB_SCATTERING_TRANSFORM): Remove.
13945         (schedule_to_scattering): Remove.
13946         (number_of_write_pdrs): Remove.
13947         (pbb_dim_iter_domain): Remove.
13948         (pbb_nb_params): Remove.
13949         (pbb_nb_scattering_orig): Remove.
13950         (pbb_nb_scattering_transform): Remove.
13951         (pbb_nb_dynamic_scattering_transform): Remove.
13952         (pbb_nb_local_vars): Remove.
13953         (pbb_iterator_dim): Remove.
13954         (pbb_parameter_dim): Remove.
13955         (psco_scattering_dim): Remove.
13956         (psct_scattering_dim): Remove.
13957         (psct_local_var_dim): Remove.
13958         (psco_iterator_dim): Remove.
13959         (psct_iterator_dim): Remove.
13960         (psco_parameter_dim): Remove.
13961         (psct_parameter_dim): Remove.
13962         (psct_dynamic_dim): Remove.
13963         (psct_static_dim): Remove.
13964         (psct_add_local_variable): Remove.
13965         (new_lst_loop): Remove.
13966         (new_lst_stmt): Remove.
13967         (free_lst): Remove.
13968         (copy_lst): Remove.
13969         (lst_add_loop_under_loop): Remove.
13970         (lst_depth): Remove.
13971         (lst_dewey_number): Remove.
13972         (lst_dewey_number_at_depth): Remove.
13973         (lst_pred): Remove.
13974         (lst_succ): Remove.
13975         (lst_find_pbb): Remove.
13976         (find_lst_loop): Remove.
13977         (lst_find_first_pbb): Remove.
13978         (lst_empty_p): Remove.
13979         (lst_find_last_pbb): Remove.
13980         (lst_contains_p): Remove.
13981         (lst_contains_pbb): Remove.
13982         (lst_create_nest): Remove.
13983         (lst_remove_from_sequence): Remove.
13984         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13985         (lst_niter_for_loop): Remove.
13986         (pbb_update_scattering): Remove.
13987         (lst_update_scattering_under): Remove.
13988         (lst_update_scattering): Remove.
13989         (lst_insert_in_sequence): Remove.
13990         (lst_replace): Remove.
13991         (lst_substitute_3): Remove.
13992         (lst_distribute_lst): Remove.
13993         (lst_remove_all_before_including_pbb): Remove.
13994         (lst_remove_all_before_excluding_pbb): Remove.
13995         (struct scop): Remove original_schedule, transformed_schedule, and
13996         saved_schedule.
13997         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13998         (SCOP_SAVED_SCHEDULE): Remove.
13999         (poly_scattering_new): Remove.
14000         (poly_scattering_free): Remove.
14001         (poly_scattering_copy): Remove.
14002         (store_scattering_pbb): Remove.
14003         (store_lst_schedule): Remove.
14004         (restore_lst_schedule): Remove.
14005         (store_scattering): Remove.
14006         (restore_scattering_pbb): Remove.
14007         (restore_scattering): Remove.
14008         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14009         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
14010         compute the scattering polyhedron dimension from the dimension of
14011         pbb->domain.
14012         (build_scop_scattering): Update call to
14013         build_pbb_scattering_polyhedrons.
14014         (build_poly_scop): Remove call to scop_to_lst.
14015         * graphite.c (graphite_transform_loops): Add call to print_scop.
14016         (gate_graphite_transforms): Remove use of flag_loop_block,
14017         flag_loop_interchange, and flag_loop_strip_mine.
14018
14019 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
14020
14021         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14022         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14023         -floop-nest-optimize.
14024         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14025         (generate_luj_sepclass): Remove.
14026         (generate_luj_options): Remove.
14027         (set_options): Remove opt_luj.
14028         (scop_to_isl_ast): Remove opt_luj.
14029         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14030         flag_loop_unroll_jam.
14031         (getPrevectorMap_full): Remove.
14032         (getScheduleForBandList): Remove map_sepcl.
14033         (getScheduleMap): Same.
14034         (apply_schedule_map_to_scop): Remove sepcl.
14035         (optimize_isl): Same.
14036         * graphite-poly.c (apply_poly_transforms): Remove check for
14037         flag_loop_unroll_jam.
14038         (new_poly_bb): Remove map_sepclass.
14039         * graphite-poly.h (struct poly_bb): Same.
14040         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14041         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14042         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14043         * toplev.c (process_options): Remove flag_loop_unroll_jam.
14044
14045 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
14046
14047         PR target/67317
14048         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14049         (addqi3_cc): Ditto.
14050         (UNSPEC_ADD_CARRY): Remove.
14051         (addqi3_cconly_overflow): New expander.
14052         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14053         Adjust for changed add<mode>3_carry.
14054         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14055         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14056         (<plusminus_insn><mode>3_carry): Remove expander.
14057         (*<plusminus_insn><mode>3_carry): Split insn pattern to
14058         add<mode>3_carry and sub<mode>3_carry.
14059         (plusminus_carry_mnemonic): Remove code attribute.
14060         (add<mode>3_carry): Canonicalize insn pattern.
14061         (*addsi3_carry_zext): Ditto.
14062         (sub<mode>3_carry): Ditto.
14063         (*subsi3_carry_zext): Ditto.
14064         (adcx<mode>3): Remove insn pattern.
14065         (addcarry<mode>): New insn pattern.
14066         (subborrow<mode>): Ditto.
14067         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14068         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14069         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14070         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14071         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14072         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14073         Rewrite expander to not clobber carry flag chains.
14074
14075 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
14076
14077         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14078         instead of a rotate.
14079
14080 2015-08-27  Marek Polacek  <polacek@redhat.com>
14081
14082         PR middle-end/67005
14083         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14084         an entry into an irreducible region.
14085
14086 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14087
14088         * configure: Regenerate.
14089
14090 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14091
14092         PR tree-optimization/67283
14093         * tree-sra.c (type_consists_of_records_p): Rename to...
14094         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14095
14096         (completely_scalarize_record): Rename to...
14097         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14098         (scalarize_elem): New.
14099
14100 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14101
14102         * tree-sra.c (completely_scalarize_var): Rename to...
14103         (create_total_scalarization_access): ... Here. Drop call to
14104         completely_scalarize_record.
14105
14106         (analyze_all_variable_accesses): Replace completely_scalarize_var
14107         with create_total_scalarization_access and completely_scalarize_record.
14108
14109 2015-08-27  Alan Modra  <amodra@gmail.com>
14110
14111         PR target/67356
14112         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14113         for operand 1.
14114
14115 2015-08-27  Richard Biener  <rguenther@suse.de>
14116
14117         * passes.c (rest_of_decl_compilation): Guard early_global_decl
14118         call with !seen_error ().
14119         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14120         early debug generation and finish...
14121         (symbol_table::compile): ... here to put it after a !seen_error ()
14122         guard.
14123
14124 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14125
14126         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14127         Solaris 12+.
14128
14129 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14130             Andre Vieira  <andre.simoesdiasvieira@arm.com>
14131
14132         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14133         (*cb<optab><mode>1): Likewise.
14134         (*tb<optab><mode>1): Likewise.
14135         (*cb<optab><mode>1): Likewise.
14136         * config/aarch64/iterators.md (inv_cb): New code attribute.
14137         (inv_tb): Likewise.
14138         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14139         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14140
14141 2015-08-27  Richard Biener  <rguenther@suse.de>
14142
14143         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14144
14145 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14146
14147         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14148         trap to fix ICE.
14149
14150 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14151
14152         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14153         Add declaration.
14154
14155         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14156         comment.
14157         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14158         floating point in VSX registers.
14159         (rs6000_output_move_128bit): Always print out the set insn if we
14160         can't generate an appropriate 128-bit move.
14161         (rs6000_generate_compare): Add support for IEEE 128-bit floating
14162         point in VSX registers comparisons.
14163         (rs6000_expand_float128_convert): Likewise.
14164
14165         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14166         predicate for only GPR hard registers.
14167
14168         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14169         modes to iterators. Add new iterators for moving 128-bit values in
14170         scalar FPR registers and VSX registers.
14171         (FMOVE128): Likewise.
14172         (FMOVE128_FPR): Likewise.
14173         (FMOVE128_GPR): Likewise.
14174         (FMOVE128_VSX): Likewise.
14175         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14176         in VSX registers.
14177         (IFKF): Likewise.
14178         (IBM128): Likewise.
14179         (TFIFKF): Likewise.
14180         (RELOAD): Add IEEE 128-bit floating point modes.
14181         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14182         floating point in VSX registers modes.
14183         (signbit<mode>2, IBM128 iterator): Likewise.
14184         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14185         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14186         (negtf2): Likewise.
14187         (neg<mode>2, TFIFKF iterator): Likewise.
14188         (negtf2_internal): Likewise.
14189         (abstf2): Likewise.
14190         (abs<mode>2, TFIFKF iterator): Likewise.
14191         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14192         VSX insn support for negate, absolute value, and negative absolute
14193         value.
14194         (ieee_128bit_vsx_neg<mode>2): Likewise.
14195         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14196         (ieee_128bit_vsx_abs<mode>2): Likewise.
14197         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14198         (ieee_128bit_vsx_nabs<mode>2): Likewise.
14199         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14200         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14201         floating point in VSX registers.
14202         (unpack<mode>_dm): Likewise.
14203         (unpack<mode>_nodm): Likewise.
14204         (pack<mode>): Likewise.
14205         (unpackv1ti): Likewise.
14206         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14207         (packv1ti): Likewise.
14208         (pack<mode>, FMOVE128_VSX iterator): Likewise.
14209         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14210         registers.
14211         (extenddftf2_internal): Likewise.
14212         (trunctfdf2): Likewise.
14213         (trunctfdf2_internal2): Likewise.
14214         (fix_trunc_helper): Likewise.
14215         (fix_trunctfdi2"): Likewise.
14216         (floatditf2): Likewise.
14217         (floatuns<mode>tf2): Likewise.
14218         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14219         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14220         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14221         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14222         (float<SDI:mode><IFKF:mode>2): Likewise.
14223         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14224
14225 2015-08-26  Renlin Li  <renlin.li@arm.com>
14226
14227         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14228
14229 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14230             Jiong Wang  <jiong.wang@arm.com>
14231
14232         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14233         (tlsie_tiny_<mode>): New define_insn.
14234         (tlsie_tiny_sidi): Likewise.
14235         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14236         SYMBOL_TINY_TLSIE.
14237         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14238         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14239         SYMBOL_TINY_TLSIE.
14240         (aarch64_expand_mov_immediate): Likewise.
14241         (aarch64_print_operand): Likewise.
14242         (arch64_classify_tls_symbol): Likewise.
14243
14244 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14245
14246         * config/arm/arm-arches.def: Replace single value flags with
14247         an initializer built from ARM_FSET_MAKE_CPU1.
14248         * config/arm/arm-cores.def: Likewise.
14249         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14250         derivation from the ARM_CORE macro definition, use the given value
14251         instead.
14252         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14253         ARM_ARCH macro definition, use the given value instead.
14254
14255 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14256
14257         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14258         feature set.
14259         (struct builtin_description): Replace field mask with field
14260         features.
14261         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14262         (IWMMXT2_BUILTIN): Likewise.
14263         (IWMMXT2_BUILTIN2): Likewise.
14264         (FP_BUILTIN): Likewise.
14265         (CRC32_BUILTIN): Likewise.
14266         (CRYPTO_BUILTIN): Likewise.
14267         (iwmmx_mbuiltin): Likewise.
14268         (iwmmx2_mbuiltin): Likewise.
14269         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14270         struct builtin_description.
14271
14272 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14273
14274         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14275         (struct builtin_description): Change type of mask to unsigned
14276         long.
14277         * config/arm/arm-protos.h (insn_flags): Declare as type
14278         arm_feature_set.
14279         (tune_flags): Likewise.
14280         * config/arm/arm.c (feature_count): New.
14281         (insn_flags): Define as type arm_feature_set.
14282         (tune_flags): Likewise.
14283         (struct processors): Define field flags as type arm_feature_set.
14284         (all_cores): Update for change to struct processors.
14285         (all_architectures): Likewise.
14286         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14287         macros.
14288         (arm_option_override_internal): Likewise.
14289         (arm_option_override): Likewise.
14290
14291 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14292             Jiong Wang  <jiong.wang@arm.com>
14293
14294         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14295         tls size for tiny, small, large memory model.
14296         (aarch64_load_symref_appropriately): Support new symbol types.
14297         (aarch64_expand_mov_immediate): Likewise.
14298         (aarch64_print_operand): Likewise.
14299         (aarch64_classify_tls_symbol): Likewise.
14300         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14301         (aarch64_symbol_type): Likewise.
14302         * config/aarch64/aarch64.md (tlsle): Deleted.
14303         (tlsle12_<mode>): New define_insn.
14304         (tlsle24_<mode>): Likewise.
14305         (tlsle32_<mode>): Likewise.
14306         (tlsle48_<mode>): Likewise.
14307         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14308         "aarch64_tlsle32".
14309
14310 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14311
14312         * config/arm/arm-protos.h (FL_NONE): New.
14313         (FL_ANY): New.
14314         (arm_feature_set): New.
14315         (ARM_FSET_MAKE): New.
14316         (ARM_FSET_MAKE_CPU1): New.
14317         (ARM_FSET_MAKE_CPU2): New.
14318         (ARM_FSET_CPU1): New.
14319         (ARM_FSET_CPU2): New.
14320         (ARM_FSET_EMPTY): New.
14321         (ARM_FSET_ANY): New.
14322         (ARM_FSET_HAS_CPU1): New.
14323         (ARM_FSET_HAS_CPU2): New.
14324         (ARM_FSET_HAS_CPU): New.
14325         (ARM_FSET_ADD_CPU1): New.
14326         (ARM_FSET_ADD_CPU2): New.
14327         (ARM_FSET_DEL_CPU1): New.
14328         (ARM_FSET_DEL_CPU2): New.
14329         (ARM_FSET_UNION): New.
14330         (ARM_FSET_INTER): New.
14331         (ARM_FSET_XOR): New.
14332         (ARM_FSET_EXCLUDE): New.
14333         (AFM_FSET_IS_EMPTY): New.
14334         (ARM_FSET_CPU_SUBSET): New.
14335
14336 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14337
14338         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14339         SYMBOL_TLSLE to SYMBOL_TLSLE24.
14340         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14341         Likewise.
14342         (aarch64_expand_mov_immediate): Likewise.
14343         (aarch64_print_operand): Likewise.
14344         (aarch64_classify_symbol): Likewise.
14345
14346 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14347
14348         * config/aarch64/aarch64.opt (mtls-size): New entry.
14349         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14350         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14351         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14352
14353 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14354
14355         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14356         ARM_CORE entry.  Fix some white-space.
14357         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14358         ARM_CORE definition.
14359
14360 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14361
14362         * fold-const.c (fold_binary_loc) : Move Optimize
14363         root(x)*root(y) as root(x*y) to match.pd.
14364         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14365         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14366         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14367         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14368         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14369         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14370         (mult (exps:s @0) (exps:s @1)) : New simplifier.
14371         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14372         (rdiv @0 (exps:s @1)) : New simplifier.
14373
14374 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
14375
14376         * gcc.c (driver::finalize): Only assign to extra_specs if
14377         [EXTRA_SPECS].
14378
14379 2015-08-25  Marek Polacek  <polacek@redhat.com>
14380
14381         PR middle-end/67330
14382         * varasm.c (declare_weak): Return after giving an error.
14383
14384 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
14385
14386         * gcc-main.c (main): Add params to driver ctor.
14387         * gcc.c (class env_manager): New.
14388         (env): New global.
14389         (env_manager::init): New.
14390         (env_manager::get): New.
14391         (env_manager::xput): New.
14392         (env_manager::restore): New.
14393         Poison getenv and putenv.
14394         (DEFAULT_TARGET_SYSTEM_ROOT): New.
14395         (target_system_root): Update initialization to use
14396         DEFAULT_TARGET_SYSTEM_ROOT.
14397         (struct spec_list): Add field "default_ptr".
14398         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14399         (init_spec): Likewise.
14400         (set_spec): Clear field "default_ptr".
14401         (read_specs): Free "spec" and "buffer".
14402         (xputenv): Reimplement in terms of env_manager.
14403         (process_command): Replace ::getenv calls with calls to the
14404         env_manager singleton.
14405         (process_brace_body): Free string in three places.
14406         (driver::driver): New.
14407         (driver::~driver): New.
14408         (used_arg): Convert from a function to...
14409         (class used_arg_t): ...this class, and...
14410         (used_arg): ...this new global instance.
14411         (used_arg_t::finalize): New function.
14412         (getenv_spec_function): Add "const" to local "value".  Replace
14413         ::getenv call with call to the env_manager singleton.
14414         (path_prefix_reset): New function.
14415         (driver::finalize): New function.
14416         * gcc.h (driver::driver): New.
14417         (driver::~driver): New.
14418         (driver::finalize): New.
14419
14420 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14421
14422         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14423         target doesn't have one.
14424
14425 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14426
14427         PR target/67346
14428         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14429
14430 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14431
14432         PR target/67344
14433         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14434         a define_insn, remove second alternative.
14435
14436 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
14437             Joseph Myers  <joseph@codesourcery.com>
14438
14439         * gcc.c (struct switchstr): Expand comment.
14440
14441 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14442
14443         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14444         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14445
14446 2015-08-25  Richard Biener  <rguenther@suse.de>
14447
14448         PR middle-end/67306
14449         * genmatch.c (expr::gen_transform): Verify the result of
14450         builtin_decl_implicit.
14451         (dt_simplify::gen_1): Likewise.
14452
14453 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14454
14455         * config/arm/constraints.md: Also list Cs and US ARM-specific
14456         constraints as used.
14457
14458 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14459
14460         PR target/66609
14461         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14462         UNSPEC_PCREL.
14463         (nonpic_symbol_mentioned_p): Likewise.
14464         (sh_delegitimize_address): Likewise.
14465         (sh_function_ok_for_sibcall): Take into account weak symbols.
14466         (sh_expand_sym_label2reg): New.
14467         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14468         * config/sh/sh.md (UNSPEC_PCREL): New enum.
14469         (call_pcrel): Use sh_expand_sym_label2reg.
14470         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14471         (symPCREL_label2reg) New expand.
14472
14473 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14474
14475         * graphite-poly.c: Change type of region from void* to sese.
14476         * graphite-poly.h (struct scop): Changing the type of scop::region
14477         from void* to sese. Change accessor macro accordingly.
14478         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14479
14480 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14481
14482         * graphite-scop-detection.c (stmt_simple_for_scop_p):
14483         Constrain only on INTEGER_TYPE.
14484
14485 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14486
14487         PR target/67211
14488         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14489         -mefficient-unaligned-vsx on ISA 2.7.
14490
14491         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14492         option to a masked option.
14493
14494         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14495         logic for -mefficient-unaligned-vsx so that it is set via an arch
14496         ISA option, instead of being set if -mtune=power8 is set. Move
14497         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14498         near other default option handling.
14499
14500 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14501
14502         * genflags.c (gen_macro): Delete.
14503         (gen_proto): Don't create GEN.*CALL.* macros.
14504         * gensupport.h (get_file_location): Declare.
14505         * gensupport.c (rtx_locs): New variable.
14506         (read_md_rtx): Record rtx locations.
14507         (get_file_location): New function.
14508         * target-insns.def (call, call_pop, call_value, call_value_pop)
14509         (sibcall, sibcall_value): New patterns.
14510         * gentarget-def.c (parse_argument): New function.
14511         (def_target_insn): Use it.  Handle optional operands.  Raise an
14512         error if an .md pattern has the wrong number of operands for the
14513         pattern name.  Remove the names of unused operands from the prototype.
14514         * builtins.c (expand_builtin_apply): Use targetm functions
14515         instead of HAVE_call_value and GEN_CALL_VALUE.
14516         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
14517         and sibcall_value_pop.
14518         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14519         of GEN_CALL.
14520         * config/alpha/alpha.md (untyped_call): Likewise.
14521         * config/iq2000/iq2000.md (untyped_call): Likewise.
14522         * config/m68k/m68k.md (untyped_call): Likewise.
14523         * config/mips/mips.md (untyped_call): Likewise.
14524         * config/pa/pa.md (untyped_call): Likewise.
14525         * config/rs6000/rs6000.md (untyped_call): Likewise.
14526         * config/sparc/sparc.md (untyped_call): Likewise.
14527         * config/tilegx/tilegx.md (untyped_call): Likewise.
14528         * config/tilepro/tilepro.md (untyped_call): Likewise.
14529         * config/visium/visium.md (untyped_call): Likewise.
14530         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14531         gen_call_value instead of GEN_CALL_VALUE.
14532         * config/arm/arm.md (untyped_call): Likewise.
14533         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14534         GEN_CALL.
14535
14536 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14537
14538         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14539         (have_cbranchcc4): New variable.
14540         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14541         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14542         (if_convert): Initialize have_cbranchcc4.
14543
14544 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14545
14546         * builtins.c (expand_cmpstrn): Rename to...
14547         (expand_cmpstrn_or_cmpmem): ...this.
14548         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14549         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14550         Remove mode argument.
14551         (expand_builtin): Update accordingly.
14552
14553 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14554
14555         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14556         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
14557         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14558         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14559         Add predicates for operands 0 and 3.
14560         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14561         operand.
14562         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14563         immediate_operand to nonmemory_operand.
14564
14565 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14566
14567         * df-scan.c (df_insn_info_init_fields): New function, split out
14568         from...
14569         (df_insn_create_insn_record): ...here.
14570         (df_insn_info_free_fields): New function, split out from...
14571         (df_insn_info_delete): ...here.
14572         (df_insn_rescan): Use the new functions instead of freeing and
14573         reallocating the df_insn_info.
14574
14575 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14576
14577         * doc/install.texi (Binaries): Remove links no longer valid.
14578
14579 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14580
14581         * config/nvptx/mkoffload.c (process): Replace
14582         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14583
14584 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
14585
14586         PR target/67329
14587         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14588
14589 2015-08-24  Renlin Li  <renlin.li@arm.com>
14590
14591         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14592         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14593         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14594         * config/arm/constraints.md ("j"): Add check for high code.
14595
14596 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14597
14598         PR tree-optimization/65468
14599         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14600         chunk_size is one.
14601
14602 2015-08-24  Nathan Sidwell  <nathan@acm.org>
14603
14604         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14605         change to nvptx_type_from_mode call. Use arg_promotion for both
14606         split and non-split args.
14607
14608 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14609
14610         * target-insns.def (movstr): New pattern.
14611         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14612         (expand_movstr): Use targetm rather than HAVE_movstr/
14613         CODE_FOR_movstr.
14614
14615 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14616
14617         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14618         cast syntax.
14619
14620 2015-08-24  Andrew Pinski  <apinski@cavium.com>
14621
14622         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14623         AARCH64_EXTRA_TUNING_OPTION.
14624         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14625         New enum.
14626         (aarch64_extra_tuning_flags): Base the shifted value on the index
14627         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14628         * config/aarch64/aarch64.c: Remove the last argument to
14629         AARCH64_EXTRA_TUNING_OPTION.
14630
14631 2015-08-23  Nathan Sidwell  <nathan@acm.org>
14632
14633         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14634         decls.
14635         (nvptx_declare_function_name): Insert formatting tabs for
14636         consistency.
14637
14638 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14639
14640         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14641         parm_decl, rather than generating a dummy default def in cfun.
14642         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
14643         ssa_name from cfun and child_fn do not share a stmt as def stmt.
14644         (move_stmt_op): Handle PARM_DECl.
14645         (gather_ssa_name_hash_map_from): New function.
14646         (move_sese_region_to_fn): Add default defs for function params, and add
14647         them to vars_map.  Release copied ssa names.
14648         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14649
14650 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14651
14652         * doc/sourcebuild.texi: Rename vect_no_int_max with
14653         vect_no_int_min_max.  Update description.
14654
14655 2015-08-22  Andrew Pinski  <apinski@cavium.com>
14656
14657          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14658         * config/aarch64/aarch64-protos.h
14659         (aarch64_fusion_pairs_index): New enum.
14660         (aarch64_fusion_pairs): Base the shifted value on the index instead
14661         Rewrite AARCH64_FUSE_ALL to be based on the end index.
14662         of the argument to AARCH64_FUSION_PAIR.
14663         * config/aarch64/aarch64.c: Remove the last argument to
14664         AARCH64_FUSION_PAIR.
14665
14666 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
14667
14668         * dominance.c (new_zero_array): Define.
14669         (dom_info): Redefine as class with proper encapsulation.
14670         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14671         Add new members.
14672         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
14673         allocations/deallocations.  Pass function as parameter (instead of
14674         using cfun).
14675         (dom_info::get_idom): Define accessor method.
14676         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14677         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
14678         (calculate_dominance_info): Adjust to use dom_info class.
14679         (verify_dominators): Likewise.
14680
14681 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
14682
14683         * print-rtl.c (print_rtx): Check the correct range for
14684         flag_dump_unnumbered_links to behave as documented.
14685
14686         PR rtl-optimization/67227
14687         PR rtl-optimization/64164
14688         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14689         (nonoverlapping_memrefs_p): Test offsets and sizes when given
14690         identical gimple_reg exprs.
14691
14692 2015-08-21  Nathan Sidwell  <nathan@acm.org>
14693
14694         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14695         expansion.
14696         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14697         crtl->stack_alignment_needed to determine alignment.
14698         (nvptx_get_drap_rtx): New.
14699         (TARGET_GET_DRAP_RTX): Override.
14700         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14701
14702 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14703
14704         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14705
14706 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14707
14708         * configure.ac: Remove uwin* cases.
14709         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14710         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14711         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14712         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14713         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14714         i[34567]86-*-uwin*, powerpc-*-beos*.
14715
14716 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
14717
14718         * gencodes.c (gencodes): Print the comma for the preceding
14719         enum value rather than the current one.  Use aliased enum values
14720         rather than #defines for compiled-out patterns.
14721         (main): Update accordingly.  Replace LAST_INSN_CODE with
14722         NUM_INSN_CODES.
14723         * lra.c (insn_code_data): Update accordingly.
14724         (finish_insn_code_data_once, get_static_insn_data): Likewise.
14725         * recog.h (target_recog): Likewise.
14726         (preprocess_insn_constraints): Change parameter to unsigned int.
14727         * recog.c (preprocess_insn_constraints): Likewise.
14728         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14729         * tree-vect-stmts.c (vectorizable_operation): Simplify.
14730
14731 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14732
14733         PR rtl-optimization/61657
14734         * loop-iv.c (iv_number_of_iterations): Declare up and down as
14735         unsigned.  Remove superflous uint64_t cast.
14736
14737 2014-08-21  Felix Yang  <felix.yang@huawei.com>
14738             Jiji Jiang  <jiangjiji@huawei.com>
14739
14740         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14741         argument and get builtin function code directly from CALL.
14742         (gimple_stringop_fixed_value): Modified accordingly.
14743         (gimple_stringops_transform, gimple_stringops_values_to_profile):
14744         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14745
14746 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14747
14748         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14749
14750 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14751
14752         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14753         to match.pd.
14754         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14755         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14756         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14757         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14758         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14759         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14760         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14761         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14762         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14763         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14764
14765         * match.pd (SIN ) : New Operator.
14766         (TAN) : New Operator.
14767         (mult (SQRT@1 @0) @1) : New simplifier.
14768         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14769         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14770         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14771         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14772         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14773         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14774         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14775         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14776         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14777         (rdiv @0 (POW:s @1 @2)) : New simplifier.
14778
14779 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
14780
14781         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14782         loop if EXPR is simplified to const value.
14783
14784 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
14785
14786         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14787         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14788
14789 2015-08-21  Richard Biener  <rguenther@suse.de>
14790
14791         PR middle-end/67285
14792         * gimple-fold.c (replace_stmt_with_simplification): Assert
14793         seq is empty when replacing a call with itself but different
14794         arguments.
14795         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14796         a call require that it is const.
14797
14798 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14799
14800         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14801         * builtins.c (get_object_alignment_2): Adjust.
14802         * varasm.c (align_variable): Likewise.
14803         (get_variable_align): Likewise.
14804         (build_constant_desc): Likewise.
14805         (force_const_mem): Likewise.
14806         * doc/tm.texi.in: Likewise.
14807         * doc/tm.texi: Regenerate.
14808
14809 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14810
14811         * genconfig.c (main): Always define HAVE_cc0.
14812         * recog.c (rest_of_handle_peephole2): Adjust.
14813
14814 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14815
14816         * reorg.c (relax_delay_slots): Don't use #if to check value of
14817         HAVE_cc0.
14818
14819 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14820
14821         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14822         * targhooks.c (default_have_conditional_execution): Adjust.
14823
14824 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14825
14826         * rtl.h (rtvec_all_equal_p): Declare.
14827         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14828         * rtl.c (rtvec_all_equal_p): New function.
14829         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14830         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14831         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14832         * config/arm/arm.c (neon_vdup_constant): Likewise.
14833         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14834         * config/tilegx/constraints.md (W, Y): Likewise.
14835         * config/tilepro/constraints.md (W, Y): Likewise.
14836         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14837         (classify_immediate): Use unwrap_const_vec_duplicate.
14838         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14839         (reg_or_v2s8bit_operand): Likewise.
14840         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14841         (reg_or_v4s8bit_operand): Likewise.
14842
14843 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14844
14845         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14846         (vec_shasigma_be): New #define.
14847         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14848         (VPMSUMH): Likewise.
14849         (VPMSUMW): Likewise.
14850         (VPMSUMD): Likewise.
14851         (VPMSUM): New BU_P8V_OVERLOAD_2.
14852         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14853         entries for VEC_MADD and VEC_VPMSUM.
14854
14855 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
14856
14857         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14858         Multiply argument avr_n_flash by 64 to match unit of "KiB".
14859         (avr_pgm_check_var_decl): Same.
14860
14861 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
14862
14863         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14864         initialization of HFmode scalar type (float16_t) to...
14865         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14866         code.
14867
14868         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14869
14870         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14871         having an -mfp16-format.
14872
14873 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14874
14875         * config/i386/predicates.md (vector_all_ones_operand): Use
14876         CONSTM1_RTX to simplify definition.
14877
14878 2015-08-20  Richard Biener  <rguenther@suse.de>
14879
14880         * toplev.c (compile_file): Remove loop calling late_global_decl
14881         on all symbols.
14882         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14883         on decls we assembled.
14884
14885 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
14886
14887         * common/config/aarch64/aarch64-common.c
14888         (AARCH64_CPU_NAME_LENGTH): Delete.
14889         (aarch64_option_extension): New.
14890         (all_extensions): Likewise.
14891         (processor_name_to_arch): Likewise.
14892         (arch_to_arch_name): Likewise.
14893         (all_cores): New.
14894         (all_architectures): Likewise.
14895         (aarch64_get_extension_string_for_isa_flags): Likewise.
14896         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14897         architecture names.
14898         * config/aarch64/aarch64-protos.h
14899         (aarch64_get_extension_string_for_isa_flags): New.
14900         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14901         (aarch64_option_print): Get the string to print from
14902         aarch64_get_extension_string_for_isa_flags.
14903         (aarch64_declare_function_name): Likewise.
14904         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14905         (MCPU_TO_MARCH_SPEC): This.
14906         (ASM_CPU_SPEC): Use it.
14907         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14908         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14909         (EXTRA_SPEC_FUNCTIONS): Use it.
14910
14911 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
14912
14913         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14914         expansion when !ISA_HAS_LWL_LWR.
14915         (mips_block_move_straight): Update the size of elements copied to
14916         account for alignment when !ISA_HAS_LWL_LWR.
14917         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14918
14919 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14920
14921         * expr.c (expand_expr_real_2): Check gimple statement during
14922         LSHIFT_EXPR expand.
14923
14924 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
14925
14926         * common.opt (fstack-protector): Initialize to -1.
14927         (fstack-protector-all): Likewise.
14928         (fstack-protector-strong): Likewise.
14929         (fstack-protector-explicit): Likewise.
14930         * configure.ac: Add --enable-default-ssp.
14931         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
14932         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14933         -1.
14934         * doc/install.texi: Document --enable-default-ssp.
14935         * config.in: Regenerated.
14936         * configure: Likewise.
14937
14938 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
14939
14940         PR rtl-optimization/64164
14941         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14942         (parm_in_stack_slot_p): ... this.  Disregard mode, what
14943         matters is whether the parm will live in a pseudo or a stack
14944         slot.
14945         (expand_one_ssa_partition): Deal with params without a default
14946         def.  Disregard mode.
14947         * cfgexpand.h: Renamed function declaration.
14948         * tree-ssa-coalesce.c: Adjust.
14949         * function.c (split_complex_args): Allocate stack slot for
14950         unassigned parms before splitting.
14951         (parm_in_unassigned_mem_p): New.  Use it instead of
14952         parm_maybe_byref_p throughout this file.
14953         (assign_parm_setup_block): Use it.  Accept pseudos in the
14954         expand-assigned rtl.
14955         (assign_parm_setup_reg): Drop BLKmode requirement.
14956         (assign_parm_setup_stack): Allocate and fill in the address of
14957         unassigned MEM parms.
14958
14959 2015-08-19  David Sherwood  <david.sherwood@arm.com>
14960
14961         * genmodes.c (emit_mode_unit_size_inline): New function.
14962         (emit_mode_unit_precision_inline): New function.
14963         (emit_insn_modes_h): Emit new #define.  Emit new functions.
14964         (emit_mode_unit_size): New function.
14965         (emit_mode_unit_precision): New function.
14966         (emit_mode_adjustments): Add mode_unit_size adjustments.
14967         (emit_insn_modes_c): Emit new arrays.
14968         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14969         use new inline methods.
14970
14971 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14972
14973         * config/aarch64/aarch64.c (bit_count): Delete prototype
14974         and definition.
14975         (aarch64_print_operand): Use popcount_hwi instead of the above.
14976
14977 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14978
14979         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14980         comment.
14981
14982 2015-08-19  Marek Polacek  <polacek@redhat.com>
14983
14984         PR middle-end/67133
14985         * gimple-ssa-isolate-paths.c
14986         (insert_trap_and_remove_trailing_statements): Rename to ...
14987         (insert_trap): ... this.  Don't remove trailing statements; split
14988         block instead.
14989         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14990
14991 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
14992
14993         PR other/67042
14994         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14995         conditionalize the whole on __GNUC__.  Add fallback code
14996         depending neither on undefined nor implementation-defined behaviour.
14997
14998 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14999
15000         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15001         whitespaces with tab.
15002
15003 2015-08-19  Florian Weimer  <fweimer@redhat.com>
15004
15005         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15006         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15007         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15008         Move Name_Ids instantiation to the Prj.Proc package, to avoid
15009         trampolines.
15010
15011 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15012
15013         * config/arm/arm.c (bounds_check): Use %wd print format
15014         for HOST_WIDE_INT arguments.
15015
15016 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
15017
15018         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15019         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15020         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15021         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15022         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15023         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15024         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15025         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15026         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15027         typedefs.
15028
15029 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
15030
15031         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15032         function.c, graphite-scop-detection.c, haifa-sched.c,
15033         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15034         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15035         varasm.c: Remove typedefs of structs.
15036
15037 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15038
15039         * config/rs6000/altivec.h (vec_adde): New define.
15040         (vec_addec): Likewise.
15041         (vec_double): Likewise.
15042         (vec_bperm): Likewise.
15043         (vec_gb): Likewise.
15044         * config/rs6000/rs6000-builtin.def (ADDE): New
15045         BU_ALTIVEC_OVERLOAD_3.
15046         (ADDEC): Likewise.
15047         (DOUBLE): New BU_VSX_OVERLOAD_1.
15048         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15049         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15050         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15051         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15052         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15053         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15054         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15055         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15056         and P8V_BUILTIN_VEC_VBPERMQ.
15057
15058 2015-08-18  Jason Merrill  <jason@redhat.com>
15059
15060         * print-tree.c (print_node): Handle TREE_BINFO.
15061
15062 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15063
15064         PR middle-end/36757
15065         * builtins.c (expand_builtin_signbit): Add asserts to make sure
15066         we can expand BUILT_IN_SIGNBIT inline.
15067         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15068         * doc/extend.texi: Document the type-generic __builtin_signbit.
15069
15070 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
15071
15072         PR rtl-optimization/67218
15073         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15074         (simplify_unary_operation_1): Use it.
15075
15076 2015-08-18  Marek Polacek  <polacek@redhat.com>
15077
15078         PR middle-end/67222
15079         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15080         if the call isn't valid.
15081         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15082         gimple_call_builtin_p.
15083         (call_may_clobber_ref_p_1): Likewise.
15084         (stmt_kills_ref_p): Likewise.
15085
15086 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15087
15088         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15089         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15090         (mips_hard_regno_scratch_ok): Likewise.
15091         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15092         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15093
15094 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
15095
15096         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15097         (determine_value_range): Call refine_value_range_using_guard for
15098         each loop initial condition to improve value range.
15099
15100 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
15101
15102         * config/i386/i386.c: Remove include of fibheap.h.
15103
15104 2015-08-17  Richard Biener  <rguenther@suse.de>
15105
15106         PR tree-optimization/67221
15107         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15108         (sccvn_dom_walker::before_dom_children): Mark backedges of
15109         non-executable blocks as not executable.
15110
15111 2015-08-17  David Sherwood  <david.sherwood@arm.com>
15112
15113         * config/arm/arm.c (neon_element_bits): Replace call to
15114         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15115         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15116         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15117         (neon_vdup_lane<mode>): Likewise.
15118         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15119         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15120         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15121         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15122         * config/spu/spu.c (arith_immediate_p): Likewise.
15123         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15124         * expr.c (expand_expr_real_2): Likewise.
15125         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15126         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15127         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15128         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15129         New variable.
15130         * fold-const.c (fold_binary_loc): Replace call to
15131         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15132         GET_MODE_UNIT_PRECISION (m).
15133
15134 2015-08-17  Mike Stump  <mikestump@comcast.net>
15135
15136         * config/arm/arm.c (arm_block_move_unaligned_straight):
15137         Emit normal move instead of unaligned load when source or destination
15138         are appropriately aligned.
15139
15140 2015-08-17  Richard Biener  <rguenther@suse.de>
15141             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15142
15143         PR middle-end/16107
15144         * match.pd (div (coss (op @0) : New simplifier.
15145
15146 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
15147
15148         PR rtl-optimization/64164
15149         PR bootstrap/66978
15150         PR middle-end/66983
15151         PR rtl-optimization/67000
15152         PR middle-end/67034
15153         PR middle-end/67035
15154         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15155         * tree-ssa-copyrename.c: Removed.
15156         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15157         -ftree-coalesce-vars.
15158         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15159         * common.opt (ftree-copyrename): Ignore.
15160         (ftree-coalesce-inlined-vars): Likewise.
15161         * doc/invoke.texi: Remove the ignored options above.
15162         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15163         * tree-ssa-coalesce.h: ... here.
15164         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15165         headers required by it.
15166         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15167         across variables when flag_tree_coalesce_vars.  Check register
15168         use and promoted modes to allow coalescing.  Do not coalesce
15169         maybe-byref parms with SSA_NAMEs of other variables, or
15170         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
15171         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15172         with its member functions to tree-ssa-coalesce.c.
15173         (var_map_base_init): Likewise.  Renamed to
15174         compute_samebase_partition_bases.
15175         (partition_view_normal): Drop want_bases parameter.
15176         (partition_view_bitmap): Likewise.
15177         * tree-ssa-live.h: Adjust declarations.
15178         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15179         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15180         default defs at the entry point.
15181         (dump_part_var_map): New.
15182         (compute_optimized_partition_bases): New, called by...
15183         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15184         of compute_samebase_partition_bases.  Adjust.
15185         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15186         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15187         (ssa_default_def_partition): New.
15188         (get_rtl_for_parm_ssa_default_def): New.
15189         (align_local_variable, add_stack_var): Support anonymous SSA
15190         names.
15191         (defer_stack_allocation): Likewise.  Declare earlier.
15192         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15193         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15194         Do no record deferred-allocation marker in
15195         SA.partition_to_pseudo.
15196         (expand_stack_vars): Adjust check for the marker in it.
15197         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15198         redundant MEM attr setting.
15199         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15200         from...
15201         (expand_one_stack_var): ... this.  New wrapper to check and
15202         skip already expanded SSA partitions.
15203         (record_alignment_for_reg_var): New, factored out of...
15204         (expand_one_var): ... this.
15205         (expand_one_ssa_partition): New.
15206         (adjust_one_expanded_partition_var): New.
15207         (expand_one_register_var): Check and skip already expanded SSA
15208         partitions.
15209         (expand_used_vars): Don't create DECLs for anonymous SSA
15210         names.  Expand all SSA partitions, then adjust all SSA names.
15211         (pass::execute): Replace the loops that set
15212         SA.partition_to_pseudo from partition leaders and cleared
15213         DECL_RTL for multi-location variables, and that which used to
15214         rename vars and set attrs, with one that clears DECL_RTL and
15215         checks that PARMs and RESULTs default_defs match DECL_RTL.
15216         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15217         * emit-rtl.c: Include stor-layout.h.
15218         (set_reg_attrs_for_parm): Handle NULL decl.
15219         (set_reg_attrs_for_decl_rtl): Take mode from expression if
15220         it's not a DECL.
15221         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15222         rather than its possibly-NULL DECL.
15223         * explow.c (promote_ssa_mode): New.
15224         * explow.h (promote_ssa_mode): Declare.
15225         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15226         (read_complex_part): Export.
15227         * expr.h (read_complex_part): Declare.
15228         * cfgexpand.h (parm_maybe_byref_p): Declare.
15229         * function.c: Include cfgexpand.h.
15230         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15231         (use_register_for_parm_decl): Wrapper for the above to
15232         special-case the result_ptr.
15233         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15234         (split_complex_args): Take assign_parm_data_all argument.
15235         Pass it to rtl_for_parm.  Set up rtl and context for split
15236         args.  Reset complex parm before fetching its default decl
15237         rtl.
15238         (assign_parms_unsplit_complex): Use the default-def complex
15239         parm rtl if it matches the components.
15240         (assign_parms_augmented_arg_list): Adjust.
15241         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15242         multiple locations.  Recognize split complex args.
15243         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15244         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15245         (assign_parm_setup_block): Prefer SSA-assigned location, and
15246         fill in its address if the memory location of a maybe-byref
15247         parm was not assigned by cfgexpand.
15248         (assign_parm_setup_reg): Likewise.  Adjust its mode as
15249         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
15250         sure passed_pointer parms don't need conversion.  Copy address
15251         or value as needed.
15252         (assign_parm_setup_stack): Prefer SSA-assigned location.
15253         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15254         rtl before testing for pointer bounds.  Special-case result_ptr.
15255         (expand_function_start): Maybe reset DECL_RTL of result.
15256         Prefer SSA-assigned location for result and static chain.
15257         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
15258         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
15259         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15260         anonymous SSA names.  Use promote_ssa_mode.
15261         (get_temp_reg): Likewise.
15262         (remove_ssa_form): Adjust.
15263         * stor-layout.c (layout_decl): Don't set mem attributes of
15264         non-MEMs.
15265         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15266         and get its reg_usage for reg invalidation.
15267         (compute_bb_dataflow): Pass it insn.
15268         (emit_notes_in_bb): Likewise.
15269
15270 2015-08-14  Marek Polacek  <polacek@redhat.com>
15271
15272         * tree-core.h (tree_base): Fix typo.
15273
15274 2015-08-14  Marek Polacek  <polacek@redhat.com>
15275
15276         PR middle-end/67133
15277         * gimple.c (infer_nonnull_range_by_attribute): Check that the
15278         nonnull argument position is not outside function arguments.
15279
15280 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
15281
15282         PR target/67143
15283         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15284         'lconst_atomic' with 'const_atomic'.
15285         (atomic_fetch_<optab><mode>): Likewise.
15286         (atomic_<optab>_fetch<mode>): Likewise.
15287         * config/aarch64/iterators.md (lconst-atomic): Move below
15288         'const_atomic'.
15289         (const_atomic): New.
15290
15291 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
15292             Bernd Schmidt  <bernds@codesourcery.com>
15293
15294         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15295         debug options.
15296         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15297         (DWARF2_DEBUGGING_INFO): Don't define.
15298         * debug.h (dwarf2_lineno_debug_hooks): Declare.
15299         * toplev.c (process_options): Add a case for it.
15300         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15301         (dwarf2out_init): Skip most initializations if
15302         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15303         case.
15304         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15305         DWARF2_LINENO_DEBUGGING_INFO.
15306         * opts.c (set_debug_level): Likewise.
15307
15308 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
15309
15310         * config/arm/types.md (is_neon_type): Add missing types.
15311
15312 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15313
15314         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15315         for skylake.
15316         * config/i386/i386.c (PTA_SKYLAKE): New macros.
15317         (processor_alias_table): Add skylake description.
15318         (enum processor_model): Add skylake processor.
15319         (arch_names_table): Add skylake record.
15320         * doc/invoke.texi: Add skylake item.
15321
15322 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
15323
15324         * ira-int.h: Include recog.h.
15325         * ira-build.c: Don't include recog.h.
15326         * ira-color.c: Likewise.
15327         * ira-conflicts.c: Likewise.
15328         * ira-costs.c: Likewise.
15329         * ira-emit.c: Likewise.
15330         * ira-lives.c: Likewise.
15331         * ira.c: Likewise.
15332         * sched-deps.c: Likewise.
15333         * sel-sched.c: Likewise.
15334         * target-globals.c: Likewise.
15335
15336 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
15337
15338         PR bootstrap/55035
15339         * reload1.c (elimination_costs_in_insn): Make it obvious to the
15340         compiler that the n_dups and n_operands loop bounds are invariant.
15341
15342 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15343
15344         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15345         expressions in A and B.
15346
15347 2015-08-13  Richard Biener  <rguenther@suse.de>
15348
15349         * tree.c (nonnull_arg_p): Move from ...
15350         * tree-vrp.c (nonnull_arg_p): ... here.
15351         * tree.h (nonnull_arg_p): Declare.
15352         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15353         here, register ptr != 0 for nonnull_arg_p pointer arguments.
15354         Properly initialize static chain and by-reference result pointer.
15355         (run_scc_vn): Adjust.
15356
15357 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15358
15359         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15360         TUNE_I6400.
15361
15362 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15363
15364         * config/aarch64/aarch64-protos.h
15365         (aarch64_gen_atomic_cas): Declare.
15366         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15367         Choose appropriate instruction pattern for the target.
15368         (aarch64_gen_atomic_cas): New.
15369         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15370         (atomic_compare_and_swap<mode>_1): Rename to
15371         aarch64_compare_and_swap<mode>.  Fix some indentation.
15372         (aarch64_compare_and_swap<mode>_lse): New.
15373         (aarch64_atomic_cas<mode>): New.
15374
15375 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15376
15377         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15378         (TARGET_LSE): New.
15379
15380 2015-08-13  Richard Biener  <rguenther@suse.de>
15381
15382         PR tree-optimization/67191
15383         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15384         assert we value-numbered last stmts operand because it can validly
15385         trigger for unreachable code.
15386
15387 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15388
15389         PR rtl-optimization/67103
15390         * ifcvt.c (noce_try_store_flag_constants): Move
15391         x = (-(test != 0) & (b - a)) + a transformation to...
15392         (noce_try_cmove): ... Here.  Try it if normal conditional
15393         move fails.
15394
15395 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15396
15397         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15398         pseudo-processors.
15399         * config/mips/mips.md (processor): Remove w32 and w64.
15400
15401 2015-08-13  Richard Biener  <rguenther@suse.de>
15402
15403         PR tree-optimization/66502
15404         PR tree-optimization/67167
15405         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15406         backedge arguments.
15407         (vn_phi_lookup): Adjust.
15408         (vn_phi_insert): Likewise.
15409         (visit_phi): Prefer to value-number to another PHI node
15410         over value-numbering to a PHI argument.
15411         (init_scc_vn): Mark DFS back edges.
15412
15413 2015-08-13  Richard Biener  <rguenther@suse.de>
15414
15415         * gimple.h (gcall::code_): New constant static member.
15416         (gcond::code_): Likewise.
15417         * gimple.c (gcall::code_): Define.
15418         (gcond::code_): Likewise.
15419         (is_a_helper <const gcond *>): Add.
15420         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15421         and forward to a new gcall overload with less checking and a
15422         cheaper way to access the operand.
15423         (gimple_call_lhs_ptr): Likewise.
15424         (gimple_call_set_lhs): Likewise.
15425         (gimple_call_internal_p): Likewise.
15426         (gimple_call_with_bounds_p): Likewise.
15427         (gimple_call_set_with_bounds): Likewise.
15428         (gimple_call_internal_fn): Likewise.
15429         (gimple_call_set_ctrl_altering): Likewise.
15430         (gimple_call_ctrl_altering_p): Likewise.
15431         (gimple_call_fntype): Likewise.
15432         (gimple_call_fn): Likewise.
15433         (gimple_call_fn_ptr): Likewise.
15434         (gimple_call_set_fndecl): Likewise.
15435         (gimple_call_fndecl): Likewise.
15436         (gimple_call_chain): Likewise.
15437         (gimple_call_num_args): Likewise.
15438         (gimple_call_arg): Likewise.
15439         (gimple_call_arg_ptr): Likewise.
15440         (gimple_call_set_arg): Likewise.
15441         (gimple_call_noreturn_p): Likewise.
15442         (gimple_cond_code): Likewise.
15443         (gimple_cond_lhs): Likewise.
15444         (gimple_cond_rhs): Likewise.
15445         (gimple_has_lhs): Reduce checking.
15446
15447 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15448
15449         PR middle-end/25529
15450         * match.pd (div (mult @0 @1) @1) : New simplifier.
15451
15452 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15453
15454         PR target/67071
15455         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15456         predicate to allow construction of vector constants using the
15457         VSLDOI vector shift instruction.
15458
15459         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15460         declaration.
15461
15462         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15463         the number of bytes to be shifted left and filled in with either
15464         all zero or all one bits.
15465         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15466         methods exist.
15467         (output_vec_const_move): On power8, generate XXLORC to generate
15468         a vector constant with all 1's. Do a split if we need to use a
15469         VSLDOI instruction.
15470
15471         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15472         properly test for the MSB.
15473
15474         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15475         vector constants that can be created with VSLDOI.
15476
15477 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15478
15479         revert:
15480         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15481         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15482         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15483         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15484         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15485         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15486         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15487         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15488         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15489
15490 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
15491
15492         * config/xtensa/constraints.md (define_constraint "Y"): New
15493         constraint.
15494         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15495         * config/xtensa/linux.h (ASM_SPEC): Likewise.
15496         * config/xtensa/predicates.md (move_operand): Match constants
15497         and symbols in the presence of TARGET_AUTO_LITPOOLS.
15498         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15499         immediate references to TLS data.
15500         (xtensa_emit_move_sequence): Don't force constants to memory in
15501         the presence of TARGET_AUTO_LITPOOLS.
15502         (print_operand): Add 'y' format, same as default, but capable of
15503         printing SF mode constants as well.
15504         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15505         (movsf_internal): Add movi pattern that loads literal.
15506         (movsf, movdf): Don't force constants to memory in the presence
15507         of TARGET_AUTO_LITPOOLS.
15508         (movdf_internal): Add 'Y' constraint.
15509         * config/xtensa/xtensa.opt (mauto-litpools): New option.
15510         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15511
15512 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15513
15514         * config/arm/arm-fpus.def: Replace booleans with feature flags.
15515         Update comment.
15516         * config/arm/arm.c (ARM_FPU): Update macro.
15517         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15518         (TARGET_FP16): Likewise.
15519         (TARGET_CRYPTO): Likewise.
15520         (TARGET_NEON): Likewise.
15521         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
15522         field features.
15523
15524 2015-08-12  Tom de Vries  <tom@codesourcery.com>
15525
15526         PR other/67092
15527         PR other/67098
15528         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
15529         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15530         accordingly.  Mention default for --with-stage1-ldflags.
15531
15532 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15533
15534         * config/arm/arm.h (arm_fpu_feature_set): New.
15535         (ARM_FPU_FSET_HAS): New.
15536         (FPU_FL_NONE): New.
15537         (FPU_FL_NEON): New.
15538         (FPU_FL_FP16): New.
15539         (FPU_FL_CRYPTO): New.
15540
15541 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15542
15543         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15544         after -mcmodel=large -fPIC sorry.
15545
15546 2015-08-12  Richard Biener  <rguenther@suse.de>
15547
15548         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15549         comparison operand order and commutative ternary op operand order.
15550         (sccvn_dom_walker::cond_stack): New state to track temporary
15551         expressions.
15552         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15553         no longer valid.
15554         (sccvn_dom_walker::record_cond): Add a single temporary conditional
15555         expression.
15556         (sccvn_dom_walker::record_conds): Add a temporary conditional
15557         expressions and all related expressions also true/false.
15558         (sccvn_dom_walker::before_dom_children): Record temporary
15559         expressions based on the controlling condition of a single
15560         predecessor.  When trying to simplify a conditional statement
15561         lookup expressions we might have inserted earlier.
15562
15563 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
15564
15565         PR target/67127
15566         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15567         to ARM core registers.
15568
15569 2015-08-12  Nathan Sidwell  <nathan@acm.org>
15570
15571         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15572         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15573
15574 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
15575
15576         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15577         line with comments.
15578         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15579
15580 2015-08-12  Richard Biener  <rguenther@suse.de>
15581
15582         * gimple.h (remove_pointer): New trait.
15583         (GIMPLE_CHECK2): New inline template function.
15584         (gassign::code_): New constant static member.
15585         (is_a_helper<const gassign *>): Add.
15586         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15587         and forward to a new gassign overload with less checking and a
15588         cheaper way to access the operand.
15589         (gimple_assign_lhs_ptr): Likewise.
15590         (gimple_assign_set_lhs): Likewise.
15591         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15592         Likewise.
15593         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15594         Likewise.
15595         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15596         Likewise.
15597         (gimple_assign_rhs_code): Likewise.
15598         * gimple.c (gassign::code_): Define.
15599
15600 2015-08-12  Richard Biener  <rguenther@suse.de>
15601
15602         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15603         Eliminate edges marked as not executable by SCCVN.
15604         * tree-ssa-sccvn.c: Include gimple-iterator.h.
15605         (cond_dom_walker): Rename to sccvn_dom_walker.
15606         (sccvn_dom_walker::before_dom_children): Value-number defs
15607         of all stmts.
15608         (run_scc_vn): Remove loop value-numbering all SSA names.
15609         Drop not visited SSA names to varying.
15610
15611 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15612
15613         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15614         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15615         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15616         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15617         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15618         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15619         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15620         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15621         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15622
15623 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
15624
15625         PR target/66954
15626         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15627         to enum feature_priority and feature_list.
15628         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15629         and isa_names_table.
15630
15631 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15632
15633         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15634         vect_induction_def.
15635
15636 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15637
15638         PR c/66098
15639         PR c/66711
15640         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15641         account when deciding what was the command-line status.
15642
15643 2015-08-11  Nathan Sidwell  <nathan@acm.org>
15644
15645         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15646
15647         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15648         we're not the only contributor to target phi.
15649
15650 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
15651
15652         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15653         FIXED_REG0.
15654
15655 2015-08-11  Tom de Vries  <tom@codesourcery.com>
15656
15657         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15658
15659 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
15660
15661         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15662         with CPU_SLM.
15663         * config/i386/i386.md (cpu): Remove knl.
15664
15665 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15666
15667         PR libgomp/65742
15668         PR middle-end/66332
15669         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15670         open-coded sequence.
15671         * omp-low.c (oacc_process_reduction_data): Remove handline of
15672         GOMP_DEVICE_HOST_NONSHM.
15673
15674         * lto-streamer-in.c (lto_input_mode_table): Adjust to
15675         GET_MODE_INNER changes.
15676
15677 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15678             Ilya Verbin  <ilya.verbin@intel.com>
15679
15680         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15681
15682 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15683
15684         * doc/options.texi (EnabledBy): Document that the argument must be
15685         a Common option.
15686         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15687         Not enabled by -Wall.
15688         * optc-gen.awk: Give nicer error messages. Detect if the argument
15689         of EnabledBy is not a Common option.
15690         * common.opt (Wnull-dereference): Not enabled by -Wall.
15691         * opt-functions.awk (lang_enabled_by): Nicer error messages.
15692
15693 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15694
15695         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15696         model == 0x4f as Broadwell.
15697
15698 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
15699
15700         PR rtl-optimization/67028
15701         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
15702         Add test to see if a const_int fits in the new mode.
15703
15704 2015-08-07  DJ Delorie  <dj@redhat.com>
15705
15706         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15707
15708 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
15709
15710         PR rtl-optimization/67029
15711         * ira-color.c: Include "recog.h" before including "ira-int.h".
15712         * target-globals.c: Likewise.
15713         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15714         adds an alternative_mask argument and use it instead of
15715         preferred_alternatives.
15716         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15717         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15718         * sched-deps.c: Include "ira-int.h" after including "ira.h".
15719         (sched_analyze_insn): Update call to
15720         ira_implicitly_set_insn_hard_regs.
15721         * sel-sched.c: Include "ira-int.h" after including "ira.h".
15722         (implicit_clobber_conflict_p): Update call to
15723         ira_implicitly_set_insn_hard_regs.
15724
15725 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15726
15727         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15728
15729 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15730
15731         PR target/67002
15732         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15733         currently_expanding_to_rtl is set.
15734
15735 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
15736
15737         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15738         * configure: Regenerate.
15739
15740 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15741             Jiong Wang  <jiong.wang@arm.com>
15742
15743         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15744         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15745         (REG_CLASS_NAMES): Likewise.
15746         (REG_CLASS_CONTENTS): Likewise.
15747         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15748         (aarch64_register_move_cost): Likewise.
15749         (aarch64_load_symref_appropriately): Invoke the new added pattern if
15750         possible.
15751         * config/aarch64/constraints.md (Uc0): New constraint.
15752
15753 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15754
15755         * config/aarch64/constraints.md (Usf): Add the test of
15756         aarch64_is_noplt_call_p.
15757
15758 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15759
15760         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15761         declaration.
15762         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15763         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15764         (call_symbol): Likewise.
15765
15766 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
15767
15768         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15769         for vectorizing multiplication patterns.
15770         * tree-vectorizer.h: Adjust the number of patterns.
15771
15772 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15773
15774         * config/i386/sse.md (*vec_concatv2df): Declare added
15775         alternatives as sselog type.
15776
15777 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15778
15779         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15780         all GPRs.
15781
15782 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15783
15784         * config/s390/s390.c (s390_expand_tbegin): Expand either
15785         tbegin_1_z13 or tbegin_1 depending on VX flag.
15786         * config/s390/s390.md ("tbegin_1_z13"): New expander.
15787
15788 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15789
15790         * config/s390/s390.opt: Clarify description for -mzvector
15791         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15792         -mzvector.
15793
15794 2015-08-06  Richard Biener  <rguenther@suse.de>
15795
15796         * gimple.h (gimple_call_set_fn): Access op member directly.
15797         (gimple_call_chain_ptr): Likewise.
15798         (gimple_call_set_chain): Likewise.
15799         (gimple_cond_lhs_ptr): Likewise.
15800         (gimple_cond_set_lhs): Likewise.
15801         (gimple_cond_rhs_ptr): Likewise.
15802         (gimple_cond_set_rhs): Likewise.
15803         (gimple_cond_true_label): Likewise.
15804         (gimple_cond_set_true_label): Likewise.
15805         (gimple_cond_set_false_label): Likewise.
15806         (gimple_cond_false_label): Likewise.
15807         (gimple_label_label): Likewise.
15808         (gimple_label_set_label): Likewise.
15809         (gimple_goto_set_dest): Likewise.
15810         (gimple_asm_input_op): Likewise.
15811         (gimple_asm_input_op_ptr): Likewise.
15812         (gimple_asm_set_input_op): Likewise.
15813         (gimple_asm_output_op): Likewise.
15814         (gimple_asm_output_op_ptr): Likewise.
15815         (gimple_asm_set_output_op): Likewise.
15816         (gimple_asm_clobber_op): Likewise.
15817         (gimple_asm_set_clobber_op): Likewise.
15818         (gimple_asm_label_op): Likewise.
15819         (gimple_asm_set_label_op): Likewise.
15820         (gimple_switch_index): Likewise.
15821         (gimple_switch_index_ptr): Likewise.
15822         (gimple_return_retval_ptr): Likewise.
15823         (gimple_return_retval): Likewise.
15824         (gimple_return_set_retval): Likewise.
15825         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
15826         (gimple_switch_label): Likewise.
15827         (gimple_switch_set_label): Likewise.
15828
15829 2015-08-06  Richard Biener  <rguenther@suse.de>
15830
15831         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15832         bool comparison canonicalization and restrict to integers.
15833
15834 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
15835
15836         * coretypes.h (enum symbol_visibility): Relocate here.
15837         * flag-types.h (enum symbol_visibility): Remove.
15838         * tree-core.h (enum symbol_visibility): Remove.
15839
15840 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
15841
15842         PR target/66870
15843         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15844         for no_split_stack function attribute along with
15845         flag_split_stack.
15846         (rs6000_expand_split_stack_prologue): Likewise.
15847
15848 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15849             Jeff Law  <law@redhat.com>
15850
15851         PR c/16351
15852         * doc/invoke.texi (Wnull-dereference): New.
15853         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15854         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15855         Warn for potential NULL dereferences.
15856         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15857         * ubsan.c (instrument_nonnull_arg): Call
15858         infer_nonnull_range_by_attribute.
15859         (instrument_nonnull_return): Likewise.
15860         * common.opt (Wnull-dereference); New.
15861         * gimple.c (infer_nonnull_range): Remove bool arguments.
15862         (infer_nonnull_range_by_dereference): New.
15863         (infer_nonnull_range_by_attribute): New.
15864         * gimple.h: Update declarations.
15865
15866 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15867
15868         * gensupport.c (sequence_num): Replace with...
15869         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15870         ...these new variables.
15871         (init_rtx_reader_args_cb): Update accordingly.
15872         (get_num_code_insns): Likewise.
15873         (read_md_rtx): Rework to use a while loop and get_c_test.
15874         Use the new counters.  Remove redundant DEFINE_SUBST case.
15875         * genoutput.c (gen_split): Delete.
15876         (main): Don't call it.
15877
15878 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15879
15880         * gensupport.h (get_c_test): Declare.
15881         * gensupport.c (get_c_test): New function.
15882         * genconditions.c (main): Use it.
15883         * genrecog.c (validate_pattern): Likewise.
15884         (match_pattern_1): Likewise.  Remove c_test argument.
15885         (match_pattern): Update accordingly and remove c_test argument.
15886         (main): Update accordingly.
15887
15888 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15889
15890         * gensupport.h (get_num_insn_codes): Declare.
15891         * gensupport.c (get_num_insn_codes): New function.
15892         * genattrtab.c (optimize_attrs): Rename max_insn_code to
15893         num_insn_codes.
15894         (main): Likewise.  Use get_num_insn_codes.
15895         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15896
15897 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15898
15899         PR middle-end/66311
15900         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15901         is zero- rather than sign-extended.
15902
15903 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15904
15905         * target-insns.def (can_extend): Delete.
15906
15907 2015-08-05  Richard Biener  <rguenther@suse.de>
15908
15909         PR tree-optimization/67121
15910         * tree-if-conv.c (combine_blocks): Clear range-info produced
15911         by stmts no longer executed conditionally.
15912
15913 2015-08-05  Nick Clifton  <nickc@redhat.com>
15914
15915         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15916         to allow identical far pointers to remain.
15917
15918 2015-08-05  Richard Biener  <rguenther@suse.de>
15919
15920         PR middle-end/67120
15921         * match.pd: Compare address bases with == if they are decls
15922         or SSA names, not operand_equal_p.  Otherwise fail.
15923
15924 2015-08-05  Richard Biener  <rguenther@suse.de>
15925
15926         PR tree-optimization/67055
15927         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15928         NULL gimple_block.
15929
15930         * g++.dg/torture/pr67055.C: New testcase.
15931
15932 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15933
15934         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15935         noavx512vl.
15936         (define_attr "enabled"): Handle avx521vl and noavx512vl.
15937         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15938         AVX-512 alternative out of SSE.
15939         (define_insn "*vec_concatv2df"): Ditto.
15940
15941 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15942
15943         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15944         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15945         CODE_FOR_avx_ptestv4di.
15946         * config/i386/sse.md (define_mode_iterator V_AVX): New.
15947         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15948         (define_insn "avx_ptest256"): Merge this ...
15949         (define_insn "sse4_1_ptest"): And this ...
15950         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15951
15952 2015-08-05  Richard Biener  <rguenther@suse.de>
15953
15954         PR tree-optimization/67109
15955         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15956         against too big groups.  Print whether this is a load or store
15957         group.  Rename from ...
15958         (vect_analyze_group_access): ... this which is now a wrapper
15959         dissolving an invalid group.
15960         (vect_analyze_data_ref_accesses): Print whether this is a load
15961         or store group.
15962
15963 2015-08-05  Richard Biener  <rguenther@suse.de>
15964
15965         PR middle-end/67107
15966         * match.pd: Guard const_binop result checking against NULL_TREE
15967         result.
15968
15969 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
15970
15971         * cse.c (cse_insn): Restoring old behaviour for src_eqv
15972          when dest and value in the REG_EQUAL are same and dest
15973          is STRICT_LOW_PART.
15974
15975 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
15976
15977         * config/moxie/moxie.h (PRINT_OPERAND,
15978           PRINT_OPERAND_ADDRESS): Remove macros.
15979         * config/moxie/moxie-protos.h (moxie_print_operand,
15980           moxie_print_operand_address): Remove declaration.
15981         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15982           TARGET_PRINT_OPERAND_ADDRESS): Define.
15983           (moxie_print_operand, moxie_print_operand_address): Make static.
15984
15985 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15986
15987         PR target/66731
15988         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15989         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15990
15991 2015-08-04  Richard Biener  <rguenther@suse.de>
15992
15993         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15994         generated code.
15995         (dt_operand::gen_gimple_expr): Adjust.
15996
15997 2015-08-04  Richard Biener  <rguenther@suse.de>
15998
15999         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16000         bool compares on RHS.
16001         * match.pd: Add X ==/!= !X is false/true pattern.
16002
16003 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
16004
16005         * config/aarch64/aarch64.c: Change inner loop statement cost
16006         to be consistent with other targets.
16007
16008 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
16009
16010         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16011         targets.
16012
16013 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
16014
16015         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16016         (machine_function): Remove pseudos field.
16017
16018 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16019
16020         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16021         Exit early and use target_option_current_node if processing current
16022         pragma.
16023
16024 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16025
16026         * doc/extend.texi (AArch64 Function Attributes): New node.
16027         (AArch64 Pragmas): Likewise.
16028
16029 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16030
16031         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16032         Initialize simd builtins if TARGET_SIMD.
16033         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16034         Make sure that the builtins are initialized only once no matter how
16035         many times the function is called.
16036         (aarch64_init_builtins): Unconditionally initialize crc builtins.
16037         (aarch64_relayout_simd_param): New function.
16038         (aarch64_simd_expand_args): Use above during argument expansion.
16039         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16040         simd builtins if TARGET_SIMD.
16041         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16042         prototype.
16043         (aarch64_relayout_simd_types): Likewise.
16044
16045 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16046
16047         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16048         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16049         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16050         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16051         static keyword.
16052         (aarch64_reset_previous_fndecl): New function.
16053         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16054         the string.
16055         * config/aarch64/aarch64-c.c: New file.
16056         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16057         Push and pop options at beginning and end.  Remove ifdef
16058         __ARM_FEATURE_CRC32.
16059         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16060         Add pragma +nothing+simd and +nothing+crypto where appropriate.
16061         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16062         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16063         Define prototype.
16064         (aarch64_register_pragmas): Likewise.
16065         (aarch64_reset_previous_fndecl): Likewise.
16066         (aarch64_process_target_attr): Likewise.
16067         (aarch64_override_options_internal): Likewise.
16068
16069 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16070
16071         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16072         New function.
16073         (aarch64_can_inline_p): Likewise.
16074         (TARGET_CAN_INLINE_P): Define.
16075
16076 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16077
16078         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16079         Remove static.  Handle OPT_mgeneral_regs_only,
16080         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16081         OPT_momit_leaf_frame_pointer.
16082         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16083         (aarch64_attr_opt_type): New enum.
16084         (aarch64_attribute_info): New struct.
16085         (aarch64_handle_attr_arch): New function.
16086         (aarch64_handle_attr_cpu): Likewise.
16087         (aarch64_handle_attr_tune): Likewise.
16088         (aarch64_handle_attr_isa_flags): Likewise.
16089         (aarch64_attributes): New table.
16090         (aarch64_process_one_target_attr): New function.
16091         (num_occurences_in_str): Likewise.
16092         (aarch64_process_target_attr): Likewise.
16093         (aarch64_option_valid_attribute_p): Likewise.
16094         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16095         * config/aarch64/aarch64-protos.h: Include input.h
16096         (aarch64_handle_option): Declare prototype.
16097
16098 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16099
16100         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16101         * config/aarch64/aarch64.c: Include target-globals.h
16102         (aarch64_previous_fndecl): New variable.
16103         (aarch64_set_current_function): New function.
16104         (TARGET_SET_CURRENT_FUNCTION): Define.
16105
16106 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16107
16108         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16109         (explicit_arch): Likewise.
16110         (x_aarch64_isa_flags): Likewise.
16111         (mgeneral-regs-only): Mark as Save.
16112         (mfix-cortex-a53-835769): Likewise.
16113         (mcmodel=): Likewise.
16114         (mstrict-align): Likewise.
16115         (momit-leaf-frame-pointer): Likewise.
16116         (mtls-dialect): Likewise.
16117         (master=): Likewise.
16118         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16119         (aarch64_isa_flags): Remove extern declaration.
16120         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16121         to indicate success or failure.
16122         (aarch64_validate_march): Likewise.
16123         (aarch64_validate_mtune): Likewise.
16124         (aarch64_isa_flags): Delete.
16125         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16126         instead of aarch64_isa_flags.
16127         (aarch64_get_tune_cpu): New function.
16128         (aarch64_get_arch): Likewise.
16129         (aarch64_override_options): Use above and set up explicit_tune_core
16130         and explicit_arch.
16131         (aarch64_print_extension): Move earlier in file.  Add isa_flags
16132         argument and use that instead of the global aarch64_isa_flags.
16133         (aarch64_option_save): New function.
16134         (aarch64_option_restore): Likewise.
16135         (aarch64_option_print): Likewise.
16136         (aarch64_declare_function_name): Likewise.
16137         (aarch64_start_file): Delete.
16138         (TARGET_ASM_FILE_START): Do not define.
16139         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16140         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16141         Declare prototype.
16142
16143 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16144
16145         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16146         flag_omit_leaf_frame_pointer to 2.
16147
16148 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16149
16150         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16151         define to 0 or 1.
16152         (TARGET_FIX_ERR_A53_835769): New macro.
16153         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16154         handling of opts->x_aarch64_fix_a53_err835769.
16155         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16156         than aarch64_fix_a53_err835769.
16157         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16158         * config/aarch64/aarch64-linux.h: Likewise.
16159
16160 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
16161
16162         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16163         ix86_expand_int_movcc as boolean.
16164
16165 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16166
16167         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16168         (aarch64_cpu_string): Likewise.
16169         (aarch64_tune_string): Likewise.
16170         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16171         (aarch64_parse_extension): Return aarch64_parse_opt_result.
16172         Add extra argument to put result into.
16173         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
16174         (aarch64_parse_cpu): Add arguments to put results into. Return
16175         aarch64_parse_opt_result.
16176         (aarch64_parse_tune): Likewise.
16177         (aarch64_override_options_after_change_1): New function.
16178         (aarch64_override_options_internal): New function.
16179         (aarch64_validate_mcpu): Likewise.
16180         (aarch64_validate_march): Likewise.
16181         (aarch64_validate_mtune): Likewise.
16182         (aarch64_override_options): Update to reflect above changes.
16183         Move some logic into aarch64_override_options_internal.
16184         Initialize target_option_default_node and target_option_current_node.
16185         (aarch64_override_options_after_change): Move logic into
16186         aarch64_override_options_after_change_1 and call it with global_options.
16187         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16188         flag values from that.
16189
16190 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16191
16192         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16193         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16194         * config/aarch64/aarch64.c (struct processor): Add arch field.
16195         (all_architectures): Handle above, move above all_cores.
16196         (all_cores): Handle above.
16197         (aarch64_parse_arch): Handle above changes.
16198         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16199         above.  Update comments.
16200         (armv8.1-a): Likewise.
16201         * config/aarch64/aarch64-cores.def: Update according to above.
16202         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16203         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16204         aarch64_arch_driver_info.
16205
16206 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16207
16208         * config/aarch64/aarch64.c (struct processor): Add ident field.
16209         Rename core sched_core.
16210         (all_cores): Handle above changes.
16211         (all_architectures): Likewise.
16212         (aarch64_parse_arch): Likewise.
16213         (aarch64_override_options): Likewise.
16214
16215 2015-08-04  Richard Biener  <rguenther@suse.de>
16216
16217         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16218         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16219         comparisons embedded in [VEC_]COND_EXPRs.
16220
16221 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
16222
16223         * tree-if-conv.c: Fix various typos in comments.
16224         * tree-vect-stmts.c: Likewise.
16225
16226 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16227
16228         PR tree-optimization/67043
16229         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16230         preheader after hoisting invariant in it.
16231         (find_defs): Force recomputation of all luids.
16232
16233 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
16234
16235         * config/rs6000/htm.md (tabort.): Restrict the source operand to
16236         using a base register.
16237
16238 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
16239
16240         * main.c (main): Pass in NULL for toplev's external_timer.
16241         * timevar.c: Include coretypes.h.
16242         (class timer::named_items): New.
16243         (timer::named_items::named_items): New.
16244         (timer::named_items::~named_items): New.
16245         (timer::named_items::push): New.
16246         (timer::named_items::pop): New.
16247         (timer::named_items::print): New.
16248         (timer::timer): Initialize field "m_jit_client_items".
16249         (timer::~timer): New.
16250         (timer::push): Move bulk of implementation to...
16251         (timer::push_internal): ...here.  New function.
16252         (timer::pop): Move bulk of implementation to...
16253         (timer::pop_internal): ...here.  New function.
16254         (timer::push_client_item): New.
16255         (timer::pop_client_item): New.
16256         (timer::print_row): New function, taken from timer::print.
16257         (timer::print): Print "GCC items" header if we also have client
16258         items.  Move row-printing to timer::print_row.  Print any client
16259         items.
16260         (timer::get_topmost_item_name): New method.
16261         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16262         (TV_JIT_CLIENT_CODE): New.
16263         * timevar.h (timer::push_client_item): New declaration.
16264         (timer::pop_client_item): New declaration.
16265         (timer::get_topmost_item_name): New method.
16266         (timer::push_internal): New declaration.
16267         (timer::pop_internal): New declaration.
16268         (timer::print_row): New declaration.
16269         (timer::named_items): New declaration.
16270         (timer::m_jit_client_items): New field.
16271         (timer): Add friend class named_items.
16272         (auto_timevar::auto_timevar): Add timer param.
16273         (auto_timevar::~auto_timevar): Use field "m_timer".
16274         (auto_timevar::m_timer): New field.
16275         * toplev.c (initialize_rtl): Add g_timer as param when
16276         constructing auto_timevar instance.
16277         (toplev::toplev): Add "external_timer" param, and use it to
16278         initialize the "g_timer" global if non-NULL.
16279         (toplev::~toplev): If this created "g_timer", delete it.
16280         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16281         with "external_timer" timer *.
16282
16283 2015-08-03  Alexander Basov <coohpt@gmail.com>
16284
16285         PR middle-end/64744
16286         PR middle-end/48470
16287         PR middle-end/43404
16288         * cfgexpand.c (expand_one_var): Add check if stack is going to
16289         be used in naked function.
16290         * expr.c (expand_expr_addr_expr_1): Remove excess checking
16291         whether expression should not reside in MEM.
16292         * function.c (use_register_for_decl): Do not use registers for
16293         non-register things (volatile, float, BLKMode) in naked functions.
16294
16295 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
16296
16297         PR target/67060
16298         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16299         Adjust splits to match new pattern.
16300
16301 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16302
16303         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16304         (VEC_M): Likewise.
16305         (VEC_N): Likewise.
16306         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16307         point in VSX registers.
16308
16309         * config/rs6000/constraints.md (wb constraint): Document unused
16310         w<x> constraint.
16311         (we constraint): Likewise.
16312         (wo constraint): Likewise.
16313         (wp constraint): New constraint for IEEE 128-bit floating point in
16314         VSX registers.
16315         (wq constraint): Likewise.
16316
16317         * config/rs6000/predicates.md (easy_fp_constant): Add support for
16318         IEEE 128-bit floating point in VSX registers.
16319         (easy_scalar_constant): Likewise.
16320
16321         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16322         constraints (wp, wq) for IEEE 128-bit floating point in VSX
16323         registers.
16324         (rs6000_init_hard_regno_mode_ok): Likewise.
16325
16326         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16327         floating point in VSX registers.
16328         (VSX_L): Likewise.
16329         (VSX_M): Likewise.
16330         (VSX_M2): Likewise.
16331         (VSm): Likewise.
16332         (VSs): Likewise.
16333         (VSr): Likewise.
16334         (VSa): Likewise.
16335         (VSv): Likewise.
16336         (vsx_le_permute_<mode>): Add support to properly swap bytes for
16337         IEEE 128-bit floating point in VSX registers on little endian.
16338         (vsx_le_undo_permute_<mode>): Likewise.
16339         (vsx_le_perm_load_<mode>): Likewise.
16340         (vsx_le_perm_store_<mode>): Likewise.
16341         (splitters for IEEE 128-bit fp moves): Likewise.
16342
16343         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16344         wq constraints.
16345
16346         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16347         floating point in VSX registers.
16348         (VM2): Likewise.
16349
16350         * doc/md.text (Machine Constraints): Document wp and wq
16351         constraints on PowerPC.
16352
16353 2015-08-03  Jeff Law  <law@redhat.com>
16354
16355         PR middle-end/66314
16356         PR gcov-profile/66899
16357         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16358         iterate over the jump threading paths when an element in the
16359         jump threading paths array is eliminated.
16360
16361 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
16362
16363         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16364
16365 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
16366
16367         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16368         is_use_properly_guarded the variable def_preds.  Free its
16369         contents before returning.
16370         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16371         (is_use_properly_guarded): Replace local variable def_preds with
16372         a parameter.  Adjust accordingly.  Only update *def_preds if it's
16373         the empty vector.
16374
16375 2015-08-03  Richard Biener  <rguenther@suse.de>
16376
16377         * genmatch.c (simplify::for_subst_vec): New member.
16378         (binary_ok): New helper for for lowering.
16379         (lower_for): Delay substituting operators into result expressions
16380         if we can merge the results eventually again.
16381         (capture_info::walk_result): Adjust for user_id appearing as
16382         result expression operator.
16383         (expr::gen_transform): Likewise.
16384         (dt_simplify::gen_1): Likewise.
16385         (dt_simplify::gen): Pass not substituted operators to tail
16386         functions or initialize local variable with it.
16387         (decision_tree::gen): Adjust function signature.
16388         * match.pd: Fix tests against global code and add default
16389         cases to switch stmts.
16390
16391 2015-08-03  Richard Biener  <rguenther@suse.de>
16392
16393         * genmatch.c (dt_simplify::gen): Create captures array
16394         with an initializer.
16395
16396 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16397
16398         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16399         the host compiler is affected by placement new aliasing bug.
16400         * configure: Regenerate.
16401         * Makefile.in (ALIASING_FLAGS): New variable.
16402         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16403
16404 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16405
16406         PR target/66731
16407         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16408         (negmulsf3_vfp): Likewise.
16409         (muldf3negdf_vfp): Disable for -frounding-math.
16410         (mulsf3negsf_vfp): Likewise.
16411         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16412         fix MULT cost with -frounding-math.
16413
16414 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16415
16416         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16417         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16418         explicit.  Prefer to add the flag whenever possible.
16419         (noce_process_if_block): Try noce_try_store_flag_constants before
16420         noce_try_cmove.
16421
16422 2015-08-03  Richard Biener  <rguenther@suse.de>
16423
16424         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16425         New hash-map to record equivalent transforms.
16426         (dt_node::analyze): Populate the equivalent transforms hash-map.
16427         (dt_simplify::info): Add reference to hash-map entry.
16428         (dt_simplify::gen): If we have split out a function for the
16429         transform, generate a call to it.
16430         (sinfo_hashmap_traits::hash): New function.
16431         (compare_op): New helper function for ...
16432         (sinfo_hashmap_traits::equal_keys): ... this new function.
16433         (decision_tree::gen): Split out common equivalent transforms
16434         into functions.
16435
16436 2015-08-03  Richard Biener  <rguenther@suse.de>
16437
16438         * gimple-fold.c (fold_gimple_assign): Remove folding of
16439         the comparison in COND_EXPRs.
16440
16441 2015-08-03  Richard Biener  <rguenther@suse.de>
16442
16443         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16444         on the rhs of assignments first simplify the embedded
16445         GENERIC condition.
16446
16447 2015-08-03  Richard Biener  <rguenther@suse.de>
16448
16449         PR tree-optimization/66917
16450         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16451         field.
16452         (DR_VECT_AUX): New macro.
16453         (set_dr_misalignment): Adjust.
16454         (dr_misalignment): Likewise.
16455         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16456         Compute whether the base is at least element aligned.
16457         * tree-vect-stmts.c (ensure_base_align): Adjust.
16458         (vectorizable_store): If the base is not element aligned
16459         preserve alignment of the original access if misalignment is unknown.
16460         (vectorizable_load): Likewise.
16461
16462 2015-08-02  Martin Sebor  <msebor@redhat.com>
16463
16464         * c-family/c.opt (-Wframe-address): New warning option.
16465         * doc/invoke.texi (Wframe-address): Document it.
16466         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16467         Clarify possible effects of calling the functions with non-zero
16468         arguments and mention -Wframe-address.
16469         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16470
16471 2015-08-01  Michael Collison  <michael.collison@linaro.org
16472             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16473
16474         * config/arm/arm.md (*arm_smin_cmp): New pattern.
16475         (*arm_umin_cmp): Likewise.
16476
16477 2015-08-01  Caroline Tice  <cmtice@google.com>
16478
16479         PR 66521
16480         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16481         global variables.
16482         (vtbl_find_mangled_name):  New function.
16483         (vtbl_register_mangled_name):  New function.
16484         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
16485         mangled name in mangled name vectors.
16486         (find_or_create_vtbl_map_node):  Ditto.
16487         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
16488         update recursion_depth on function entry; pass it to every recursive
16489         call; automatically exit if depth > 25 (give up looking at that point).
16490         (verify_bb_vtables):  Initialize recursion_depth and pass it to
16491         var_is_used_for_virtual_call_p.
16492         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16493         global variable decls.
16494         (vtbl_register_mangled_name): New extern function decl.
16495
16496 2015-08-01  Tom de Vries  <tom@codesourcery.com>
16497
16498         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16499         function.
16500         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16501         Declare.
16502         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16503         operation_no_trapping_overflow.  Allow non-overflow operations.
16504         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16505         operations.
16506
16507 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16508
16509         PR target/67049
16510         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16511
16512 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16513
16514         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16515         Enable for TARGET_32BIT.
16516         (*if_move_neg): Likewise.
16517
16518 2015-07-31  Nick Clifton  <nickc@redhat.com>
16519
16520         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16521         Returns true for __model__.
16522         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16523
16524 2015-07-31  Alan Modra  <amodra@gmail.com>
16525
16526         PR target/66870
16527         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16528         (rs6000_emit_prologue): Set it.
16529         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16530
16531 2015-07-31  Richard Biener  <rguenther@suse.de>
16532
16533         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16534         -> X == (C1 ^ C2) which is already implemented in match.pd.
16535         Remove redundant dispatching to fold_relational_const.
16536         Move unordered self and NaN compares ...
16537         * match.pd: ... as patterns here.  Remove some stray captures
16538         and add a comment.
16539
16540 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
16541
16542         * config/i386/i386.c
16543         (bdesc_special_args): Convert mask type from signed to unsigned for
16544         masked builtins.
16545         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16546         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16547         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16548         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16549         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16550         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16551         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16552         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16553         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16554         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16555         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16556         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16557         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16558         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16559         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16560         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16561         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16562         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16563         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16564         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16565         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16566         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16567         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16568         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16569         * config/i386/i386-builtin-types.def
16570         (V16QI_FTYPE_V16SI): Remove.
16571         (V8DF_FTYPE_V8SI): Ditto.
16572         (V8HI_FTYPE_V8DI): Ditto.
16573         (V8SI_FTYPE_V8DI): Ditto.
16574         (V8SF_FTYPE_V8DF): Ditto.
16575         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16576         (V16HI_FTYPE_V16SI): Ditto.
16577         (V16SF_FTYPE_V16HI): Ditto.
16578         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16579         (V16SF_FTYPE_V16SI): Ditto.
16580         (V4DI_FTYPE_V4DI): Ditto.
16581         (V16SI_FTYPE_V16SF): Ditto.
16582         (V16SF_FTYPE_FLOAT): Ditto.
16583         (V8DF_FTYPE_DOUBLE): Ditto.
16584         (V8DI_FTYPE_INT64): Ditto.
16585         (V8DI_FTYPE_V4DI): Ditto.
16586         (V16QI_FTYPE_V8DI): Ditto.
16587         (UINT_FTYPE_V4SF): Ditto.
16588         (UINT64_FTYPE_V4SF): Ditto.
16589         (UINT_FTYPE_V2DF): Ditto.
16590         (UINT64_FTYPE_V2DF): Ditto.
16591         (V16SI_FTYPE_V16SI): Ditto.
16592         (V8DI_FTYPE_V8DI): Ditto.
16593         (V16SI_FTYPE_PV4SI): Ditto.
16594         (V16SF_FTYPE_PV4SF): Ditto.
16595         (V8DI_FTYPE_PV2DI): Ditto.
16596         (V8DF_FTYPE_PV2DF): Ditto.
16597         (V4DI_FTYPE_PV2DI): Ditto.
16598         (V4DF_FTYPE_PV2DF): Ditto.
16599         (V16SI_FTYPE_PV2SI): Ditto.
16600         (V16SF_FTYPE_PV2SF): Ditto.
16601         (V8DI_FTYPE_PV4DI): Ditto.
16602         (V8DF_FTYPE_PV4DF): Ditto.
16603         (V8SF_FTYPE_FLOAT): Ditto.
16604         (V4SF_FTYPE_FLOAT): Ditto.
16605         (V4DF_FTYPE_DOUBLE): Ditto.
16606         (V8SF_FTYPE_PV4SF): Ditto.
16607         (V8SI_FTYPE_PV4SI): Ditto.
16608         (V4SI_FTYPE_PV2SI): Ditto.
16609         (V8SF_FTYPE_PV2SF): Ditto.
16610         (V8SI_FTYPE_PV2SI): Ditto.
16611         (V16SF_FTYPE_PV8SF): Ditto.
16612         (V16SI_FTYPE_PV8SI): Ditto.
16613         (V8DI_FTYPE_V8SF): Ditto.
16614         (V4DI_FTYPE_V4SF): Ditto.
16615         (V2DI_FTYPE_V4SF): Ditto.
16616         (V64QI_FTYPE_QI): Ditto.
16617         (V32HI_FTYPE_HI): Ditto.
16618         (V8UHI_FTYPE_V8UHI): Ditto.
16619         (V16UHI_FTYPE_V16UHI): Ditto.
16620         (V32UHI_FTYPE_V32UHI): Ditto.
16621         (V2UDI_FTYPE_V2UDI): Ditto.
16622         (V4UDI_FTYPE_V4UDI): Ditto.
16623         (V8UDI_FTYPE_V8UDI): Ditto.
16624         (V4USI_FTYPE_V4USI): Ditto.
16625         (V8USI_FTYPE_V8USI): Ditto.
16626         (V16USI_FTYPE_V16USI): Ditto.
16627         (V2DF_FTYPE_V2DF_UINT64): Ditto.
16628         (V2DI_FTYPE_V2DF_V2DF): Ditto.
16629         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16630         (V8DF_FTYPE_V8DF_V8DI): Ditto.
16631         (V4SF_FTYPE_V4SF_UINT64): Ditto.
16632         (V4SI_FTYPE_V4SF_V4SF): Ditto.
16633         (V16SF_FTYPE_V16SF_V16SI): Ditto.
16634         (V64QI_FTYPE_V32HI_V32HI): Ditto.
16635         (V32HI_FTYPE_V16SI_V16SI): Ditto.
16636         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16637         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16638         (V32HI_FTYPE_V64QI_V64QI): Ditto.
16639         (V32HI_FTYPE_V32HI_V32HI): Ditto.
16640         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16641         (V16SI_FTYPE_V16SI_V4SI): Ditto.
16642         (V16SI_FTYPE_V16SI_V16SI): Ditto.
16643         (V16SI_FTYPE_V32HI_V32HI): Ditto.
16644         (V16SI_FTYPE_V16SI_SI): Ditto.
16645         (V8DI_FTYPE_V8DI_V8DI): Ditto.
16646         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16647         (V8DI_FTYPE_V16SI_V16SI): Ditto.
16648         (V8DI_FTYPE_V8DI_V2DI): Ditto.
16649         (QI_FTYPE_QI): Ditto.
16650         (SI_FTYPE_SI): Ditto.
16651         (DI_FTYPE_DI): Ditto.
16652         (QI_FTYPE_QI_QI): Ditto.
16653         (QI_FTYPE_QI_INT): Ditto.
16654         (HI_FTYPE_HI_INT): Ditto.
16655         (SI_FTYPE_SI_INT): Ditto.
16656         (DI_FTYPE_DI_INT): Ditto.
16657         (HI_FTYPE_V16QI_V16QI): Ditto.
16658         (SI_FTYPE_V32QI_V32QI): Ditto.
16659         (DI_FTYPE_V64QI_V64QI): Ditto.
16660         (QI_FTYPE_V8HI_V8HI): Ditto.
16661         (HI_FTYPE_V16HI_V16HI): Ditto.
16662         (SI_FTYPE_V32HI_V32HI): Ditto.
16663         (QI_FTYPE_V4SI_V4SI): Ditto.
16664         (QI_FTYPE_V8SI_V8SI): Ditto.
16665         (QI_FTYPE_V2DI_V2DI): Ditto.
16666         (QI_FTYPE_V4DI_V4DI): Ditto.
16667         (QI_FTYPE_V8DI_V8DI): Ditto.
16668         (HI_FTYPE_V16SI_V16SI): Ditto.
16669         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16670         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16671         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16672         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16673         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16674         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16675         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16676         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16677         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16678         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16679         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16680         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16681         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16682         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16683         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16684         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16685         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16686         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16687         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16688         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16689         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16690         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16691         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16692         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16693         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16694         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16695         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16696         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16697         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16698         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16699         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16700         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16701         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16702         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16703         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16704         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16705         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16706         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16707         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16708         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16709         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16710         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16711         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16712         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16713         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16714         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16715         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16716         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16717         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16718         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16719         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16720         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16721         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16722         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16723         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16724         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16725         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16726         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16727         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16728         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16729         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16730         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16731         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16732         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16733         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16734         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16735         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16736         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16737         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16738         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16739         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16740         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16741         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16742         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16743         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16744         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16745         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16746         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16747         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16748         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16749         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16750         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16751         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16752         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16753         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16754         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16755         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16756         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16757         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16758         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16759         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16760         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16761         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16762         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16763         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16764         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16765         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16766         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16767         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16768         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16769         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16770         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16771         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16772         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16773         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16774         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16775         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16776         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16777         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16778         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16779         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16780         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16781         (HI_FTYPE_HI): Ditto.
16782         (HI_FTYPE_V16QI): Ditto.
16783         (SI_FTYPE_V32QI): Ditto.
16784         (DI_FTYPE_V64QI): Ditto.
16785         (QI_FTYPE_V8HI): Ditto.
16786         (HI_FTYPE_V16HI): Ditto.
16787         (SI_FTYPE_V32HI): Ditto.
16788         (QI_FTYPE_V4SI): Ditto.
16789         (QI_FTYPE_V8SI): Ditto.
16790         (HI_FTYPE_V16SI): Ditto.
16791         (QI_FTYPE_V2DI): Ditto.
16792         (QI_FTYPE_V4DI): Ditto.
16793         (QI_FTYPE_V8DI): Ditto.
16794         (V16QI_FTYPE_HI): Ditto.
16795         (V32QI_FTYPE_SI): Ditto.
16796         (V64QI_FTYPE_DI): Ditto.
16797         (V8HI_FTYPE_QI): Ditto.
16798         (V16HI_FTYPE_HI): Ditto.
16799         (V32HI_FTYPE_SI): Ditto.
16800         (V4SI_FTYPE_QI): Ditto.
16801         (V4SI_FTYPE_HI): Ditto.
16802         (V8SI_FTYPE_QI): Ditto.
16803         (V8SI_FTYPE_HI): Ditto.
16804         (V2DI_FTYPE_QI): Ditto.
16805         (V4DI_FTYPE_QI): Ditto.
16806         (HI_FTYPE_HI_HI): Ditto.
16807         (SI_FTYPE_SI_SI): Ditto.
16808         (DI_FTYPE_DI_DI): Ditto.
16809         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16810         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16811         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16812         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16813         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16814         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16815         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16816         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16817         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16818         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16819         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16820         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16821         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16822         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16823         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16824         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16825         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16826         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16827         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16828         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16829         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16830         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16831         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16832         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16833         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16834         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16835         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16836         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16837         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16838         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16839         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16840         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16841         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16842         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16843         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16844         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16845         (V16SI_FTYPE_HI): Ditto.
16846         (V8DI_FTYPE_QI): Ditto.
16847         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16848         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16849         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16850         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16851         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16852         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16853         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16854         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16855         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16856         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16857         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16858         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16859         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16860         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16861         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16862         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16863         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16864         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16865         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16866         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16867         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16868         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16869         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16870         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16871         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16872         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16873         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16874         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16875         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16876         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16877         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16878         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16879         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16880         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16881         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16882         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16883         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16884         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16885         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16886         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16887         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16888         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16889         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16890         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16891         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16892         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16893         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16894         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16895         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16896         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16897         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16898         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16899         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16900         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16901         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16902         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16903         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16904         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16905         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16906         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16907         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16908         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16909         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16910         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16911         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16912         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16913         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16914         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16915         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16916         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16917         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16918         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16919         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16920         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16921         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16922         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16923         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16924         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16925         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16926         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16927         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16928         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16929         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16930         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16931         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16932         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16933         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16934         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16935         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16936         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16937         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16938         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16939         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16940         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16941         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16942         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16943         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16944         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16945         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16946         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16947         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16948         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16949         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16950         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16951         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16952         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16953         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16954         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16955         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16956         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16957         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16958         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16959         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16960         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16961         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16962         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16963         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16964         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16965         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16966         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16967         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16968         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16969         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16970         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16971         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16972         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16973         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16974         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16975         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16976         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16977         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16978         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16979         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16980         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16981         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16982         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16983         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16984         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16985         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16986         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16987         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16988         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16989         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16990         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16991         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16992         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16993         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16994         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16995         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16996         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16997         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16998         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16999         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17000         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17001         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17002         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17003         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17004         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17005         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17006         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17007         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17008         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17009         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17010         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17011         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17012         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17013         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17014         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17015         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17016         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17017         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17018         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17019         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17020         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17021         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17022         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17023         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17024         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17025         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17026         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17027         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17028         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17029         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17030         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17031         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17032         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17033         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17034         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17035         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17036         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17037         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17038         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17039         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17040         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17041         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17042         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17043         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17044         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17045         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17046         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17047         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17048         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17049         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17050         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17051         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17052         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17053         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17054         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17055         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17056         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17057         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17058         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17059         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17060         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17061         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17062         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17063         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17064         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17065         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17066         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17067         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17068         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17069         (QI_FTYPE_V8DF_INT_QI): Ditto.
17070         (QI_FTYPE_V4DF_INT_QI): Ditto.
17071         (QI_FTYPE_V2DF_INT_QI): Ditto.
17072         (HI_FTYPE_V16SF_INT_HI): Ditto.
17073         (QI_FTYPE_V8SF_INT_QI): Ditto.
17074         (QI_FTYPE_V4SF_INT_QI): Ditto.
17075         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17076
17077 2015-07-31  Richard Biener  <rguenther@suse.de>
17078
17079         * gimple-fold.c (fold_gimple_assign): Remove folding of
17080         GIMPLE_BINARY_RHS.
17081
17082 2015-07-31  Tom de Vries  <tom@codesourcery.com>
17083
17084         PR tree-optimization/66846
17085         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17086         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17087         (expand_omp_target) [ENABLE_CHECKING]: Same.
17088         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17089         cfun if !LOOPS_NEED_FIXUP.
17090         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
17091         that omp_for already has its own loop struct.
17092         * tree-parloops.c (create_phi_for_local_result)
17093         (create_call_for_reduction): Handle simple latch bb.
17094         (create_parallel_loop): Add simple latch bb to preserve
17095         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
17096         (gen_parallel_loop): Remove call to cancel_loop_tree.
17097         (parallelize_loops): Skip loops that are inner loops of parallelized
17098         loops.
17099         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17100         verify_loop_structure.
17101
17102 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17103
17104         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17105         * config/v850/v850.md (RV_REGNUM): New constants.
17106         * config/v850/v850.c (v850_libcall_value): New functions.
17107         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17108         (TARGET_LIBCALL_VALUE): Define.
17109
17110 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17111
17112         * rtl.h (lowpart_subreg): Move in file.
17113         * loop-iv.c (lowpart_subreg): Move to...
17114         * simplify-rtx.c (lowpart_subreg): ...here.
17115           (simplify_binary_operation_1): Use lowpart_subreg instead of
17116           simplify_gen_subreg.
17117         * expr.c (expand_expr_real_2): Ditto.
17118         * emit-rtl.c (gen_lowpart_common): Ditto.
17119         * combine.c (gen_lowpart_for_combine): Ditto.
17120         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17121           expand_debug_source_expr): Ditto.
17122
17123 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
17124
17125         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17126         (expand_builtin_atomic_clear): Remove support for atomic_clear
17127         pattern.
17128
17129 2015-07-30  Richard Biener  <rguenther@suse.de>
17130
17131         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17132         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17133         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
17134         redundant operand canonicalization.
17135
17136 2015-07-30  David Sherwood  <david.sherwood@arm.com>
17137
17138         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17139         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17140         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17141         * config/arm/arm.c (neon_valid_immediate): Likewise.
17142         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17143         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17144         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17145         (expand_vec_perm_vpshufb2_vpermq): Likewise.
17146         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17147         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17148         * config/i386/sse.md
17149         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17150         (*ssse3_palignr<mode>_perm): Likewise.
17151         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17152         * config/spu/spu.c (arith_immediate_p): Likewise.
17153         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17154         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17155
17156 2015-07-30  Richard Biener  <rguenther@suse.de>
17157
17158         * genmatch.c (decision_tree::gen_gimple): Merge with ...
17159         (decision_tree::gen_generic): ... this into ...
17160         (decision_tree::gen): ... this.
17161         (main): Adjust callers.
17162
17163 2015-07-30  Richard Biener  <rguenther@suse.de>
17164
17165         * genmatch.c (verbose): New global.
17166         (warning_at): Add overload with source_location.
17167         (capture_info::capture_info): Add bool whether generating gimple
17168         or generic.  Add gimple member.
17169         (capture_info::cinfo): Add capture member.
17170         (capture_info::walk_match): Record capture.  Warn on
17171         non-captured leafs.
17172         (capture_info::walk_c_expr): Add more fragments captures cannot
17173         escape through.  Warn on escaped captures.
17174         (dt_simplify::gen_1): Warn on operands we force to have no
17175         side-effects.
17176         (main): Initialize verbose.
17177         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17178
17179 2015-07-30  Richard Biener  <rguenther@suse.de>
17180
17181         PR middle-end/67053
17182         * match.pd: Allow both operands to independently have conversion
17183         when simplifying compares of addresses.
17184
17185 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
17186
17187         PR target/66217
17188         PR target/67045
17189         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17190         around those cases that need one.
17191
17192 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
17193
17194         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17195
17196 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17197
17198         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17199         New.  Copied from config/i386/gnu-user.h.
17200         (ASM_COMMENT_START): Likewise.
17201         (DBX_REGISTER_NUMBER): Likewise.
17202
17203 2015-07-29  Richard Biener  <rguenther@suse.de>
17204
17205         * gimple-fold.c (fold_gimple_cond): Remove.
17206         (fold_stmt_1): Do not call it.
17207
17208 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
17209
17210         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17211         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17212
17213         * config/aarch64/aarch64-modes.def: Add HFmode.
17214
17215         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17216         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17217
17218         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17219         aarch64_promoted_type): New.
17220
17221         (aarch64_float_const_representable_p): Disable HFmode.
17222         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17223         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17224         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17225
17226         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17227         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17228
17229         * config/aarch64/iterators.md (GPF_F16): New.
17230
17231 2015-07-29  Richard Biener  <rguenther@suse.de>
17232
17233         * match.pd: Merge address comparison patterns and make them
17234         handle some more cases.
17235
17236 2015-07-29  Richard Biener  <rguenther@suse.de>
17237
17238         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17239         (parser::parse_capture): Add bool argument on whether to reject
17240         unknown captures.
17241         (parser::parse_expr): Adjust.
17242         (parser::parse_op): Likewise.
17243         (parser::parse_pattern): Likewise.
17244
17245 2015-07-29  Richard Biener  <rguenther@suse.de>
17246
17247         * gimple-fold.c (has_use_on_stmt): New function.
17248         (replace_stmt_with_simplification): Use it to allow
17249         abnormals originally referenced in the stmt.
17250         (fold_stmt_1): Canonicalize operand order.
17251
17252 2015-07-28  David Sherwood  <david.sherwood@arm.com>
17253
17254         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17255         GET_MODE_INNER unconditionally.
17256         * config/spu/spu.c (arith_immediate_p): Likewise.
17257         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17258         * expmed.c (synth_mult): Remove check for VOIDmode result from
17259         GET_MODE_INNER.
17260         (expand_mult_const): Likewise.
17261         * fold-const.c (fold_binary_loc): Replace call to element_precision
17262         with call to GET_MODE_PRECISION.
17263         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17264         m->name.
17265         (emit_mode_inner): Likewise.
17266         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17267         result check.
17268         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17269         (GET_MODE_UNIT_PRECISION): Likewise.
17270         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17271         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17272         * stor-layout.c (bitwise_type_for_mode): Update assert.
17273         (element_precision): Remove.
17274
17275 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17276
17277         * target-insns.def (reload_load_address): New targetm instruction
17278         pattern.
17279         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17280
17281 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17282
17283         * target-insns.def (atomic_test_and_set): New targetm instruction
17284         pattern.
17285         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17286         HAVE_*/gen_* interface.
17287
17288 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17289
17290         * target-insns.def (can_extend, ptr_extend): New targetm instruction
17291         patterns.
17292         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17293         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17294         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17295         * rtlanal.c (nonzero_bits1): Likewise.
17296         (num_sign_bit_copies1): Likewise.
17297
17298 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17299
17300         * target-insns.def (eh_return): New targetm instruction pattern.
17301         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17302         interface.
17303         * function.c (thread_prologue_and_epilogue_insns): Remove
17304         preprocessor condition.
17305
17306 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17307
17308         * target-insns.def (indirect_jump): New targetm instruction pattern.
17309         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17310         interface.
17311
17312 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17313
17314         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17315         instead of nonimmediate_operand.  Remove C condiition.
17316
17317 2015-07-28  Richard Biener  <rguenther@suse.de>
17318
17319         * match.pd: Add more simplification of address comparisons.
17320
17321 2015-07-28  Richard Biener  <rguenther@suse.de>
17322
17323         * match.pd: Re-order two cases in comparison with max/min
17324         value simplification to make it apply for bools.
17325
17326 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17327
17328         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17329         Handle simple SIGN_EXTEND or ZERO_EXTEND.
17330         (aarch64_rtx_costs): Properly strip extend or extract before
17331         passing down to rtx costs again.
17332
17333 2015-07-28  Nick Clifton  <nickc@redhat.com>
17334
17335         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17336         Optimizes the case where -mes0 is active and a constant symbolic
17337         address is used.
17338         * config/rl78/rl78-protos.h: Prototype the new function.
17339         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17340
17341 2015-07-28  Tom de Vries  <tom@codesourcery.com>
17342
17343         * tree-parloops.c (reduc_stmt_res): New function.
17344         (initialize_reductions, add_field_for_reduction)
17345         (create_phi_for_local_result, create_loads_for_reductions)
17346         (create_stores_for_reduction, build_new_reduction): Handle case that
17347         reduc_stmt is a phi.
17348         (gather_scalar_reductions): Allow double_reduc reductions.
17349
17350 2015-07-28  Richard Biener  <rguenther@suse.de>
17351
17352         * fold-const.c (fold_comparison): Remove equality folding
17353         of decl addresses ...
17354         * match.pd: ... here and merge with existing pattern.
17355
17356 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17357
17358         PR tree-optimization/66828
17359         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17360         from int64_t to uint64_t.
17361
17362 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17363
17364         * opts-common.c (read_cmdline_option): List DriverOnly enum values
17365         as valid only in the error message of the driver, not in the
17366         messages of the language compilers.
17367
17368 2015-07-27  Tom de Vries  <tom@codesourcery.com>
17369
17370         * tree-parloops.c (gather_scalar_reductions): Simplify function
17371         structure.
17372
17373 2015-07-27  Marek Polacek  <polacek@redhat.com>
17374
17375         * ipa-devirt.c (types_same_for_odr): Fix typo.
17376
17377 2015-07-27  Jason Merrill  <jason@redhat.com>
17378
17379         PR debug/66468
17380         * dwarf2out.c (gen_inlined_subroutine_die): Check
17381         cgraph_function_possibly_inlined_p.
17382
17383 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17384
17385         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17386         Place integer variant first.
17387         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17388
17389 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17390
17391         PR/63870
17392         * config/arm/arm-builtins.c (enum arm_builtins):
17393         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17394         (ARM_BUILTIN_NEON_BASE): Rename macro to....
17395         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17396         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17397         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17398
17399 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17400
17401         PR/63870
17402         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17403         Add qualifier_lane_index.
17404         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17405         (arm_getlane_qualifiers): Use qualifier_lane_index.
17406         (arm_lanemac_qualifiers): Rename to...
17407         (arm_mac_n_qualifiers): ...this.
17408         (LANEMAC_QUALIFIERS): Rename to...
17409         (MAC_N_QUALIFIERS): ...this.
17410         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17411         (arm_setlane_qualifiers): Use qualifier_lane_index.
17412         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17413         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17414         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17415         (arm_expand_neon_builtin): Handle qualifier_lane_index.
17416
17417         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17418         * config/arm/arm.c (bounds_check): Likewise, improve error message.
17419         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17420         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17421         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17422         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17423         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17424         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17425         qualifiers to TERNOP_IMM.
17426         (vdup_lane): Change qualifiers to GETLANE.
17427         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17428         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17429         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17430         vqdmlsl_n): Change qualifiers to MAC_N.
17431
17432         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17433         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17434         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17435         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17436         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17437         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17438         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17439         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17440         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17441         Remove call to neon_lane_bounds.
17442
17443 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17444
17445         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17446         Place integer variant first.
17447
17448 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
17449
17450         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17451         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17452         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17453         for armv6kz targets.
17454         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17455         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17456         (FL_FOR_ARCH6ZK): Remove.
17457         (FL_FOR_ARCH6KZ): New.
17458         (arm_arch6zk): New declaration.
17459         * config/arm/arm-tables.opt: Regenerate.
17460         * config/arm/arm.c (arm_arch6kz): New.
17461         (arm_option_override): Set arm_arch6kz.
17462         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17463         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17464         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17465
17466 2015-07-27  Marek Polacek  <polacek@redhat.com>
17467
17468         PR c++/66555
17469         PR c/54979
17470         * doc/invoke.texi: Document -Wtautological-compare.
17471
17472 2015-07-27  Richard Biener  <rguenther@suse.de>
17473
17474         * genmatch.c (decision_tree::gen_gimple): Split out large
17475         subtrees into separate functions.
17476         (decision_tree::gen_generic): Likewise.
17477
17478 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
17479
17480         * config/alpha/alpha.c: Use SUBREG_P predicate.
17481         * config/alpha/predicates.md: Ditto.
17482
17483 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17484
17485         * config.host (s390*-*-*): Include driver-native.c only when
17486         building with s390* as host *and* target.
17487
17488 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
17489
17490         PR target/66930
17491         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17492         T bit register modified_between_p check.
17493
17494 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17495
17496         * config/i386/i386.c: Use SUBREG_P predicate.
17497         * config/i386/i386.md: Ditto.
17498         * config/i386/sse.md: Ditto.
17499         * config/i386/predicates.md: Ditto.
17500
17501 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17502
17503         PR target/67004
17504         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17505         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17506
17507 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17508
17509         * Makefile.in: Remove use of TREEBROWSER.
17510         * config.in: Regenerated.
17511         * configure: Regenerated.
17512         * configure.ac: Remove definition of TREEBROWSER.
17513         * tree-browser.c: Removed.
17514         * tree-browser.def: Removed.
17515
17516 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17517
17518         * graphite-scop-detection.c: Include gimple-pretty-print.h.
17519         (stmt_simple_for_scop_p): Print when a stmt is not handled in
17520         Graphite.
17521         (scopdet_basic_block_info): Print when a loop or bb cannot be
17522         represented in Graphite.
17523
17524 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17525
17526         PR target/66648
17527         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17528         execution guard when min_size is less than size_needed.
17529
17530 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17531
17532         * doc/install.texi: Document supported versions of ISL.
17533
17534 2015-07-25  Jeff Law  <law@redhat.com>
17535
17536         Revert:
17537         PR lto/66752
17538         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17539         unable to find X NE 0 in the tables, return X as the simplified
17540         condition.
17541         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17542         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17543         to VISISTED_BBS.  */
17544         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17545         after removing the control flow statement and unnecessary edges.
17546
17547 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
17548
17549         Revert:
17550         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17551
17552         PR rtl-optimization/64164
17553         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17554         * tree-ssa-copyrename.c: Removed.
17555         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17556         -ftree-coalesce-vars.
17557         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17558         * common.opt (ftree-copyrename): Ignore.
17559         (ftree-coalesce-inlined-vars): Likewise.
17560         * doc/invoke.texi: Remove the ignored options above.
17561         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17562         * tree-ssa-coalesce.h: ... here.
17563         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17564         headers required by it.
17565         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17566         across variables when flag_tree_coalesce_vars.  Check register
17567         use and promoted modes to allow coalescing.  Moved to
17568         tree-ssa-coalesce.c.
17569         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17570         with its member functions to tree-ssa-coalesce.c.
17571         (var_map_base_init): Likewise.  Renamed to
17572         compute_samebase_partition_bases.
17573         (partition_view_normal): Drop want_bases parameter.
17574         (partition_view_bitmap): Likewise.
17575         * tree-ssa-live.h: Adjust declarations.
17576         * tree-ssa-coalesce.c: Include explow.h.
17577         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17578         default defs at the entry point.
17579         (dump_part_var_map): New.
17580         (compute_optimized_partition_bases): New, called by...
17581         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17582         of compute_samebase_partition_bases.  Adjust.
17583         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17584         * cfgexpand.c (leader_merge): New.
17585         (get_rtl_for_parm_ssa_default_def): New.
17586         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17587         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17588         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17589         redundant MEM attr setting.
17590         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17591         from...
17592         (expand_one_stack_var): ... this.  New wrapper to check and
17593         skip already expanded SSA partitions.
17594         (record_alignment_for_reg_var): New, factored out of...
17595         (expand_one_var): ... this.
17596         (expand_one_ssa_partition): New.
17597         (adjust_one_expanded_partition_var): New.
17598         (expand_one_register_var): Check and skip already expanded SSA
17599         partitions.
17600         (expand_used_vars): Don't create DECLs for anonymous SSA
17601         names.  Expand all SSA partitions, then adjust all SSA names.
17602         (pass::execute): Replace the loops that set
17603         SA.partition_to_pseudo from partition leaders and cleared
17604         DECL_RTL for multi-location variables, and that which used to
17605         rename vars and set attrs, with one that clears DECL_RTL and
17606         checks that PARMs and RESULTs default_defs match DECL_RTL.
17607         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17608         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17609         * explow.c (promote_ssa_mode): New.
17610         * explow.h (promote_ssa_mode): Declare.
17611         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17612         * function.c: Include cfgexpand.h.
17613         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17614         (use_register_for_parm_decl): Wrapper for the above to
17615         special-case the result_ptr.
17616         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17617         (split_complex_args): Take assign_parm_data_all argument.
17618         Pass it to rtl_for_parm.  Set up rtl and context for split
17619         args.
17620         (assign_parms_augmented_arg_list): Adjust.
17621         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17622         multiple locations.  Recognize split complex args.
17623         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17624         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17625         (assign_parm_setup_block): Prefer SSA-assigned location.
17626         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17627         if stack_parm is NULL.
17628         (assign_parm_setup_stack): Prefer SSA-assigned location.
17629         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17630         rtl before testing for pointer bounds.  Special-case result_ptr.
17631         (expand_function_start): Maybe reset DECL_RTL of result.
17632         Prefer SSA-assigned location for result and static chain.
17633         Factor out DECL_RESULT and SET_DECL_RTL.
17634         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17635         anonymous SSA names.  Use promote_ssa_mode.
17636         (get_temp_reg): Likewise.
17637         (remove_ssa_form): Adjust.
17638         * stor-layout.c (layout_decl): Don't set mem attributes of
17639         non-MEMs.
17640         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17641         and get its reg_usage for reg invalidation.
17642         (compute_bb_dataflow): Pass it insn.
17643         (emit_notes_in_bb): Likewise.
17644
17645 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17646
17647         * config/i386/i386.c (ix86_va_start): Remove
17648         unneeded !TARGET_64BIT check.
17649         (ix86_gimplify_va_arg): Ditto.
17650
17651 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17652
17653         * graphite-sese-to-poly.c (build_poly_scop): Always call
17654         rewrite_commutative_reductions_out_of_ssa.
17655
17656 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17657
17658         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17659         flag_associative_math to FLOAT_TYPE_P.  Honour
17660         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17661
17662 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17663
17664         PR c++/64079
17665         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17666         and "%qD" in warning_at instead of "%q+D" in warning.
17667
17668 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17669
17670         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17671         (ix86_function_abi): Cleanup.
17672
17673 2015-07-24  Michael Darling  <darlingm@gmail.com>
17674
17675         PR other/66259
17676         * acinclude.m4: Reflects renaming of configure.in to configure.ac
17677         * configure: Likewise
17678         * configure.ac: Likewise
17679         * doc/install.texi: Likewise
17680         * doc/tm.texi: Likewise
17681         * doc/tm.texi.in: Likewise
17682
17683 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17684
17685         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17686         manually swapping values.
17687         * cse.c (fold_rtx): Likewise.
17688         * lra-eliminations.c (form_sum): Likewise.
17689
17690 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17691
17692         PR target/64003
17693         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17694         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17695         (*jcc_1, *jcc_2, jump, simple_return_internal)
17696         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17697         Set length_nobnd attribute instead of length attribute.
17698         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17699         (length_nobnd): Remove attribute.
17700         (length): Remove length_nobnd processing.
17701
17702 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
17703
17704         * gimplify.c (omp_default_clause): New function.  Reorganize flow
17705         for clarity. Broken out of ...
17706         (omp_notice_variable): ... here.
17707
17708 2015-07-24  Gary Funck  <gary@intrepid.com>
17709
17710         PR middle-end/66984
17711         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17712         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17713
17714 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17715
17716         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17717         exit-first loop transform.
17718
17719 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
17720
17721         PR 66714
17722         * tree-cfg.c (struct replace_decls_d): New struct.
17723         (replace_block_vars_by_duplicates_1): New function.
17724         (replace_block_vars_by_duplicates): Use it to replace the decls
17725         in the value exprs by duplicates.
17726
17727 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17728
17729         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17730         -shared, -symbolic, -rdynamic.
17731
17732 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17733
17734         PR target/65711
17735         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17736         -dynamic-linker within %{!static %{!shared, and -rdynamic within
17737         %{!static.
17738
17739 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
17740
17741         PR ipa/66566
17742         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17743         edge summary is available.
17744
17745 2015-07-24  Richard Biener  <rguenther@suse.de>
17746
17747         * genmatch.c (struct dt_node): Add statistic fields.
17748         (dt_node::analyze): New method.
17749         (decision_tree::gen_gimple): Call analyze on the root node
17750         and print statistics to stderr.
17751         (decision_tree::gen_generic): Likewise.
17752
17753 2015-07-24  Richard Biener  <rguenther@suse.de>
17754
17755         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17756         against the highest or lowest possible integer ...
17757         * match.pd: ... as patterns here.
17758
17759 2015-07-24  Richard Biener  <rguenther@suse.de>
17760
17761         * genmatch.c (struct capture_info): Add same_as field.
17762         (capture_info::capture_info): Initialize same_as.
17763         (capture_info::walk_match): Compute same_as.
17764         (capture_info::walk_result): Compute stuff for the leader.
17765         (capture_info::walk_c_expr): Likewise.
17766         (dt_simplify::gen_1): Only look at leaders when deciding
17767         to force no side-effects or emit side-effects of omitted operands.
17768
17769 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17770
17771         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17772         reg note to the GPR -> FPR save instructions.
17773
17774 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17775
17776         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17777         cheaper.
17778         (s390_expand_insv): Don't generate risbg pattern for constant zero
17779         sources.
17780         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17781         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
17782         splitters.
17783
17784 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17785
17786         * config/s390/s390.c (s390_reorg): Clean up handling of processors
17787         with
17788         -mtune=
17789         (s390_issue_rate): Likewise.
17790         (s390_sched_reorder): Likewise.
17791         (s390_sched_variable_issue): Likewise.
17792         (s390_loop_unroll_adjust): Likewise.
17793         (s390_option_override):  Likewise.
17794
17795 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17796
17797         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17798         processor capabilities with -march=native.
17799         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17800         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
17801         (S390_TARGET_BITS_STRING): Macro to simplify specs.
17802
17803 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17804
17805         * config/s390/s390.c (s390_issue_rate): Handle
17806         PROCESSOR_2094_Z9_EC.
17807         (s390_option_override): Likewise.
17808         (s390_adjust_priority): Likewise.
17809
17810 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17811
17812         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17813         when cross compiling.
17814
17815 2015-07-24  Richard Biener  <rguenther@suse.de>
17816
17817         * fold-const.c (maybe_canonicalize_comparison_1): Move
17818         A code CST canonicalization ...
17819         * match.pd: ... to a pattern here.
17820
17821 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
17822
17823         Revert:
17824         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17825         PR target/63521
17826         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17827         (HONOR_REG_ALLOC_ORDER): Define.
17828
17829 2015-07-24  Richard Biener  <rguenther@suse.de>
17830
17831         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17832         * fold-const.c (fold_comparison): Move parameter does not
17833         alias &local simplification ...
17834         * match.pd: ... as a pattern here.
17835
17836 2015-07-24  Richard Biener  <rguenther@suse.de>
17837
17838         * gimple-fold.c (replace_stmt_with_simplification): Special-case
17839         valueizing call operands.
17840         * gimple-match-head.c (maybe_push_res_to_seq): Take
17841         number of call arguments from ops array.
17842         (do_valueize): New function.
17843         (gimple_simplify): Return true if valueization changed
17844         any operand even if the result didn't simplify further.
17845
17846 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17847
17848         PR middle-end/25530
17849         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17850
17851 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17852
17853         PR middle-end/25529
17854         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17855
17856 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17857
17858         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17859         instruction.
17860
17861 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17862
17863         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17864         clean up.
17865
17866 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
17867
17868         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17869         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
17870         targets here.
17871         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17872         ms_va_list_type_node initialization.
17873
17874 2015-07-23  Jeff Law  <law@redhat.com>
17875
17876         PR lto/66752
17877         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17878         unable to find X NE 0 in the tables, return X as the simplified
17879         condition.
17880         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17881         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17882         to VISISTED_BBS.  */
17883         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17884         after removing the control flow statement and unnecessary edges.
17885
17886 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17887
17888         * tree-pass.h (get_current_pass_name): Removed.
17889
17890 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17891
17892         PR rtl-optimization/64164
17893         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17894         * tree-ssa-copyrename.c: Removed.
17895         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17896         -ftree-coalesce-vars.
17897         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17898         * common.opt (ftree-copyrename): Ignore.
17899         (ftree-coalesce-inlined-vars): Likewise.
17900         * doc/invoke.texi: Remove the ignored options above.
17901         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17902         * tree-ssa-coalesce.h: ... here.
17903         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17904         headers required by it.
17905         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17906         across variables when flag_tree_coalesce_vars.  Check register
17907         use and promoted modes to allow coalescing.  Moved to
17908         tree-ssa-coalesce.c.
17909         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17910         with its member functions to tree-ssa-coalesce.c.
17911         (var_map_base_init): Likewise.  Renamed to
17912         compute_samebase_partition_bases.
17913         (partition_view_normal): Drop want_bases parameter.
17914         (partition_view_bitmap): Likewise.
17915         * tree-ssa-live.h: Adjust declarations.
17916         * tree-ssa-coalesce.c: Include explow.h.
17917         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17918         default defs at the entry point.
17919         (dump_part_var_map): New.
17920         (compute_optimized_partition_bases): New, called by...
17921         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17922         of compute_samebase_partition_bases.  Adjust.
17923         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17924         * cfgexpand.c (leader_merge): New.
17925         (get_rtl_for_parm_ssa_default_def): New.
17926         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17927         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17928         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17929         redundant MEM attr setting.
17930         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17931         from...
17932         (expand_one_stack_var): ... this.  New wrapper to check and
17933         skip already expanded SSA partitions.
17934         (record_alignment_for_reg_var): New, factored out of...
17935         (expand_one_var): ... this.
17936         (expand_one_ssa_partition): New.
17937         (adjust_one_expanded_partition_var): New.
17938         (expand_one_register_var): Check and skip already expanded SSA
17939         partitions.
17940         (expand_used_vars): Don't create DECLs for anonymous SSA
17941         names.  Expand all SSA partitions, then adjust all SSA names.
17942         (pass::execute): Replace the loops that set
17943         SA.partition_to_pseudo from partition leaders and cleared
17944         DECL_RTL for multi-location variables, and that which used to
17945         rename vars and set attrs, with one that clears DECL_RTL and
17946         checks that PARMs and RESULTs default_defs match DECL_RTL.
17947         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17948         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17949         * explow.c (promote_ssa_mode): New.
17950         * explow.h (promote_ssa_mode): Declare.
17951         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17952         * function.c: Include cfgexpand.h.
17953         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17954         (use_register_for_parm_decl): Wrapper for the above to
17955         special-case the result_ptr.
17956         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17957         (split_complex_args): Take assign_parm_data_all argument.
17958         Pass it to rtl_for_parm.  Set up rtl and context for split
17959         args.
17960         (assign_parms_augmented_arg_list): Adjust.
17961         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17962         multiple locations.  Recognize split complex args.
17963         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17964         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17965         (assign_parm_setup_block): Prefer SSA-assigned location.
17966         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17967         if stack_parm is NULL.
17968         (assign_parm_setup_stack): Prefer SSA-assigned location.
17969         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17970         rtl before testing for pointer bounds.  Special-case result_ptr.
17971         (expand_function_start): Maybe reset DECL_RTL of result.
17972         Prefer SSA-assigned location for result and static chain.
17973         Factor out DECL_RESULT and SET_DECL_RTL.
17974         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17975         anonymous SSA names.  Use promote_ssa_mode.
17976         (get_temp_reg): Likewise.
17977         (remove_ssa_form): Adjust.
17978         * stor-layout.c (layout_decl): Don't set mem attributes of
17979         non-MEMs.
17980         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17981         and get its reg_usage for reg invalidation.
17982         (compute_bb_dataflow): Pass it insn.
17983         (emit_notes_in_bb): Likewise.
17984
17985 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17986
17987         PR target/66217
17988         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17989         prototype.
17990         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17991         (rs6000_emit_2insn_and): Handle dot forms.
17992         * config/rs6000/rs6000.md (and<mode>3): Adjust.
17993         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
17994         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17995
17996 2015-07-23  Richard Biener  <rguenther@suse.de>
17997
17998         * generic-match-head.c: Include cgraph.h.
17999         * gimple-match-head.c: Likewise.
18000         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18001         SSA names.
18002         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18003         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
18004         pattern.
18005
18006 2015-07-23  Richard Biener  <rguenther@suse.de>
18007
18008         * gimple-fold.c (fold_gimple_cond): Do not require folding
18009         results to pass valid_gimple_rhs_p.
18010         * tree-cfg.h (fold_cond_expr_cond): Remove.
18011         * tree-cfg.c (fold_cond_expr_cond): Likewise.
18012         (make_edges): Do not call it.
18013         * tree-inline.c (tree_function_versioning): Likewise.
18014
18015 2015-07-23  Tom de Vries  <tom@codesourcery.com>
18016
18017         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18018         vect_force_simple_reduction.
18019         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18020         (vect_is_simple_reduction_1): Add and handle
18021         need_wrapping_integral_overflow parameter.
18022         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18023         need_wrapping_integral_overflow parameter.
18024         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18025         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18026         decl.
18027
18028 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
18029
18030         PR tree-optimization/66926,66951
18031         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18032         INNER_LOOP and fix up condition for renaming virtual operands.
18033
18034 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18035
18036         * combine.c (try_combine): Use std::swap instead of manually
18037         swapping.
18038
18039 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
18040
18041         * config/mips/i6400.md: New file.
18042         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18043         (mips64r6): Likewise.
18044         (i6400): Define.
18045         * config/mips/mips-tables.opt: Regenerate.
18046         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18047         (mips_issue_rate): Add support for i6400.
18048         (mips_multipass_dfa_lookahead): Likewise.
18049         * config/mips/mips.h (TUNE_I6400): Define.
18050         * config/mips/mips.md: Include i6400.md.
18051         (processor): Add i6400.
18052         * doc/invoke.texi (-march=@var{arch}): Add i6400.
18053
18054 2015-07-23  Richard Biener  <rguenther@suse.de>
18055
18056         PR middle-end/66916
18057         * match.pd: Guard widen and sign-change comparison simplification
18058         with single_use.
18059
18060 2015-07-23  Richard Biener  <rguenther@suse.de>
18061
18062         PR tree-optimization/66945
18063         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18064         ::before_dom_children): Force the propagators idea of
18065         non-executable edges to materialize, not what the folder
18066         chooses.
18067
18068 2015-07-23  Richard Biener  <rguenther@suse.de>
18069
18070         * gimple.h (gimple_cond_make_false): Use 0 != 0.
18071         (gimple_cond_make_true): Use 1 != 0.
18072
18073 2015-07-22  DJ Delorie  <dj@redhat.com>
18074
18075         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18076         slashes.
18077
18078         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18079         (ashrhi3): Likewise.
18080         (lshrhi3): Likewise.
18081         (movhi): Take advantage of zero-extend to load small constants.
18082         (movpsi): Likewise.
18083         (and<mode>3): Likewise.
18084         (zero_extendqihi2): Likewise.
18085         (zero_extendqisi2): New.
18086         * config/msp430/constraints.md (N,O): New.
18087         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18088
18089 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
18090
18091         PR target/66954
18092         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18093         to enum feature_priority and feature_list.
18094         (fold_builtin_cpu): Add F_AES to enum processor_features
18095         and isa_names_table.
18096
18097 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18098
18099         PR driver/66737
18100         * config/i386/linux-common.h (MPX_SPEC): Use linker option
18101         for 64bit target only.
18102
18103 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18104
18105         * config/nvptx/nvptx.c: Expand some comments.
18106
18107 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
18108
18109         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18110         (cortex_a53_advsimd): ...This.
18111
18112 2015-07-22  Richard Biener  <rguenther@suse.de>
18113
18114         * genmatch.c (expr::gen_transform): Clarify error message
18115         and display location.
18116
18117 2015-07-22  Richard Biener  <rguenther@suse.de>
18118
18119         * genmatch.c (struct operand): Add location member.
18120         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18121         constructors.
18122         (struct simplify): Remove match_location and result_location
18123         members.
18124         (elsehwere): Adjust.
18125
18126 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
18127
18128         * config/mips/m5100.md: New file.
18129         * config/mips/mips-cpus.def (m5100, m5101): Define.
18130         * config/mips/mips-tables.opt: Regenerate.
18131         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18132         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18133         -march=m5101 to -mips32r5.
18134         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18135         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18136         !-msoft-float.
18137         * config/mips/mips.md: Include m5100.md.
18138         (processor): Add m5100.
18139         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18140
18141 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
18142
18143         * config/mips/mips-cpus.def (interaptiv): Define.
18144         * config/mips/mips-tables.opt: Regenerate.
18145         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18146         -mips32r2.
18147         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18148         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18149
18150 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18151
18152         PR target/63521
18153         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18154         (HONOR_REG_ALLOC_ORDER): Define.
18155
18156 2015-07-22  Richard Biener  <rguenther@suse.de>
18157
18158         PR tree-optimization/66952
18159         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18160         blocks we end up executing unconditionally reset all SSA
18161         info such as range and alignment.
18162         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18163         * tree-ssanames.c (reset_flow_sensitive_info): New function.
18164
18165 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18166
18167         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18168         typo in attribute.
18169
18170 2015-07-22  Richard Biener  <rguenther@suse.de>
18171
18172         * genmatch.c (parser::parse_result): Properly handle
18173         match with result operands and conditions.
18174
18175 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18176
18177         PR target/63870
18178         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18179         Add qualifier_struct_load_store_lane_index.
18180         (aarch64_types_loadstruct_lane_qualifiers): Use
18181         qualifier_struct_load_store_lane_index for lane index argument for
18182         last argument.
18183         (aarch64_types_storestruct_lane_qualifiers): Ditto.
18184         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18185         (aarch64_simd_expand_args): Add new argument describing mode of
18186         builtin. Check lane bounds for arguments with
18187         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18188         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18189         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18190         (aarch64_simd_expand_builtin): Handle arguments with
18191         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18192         aarch64_simd_expand_args.
18193         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18194         vst[234]_lane with BUILTIN_VALLDIF.
18195         * config/aarch64/aarch64-simd.md:
18196         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18197         endianness reversal on lane index.
18198         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18199         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18200         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18201         (vec_store_lanesci_lane<mode>): Ditto.
18202         (vec_store_lanesxi_lane<mode>): Ditto.
18203         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18204         reversal of lane index.
18205         (aarch64_ld3_lane<mode>): Ditto.
18206         (aarch64_ld4_lane<mode>): Ditto.
18207         (aarch64_st2_lane<mode>): Ditto.
18208         (aarch64_st3_lane<mode>): Ditto.
18209         (aarch64_st4_lane<mode>): Ditto.
18210         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18211         to qmode. Add new mode parameter. Update uses.
18212         (__LD3_LANE_FUNC): Ditto.
18213         (__LD4_LANE_FUNC): Ditto.
18214         (__ST2_LANE_FUNC): Ditto.
18215         (__ST3_LANE_FUNC): Ditto.
18216         (__ST4_LANE_FUNC): Ditto.
18217
18218 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
18219
18220         * doc/invoke.texi (Language Independent Options): Rename node to
18221         Diagnostic Message Formatting Options.
18222
18223 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
18224
18225         PR ipa/66424.
18226         * lra-remat.c (operand_to_remat): Prevent using insns with input
18227         subregs processed separately by IRA.
18228
18229 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
18230
18231         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18232         straight loops.
18233         (single_imm_use): Check for iterator node.
18234         (num_imm_uses): Likewise.
18235         * tree-ssa-operands.c (has_zero_uses_1): Delete.
18236         (single_imm_use_1): Check for iterator node.
18237
18238 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
18239             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18240
18241         * configure.ac: Add check for new options in isl-0.15.
18242         * config.in, configure: Rebuilt.
18243         * graphite-blocking.c: Include <isl/constraint.h>
18244         * graphite-interchange.c,  graphite-poly.c: Likewise.
18245         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18246         * graphite.c: Likewise.
18247         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18248         <isl/union_set.h>.
18249         * graphite-dependences.c: Include <isl/constraint.h>.
18250         (max_number_of_out_dimensions): Returns isl_stat.
18251         (extend_schedule_1): Likewise
18252         (extend_schedule): Corresponding changes.
18253         * graphite-optimize-isl.c: Include <isl/constraint.h> and
18254         <isl/union_set.h>.
18255         (getSingleMap): Change return type of isl_stat.
18256         (optimize_isl): Conditionally use
18257         isl_options_set_schedule_serialize_sccs.
18258         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18259         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18260
18261 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
18262
18263         PR target/66956
18264         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18265         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18266
18267 2015-07-21  Richard Biener  <rguenther@suse.de>
18268
18269         PR tree-optimization/66948
18270         * genmatch.c (capture_info::walk_match): Also recurse to
18271         captures.  Properly compute expr state from captures of
18272         captures.
18273         * match.pd: Add single-use guards to
18274         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18275
18276 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
18277
18278         * config/nvptx/mkoffload.c (process): Add static destructor call.
18279
18280 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18281
18282         PR middle-end/66915
18283         * match.pd (A - B -> A + (-B)): Don't allow folding
18284         when type if a fixed-point type.
18285
18286 2015-07-20  DJ Delorie  <dj@redhat.com>
18287
18288         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18289         (iorqi3_real): Likewise for set1.
18290
18291 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
18292
18293         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18294         for !TARGET_64BIT.
18295
18296 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
18297
18298         * graphite-isl-ast-to-gimple.c:
18299         Refactor so that each function can access 'region'. This will help
18300         maintain a parameter rename_map within a region.
18301
18302 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18303
18304         * config/rs6000/rs6000.md (*lt0_disi): New.
18305
18306 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18307
18308         PR target/66217
18309         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
18310         "available letters" comment.
18311         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18312         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18313         and_2rld_operand):  Delete.
18314         (and_operand): Adjust.
18315         (rotate_mask_operator): New.
18316         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18317         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18318         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18319         extract_ME): Delete.
18320         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18321         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18322         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18323         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18324         rs6000_emit_2insn_and): New.
18325         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18326         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18327         includes_rldic_lshift_p, includes_rldicr_lshift_p,
18328         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18329         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18330         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18331         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18332         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18333         rs6000_emit_2insn_and): New.
18334         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18335         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18336         handling.
18337         <NOT>: Don't fall through to next case.
18338         <AND>: Handle the various rotate-and-mask cases directly.
18339         <IOR>: Always cost as one insn.
18340         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18341         (and<mode>3): Adjust expander for the new patterns.
18342         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18343         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18344         (*and<mode>3_imm_dot_shifted): New.
18345         (*and<mode>3_mask): Delete, rewrite as ...
18346         (and<mode>3_mask): ... New.
18347         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18348         (andsi3_internal0_nomc): Delete.
18349         (*andsi3_internal6): Delete.
18350         (*and<mode>3_2insn): New.
18351         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18352         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18353         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18354         *insvdi_internal3): Delete.
18355         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18356         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18357         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18358         *ior<mode>_mask): New.
18359         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18360         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18361         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18362         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18363         Delete.
18364         (ashr<mode>3): Delete expander.
18365         (*ashr<mode>3): Rename to ...
18366         (ashr<mode>3): ... This.
18367         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18368         (*rotldi3_internal4, *rotldi3_internal5 and split,
18369         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18370         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18371         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18372         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18373         (splitter for loading a mask): Adjust.
18374         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18375
18376 2015-07-20  Marek Polacek  <polacek@redhat.com>
18377
18378         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18379         output_add_clobbers, output_added_clobbers_hard_reg_p,
18380         gen_rtx_scratch): Remove declarations.
18381
18382 2015-07-20  Marek Polacek  <polacek@redhat.com>
18383
18384         PR c++/55095
18385         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18386
18387 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18388
18389         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18390         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18391
18392 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18393
18394         * combine.c (combine_simplify_rtx): Move simplification step
18395         before various transformations/substitutions.
18396
18397 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
18398
18399         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18400         (struct int_traits): Likewise.
18401
18402 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18403
18404         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18405         function to vmsdbgout_function_decl.
18406
18407 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18408
18409         PR target/66922
18410         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18411         from misaligned positions.
18412         (ix86_expand_pinsr): Reject insertions to misaligned positions.
18413
18414 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
18415
18416         PR middle-end/46851
18417         PR middle-end/60340
18418         * Makefile.in: Removed omega.o.
18419         * common.opt: Document flag fcheck-data-deps as deprecated.
18420         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18421         its associated params: omega-max-vars, omega-max-geqs,
18422         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18423         omega-max-keys, omega-eliminate-redundant-constraints.
18424         * doc/loop.texi: Remove all the section on Omega.
18425         * graphite-blocking.c: Include missing params.h: it used to be
18426         included through tree-data-ref.h and omega.h.
18427         * graphite-isl-ast-to-gimple.c: Same.
18428         * graphite-optimize-isl.c: Same.
18429         * graphite-sese-to-poly.c: Same.
18430         * graphite.c: Same.
18431         * omega.c: Remove.
18432         * omega.h: Remove.
18433         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18434         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18435         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18436         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18437         * passes.def: Remove pass_check_data_deps.
18438         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18439         (dump_conflict_function): Same.
18440         (dump_subscript): Same.
18441         (print_direction_vector): Same.
18442         (print_dir_vectors): Same.
18443         (print_lambda_vector): Same.
18444         (print_dist_vectors): Same.
18445         (dump_data_dependence_relation): Same.
18446         (dump_data_dependence_relations): Same.
18447         (dump_dist_dir_vectors): Same.
18448         (dump_ddrs): Same.
18449         (init_omega_eq_with_af): Removed.
18450         (omega_extract_distance_vectors): Removed.
18451         (omega_setup_subscript): Removed.
18452         (init_omega_for_ddr_1): Removed.
18453         (init_omega_for_ddr): Removed.
18454         (ddr_consistent_p): Removed.
18455         (compute_affine_dependence): Do not use omega to check data
18456         dependences.
18457         (compute_data_dependences_for_bb): Removed.
18458         (analyze_all_data_dependences): Removed.
18459         (tree_check_data_deps): Removed.
18460         * tree-data-ref.h: Do not include omega.h.
18461         (compute_data_dependences_for_bb): Removed.
18462         (tree_check_data_deps): Removed.
18463         * tree-ssa-loop.c (pass_check_data_deps): Removed.
18464         (make_pass_check_data_deps): Removed.
18465         * tree-ssa-phiopt.c: Include params.h.
18466         * tree-vect-data-refs.c: Same.
18467         * tree-vect-slp.c: Same.
18468
18469 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18470
18471         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18472         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
18473         (mem->fpreg splitters): Ditto.
18474         (general_operand->nonimmediate_operand splitter): Use explicit modes.
18475         Disable DFmode for TARGET_64BIT.
18476
18477 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
18478
18479         PR target/66906
18480         * config/i386/i386.c (ix86_expand_prologue): Replicate static
18481         chain on the stack.
18482
18483 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18484
18485         * config/nvptx/mkoffload.c (process): Constify host data.
18486         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18487         Constify host data.
18488         (generate_host_descr_file): Likewise.
18489
18490 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
18491             Sebastian Pop  <s.pop@samsung.com>
18492
18493         PR middle-end/61929
18494         * graphite-dependences.c (add_pdr_constraints): Renamed
18495         pdr->extent to pdr->subscript_sizes.
18496         * graphite-interchange.c (build_linearized_memory_access): Add
18497         back all gcc_assert's that the "isl_int to isl_val conversion"
18498         patch has removed.  Refactored.
18499         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18500         * graphite-poly.c (new_poly_dr): Same.
18501         (free_poly_dr): Same.
18502         * graphite-poly.h (struct poly_dr): Same.
18503         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18504         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18505         * graphite-scop-detection.h: Fix space.
18506         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18507         back all gcc_assert's removed by a previous patch.
18508         (wrap): Remove the_isl_ctx global variable that the same patch has
18509         added.
18510         (build_loop_iteration_domains): Same.
18511         (add_param_constraints): Same.
18512         (pdr_add_data_dimensions): Same.  Refactored.
18513         (build_poly_dr): Renamed extent to subscript_sizes.
18514
18515 2015-07-17  Marek Polacek  <polacek@redhat.com>
18516
18517         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18518         * match.pd: ... here.
18519
18520 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18521
18522         * config/nvptx/mkoffload.c (process): Constify target data.
18523         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18524         Constify target data.
18525         (generate_target_offloadend_file): Likewise.
18526
18527 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
18528
18529         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18530         to allow renaming of PHI arguments on edges incoming from outer
18531         loop header, add corresponding check before start PHI iterator.
18532         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18533         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18534         with true force_vectorize.  Set-up dominator for outer loop too.
18535         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18536         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18537         was marked with force_vectorize and has restricted cfg.
18538         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18539         inner loop.
18540         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18541         do peeling for outer loops.
18542
18543 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
18544             Matthias Klose  <doko@ubuntu.com>
18545
18546         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18547         build-sysroot, sysroot from the `Miscenalleous configure options' to
18548         the `Directories' section and strip trailing `/' from with_sysroot.
18549         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18550         * configure: Regenerated.
18551
18552 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18553
18554         PR target/66824
18555         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18556         (TARGET_HARD_DF_REGS): Ditto.
18557         (TARGET_HARD_XF_REGS): Ditto.
18558         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18559         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18560         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18561         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18562         (*movsf_internal): Add alternatives 16 and 17. Enable
18563         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18564
18565 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18566
18567         PR rtl-optimization/66891
18568         * calls.c (expand_call): Wrap precompute_register_parameters with
18569         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18570
18571 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
18572
18573         * config/nvptx/mkoffload.c (process): Constify mapping variables.
18574         Define target data struct and initialize it.
18575
18576 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
18577
18578         PR rtl-optimization/66626
18579         * ira.h (emit-rtl.h): Include.
18580         (non_spilled_static_chain_regno_p): New.
18581         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18582         unless it is non spilled static chain pseudo.
18583         (assign_hard_rego): Spill memory profitable allocno unless it is
18584         non spilled static chain pseudo.
18585         (allocno_spill_priority_compare): Put non spilled static chain
18586         pseudo at the end of sorted array.
18587         (improve_allocation): Do nothing if we have static chain and
18588         non-local goto.
18589         (allocno__priority_compare_func): Put non spilled static chain
18590         pseudo at the beginning of sorted array.
18591         (move_spill_restore): Ignore non spilled static chain pseudo.
18592         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18593         to non spilled static chain pseudo.
18594         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18595         pseudo at the beginning of sorted array.
18596         (spill_for): Spill non spilled static chain pseudo last.
18597         * lra-constraints.c (lra_constraints): Remove static chain pseudo
18598         check for equivalence.
18599
18600 2015-07-16  Martin Liska  <mliska@suse.cz>
18601
18602         PR ipa/66896.
18603         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18604         dst_ctx if it does not exist.
18605
18606 2015-07-16  Martin Liska  <mliska@suse.cz>
18607
18608         * hash-set.h (remove): New function.
18609         (iterator): New iteration class for hash_set.
18610
18611 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18612
18613         * genattrtab.c (make_canonical): Add a file_location parameter.
18614         Use fatal_at rather than fatal.
18615         (get_attr_value): Likewise.  Update call to make_canonical.
18616         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18617         (make_internal_attr): Update calls accordingly.
18618
18619 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18620
18621         * read-md.h (message_with_line, error_with_line): Delete.
18622         * read-md.c (message_with_line, error_with_line): Delete.
18623         * gensupport.h: Include read-md.h.
18624         (md_rtx_info): New structure.
18625         (read_md_rtx): Use it.  Return a bool success value.
18626         * gensupport.c (read_md_rtx): Likewise.
18627         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18628         (main): Update after interface changes.
18629         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18630         (main): Update after interface changes.
18631         * genattrtab.c (insn_code_number): Delete.
18632         (optimize_attrs): Add a max_insn_code parameter and use it instead
18633         of insn_code_number.
18634         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18635         Use *_at rather than *_with_line functions.
18636         (gen_insn): Likewise.
18637         (gen_delay): Likewise.
18638         (gen_insn_reserv): Likewise.
18639         (gen_bypass): Take an md_rtx_info rather than an rtx.
18640         (main): Update after interface changes.  Use a local max_insn_code
18641         variable instead of insn_code_number.
18642         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18643         an rtx.  Use fatal_at rather than fatal.
18644         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18645         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18646         (gen_absence_set, gen_final_absence_set, gen_automaton)
18647         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18648         (main): Update after interface changes.
18649         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18650         and code number.
18651         (main): Update after interface changes.
18652         * genconditions.c (main): Use new read_md_rtx interface.
18653         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18654         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18655         (main): Update after interface changes.
18656         * genemit.c (insn_code_number, insn_index_number): Delete.
18657         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18658         Use fatal_at rather than fatal.
18659         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
18660         rather than fatal.
18661         (gen_split): Likewise.
18662         (main): Update after interface changes.
18663         * genextract.c (line_no): Delete.
18664         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18665         Update call to walk_rtx.
18666         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
18667         rather than message_with_line.
18668         (walk_rtx): Add an md_rtx_info argument.  Update call to
18669         VEC_safe_set_locstr.
18670         (main): Update after interface changes.
18671         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18672         and lineno.  Use error_at rather than separate message_with_line
18673         calls and have_error assignments.
18674         (main): Update after interface changes.
18675         * genmddump.c (main): Use new read_md_rtx interface.
18676         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18677         (main): Update after interface changes.
18678         * genoutput.c (next_code_number): Delete.
18679         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18680         (gen_peephole, gen_expand, gen_split): Likewise.
18681         (note_constraint): Likewise.  Use *_at rather than *_with_line
18682         functions.
18683         (main): Update after interface changes.
18684         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18685         rtx and lineno.
18686         (main): Update after interface changes.
18687         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18688         than an rtx and lineno.
18689         (process_define_constraint): Likewise.
18690         (process_define_register_constraint): Likewise.
18691         (main): Update after interface changes.
18692         * genrecog.c (next_insn_code, pattern_lineno): Delete.
18693         (validate_pattern): Replace top-level rtx with an md_rtx_info.
18694         Use *_at rather than *_with_line functions.
18695         (match_pattern_2): Likewise.
18696         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18697         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18698         Use *_at rather than *_with_line functions.
18699         * gentarget-def.c (add_insn): New function.
18700         (main): Use it.  Use new read_md_rtx interface.
18701
18702 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18703
18704         * gensupport.h (compute_test_codes): Take a file_location rather
18705         than a line number.
18706         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
18707         rather than *_with_line functions.
18708         (process_define_predicate): Update call to compute_test_codes.
18709         * genpreds.c (validate_exp): Take a file_location rather than a
18710         line number.  Use *_at functions rather than *_with_line functions.
18711         (process_define_predicate): Update call to validate_exp.
18712         (constraint_data): Replace lineno field with a file_location.
18713         (add_constraint): Take a file_location rather than a line number.
18714         Use *_at functions rather than *_with_line functions.  Fix error
18715         message for address constraints.  Update after changes to
18716         validate_exp, constraint_data and compute_test_codes.
18717         (process_define_constraint): Update accordingly.
18718         (process_define_register_constraint): Likewise.
18719
18720 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18721
18722         * genoutput.c (data): Use a file_location to record the source
18723         position.
18724         (nothing): Delete.
18725         (idata, idata_end): Remove initialization.
18726         (constraint_data): Replace lineno with a file_location.
18727         (output_insn_data): Update after changes to data.
18728         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18729         (scan_operands): Likewise, using *_at rather than *_with_line
18730         functions.
18731         (process_template): Likewise.
18732         (validate_insn_alternatives): Likewise.
18733         (validate_insn_operands): Likewise.
18734         (validate_optab_operands): Likewise.
18735         (init_insn_for_nothing): Initialize idata and idata_end.
18736         (note_constraint): Update after changes to constraint_data,
18737         using at rather than with_line functions.
18738         (mdep_constraint_len): Take a file_location rather than a
18739         line number.  Use at rather than with_line functions.
18740
18741 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18742
18743         * read-md.h (fatal_at): Declare.
18744         * read-md.c (fatal_at): New function.
18745         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18746         to record the source position.
18747         (check_attr_test): Take a file_location instead of a line number.
18748         Use fatal_at instead of fatal.
18749         (check_attr_value): Update after above changes, using "at"
18750         rather than "with_line" reporting functions.
18751         (convert_set_attr_alternative): Likewise.
18752         (gen_attr): Likewise.
18753         (check_defs): Likewise.  Don't assign to read_md_filename.
18754         (gen_insn): Update initialization after above changes.
18755         (gen_delay): Likewise.
18756         (write_insn_cases): Print the filename for a define_peephole.
18757         (gen_insn_reserv): Take a line number as argument and update
18758         the call to check_attr_test.
18759         (main): Pass a line number to gen_insn_reserv.
18760
18761 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18762
18763         * read-md.h (file_location): New structure.
18764         (directive_handler_t): Take a file_location rather than a line number.
18765         (message_at, error_at): Declare.
18766         (read_skip_construct): Delete.
18767         * read-md.c (message_with_line_1): Replace with...
18768         (message_at_1): ...this new function.
18769         (message_at, error_at): New functions.
18770         (message_with_line, error_with_line): Update to use message_at_1.
18771         (handle_enum): Take a file_location rather than a line number
18772         and use error_at for error reporting.
18773         (handle_include): Likewise.
18774         (read_skip_construct): Likewise.  Make static.
18775         (handle_file): Update after above changes.  Pass a file_location
18776         rather than a line number to handle_directive.
18777         * gensupport.c (queue_elem): Replace separate filename and lineno
18778         with a file_location.
18779         (queue_pattern): Replace filename and lineno arguments with a
18780         file_location.  Update after change to queue_elem.
18781         (process_define_predicate): Replace lineno argument with a
18782         file_location and use error_at for error reporting.  Update
18783         after above changes.
18784         (process_rtx): Likewise.
18785         (subst_pattern_match): Likewise.
18786         (get_alternatives_number): Likewise.
18787         (alter_predicate_for_insn): Likewise.
18788         (rtx_handle_directive): Likewise.
18789         (is_predicable): Update after above changes, using error_at rather
18790         than error_with_line.
18791         (has_subst_attribute): Likewise.
18792         (identify_predicable_attribute): Likewise.
18793         (alter_attrs_for_subst_insn): Likewise.
18794         (process_one_cond_exec): Likewise.
18795         (process_substs_on_one_elem): Likewise.
18796         (process_define_subst): Likewise.
18797         (check_define_attr_duplicates): Likewise.
18798         (read_md_rtx): Update after change to queue_elem.
18799
18800 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18801
18802         * genoutput.c (next_index_number): Delete.
18803         (data): Remove index_number.
18804         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18805         (main): Remove manipulation of next_index_number.
18806
18807 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18808
18809         * genattrtab.c (check_attr_value): Remove handling of null attrs.
18810         (make_canonical): Likewise.
18811
18812 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
18813
18814         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18815         instead of adjust_address_nv.
18816         (restore_stack_nonlocal): Likewise.
18817         (nonlocal_goto): Likewise.
18818
18819 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18820
18821         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18822         not have a corresponding loop header phi.
18823
18824 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18825
18826         * tree-parloops.c (create_loads_for_reductions): Handle case that
18827         reduction is unused.
18828
18829 2015-07-16  Richard Biener  <rguenther@suse.de>
18830
18831         PR tree-optimization/66894
18832         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18833         about deriving NE_EXPR from truncated values.
18834
18835 2015-07-16  Martin Liska  <mliska@suse.cz>
18836
18837         * alloc-pool.h
18838         (object_allocator): Add new class.
18839         (pool_allocator::initialize): Use the underlying class.
18840         (pool_allocator::allocate): Likewise.
18841         (pool_allocator::remove): Likewise.
18842         (operator new): A new generic allocator.
18843         * asan.c (struct asan_mem_ref): Remove unused members.
18844         (asan_mem_ref_new): Replace new operator with
18845         object_allocator::allocate.
18846         (free_mem_ref_resources): Change deallocation.
18847         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18848         with object_allocator.
18849         * config/sh/sh.c (add_constant): Replace new operator with
18850         object_allocator::allocate.
18851         (sh_reorg): Change call to a release method.
18852         * cselib.c (struct elt_list): Remove unused members.
18853         (new_elt_list): Replace new operator with
18854         object_allocator::allocate.
18855         (new_elt_loc_list): Likewise.
18856         (new_cselib_val): Likewise.
18857         (unchain_one_elt_list): Change delete operator with remove method.
18858         (unchain_one_elt_loc_list): Likewise.
18859         (unchain_one_value): Likewise.
18860         (cselib_finish): Release newly added static allocators.
18861         * cselib.h (struct cselib_val): Remove unused members.
18862         (struct elt_loc_list): Likewise.
18863         * df-problems.c (df_chain_alloc): Replace pool_allocator with
18864         object_allocator.
18865         * df-scan.c (struct df_scan_problem_data): Likewise.
18866         (df_scan_alloc): Likewise.
18867         * df.h (struct dataflow): Likewise.
18868         * dse.c (struct read_info_type): Likewise.
18869         (struct insn_info_type): Likewise.
18870         (struct dse_bb_info_type): Likewise.
18871         (struct group_info): Likewise.
18872         (struct deferred_change): Likewise.
18873         (get_group_info): Likewise.
18874         (delete_dead_store_insn): Likewise.
18875         (free_read_records): Likewise.
18876         (replace_read): Likewise.
18877         (check_mem_read_rtx): Likewise.
18878         (scan_insn): Likewise.
18879         (dse_step1): Likewise.
18880         (dse_step7): Likewise.
18881         * et-forest.c (struct et_occ): Remove unused members.
18882         (et_new_occ): Use allocate instead of new operator.
18883         (et_new_tree): Likewise.
18884         (et_free_tree): Call release method explicitly.
18885         (et_free_tree_force): Likewise.
18886         (et_free_pools): Likewise.
18887         (et_split): Use remove instead of delete operator.
18888         * et-forest.h (struct et_node): Remove unused members.
18889         * ipa-cp.c: Change pool_allocator to object_allocator.
18890         * ipa-inline-analysis.c: Likewise.
18891         * ipa-profile.c: Likewise.
18892         * ipa-prop.c: Likewise.
18893         * ipa-prop.h: Likewise.
18894         * ira-build.c (initiate_cost_vectors): Cast return value.
18895         (ira_allocate_cost_vector): Likewise.
18896         * ira-color.c (struct update_cost_record): Remove unused members.
18897         * lra-int.h (struct lra_live_range): Likewise.
18898         (struct lra_copy): Likewise.
18899         (struct lra_insn_reg): Likewise.
18900         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18901         * lra.c (new_insn_reg): Replace new operator with allocate method.
18902         (free_insn_regs): Same for operator delete.
18903         (finish_insn_regs): Release new static allocator.
18904         (finish_insn_recog_data): Likewise.
18905         (lra_free_copies): Replace delete operator with remove method.
18906         (lra_create_copy): Replace operator new with allocate method.
18907         (invalidate_insn_data_regno_info): Same for remove method.
18908         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18909         (free_debug_insn_changes): Replace delete operator with remove method.
18910         (replace_oldest_value_reg): Replace operator new with allocate method.
18911         (pass_cprop_hardreg::execute): Release new static variable.
18912         * sched-deps.c (sched_deps_init): Change pool_allocator to
18913         object_allocator.
18914         * sel-sched-ir.c: Likewise.
18915         * sel-sched-ir.h: Likewise.
18916         * stmt.c (expand_case): Likewise.
18917         (expand_sjlj_dispatch_table): Likewise.
18918         * tree-sra.c (struct access): Remove unused members.
18919         (struct assign_link): Likewise.
18920         (sra_deinitialize): Release newly added static pools.
18921         (create_access_1):Replace operator new with allocate method.
18922         (build_accesses_from_assign): Likewise.
18923         (create_artificial_child_access): Likewise.
18924         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18925         pool_allocator to object_allocator.
18926         * tree-ssa-pre.c: Likewise.
18927         * tree-ssa-reassoc.c: Likewise.
18928         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18929         * tree-ssa-strlen.c: Likewise.
18930         * tree-ssa-structalias.c: Likewise.
18931         * var-tracking.c (onepart_pool_allocate): New function.
18932         (unshare_variable): Use the newly added function.
18933         (variable_merge_over_cur): Likewise.
18934         (variable_from_dropped): Likewise.
18935         (variable_was_changed): Likewise.
18936         (set_slot_part): Likewise.
18937         (emit_notes_for_differences_1): Likewise.
18938         (vt_finalize): Release newly added static pools.
18939
18940 2015-07-16  Martin Jambor  <mjambor@suse.cz>
18941
18942         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
18943         all uses.  Fix two typos in its general comment.
18944         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
18945
18946 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
18947
18948         * config/i386/linux-common.h (LINK_MPX): New.
18949         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18950         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18951         indicating '-z bndplt' support by linker.
18952         * configure: Regenerate.
18953         * config.in: Regenerate.
18954
18955 2015-07-16  Richard Biener  <rguenther@suse.de>
18956
18957         * fold-const.c (fold_widened_comparison): Remove.
18958         (fold_sign_changed_comparison): Likewise.
18959         (fold_comparison): Move widened and sign-changed comparison
18960         simplification ...
18961         * match.pd: ... to patterns here.
18962         * generic-match-head.c: Include target.h.
18963         * gimple-match-head.c: Likewise.
18964
18965 2015-07-16  Richard Biener  <rguenther@suse.de>
18966
18967         * tree-ssa-dom.c (dom_valueize): New function.
18968         (record_temporary_equivalences): Also record equivalences
18969         for dominating stmts that have uses of equivalences we are
18970         about to record.
18971
18972 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
18973
18974         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18975         add_autoinc_candidates.
18976         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18977         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18978         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18979         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18980         Call new function.
18981         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18982         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18983         Remove parameter struct iv*.  Call add_autoinc_candidates here.
18984         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18985         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18986         Call new function.
18987         (find_iv_candidates): Call new functions.
18988
18989 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
18990
18991         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18992         uninitialized-variable warning.
18993
18994 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
18995
18996         PR target/65249
18997         * config/sh/sh.md (movdi): Split simple reg move to two movsi
18998         when the destination is R0.
18999
19000 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
19001
19002         PR target/66866
19003         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19004         * config/i386/i386.c (ix86_expand_pextr): New function.
19005         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
19006         for non-lowpart subregs.
19007         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19008         (insv<mode>): Use SWI248 mode iterator.
19009         (insv<mode>_1): Ditto.
19010
19011 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19012             Sebastian Pop  <s.pop@samsung.com>
19013
19014         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19015         iterator to use_stmt.
19016
19017 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19018             Sebastian Pop <s.pop@samsung.com>
19019
19020         * graphite-scop-detection.c (build_scops_1): Discard scops for
19021         which entry==exit.
19022
19023 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19024             Sebastian Pop <s.pop@samsung.com>
19025
19026         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19027         case of a return statement in scop.
19028
19029 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
19030             Sebastian Pop <s.pop@samsung.com>
19031
19032         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19033         INTEGER_TYPE parameters.
19034         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19035         VECTOR_CST in scan_tree_for_params.
19036         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19037
19038 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19039
19040         * gimple-pretty-print.h: Don't include pretty-print.h.
19041         * tree-streamer.h: Don't include lto-streamer.h.
19042         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19043         * gimple-streamer-in.c: Remove redundant includes.
19044         * gimple-streamer-out.c: Likewise.
19045         * ipa-devirt.c: Likewise.
19046         * ipa-icf.c: Likewise.
19047         * ipa-inline-analysis.c: Likewise.
19048         * ipa-polymorphic-call.c: Likewise.
19049         * ipa-profile.c: Likewise.
19050         * ipa-prop.c: Likewise.
19051         * ipa-pure-const.c: Likewise.
19052         * lto-cgraph.c: Likewise.
19053         * lto-streamer-in.c: Likewise.
19054         * lto-streamer-out.c: Likewise.
19055         * lto-streamer.c: Likewise.
19056         * tree-streamer-in.c: Likewise.
19057         * tree-streamer-out.c: Likewise.
19058         * tree-streamer.c: Likewise.
19059
19060 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
19061
19062         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19063         include input.h.
19064         * opts.c: Remove multiline #include comment.
19065
19066 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
19067
19068         * config/nvptx/mkoffload.c (process): Add C++ protection to
19069         emitted code.
19070
19071 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19072
19073         PR target/66854
19074         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19075         null before IEEE 128-bit floating point support patch.
19076
19077 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19078
19079         * simplify-rtx.c (simplify_ternary_operation): Add simplification
19080         for (!c) != {0,...,0} ? a : b for vector modes.
19081
19082 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
19083             Martin Jambor  <mjambor@suse.cz>
19084
19085         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19086         struct func_body_info* instead of struct ipa_node_params*, expecting
19087         fbi->info to be filled in.  Replace throughout.  Adjust call to
19088         ipa_load_from_parm_agg.
19089         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19090         instead of struct ipa_node_params*.  Adjust calls to other functions
19091         so that they pass either fbi or fbi->info.
19092         (set_switch_stmt_execution_predicate): Likewise.
19093         (will_be_nonconstant_predicate): Likewise.
19094         (compute_bb_predicates): Likewise.
19095         (estimate_function_body_sizes): Move asserts earlier.  Fill in
19096         struct func_body_info, replace parms_info with fbi.info.  Adjust
19097         calls to functions that now accept struct func_body_info.
19098         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19099         (struct func_body_info): Likewise.
19100         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19101         remove static.  Adjust callers.
19102         (ipa_load_from_parm_agg): Remove.
19103         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19104         (func_body_info): Likewise.
19105         (ipa_load_from_parm_agg): Adjust prototype.
19106
19107 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19108
19109         * gensupport.c (rtx_handle_directive): Adjust.
19110         * read-rtl.c (apply_iterators): Take vector to add rtxs to
19111         instead of expr list rtx.
19112         (add_define_attr_for_define_subst): Likewise.
19113         (add_define_subst_attr): Likewise.
19114         (read_subst_mapping): Likewise.
19115         (read_rtx): Likewise.
19116         * rtl.h (read_rtx): Adjust.
19117
19118 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19119
19120         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19121
19122 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19123
19124         PR target/58066
19125         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19126         (*tls_local_dynamic_base_64_<mode>): Ditto.
19127         (*tls_local_dynamic_base_64_largepic): Ditto.
19128         (tls_global_dynamic_64_<mode>): Update expander pattern.
19129         (tls_local_dynamic_base_64_<mode>): Ditto.
19130
19131 2015-07-15  Richard Biener  <rguenther@suse.de>
19132
19133         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19134         and bool_var == 1 -> bool_var simplifications ...
19135         * match.pd: ... to patterns here.  Factor out negate_expr_p
19136         cases from the A - B -> A + (-B) patterns as negate_expr_p
19137         predicate and add a -(A + B) -> (-B) - A pattern.
19138
19139 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19140
19141         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19142
19143 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19144             Robert Suchanek  <robert.suchanek@imgtec.com>
19145
19146         * config/mips/mips.c (mips_int_mask): New enum.
19147         (mips_shadow_set): Likewise.
19148         (int_mask): New variable.
19149         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19150         (machine_function): Add int_mask and use_shadow_register_set.
19151         (mips_attribute_table): Add attribute handlers for interrupt and
19152         use_shadow_register_set.
19153         (mips_interrupt_mask): New static function.
19154         (mips_handle_interrupt_attr): Likewise.
19155         (mips_handle_use_shadow_register_set_attr): Likewise.
19156         (mips_use_shadow_register_set): Change return type to enum
19157         mips_shadow_set.  Add argument handling for use_shadow_register_set
19158         attribute.
19159         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19160         compare with mips_shadow_set enum.
19161         (mips_compute_frame_info): Add interrupt mask and
19162         use_shadow_register_set to per-function information structure.
19163         Add a stack slot for EPC unconditionally.
19164         (mips_expand_prologue): Compare use_shadow_register_set value
19165         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
19166         masked interrupt register but in EIC mode use K0 and save Cause in K0.
19167         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
19168         copying the stack pointer from the shadow register set.
19169         * config/mips/mips.h (SR_IM0): New define.
19170         * config/mips/mips.md (mips_rdpgpr): Rename to...
19171         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
19172         * doc/extend.texi (Declaring Attributes of Functions): Document
19173         optional arguments for interrupt and use_shadow_register_set
19174         attributes.
19175
19176 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19177
19178         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19179         interrupt attribute.
19180         (mips_expand_prologue): Disable the floating point unit in an ISR.
19181         * config/mips/mips.h (SR_COP1): New define.
19182
19183 2015-07-15  Richard Biener  <rguenther@suse.de>
19184
19185         * genmatch.c (parser::peek, parser::peek_ident): Add argument
19186         to tell how many tokens to peek ahead (default 1).
19187         (parser::eat_token, parser::eat_ident): Return token consumed.
19188         (parser::parse_result): Parse new switch statement.
19189         * match.pd: Use case statements where appropriate.
19190
19191 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19192
19193         PR rtl-optimization/58066
19194         * calls.c (expand_call): Precompute register parameters before stack
19195         alignment is performed.
19196
19197 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19198
19199         PR rtl-optimization/66838
19200         * postreload.c (reload_cse_move2add): Also process
19201         CALL_INSN_FUNCTION_USAGE when resetting information of
19202         call-clobbered registers.
19203
19204 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19205             Cesar Philippidis  <cesar@codesourcery.com>
19206             Chung-Lin Tang  <cltang@codesourcery.com>
19207
19208         * config/nios2/constraints.md (U, v): New constraints.
19209         * config/nios2/predicates.md (rdprs_dcache_operand): New.
19210         (ldstex_memory_operand): New.
19211         * config/nios2/sync.md: New file.
19212         * config/nios2/nios2.md (unspecv): Add new builtin function
19213         UNSPECV codes.
19214         (rdprs, flushd, flushda, wrpie, eni): New patterns.
19215         (top-level): Include sync.md.
19216         * config/nios2/nios2.c (N2_FTYPES): Add function types for
19217         new builtins.
19218         (N2_BUILTINS): Add arch field setting, add new builtins.
19219         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19220         for arch field.
19221         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19222         Also handle ldex/stex/ldsex/stsex builtins.
19223         (nios2_expand_rdprs_builtin): New function.
19224         (nios2_expand_cache_builtin): New function.
19225         (nios2_expand_wrpie_builtin): New function.
19226         (nios2_expand_eni_builtin): New function.
19227         (nios2_expand_builtin): Add arch field handling and new builtin
19228         cases.
19229         * doc/extend.texi (Altera Nios II Built-in Functions): Document
19230         new builtins.
19231         * doc/md.texi (Machine Constraints): Document U and v constraints.
19232
19233 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19234             Cesar Philippidis  <cesar@codesourcery.com>
19235             Chung-Lin Tang  <cltang@codesourcery.com>
19236
19237         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19238         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19239         callee_save_reg_size and uses_anonymous_args fields.
19240         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19241         (nios2_create_cfa_notes): New function.
19242         (nios2_adjust_stack): New function for adjusting stack.
19243         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19244         Use nios2_adjust_stack.
19245         (nios2_expand_epilogue): Likewise.
19246         (nios2_expand_return): New function.
19247         (nios2_can_use_return_insn): Update for CDX pop.n usage.
19248         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19249         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19250         * config/nios2/nios2.md (return): Use nios2_expand_return.
19251
19252 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19253             Cesar Philippidis  <cesar@codesourcery.com>
19254             Chung-Lin Tang  <cltang@codesourcery.com>
19255
19256         * config/nios2/predicates.md (pop_operation): New.
19257         (ldwm_operation, stwm_operation): New.
19258         (nios2_hard_register_operand): New.
19259         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19260         (ldstwm_operation_p): Declare.
19261         (gen_ldstwm_peep): Declare.
19262         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19263         (base_reg_adjustment_p): New.
19264         (pop_operation_p): New.
19265         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19266         (nios2_ldstwm_regset_p): New.
19267         (ldstwm_operation_p): New.
19268         (gen_ldst): New.
19269         (nios2_ldst_parallel): New.
19270         (struct ldswm_operand): Declare.
19271         (compare_ldstwm_operands): New.
19272         (can_use_cdx_ldstw): New.
19273         (gen_ldstwm_peep): New.
19274         * config/nios2/nios2-ldstwm.sml: New.
19275         * config/nios2/nios2.md: Include ldstwm.md.
19276         * config/nios2/ldstwm.md: Generated.
19277
19278 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19279             Cesar Philippidis  <cesar@codesourcery.com>
19280             Chung-Lin Tang  <cltang@codesourcery.com>
19281
19282         * config/nios2/nios2.h (LABEL_ALIGN): Define.
19283         (REG_ALLOC_ORDER): Define.
19284         (ADJUST_REG_ALLOC_ORDER): Define.
19285         (HONOR_REG_ALLOC_ORDER): Define.
19286         (CDX_REG_P): Define.
19287         (ANDCLEAR_INT): Define.
19288         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19289         (nios2_label_align): Declare.
19290         (nios2_cdx_narrow_form_p): Declare.
19291         (nios2_adjust_reg_alloc_order): Declare.
19292         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19293         operation.
19294         (nios2_large_unspec_reloc_p): New function, split from...
19295         (nios2_legitimate_pic_operand_p): ...here.
19296         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19297         (nios2_print_operand_punct_valid_p): New.
19298         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
19299         (split_mem_address): New.
19300         (split_alu_insn): New.
19301         (cdxreg): New.
19302         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19303         (enum nios2_add_insn_kind): New.
19304         (nios2_add_insn_names, nios2_add_insn_narrow): New.
19305         (nios2_add_insn_classify): New.
19306         (nios2_add_insn_asm): New.
19307         (nios2_cdx_narrow_form_p): New.
19308         (label_align, min_labelno, max_labelno): New.
19309         (nios2_reorg): New.
19310         (nios2_label_align): New.
19311         (nios2_adjust_reg_alloc_order): New.
19312         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19313         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19314         * config/nios2/constraints.md (P): New constraint.
19315         * config/nios2/predicates.md (const_and_operand): New.
19316         (and_operand): New.
19317         (stack_memory_operand): New.
19318         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19319         (length): Update to use nios2_cdx_narrow_form_p().
19320         (type): Add new insn type values.
19321         (control, alu, st, ld, shift): Update insn reservations with
19322         new insn type values.
19323         (*high, *lo_sum): Define new insn patterns for constant generation.
19324         (movqi_internal, movhi_internal, movsi_internal): Reduce
19325         alternatives, update asm template to handle CDX variants, update
19326         type attributes.
19327         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19328         template, update type attributes.
19329         (extendhisi2, extendqi<mode>2): Likewise.
19330         (addsi3): Change to use function for asm string.
19331         (subsi3): Add CDX notation to asm template, update type attributes.
19332         (negsi3, one_cmplsi3): Likewise.
19333         (andsi3): New pattern, specialized from logical patterns.
19334         (<code>si3): Remove and case, combine alternatives, update asm
19335         template.
19336         (<shift_op>si3): Add CDX notation, update type attributes.
19337         (rotrsi3): Update type attribute.
19338         (*merge, extzv, insv): New insn patterns.
19339         (return): Change to define_expand.
19340         (simple_return): Add CDX notation, update type attributes.
19341         (indirect_jump): Add CDX notation.
19342         (jump): Update asm cases, update length attribute expression.
19343         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19344         (nios2_cbranch): Update asm cases and length attribute expression
19345         to handle CDX variants.
19346         (nios2_cmp<code>): Update asm template.
19347         (nop): Add CDX notation, update type attributes.
19348         (trap): Add CDX notation.
19349         (ctrapsi4): Update asm cases and length attribute expression to
19350         handle CDX variant.
19351         * doc/md.texi (Machine Constraints): Document P constraint.
19352
19353 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19354             Cesar Philippidis  <cesar@codesourcery.com>
19355             Chung-Lin Tang  <cltang@codesourcery.com>
19356
19357         * config/nios2/nios2.h (SMALL_INT12): New macro.
19358         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19359         (nios2_valid_addr_expr_p): Use it.
19360         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19361         with implicit "io" instructions on R2.
19362         * config/nios2/constraints.md (w): New constraint.
19363         * config/nios2/predicates.md (ldstio_memory_operand): New.
19364         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19365         operand predicate and constraint.
19366         (ld<bh>io_signed, st<bhw>io>): Likewise.
19367         * doc/md.texi (Machine Constraints): Document w constraint.
19368
19369 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19370             Cesar Philippidis  <cesar@codesourcery.com>
19371             Chung-Lin Tang  <cltang@codesourcery.com>
19372
19373         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19374         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19375         Nios II architecture level.
19376         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19377         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19378         (OPTION_DEFAULT_SPECS): Define.
19379         (ASM_SPEC): Add -march= spec strings.
19380         * config/nios2/nios2.c (nios2_option_override): Check for
19381         conflicts involving new options.
19382         * config.gcc (nios2*-*-*): Support --with-arch=.
19383         * doc/invoke.texi (Option Summary, Nios II Options): Document
19384         -march=, -mbmx, and -mcdx.
19385
19386 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
19387
19388         PR rtl-optimization/66626
19389         * lra-constraints.c (lra_constraints): Prevent equivalence
19390         substitution for static chain pseudo in functions with nonlocal
19391         goto.
19392
19393 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19394
19395         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19396         (nios2_emit_stack_limit_check): Add size parameter.  Handle
19397         -fstack-limit-symbol as well as -fstack-limit-register.
19398         (nios2_expand_prologue): Emit only a single stack limit check,
19399         even if multiple stack adjustments are required.
19400         (nios2_option_override): Diagnose unsupported combination of -fpic
19401         and -stack-limit-symbol.
19402
19403 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
19404
19405         * Makefile.in (top_srcdir): New.
19406         * configure.ac: Use AM_ZLIB.
19407         * configure: Regeneated.
19408
19409 2015-07-14  Matthias Klose  <doko@ubuntu.com>
19410
19411         PR target/66840
19412         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19413
19414 2015-07-14  Richard Biener  <rguenther@suse.de>
19415
19416         PR tree-optimization/66863
19417         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19418         what we record for conversion use stmt lhs inequalities.
19419
19420 2015-07-14  Richard Biener  <rguenther@suse.de>
19421
19422         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19423         (decision_tree::gen_gimple): Likewise.
19424
19425 2015-07-14  Tom de Vries  <tom@codesourcery.com>
19426
19427         * gcc.c (greater_than_spec_func): Declare forward.
19428         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19429         -ftree-parallelize-loops={0,1}.
19430         (static_spec_functions): Add greater_than_spec_func function with name
19431         "gt".
19432         (greater_than_spec_func): New function.
19433
19434 2015-07-14  Richard Biener  <rguenther@suse.de>
19435
19436         * tree-ssa-dom.c (record_temporary_equivalences): Merge
19437         wideing type conversion case from record_equivalences_from_incoming_edge
19438         and use record_equality to record equivalences.
19439         (record_equivalences_from_incoming_edge): Call
19440         record_temporary_equivalences.
19441
19442 2015-07-14  Richard Biener  <rguenther@suse.de>
19443
19444         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19445         (struct if_expr): New.
19446         (struct with_expr): Likewise.
19447         (is_a_helper): Add helpers for if_expr and with_expr.
19448         (struct simplify): Add simplify_kind enum and member.  Remove
19449         ifexpr_vec member.
19450         (simplify::simplify): Adjust.
19451         (lower_commutative): Adjust.
19452         (lower_opt_convert): Likewise.
19453         (lower_cond): Likewise.
19454         (replace_id): Handle with_expr and if_expr.
19455         (lower_for): Adjust.
19456         (dt_simplify::gen_1): New recursive worker, split out from ...
19457         (dt_simplify::gen): ... here.  Deal with if and with expansion
19458         recursively.
19459         (capture_info::capture_info): Take context argument
19460         (capture_info::walk_result): Only analyze specific result.
19461         (parser::parse_result): New function.
19462         (parser::parse_simplify): Adjust to parse ifs with then end
19463         else case.
19464         (parser::parse_if): Simplify.
19465         (parser::parse_pattern): Pass down simplify kind.
19466         * match.pd: Convert if structure to new syntax.
19467
19468 2015-07-13  Marek Polacek  <polacek@redhat.com>
19469
19470         * rtl.c (rtx_equal_p_cb): Fix typo.
19471
19472 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
19473
19474         * omega.h: Don't include config.h, don't include params.h again if
19475         omega.h has already been included.
19476         * graphite-poly.h: Include sese.h.
19477         * graphite.c: Don't include sese.h, remove needless includes and
19478         minimize includes outside #ifdef HAVE_isl block.
19479         * graphite-blocking.c: Don't include sese.h, remove needless includes,
19480         and wrap entire file in #ifdef HAVE_isl
19481         * graphite-dependences.c: Likewise.
19482         * graphite-interchange.c: Likewise.
19483         * graphite-isl-ast-to-gimple.c: Likewise.
19484         * graphite-optimize-isl.c: Likewise.
19485         * graphite-poly.c: Likewise.
19486         * graphite-scop-detection.c: Likewise.
19487         * graphite-sese-to-poly.c: Likewise.
19488
19489 2015-07-13  Tom de Vries  <tom@codesourcery.com>
19490
19491         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19492
19493 2015-07-13  Renlin Li  <renlin.li@arm.com>
19494
19495         PR rtl/66556
19496         * simplify-rtx.c (simplify_const_relational_operation): Add
19497         side_effects_p checks.
19498
19499 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
19500
19501         * bitmap.h: Fix double word typos.
19502         * builtins.c: Same.
19503         * calls.c: Same.
19504         * cfgloopmanip.c: Same.
19505         * cgraph.c: Same.
19506         * cgraph.h: Same.
19507         * cgraphclones.c: Same.
19508         * combine.c: Same.
19509         * config/aarch64/aarch64-protos.h: Same.
19510         * config/aarch64/aarch64.c: Same.
19511         * config/aarch64/aarch64.md: Same.
19512         * config/arm/arm.md: Same.
19513         * config/arm/arm1020e.md: Same.
19514         * config/arm/arm1026ejs.md: Same.
19515         * config/arm/arm926ejs.md: Same.
19516         * config/arm/fa526.md: Same.
19517         * config/arm/fa606te.md: Same.
19518         * config/arm/fa626te.md: Same.
19519         * config/arm/fa726te.md: Same.
19520         * config/arm/fmp626.md: Same.
19521         * config/darwin.c: Same.
19522         * config/epiphany/epiphany.c: Same.
19523         * config/frv/frv.c: Same.
19524         * config/ft32/ft32.c: Same.
19525         * config/gnu-user.h: Same.
19526         * config/h8300/constraints.md: Same.
19527         * config/i386/i386.c: Same.
19528         * config/i386/i386.md: Same.
19529         * config/iq2000/iq2000.md: Same.
19530         * config/mips/mips.c: Same.
19531         * config/mmix/mmix.md: Same.
19532         * config/moxie/moxie.c: Same.
19533         * config/nds32/nds32.md: Same.
19534         * config/pa/pa.h: Same.
19535         * config/rs6000/aix.h: Same.
19536         * config/rs6000/rs6000.h: Same.
19537         * config/sh/sh.c: Same.
19538         * config/tilegx/tilegx.md: Same.
19539         * config/tilepro/gen-mul-tables.cc: Same.
19540         * cse.c: Same.
19541         * dbxout.c: Same.
19542         * doc/invoke.texi: Same.
19543         * dse.c: Same.
19544         * dwarf2out.c: Same.
19545         * final.c: Same.
19546         * gcc.c: Same.
19547         * genmatch.c: Same.
19548         * gimplify.c: Same.
19549         * hash-table.h: Same.
19550         * internal-fn.c: Same.
19551         * ipa-cp.c: Same.
19552         * ipa-devirt.c: Same.
19553         * ipa-icf.c: Same.
19554         * ipa-icf.h: Same.
19555         * ipa-profile.c: Same.
19556         * ipa-prop.c: Same.
19557         * ipa-prop.h: Same.
19558         * ira.c: Same.
19559         * omp-low.c: Same.
19560         * reg-stack.c: Same.
19561         * regcprop.c: Same.
19562         * reorg.c: Same.
19563         * rtl.h: Same.
19564         * sbitmap.h: Same.
19565         * tree-eh.c: Same.
19566         * tree-inline.c: Same.
19567         * tree-sra.c: Same.
19568         * tree-ssa-dom.c: Same.
19569         * tree-ssa-loop-ivopts.c: Same.
19570         * tree-ssa-structalias.c: Same.
19571         * tree-ssa-tail-merge.c: Same.
19572         * tree-ssa-ter.c: Same.
19573         * tree-ssa-threadupdate.c: Same.
19574         * tree-ssa-uninit.c: Same.
19575         * tree-ssanames.c: Same.
19576         * tree-vect-loop-manip.c: Same.
19577         * tree-vrp.c: Same.
19578         * tree.c: Same.
19579         * valtrack.c: Same.
19580         * vec.h: Same.
19581
19582 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19583
19584         PR middle-end/66726
19585         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19586         tree_ssa_phiopt_worker): Call it.
19587
19588 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19589
19590         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19591         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19592         REG_EQUAL note.
19593
19594 2015-07-11  Marek Polacek  <polacek@redhat.com>
19595
19596         PR middle-end/66353
19597         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19598         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19599         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19600         rather than bb_has_abnormal_call_pred.
19601         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19602         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19603         rather than bb_has_abnormal_call_pred.
19604
19605 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
19606
19607         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19608         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19609         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19610         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19611         v850_legitimate_address_p): New functions.
19612         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19613
19614 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
19615
19616         PR target/66819
19617         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19618         indirect sibcall with register arguments if register available
19619         for argument passing.
19620         (init_cumulative_args): Set cfun->machine->arg_reg_available
19621         to (cum->nregs > 0) or to true if function has a variable
19622         argument list.
19623         (function_arg_advance_32): Set cfun->machine->arg_reg_available
19624         to false if cum->nregs <= 0.
19625         * config/i386/i386.h (machine_function): Add arg_reg_available.
19626
19627 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19628
19629         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19630         and gen_higpart instead of gen_rtx_SUBREG.
19631         * config/i386/i386.md
19632         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19633         (read-modify peephole2): Use gen_lowpart instead of
19634         gen_rtx_SUBREG for operand 5.
19635
19636 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19637
19638         * config/tilepro/gen-mul-tables.cc (main): Change include list for
19639         generated files.
19640         * config/tilepro/mul-tables.c: Regenerate.
19641         * config/tilegx/mul-tables.c: Regenerate.
19642
19643 2015-07-10  Richard Biener  <rguenther@suse.de>
19644
19645         * fold-const.c (distribute_bit_expr): Remove.
19646         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19647         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19648         to A & (B | C) and simplifying A << C1 << C2 to ...
19649         * match.pd: ... patterns here.
19650
19651 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
19652
19653         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19654         Mark mem as READONLY and NOTRAP for PIC symbol.
19655
19656 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19657
19658         * gimple-predict.h: New file.
19659         (gimple_predict_predictor, gimple_predict_set_predictor,
19660         gimple_predict_outcome, gimple_predict_set_outcome,
19661         gimple_build_predict): Relocate here.
19662         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19663         gimple_predict_outcome, gimple_predict_set_outcome): Move to
19664         gimple-predict.h.
19665         * gimple.c (gimple_build_predict): Move to gimple-predict.h
19666         * basic-block.h: Don't include cfghooks.h.
19667         * backend.h: Don't include predict.h.
19668         * cfghooks.h: Include predict.h.
19669         * gimple-pretty-print.c: Include gimple-predict.h.
19670         * gimplify.c: Likwise.
19671         * predict.c: Adjust includes.
19672         * tree-inline.c: Likewise.
19673         * asan.c: Likewise.
19674         * auto-inc-dec.c: Likewise.
19675         * auto-profile.c: Likewise.
19676         * bb-reorder.c: Likewise.
19677         * builtins.c: Likewise.
19678         * caller-save.c: Likewise.
19679         * calls.c: Likewise.
19680         * cfganal.c: Likewise.
19681         * cfgbuild.c: Likewise.
19682         * cfg.c: Likewise.
19683         * cfgcleanup.c: Likewise.
19684         * cfgexpand.c: Likewise.
19685         * cfghooks.c: Likewise.
19686         * cfgloopanal.c: Likewise.
19687         * cfgloop.c: Likewise.
19688         * cfgloopmanip.c: Likewise.
19689         * cfgrtl.c: Likewise.
19690         * cgraph.c: Likewise.
19691         * cgraphunit.c: Likewise.
19692         * combine.c: Likewise.
19693         * cprop.c: Likewise.
19694         * cse.c: Likewise.
19695         * dce.c: Likewise.
19696         * dojump.c: Likewise.
19697         * dse.c: Likewise.
19698         * except.c: Likewise.
19699         * expmed.c: Likewise.
19700         * expr.c: Likewise.
19701         * final.c: Likewise.
19702         * fold-const.c: Likewise.
19703         * function.c: Likewise.
19704         * fwprop.c: Likewise.
19705         * gcc-plugin.h: Likewise.
19706         * gcse.c: Likewise.
19707         * genattrtab.c: Likewise.
19708         * genemit.c: Likewise.
19709         * gengtype.c: Likewise.
19710         * genopinit.c: Likewise.
19711         * genoutput.c: Likewise.
19712         * genpreds.c: Likewise.
19713         * genrecog.c: Likewise.
19714         * gimple-fold.c: Likewise.
19715         * gimple-iterator.c: Likewise.
19716         * gimple-ssa-isolate-paths.c: Likewise.
19717         * gimple-ssa-strength-reduction.c: Likewise.
19718         * graph.c: Likewise.
19719         * graphite-blocking.c: Likewise.
19720         * graphite.c: Likewise.
19721         * graphite-dependences.c: Likewise.
19722         * graphite-interchange.c: Likewise.
19723         * graphite-isl-ast-to-gimple.c: Likewise.
19724         * graphite-optimize-isl.c: Likewise.
19725         * graphite-poly.c: Likewise.
19726         * graphite-scop-detection.c: Likewise.
19727         * graphite-sese-to-poly.c: Likewise.
19728         * haifa-sched.c: Likewise.
19729         * ifcvt.c: Likewise.
19730         * internal-fn.c: Likewise.
19731         * ipa-cp.c: Likewise.
19732         * ipa-profile.c: Likewise.
19733         * ipa-split.c: Likewise.
19734         * ipa-utils.c: Likewise.
19735         * ira-build.c: Likewise.
19736         * ira-color.c: Likewise.
19737         * ira-conflicts.c: Likewise.
19738         * ira-costs.c: Likewise.
19739         * ira-emit.c: Likewise.
19740         * ira-lives.c: Likewise.
19741         * jump.c: Likewise.
19742         * loop-doloop.c: Likewise.
19743         * loop-init.c: Likewise.
19744         * loop-invariant.c: Likewise.
19745         * loop-unroll.c: Likewise.
19746         * lower-subreg.c: Likewise.
19747         * lra-assigns.c: Likewise.
19748         * lra.c: Likewise.
19749         * lra-coalesce.c: Likewise.
19750         * lra-constraints.c: Likewise.
19751         * lra-lives.c: Likewise.
19752         * lto-cgraph.c: Likewise.
19753         * lto-streamer-in.c: Likewise.
19754         * mode-switching.c: Likewise.
19755         * modulo-sched.c: Likewise.
19756         * omp-low.c: Likewise.
19757         * optabs.c: Likewise.
19758         * passes.c: Likewise.
19759         * postreload.c: Likewise.
19760         * postreload-gcse.c: Likewise.
19761         * profile.c: Likewise.
19762         * recog.c: Likewise.
19763         * regstat.c: Likewise.
19764         * reload1.c: Likewise.
19765         * reorg.c: Likewise.
19766         * rtlanal.c: Likewise.
19767         * sched-ebb.c: Likewise.
19768         * sel-sched-ir.c: Likewise.
19769         * sese.c: Likewise.
19770         * shrink-wrap.c: Likewise.
19771         * simplify-rtx.c: Likewise.
19772         * stmt.c: Likewise.
19773         * store-motion.c: Likewise.
19774         * tracer.c: Likewise.
19775         * trans-mem.c: Likewise.
19776         * tree-call-cdce.c: Likewise.
19777         * tree-cfg.c: Likewise.
19778         * tree-cfgcleanup.c: Likewise.
19779         * tree-chkp.c: Likewise.
19780         * tree-complex.c: Likewise.
19781         * tree-eh.c: Likewise.
19782         * tree-if-conv.c: Likewise.
19783         * tree-loop-distribution.c: Likewise.
19784         * tree-outof-ssa.c: Likewise.
19785         * tree-parloops.c: Likewise.
19786         * tree-predcom.c: Likewise.
19787         * tree-pretty-print.c: Likewise.
19788         * tree-profile.c: Likewise.
19789         * tree-sra.c: Likewise.
19790         * tree-ssa.c: Likewise.
19791         * tree-ssa-coalesce.c: Likewise.
19792         * tree-ssa-dce.c: Likewise.
19793         * tree-ssa-dom.c: Likewise.
19794         * tree-ssa-forwprop.c: Likewise.
19795         * tree-ssa-ifcombine.c: Likewise.
19796         * tree-ssa-loop-ch.c: Likewise.
19797         * tree-ssa-loop-im.c: Likewise.
19798         * tree-ssa-loop-ivcanon.c: Likewise.
19799         * tree-ssa-loop-ivopts.c: Likewise.
19800         * tree-ssa-loop-manip.c: Likewise.
19801         * tree-ssa-loop-prefetch.c: Likewise.
19802         * tree-ssa-loop-unswitch.c: Likewise.
19803         * tree-ssa-math-opts.c: Likewise.
19804         * tree-ssa-phiopt.c: Likewise.
19805         * tree-ssa-pre.c: Likewise.
19806         * tree-ssa-reassoc.c: Likewise.
19807         * tree-ssa-sink.c: Likewise.
19808         * tree-ssa-tail-merge.c: Likewise.
19809         * tree-ssa-threadedge.c: Likewise.
19810         * tree-ssa-threadupdate.c: Likewise.
19811         * tree-switch-conversion.c: Likewise.
19812         * tree-tailcall.c: Likewise.
19813         * tree-vect-data-refs.c: Likewise.
19814         * tree-vect-loop.c: Likewise.
19815         * tree-vect-loop-manip.c: Likewise.
19816         * tree-vectorizer.c: Likewise.
19817         * tree-vrp.c: Likewise.
19818         * ubsan.c: Likewise.
19819         * value-prof.c: Likewise.
19820         * varasm.c: Likewise.
19821         * var-tracking.c: Likewise.
19822         * config/aarch64/aarch64-builtins.c: Likewise.
19823         * config/aarch64/aarch64.c: Likewise.
19824         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19825         * config/alpha/alpha.c: Likewise.
19826         * config/arc/arc.c: Likewise.
19827         * config/arm/arm.c: Likewise.
19828         * config/avr/avr.c: Likewise.
19829         * config/bfin/bfin.c: Likewise.
19830         * config/c6x/c6x.c: Likewise.
19831         * config/cr16/cr16.c: Likewise.
19832         * config/cris/cris.c: Likewise.
19833         * config/darwin.c: Likewise.
19834         * config/darwin-c.c: Likewise.
19835         * config/epiphany/epiphany.c: Likewise.
19836         * config/epiphany/mode-switch-use.c: Likewise.
19837         * config/epiphany/resolve-sw-modes.c: Likewise.
19838         * config/fr30/fr30.c: Likewise.
19839         * config/frv/frv.c: Likewise.
19840         * config/ft32/ft32.c: Likewise.
19841         * config/h8300/h8300.c: Likewise.
19842         * config/i386/i386.c: Likewise.
19843         * config/i386/winnt.c: Likewise.
19844         * config/ia64/ia64.c: Likewise.
19845         * config/iq2000/iq2000.c: Likewise.
19846         * config/lm32/lm32.c: Likewise.
19847         * config/m32c/m32c.c: Likewise.
19848         * config/m32r/m32r.c: Likewise.
19849         * config/m68k/m68k.c: Likewise.
19850         * config/mcore/mcore.c: Likewise.
19851         * config/mep/mep.c: Likewise.
19852         * config/microblaze/microblaze.c: Likewise.
19853         * config/mips/mips.c: Likewise.
19854         * config/mmix/mmix.c: Likewise.
19855         * config/mn10300/mn10300.c: Likewise.
19856         * config/moxie/moxie.c: Likewise.
19857         * config/msp430/msp430.c: Likewise.
19858         * config/nds32/nds32.c: Likewise.
19859         * config/nds32/nds32-cost.c: Likewise.
19860         * config/nds32/nds32-fp-as-gp.c: Likewise.
19861         * config/nds32/nds32-intrinsic.c: Likewise.
19862         * config/nds32/nds32-isr.c: Likewise.
19863         * config/nds32/nds32-md-auxiliary.c: Likewise.
19864         * config/nds32/nds32-memory-manipulation.c: Likewise.
19865         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19866         * config/nds32/nds32-predicates.c: Likewise.
19867         * config/nios2/nios2.c: Likewise.
19868         * config/nvptx/nvptx.c: Likewise.
19869         * config/pa/pa.c: Likewise.
19870         * config/pdp11/pdp11.c: Likewise.
19871         * config/rl78/rl78.c: Likewise.
19872         * config/rs6000/rs6000.c: Likewise.
19873         * config/rx/rx.c: Likewise.
19874         * config/s390/s390.c: Likewise.
19875         * config/sh/sh.c: Likewise.
19876         * config/sh/sh-mem.cc: Likewise.
19877         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19878         * config/sh/sh_treg_combine.cc: Likewise.
19879         * config/sparc/sparc.c: Likewise.
19880         * config/spu/spu.c: Likewise.
19881         * config/stormy16/stormy16.c: Likewise.
19882         * config/tilegx/tilegx.c: Likewise.
19883         * config/tilepro/tilepro.c: Likewise.
19884         * config/v850/v850.c: Likewise.
19885         * config/vax/vax.c: Likewise.
19886         * config/visium/visium.c: Likewise.
19887         * config/xtensa/xtensa.c: Likewise.
19888
19889 2015-07-10  Richard Biener  <rguenther@suse.de>
19890
19891         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19892         (decision_tree::gen_gimple): Likewise.
19893         (decision_tree::gen_generic): Likewise.
19894
19895 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19896
19897         PR target/66813
19898         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19899         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19900
19901 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
19902
19903         PR middle-end/66820
19904         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19905         or ORT_TASK contexts.
19906         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19907         is non-zero.
19908
19909 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19910
19911         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19912         above function.
19913
19914 2015-07-10  Tom de Vries  <tom@codesourcery.com>
19915
19916         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19917         insert nit + 1 bound.
19918
19919 2015-07-10  Richard Biener  <rguenther@suse.de>
19920
19921         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19922         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19923         (if_convertible_loop_p_1): For this always compute bb predicates.
19924         (if_convertible_loop_p): And free them.
19925
19926 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19927
19928         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19929         in dump message.
19930
19931 2015-07-10  Richard Biener  <rguenther@suse.de>
19932
19933         PR tree-optimization/66823
19934         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19935         inverted predicate.
19936
19937 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
19938
19939         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19940         to handle mips[32|64]r3 and mips[32|64]r5.
19941
19942 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
19943
19944         PR middle-end/66633
19945         * tree-nested.c (get_static_chain): Or in a flag into
19946         info->static_chain_added.
19947         (get_frame_field, get_nonlocal_debug_decl): Likewise.
19948         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19949         2015-07-01 changes.
19950         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19951         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19952         add it to clauses.
19953
19954         PR tree-optimization/66718
19955         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19956         field.
19957         (vect_simd_lane_linear): New function.
19958         (vectorizable_simd_clone_call): Support using linear arguments for
19959         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19960
19961 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19962
19963         PR target/66821
19964         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19965
19966 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
19967
19968         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19969         Use machine mode, not enum machine_mode in the prototype.
19970
19971         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19972         classify 128-bit floating point support.
19973         (FLOAT128_IBM_P): Likewise.
19974         (FLOAT128_VECTOR_P): Likewise.
19975         (FLOAT128_2REG_P): Likewise.
19976         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19977         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19978         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19979         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19980
19981         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19982         tests against TFmode/TDmode, since those modes do not use VSX
19983         addresses.
19984         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19985         support.
19986         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19987         tests against TFmode, etc.
19988         (invalid_e500_subreg): Add tests against IFmode/KFmode.
19989         (reg_offset_addressing_ok_p): Likewise.
19990         (rs6000_legitimate_offset_address_p): Likewise.
19991         (rs6000_legitimize_address): Likewise.
19992         (rs6000_legitimize_reload_address): Likewise.
19993         (rs6000_legitimate_address_p): Clean up tests against TFmode and
19994         TDmode to use the new helper macros, which will include IFmode and
19995         KFmode.
19996         (rs6000_emit_move): Likewise.
19997         (rs6000_darwin64_record_arg_recurse): Likewise.
19998         (print_operand): Likewise.
19999         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20000         that uses a single vector register as a vector and not as a
20001         floating point register in terms of the calling sequence.
20002         (rs6000_discover_homogeneous_aggregate): Likewise.
20003         (rs6000_return_in_memory): Likewise.
20004         (init_cumulative_args): Likewise.
20005         (rs6000_function_arg_boundary): Likewise.
20006         (rs6000_function_arg_advance_1): Likewise.
20007         (rs6000_function_arg): Likewise.
20008         (rs6000_pass_by_reference): Likewise.
20009         (rs6000_gimplify_va_arg): Likewise.
20010         (rs6000_secondary_reload_memory): Use machine_mode not enum
20011         machine mode.
20012         (rs6000_split_multireg_move): Use new helper macros.
20013         (spe_func_has_64bit_regs_p): Likewise.
20014         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20015         (output_toc): Use new helper macros.
20016         (rs6000_register_move_cost): Likewise.
20017         (rs6000_function_value): Add IEEE 128-bit floating point calling
20018         sequence support.
20019         (rs6000_libcall_value): Likewise.
20020         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20021         floating point support.
20022         (rs6000_vector_mode_supported_p): Likewise.
20023
20024 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
20025
20026         PR rtl-optimization/66782
20027         * lra-int.h (struct lra_insn_recog_data): Add comment about
20028         clobbered hard regs for arg_hard_regs.
20029         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20030         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20031         Add condition for processing used hard regs.
20032         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20033         Process clobbered hard regs.
20034
20035 2015-07-09  Michael Matz  <matz@suse.de>
20036
20037         * genmatch.c (fprintf_indent): New function.
20038         (operand::gen_transform): Add indent parameter.
20039         (expr::gen_transform, c_expr::gen_transform,
20040         capture::gen_transform): Ditto and use fprintf_indent.
20041         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20042         (dt_operand::gen, dt_operand::gen_predicate,
20043         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20044         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20045         (decision_tree::gen_gimple): Adjust calls and indent generated
20046         code.
20047         (decision_tree::gen_generic): Ditto.
20048         (write_predicate): Ditto.
20049
20050 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20051
20052         PR target/66814
20053         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20054         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20055         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20056         {GENERAL,SSE,MMX}_REG_P where appropriate.
20057
20058 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20059
20060         * lto-streamer.h: Don't include target.h and alloc-pool.h.
20061         * builtins.c: Adjust includes.
20062         * gimple.c: Likewise.
20063         * ipa-icf.c: Likewise.
20064         * lto-opts.c: Likewise.
20065         * ipa-reference.c: Likewise.
20066         * lto-section-out.c: Likewise.
20067         * lto-streamer-in.c: Likewise.
20068         * lto-streamer-out.c: Likewise.
20069         * opts-global.c: Likewise.
20070         * symtab.c: Likewise.
20071         * tree-chkp.c: Likewise.
20072         * tree-ssa-live.c: Likewise.
20073         * tree-streamer-in.c: Likewise.
20074         * tree-streamer-out.c: Likewise.
20075         * config/darwin.c: Likewise.
20076         * config/i386/winnt.c: Likewise.
20077
20078 2015-07-09  Richard Biener  <rguenther@suse.de>
20079
20080         * genmatch.c (struct expr): Add force_single_use flag.
20081         (expr::expr): Add copy constructor.
20082         (capture_info::walk_match): Gather force_single_use captures.
20083         (expr::gen_transform): Use possibly NULLified sequence.
20084         (dt_simplify::gen): Apply single-use restrictions by NULLifying
20085         seq if any constrained expr is not single-use.
20086         (parser::parse_expr): Refactor to allow multiple flags.  Handle
20087         's' flag to force an expression have a single-use if the pattern
20088         simplifies to more than one statement.
20089         * match.pd: Convert most single_use conditionals to :s flags.
20090
20091 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20092
20093         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20094         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20095         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20096
20097 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20098
20099         * flags.h: Don't include flag-types.h or options.h.
20100         * opts-common.c: Adjust includes.
20101         * opts-global.c: Likewise.
20102         * common/config/epiphany/epiphany-common.c: Likewise.
20103
20104 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20105
20106         PR target/66818
20107         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20108         for IA MCU.
20109
20110 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20111
20112         PR target/66817
20113         * config/i386/i386.c (ix86_return_in_memory): Return true
20114         if int_size_in_bytes returns negative for IA MCU.
20115
20116 2015-07-09  Marek Polacek  <polacek@redhat.com>
20117
20118         PR tree-optimization/66718
20119         * Makefile.in (OBJS): Add gimple-laddress.o.
20120         * passes.def: Schedule pass_laddress.
20121         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20122         * tree-pass.h (make_pass_laddress): Declare.
20123         * gimple-laddress.c: New file.
20124
20125 2015-07-09  Richard Biener  <rguenther@suse.de>
20126
20127         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20128
20129 2015-07-09  Richard Biener  <rguenther@suse.de>
20130
20131         PR tree-optimization/66807
20132         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20133
20134 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
20135
20136         * function.c (stack_protect_epilogue): Use if rather than switch for
20137         check targetm.have_stack_protect_test.
20138
20139 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20140
20141         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20142         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20143         * config/arc/arc.h: Likewise.
20144         * config/arm/arm.h: Likewise.
20145         * config/bfin/bfin.h: Likewise.
20146         * config/epiphany/epiphany.h: Likewise.
20147         * config/frv/frv.h: Likewise.
20148         * config/ia64/ia64.h: Likewise.
20149         * config/iq2000/iq2000.h: Likewise.
20150         * config/lm32/lm32.h: Likewise.
20151         * config/m32r/m32r.h: Likewise.
20152         * config/mcore/mcore.h: Likewise.
20153         * config/mep/mep.h: Likewise.
20154         * config/microblaze/microblaze.h: Likewise.
20155         * config/mips/mips.h: Likewise.
20156         * config/mmix/mmix.h: Likewise.
20157         * config/mn10300/mn10300.h: Likewise.
20158         * config/nds32/nds32.h: Likewise.
20159         * config/nios2/nios2.h: Likewise.
20160         * config/pa/pa.h: Likewise.
20161         * config/rl78/rl78.h: Likewise.
20162         * config/sh/sh.h: Likewise.
20163         * config/sparc/sparc.h: Likewise.
20164         * config/stormy16/stormy16.h: Likewise.
20165         * config/tilegx/tilegx.h: Likewise.
20166         * config/tilepro/tilepro.h: Likewise.
20167         * config/v850/v850.h: Likewise.
20168         * config/xtensa/xtensa.h: Likewise.
20169         * doc/tm.texi: Regenerate.
20170         * doc/tm.texi.in: Adjust.
20171         * combine.c (simplify_set): Likewise.
20172         (simplify_comparison): Likewise.
20173         * expr.c (store_constructor): Likewise.
20174         * internal-fn.c (expand_arith_overflow): Likewise.
20175         * reload.c (push_reload): Likewise.
20176         (find_reloads): Likewise.
20177         (find_reloads_subreg_address): Likewise.
20178         * reload1.c (eliminate_regs_1): Likewise.
20179         * rtlanal.c (nonzero_bits1): Likewise.
20180         (num_sign_bit_copies1): Likewise.
20181         * simplify-rtx.c (simplify_truncation): Likewise.
20182
20183 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20184
20185         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20186         of AUTO_INC_DEC with the preprocessor.
20187         * combine.c (combine_instructions): Likewise.
20188         (can_combine_p): Likewise.
20189         (try_combine): Likewise.
20190         * emit-rtl.c (try_split): Likewise.
20191         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20192         * lower-subreg.c (resolve_simple_move): Likewise.
20193         * lra.c (update_inc_notes): Likewise.
20194         * recog.c (asm_operand_ok): Likewise.
20195         (constrain_operands): Likewise.
20196         * regrename.c (scan_rtx_address): Likewise.
20197         * reload.c (update_auto_inc_notes): Likewise.
20198         (reg_inc_found_and_valid_p): Likewise.
20199         * reload1.c (reload): Likewise.
20200         (emit_input_reload_insns): Likewise.
20201         (delete_output_reload): Likewise.
20202         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20203         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20204
20205 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20206
20207         * rtl.h: Always define AUTO_INC_DEC.
20208         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20209         * combine.c (combine_instructions): Likewise.
20210         (can_combine_p): Likewise.
20211         (try_combine): Likewise.
20212         * emit-rtl.c (try_split): Likewise.
20213         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20214         * lower-subreg.c (resolve_simple_move): Likewise.
20215         * lra.c (update_inc_notes): Likewise.
20216         * recog.c (asm_operand_ok): Likewise.
20217         (constrain_operands): Likewise.
20218         * regrename.c (scan_rtx_address): Likewise.
20219         * reload.c (update_auto_inc_notes): Likewise.
20220         (find_equiv_reg): Likewise.
20221         * reload1.c (reload): Likewise.
20222         (reload_as_needed): Likewise.
20223         (choose_reload_regs): Likewise.
20224         (emit_input_reload_insns): Likewise.
20225         (delete_output_reload): Likewise.
20226         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20227         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20228
20229 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20230
20231         * combine.c (can_combine_def_p): Don't check the value of
20232         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20233         (combinable_i3pat): Likewise.
20234         (mark_used_regs_combine): Likewise.
20235         * regrename.c (rename_chains): Likewise.
20236         * reload.c (find_reloads_address): Likewise.
20237         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20238
20239 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20240
20241         * combine.c (update_rsp_from_reg_equal): Don't check if
20242         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20243         (reg_nonzero_bits_for_combine): Likewise.
20244         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20245         1.
20246         * config/frv/frv.h: Likewise.
20247         * config/lm32/lm32.h: Likewise.
20248         * config/mep/mep.h: Likewise.
20249         * config/mips/mips.h: Likewise.
20250         * config/rs6000/rs6000.h: Likewise.
20251         * config/sh/sh.h: Likewise.
20252         * config/tilegx/tilegx.h (enum reg_class): Likewise.
20253         * config/tilepro/tilepro.h: Likewise.
20254         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20255         * doc/tm.texi: Regenerate.
20256         * doc/tm.texi.in: Adjust.
20257         * rtlanal.c (nonzero_bits1): Likewise.
20258
20259 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20260
20261         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20262         with the preprocessor.
20263         (combine_instructions): Likewise.
20264         (try_combine): Likewise.
20265         (subst): Likewise.
20266         (distribute_notes): Likewise.
20267
20268 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20269
20270         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20271         defined.
20272         (simplify_set): Likewise.
20273         * cse.c (cse_insn): Likewise.
20274         * fold-const.c (fold_single_bit_test): Likewise.
20275         (fold_unary_loc): Likewise.
20276         * postreload.c (reload_cse_simplify_set): Likewise.
20277         (reload_cse_simplify_operands): Likewise.
20278
20279 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
20280
20281         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20282         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20283
20284 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20285
20286         PR target/66746
20287         * config/i386/x86intrin.h: Include <adxintrin.h> even if
20288         __iamcu__ is defined.
20289
20290 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20291
20292         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20293
20294 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
20295
20296         PR target/66523
20297         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20298         names from preservation.
20299
20300 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20301
20302         PR target/66806
20303         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20304         change for IAMCU.
20305         (function_arg_advance_32): Don't pass vectors in registers for
20306         IAMCU.
20307         (function_arg_32): Likewise.
20308         (ix86_return_in_memory): Don't return vectors in registers for
20309         IAMCU.
20310
20311 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
20312
20313         PR middle-end/66334
20314         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20315         hard regno live at the start of BB with incoming abnormal edges.
20316         * lra-lives.c (process_bb_lives): Ditto.
20317
20318 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
20319
20320         PR libgomp/65099
20321         * config/nvptx/mkoffload.c (main): Create an offload image only in
20322         64-bit configurations.
20323
20324 2015-07-08  Martin Liska  <mliska@suse.cz>
20325
20326         PR bootstrap/66744
20327         * tree-sra.c (create_access_1): Call ctor without brackets.
20328         (create_artificial_child_access): Likewise.
20329
20330 2015-07-08  Richard Biener  <rguenther@suse.de>
20331
20332         PR tree-optimization/66793
20333         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20334         Properly split the block after stmts ending it.
20335
20336 2015-07-08  Richard Biener  <rguenther@suse.de>
20337
20338         PR tree-optimization/66794
20339         * passes.c (execute_function_todo): Assert that post-dominators
20340         are not computed.
20341         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20342         Free post-dominators.
20343
20344 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20345
20346         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20347         with early exit.
20348
20349 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20350
20351         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20352         more than or equal 8 and less than 32 when optimizing for size.
20353
20354 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20355
20356         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20357         COSTS_N_INSNS (1) and increment it appropriately throughout the
20358         function.
20359
20360 2015-07-08  Richard Biener  <rguenther@suse.de>
20361
20362         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20363
20364 2015-07-08  Alan Modra  <amodra@gmail.com>
20365
20366         * target.def (rtx_costs): Remove "code" param, add "mode".
20367         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20368         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
20369         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20370         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
20371         call.  Track mode when given in rtx.
20372         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
20373         (default_address_cost): Pass Pmode to rtx_cost.
20374         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20375         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20376         with NULL set.
20377         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
20378         (notreg_cost): Add mode param.  Use it.
20379         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
20380         mode param and pass to set_src_cost.  Update all calls.
20381         (hash_scan_set): Formatting.
20382         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20383         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20384         * hooks.h: Ditto.
20385         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20386         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20387         emit_store_flag): Update set_src_cost and rtx_cost calls.
20388         * auto-inc-dec.c (attempt_change): Likewise.
20389         * calls.c (precompute_register_parameters): Likewise.
20390         * combine.c (expand_compound_operation, make_extraction,
20391         force_to_mode, distribute_and_simplify_rtx): Likewise.
20392         * dojump.c (prefer_and_bit_test): Likewise.
20393         * dse.c (find_shift_sequence): Likewise.
20394         * expr.c (compress_float_constant): Likewise.
20395         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20396         * ifcvt.c (noce_try_sign_mask): Likewise.
20397         * loop-doloop.c (doloop_optimize): Likewise.
20398         * loop-invariant.c (create_new_invariant): Likewise.
20399         * lower-subreg.c (shift_cost, compute_costs): Likewise.
20400         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20401         lshift_cheap_p): Likewise.
20402         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20403         try_replace_in_use, reload_cse_move2add): Likewise.
20404         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20405         Likewise.
20406         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20407         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20408         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20409         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20410         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20411         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
20412         to rtx_cost calls.
20413         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20414         * config/arc/arc.c (arc_rtx_costs): Likewise.
20415         * config/arm/arm.c (arm_rtx_costs): Likewise.
20416         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20417         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20418         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20419         * config/cris/cris.c (cris_rtx_costs): Likewise.
20420         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20421         * config/frv/frv.c (frv_rtx_costs): Likewise.
20422         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20423         * config/i386/i386.c (ix86_rtx_costs): Likewise.
20424         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20425         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20426         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20427         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20428         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20429         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20430         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20431         * config/mep/mep.c (mep_rtx_cost): Likewise.
20432         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20433         * config/mips/mips.c (mips_rtx_costs): Likewise.
20434         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20435         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20436         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20437         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20438         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20439         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20440         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20441         * config/pa/pa.c (hppa_rtx_costs): Likewise.
20442         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20443         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20444         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20445         * config/s390/s390.c (s390_rtx_costs): Likewise.
20446         * config/sh/sh.c (sh_rtx_costs): Likewise.
20447         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20448         * config/spu/spu.c (spu_rtx_costs): Likewise.
20449         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20450         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20451         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20452         * config/v850/v850.c (v850_rtx_costs): Likewise.
20453         * config/vax/vax.c (vax_rtx_costs): Likewise.
20454         * config/visium/visium.c (visium_rtx_costs): Likewise.
20455         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20456         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20457         "code" param, and pass as outer_code to first rtx_cost call.  Pass
20458         mode to rtx_cost calls.
20459         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20460         calls.
20461         (aarch64_rtx_costs_wrapper): Update.
20462         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20463         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20464         rtx_cost calls.
20465         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20466         and rtx_cost calls.
20467         (avr_operand_rtx_cost): Similarly.
20468         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20469         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20470         * config/mips/mips.c (mips_stack_address_p): Comment typo.
20471         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20472         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20473         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20474         rtx_cost.
20475         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20476         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20477         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20478         * doc/tm.texi: Regenerate.
20479
20480 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
20481
20482         * tree-core.h: Include symtab.h.
20483         * rtl.h: Include hard-reg-set.h but not flags.h.
20484         (HARD_CONST): Remove condition compilation involving HARD_CONST since
20485         hard-reg-set.h is always included.
20486         * regs.h: Don't include hard-reg-set.h or rtl.h.
20487         * cfg.h: Include dominance.h.
20488         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20489         * backend.h: New.  Aggregate commonly used backend header files.
20490         * gimple-ssa.h: Don't include tree-hasher.h.
20491         * ssa.h: New.  Aggregate commonly used SSA header files.
20492         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20493         * sel-sched-ir.h: Flatten includes.
20494         * lra-int.h: Flatten completely.
20495         * sel-sched-dump.h: Flatten includes.
20496         * ira-int.h: Flatten includes.
20497         * gimple-streamer.h: Remove all includes.
20498         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20499         * resource.h: Flatten hard-reg-set.h and df.h.
20500         * sched-int.h: Flatten insn-arrt.h and df.h.
20501         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20502         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20503         * genattrtab.c (write_header): Adjust generated includes.
20504         * genautomata.c (main): Likewise.
20505         * genconditions.c (write-header): Likewise.
20506         * genemit.c (main): Likewise.
20507         * gengtype.c (open_base_files): Likewise.
20508         * genopinit.c (main): Likewise.
20509         * genoutput.c (output_prologue): Likewise.
20510         * genpeep.c (main): Likewise.
20511         * genpreds.c (write_insn_preds_c): Likewise.
20512         * genrecog.c (write_header): Likewise.
20513         * alias.c: Adjust includes.
20514         * asan.c: Likewise.
20515         * attribs.c: Likewise.
20516         * auto-inc-dec.c: Likewise.
20517         * auto-profile.c: Likewise.
20518         * bb-reorder.c: Likewise.
20519         * bt-load.c: Likewise.
20520         * builtins.c: Likewise.
20521         * caller-save.c: Likewise.
20522         * calls.c: Likewise.
20523         * ccmp.c: Likewise.
20524         * cfg.c: Likewise.
20525         * cfganal.c: Likewise.
20526         * cfgbuild.c: Likewise.
20527         * cfgcleanup.c: Likewise.
20528         * cfgexpand.c: Likewise.
20529         * cfghooks.c: Likewise.
20530         * cfgloop.c: Likewise.
20531         * cfgloopanal.c: Likewise.
20532         * cfgloopmanip.c: Likewise.
20533         * cfgrtl.c: Likewise.
20534         * cgraph.c: Likewise.
20535         * cgraphbuild.c: Likewise.
20536         * cgraphclones.c: Likewise.
20537         * cgraphunit.c: Likewise.
20538         * cilk-common.c: Likewise.
20539         * combine-stack-adj.c: Likewise.
20540         * combine.c: Likewise.
20541         * compare-elim.c: Likewise.
20542         * convert.c: Likewise.
20543         * coverage.c: Likewise.
20544         * cppbuiltin.c: Likewise.
20545         * cprop.c: Likewise.
20546         * cse.c: Likewise.
20547         * cselib.c: Likewise.
20548         * data-streamer-in.c: Likewise.
20549         * data-streamer-out.c: Likewise.
20550         * data-streamer.c: Likewise.
20551         * dbxout.c: Likewise.
20552         * dce.c: Likewise.
20553         * ddg.c: Likewise.
20554         * debug.c: Likewise.
20555         * df-core.c: Likewise.
20556         * df-problems.c: Likewise.
20557         * df-scan.c: Likewise.
20558         * dfp.c: Likewise.
20559         * dojump.c: Likewise.
20560         * dominance.c: Likewise.
20561         * domwalk.c: Likewise.
20562         * double-int.c: Likewise.
20563         * dse.c: Likewise.
20564         * dumpfile.c: Likewise.
20565         * dwarf2asm.c: Likewise.
20566         * dwarf2cfi.c: Likewise.
20567         * dwarf2out.c: Likewise.
20568         * emit-rtl.c: Likewise.
20569         * et-forest.c: Likewise.
20570         * except.c: Likewise.
20571         * explow.c: Likewise.
20572         * expmed.c: Likewise.
20573         * expr.c: Likewise.
20574         * final.c: Likewise.
20575         * fixed-value.c: Likewise.
20576         * fold-const.c: Likewise.
20577         * function.c: Likewise.
20578         * fwprop.c: Likewise.
20579         * gcc-plugin.h: Likewise.
20580         * gcse-common.c: Likewise.
20581         * gcse.c: Likewise.
20582         * generic-match-head.c: Likewise.
20583         * ggc-page.c: Likewise.
20584         * gimple-builder.c: Likewise.
20585         * gimple-expr.c: Likewise.
20586         * gimple-fold.c: Likewise.
20587         * gimple-iterator.c: Likewise.
20588         * gimple-low.c: Likewise.
20589         * gimple-match-head.c: Likewise.
20590         * gimple-pretty-print.c: Likewise.
20591         * gimple-ssa-isolate-paths.c: Likewise.
20592         * gimple-ssa-strength-reduction.c: Likewise.
20593         * gimple-streamer-in.c: Likewise.
20594         * gimple-streamer-out.c: Likewise.
20595         * gimple-walk.c: Likewise.
20596         * gimple.c: Likewise.
20597         * gimplify-me.c: Likewise.
20598         * gimplify.c: Likewise.
20599         * godump.c: Likewise.
20600         * graph.c: Likewise.
20601         * graphite-blocking.c: Likewise.
20602         * graphite-dependences.c: Likewise.
20603         * graphite-interchange.c: Likewise.
20604         * graphite-isl-ast-to-gimple.c: Likewise.
20605         * graphite-optimize-isl.c: Likewise.
20606         * graphite-poly.c: Likewise.
20607         * graphite-scop-detection.c: Likewise.
20608         * graphite-sese-to-poly.c: Likewise.
20609         * graphite.c: Likewise.
20610         * haifa-sched.c: Likewise.
20611         * hw-doloop.c: Likewise.
20612         * ifcvt.c: Likewise.
20613         * init-regs.c: Likewise.
20614         * internal-fn.c: Likewise.
20615         * ipa-chkp.c: Likewise.
20616         * ipa-comdats.c: Likewise.
20617         * ipa-cp.c: Likewise.
20618         * ipa-devirt.c: Likewise.
20619         * ipa-icf-gimple.c: Likewise.
20620         * ipa-icf.c: Likewise.
20621         * ipa-inline-analysis.c: Likewise.
20622         * ipa-inline-transform.c: Likewise.
20623         * ipa-inline.c: Likewise.
20624         * ipa-polymorphic-call.c: Likewise.
20625         * ipa-profile.c: Likewise.
20626         * ipa-prop.c: Likewise.
20627         * ipa-pure-const.c: Likewise.
20628         * ipa-ref.c: Likewise.
20629         * ipa-reference.c: Likewise.
20630         * ipa-split.c: Likewise.
20631         * ipa-utils.c: Likewise.
20632         * ipa-visibility.c: Likewise.
20633         * ipa.c: Likewise.
20634         * ira-build.c: Likewise.
20635         * ira-color.c: Likewise.
20636         * ira-conflicts.c: Likewise.
20637         * ira-costs.c: Likewise.
20638         * ira-emit.c: Likewise.
20639         * ira-lives.c: Likewise.
20640         * ira.c: Likewise.
20641         * jump.c: Likewise.
20642         * langhooks.c: Likewise.
20643         * lcm.c: Likewise.
20644         * loop-doloop.c: Likewise.
20645         * loop-init.c: Likewise.
20646         * loop-invariant.c: Likewise.
20647         * loop-iv.c: Likewise.
20648         * loop-unroll.c: Likewise.
20649         * lower-subreg.c: Likewise.
20650         * lra-assigns.c: Likewise.
20651         * lra-coalesce.c: Likewise.
20652         * lra-constraints.c: Likewise.
20653         * lra-eliminations.c: Likewise.
20654         * lra-lives.c: Likewise.
20655         * lra-remat.c: Likewise.
20656         * lra-spills.c: Likewise.
20657         * lra.c: Likewise.
20658         * lto-cgraph.c: Likewise.
20659         * lto-compress.c: Likewise.
20660         * lto-opts.c: Likewise.
20661         * lto-section-in.c: Likewise.
20662         * lto-section-out.c: Likewise.
20663         * lto-streamer-in.c: Likewise.
20664         * lto-streamer-out.c: Likewise.
20665         * lto-streamer.c: Likewise.
20666         * mcf.c: Likewise.
20667         * mode-switching.c: Likewise.
20668         * modulo-sched.c: Likewise.
20669         * omega.c: Likewise.
20670         * omp-low.c: Likewise.
20671         * optabs.c: Likewise.
20672         * opts-global.c: Likewise.
20673         * passes.c: Likewise.
20674         * plugin.c: Likewise.
20675         * postreload-gcse.c: Likewise.
20676         * postreload.c: Likewise.
20677         * predict.c: Likewise.
20678         * print-rtl.c: Likewise.
20679         * print-tree.c: Likewise.
20680         * profile.c: Likewise.
20681         * real.c: Likewise.
20682         * realmpfr.c: Likewise.
20683         * recog.c: Likewise.
20684         * ree.c: Likewise.
20685         * reg-stack.c: Likewise.
20686         * regcprop.c: Likewise.
20687         * reginfo.c: Likewise.
20688         * regrename.c: Likewise.
20689         * regstat.c: Likewise.
20690         * reload.c: Likewise.
20691         * reload1.c: Likewise.
20692         * reorg.c: Likewise.
20693         * resource.c: Likewise.
20694         * rtl-chkp.c: Likewise.
20695         * rtlanal.c: Likewise.
20696         * rtlhooks.c: Likewise.
20697         * sanopt.c: Likewise.
20698         * sched-deps.c: Likewise.
20699         * sched-ebb.c: Likewise.
20700         * sched-rgn.c: Likewise.
20701         * sched-vis.c: Likewise.
20702         * sdbout.c: Likewise.
20703         * sel-sched-dump.c: Likewise.
20704         * sel-sched-ir.c: Likewise.
20705         * sel-sched.c: Likewise.
20706         * sese.c: Likewise.
20707         * shrink-wrap.c: Likewise.
20708         * simplify-rtx.c: Likewise.
20709         * stack-ptr-mod.c: Likewise.
20710         * stmt.c: Likewise.
20711         * stor-layout.c: Likewise.
20712         * store-motion.c: Likewise.
20713         * stringpool.c: Likewise.
20714         * symtab.c: Likewise.
20715         * target-globals.c: Likewise.
20716         * targhooks.c: Likewise.
20717         * toplev.c: Likewise.
20718         * tracer.c: Likewise.
20719         * trans-mem.c: Likewise.
20720         * tree-affine.c: Likewise.
20721         * tree-browser.c: Likewise.
20722         * tree-call-cdce.c: Likewise.
20723         * tree-cfg.c: Likewise.
20724         * tree-cfgcleanup.c: Likewise.
20725         * tree-chkp-opt.c: Likewise.
20726         * tree-chkp.c: Likewise.
20727         * tree-chrec.c: Likewise.
20728         * tree-complex.c: Likewise.
20729         * tree-data-ref.c: Likewise.
20730         * tree-dfa.c: Likewise.
20731         * tree-diagnostic.c: Likewise.
20732         * tree-dump.c: Likewise.
20733         * tree-eh.c: Likewise.
20734         * tree-emutls.c: Likewise.
20735         * tree-if-conv.c: Likewise.
20736         * tree-inline.c: Likewise.
20737         * tree-into-ssa.c: Likewise.
20738         * tree-iterator.c: Likewise.
20739         * tree-loop-distribution.c: Likewise.
20740         * tree-nested.c: Likewise.
20741         * tree-nrv.c: Likewise.
20742         * tree-object-size.c: Likewise.
20743         * tree-outof-ssa.c: Likewise.
20744         * tree-parloops.c: Likewise.
20745         * tree-phinodes.c: Likewise.
20746         * tree-predcom.c: Likewise.
20747         * tree-pretty-print.c: Likewise.
20748         * tree-profile.c: Likewise.
20749         * tree-scalar-evolution.c: Likewise.
20750         * tree-sra.c: Likewise.
20751         * tree-ssa-address.c: Likewise.
20752         * tree-ssa-alias.c: Likewise.
20753         * tree-ssa-ccp.c: Likewise.
20754         * tree-ssa-coalesce.c: Likewise.
20755         * tree-ssa-copy.c: Likewise.
20756         * tree-ssa-copyrename.c: Likewise.
20757         * tree-ssa-dce.c: Likewise.
20758         * tree-ssa-dom.c: Likewise.
20759         * tree-ssa-dse.c: Likewise.
20760         * tree-ssa-forwprop.c: Likewise.
20761         * tree-ssa-ifcombine.c: Likewise.
20762         * tree-ssa-live.c: Likewise.
20763         * tree-ssa-loop-ch.c: Likewise.
20764         * tree-ssa-loop-im.c: Likewise.
20765         * tree-ssa-loop-ivcanon.c: Likewise.
20766         * tree-ssa-loop-ivopts.c: Likewise.
20767         * tree-ssa-loop-manip.c: Likewise.
20768         * tree-ssa-loop-niter.c: Likewise.
20769         * tree-ssa-loop-prefetch.c: Likewise.
20770         * tree-ssa-loop-unswitch.c: Likewise.
20771         * tree-ssa-loop.c: Likewise.
20772         * tree-ssa-math-opts.c: Likewise.
20773         * tree-ssa-operands.c: Likewise.
20774         * tree-ssa-phiopt.c: Likewise.
20775         * tree-ssa-phiprop.c: Likewise.
20776         * tree-ssa-pre.c: Likewise.
20777         * tree-ssa-propagate.c: Likewise.
20778         * tree-ssa-reassoc.c: Likewise.
20779         * tree-ssa-sccvn.c: Likewise.
20780         * tree-ssa-scopedtables.c: Likewise.
20781         * tree-ssa-sink.c: Likewise.
20782         * tree-ssa-strlen.c: Likewise.
20783         * tree-ssa-structalias.c: Likewise.
20784         * tree-ssa-tail-merge.c: Likewise.
20785         * tree-ssa-ter.c: Likewise.
20786         * tree-ssa-threadedge.c: Likewise.
20787         * tree-ssa-threadupdate.c: Likewise.
20788         * tree-ssa-uncprop.c: Likewise.
20789         * tree-ssa-uninit.c: Likewise.
20790         * tree-ssa.c: Likewise.
20791         * tree-ssanames.c: Likewise.
20792         * tree-stdarg.c: Likewise.
20793         * tree-streamer-in.c: Likewise.
20794         * tree-streamer-out.c: Likewise.
20795         * tree-streamer.c: Likewise.
20796         * tree-switch-conversion.c: Likewise.
20797         * tree-tailcall.c: Likewise.
20798         * tree-vect-data-refs.c: Likewise.
20799         * tree-vect-generic.c: Likewise.
20800         * tree-vect-loop-manip.c: Likewise.
20801         * tree-vect-loop.c: Likewise.
20802         * tree-vect-patterns.c: Likewise.
20803         * tree-vect-slp.c: Likewise.
20804         * tree-vect-stmts.c: Likewise.
20805         * tree-vectorizer.c: Likewise.
20806         * tree-vrp.c: Likewise.
20807         * tree.c: Likewise.
20808         * tsan.c: Likewise.
20809         * ubsan.c: Likewise.
20810         * valtrack.c: Likewise.
20811         * value-prof.c: Likewise.
20812         * var-tracking.c: Likewise.
20813         * varasm.c: Likewise.
20814         * varpool.c: Likewise.
20815         * vmsdbgout.c: Likewise.
20816         * vtable-verify.c: Likewise.
20817         * web.c: Likewise.
20818         * wide-int.cc: Likewise.
20819         * xcoffout.c: Likewise.
20820         * config/aarch64/aarch64-builtins.c: Likewise.
20821         * config/aarch64/aarch64.c: Likewise.
20822         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20823         * config/alpha/alpha.c: Likewise.
20824         * config/arc/arc.c: Likewise.
20825         * config/arm/aarch-common.c: Likewise.
20826         * config/arm/arm-builtins.c: Likewise.
20827         * config/arm/arm-c.c: Likewise.
20828         * config/arm/arm.c: Likewise.
20829         * config/avr/avr-c.c: Likewise.
20830         * config/avr/avr-log.c: Likewise.
20831         * config/avr/avr.c: Likewise.
20832         * config/bfin/bfin.c: Likewise.
20833         * config/c6x/c6x.c: Likewise.
20834         * config/cr16/cr16.c: Likewise.
20835         * config/cris/cris.c: Likewise.
20836         * config/darwin-c.c: Likewise.
20837         * config/darwin.c: Likewise.
20838         * config/epiphany/epiphany.c: Likewise.
20839         * config/epiphany/mode-switch-use.c: Likewise.
20840         * config/epiphany/resolve-sw-modes.c: Likewise.
20841         * config/fr30/fr30.c: Likewise.
20842         * config/frv/frv.c: Likewise.
20843         * config/ft32/ft32.c: Likewise.
20844         * config/h8300/h8300.c: Likewise.
20845         * config/i386/i386-c.c: Likewise.
20846         * config/i386/i386.c: Likewise.
20847         * config/i386/msformat-c.c: Likewise.
20848         * config/i386/winnt-cxx.c: Likewise.
20849         * config/i386/winnt-stubs.c: Likewise.
20850         * config/i386/winnt.c: Likewise.
20851         * config/ia64/ia64-c.c: Likewise.
20852         * config/ia64/ia64.c: Likewise.
20853         * config/iq2000/iq2000.c: Likewise.
20854         * config/lm32/lm32.c: Likewise.
20855         * config/m32c/m32c-pragma.c: Likewise.
20856         * config/m32c/m32c.c: Likewise.
20857         * config/m32r/m32r.c: Likewise.
20858         * config/m68k/m68k.c: Likewise.
20859         * config/mcore/mcore.c: Likewise.
20860         * config/mep/mep-pragma.c: Likewise.
20861         * config/mep/mep.c: Likewise.
20862         * config/microblaze/microblaze-c.c: Likewise.
20863         * config/microblaze/microblaze.c: Likewise.
20864         * config/mips/mips.c: Likewise.
20865         * config/mmix/mmix.c: Likewise.
20866         * config/mn10300/mn10300.c: Likewise.
20867         * config/moxie/moxie.c: Likewise.
20868         * config/msp430/msp430-c.c: Likewise.
20869         * config/msp430/msp430.c: Likewise.
20870         * config/nds32/nds32-cost.c: Likewise.
20871         * config/nds32/nds32-fp-as-gp.c: Likewise.
20872         * config/nds32/nds32-intrinsic.c: Likewise.
20873         * config/nds32/nds32-isr.c: Likewise.
20874         * config/nds32/nds32-md-auxiliary.c: Likewise.
20875         * config/nds32/nds32-memory-manipulation.c: Likewise.
20876         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20877         * config/nds32/nds32-predicates.c: Likewise.
20878         * config/nds32/nds32.c: Likewise.
20879         * config/nios2/nios2.c: Likewise.
20880         * config/nvptx/nvptx.c: Likewise.
20881         * config/pa/pa.c: Likewise.
20882         * config/pdp11/pdp11.c: Likewise.
20883         * config/rl78/rl78-c.c: Likewise.
20884         * config/rl78/rl78.c: Likewise.
20885         * config/rs6000/rs6000-c.c: Likewise.
20886         * config/rs6000/rs6000.c: Likewise.
20887         * config/rx/rx.c: Likewise.
20888         * config/s390/s390-c.c: Likewise.
20889         * config/s390/s390.c: Likewise.
20890         * config/sh/sh-c.c: Likewise.
20891         * config/sh/sh-mem.cc: Likewise.
20892         * config/sh/sh.c: Likewise.
20893         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20894         * config/sh/sh_treg_combine.cc: Likewise.
20895         * config/sol2-c.c: Likewise.
20896         * config/sol2-cxx.c: Likewise.
20897         * config/sol2-stubs.c: Likewise.
20898         * config/sol2.c: Likewise.
20899         * config/sparc/sparc-c.c: Likewise.
20900         * config/sparc/sparc.c: Likewise.
20901         * config/spu/spu-c.c: Likewise.
20902         * config/spu/spu.c: Likewise.
20903         * config/stormy16/stormy16.c: Likewise.
20904         * config/tilegx/mul-tables.c: Likewise.
20905         * config/tilegx/tilegx-c.c: Likewise.
20906         * config/tilegx/tilegx.c: Likewise.
20907         * config/tilepro/mul-tables.c: Likewise.
20908         * config/tilepro/tilepro-c.c: Likewise.
20909         * config/tilepro/tilepro.c: Likewise.
20910         * config/v850/v850-c.c: Likewise.
20911         * config/v850/v850.c: Likewise.
20912         * config/vax/vax.c: Likewise.
20913         * config/visium/visium.c: Likewise.
20914         * config/vms/vms-c.c: Likewise.
20915         * config/vms/vms.c: Likewise.
20916         * config/vxworks.c: Likewise.
20917         * config/xtensa/xtensa.c: Likewise.
20918
20919 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
20920
20921         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20922         Remove operand constraints.  Change operand 2 predicate to
20923         nonmemory operand.  Limit const_int values to mode bitsize.  Only
20924         allow const_int values less than 32 when optimizing for size.
20925         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20926         Remove operand constraints.
20927         (*bt<mode>): Use SImode for const_int values less than 32.
20928         (regmode): Remove mode attribute.
20929
20930 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
20931
20932         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20933         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20934           moxie_legitimate_address_p): New functions.
20935           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20936
20937 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20938
20939         PR tree-optimization/66642
20940         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20941         header comment.  Rename split_edge variable to edge_at_split.  Split
20942         exit edge to create new loop exit bb.  Insert loop exit phis in new
20943         loop exit bb.
20944
20945 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20946
20947         * tree-cfg.c (get_virtual_phi): New function.
20948         * tree-cfg.h (get_virtual_phi): Declare.
20949         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20950         (rewrite_virtuals_into_loop_closed_ssa): New function.
20951         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20952         Declare.
20953         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20954         (transform_to_exit_first_loop_alt): Use
20955         rewrite_virtuals_into_loop_closed_ssa.
20956
20957 2015-07-07  Richard Biener  <rguenther@suse.de>
20958
20959         * fold-const.c (fold_binary_loc): Move
20960         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20961         * match.pd: ... here.
20962         Add (X * C1) % C2 -> 0 simplification pattern derived from
20963         extract_muldiv_1.
20964
20965 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20966
20967         PR target/66780
20968         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20969         change for target/65249.
20970
20971 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
20972
20973         * symtab.c (address_matters_1): Fix typo in comment above.
20974         (can_increase_alignment_p): Likewise.
20975
20976 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20977
20978         * function.c (free_after_compilation): Clear PROP_cfg in
20979         f->curr_properties.
20980
20981 2015-07-07  Richard Biener  <rguenther@suse.de>
20982
20983         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20984         add which use to.
20985         (add_control_edge): Remove excessive vertical space in dumping.
20986         (process_ssa_edge_worklist): Simulate at most one statement and
20987         return whether we did.  Do not simulate PHIs if they are in a
20988         BB not yet simulated.
20989         (ssa_propagate): Adjust to always drain the BB worklist whenever
20990         a BB is available there, likewise the VARYING edges list before
20991         the interesting edge list.
20992
20993 2015-07-07  Christian Bruel  <christian.bruel@st.com>
20994
20995         PR target/52144
20996         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20997
20998 2015-07-07  Richard Biener  <rguenther@suse.de>
20999
21000         PR middle-end/66739
21001         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21002         A - B.
21003
21004 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21005
21006         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
21007         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
21008         Copy operand 0 to a temporary if !ext_register_operand.  Remove
21009         ancient extract_bit_field workaround.
21010         (insv<mode>_1): Rename from mov<mode>_insv_1.
21011         (*insvqi): Rename from *movqi_insv_2.
21012         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21013         for renamed insvsi_1.
21014         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21015
21016 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
21017
21018         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
21019         call to nvptx_reorg_subreg.
21020
21021 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
21022
21023         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21024         * graphite-dependencies.c, graphite-interchange.c,
21025         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21026         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21027         Likewise.
21028
21029 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
21030
21031         * match.pd: Remove element_mode inside HONOR_*.
21032         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21033         (~X | X -> -1, ~X ^ X -> -1): Merge.
21034         * tree.c (build_each_one_cst): New function.
21035         * tree.h (build_each_one_cst): Likewise.
21036
21037 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21038
21039         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21040         PROCESSOR_IAMCU.
21041
21042 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
21043
21044         * config.gcc <mips*-*-*>: Add fused-madd.opt.
21045         * config/mips/mips.opt (mfused-madd): Remove.
21046         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21047         * config/mips/mips.h (TARGET_MIPS8000): New.
21048         (ISA_HAS_FP_MADD4_MSUB4): Remove.
21049         (ISA_HAS_FP_MADDF_MSUBF): Remove.
21050         (ISA_HAS_FP_MADD3_MSUB3): Remove.
21051         (ISA_HAS_NMADD4_NMSUB4): Remove.
21052         (ISA_HAS_NMADD3_NMSUB3): Remove.
21053         (ISA_HAS_FUSED_MADD4): New.
21054         (ISA_HAS_UNFUSED_MADD4): New.
21055         (ISA_HAS_FUSED_MADDF): New.
21056         (ISA_HAS_FUSED_MADD3): New.
21057         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21058         (*fma<mode>4_madd3) New.
21059         (*fma<mode>4_madd4) New.
21060         (*fma<mode>4_maddf) New.
21061         (fms<mode>4) New.
21062         (*fms<mode>4_msub3) New.
21063         (*fms<mode>4_msub4) New.
21064         (fnma<mode>4) New.
21065         (*fnma<mode>4_nmadd3) New.
21066         (*fnma<mode>4_nmadd4) New.
21067         (fnms<mode>4) New.
21068         (*fnms<mode>4_nmsub3) New.
21069         (*fnms<mode>4_nmsub4) New.
21070         (*madd4<mode>) Modify to be unfused only.
21071         (*msub4<mode>) Modify to be unfused only.
21072         (*nmadd4<mode>) Modify to be unfused only.
21073         (*nmsub4<mode>) Modify to be unfused only.
21074         (*madd3<mode>) Remove.
21075         (*msub3<mode>) Remove.
21076         (*nmadd3<mode>) Remove.
21077         (*nmsub3<mode>) Remove.
21078         (*nmadd3<mode>_fastmath) Remove.
21079         (*nmsub3<mode>_fastmath) Remove.
21080         (*nmadd4<mode>_fastmath) Update condition.
21081         (*nmsub4<mode>_fastmath) Update condition.
21082
21083 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21084
21085         PR target/65956
21086         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21087         alignment attribute, exploring one level down for records and arrays.
21088
21089 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21090
21091         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
21092         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
21093         Copy operand 1 to a temporary if !ext_register_operand.  Remove
21094         ancient extract_bit_field workaround.
21095         (*extv<mode>): Rename from *mov<mode>_extv_1.
21096         (*extvqi): Rename from *movqi_extv_1.
21097         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
21098         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
21099         to a temporary if !ext_register_operand.  Remove ancient
21100         extract_bit_field workaround.
21101         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21102         (*extzvqi): Rename from *movqi_extzv_2.
21103         (*testqi_ext_3): Remove modes from const_int_operand predicated
21104         operands.  Add "n" constraint.
21105         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21106         operand.  Add "J" constraint.
21107         (*btsq, *btrq, *btcq peephole2s): Remove mode from
21108         const_0_to_63 predicated operand.
21109         (regmode): New insn attribute.
21110         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
21111         to nonmemory_operand.  Use regmode insn attribute.
21112         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21113         (*jcc_bt<mode>_mask): Remove mode from operand 3.
21114         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21115         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21116         operands.  Use "N" constraint instead of "n".
21117
21118 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21119
21120         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21121
21122 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21123
21124         PR target/66749
21125         * config/i386/i386.c (iamcu_cost): New.
21126         (m_IAMCU): Likewise.
21127         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21128         (processor_target_table): Add an entry for "iamcu".
21129         (processor_alias_table): Likewise.
21130         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21131         (ix86_adjust_cost): Likewise.
21132         (ia32_multipass_dfa_lookahead): Likewise.
21133         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21134         * config/i386/x86-tune.def: Updated for m_IAMCU.
21135
21136 2015-07-06  Richard Biener  <rguenther@suse.de>
21137
21138         PR tree-optimization/66772
21139         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21140         values are available in the PHI node BB when there are
21141         still unexecutable edges.
21142
21143 2015-07-06  Richard Biener  <rguenther@suse.de>
21144
21145         PR tree-optimization/66767
21146         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21147         Make sure to build the alignment test on a SSA name without
21148         final alignment info valid only if the alignment test
21149         evaluates to true.
21150
21151 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
21152
21153         PR target/66620
21154         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21155         loop start when inserting LSETUP.
21156
21157 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21158
21159         PR target/53383
21160         * config/i386/i386.c (ix86_option_override_internal): Allow
21161         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21162
21163 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21164
21165         * read-md.c (decimal_string): Rename to ...
21166         (md_decimal_string): ... this.
21167         (handle_enum): Reflect this.
21168
21169 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21170
21171         PR target/66731
21172         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21173
21174 2015-07-06  Richard Biener  <rguenther@suse.de>
21175
21176         PR middle-end/66759
21177         * match.pd: Add missing constraint of y to REAL_CST in
21178         REAL_CST - x CMP y to y - CST CMP x simplification.
21179
21180 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
21181
21182         PR tree-optimization/66757
21183         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21184
21185 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
21186             Sandra Loosemore <sandra@codesourcery.com>
21187
21188         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21189         Delete extern declaration.
21190         (gprel_constant_p): Add extern declaration.
21191         * config/nios2/constraints.md ("S"): Use gprel_constant_p
21192         instead of nios2_symbol_ref_in_small_data_p.
21193         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21194         (nios2_symbol_ref_in_small_data_p): Make static.
21195         (gprel_constant_p): Make non-static.
21196
21197 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
21198
21199         * doc/fragments.texi (Target Fragment): Convert debian.org
21200         link to use https.
21201         * doc/install.texi (Configuration): Ditto.
21202
21203 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
21204
21205         PR tree-optimization/66718
21206         * tree-vect-stmts.c (vectorizable_call): Replace uses of
21207         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21208
21209         PR tree-optimization/66718
21210         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21211         vectorizable_load, vectorizable_condition): Move vectype,
21212         nunits, ncopies computation after checking what kind of statement
21213         stmt is.
21214
21215 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21216
21217         * target-insns.def (extv, extzv, insv): New targetm instruction
21218         patterns.
21219         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21220         interface.
21221         * recog.c (simplify_while_replacing): Likewise.
21222
21223 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21224
21225         * target-insns.def (doloop_begin, doloop_end): New targetm
21226         instruction patterns.
21227         * loop-init.c: Include target.h.
21228         (pass_loop2::gate): Use the new targetm patterns instead of
21229         HAVE_*/gen_* interface.
21230         (pass_rtl_doloop::gate): Likewise.
21231         (pass_rtl_doloop::execute): Remove preprocessor condition.
21232         * hw-doloop.c: Build unconditionally.
21233         * loop-doloop.c: Likewise.
21234         (doloop_optimize): Use the new targetm patterns instead of
21235         HAVE_*/gen_* interface.
21236         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21237         * modulo-sched.c (doloop_register_get): Likewise.
21238
21239 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21240
21241         * target-insns.def (clear_cache): New targetm instruction pattern.
21242         * builtins.c (expand_builtin___clear_cache): Use it instead of
21243         HAVE_*/gen_* interface.
21244
21245 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21246
21247         * target-insns.def (allocate_stack, check_stack, probe_stack)
21248         (probe_stack_address, split_stack_prologue, split_stack_space_check):
21249         New targetm instruction patterns.
21250         * explow.c (allocate_dynamic_stack_space): Use them instead of
21251         HAVE_*/gen_* interface.
21252         (emit_stack_probe): Likewise.
21253         (probe_stack_range): Likewise.
21254         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21255
21256 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21257
21258         * target-insns.def (stack_protect_set, stack_protect_test): New
21259         targetm instruction patterns.
21260         * cfgexpand.c (stack_protect_prologue): Use them instead of
21261         HAVE_*/gen_* interface.
21262         * function.c (stack_protect_epilogue): Likewise.
21263
21264 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21265
21266         * expr.h (gen_move_insn_uncast): Delete.
21267         * expr.c (gen_move_insn_uncast): Delete.
21268
21269 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21270
21271         * target-insns.def (restore_stack_block, restore_stack_function)
21272         (restore_stack_nonlocal, save_stack_block, save_stack_function)
21273         (save_stack_nonlocal): New targetm instruction patterns.
21274         * builtins.c (expand_builtin_apply): Use them instead of
21275         HAVE_*/gen_* interface.
21276         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21277
21278 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21279
21280         * target-insns.def (trap): New targetm instruction pattern.
21281         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21282         interface.
21283         * explow.c (allocate_dynamic_stack_space): Likewise.
21284         * ifcvt.c (find_if_header): Likewise.
21285
21286 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21287
21288         * target-insns.def (prefetch): New targetm instruction pattern.
21289         * tree-ssa-loop-prefetch.c: Include targeth.
21290         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21291         of HAVE_*/gen_* interface.
21292         * builtins.c (expand_builtin_prefetch): Likewise.
21293         * toplev.c (process_options): Likewise.
21294
21295 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21296
21297         * target-insns.def (untyped_call, untyped_return): New targetm
21298         instruction patterns.
21299         * builtins.c (expand_builtin_apply): Use them instead of
21300         HAVE_*/gen_* interface.
21301         (result_vector): Define unconditionally.
21302
21303 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21304
21305         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21306         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21307         (nonlocal_goto_receiver): New targetm instruction patterns.
21308         * builtins.c (expand_builtin_setjmp_setup): Use them instead
21309         of HAVE_*/gen_* interface.
21310         (expand_builtin_setjmp_receiver): Likewise.
21311         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21312         * except.c (expand_dw2_landing_pad_for_region): Likewise.
21313
21314 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21315
21316         * target.def: Add code_for_* hooks.
21317         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21318         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21319         * target-insns.def (casesi, tablejump): New targetm instruction
21320         patterns.
21321         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21322         (do_tablejump): Likewise.
21323         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21324         (expand_sjlj_dispatch_table): Likewise.
21325         * targhooks.c (default_case_values_threshold): Likewise.
21326
21327 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
21328
21329         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21330         Use rtx_insn * instead of rtx.
21331         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21332         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21333         (nios2_call_tls_get_addr): Likewise.
21334         (nios2_emit_expensive_div): Likewise.
21335         (nios2_emit_move_sequence): Change return type to bool.
21336         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21337         Change return type to bool.
21338
21339 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21340
21341         PR target/66747
21342         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21343
21344 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
21345
21346         PR target/66114
21347         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21348         of register_operand.  Remove constraint.
21349
21350 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
21351
21352         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21353         the first argument.
21354
21355 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
21356
21357         * attribs.c (decl_attributes): Guard inform with the return value
21358         of the preceding warning.
21359
21360 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21361
21362         * doc/invoke.texi (moverride): Move to correct section.
21363
21364 2015-07-03  Richard Biener  <rguenther@suse.de>
21365
21366         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21367         Copy from tree.c
21368         (dt_operand::gen_gimple_expr): After valueizing operands
21369         re-canonicalize operand order for commutative tree codes.
21370
21371 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
21372
21373         PR target/66746.
21374         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21375         is defined.
21376         (__crc32w): Likewise.
21377         (__crc32d): Likewise.
21378         (__rdpmc): Likewise.
21379         (__rdtscp): Likewise.
21380         (_rdpmc): Likewise.
21381         (_rdtscp): Likewise.
21382         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21383         is defined.
21384
21385 2015-07-03  Richard Biener  <rguenther@suse.de>
21386
21387         * fold-const.c (fold_mathfn_compare): Remove.
21388         (fold_inf_compare): Likewise.
21389         (fold_comparison): Move floating point comparison simplifications...
21390         * match.pd: ... to patterns here.  Introduce simple_comparisons
21391         operator list and use it for patterns formerly in fold_comparison.
21392
21393 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21394
21395         PR tree-optimization/66119
21396         * toplev.c (process_options): Don't set up default values for
21397         the sra_max_scalarization_size_{speed,size} parameters.
21398         * tree-sra (analyze_all_variable_accesses): If no values
21399         have been set for the sra_max_scalarization_size_{speed,size}
21400         parameters, call get_move_ratio to get target defaults.
21401
21402 2015-07-03  Richard Biener  <rguenther@suse.de>
21403
21404         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21405         * match.pd: ... here.
21406
21407 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
21408
21409         PR target/37072
21410         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21411         is not actually the default on FreeBSD.
21412
21413 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21414
21415         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21416         definition.
21417         (CMPGE_8HI): Likewise.
21418         (CMPGE_4SI): Likewise.
21419         (CMPGE_2DI): Likewise.
21420         (CMPGE_U16QI): Likewise.
21421         (CMPGE_U8HI): Likewise.
21422         (CMPGE_U4SI): Likewise.
21423         (CMPGE_U2DI): Likewise.
21424         (CMPLE_16QI): Likewise.
21425         (CMPLE_8HI): Likewise.
21426         (CMPLE_4SI): Likewise.
21427         (CMPLE_2DI): Likewise.
21428         (CMPLE_U16QI): Likewise.
21429         (CMPLE_U8HI): Likewise.
21430         (CMPLE_U4SI): Likewise.
21431         (CMPLE_U2DI): Likewise.
21432         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21433         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21434         ALTIVEC_BUILTIN_VEC_CMPLE.
21435         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21436         floating-point vector modes.
21437         (vector_nlt<mode>): New define_expand.
21438         (vector_nltu<mode>): Likewise.
21439         (vector_ngt<mode>): Likewise.
21440         (vector_ngtu<mode>): Likewise.
21441
21442 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
21443
21444         PR rtl-optimization/66706
21445         * combine.c (make_compound_operation): If an AND of SUBREG of
21446         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21447
21448 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
21449
21450         * tree-pass.h (make_pass_ch_vect): New.
21451         * passes.def: Add pass_ch_vect just before pass_if_conversion.
21452
21453         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21454         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21455         make_pass_ch_vect): New.
21456         (pass_ch): Extend ch_base.
21457
21458         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21459         (ch_base::copy_headers): ...here.
21460
21461 2015-07-02  Richard Biener  <rguenther@suse.de>
21462
21463         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21464         * fold-const.c (get_pointer_modulus_and_residue): Remove.
21465         (fold_binary_loc): Implement (T)ptr & CST in terms of
21466         get_pointer_alignment_1.
21467         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21468         Make sure to build the alignment test on a SSA name without
21469         final alignment info valid only after the prologue.
21470
21471 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
21472
21473         * config/cris/cris.md ("epilogue"): Remove condition.
21474         ("prologue"): Ditto.
21475
21476 2015-07-02  Richard Biener  <rguenther@suse.de>
21477
21478         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21479         parameter to record a condition that is false.
21480         (record_conditions): When recording an extra NE_EXPR that is
21481         true also record a EQ_EXPR that is false.
21482
21483 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
21484
21485         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21486         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21487         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
21488         (set_iv, find_interesting_uses_address, add_candidate_1): New
21489         argument to alloc_iv.
21490         (find_interesting_uses_op, find_interesting_uses_cond): Don't
21491         duplicate struct iv.
21492         (free_loop_data): Don't free struct iv explicitly.
21493         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21494
21495 2015-07-01  DJ Delorie  <dj@redhat.com>
21496
21497         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21498         (LIB_SPEC): Add.
21499         (SUPPORTS_DISCRIMINATOR): Define.
21500
21501 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21502
21503         PR bootstrap/66685
21504         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21505         there are no CALLs in the same pattern.
21506
21507 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21508
21509         PR rtl-optimization/61047
21510         * rtlanal.c (get_initial_register_offset): New function.
21511         (rtx_addr_can_trap_p_1): Check offsets of stack references.
21512
21513 2015-07-01  Richard Biener  <rguenther@suse.de>
21514
21515         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21516         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21517         ~X CMP C -> X CMP' ~C to ...
21518         * match.pd: ... patterns here.
21519
21520 2015-07-01  Nick Clifton  <nickc@redhat.com>
21521
21522         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21523         a 16-bit value into a 20-bit memory slot.
21524
21525 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21526
21527         * doc/sourcebuild.texi (AArch64-specific attributes): Document
21528         "aarch64_tiny", "aarch64_small", "aarch64_large",
21529         "aarch64_little_endian", "aarch64_big_endian".
21530
21531 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21532
21533         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21534         Document "aarch64_small_fpic".
21535
21536 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21537
21538         * configure.ac: Add check for aarch64 assembler -fpic relocation
21539         modifier support.
21540         * configure: Regenerate.
21541         * config.in: Regenerate.
21542         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21543         to -fPIC if not support of -fpic relocation modifier in assembler.
21544
21545 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21546
21547         PR bootstrap/66685
21548         * rtl.c (classify_insn): Handle returns in PARALLELs.
21549
21550 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
21551
21552         PR middle-end/66633
21553         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21554         to true if the function is nested and if not optimizing.
21555         (convert_local_omp_clauses): Initialize need_frame to true if the
21556         function contains nested functions and if not optimizing.
21557
21558 2015-07-01  Richard Biener  <rguenther@suse.de>
21559
21560         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21561         (X & Y) ^ Y -> ~X & Y transforms to ...
21562         * match.pd: ... here.
21563
21564 2015-07-01  Richard Biener <rguenther@suse.de>
21565
21566         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21567         of converts to avoid uninteresting noise from the conversion
21568         simplifying patterns.
21569
21570 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
21571
21572         * config/c6x/c6x.c (try_rename_operands): Do not depend on
21573         gcc_assert evaluating its argument for side-effect.
21574
21575 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21576
21577         PR target/64833
21578         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21579         flag_pic is set.
21580
21581 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21582
21583         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21584         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21585         (hash_scc): Add this_ref_p and ref_p parameters and pass them
21586         to the inner DFS walk.
21587
21588 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21589
21590         * target-insns.def (jump): New targetm instruction pattern.
21591         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21592         instead of gen_jump.
21593         (fix_up_crossing_landing_pad): Likewise.
21594         (add_labels_and_missing_jumps): Likewise.
21595         (fix_crossing_conditional_branches): Likewise.
21596         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21597         (force_nonfallthru_and_redirect): Likewise.
21598         * cse.c (cse_insn): Likewise.
21599         * expmed.c (expand_divmod): Likewise.
21600         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21601         * haifa-sched.c (init_before_recovery): Likewise.
21602         (sched_create_recovery_edges): Likewise.
21603         * ifcvt.c (find_cond_trap): Likewise.
21604         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21605         (expand_float, expand_fix): Likewise.
21606         * stmt.c (emit_jump): Likewise.
21607
21608 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21609
21610         * defaults.h (HAVE_load_multiple, gen_load_multiple)
21611         (HAVE_store_multiple, gen_store_multiple): Delete.
21612         * target-insns.def (load_multiple, store_multiple): New targetm
21613         instruction patterns.
21614         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21615         of HAVE_*/gen_* interface.
21616
21617 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21618
21619         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21620         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21621         (gen_mem_signal_fence): Delete.
21622         * target-insns.def (mem_signal_fence, mem_thread_fence)
21623         (memory_barrier): New targetm instruction patterns.
21624         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21625         interface.
21626         (expand_mem_signal_fence): Likewise.
21627
21628 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21629
21630         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21631         * target-insns.def (epilogue, prologue, sibcall_prologue): New
21632         targetm instruction patterns.
21633         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21634         interface.
21635         * calls.c (expand_call): Likewise.
21636         * cfgrtl.c (cfg_layout_finalize): Likewise.
21637         * df-scan.c (df_get_entry_block_def_set): Likewise.
21638         (df_get_exit_block_use_set): Likewise.
21639         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21640         * final.c (final_start_function): Likewise.
21641         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21642         (reposition_prologue_and_epilogue_notes): Likewise.
21643         * reorg.c (find_end_label): Likewise.
21644         * toplev.c (process_options): Likewise.
21645
21646 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
21647
21648         * typed-splay-tree.h: New file.
21649
21650 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
21651
21652         PR debug/66691
21653         * lra-int.h (lra_substitute_pseudo): Add a parameter.
21654         (lra_substitute_pseudo_within_insn): Ditto.
21655         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
21656         of constant.
21657         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
21658         to lra_substitute_pseudo.
21659         * lra-lives.c (process_bb_lives): Add an argument to
21660         lra_substitute_pseudo_within_insn call.
21661         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21662         argument to lra_substitute_pseudo and
21663         lra_substitute_pseudo_within_insn calls.
21664         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21665
21666 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21667
21668         * configure: Regenerated.
21669
21670 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21671
21672         * config.gcc: Support i[34567]86-*-elfiamcu target.
21673         * config/i386/iamcu.h: New.
21674         * config/i386/i386.opt: Add -miamcu.
21675         * doc/invoke.texi: Document -miamcu.
21676         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
21677         off x87/MMX/SSE/AVX codegen for -miamcu.
21678         * config/i386/i386-c.c (ix86_target_macros_internal): Define
21679         __iamcu/__iamcu__ for -miamcu.
21680         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21681         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21682         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21683         * config/i386/i386.c (ix86_option_override_internal): Ignore and
21684         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
21685         MCU by default.  Default long double to 64-bit for Intel MCU.
21686         Turn on -freg-struct-return for Intel MCU.  Issue an error when
21687         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21688         AVX is turned on.
21689         (function_arg_advance_32): Pass value whose size is no larger
21690         than 8 bytes in registers for Intel MCU.
21691         (function_arg_32): Likewise.
21692         (ix86_return_in_memory): Return value whose size is no larger
21693         than 8 bytes in registers for Intel MCU.
21694         (iamcu_alignment): New function.
21695         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21696         true.
21697         (ix86_local_alignment): Don't increase alignment for Intel MCU.
21698         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21699         true.
21700
21701 2015-06-30  Marek Polacek  <polacek@redhat.com>
21702
21703         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
21704         both operands of the resulting expression.
21705
21706         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
21707         the final expression with the operand's type and then convert
21708         it to the type of the expression.
21709
21710 2015-06-30  Richard Biener  <rguenther@suse.de>
21711
21712         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21713         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21714         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21715         * match.pd: ... to patterns here.
21716
21717 2015-06-30  Richard Biener  <rguenther@suse.de>
21718
21719         PR tree-optimization/66704
21720         * tree-vect-data-refs.c (vect_setup_realignment): Use
21721         make_ssa_name for non-SSA name source.
21722
21723 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
21724
21725         PR middle-end/66702
21726         * omp-low.c (simd_clone_adjust): Handle addressable linear
21727         or uniform parameters or non-gimple type uniform parameters.
21728
21729 2015-06-30  Richard Biener  <rguenther@suse.de>
21730
21731         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21732         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21733         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21734         * match.pd: ... here.
21735         Add a few cases of A - B -> A + (-B) when B "easily" negates.
21736         Move (x & y) | x -> x and friends before
21737         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21738
21739 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21740
21741         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21742         -mfix-ut699 is not specified.
21743         (leon3_load): Rename into...
21744         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
21745         is specified.
21746
21747 2015-06-30  Marek Polacek  <polacek@redhat.com>
21748
21749         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21750         * match.pd: ... here.
21751
21752 2015-06-30  Richard Biener  <rguenther@suse.de>
21753
21754         * target-insns.def (canonicalize_funcptr_for_compare): Add.
21755         * fold-const.c (build_range_check): Replace uses of
21756         HAVE_canonicalize_funcptr_for_compare.
21757         (fold_widened_comparison): Likewise.
21758         (fold_sign_changed_comparison): Likewise.
21759         * dojump.c: Include "target.h".
21760         (do_compare_and_jump): Replace uses of
21761         HAVE_canonicalize_funcptr_for_compare and
21762         gen_canonicalize_funcptr_for_compare.
21763         * expr.c (do_store_flag): Likewise.
21764
21765 2015-06-30  Tom de Vries  <tom@codesourcery.com>
21766
21767         PR tree-optimization/66652
21768         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21769         max_loop_iterations to determine if nit + 1 overflows.
21770
21771 2015-06-30  Richard Biener  <rguenther@suse.de>
21772
21773         * tree-vrp.c (register_edge_assert_for_2): Also register
21774         asserts for dominating conversion results.
21775
21776 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
21777
21778         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21779         field in struct iv.
21780
21781 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
21782
21783         PR target/66509
21784         * configure.ac: Fix filds and fildq test for 64-bit.
21785         * configure: Regenerated.
21786
21787 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
21788
21789         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21790         (nvptx_reorg): Here.  Keep the non-subreg pieces.
21791
21792 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
21793
21794         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21795         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21796
21797 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
21798
21799         * config/i386/i386.md (*jcc_1): Use %! in asm template.
21800         Set attribute "length_nobnd" instead of "length".
21801         (*jcc_2): Ditto.
21802         (jump): Ditto.
21803         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21804
21805 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
21806
21807         * config/nios2/nios2.c (nios2_delegitimize_address): Make
21808         assert less restrictive.
21809
21810 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21811
21812         PR fortran/66605
21813         * cgraphunit.c (cgraph_node::finalize_function): Do not call
21814         do_warn_unused_parameter.
21815         * function.c (do_warn_unused_parameter): Move from here.
21816         * function.h (do_warn_unused_parameter): Do not declare.
21817
21818 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21819
21820         PR target/65697
21821         * gcc.target/arm/armv-sync-comp-swap.c: New.
21822         * gcc.target/arm/armv-sync-op-acquire.c: New.
21823         * gcc.target/arm/armv-sync-op-full.c: New.
21824         * gcc.target/arm/armv-sync-op-release.c: New.
21825
21826 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21827
21828         PR target/65697
21829         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21830         initial acquire barrier with final barrier.
21831
21832 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21833
21834         PR target/65697
21835         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21836         initial acquire barrier with final barrier.
21837
21838 2015-06-29  Richard Henderson  <rth@redhat.com>
21839
21840         * config/i386/constraints.md (Bf): New constraint.
21841         * config/i386/i386-c.c (ix86_target_macros): Define
21842         __GCC_ASM_FLAG_OUTPUTS__.
21843         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21844         as flags outputs.
21845         * doc/extend.texi (FlagOutputOperands): Document them.
21846
21847 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
21848
21849         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21850         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21851         unspec name.
21852         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21853         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21854         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21855         (aarch64_symbol_context): Ditto.
21856         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21857         and use new pattern name.
21858         (aarch64_expand_mov_immediate): Ditto.
21859         (aarch64_print_operand): Ditto.
21860         (aarch64_classify_tls_symbol): Ditto.
21861
21862 2015-06-29  Marek Polacek  <polacek@redhat.com>
21863             Marc Glisse  <marc.glisse@inria.fr>
21864
21865         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21866         * match.pd: ... pattern here.
21867
21868 2015-06-29  Tom de Vries  <tom@codesourcery.com>
21869
21870         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21871         function structure.
21872
21873 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21874
21875         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21876         feature description, split out the native option, add a link to
21877         the feature documentation, rearrange and slightly rewrite text.
21878         (Aarch64 options, -mcpu): Likewise.
21879         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
21880         +rdma implies Adv. SIMD.
21881
21882 2015-06-29  Marek Polacek  <polacek@redhat.com>
21883
21884         PR c/66322
21885         * function.c (stack_protect_epilogue): Remove a cast to int.
21886         * doc/invoke.texi: Update -Wswitch-bool description.
21887
21888 2015-06-29  Richard Biener  <rguenther@suse.de>
21889
21890         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21891         * fold-const.c (fold_binary_loc): Move &A - &B simplification
21892         via ptr_difference_const ...
21893         * match.pd: ... here.
21894         When matching (X ^ Y) == Y also match with swapped operands.
21895
21896 2015-06-29  Richard Biener  <rguenther@suse.de>
21897
21898         * lto-streamer.h (LTO_major_version): Bump to 5.
21899
21900 2015-06-29  Richard Biener  <rguenther@suse.de>
21901
21902         PR tree-optimization/66677
21903         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21904         STMT_VINFO_VEC_STMT clobbering less strict.
21905
21906 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
21907
21908         PR middle-end/64130
21909         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21910         division, compute max and min when value ranges for dividend and
21911         divisor are available.
21912
21913 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
21914             Sandra Loosemore <sandra@codesourcery.com>
21915
21916         * regrename.h (regrename_do_replace): Change to return bool.
21917         * regrename.c (rename_chains): Check return value of
21918         regname_do_replace.
21919         (regrename_do_replace): Re-validate the modified insns and
21920         return bool status.
21921         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21922         Update to match rename_chains changes.
21923         * config/c6x/c6x.c (try_rename_operands): Assert that
21924         regrename_do_replace returns true.
21925
21926 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
21927
21928         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21929         operand 2 here.  Use copy_addr_to_reg to copy non-index
21930         register operand 2 to a temporary.
21931         (<mode>_stx): Ditto for operand 1.
21932         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21933         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21934         (ix86_store_bounds): Ditto.
21935
21936 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
21937
21938         * print-tree.c (print_node) [TREE_VEC]: Print its length.
21939
21940 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
21941
21942         * gimple.c (gimple_call_set_fndecl): Remove.
21943         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21944         build1_loc directly instead of build_fold_addr_expr_loc.
21945
21946 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21947
21948         * hash-map.h (hash_map::traverse): Use the definition of the
21949         Key typedef rather than the typedef itself.
21950
21951 2015-06-26  Martin Jambor  <mjambor@suse.cz>
21952
21953         PR debug/66301
21954         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21955         NULL instead of calling dump_enabled_p.
21956
21957 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21958
21959         * config/aarch64/aarch64.opt: (override): New.
21960         * doc/invoke.texi (override): Document.
21961         * config/aarch64/aarch64.c (aarch64_flag_desc): New
21962         (aarch64_fusible_pairs): Likewise.
21963         (aarch64_tuning_flags): Likewise.
21964         (aarch64_tuning_override_function): Likewise.
21965         (aarch64_tuning_override_functions): Likewise.
21966         (aarch64_parse_one_option_token): Likewise.
21967         (aarch64_parse_boolean_options): Likewise.
21968         (aarch64_parse_fuse_string): Likewise.
21969         (aarch64_parse_tune_string): Likewise.
21970         (aarch64_parse_one_override_token): Likewise.
21971         (aarch64_parse_override_string): Likewise.
21972         (aarch64_override_options): Parse the -override string if it
21973         is present.
21974
21975 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21976
21977         * config/aarch64/aarch64-protos.h (tune_params): Remove
21978         const from members.
21979         (aarch64_tune_params): Remove const, change to no longer be
21980         a pointer.
21981         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21982         change to no longer be a pointer, initialize to generic_tunings.
21983         (aarch64_min_divisions_for_recip_mul): Change dereference of
21984         aarch64_tune_params to member access.
21985         (aarch64_reassociation_width): Likewise.
21986         (aarch64_rtx_mult_cost): Likewise.
21987         (aarch64_address_cost): Likewise.
21988         (aarch64_branch_cost): Likewise.
21989         (aarch64_rtx_costs): Likewise.
21990         (aarch64_register_move_cost): Likewise.
21991         (aarch64_memory_move_cost): Likewise.
21992         (aarch64_sched_issue_rate): Likewise.
21993         (aarch64_builtin_vectorization_cost): Likewise.
21994         (aarch64_override_options): Take a copy of the selected tuning
21995         struct in to aarch64_tune_params, rather than just setting
21996         a pointer, change dereferences of aarch64_tune_params to member
21997         accesses.
21998         (aarch64_override_options_after_change): Change dereferences of
21999         aarch64_tune_params to member access.
22000         (aarch64_macro_fusion_p): Likewise.
22001         (aarch_macro_fusion_pair_p): Likewise.
22002         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22003
22004 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22005
22006         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22007         (aarch64_tune_flags): Likewise.
22008         (AARCH64_TUNE_FMA_STEERING): Likewise.
22009         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22010         to AARCH64_FL_USE_FMA_STEERING_PASS.
22011         (cortex-a57.cortex-a53): Likewise.
22012         (cortex-a72): Use cortexa72_tunings.
22013         (cortex-a72.cortex-a53): Likewise.
22014         (exynos-m1): Likewise.
22015         * config/aarch64/aarch64-protos.h (tune_params): Add
22016         a field: extra_tuning_flags.
22017         * config/aarch64/aarch64-tuning-flags.def: New.
22018         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22019         (aarch64_extra_tuning_flags): Likewise.
22020         (aarch64_tune_params): Declare here.
22021         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22022         (cortexa53_tunings): Likewise.
22023         (cortexa57_tunings): Likewise.
22024         (thunderx_tunings): Likewise.
22025         (xgene1_tunings): Likewise.
22026         (cortexa72_tunings): New.
22027         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22028          (gate): Check against aarch64_tune_params.
22029         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22030         aarch64-protos.h.
22031
22032 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22033
22034         * config/aarch64/aarch64-fusion-pairs.def: New.
22035         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22036         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22037         aarch64_fusion_pairs.
22038         (AARCH64_FUSE_MOV_MOVK): Likewise.
22039         (AARCH64_FUSE_ADRP_ADD): Likewise.
22040         (AARCH64_FUSE_MOVK_MOVK): Likewise.
22041         (AARCH64_FUSE_ADRP_LDR): Likewise.
22042         (AARCH64_FUSE_CMP_BRANCH): Likewise.
22043
22044 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22045
22046         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22047         SYMBOL_SMALL_GOT_28K.
22048         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22049         relocation modifiers.
22050         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22051         (ldr_got_small_28k_<mode>): New.
22052         (ldr_got_small_28k_sidi): New.
22053         * config/aarch64/iterators.md (got_modifier): New mode iterator.
22054         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22055         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22056         SYMBOL_SMALL_GOT_28K.
22057         (aarch64_rtx_costs): Add costs for new instruction sequences.
22058         (initialize_aarch64_code_model): Initialize new model.
22059         (aarch64_classify_symbol): Recognize new model and new symbol classification.
22060         (aarch64_asm_preferred_eh_data_format): Support new model.
22061         (aarch64_load_symref_appropriately): Generate new instruction
22062         sequences for -fpic.
22063         (TARGET_USE_PSEUDO_PIC_REG): New definition.
22064         (aarch64_use_pseudo_pic_reg): New function.
22065
22066 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
22067
22068         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22069         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22070         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22071         (aarch64_expand_mov_immediate): Ditto.
22072         (aarch64_print_operand): Ditto.
22073         (aarch64_classify_symbol): Ditto.
22074
22075 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
22076
22077         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22078
22079 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
22080
22081         PR bootstrap/66638
22082         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22083         assertion failed.  Remove assertion itself.
22084
22085 2015-06-26  Richard Biener  <rguenther@suse.de>
22086
22087         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22088         and -A CMP CST -> A CMP -CST which is redundant with a pattern
22089         in match.pd.
22090         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22091         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22092         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22093         * match.pd: ... patterns here.
22094
22095 2015-06-26  Marek Polacek  <polacek@redhat.com>
22096
22097         * match.pd ((x | y) & ~(x & y) -> x ^ y,
22098         (x | y) & (~x ^ y) -> x & y): New patterns.
22099
22100 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22101
22102         * rtl.h (emit): Add an optional boolean parameter to control
22103         whether barriers are emitted.
22104         * emit-rtl.c (emit): Likewise.
22105         * gensupport.c (get_emit_function): Return null rather than "emit".
22106         * genemit.c (gen_emit_seq): Handle the null return value.
22107         Don't emit barriers after the final instruction in the sequence.
22108         * gentarget-def.c (main): Don't emit barriers after the instruction.
22109
22110 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22111
22112         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22113         TARGET_UNIFIED_ASM.
22114
22115 2015-06-26  Richard Biener  <rguenther@suse.de>
22116
22117         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22118
22119 2015-06-26  Richard Biener  <rguenther@suse.de>
22120
22121         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22122         irrespective on whether the inner operation has a single use
22123         of both off are constant.
22124
22125 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
22126             Segher Boessenkool  <segher@kernel.crashing.org>
22127
22128         PR target/66412
22129         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22130         before doing PUT_MODE or PUT_CODE on operands to avoid
22131         in-place RTX modification.
22132
22133 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22134
22135         * gentarget-def.c (def_target_insn): Cast return of strtol to
22136         unsigned int.
22137
22138 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22139
22140         * gimple.h (gimple_call_set_fn): Move inline function.
22141         * gimple.c (gimple_call_set_fn): Relocate here.
22142
22143 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
22144
22145         PR target/65979
22146         PR target/66611
22147         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22148         the replacement insn will work.
22149
22150 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22151
22152         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22153         by default.
22154
22155 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22156
22157         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22158         * cgraph.h: Include ipa-ref.h and plugin-api.h.
22159         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22160         (symtab_node::address_can_be_compared_p): Move function.
22161         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22162         definition here.
22163         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22164         * auto-profile.c: Likewise.
22165         * bb-reorder.c: Likewise.
22166         * builtins.c: Likewise.
22167         * calls.c: Likewise.
22168         * cfgexpand.c: Likewise.
22169         * cgraphbuild.c: Likewise.
22170         * cgraphclones.c: Likewise.
22171         * cgraphunit.c: Likewise.
22172         * combine.c: Likewise.
22173         * coverage.c: Likewise.
22174         * data-streamer-in.c: Likewise.
22175         * data-streamer-out.c: Likewise.
22176         * data-streamer.c: Likewise.
22177         * dbxout.c: Likewise.
22178         * dwarf2out.c: Likewise.
22179         * except.c: Likewise.
22180         * expr.c: Likewise.
22181         * final.c: Likewise.
22182         * fold-const.c: Likewise.
22183         * ggc-page.c: Likewise.
22184         * gimple-fold.c: Likewise.
22185         * gimple-iterator.c: Likewise.
22186         * gimple-pretty-print.c: Likewise.
22187         * gimple-streamer-in.c: Likewise.
22188         * gimple-streamer-out.c: Likewise.
22189         * gimple.c: Likewise.
22190         * gimplify.c: Likewise.
22191         * ipa-chkp.c: Likewise.
22192         * ipa-comdats.c: Likewise.
22193         * ipa-cp.c: Likewise.
22194         * ipa-devirt.c: Likewise.
22195         * ipa-icf-gimple.c: Likewise.
22196         * ipa-icf.c: Likewise.
22197         * ipa-inline-analysis.c: Likewise.
22198         * ipa-inline-transform.c: Likewise.
22199         * ipa-inline.c: Likewise.
22200         * ipa-polymorphic-call.c: Likewise.
22201         * ipa-profile.c: Likewise.
22202         * ipa-prop.c: Likewise.
22203         * ipa-pure-const.c: Likewise.
22204         * ipa-ref.c: Likewise.
22205         * ipa-reference.c: Likewise.
22206         * ipa-split.c: Likewise.
22207         * ipa-utils.c: Likewise.
22208         * ipa-visibility.c: Likewise.
22209         * ipa.c: Likewise.
22210         * langhooks.c: Likewise.
22211         * lto-cgraph.c: Likewise.
22212         * lto-compress.c: Likewise.
22213         * lto-opts.c: Likewise.
22214         * lto-section-in.c: Likewise.
22215         * lto-section-out.c: Likewise.
22216         * lto-streamer-in.c: Likewise.
22217         * lto-streamer-out.c: Likewise.
22218         * lto-streamer.c: Likewise.
22219         * omp-low.c: Likewise.
22220         * opts-global.c: Likewise.
22221         * passes.c: Likewise.
22222         * predict.c: Likewise.
22223         * print-tree.c: Likewise.
22224         * profile.c: Likewise.
22225         * ree.c: Likewise.
22226         * sanopt.c: Likewise.
22227         * stor-layout.c: Likewise.
22228         * symtab.c: Likewise.
22229         * toplev.c: Likewise.
22230         * trans-mem.c: Likewise.
22231         * tree-cfg.c: Likewise.
22232         * tree-chkp.c: Likewise.
22233         * tree-eh.c: Likewise.
22234         * tree-emutls.c: Likewise.
22235         * tree-inline.c: Likewise.
22236         * tree-nested.c: Likewise.
22237         * tree-parloops.c: Likewise.
22238         * tree-pretty-print.c: Likewise.
22239         * tree-profile.c: Likewise.
22240         * tree-sra.c: Likewise.
22241         * tree-ssa-alias.c: Likewise.
22242         * tree-ssa-live.c: Likewise.
22243         * tree-ssa-loop-ivcanon.c: Likewise.
22244         * tree-ssa-loop-ivopts.c: Likewise.
22245         * tree-ssa-pre.c: Likewise.
22246         * tree-ssa-sccvn.c: Likewise.
22247         * tree-ssa-strlen.c: Likewise.
22248         * tree-ssa-structalias.c: Likewise.
22249         * tree-streamer-in.c: Likewise.
22250         * tree-streamer-out.c: Likewise.
22251         * tree-streamer.c: Likewise.
22252         * tree-switch-conversion.c: Likewise.
22253         * tree-tailcall.c: Likewise.
22254         * tree-vect-data-refs.c: Likewise.
22255         * tree-vect-stmts.c: Likewise.
22256         * tree-vectorizer.c: Likewise.
22257         * tree.c: Likewise.
22258         * tsan.c: Likewise.
22259         * ubsan.c: Likewise.
22260         * value-prof.c: Likewise.
22261         * varasm.c: Likewise.
22262         * varpool.c: Likewise.
22263         * config/arm/arm.c: Likewise.
22264         * config/bfin/bfin.c: Likewise.
22265         * config/c6x/c6x.c: Likewise.
22266         * config/cris/cris.c: Likewise.
22267         * config/darwin-c.c: Likewise.
22268         * config/darwin.c: Likewise.
22269         * config/i386/i386.c: Likewise.
22270         * config/i386/winnt.c: Likewise.
22271         * config/microblaze/microblaze.c: Likewise.
22272         * config/mips/mips.c: Likewise.
22273         * config/rs6000/rs6000.c: Likewise.
22274         * config/rx/rx.c: Likewise.
22275         * config/s390/s390.c: Likewise.
22276         * config/tilegx/mul-tables.c: Likewise.
22277
22278 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22279
22280         * config/aarch64/aarch64.c, config/alpha/alpha.c,
22281         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22282         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22283         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22284         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22285         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22286         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22287         config/microblaze/microblaze.c, config/mips/mips.c,
22288         config/mmix/mmix.c, config/mn10300/mn10300.c,
22289         config/moxie/moxie.c, config/msp430/msp430.c,
22290         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22291         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22292         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22293         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22294         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22295         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22296         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22297         target-def.h include.
22298         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
22299
22300 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22301
22302         * Makefile.in (TARGET_DEF): Add target-insns.def.
22303         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22304         (build/gentarget-def.o): New rule.
22305         (genprogrtl): Add target-def.
22306         * target-insns.def, gentarget-def.c: New files.
22307         * target.def: Add targetm.have_* and targetm.gen_* hooks,
22308         based on the contents of target-insns.def.
22309         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22310         (HAVE_return, gen_return): Delete.
22311         * target-def.h: Include insn-target-def.h.
22312         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22313         instead of direct calls.  Rely on them to do the appropriate assertions.
22314         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
22315         (convert_jumps_to_returns): Use targetm interface instead of
22316         direct calls.
22317         (thread_prologue_and_epilogue_insns): Likewise.
22318         * reorg.c (find_end_label, dbr_schedule): Likewise.
22319         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22320         * shrink-wrap.c (convert_to_simple_return): Likewise.
22321         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22322
22323 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22324
22325         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22326         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22327         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22328         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22329         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22330         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22331         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22332         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22333         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22334         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22335         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22336         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22337         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22338         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22339         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22340         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22341         includes to end.
22342
22343 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22344
22345         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22346         (unbounded_int_hashmap_traits::key_type): Likewise.
22347         * hash-map.h (hash_map): Get the key type from the traits.
22348         * hash-traits.h (default_hash_traits): By default, inherit from the
22349         template parameter.
22350         * alias.c (alias_set_traits): Delete.
22351         (alias_set_entry_d::children): Use alias_set_hash as the first
22352         template parameter.
22353         (record_alias_subset): Update accordingly.
22354         * except.c (tree_hash_traits): Delete.
22355         (type_to_runtime_map): Use tree_hash as the first template parameter.
22356         (init_eh): Update accordingly.
22357         * genmatch.c (capture_id_map_hasher): Delete.
22358         (cid_map_t): Use nofree_string_hash as first template parameter.
22359         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22360         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22361         Use symbol_compare_hash as the first template parameter in
22362         subdivide_hash_map.
22363         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22364         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22365         template parameter.
22366         * passes.c (pass_registry_hasher): Delete.
22367         (name_to_pass_map): Use nofree_string_hash as the first template
22368         parameter.
22369         (register_pass_name): Update accordingly.
22370         * sanopt.c (sanopt_tree_map_traits): Delete.
22371         (sanopt_tree_triplet_map_traits): Delete.
22372         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22373         template parameter.
22374         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22375         the first template parameter.
22376         * sese.c (rename_map_hasher): Delete.
22377         (rename_map_type): Use tree_ssa_name_hash as the first template
22378         parameter.
22379         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22380         (function_summary::m_map): Use map_hash as the first template
22381         parameter.
22382         (function_summary::release): Update accordingly.
22383         * tree-if-conv.c (phi_args_hash_traits): Delete.
22384         (predicate_scalar_phi): Use tree_operand_hash as the first template
22385         parameter to phi_arg_map.
22386         * tree-inline.h (dependence_hasher): Delete.
22387         (copy_body_data::dependence_map): Use dependence_hash as the first
22388         template parameter.
22389         * tree-inline.c (remap_dependence_clique): Update accordingly.
22390         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22391         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22392         parameter.
22393         (addr_stridxptr): Update accordingly.
22394         * value-prof.c (profile_id_traits): Delete.
22395         (cgraph_node_map): Use profile_id_hash as the first template
22396         parameter.
22397         (init_node_map): Update accordingly.
22398         * config/alpha/alpha.c (string_traits): Delete.
22399         (machine_function::links): Use nofree_string_hash as the first
22400         template parameter.
22401         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22402         * config/m32c/m32c.c (pragma_traits): Delete.
22403         (pragma_htab): Use nofree_string_hash as the first template parameter.
22404         (m32c_note_pragma_address): Update accordingly.
22405         * config/mep/mep.c (pragma_traits): Delete.
22406         (pragma_htab): Use nofree_string_hash as the first template parameter.
22407         (mep_note_pragma_flag): Update accordingly.
22408         * config/mips/mips.c (mips16_flip_traits): Delete.
22409         (mflip_mips16_htab): Use nofree_string_hash as the first template
22410         parameter.
22411         (mflip_mips16_use_mips16_p): Update accordingly.
22412         (local_alias_traits): Delete.
22413         (mips16_local_aliases): Use nofree_string_hash as the first template
22414         parameter.
22415         (mips16_local_alias): Update accordingly.
22416
22417 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22418
22419         * hash-map-traits.h (default_hashmap_traits): Delete.
22420
22421 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22422
22423         * hash-map-traits.h (unbounded_hashmap_traits): New class.
22424         (unbounded_int_hashmap_traits): Likewise.
22425         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22426
22427 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22428
22429         * ipa-icf.h (symbol_compare_hash): New class.
22430         (symbol_compare_hashmap_traits): Use it.
22431         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22432         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22433         (mem_alloc_description::reverse_mem_map_t): Remove redundant
22434         default_hashmap_traits.
22435         * sanopt.c (sanopt_tree_triplet_hash): New class.
22436         (sanopt_tree_triplet_map_traits): Use it.
22437
22438 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22439
22440         * gengtype-parse.c (require_template_declaration): Allow '+' in
22441         template parameters.  Consolidate cases.
22442         * hash-traits.h (int_hash): New class.
22443         * alias.c (alias_set_hash): New structure.
22444         (alias_set_traits): Use it.
22445         * symbol-summary.h (function_summary::map_hash): New class.
22446         (function_summary::summary_hashmap_traits): Use it.
22447         * tree-inline.h (dependence_hash): New class.
22448         (dependence_hasher): Use it.
22449         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22450         * value-prof.c (profile_id_hash): New class.
22451         (profile_id_traits): Use it.
22452
22453 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22454
22455         * config/mips/mips.c (mips16_flip_traits): Use it.
22456         (local_alias_traits, mips16_local_aliases): Convert from a map of
22457         rtxes to a map of symbol names.
22458         (mips16_local_alias): Update accordingly.
22459
22460 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22461
22462         * hash-traits.h (string_hash, nofree_string_hash): New classes.
22463         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22464         * passes.c (pass_registry_hasher): Likewise.
22465         * config/alpha/alpha.c (string_traits): Likewise.
22466         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22467         * config/m32c/m32c.c (pragma_traits): Likewise.
22468         * config/mep/mep.c (pragma_traits): Likewise.
22469
22470 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22471
22472         * tree-hash-traits.h (tree_hash): New class.
22473         * except.c: Include tree-hash-traits.h.
22474         (tree_hash_traits): Use tree_hash.
22475
22476 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22477
22478         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22479         * sese.c: Include tree-hash-traits.h.
22480         (rename_map_hasher): Use tree_ssa_name_hasher.
22481
22482 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22483
22484         * tree-hash-traits.h (tree_decl_hash): New class.
22485         * tree-ssa-strlen.c: Include tree-hash-traits.h.
22486         (stridxlist_hash_traits): Use tree_decl_hash.
22487
22488 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22489
22490         * tree-hash-traits.h: New file.
22491         (tree_operand_hash): New class.
22492         * sanopt.c: Include tree-hash-traits.h.
22493         (sanopt_tree_map_traits): Use tree_operand_hash.
22494         * tree-if-conv.c: Include tree-hash-traits.h.
22495         (phi_args_hash_traits): Use tree_operand_hash.
22496         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22497         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22498
22499 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22500
22501         * hash-map-traits.h: Include hash-traits.h.
22502         (simple_hashmap_traits): New class.
22503         * mem-stats.h (hash_map): Change the default traits to
22504         simple_hashmap_traits<default_hash_traits<Key> >.
22505
22506 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22507
22508         * hash-table.h: Update comments.
22509
22510 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22511
22512         * hash-traits.h (default_hash_traits): New structure.
22513         * hash-set.h (default_hashset_traits): Delete.
22514         (hash_set): Use default_hash_traits<Key> instead of
22515         default_hashset_traits.  Delete hash_entry type and use Key directly.
22516         * ipa-devirt.c (pair_traits): Delete.
22517         (default_hash_traits <type_pair>): Override.
22518         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22519         (odr_types_equivalent_p, add_type_duplicate): Likewise.
22520
22521 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22522
22523         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22524
22525 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22526
22527         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22528         (has_is_empty, is_empty_helper): Delete.
22529         (has_mark_deleted, mark_deleted_helper): Delete.
22530         (has_mark_empty, mark_empty_helper): Delete.
22531         (hash_table::is_deleted): Call the Descriptor unconditionally.
22532         (hash_table::is_empty): Likewise.
22533         (hash_table::mark_deleted): Likewise.
22534         (hash_table::mark_empty): Likewise.
22535
22536 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22537
22538         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
22539         redundant typedefs and members.
22540         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
22541         redundant typedefs.
22542         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22543         * ipa-devirt.c (odr_name_hasher): Likewise.
22544         (polymorphic_call_target_hasher): Likewise.
22545         * ira-costs.c (cost_classes_hasher): Likewise.
22546         * statistics.c (stats_counter_hasher): Likewise.
22547         * trans-mem.c (log_entry_hasher): Likewise.
22548         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22549         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22550         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22551         * var-tracking.c (variable_hasher): Likewise.
22552         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22553         Remove redundant typedefs and members.
22554
22555 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22556
22557         * hash-traits.h (ggc_cache_hasher): Rename to...
22558         (ggc_cache_remove): ...this and remove typedefs.
22559         (ggc_cache_ptr_hash): New class.
22560         * hash-table.h: Update commentary.
22561         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22562         rather than ggc_cache_hasher.
22563         (const_wide_int_hasher, reg_attr_hasher): Likewise.
22564         (const_double_hasher, const_fixed_hasher): Likewise.
22565         * function.c (insn_cache_hasher): Likewise.
22566         * trans-mem.c (tm_wrapper_hasher): Likewise.
22567         * tree.h (tree_decl_map_cache_hasher): Likewise.
22568         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22569         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22570         * ubsan.c (tree_type_map_cache_hasher): Likewise.
22571         * varasm.c (tm_clone_hasher): Likewise.
22572         * config/i386/i386.c (dllimport_hasher): Likewise.
22573         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22574         (tree_hasher): Likewise.
22575
22576 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22577
22578         * hash-traits.h (ggc_hasher): Rename to...
22579         (ggc_remover): ...this and remove typedefs.
22580         (ggc_cache_hasher): Update accordingly.  Add typedefs.
22581         (ggc_ptr_hash): New class.
22582         * hash-table.h: Update comment.
22583         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22584         ggc_hasher.
22585         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22586         (tree_descriptor_hasher): Likewise.
22587         * cgraph.c (function_version_hasher): Likewise.
22588         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22589         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22590         (dw_loc_list_hasher, addr_hasher): Likewise.
22591         * function.h (used_type_hasher): Likewise.
22592         * function.c (temp_address_hasher): Likewise.
22593         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22594         * libfuncs.h (libfunc_hasher): Likewise.
22595         * lto-streamer.h (decl_state_hasher): Likewise.
22596         * optabs.c (libfunc_decl_hasher): Likewise.
22597         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22598         * varasm.c (section_hasher, object_block_hasher): Likewise.
22599         (const_rtx_desc_hasher): Likewise.
22600         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22601         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22602
22603 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22604
22605         * hash-traits.h (free_ptr_hash): New class.
22606         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22607         rather than typed_free_remove.  Remove redudant typedefs.
22608         (external_ref_hasher): Likewise.
22609         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22610         (ehspec_hasher): Likewise.
22611         * ggc-common.c (saving_hasher): Likewise.
22612         * gimplify.c (gimplify_hasher): Likewise.
22613         * haifa-sched.c (delay_i2_hasher): Likewise.
22614         * loop-invariant.c (invariant_expr_hasher): Likewise.
22615         * loop-iv.c (biv_entry_hasher): Likewise.
22616         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22617         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22618         * tree-cfg.c (locus_discrim_hasher): Likewise.
22619         * tree-eh.c (finally_tree_hasher): Likewise.
22620         * tree-into-ssa.c (var_info_hasher): Likewise.
22621         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22622         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22623         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22624         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22625         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22626         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22627         (shared_bitmap_hasher): Likewise.
22628         * tree-ssa-threadupdate.c (redirection_data): Likewise.
22629         * tree-vectorizer.h (peel_info_hasher): Likewise.
22630         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22631         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22632
22633 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22634
22635         * hash-table.h: Update comments.
22636         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22637         (nofree_ptr_hash): New class.
22638         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22639         than typed_noop_remove.  Remove redudant typedefs.
22640         * attribs.c (attribute_hasher): Likewise.
22641         * cfg.c (bb_copy_hasher): Likewise.
22642         * cselib.c (cselib_hasher): Likewise.
22643         * dse.c (invariant_group_base_hasher): Likewise.
22644         * dwarf2cfi.c (trace_info_hasher): Likewise.
22645         * dwarf2out.c (macinfo_entry_hasher): Likewise.
22646         (comdat_type_hasher, loc_list_hasher): Likewise.
22647         * gcse.c (pre_ldst_expr_hasher): Likewise.
22648         * genmatch.c (id_base): Likewise.
22649         * genrecog.c (test_pattern_hasher): Likewise.
22650         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22651         * haifa-sched.c (delay_i1_hasher): Likewise.
22652         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22653         * ipa-icf.h (congruence_class_group_hash): Likewise.
22654         * ipa-profile.c (histogram_hash): Likewise.
22655         * ira-color.c (allocno_hard_regs_hasher): Likewise.
22656         * lto-streamer.h (string_slot_hasher): Likewise.
22657         * lto-streamer.c (tree_entry_hasher): Likewise.
22658         * plugin.c (event_hasher): Likewise.
22659         * postreload-gcse.c (expr_hasher): Likewise.
22660         * store-motion.c (st_expr_hasher): Likewise.
22661         * tree-sra.c (uid_decl_hasher): Likewise.
22662         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22663         (ssa_name_var_hash): Likewise.
22664         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22665         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22666         * tree-ssa-pre.c (pre_expr_d): Likewise.
22667         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22668         * vtable-verify.h (registration_hasher): Likewise.
22669         * vtable-verify.c (vtbl_map_hasher): Likewise.
22670         * config/arm/arm.c (libcall_hasher): Likewise.
22671         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22672         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22673         * config/sol2.c (comdat_entry_hasher): Likewise.
22674         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22675         (print_fold_checksum, fold_checksum_tree): Likewise.
22676         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22677         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22678         (fold_build_call_array_loc): Likewise.
22679         * tree-ssa-ccp.c (gimple_htab): Likewise.
22680         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22681         rather than pointer_type.
22682
22683 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22684
22685         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22686         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22687
22688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22689
22690         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22691         (ggc_hasher::ggc_mx): Likewise.
22692         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
22693         that duplicate ggc_hasher ones.
22694
22695 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22696
22697         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22698         (gt_cleare_cache): Check here for deleted and empty entries.
22699         Replace handle_cache_entry with a call to keep_cache_entry.
22700         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22701         (ggc_cache_hasher::keep_cache_entry): New function.
22702         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22703         (tm_wrapper_hasher::keep_cache_entry): New function.
22704         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22705         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22706         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22707         (type_cache_hasher::keep_cache_entry): New function.
22708         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22709         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22710         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22711         (tree_type_map_cache_hasher::keep_cache_entry): New function.
22712         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22713         (tm_clone_hasher::keep_cache_entry): New function.
22714         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22715         (dllimport_hasher::keep_cache_entry): New function.
22716
22717 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22718
22719         * hash-table.h: Include hash-traits.h.
22720         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22721         (ggc_cache_hasher): Move to...
22722         * hash-traits.h: ...this new file.
22723
22724 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22725
22726         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22727         struct cl_optimization.
22728         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22729         * tree.c (make_node_stat): Allocate cl_optimization struct.
22730         (copy_node_stat): Allocate and copy cl_optimization struct.
22731
22732 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22733
22734         * function.h (struct incoming_args): Move struct.
22735         (pass_by_reference, reference_callee_copied): Remove prototypes.
22736         * emit-rtl.h (struct incoming_args): Relocate struct here.
22737         * calls.h (pass_by_reference, reference_callee_copied): Relocate
22738         prototypes here.
22739         * function.c (pass_by_reference, reference_callee_copied): Move.
22740         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22741         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22742         * ipa-chkp.c: Include calls.h.
22743
22744 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
22745
22746         * alias.h (alias_set_type): Move typedef.
22747         * coretypes.h (alias_set_type): Relocate typedef here.
22748         * rtl.h: Don't include alias.h.
22749
22750 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22751
22752         * cgraph.h (cgraph_rtl_info): Move to rtl.h
22753         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22754         and instance.
22755         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22756         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22757         doesn't exist.
22758         * calls.c: Include hard-reg-set.h before rtl.h.
22759         * ira.c: Likewise.
22760
22761 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22762             Vladimir Makarov  <vmakarov@redhat.com>
22763
22764         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22765         Add assert.
22766
22767 2015-06-25  Richard Biener  <rguenther@suse.de>
22768
22769         * fold-const.c (fold_binary_loc): Move simplification of
22770         (X <<>> C1) & C2 ...
22771         * match.pd: ... here.
22772
22773 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22774
22775         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22776
22777 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22778
22779         * match.pd: Add patterns for vec_conds between 1 and 0.
22780
22781 2015-06-25  Richard Biener  <rguenther@suse.de>
22782
22783         * tree-vect-stmts.c (vectorizable_conversion): Do not set
22784         STMT_VINFO_VEC_STMT for SLP.
22785         (vectorizable_store): Likewise.
22786         (vectorizable_load): Likewise.
22787         (vect_transform_stmt): Catch SLP vectorization clobbering
22788         STMT_VINFO_VEC_STMT.
22789
22790 2015-06-25  Richard Biener  <rguenther@suse.de>
22791
22792         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22793         dumping.
22794         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22795         cleanup resulting dead code and parameters.
22796         (vect_transform_slp_perm_load): Adjust.
22797
22798 2015-06-25  Nick Clifton  <nickc@redhat.com>
22799
22800         * config/bfin/bfin.c (bfin_expand_prologue): Set
22801         current_function_static_stack_size if flag_stack_usage_info is set.
22802         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22803         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22804         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22805         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22806
22807 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22808
22809         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22810         comment that the generated IV is unsigned.
22811
22812 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22813
22814         PR target/29693
22815         * config/arm/arm.c (arm_dbx_register_number): Return
22816         DWARF_FRAME_REGISTERS by default.
22817
22818 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22819
22820         * dominance.c (calculate_dominance_info): Fix verify_dominators call
22821         argument.  Call verify_dominator when reusing dominator info.
22822
22823 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
22824
22825         PR target/66563
22826         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22827         an additional element of the unspec vector.  Modify indices
22828         of operands.
22829         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22830         * config/sh/sh.c (prepare_move_operands): Pass incremented
22831         const_int to gen_GOTaddr2picreg.
22832         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22833
22834 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22835
22836         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22837         Condition on TARGET_FLOAT.
22838
22839 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22840
22841         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22842         and (no)crypto.
22843
22844 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22845
22846         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22847
22848         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22849         aarch64_err_no_fpadvsimd.
22850
22851         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22852         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22853         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22854         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22855         Turn error into assert, test TARGET_FLOAT.
22856         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22857         TARGET_FLOAT.
22858
22859 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
22860
22861         PR debug/66482
22862         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22863
22864 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
22865
22866         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22867
22868 2015-06-24  Renlin Li <renlin.li@arm.com>
22869
22870         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22871         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22872
22873 2015-06-24  Richard Biener  <rguenther@suse.de>
22874
22875         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22876         (main): Likewise.
22877         (lower_opt_convert): Support lowering of conditional view_convert.
22878         (parser::parse_operation): Likewise.
22879         (parser::parse_for): Likewise.
22880
22881 2015-06-24  Renlin Li  <renlin.li@arm.com>
22882
22883         * varasm.c (emit_local): Use unsigned int for align variable.
22884
22885 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22886
22887         PR target/63408
22888         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22889         for negative numbers.
22890
22891 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22892
22893         PR rtl-optimization/66306
22894         * reload.c (find_reloads): Swap the match_dup info for
22895         commutative operands.
22896
22897 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22898
22899         * config/s390/vx-builtins.md
22900         ("vec_scatter_element<mode>_<non_vec_int>")
22901         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22902         attribute with bhfgq.
22903
22904 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22905
22906         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22907
22908 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22909
22910         * config/s390/s390-builtin-types.def: Add flag to indicate the
22911         options under which the function type is needed.
22912         * config/s390/s390-builtins.def: Add flag to indicate the options
22913         under which the builtin is enabled.
22914         * config/s390/s390-builtins.h: Add flags parameter to macro
22915         definitions.
22916         (bflags_for_builtin): New function.
22917         (flags_for_builtin): Renamed to ...
22918         (opflags_for_builtin): ... this.
22919         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22920         flags_for_builtin to bflags_for_builtin and
22921         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22922         * config/s390/s390.c: Add initialization of bflags_builtin and
22923         opflags_builtin arrays.
22924         Remove code for flags_builtin.
22925         (s390_init_builtins): Only create builtin function types if one of
22926         their flags is active.
22927         Only create builtins if all of their flags are active.
22928         (s390_expand_builtin): Rename flags_for_builtin to
22929         opflags_for_builtin.
22930
22931 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22932
22933         * config/s390/vecintrin.h: Remove internal builtins.
22934
22935 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22936
22937         * config/s390/s390.c (s390_secondary_reload): Fix check for
22938         GENERAL_REGS register class.
22939
22940 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22941
22942         * config/s390/s390.c (s390_support_vector_misalignment): Call
22943         default implementation for !TARGET_VX.
22944
22945 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22946
22947         * config/s390/s390.c (s390_legitimate_constant_p): Add
22948         TARGET_VX check.
22949
22950 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22951
22952         * config/s390/s390.c (s390_vector_abi): New variable definition.
22953         (s390_check_type_for_vector_abi): New function.
22954         (TARGET_ASM_FILE_END): New macro definition.
22955         (s390_asm_file_end): New function.
22956         (s390_function_arg): Call s390_check_type_for_vector_abi.
22957         (s390_gimplify_va_arg): Likewise.
22958         * configure: Regenerate.
22959         * configure.ac: Check for .gnu_attribute Binutils feature.
22960
22961 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
22962
22963         PR target/65803
22964         * config/bfin/bfin.c (hwloop_optimize): Initialize
22965         JUMP_LABEL for newly created jump.
22966
22967 2015-06-23  Tristan Gingold  <gingold@adacore.com>
22968
22969         * collect-utils.c (collect_wait): Unlink the response file here
22970         instead of...
22971         (do_wait): ...here.
22972         (utils_cleanup): ...and here.
22973
22974 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
22975
22976         * df-scan.c: Don't include target-def.h.
22977         * targhooks.c: Likewise.
22978         * config/arm/arm-c.c: Likewise.
22979         * config/i386/i386-c.c: Likewise.
22980         * config/nds32/nds32-cost.c: Likewise.
22981         * config/nds32/nds32-fp-as-gp.c: Likewise.
22982         * config/nds32/nds32-intrinsic.c: Likewise.
22983         * config/nds32/nds32-isr.c: Likewise.
22984         * config/nds32/nds32-md-auxiliary.c: Likewise.
22985         * config/nds32/nds32-memory-manipulation.c: Likewise.
22986         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22987         * config/nds32/nds32-predicates.c: Likewise.
22988
22989 2015-06-23  Richard Biener  <rguenther@suse.de>
22990
22991         PR tree-optimization/66636
22992         * tree-vect-stmts.c (vectorizable_store): Properly compute the
22993         def type for further defs for strided stores.
22994
22995 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
22996
22997         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22998         conditional selects.
22999         (setcc_int<mode>, setcc_float<mode>): Reformat.
23000
23001 2015-06-23  Marek Polacek  <polacek@redhat.com>
23002
23003         * match.pd ((x + y) - (x | y) -> x & y,
23004         (x + y) - (x & y) -> x | y): New patterns.
23005
23006 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
23007
23008         PR 65711
23009         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23010         '-dynamic-linker' within %{!shared: ...}.
23011
23012 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
23013
23014         PR target/66560
23015         * config/i386/predicates.md (addsub_vm_operator): New predicate.
23016         (addsub_vs_operator): Ditto.
23017         (addsub_vs_parallel): Ditto.
23018         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23019         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23020         Put minus RTX before plus and adjust vec_merge selector.
23021         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23022         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23023         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23024         (addsub vec_merge splitters): New combiner splitters.
23025         (addsub vec_select/vec_concat splitters): Ditto.
23026
23027 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
23028
23029         PR tree-optimization/66449
23030         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23031         POINTER_PLUS_EXPR for pointers.
23032
23033 2015-06-23  Alan Modra  <amodra@gmail.com>
23034
23035         * rtlanal.c (commutative_operand_precedence): Correct comments.
23036         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23037         declaration.  Return an int.  Distinguish REG,REG return from
23038         others.
23039         (struct simplify_plus_minus_op_data): Make local to function.
23040         (simplify_plus_minus): Don't set canonicalized if merely sorting
23041         registers.  Avoid packing ops if nothing changes.  White space fixes.
23042
23043 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
23044
23045         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23046         -fdump-ada-spec is passed but not if -fsyntax-only is.
23047
23048 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
23049
23050         PR bootstrap/63740
23051         * lra-lives.c (process_bb_lives): Check insn copying the same
23052         reload pseudo and don't create a copy for it.
23053
23054 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23055
23056         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23057         for cond_stmt.
23058
23059 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23060
23061         * builtins.def (DEF_GOMP_BUILTIN): Test
23062         'flag_tree_parallelize_loops > 1' instead of
23063         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
23064
23065 2015-06-22  Tom de Vries  <tom@codesourcery.com>
23066
23067         * dominance.c (calculate_dominance_info): Verify dominators if
23068         early-out.
23069
23070 2015-06-22  Marek Polacek  <polacek@redhat.com>
23071
23072         * match.pd ((x ^ y) ^ (x | y) -> x & y,
23073         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23074         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23075         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23076
23077 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
23078
23079         PR target/65871
23080         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23081         cost of embedded comparison.
23082
23083 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23084
23085         PR target/65914
23086         * config/rs6000/predicates.md (altivec_register_operand): Permit
23087         virtual stack registers.
23088         (vsx_register_operand): Likewise.
23089         (vfloat_operand): Likewise.
23090         (vint_operand): Likewise.
23091         (vlogical_operand): Likewise.
23092
23093 2015-06-22  Richard Biener  <rguenther@suse.de>
23094
23095         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23096         and single_scalar_iteration_cost members.
23097         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23098         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23099         (vect_get_single_scalar_iteration_cost): Remove.
23100         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23101         Use LOOP_VINFO_SCALAR_ITERATION_COST.
23102         * tree-vect-loop.c (destroy_loop_vec_info): Free
23103         scalar_cost_vec.
23104         (vect_get_single_scalar_iteration_cost): Compute result into
23105         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23106         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
23107         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23108         (vect_estimate_min_profitable_iters): Use them.
23109
23110 2015-06-22  Christian Bruel  <christian.bruel@st.com>
23111
23112         PR target/52144
23113         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23114         (TARGET_INSERT_ATTRIBUTES): Define.
23115         (thumb_flipper): New var.
23116         * config/arm/arm.opt (-mflip-thumb): New switch.
23117
23118 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23119             Martin Liska  <mliska@suse.cz>
23120
23121         PR ipa/65908
23122         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23123         construction of arg_types.
23124         (sem_function::sem_function): Likewise.
23125         (sem_function::~sem_function): Remove destruction of arg_types.
23126         (sem_function::compatible_parm_types_p): New function.
23127         (sem_function::equals_wpa): Reorg matching of return values
23128         and parameter types.
23129         (sem_function::equals_private): Reorg mathcing of argument types.
23130         (sem_function::parse_tree_args): Remove.
23131         * ipa-icf.h (init_wpa): Do not call it.
23132         (parse_tree_args): Remove.
23133         (compatible_parm_types_p): Declare.
23134         (result_type): Remove.
23135         (arg_types): Remove.
23136
23137 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23138
23139         PR ipa/66351
23140         * ipa-polymorphic-call.c
23141         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23142         initializing alias oracle; fix formating; set base_alias_set if it
23143         is known.
23144
23145 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
23146
23147         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23148         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23149         (find_inc): Likewise.
23150         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23151         swapping.
23152         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23153         * df-scan.c (df_swap_refs): Remove.
23154         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23155         * dominance.c (link_roots): Use std::swap instead of manually swapping.
23156         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23157         * fold-const.c (fold_relational_const): Likewise.
23158         * genattrtab.c (simplify_test_exp): Likewise.
23159         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23160         gimple_simplify): Likewise.
23161         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23162         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23163         * ipa-devirt.c (add_type_duplicate): Likewise.
23164         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23165         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23166         * lra.c (lra_create_copy): Likewise.
23167         * lto-streamer-out.c (DFS::DFS): Likewise.
23168         * modulo-sched.c (get_sched_window): Likewise.
23169         * omega.c (omega_pretty_print_problem): Likewise.
23170         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23171         * reload1.c (reloads_unique_chain_p): Likewise.
23172         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23173         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23174         use std::swap.
23175         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23176         manually swapping.
23177         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23178         predicate_mem_writes): Likewise.
23179         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23180         * tree-predcom.c (combine_chains): Likewise.
23181         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23182         refs_may_alias_p_1): Likewise.
23183         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23184         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23185         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23186         number_of_iterations_cond): Likewise.
23187         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23188         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23189         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23190         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23191         * tree-vrp.c (extract_range_from_binary_expr_1,
23192         extract_range_from_unary_expr_1): Likewise.
23193
23194 2015-06-20  Marek Polacek  <polacek@redhat.com>
23195
23196         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23197
23198 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23199
23200         PR target/66591
23201         * config/sh/sh.c (prepare_move_operands): Replace subreg
23202         index term with R0 for base and index addressing.
23203
23204 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
23205
23206         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23207         op1 is an fp zero.
23208         (movsf_aarch64): Change condition from register_operand to
23209         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
23210         load1.  Change type for alternative 7 to store1.
23211         (movdf_aarch64): Likewise.
23212
23213 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
23214
23215         * config/vax/vax.md: Adjust sign/zero extend patterns to
23216         handle SUBREGs in operands[1].
23217
23218 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23219
23220         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23221         of manually swapping.
23222         (expand_vec_perm_interleave2): Likewise.
23223
23224 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
23225
23226         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23227         reuse bounds created for abnormal ssa names.
23228
23229 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
23230
23231         * config/nvptx/nvptx.md (allocate_stack): Rename to...
23232         (allocate_stack_<mode>): ... this, and add :P on both
23233         match_operand and unspec.
23234         (allocate_stack): New expander.
23235
23236 2015-06-19  Christian Bruel  <christian.bruel@st.com>
23237
23238         PR target/66541
23239         PR target/52144
23240         * config/arm/arm.c (arm_set_current_function): Handle
23241         explicit default options.
23242
23243 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23244
23245         * config/i386/i386.md (*movsicc_noc_zext): New insn.
23246         (zero-extended cmove with mem peephole2): New pattern.
23247         (cmove with mem peephole2): Merge patterns.
23248
23249 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23250
23251         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23252
23253 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
23254
23255         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23256         * config/mips/mips.md (*madd4<mode>): Ditto.
23257         (*nmadd3<mode>) Ditto.
23258         (*nmadd4<mode>_fastmath): Ditto.
23259         (*nmadd3<mode>_fastmath): Ditto.
23260         (*nmsub4<mode>): Ditto.
23261         (*nmsub3<mode>): Ditto.
23262         (*nmsub4<mode>_fastmath): Ditto.
23263         (*nmsub3<mode>_fastmath): Ditto.
23264
23265 2015-06-18  Michael Matz  <matz@suse.de>
23266
23267         PR middle-end/66253
23268         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23269         grouped strided stores.
23270         (vectorizable_load): Don't use the DR from first_stmt in
23271         the non-SLP grouped strided case.
23272
23273 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23274
23275         PR target/66569
23276         * function.c (assign_bounds): Add arguments assign_regs,
23277         assign_special, assign_bt.
23278         (assign_parms): For vararg functions handle bounds in BT
23279         and special slots after incoming vararg bounds.
23280
23281 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23282
23283         PR middle-end/66568
23284         * cfgexpand.c (expand_return): Handle missing bounds.
23285         (expand_gimple_stmt_1): Likewise.
23286         * tree-chkp.c (chkp_expand_zero_bounds): New.
23287         * tree-chkp.h (chkp_expand_zero_bounds): New.
23288
23289 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23290
23291         PR middle-end/66567
23292         * ipa-chkp.c (chkp_maybe_create_clone): Require
23293         functions to be instrumentable.
23294         * tree-chkp.c (chkp_replace_function_pointer): Use
23295         chkp_instrumentable_p instead of attribute check.
23296
23297 2015-06-18  Richard Biener  <rguenther@suse.de>
23298
23299         PR tree-optimization/66510
23300         * tree-vect-stmts.c (vectorizable_load): Properly compute the
23301         number of vector loads for SLP permuted loads.
23302         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23303         check the stride for loop vectorization.
23304         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23305         vectorization factor.
23306         (vect_analyze_group_access): If the group size is not a power
23307         of two require a epilogue loop.
23308         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23309         compute and optimizing and alias test pruning after final
23310         vectorization factor computation.
23311         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23312         vector alignment.
23313         (vect_transform_slp_perm_load): Properly compute the original
23314         number of vector load stmts.
23315
23316 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23317
23318         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23319         "unlikely character , in @var" warning.
23320
23321 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
23322
23323         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23324         (ix86_function_arg_advance): Ditto.
23325         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
23326
23327 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23328
23329         * function.h (struct rtl_data): Remove struct and accessor macros.
23330         * emit-rtl.h (struct rtl_data): Relocate to here.
23331         * Makefile.in (GTFILES): Add emit-rtl.h.
23332         * df-core.c: Include emit-rtl.h.
23333         * genattrtab.c: Likewise.
23334         * genconditions.c: Likewise.
23335         * genpreds.c: Likewise.
23336         * genrecog.c: Likewise.
23337         * regcprop.c: Likewise.
23338         * resource.c: Likewise.
23339         * sched-rgn.c: Likewise.
23340         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23341         * config/i386/winnt.c: Likewise.
23342
23343 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
23344
23345         PR middle-end/66429
23346         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23347         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
23348         and has_force_vectorize_loops flags from cfun into
23349         child_cfun.
23350         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23351         if simduid is non-NULL.
23352         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23353         * passes.def (pass_simduid_cleanup): Add new pass after loop
23354         passes.
23355         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23356         indirection from htab argument's type.
23357         (shrink_simd_arrays): New function.
23358         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
23359         Don't call adjust_simduid_builtins if there are no loops.
23360         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23361         (pass_simduid_cleanup::execute): New method.
23362         (make_pass_simduid_cleanup): New function.
23363
23364 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
23365
23366         * tree-core.h (tree_target_option): Make opts field a pointer to a
23367         cl_target_option instead of an instance of the struct.
23368         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23369         the structure.
23370         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23371         TARGET_OPTION_NODE.
23372         (copy_node_stat): Allocate and copy struct cl_target_option.
23373
23374 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23375
23376         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23377         Remove conditional exposure of prototypes.
23378         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23379         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
23380         definitions in tree.h with functions.
23381         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23382         anon_aggrname_p.
23383         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23384
23385 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
23386
23387         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23388         (*cmp<mode>_signed): ... this.
23389         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23390         (*cmp<mode>_unsigned): ... this.  Remove %b.
23391
23392 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23393
23394         * coretypes.h: Include input.h and as-a.h.
23395         * rtl.h: Include input.h and as-a.h for generator files.
23396         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23397         * vec.c: Don't include diagnostic-core.h.
23398         * alias.c: Do not include input.h, line-map.h or is-a.h.
23399         * asan.c: Likewise.
23400         * attribs.c: Likewise.
23401         * auto-inc-dec.c: Likewise.
23402         * auto-profile.c: Likewise.
23403         * bb-reorder.c: Likewise.
23404         * bt-load.c: Likewise.
23405         * builtins.c: Likewise.
23406         * caller-save.c: Likewise.
23407         * calls.c: Likewise.
23408         * ccmp.c: Likewise.
23409         * cfg.c: Likewise.
23410         * cfganal.c: Likewise.
23411         * cfgbuild.c: Likewise.
23412         * cfgcleanup.c: Likewise.
23413         * cfgexpand.c: Likewise.
23414         * cfghooks.c: Likewise.
23415         * cfgloop.c: Likewise.
23416         * cfgloop.h: Likewise.
23417         * cfgloopanal.c: Likewise.
23418         * cfgloopmanip.c: Likewise.
23419         * cfgrtl.c: Likewise.
23420         * cgraph.c: Likewise.
23421         * cgraphbuild.c: Likewise.
23422         * cgraphclones.c: Likewise.
23423         * cgraphunit.c: Likewise.
23424         * cilk-common.c: Likewise.
23425         * combine-stack-adj.c: Likewise.
23426         * combine.c: Likewise.
23427         * compare-elim.c: Likewise.
23428         * convert.c: Likewise.
23429         * coverage.c: Likewise.
23430         * cppbuiltin.c: Likewise.
23431         * cprop.c: Likewise.
23432         * cse.c: Likewise.
23433         * cselib.c: Likewise.
23434         * data-streamer-in.c: Likewise.
23435         * data-streamer-out.c: Likewise.
23436         * data-streamer.c: Likewise.
23437         * dbxout.c: Likewise.
23438         * dce.c: Likewise.
23439         * ddg.c: Likewise.
23440         * debug.c: Likewise.
23441         * df-core.c: Likewise.
23442         * df-problems.c: Likewise.
23443         * df-scan.c: Likewise.
23444         * df.h: Likewise.
23445         * dfp.c: Likewise.
23446         * diagnostic-core.h: Likewise.
23447         * diagnostic.c: Likewise.
23448         * dojump.c: Likewise.
23449         * dominance.c: Likewise.
23450         * domwalk.c: Likewise.
23451         * double-int.c: Likewise.
23452         * dse.c: Likewise.
23453         * dumpfile.c: Likewise.
23454         * dumpfile.h: Likewise.
23455         * dwarf2asm.c: Likewise.
23456         * dwarf2cfi.c: Likewise.
23457         * dwarf2out.c: Likewise.
23458         * emit-rtl.c: Likewise.
23459         * et-forest.c: Likewise.
23460         * except.c: Likewise.
23461         * explow.c: Likewise.
23462         * expmed.c: Likewise.
23463         * expr.c: Likewise.
23464         * final.c: Likewise.
23465         * fixed-value.c: Likewise.
23466         * fold-const.c: Likewise.
23467         * function.c: Likewise.
23468         * fwprop.c: Likewise.
23469         * gcc-plugin.h: Likewise.
23470         * gcse.c: Likewise.
23471         * generic-match-head.c: Likewise.
23472         * ggc-page.c: Likewise.
23473         * gimple-builder.c: Likewise.
23474         * gimple-expr.c: Likewise.
23475         * gimple-fold.c: Likewise.
23476         * gimple-iterator.c: Likewise.
23477         * gimple-low.c: Likewise.
23478         * gimple-match-head.c: Likewise.
23479         * gimple-pretty-print.c: Likewise.
23480         * gimple-ssa-isolate-paths.c: Likewise.
23481         * gimple-ssa-strength-reduction.c: Likewise.
23482         * gimple-streamer-in.c: Likewise.
23483         * gimple-streamer-out.c: Likewise.
23484         * gimple-streamer.h: Likewise.
23485         * gimple-walk.c: Likewise.
23486         * gimple.c: Likewise.
23487         * gimplify-me.c: Likewise.
23488         * gimplify.c: Likewise.
23489         * godump.c: Likewise.
23490         * graph.c: Likewise.
23491         * graphite-blocking.c: Likewise.
23492         * graphite-dependences.c: Likewise.
23493         * graphite-interchange.c: Likewise.
23494         * graphite-isl-ast-to-gimple.c: Likewise.
23495         * graphite-optimize-isl.c: Likewise.
23496         * graphite-poly.c: Likewise.
23497         * graphite-scop-detection.c: Likewise.
23498         * graphite-sese-to-poly.c: Likewise.
23499         * graphite.c: Likewise.
23500         * haifa-sched.c: Likewise.
23501         * hw-doloop.c: Likewise.
23502         * ifcvt.c: Likewise.
23503         * init-regs.c: Likewise.
23504         * input.c: Likewise.
23505         * internal-fn.c: Likewise.
23506         * ipa-chkp.c: Likewise.
23507         * ipa-comdats.c: Likewise.
23508         * ipa-cp.c: Likewise.
23509         * ipa-devirt.c: Likewise.
23510         * ipa-icf-gimple.c: Likewise.
23511         * ipa-icf.c: Likewise.
23512         * ipa-inline-analysis.c: Likewise.
23513         * ipa-inline-transform.c: Likewise.
23514         * ipa-inline.c: Likewise.
23515         * ipa-polymorphic-call.c: Likewise.
23516         * ipa-profile.c: Likewise.
23517         * ipa-prop.c: Likewise.
23518         * ipa-pure-const.c: Likewise.
23519         * ipa-ref.c: Likewise.
23520         * ipa-reference.c: Likewise.
23521         * ipa-split.c: Likewise.
23522         * ipa-utils.c: Likewise.
23523         * ipa-visibility.c: Likewise.
23524         * ipa.c: Likewise.
23525         * ira-build.c: Likewise.
23526         * ira-color.c: Likewise.
23527         * ira-conflicts.c: Likewise.
23528         * ira-costs.c: Likewise.
23529         * ira-emit.c: Likewise.
23530         * ira-lives.c: Likewise.
23531         * ira.c: Likewise.
23532         * jump.c: Likewise.
23533         * langhooks.c: Likewise.
23534         * lcm.c: Likewise.
23535         * loop-doloop.c: Likewise.
23536         * loop-init.c: Likewise.
23537         * loop-invariant.c: Likewise.
23538         * loop-iv.c: Likewise.
23539         * loop-unroll.c: Likewise.
23540         * lower-subreg.c: Likewise.
23541         * lra-assigns.c: Likewise.
23542         * lra-coalesce.c: Likewise.
23543         * lra-constraints.c: Likewise.
23544         * lra-eliminations.c: Likewise.
23545         * lra-lives.c: Likewise.
23546         * lra-remat.c: Likewise.
23547         * lra-spills.c: Likewise.
23548         * lra.c: Likewise.
23549         * lto-cgraph.c: Likewise.
23550         * lto-compress.c: Likewise.
23551         * lto-opts.c: Likewise.
23552         * lto-section-in.c: Likewise.
23553         * lto-section-out.c: Likewise.
23554         * lto-streamer-in.c: Likewise.
23555         * lto-streamer-out.c: Likewise.
23556         * lto-streamer.c: Likewise.
23557         * mcf.c: Likewise.
23558         * mode-switching.c: Likewise.
23559         * modulo-sched.c: Likewise.
23560         * omega.c: Likewise.
23561         * omp-low.c: Likewise.
23562         * optabs.c: Likewise.
23563         * opts-global.c: Likewise.
23564         * opts.h: Likewise.
23565         * passes.c: Likewise.
23566         * plugin.c: Likewise.
23567         * postreload-gcse.c: Likewise.
23568         * postreload.c: Likewise.
23569         * predict.c: Likewise.
23570         * pretty-print.h: Likewise.
23571         * print-rtl.c: Likewise.
23572         * print-tree.c: Likewise.
23573         * profile.c: Likewise.
23574         * real.c: Likewise.
23575         * realmpfr.c: Likewise.
23576         * recog.c: Likewise.
23577         * ree.c: Likewise.
23578         * reg-stack.c: Likewise.
23579         * regcprop.c: Likewise.
23580         * reginfo.c: Likewise.
23581         * regrename.c: Likewise.
23582         * regstat.c: Likewise.
23583         * reload.c: Likewise.
23584         * reload1.c: Likewise.
23585         * reorg.c: Likewise.
23586         * resource.c: Likewise.
23587         * rtl-chkp.c: Likewise.
23588         * rtl-error.c: Likewise.
23589         * rtlanal.c: Likewise.
23590         * rtlhooks.c: Likewise.
23591         * sanopt.c: Likewise.
23592         * sched-deps.c: Likewise.
23593         * sched-ebb.c: Likewise.
23594         * sched-rgn.c: Likewise.
23595         * sched-vis.c: Likewise.
23596         * sdbout.c: Likewise.
23597         * sel-sched-dump.c: Likewise.
23598         * sel-sched-ir.c: Likewise.
23599         * sel-sched.c: Likewise.
23600         * sese.c: Likewise.
23601         * shrink-wrap.c: Likewise.
23602         * simplify-rtx.c: Likewise.
23603         * stack-ptr-mod.c: Likewise.
23604         * statistics.c: Likewise.
23605         * stmt.c: Likewise.
23606         * stor-layout.c: Likewise.
23607         * store-motion.c: Likewise.
23608         * streamer-hooks.c: Likewise.
23609         * stringpool.c: Likewise.
23610         * symtab.c: Likewise.
23611         * target-globals.c: Likewise.
23612         * targhooks.c: Likewise.
23613         * toplev.c: Likewise.
23614         * tracer.c: Likewise.
23615         * trans-mem.c: Likewise.
23616         * tree-affine.c: Likewise.
23617         * tree-browser.c: Likewise.
23618         * tree-call-cdce.c: Likewise.
23619         * tree-cfg.c: Likewise.
23620         * tree-cfgcleanup.c: Likewise.
23621         * tree-chkp-opt.c: Likewise.
23622         * tree-chkp.c: Likewise.
23623         * tree-chrec.c: Likewise.
23624         * tree-complex.c: Likewise.
23625         * tree-data-ref.c: Likewise.
23626         * tree-dfa.c: Likewise.
23627         * tree-diagnostic.c: Likewise.
23628         * tree-dump.c: Likewise.
23629         * tree-eh.c: Likewise.
23630         * tree-emutls.c: Likewise.
23631         * tree-if-conv.c: Likewise.
23632         * tree-inline.c: Likewise.
23633         * tree-into-ssa.c: Likewise.
23634         * tree-iterator.c: Likewise.
23635         * tree-loop-distribution.c: Likewise.
23636         * tree-nested.c: Likewise.
23637         * tree-nrv.c: Likewise.
23638         * tree-object-size.c: Likewise.
23639         * tree-outof-ssa.c: Likewise.
23640         * tree-parloops.c: Likewise.
23641         * tree-phinodes.c: Likewise.
23642         * tree-predcom.c: Likewise.
23643         * tree-pretty-print.c: Likewise.
23644         * tree-profile.c: Likewise.
23645         * tree-scalar-evolution.c: Likewise.
23646         * tree-sra.c: Likewise.
23647         * tree-ssa-address.c: Likewise.
23648         * tree-ssa-alias.c: Likewise.
23649         * tree-ssa-ccp.c: Likewise.
23650         * tree-ssa-coalesce.c: Likewise.
23651         * tree-ssa-copy.c: Likewise.
23652         * tree-ssa-copyrename.c: Likewise.
23653         * tree-ssa-dce.c: Likewise.
23654         * tree-ssa-dom.c: Likewise.
23655         * tree-ssa-dse.c: Likewise.
23656         * tree-ssa-forwprop.c: Likewise.
23657         * tree-ssa-ifcombine.c: Likewise.
23658         * tree-ssa-live.c: Likewise.
23659         * tree-ssa-loop-ch.c: Likewise.
23660         * tree-ssa-loop-im.c: Likewise.
23661         * tree-ssa-loop-ivcanon.c: Likewise.
23662         * tree-ssa-loop-ivopts.c: Likewise.
23663         * tree-ssa-loop-manip.c: Likewise.
23664         * tree-ssa-loop-niter.c: Likewise.
23665         * tree-ssa-loop-prefetch.c: Likewise.
23666         * tree-ssa-loop-unswitch.c: Likewise.
23667         * tree-ssa-loop.c: Likewise.
23668         * tree-ssa-math-opts.c: Likewise.
23669         * tree-ssa-operands.c: Likewise.
23670         * tree-ssa-phiopt.c: Likewise.
23671         * tree-ssa-phiprop.c: Likewise.
23672         * tree-ssa-pre.c: Likewise.
23673         * tree-ssa-propagate.c: Likewise.
23674         * tree-ssa-reassoc.c: Likewise.
23675         * tree-ssa-sccvn.c: Likewise.
23676         * tree-ssa-scopedtables.c: Likewise.
23677         * tree-ssa-sink.c: Likewise.
23678         * tree-ssa-strlen.c: Likewise.
23679         * tree-ssa-structalias.c: Likewise.
23680         * tree-ssa-tail-merge.c: Likewise.
23681         * tree-ssa-ter.c: Likewise.
23682         * tree-ssa-threadedge.c: Likewise.
23683         * tree-ssa-threadupdate.c: Likewise.
23684         * tree-ssa-uncprop.c: Likewise.
23685         * tree-ssa-uninit.c: Likewise.
23686         * tree-ssa.c: Likewise.
23687         * tree-ssanames.c: Likewise.
23688         * tree-stdarg.c: Likewise.
23689         * tree-streamer-in.c: Likewise.
23690         * tree-streamer-out.c: Likewise.
23691         * tree-streamer.c: Likewise.
23692         * tree-switch-conversion.c: Likewise.
23693         * tree-tailcall.c: Likewise.
23694         * tree-vect-data-refs.c: Likewise.
23695         * tree-vect-generic.c: Likewise.
23696         * tree-vect-loop-manip.c: Likewise.
23697         * tree-vect-loop.c: Likewise.
23698         * tree-vect-patterns.c: Likewise.
23699         * tree-vect-slp.c: Likewise.
23700         * tree-vect-stmts.c: Likewise.
23701         * tree-vectorizer.c: Likewise.
23702         * tree-vrp.c: Likewise.
23703         * tree.c: Likewise.
23704         * tsan.c: Likewise.
23705         * ubsan.c: Likewise.
23706         * valtrack.c: Likewise.
23707         * value-prof.c: Likewise.
23708         * var-tracking.c: Likewise.
23709         * varasm.c: Likewise.
23710         * varpool.c: Likewise.
23711         * vmsdbgout.c: Likewise.
23712         * vtable-verify.c: Likewise.
23713         * web.c: Likewise.
23714         * wide-int.cc: Likewise.
23715         * xcoffout.c: Likewise.
23716         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23717         * common/common-targhooks.c: Likewise.
23718         * config/aarch64/aarch64-builtins.c: Likewise.
23719         * config/aarch64/aarch64.c: Likewise.
23720         * config/alpha/alpha.c: Likewise.
23721         * config/arc/arc.c: Likewise.
23722         * config/arm/aarch-common.c: Likewise.
23723         * config/arm/arm-builtins.c: Likewise.
23724         * config/arm/arm-c.c: Likewise.
23725         * config/arm/arm.c: Likewise.
23726         * config/avr/avr-c.c: Likewise.
23727         * config/avr/avr-log.c: Likewise.
23728         * config/avr/avr.c: Likewise.
23729         * config/bfin/bfin.c: Likewise.
23730         * config/c6x/c6x.c: Likewise.
23731         * config/cr16/cr16.c: Likewise.
23732         * config/cris/cris.c: Likewise.
23733         * config/darwin-c.c: Likewise.
23734         * config/darwin.c: Likewise.
23735         * config/default-c.c: Likewise.
23736         * config/epiphany/epiphany.c: Likewise.
23737         * config/epiphany/mode-switch-use.c: Likewise.
23738         * config/epiphany/resolve-sw-modes.c: Likewise.
23739         * config/fr30/fr30.c: Likewise.
23740         * config/frv/frv.c: Likewise.
23741         * config/ft32/ft32.c: Likewise.
23742         * config/glibc-c.c: Likewise.
23743         * config/h8300/h8300.c: Likewise.
23744         * config/i386/i386-c.c: Likewise.
23745         * config/i386/i386.c: Likewise.
23746         * config/i386/msformat-c.c: Likewise.
23747         * config/i386/winnt-cxx.c: Likewise.
23748         * config/i386/winnt-stubs.c: Likewise.
23749         * config/i386/winnt.c: Likewise.
23750         * config/ia64/ia64-c.c: Likewise.
23751         * config/ia64/ia64.c: Likewise.
23752         * config/iq2000/iq2000.c: Likewise.
23753         * config/lm32/lm32.c: Likewise.
23754         * config/m32c/m32c-pragma.c: Likewise.
23755         * config/m32c/m32c.c: Likewise.
23756         * config/m32r/m32r.c: Likewise.
23757         * config/m68k/m68k.c: Likewise.
23758         * config/mcore/mcore.c: Likewise.
23759         * config/mep/mep-pragma.c: Likewise.
23760         * config/mep/mep.c: Likewise.
23761         * config/microblaze/microblaze-c.c: Likewise.
23762         * config/microblaze/microblaze.c: Likewise.
23763         * config/mips/mips.c: Likewise.
23764         * config/mmix/mmix.c: Likewise.
23765         * config/mn10300/mn10300.c: Likewise.
23766         * config/moxie/moxie.c: Likewise.
23767         * config/msp430/msp430-c.c: Likewise.
23768         * config/msp430/msp430.c: Likewise.
23769         * config/nds32/nds32-cost.c: Likewise.
23770         * config/nds32/nds32-fp-as-gp.c: Likewise.
23771         * config/nds32/nds32-intrinsic.c: Likewise.
23772         * config/nds32/nds32-isr.c: Likewise.
23773         * config/nds32/nds32-md-auxiliary.c: Likewise.
23774         * config/nds32/nds32-memory-manipulation.c: Likewise.
23775         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23776         * config/nds32/nds32-predicates.c: Likewise.
23777         * config/nds32/nds32.c: Likewise.
23778         * config/nios2/nios2.c: Likewise.
23779         * config/nvptx/nvptx.c: Likewise.
23780         * config/pa/pa.c: Likewise.
23781         * config/pdp11/pdp11.c: Likewise.
23782         * config/rl78/rl78-c.c: Likewise.
23783         * config/rl78/rl78.c: Likewise.
23784         * config/rs6000/rs6000-c.c: Likewise.
23785         * config/rs6000/rs6000.c: Likewise.
23786         * config/rx/rx.c: Likewise.
23787         * config/s390/s390-c.c: Likewise.
23788         * config/s390/s390.c: Likewise.
23789         * config/sh/sh-c.c: Likewise.
23790         * config/sh/sh-mem.cc: Likewise.
23791         * config/sh/sh.c: Likewise.
23792         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23793         * config/sh/sh_treg_combine.cc: Likewise.
23794         * config/sol2-c.c: Likewise.
23795         * config/sol2-cxx.c: Likewise.
23796         * config/sol2-stubs.c: Likewise.
23797         * config/sol2.c: Likewise.
23798         * config/sparc/sparc-c.c: Likewise.
23799         * config/sparc/sparc.c: Likewise.
23800         * config/spu/spu-c.c: Likewise.
23801         * config/spu/spu.c: Likewise.
23802         * config/stormy16/stormy16.c: Likewise.
23803         * config/tilegx/mul-tables.c: Likewise.
23804         * config/tilegx/tilegx-c.c: Likewise.
23805         * config/tilegx/tilegx.c: Likewise.
23806         * config/tilepro/mul-tables.c: Likewise.
23807         * config/tilepro/tilepro-c.c: Likewise.
23808         * config/tilepro/tilepro.c: Likewise.
23809         * config/v850/v850-c.c: Likewise.
23810         * config/v850/v850.c: Likewise.
23811         * config/vax/vax.c: Likewise.
23812         * config/visium/visium.c: Likewise.
23813         * config/vms/vms-c.c: Likewise.
23814         * config/vms/vms.c: Likewise.
23815         * config/vxworks.c: Likewise.
23816         * config/winnt-c.c: Likewise.
23817         * config/xtensa/xtensa.c: Likewise.
23818
23819 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
23820
23821         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23822         function.
23823         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23824
23825 2015-06-17  Richard Biener  <rguenther@suse.de>
23826
23827         PR tree-optimization/66251
23828         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23829         stmts for SLP strided stores.
23830
23831         Revert
23832         2015-05-22  Richard Biener  <rguenther@suse.de>
23833
23834         PR tree-optimization/66251
23835         * tree-vect-stmts.c (vectorizable_conversion): Properly
23836         set STMT_VINFO_VEC_STMT even for the SLP case.
23837
23838         2015-05-26  Michael Matz  <matz@suse.de>
23839
23840         PR middle-end/66251
23841         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23842         STMT_VINFO_VEC_STMT, also with SLP.
23843
23844 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
23845
23846         PR target/56766
23847         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23848         (*avx_addsubv4df3_1s): Ditto.
23849         (*sse3_addsubv2df3_1): Ditto.
23850         (*sse3_addsubv2df3_1s): Ditto.
23851         (*avx_addsubv8sf3_1): Ditto.
23852         (*avx_addsubv8sf3_1s): Ditto.
23853         (*sse3_addsubv4sf3_1): Ditto.
23854         (*sse3_addsubv4sf3_1s): Ditto.
23855
23856 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
23857
23858         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23859         (SYSROOT_SUFFIX_SPEC): Update.
23860         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23861         (STARTFILE_PREFIX_SPEC): Update.
23862         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23863         (MULTILIB_REQUIRED): New.
23864         (MULTILIB_OSDIRNAMES): New.
23865         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23866         (MULTILIB_REQUIRED): New.
23867         (MULTILIB_OSDIRNAMES): New.
23868
23869 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
23870
23871         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23872         * config/aarch64/aarch64-options-extensions.def: Update "fP",
23873         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
23874         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23875         (AARCH64_FL_PAN): New.
23876         (AARCH64_FL_LOR): New.
23877         (AARCH64_FL_RDMA): New.
23878         (AARCH64_FL_FOR_ARCH8_1): New.
23879         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23880         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23881
23882 2015-06-16  Martin Liska  <mliska@suse.cz>
23883
23884         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23885         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23886         guard.
23887
23888 2015-06-16  Richard Biener  <rguenther@suse.de>
23889
23890         * tree-vect-stmts.c (vectorizable_store): Adjust.
23891         (vectorizable_load): Likewise.
23892         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23893         Simplify.
23894         (vect_create_data_ref_ptr): Likewise.
23895         (bump_vector_ptr): Adjust.
23896
23897 2015-06-16  Richard Biener  <rguenther@suse.de>
23898
23899         * tree-vect-stmts.c (vectorizable_load): Properly start loads
23900         with the first element if this is grouped loads.
23901
23902 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
23903
23904         * config/arm/arm-protos.h (struct tune_params): Rename
23905         log_op_non_sc to log_op_non_short_circuit, and rename enum
23906         values to expand SC to SHORT_CIRCUIT.
23907         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23908         to LOG_OP_NON_SHORT_CIRCUIT.
23909         (arm_fastmul_tune):Likewise
23910         (arm_strongarm_tune): Likewise.
23911         (arm_xscale_tune): Likewise.
23912         (arm_9e_tune): Likewise.
23913         (arm_marvell_pj4_tune): Likewise.
23914         (arm_v6t2_tune): Likewise.
23915         (arm_cortex_tune): Likewise.
23916         (arm_cortex_a8_tune): Likewise.
23917         (arm_cortex_a7_tune): Likewise.
23918         (arm_cortex_a15_tune): Likewise.
23919         (arm_cortex_a53_tune): Likewise.
23920         (arm_cortex_a57_tune): Likewise.
23921         (arm_xgene1_tune): Likewise.
23922         (arm_cortex_a5_tune): Likewise.
23923         (arm_cortex_a9_tune): Likewise.
23924         (arm_cortex_a12_tune): Likewise.
23925         (arm_v7m_tune): Likewise.
23926         (arm_cortex_m7_tune): Likewise.
23927         (arm_v6m_tune): Likewise.
23928         (arm_fa726te_tune): Likewise.
23929
23930 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
23931
23932         * altivec.md: Delete UNSPEC_VMLADDUHM.
23933         (mulv4si3_p8): New pattern.
23934         (mulv4si3): Use it for POWER8.
23935         (mulv8hi3): Use vmladduhm with zero addend.
23936         (altivec_vmladduhm): Descriptive RTL.
23937
23938 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
23939
23940         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23941         to use neon_move instead of mov_imm.
23942         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23943         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23944
23945         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23946         aarch64_float_const_zero_rtx_p check before TFmode check.
23947         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23948         an fp zero.
23949         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
23950         code and attributes to match.  Change condition from register_operand
23951         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
23952         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
23953         to store2.
23954
23955 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
23956
23957         PR debug/66535
23958         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23959         there is no parent.
23960
23961 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
23962
23963         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23964         HOST_WIDE_INT parameter.
23965
23966 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
23967
23968         PR ipa/66181
23969         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23970         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23971         TYPE_NO_FORCE_BLK.
23972         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23973
23974 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
23975
23976         * rtl.h (classify_insn): Declare.
23977         * emit-rtl.c (classify_insn): Move to...
23978         * rtl.c: ...here and add generator support.
23979         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23980         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23981         * genemit.c (gen_emit_seq): New function.
23982         (gen_expand, gen_split): Use it.
23983
23984 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
23985
23986         * tree.c (make_vector_stat): Fix comment to state that the
23987         function returns a VECTOR_CST.
23988
23989 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
23990
23991         * gensupport.h (add_implicit_parallel): Declare.
23992         * genrecog.c (add_implicit_parallel): Move to...
23993         * gensupport.c (add_implicit_parallel): ...here.
23994         (process_one_cond_exec): Use it.
23995         * genemit.c (gen_insn): Likewise.
23996
23997 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
23998
23999         PR bootstrap/66448
24000         * passes.c (rest_of_decl_compilation): Do not register globals for
24001         early debug if they are declared in built-ins.
24002
24003 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
24004
24005         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24006
24007 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24008
24009         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24010         manually swapping.
24011         (noce_try_cmove_arith): Likewise.
24012         (noce_get_alt_condition): Likewise.
24013
24014 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24015
24016         * common/config/i386/i386-common.c
24017         (OPTION_MASK_ISA_MWAITX_SET): New.
24018         (ix86_handle_option): Handle mwaitx.
24019         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24020         (x86_64-*-*): Likewise.
24021         * config/i386/mwaitxintrin.h: New header.
24022         * config/i386/cpuid.h (bit_MWAITX):  Define.
24023         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24024         MWAITX support.
24025         * config/i386/i386.opt (mwaitx): New.
24026         * config/i386/i386-builtin-types.def
24027         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24028         * config/i386/i386-c.c: Define __MWAITX__ if needed.
24029         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24030         (PTA_MWAITX): New.
24031         (ix86_option_override_internal): Handle new option.
24032         (processor_alias_table): Added PTA_MWAITX.
24033         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24034         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24035         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24036         IX86_BUILTIN_MONITORX  built-ins.
24037         * config/i386/i386.h (TARGET_MWAITX): New.
24038         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24039         UNSPEC_MONITORX.
24040         (mwaitx):  New pattern.
24041         (monitorx_<mode>): New pattern.
24042         * config/i386/x86intrin.h: Include mwaitxintrin.h.
24043         * doc/extend.texi: Document monitorx and mwaitx builtins.
24044         * doc/invoke.texi: Document -mmwaitx option.
24045
24046 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
24047
24048         * emit-rtl.c (need_atomic_barrier_p): Mask model with
24049         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
24050
24051 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24052
24053         * dbxout.c (xcoff_debug_hooks): Provide a function for
24054         register_main_translation_unit hook.
24055
24056 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
24057
24058         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24059         variants cases from switch.
24060         (rs6000_post_atomic_barrier): Same.
24061         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24062         (rs6000_expand_atomic_exchange): Same.
24063         (rs6000_expand_atomic_op): Same.
24064         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24065         SYNC variants cases from switch.
24066         (atomic_load): Same.
24067         (atomic_store): Same.
24068
24069 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
24070
24071         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24072         CONST_INT for goto.
24073
24074 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
24075
24076         PR bootstrap/66448
24077         * dwarf2out.c (check_die): Check for common duplicate attributes.
24078         (add_location_or_const_value_attribute): Do not add duplicate
24079         attributes.
24080         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24081         time around.
24082         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24083         (gen_type_die_with_usage): Call check_die.
24084         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24085
24086 2015-06-11  Jason Merrill  <jason@redhat.com>
24087
24088         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24089         dies.
24090
24091 2015-06-11  Marek Polacek  <polacek@redhat.com>
24092
24093         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24094
24095 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
24096
24097         PR bootstrap/66252
24098         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24099         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24100         (*addx_extend_sp32): Fix pasto.
24101         (*subx_extend): Rename into...
24102         (*subx_extend_sp32): ...this.
24103         (*adddi3_extend_sp32): Add earlyclobber.
24104         (*subdi3_insn_sp32): Likewise.
24105         (*subdi3_extend_sp32): Likewise.
24106         (*and_not_di_sp32): Likewise.
24107         (*or_not_di_sp32): Likewise.
24108         (*xor_not_di_sp32): Likewise.
24109         (*negdi2_sp32): Likewise.
24110         (*one_cmpldi2_sp32): Likewise.
24111
24112 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
24113
24114         * debug.h (struct gcc_debug_hooks): Add a
24115         register_main_translation_unit hook.
24116         * debug.c (do_nothing_debug_hooks): Provide a function for this
24117         new hook.
24118         * dbxout.c (dbx_debug_hooks): Likewise.
24119         * sdbout.c (sdb_debug_hooks): Likewise.
24120         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24121         * dwarf2out.c (main_translation_unit): New global variable.
24122         (dwarf2out_register_main_translation_unit): New function
24123         implementing the new hook.
24124         (dwarf2_debug_hooks): Assign
24125         dwarf2out_register_main_translation_unit to this new hook.
24126         (dwarf2out_init): Associate any main translation unit to
24127         comp_unit_die ().
24128
24129 2015-06-11  Marek Polacek  <polacek@redhat.com>
24130
24131         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24132
24133 2015-06-11  Marek Polacek  <polacek@redhat.com>
24134
24135         * match.pd: Use single_use throughout.
24136
24137 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24138
24139         * config/arm/arm.c (arm_option_params_internal): When optimising
24140         for speed set max_insns_skipped when arm_restrict_it.
24141
24142 2015-06-11  Christian Bruel  <christian.bruel@st.com>
24143
24144         PR target/52144
24145         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24146          macros in ...
24147         (arm_cpu_builtins): New function.
24148         (arm_pragma_target_parse): Call arm_cpu_builtins.
24149         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24150         (arm_register_target_pragmas): Likewise.
24151         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24152          Call arm_register_target_pragmas.
24153         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24154         (arm_pragma_target_parse): Likewise.
24155
24156 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24157
24158         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24159         of the second operand.
24160
24161 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
24162
24163         PR target/66473
24164         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24165         to prepare mask operand for AVX512 modes.
24166
24167 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24168
24169         PR target/66474
24170         * doc/md.texi (Machine Constraints): Document that on the PowerPC
24171         if you use a constraint that targets a VSX register, you must use
24172         %x<n> in the template.
24173
24174 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
24175
24176         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24177         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24178         (define_insn "trap"): New definition.
24179
24180 2015-06-10  Richard Biener  <rguenther@suse.de>
24181
24182         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24183         out from ...
24184         (vect_supported_load_permutation_p): ... here.  Handle
24185         supportable permutations in reductions.
24186         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24187         for vectorizing strided group loads.
24188
24189 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
24190
24191         PR target/66470
24192         * config/i386/i386.c (ix86_split_long_move): For collisions
24193         involving direct tls segment refs, move the UNSPEC_TP possibly
24194         wrapped in ZERO_EXTEND out of the address for lea, to each of
24195         the memory loads.
24196
24197 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24198
24199         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24200         dmb sy. Adjust tabs.
24201
24202 2015-06-10  Tom de Vries  <tom@codesourcery.com>
24203
24204         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24205
24206 2015-06-10  Martin Liska  <mliska@suse.cz>
24207
24208         PR bootstrap/66471
24209         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24210         all enum values in mem_alloc_origin.
24211         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24212         name.
24213         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24214         * bitmap.c (bitmap_register): Likewise.
24215         (dump_bitmap_statistics): Likewise.
24216         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24217         (ggc_record_overhead): Likewise.
24218         * hash-map.h: Likewise.
24219         * hash-set.h: Likewise.
24220         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24221         * hash-table.h: Likewise.
24222         * vec.c (vec_prefix::register_overhead): Likewise.
24223         (vec_prefix::release_overhead): Likewise.
24224         (dump_vec_loc_statistics): Likewise.
24225
24226 2015-06-09  Christian Bruel  <christian.bruel@st.com>
24227
24228         PR target/52144
24229         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24230         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24231         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24232         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24233         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24234         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24235         (arm_valid_target_attribute_p): Likewise.
24236         (arm_set_current_function, arm_can_inline_p): Likewise.
24237         (arm_valid_target_attribute_rec): Likewise.
24238         (arm_previous_fndecl): New variable.
24239         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24240         (TARGET_CAN_INLINE_P): Define.
24241         (arm_asm_trampoline_template): Emit mode.
24242         (arm_file_start): Don't set unified syntax.
24243         (arm_declare_function_name): Set unified syntax and mode.
24244         (arm_option_override): Init target_option_default_node.
24245         and target_option_current_node.
24246         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24247         (*call_symbol): Likewise.
24248         * doc/extend.texi: Document ARM/Thumb target attribute.
24249         * doc/invoke.texi: Likewise.
24250
24251 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24252
24253         Revert:
24254         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24255         PR rtl-optimization/64164
24256         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24257         * tree-ssa-copyrename.c: Removed.
24258         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24259         -ftree-coalesce-vars.
24260         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24261         * common.opt (ftree-copyrename): Ignore.
24262         (ftree-coalesce-inlined-vars): Likewise.
24263         * doc/invoke.texi: Remove the ignored options above.
24264         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24265         * tree-ssa-coalesce.h: ... here.
24266         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24267         headers required by it.
24268         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24269         across variables when flag_tree_coalesce_vars.  Check register
24270         use and promoted modes to allow coalescing.  Moved to
24271         tree-ssa-coalesce.c.
24272         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24273         with its member functions to tree-ssa-coalesce.c.
24274         (var_map_base_init): Likewise.  Renamed to
24275         compute_samebase_partition_bases.
24276         (partition_view_normal): Drop want_bases parameter.
24277         (partition_view_bitmap): Likewise.
24278         * tree-ssa-live.h: Adjust declarations.
24279         * tree-ssa-coalesce.c: Include explow.h.
24280         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24281         default defs at the entry point.
24282         (dump_part_var_map): New.
24283         (compute_optimized_partition_bases): New, called by...
24284         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24285         of compute_samebase_partition_bases.  Adjust.
24286         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24287         * cfgexpand.c (leader_merge): New.
24288         (get_rtl_for_parm_ssa_default_def): New.
24289         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24290         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24291         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24292         redundant MEM attr setting.
24293         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24294         from...
24295         (expand_one_stack_var): ... this.  New wrapper to check and
24296         skip already expanded SSA partitions.
24297         (record_alignment_for_reg_var): New, factored out of...
24298         (expand_one_var): ... this.
24299         (expand_one_ssa_partition): New.
24300         (adjust_one_expanded_partition_var): New.
24301         (expand_one_register_var): Check and skip already expanded SSA
24302         partitions.
24303         (expand_used_vars): Don't create DECLs for anonymous SSA
24304         names.  Expand all SSA partitions, then adjust all SSA names.
24305         (pass::execute): Replace the loops that set
24306         SA.partition_to_pseudo from partition leaders and cleared
24307         DECL_RTL for multi-location variables, and that which used to
24308         rename vars and set attrs, with one that clears DECL_RTL and
24309         checks that PARMs and RESULTs default_defs match DECL_RTL.
24310         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24311         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24312         * explow.c (promote_ssa_mode): New.
24313         * explow.h (promote_ssa_mode): Declare.
24314         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24315         * function.c: Include cfgexpand.h.
24316         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24317         (use_register_for_parm_decl): Wrapper for the above to
24318         special-case the result_ptr.
24319         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24320         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24321         multiple locations.
24322         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24323         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24324         (assign_parm_setup_block): Prefer SSA-assigned location.
24325         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24326         if stack_parm is NULL.
24327         (assign_parm_setup_stack): Prefer SSA-assigned location.
24328         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24329         rtl before testing for pointer bounds.  Special-case result_ptr.
24330         (expand_function_start): Maybe reset DECL_RTL of result.
24331         Prefer SSA-assigned location for result and static chain.
24332         Factor out DECL_RESULT and SET_DECL_RTL.
24333         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24334         anonymous SSA names.  Use promote_ssa_mode.
24335         (get_temp_reg): Likewise.
24336         (remove_ssa_form): Adjust.
24337         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24338         and get its reg_usage for reg invalidation.
24339         (compute_bb_dataflow): Pass it insn.
24340         (emit_notes_in_bb): Likewise.
24341         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24342         fail assert on conversion between unsigned types.
24343
24344 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24345
24346         PR tree-optimization/65460
24347         * omp-low.c (expand_omp_target): Set parallelized_function on
24348         cgraph_node for child_fn.
24349
24350 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24351
24352         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24353         parallelized_function before add_new_function.
24354
24355 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
24356
24357         * gcc-plugin.h: Move decls to plugin.h and include it.
24358         * plugin.h: Relocate decls from gcc-plugin.h
24359         * ggc-page.c: Include required header files.
24360         * passes.c: Likewise.
24361         * cgraphunit.c: Likewise.
24362
24363 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24364
24365         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24366
24367 2015-06-09  Jason Merrill  <jason@redhat.com>
24368
24369         PR bootstrap/66448
24370         * toplev.c (check_global_declaration): Don't warn about a clone.
24371
24372 2015-06-09  Marek Polacek  <polacek@redhat.com>
24373
24374         PR tree-optimization/66299
24375         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24376         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24377         patterns.
24378
24379 2015-06-09  Richard Biener  <rguenther@suse.de>
24380
24381         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24382         (vect_analyze_slp_instance): Instead do not falsely drop
24383         load permutations.
24384
24385 2015-06-09  Richard Biener  <rguenther@suse.de>
24386
24387         PR middle-end/66423
24388         * match.pd: Handle A % (unsigned)(1 << B).
24389
24390 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
24391
24392         * varasm.c (output_object_block_htab): Remove.
24393         (output_object_block_compare): New.
24394         (output_object_blocks): Sort named object_blocks before outputting
24395         them.
24396
24397 2015-06-09  Richard Biener  <rguenther@suse.de>
24398
24399         PR tree-optimization/66419
24400         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24401         consider GROUP_GAP when detecting a perfect subchain.
24402
24403 2015-06-09  Nick Clifton  <nickc@redhat.com>
24404
24405         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24406         place read only data in the .frodata section.
24407
24408 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
24409
24410         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24411         (atomic_store<mode>): Likewise.
24412
24413 2015-06-09  Richard Biener  <rguenther@suse.de>
24414
24415         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24416
24417 2015-06-09  Richard Biener  <rguenther@suse.de>
24418
24419         PR middle-end/66413
24420         * tree-inline.c (insert_init_debug_bind): Unshare value.
24421
24422 2015-06-09  Richard Biener  <rguenther@suse.de>
24423
24424         PR tree-optimization/66396
24425         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24426         Rename virtual operands.
24427
24428 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24429
24430         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24431         always return false.
24432
24433 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24434
24435         PR rtl-optimization/64164
24436         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24437         * tree-ssa-copyrename.c: Removed.
24438         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24439         -ftree-coalesce-vars.
24440         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24441         * common.opt (ftree-copyrename): Ignore.
24442         (ftree-coalesce-inlined-vars): Likewise.
24443         * doc/invoke.texi: Remove the ignored options above.
24444         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24445         * tree-ssa-coalesce.h: ... here.
24446         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24447         headers required by it.
24448         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24449         across variables when flag_tree_coalesce_vars.  Check register
24450         use and promoted modes to allow coalescing.  Moved to
24451         tree-ssa-coalesce.c.
24452         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24453         with its member functions to tree-ssa-coalesce.c.
24454         (var_map_base_init): Likewise.  Renamed to
24455         compute_samebase_partition_bases.
24456         (partition_view_normal): Drop want_bases parameter.
24457         (partition_view_bitmap): Likewise.
24458         * tree-ssa-live.h: Adjust declarations.
24459         * tree-ssa-coalesce.c: Include explow.h.
24460         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24461         default defs at the entry point.
24462         (dump_part_var_map): New.
24463         (compute_optimized_partition_bases): New, called by...
24464         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24465         of compute_samebase_partition_bases.  Adjust.
24466         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24467         * cfgexpand.c (leader_merge): New.
24468         (get_rtl_for_parm_ssa_default_def): New.
24469         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24470         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24471         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24472         redundant MEM attr setting.
24473         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24474         from...
24475         (expand_one_stack_var): ... this.  New wrapper to check and
24476         skip already expanded SSA partitions.
24477         (record_alignment_for_reg_var): New, factored out of...
24478         (expand_one_var): ... this.
24479         (expand_one_ssa_partition): New.
24480         (adjust_one_expanded_partition_var): New.
24481         (expand_one_register_var): Check and skip already expanded SSA
24482         partitions.
24483         (expand_used_vars): Don't create DECLs for anonymous SSA
24484         names.  Expand all SSA partitions, then adjust all SSA names.
24485         (pass::execute): Replace the loops that set
24486         SA.partition_to_pseudo from partition leaders and cleared
24487         DECL_RTL for multi-location variables, and that which used to
24488         rename vars and set attrs, with one that clears DECL_RTL and
24489         checks that PARMs and RESULTs default_defs match DECL_RTL.
24490         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24491         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24492         * explow.c (promote_ssa_mode): New.
24493         * explow.h (promote_ssa_mode): Declare.
24494         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24495         * function.c: Include cfgexpand.h.
24496         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24497         (use_register_for_parm_decl): Wrapper for the above to
24498         special-case the result_ptr.
24499         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24500         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24501         multiple locations.
24502         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24503         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24504         (assign_parm_setup_block): Prefer SSA-assigned location.
24505         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24506         if stack_parm is NULL.
24507         (assign_parm_setup_stack): Prefer SSA-assigned location.
24508         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24509         rtl before testing for pointer bounds.  Special-case result_ptr.
24510         (expand_function_start): Maybe reset DECL_RTL of result.
24511         Prefer SSA-assigned location for result and static chain.
24512         Factor out DECL_RESULT and SET_DECL_RTL.
24513         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24514         anonymous SSA names.  Use promote_ssa_mode.
24515         (get_temp_reg): Likewise.
24516         (remove_ssa_form): Adjust.
24517         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24518         and get its reg_usage for reg invalidation.
24519         (compute_bb_dataflow): Pass it insn.
24520         (emit_notes_in_bb): Likewise.
24521         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24522         fail assert on conversion between unsigned types.
24523
24524 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24525
24526         PR debug/58315
24527         * tree-inline.c (reset_debug_binding): New.
24528         (reset_debug_bindings): Likewise.
24529         (expand_call_inline): Call it.
24530
24531 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24532
24533         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24534         TYPE_STRING_FLAG.
24535
24536 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24537
24538         * lto-streamer-out.c (lto_output_location): Stream
24539         reserved locations correctly.
24540         * lto-streamer-in.c (lto_output_location): Likewise.
24541
24542 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
24543
24544         * coretypes.h: Include hash-table.h and hash-set.h for host files.
24545         * ggc.h: Don't include statistics.h>
24546         * hash-map.h: Remove all includes.
24547         * hash-set.h: Likewise.
24548         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24549         the include list. Remove <new>.
24550         * inchash.h: Remove all includes.
24551         * mem-stats.h: Likewise.
24552         * vec.h: No special processing for generators or ggc.
24553         * alias.c : Adjust include files.
24554         * alloc-pool.c : Likewise.
24555         * alloc-pool.h : Likewise.
24556         * asan.c : Likewise.
24557         * attribs.c : Likewise.
24558         * auto-inc-dec.c : Likewise.
24559         * auto-profile.c : Likewise.
24560         * bb-reorder.c : Likewise.
24561         * bitmap.c : Likewise.
24562         * bitmap.h : Likewise.
24563         * bt-load.c : Likewise.
24564         * builtins.c : Likewise.
24565         * caller-save.c : Likewise.
24566         * calls.c : Likewise.
24567         * ccmp.c : Likewise.
24568         * cfg.c : Likewise.
24569         * cfganal.c : Likewise.
24570         * cfgbuild.c : Likewise.
24571         * cfgcleanup.c : Likewise.
24572         * cfgexpand.c : Likewise.
24573         * cfghooks.c : Likewise.
24574         * cfgloop.c : Likewise.
24575         * cfgloop.h : Likewise.
24576         * cfgloopanal.c : Likewise.
24577         * cfgloopmanip.c : Likewise.
24578         * cfgrtl.c : Likewise.
24579         * cgraph.c : Likewise.
24580         * cgraphbuild.c : Likewise.
24581         * cgraphclones.c : Likewise.
24582         * cgraphunit.c : Likewise.
24583         * cilk-common.c : Likewise.
24584         * combine-stack-adj.c : Likewise.
24585         * combine.c : Likewise.
24586         * compare-elim.c : Likewise.
24587         * context.c : Likewise.
24588         * convert.c : Likewise.
24589         * coverage.c : Likewise.
24590         * cppbuiltin.c : Likewise.
24591         * cprop.c : Likewise.
24592         * cse.c : Likewise.
24593         * cselib.c : Likewise.
24594         * data-streamer-in.c : Likewise.
24595         * data-streamer-out.c : Likewise.
24596         * data-streamer.c : Likewise.
24597         * data-streamer.h : Likewise.
24598         * dbxout.c : Likewise.
24599         * dce.c : Likewise.
24600         * ddg.c : Likewise.
24601         * debug.c : Likewise.
24602         * df-core.c : Likewise.
24603         * df-problems.c : Likewise.
24604         * df-scan.c : Likewise.
24605         * df.h : Likewise.
24606         * dfp.c : Likewise.
24607         * dojump.c : Likewise.
24608         * dominance.c : Likewise.
24609         * domwalk.c : Likewise.
24610         * double-int.c : Likewise.
24611         * dse.c : Likewise.
24612         * dumpfile.c : Likewise.
24613         * dwarf2asm.c : Likewise.
24614         * dwarf2cfi.c : Likewise.
24615         * dwarf2out.c : Likewise.
24616         * emit-rtl.c : Likewise.
24617         * et-forest.c : Likewise.
24618         * except.c : Likewise.
24619         * except.h : Likewise.
24620         * explow.c : Likewise.
24621         * expmed.c : Likewise.
24622         * expr.c : Likewise.
24623         * final.c : Likewise.
24624         * fixed-value.c : Likewise.
24625         * fold-const.c : Likewise.
24626         * function.c : Likewise.
24627         * fwprop.c : Likewise.
24628         * gcc-plugin.h : Likewise.
24629         * gcc.c : Likewise.
24630         * gcse-common.c : Likewise.
24631         * gcse.c : Likewise.
24632         * genattrtab.c : Likewise.
24633         * genautomata.c : Likewise.
24634         * genconditions.c : Likewise.
24635         * genemit.c : Likewise.
24636         * generic-match-head.c : Likewise.
24637         * genextract.c : Likewise.
24638         * gengtype-state.c : Likewise.
24639         * gengtype.c : Likewise.
24640         * genhooks.c : Likewise.
24641         * genmatch.c : Likewise.
24642         * genmodes.c : Likewise.
24643         * genrecog.c : Likewise.
24644         * gensupport.c : Likewise.
24645         * ggc-common.c : Likewise.
24646         * ggc-internal.h : Likewise.
24647         * ggc-none.c : Likewise.
24648         * ggc-page.c : Likewise.
24649         * gimple-builder.c : Likewise.
24650         * gimple-expr.c : Likewise.
24651         * gimple-fold.c : Likewise.
24652         * gimple-iterator.c : Likewise.
24653         * gimple-low.c : Likewise.
24654         * gimple-match-head.c : Likewise.
24655         * gimple-pretty-print.c : Likewise.
24656         * gimple-ssa-isolate-paths.c : Likewise.
24657         * gimple-ssa-strength-reduction.c : Likewise.
24658         * gimple-ssa.h : Likewise.
24659         * gimple-streamer-in.c : Likewise.
24660         * gimple-streamer-out.c : Likewise.
24661         * gimple-streamer.h : Likewise.
24662         * gimple-walk.c : Likewise.
24663         * gimple.c : Likewise.
24664         * gimplify-me.c : Likewise.
24665         * gimplify.c : Likewise.
24666         * godump.c : Likewise.
24667         * graph.c : Likewise.
24668         * graphds.c : Likewise.
24669         * graphite-blocking.c : Likewise.
24670         * graphite-dependences.c : Likewise.
24671         * graphite-interchange.c : Likewise.
24672         * graphite-isl-ast-to-gimple.c : Likewise.
24673         * graphite-optimize-isl.c : Likewise.
24674         * graphite-poly.c : Likewise.
24675         * graphite-scop-detection.c : Likewise.
24676         * graphite-sese-to-poly.c : Likewise.
24677         * graphite.c : Likewise.
24678         * haifa-sched.c : Likewise.
24679         * hard-reg-set.h : Likewise.
24680         * hw-doloop.c : Likewise.
24681         * ifcvt.c : Likewise.
24682         * inchash.c : Likewise.
24683         * incpath.c : Likewise.
24684         * init-regs.c : Likewise.
24685         * input.c : Likewise.
24686         * internal-fn.c : Likewise.
24687         * ipa-chkp.c : Likewise.
24688         * ipa-comdats.c : Likewise.
24689         * ipa-cp.c : Likewise.
24690         * ipa-devirt.c : Likewise.
24691         * ipa-icf-gimple.c : Likewise.
24692         * ipa-icf.c : Likewise.
24693         * ipa-inline-analysis.c : Likewise.
24694         * ipa-inline-transform.c : Likewise.
24695         * ipa-inline.c : Likewise.
24696         * ipa-polymorphic-call.c : Likewise.
24697         * ipa-profile.c : Likewise.
24698         * ipa-prop.c : Likewise.
24699         * ipa-pure-const.c : Likewise.
24700         * ipa-ref.c : Likewise.
24701         * ipa-reference.c : Likewise.
24702         * ipa-split.c : Likewise.
24703         * ipa-utils.c : Likewise.
24704         * ipa-visibility.c : Likewise.
24705         * ipa.c : Likewise.
24706         * ira-build.c : Likewise.
24707         * ira-color.c : Likewise.
24708         * ira-conflicts.c : Likewise.
24709         * ira-costs.c : Likewise.
24710         * ira-emit.c : Likewise.
24711         * ira-lives.c : Likewise.
24712         * ira.c : Likewise.
24713         * jump.c : Likewise.
24714         * langhooks.c : Likewise.
24715         * lcm.c : Likewise.
24716         * libfuncs.h : Likewise.
24717         * lists.c : Likewise.
24718         * loop-doloop.c : Likewise.
24719         * loop-init.c : Likewise.
24720         * loop-invariant.c : Likewise.
24721         * loop-iv.c : Likewise.
24722         * loop-unroll.c : Likewise.
24723         * lower-subreg.c : Likewise.
24724         * lra-assigns.c : Likewise.
24725         * lra-coalesce.c : Likewise.
24726         * lra-constraints.c : Likewise.
24727         * lra-eliminations.c : Likewise.
24728         * lra-lives.c : Likewise.
24729         * lra-remat.c : Likewise.
24730         * lra-spills.c : Likewise.
24731         * lra.c : Likewise.
24732         * lto-cgraph.c : Likewise.
24733         * lto-compress.c : Likewise.
24734         * lto-opts.c : Likewise.
24735         * lto-section-in.c : Likewise.
24736         * lto-section-out.c : Likewise.
24737         * lto-streamer-in.c : Likewise.
24738         * lto-streamer-out.c : Likewise.
24739         * lto-streamer.c : Likewise.
24740         * lto-streamer.h : Likewise.
24741         * mcf.c : Likewise.
24742         * mode-switching.c : Likewise.
24743         * modulo-sched.c : Likewise.
24744         * omega.c : Likewise.
24745         * omp-low.c : Likewise.
24746         * optabs.c : Likewise.
24747         * opts-global.c : Likewise.
24748         * opts.h : Likewise.
24749         * passes.c : Likewise.
24750         * plugin.c : Likewise.
24751         * postreload-gcse.c : Likewise.
24752         * postreload.c : Likewise.
24753         * predict.c : Likewise.
24754         * print-rtl.c : Likewise.
24755         * print-tree.c : Likewise.
24756         * profile.c : Likewise.
24757         * read-md.c : Likewise.
24758         * read-md.h : Likewise.
24759         * read-rtl.c : Likewise.
24760         * real.c : Likewise.
24761         * realmpfr.c : Likewise.
24762         * recog.c : Likewise.
24763         * ree.c : Likewise.
24764         * reg-stack.c : Likewise.
24765         * regcprop.c : Likewise.
24766         * reginfo.c : Likewise.
24767         * regrename.c : Likewise.
24768         * regstat.c : Likewise.
24769         * reload.c : Likewise.
24770         * reload1.c : Likewise.
24771         * reorg.c : Likewise.
24772         * resource.c : Likewise.
24773         * rtl-chkp.c : Likewise.
24774         * rtl.c : Likewise.
24775         * rtl.h : Likewise.
24776         * rtlanal.c : Likewise.
24777         * rtlhash.c : Likewise.
24778         * rtlhash.h : Likewise.
24779         * rtlhooks.c : Likewise.
24780         * sanopt.c : Likewise.
24781         * sched-deps.c : Likewise.
24782         * sched-ebb.c : Likewise.
24783         * sched-rgn.c : Likewise.
24784         * sched-vis.c : Likewise.
24785         * sdbout.c : Likewise.
24786         * sel-sched-dump.c : Likewise.
24787         * sel-sched-ir.c : Likewise.
24788         * sel-sched-ir.h : Likewise.
24789         * sel-sched.c : Likewise.
24790         * sese.c : Likewise.
24791         * shrink-wrap.c : Likewise.
24792         * shrink-wrap.h : Likewise.
24793         * simplify-rtx.c : Likewise.
24794         * stack-ptr-mod.c : Likewise.
24795         * statistics.c : Likewise.
24796         * stmt.c : Likewise.
24797         * stor-layout.c : Likewise.
24798         * store-motion.c : Likewise.
24799         * stringpool.c : Likewise.
24800         * symtab.c : Likewise.
24801         * target-globals.c : Likewise.
24802         * targhooks.c : Likewise.
24803         * tlink.c : Likewise.
24804         * toplev.c : Likewise.
24805         * tracer.c : Likewise.
24806         * trans-mem.c : Likewise.
24807         * tree-affine.c : Likewise.
24808         * tree-affine.h : Likewise.
24809         * tree-browser.c : Likewise.
24810         * tree-call-cdce.c : Likewise.
24811         * tree-cfg.c : Likewise.
24812         * tree-cfgcleanup.c : Likewise.
24813         * tree-chkp-opt.c : Likewise.
24814         * tree-chkp.c : Likewise.
24815         * tree-chrec.c : Likewise.
24816         * tree-complex.c : Likewise.
24817         * tree-data-ref.c : Likewise.
24818         * tree-dfa.c : Likewise.
24819         * tree-diagnostic.c : Likewise.
24820         * tree-dump.c : Likewise.
24821         * tree-eh.c : Likewise.
24822         * tree-eh.h : Likewise.
24823         * tree-emutls.c : Likewise.
24824         * tree-hasher.h : Likewise.
24825         * tree-if-conv.c : Likewise.
24826         * tree-inline.c : Likewise.
24827         * tree-inline.h : Likewise.
24828         * tree-into-ssa.c : Likewise.
24829         * tree-iterator.c : Likewise.
24830         * tree-loop-distribution.c : Likewise.
24831         * tree-nested.c : Likewise.
24832         * tree-nrv.c : Likewise.
24833         * tree-object-size.c : Likewise.
24834         * tree-outof-ssa.c : Likewise.
24835         * tree-parloops.c : Likewise.
24836         * tree-phinodes.c : Likewise.
24837         * tree-predcom.c : Likewise.
24838         * tree-pretty-print.c : Likewise.
24839         * tree-profile.c : Likewise.
24840         * tree-scalar-evolution.c : Likewise.
24841         * tree-sra.c : Likewise.
24842         * tree-ssa-address.c : Likewise.
24843         * tree-ssa-alias.c : Likewise.
24844         * tree-ssa-ccp.c : Likewise.
24845         * tree-ssa-coalesce.c : Likewise.
24846         * tree-ssa-copy.c : Likewise.
24847         * tree-ssa-copyrename.c : Likewise.
24848         * tree-ssa-dce.c : Likewise.
24849         * tree-ssa-dom.c : Likewise.
24850         * tree-ssa-dse.c : Likewise.
24851         * tree-ssa-forwprop.c : Likewise.
24852         * tree-ssa-ifcombine.c : Likewise.
24853         * tree-ssa-live.c : Likewise.
24854         * tree-ssa-loop-ch.c : Likewise.
24855         * tree-ssa-loop-im.c : Likewise.
24856         * tree-ssa-loop-ivcanon.c : Likewise.
24857         * tree-ssa-loop-ivopts.c : Likewise.
24858         * tree-ssa-loop-manip.c : Likewise.
24859         * tree-ssa-loop-niter.c : Likewise.
24860         * tree-ssa-loop-prefetch.c : Likewise.
24861         * tree-ssa-loop-unswitch.c : Likewise.
24862         * tree-ssa-loop.c : Likewise.
24863         * tree-ssa-math-opts.c : Likewise.
24864         * tree-ssa-operands.c : Likewise.
24865         * tree-ssa-phiopt.c : Likewise.
24866         * tree-ssa-phiprop.c : Likewise.
24867         * tree-ssa-pre.c : Likewise.
24868         * tree-ssa-propagate.c : Likewise.
24869         * tree-ssa-reassoc.c : Likewise.
24870         * tree-ssa-sccvn.c : Likewise.
24871         * tree-ssa-scopedtables.c : Likewise.
24872         * tree-ssa-sink.c : Likewise.
24873         * tree-ssa-strlen.c : Likewise.
24874         * tree-ssa-structalias.c : Likewise.
24875         * tree-ssa-tail-merge.c : Likewise.
24876         * tree-ssa-ter.c : Likewise.
24877         * tree-ssa-threadedge.c : Likewise.
24878         * tree-ssa-threadupdate.c : Likewise.
24879         * tree-ssa-uncprop.c : Likewise.
24880         * tree-ssa-uninit.c : Likewise.
24881         * tree-ssa.c : Likewise.
24882         * tree-ssanames.c : Likewise.
24883         * tree-stdarg.c : Likewise.
24884         * tree-streamer-in.c : Likewise.
24885         * tree-streamer-out.c : Likewise.
24886         * tree-streamer.c : Likewise.
24887         * tree-streamer.h : Likewise.
24888         * tree-switch-conversion.c : Likewise.
24889         * tree-tailcall.c : Likewise.
24890         * tree-vect-data-refs.c : Likewise.
24891         * tree-vect-generic.c : Likewise.
24892         * tree-vect-loop-manip.c : Likewise.
24893         * tree-vect-loop.c : Likewise.
24894         * tree-vect-patterns.c : Likewise.
24895         * tree-vect-slp.c : Likewise.
24896         * tree-vect-stmts.c : Likewise.
24897         * tree-vectorizer.c : Likewise.
24898         * tree-vectorizer.h : Likewise.
24899         * tree-vrp.c : Likewise.
24900         * tree.c : Likewise.
24901         * tsan.c : Likewise.
24902         * ubsan.c : Likewise.
24903         * valtrack.c : Likewise.
24904         * valtrack.h : Likewise.
24905         * value-prof.c : Likewise.
24906         * var-tracking.c : Likewise.
24907         * varasm.c : Likewise.
24908         * varpool.c : Likewise.
24909         * vec.c: Likewise.
24910         * vmsdbgout.c : Likewise.
24911         * vtable-verify.c : Likewise.
24912         * vtable-verify.h : Likewise.
24913         * web.c : Likewise.
24914         * wide-int.cc : Likewise.
24915         * xcoffout.c : Likewise.
24916         * config/aarch64/aarch64-builtins.c : Likewise.
24917         * config/aarch64/aarch64.c : Likewise.
24918         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24919         * config/alpha/alpha.c : Likewise.
24920         * config/arc/arc.c : Likewise.
24921         * config/arm/aarch-common.c : Likewise.
24922         * config/arm/arm-builtins.c : Likewise.
24923         * config/arm/arm-c.c : Likewise.
24924         * config/arm/arm.c : Likewise.
24925         * config/avr/avr-c.c : Likewise.
24926         * config/avr/avr-log.c : Likewise.
24927         * config/avr/avr.c : Likewise.
24928         * config/bfin/bfin.c : Likewise.
24929         * config/c6x/c6x.c : Likewise.
24930         * config/cr16/cr16.c : Likewise.
24931         * config/cris/cris.c : Likewise.
24932         * config/darwin-c.c : Likewise.
24933         * config/darwin.c : Likewise.
24934         * config/default-c.c : Likewise.
24935         * config/epiphany/epiphany.c : Likewise.
24936         * config/epiphany/mode-switch-use.c : Likewise.
24937         * config/epiphany/resolve-sw-modes.c : Likewise.
24938         * config/fr30/fr30.c : Likewise.
24939         * config/frv/frv.c : Likewise.
24940         * config/ft32/ft32.c : Likewise.
24941         * config/glibc-c.c : Likewise.
24942         * config/h8300/h8300.c : Likewise.
24943         * config/i386/i386-c.c : Likewise.
24944         * config/i386/i386.c : Likewise.
24945         * config/i386/msformat-c.c : Likewise.
24946         * config/i386/winnt-cxx.c : Likewise.
24947         * config/i386/winnt-stubs.c : Likewise.
24948         * config/i386/winnt.c : Likewise.
24949         * config/ia64/ia64-c.c : Likewise.
24950         * config/ia64/ia64.c : Likewise.
24951         * config/iq2000/iq2000.c : Likewise.
24952         * config/lm32/lm32.c : Likewise.
24953         * config/m32c/m32c-pragma.c : Likewise.
24954         * config/m32c/m32c.c : Likewise.
24955         * config/m32r/m32r.c : Likewise.
24956         * config/m68k/m68k.c : Likewise.
24957         * config/mcore/mcore.c : Likewise.
24958         * config/mep/mep-pragma.c : Likewise.
24959         * config/mep/mep.c : Likewise.
24960         * config/microblaze/microblaze-c.c : Likewise.
24961         * config/microblaze/microblaze.c : Likewise.
24962         * config/mips/mips.c : Likewise.
24963         * config/mmix/mmix.c : Likewise.
24964         * config/mn10300/mn10300.c : Likewise.
24965         * config/moxie/moxie.c : Likewise.
24966         * config/msp430/msp430-c.c : Likewise.
24967         * config/msp430/msp430.c : Likewise.
24968         * config/nds32/nds32-cost.c : Likewise.
24969         * config/nds32/nds32-fp-as-gp.c : Likewise.
24970         * config/nds32/nds32-intrinsic.c : Likewise.
24971         * config/nds32/nds32-isr.c : Likewise.
24972         * config/nds32/nds32-md-auxiliary.c : Likewise.
24973         * config/nds32/nds32-memory-manipulation.c : Likewise.
24974         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24975         * config/nds32/nds32-predicates.c : Likewise.
24976         * config/nds32/nds32.c : Likewise.
24977         * config/nios2/nios2.c : Likewise.
24978         * config/nvptx/nvptx.c : Likewise.
24979         * config/pa/pa.c : Likewise.
24980         * config/pdp11/pdp11.c : Likewise.
24981         * config/rl78/rl78-c.c : Likewise.
24982         * config/rl78/rl78.c : Likewise.
24983         * config/rs6000/rs6000-c.c : Likewise.
24984         * config/rs6000/rs6000.c : Likewise.
24985         * config/rx/rx.c : Likewise.
24986         * config/s390/s390-c.c : Likewise.
24987         * config/s390/s390.c : Likewise.
24988         * config/sh/sh-c.c : Likewise.
24989         * config/sh/sh-mem.cc : Likewise.
24990         * config/sh/sh.c : Likewise.
24991         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24992         * config/sh/sh_treg_combine.cc : Likewise.
24993         * config/sol2-c.c : Likewise.
24994         * config/sol2-cxx.c : Likewise.
24995         * config/sol2-stubs.c : Likewise.
24996         * config/sol2.c : Likewise.
24997         * config/sparc/sparc-c.c : Likewise.
24998         * config/sparc/sparc.c : Likewise.
24999         * config/spu/spu-c.c : Likewise.
25000         * config/spu/spu.c : Likewise.
25001         * config/stormy16/stormy16.c : Likewise.
25002         * config/tilegx/mul-tables.c : Likewise.
25003         * config/tilegx/tilegx-c.c : Likewise.
25004         * config/tilegx/tilegx.c : Likewise.
25005         * config/tilepro/mul-tables.c : Likewise.
25006         * config/tilepro/tilepro-c.c : Likewise.
25007         * config/tilepro/tilepro.c : Likewise.
25008         * config/v850/v850-c.c : Likewise.
25009         * config/v850/v850.c : Likewise.
25010         * config/vax/vax.c : Likewise.
25011         * config/visium/visium.c : Likewise.
25012         * config/vms/vms-c.c : Likewise.
25013         * config/vms/vms.c : Likewise.
25014         * config/vxworks.c : Likewise.
25015         * config/winnt-c.c : Likewise.
25016         * config/xtensa/xtensa.c : Likewise.
25017
25018 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25019
25020         PR lto/65378
25021         * ipa-utils.h (warn_types_mismatch): Update prototype.
25022         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25023         parameters.
25024         (type_mismatch_p): New function.
25025         (warn_types_mismatch): Reorg to work better on non-C++ types.
25026         (odr_types_equivalent_p): Add loc1/loc2 parameters.
25027         (add_type_duplicate): Update.
25028
25029 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25030
25031         PR rtl-optimization/66444
25032         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25033         call_used_regs.
25034
25035 2015-06-08  Richard Biener  <rguenther@suse.de>
25036
25037         PR tree-optimization/66422
25038         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25039         block after inserted gcc_unreachable.
25040
25041 2015-06-08  Nick Clifton  <nickc@redhat.com>
25042
25043         * config/rx/rx.c (rx_function_value): Do not promote vector types.
25044         (rx_promote_function_mode): Likewise.
25045         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25046
25047 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
25048
25049         * genattrtab.c (insn_alternatives): Change type from int *
25050         to uint64_t *.
25051         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25052         (get_attr_value): Change type of num_alt to uint64_t.
25053         (compute_alternative_mask): Change return type from
25054         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25055         (make_alternative_compare, mk_attr_alt): Change argument type
25056         from int to uint64_t.
25057         (simplify_test_exp): Change type of i from int to uint64_t.
25058         Shift ((uint64_t) 1) instead of 1 up.
25059         (main): Adjust oballocvec first argument from int to uint64_t.
25060         Shift ((uint64_t) 1) instead of 1 up.
25061
25062 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
25063
25064         PR other/65366
25065         * gdbhooks.py: Import sys.
25066         (intptr): New function.  Replace int(...) by intptr(...).
25067
25068 2015-06-08  Richard Biener  <rguenther@suse.de>
25069
25070         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25071         adjustment for gaps at the end of a SLP load group properly.
25072         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25073         all permutations we can generate.
25074         (vect_transform_slp_perm_load): Use the correct group-size.
25075
25076 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
25077
25078         * genmatch.c (expr::gen_transform): For conditions, guess the type
25079         from the second operand.
25080
25081 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25082
25083         PR tree-optimization/66442
25084         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25085         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25086         if the loop latch is not a singleton.  Use
25087         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25088
25089 2015-06-08  Marek Polacek  <polacek@redhat.com>
25090
25091         PR sanitizer/66452
25092         * toplev.c (check_global_declaration): Don't warn about artificial
25093         decls.
25094
25095 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25096
25097         PR tree-optimization/66436
25098         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25099         dump file.
25100         * gimplify.c: Add tree-dump.h include.
25101         (gimplify_function_tree): Dump function to gimple dump file.
25102         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25103         dump file.
25104
25105 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25106
25107         PR tree-optimization/66435
25108         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25109         function.
25110
25111 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
25112
25113         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25114         of ptr_type_node to not be ptr_to_node.
25115         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25116         TREE_TYPE of pointers.
25117         * gimple-expr.c (useless_type_conversion): Reorder the check for
25118         function pointers and TYPE_CANONICAL.
25119
25120 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
25121
25122         PR bootstrap/66319
25123         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25124         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25125         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25126         later.
25127         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25128         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25129         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25130         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25131         and non iso if unix2003.
25132
25133 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
25134
25135         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25136
25137 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
25138
25139         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25140         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25141         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25142         except.c, final.c, function.c, gcse-common.c, genemit.c,
25143         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25144         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25145         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25146         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25147         more derived ones.
25148
25149 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
25150
25151         * combine.c (combine_split_insns): Remove cast.
25152         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25153         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25154         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25155         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25156         * genemit.c (gen_split): Change return type of generated functions to
25157         rtx_insn.
25158         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25159         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25160         gen_peephole2_* functions.
25161         (print_subroutine, main): Likewise.
25162         * recog.c (peephole2_optimize): Remove cast.
25163         (peep2_next_insn): Promote return type to rtx_insn.
25164         * recog.h (peep2_next_insn): Fix prototype.
25165         * rtl.h (try_split, split_insns): Likewise.
25166
25167 2015-06-06  DJ Delorie  <dj@redhat.com>
25168
25169         * config/msp430/msp430.c (msp430_asm_integer): Support addition
25170         and subtraction too.
25171
25172 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25173
25174         PR target/66410
25175         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25176         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25177         instead of Snd.  Disparage Sid/z alternative with '^'.
25178
25179 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
25180
25181         * dwarf2out.c: Remove deferred_locations*.
25182         (dwarf2_debug_hooks): Add early_finish hook.
25183         Remove global_decl hook.
25184         Add early_global_decl and late_global_decl hook.
25185         New global early_dwarf.
25186         New structure set_early_dwarf.
25187         (output_die): Indicate whether a DIE was generated early
25188         when generating assembly with -dA.
25189         (struct limbo_die_struct): Document created_for field.
25190         Remove file_table_last_lookup.
25191         (remove_AT): Return TRUE if successful.
25192         (remove_child_TAG): Clear die_parent.
25193         (reparent_child): New function abstracted from...
25194         (splice_child_die): ...here.
25195         (new_die): ICE if a DIE ends up in limbo too late.
25196         (check_die): New.
25197         (defer_location): Remove.
25198         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25199         (fill_variable_array_bounds): New.
25200         (decl_start_label): Call fill_variable_array_bounds.
25201         (gen_formal_parameter_die): Rewrite to reuse previously generated
25202         DIEs.
25203         (gen_subprogram_die): Same.
25204         (gen_variable_die): Same.
25205         (gen_const_die): Same.
25206         (gen_label_die): Same.
25207         (gen_lexical_block_die): Same.
25208         (decl_will_get_specification_p): New.
25209         (local_function_static): New.
25210         (gen_struct_or_union_type_die): Fill in variable-length fields.
25211         (gen_typedef_die): Fill in variable-length typedefs.
25212         (gen_tagged_type_die): Gracefully return on error_mark_node.
25213         Handle re-entrancy.
25214         (gen_type_die_with_usage): Handle variable-length types.
25215         Remove duplicate code for ARRAY_TYPE case.
25216         (process_scope_var): Only process imported modules during early
25217         dwarf.
25218         (dwarf2out_early_global_decl): New.
25219         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25220         (dwarf2out_type_decl): Set early_dwarf while calling
25221         dwarf2out_decl.
25222         (dwarf2out_decl): Verify that we did not recreate a previously
25223         generated DIE.
25224         Do not return on DECL_EXTERNALs in VAR_DECLs.
25225         Abstract some code to local_function_static.
25226         (lookup_filename): Remove use of file_table_last_lookup.
25227         Gracefully exit on missing file_name.
25228         (dwarf2out_finish): Verify limbo list.
25229         Remove deferred_locations_list use.
25230         Move deferred_asm_name and limbo flushing to...
25231         (dwarf2out_early_finish): ...here.  New.
25232         (dwarf2out_c_finalize): Remove set of deferred_location_list,
25233         deferred_asm_name, and file_table_last_lookup.
25234         * cgraph.h (referred_to_p): Add default argument.
25235         * cgraphunit.c (referred_to_p): Add and handle include_self
25236         argument.
25237         (analyze_functions): Add first_time argument.
25238         Call check_global_declaration for all symbols.
25239         Call late_global_decl for nodes for moribund nodes.
25240         (finalize_compilation_unit): Add new argument to
25241         analyze_functions.
25242         Call early_global_decl for functions.
25243         Call early_finish debug hook.
25244         * dbxout.c (dbxout_early_global_decl): New.
25245         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
25246         (dbx_debug_hooks): Add new hooks.
25247         (xcoff_debug_hooks): Same.
25248         * debug.c (do_nothing_debug_hooks): Add early_finish field.
25249         Add early and late debug hooks.
25250         Remove global_decl hook.
25251         * debug.h (struct gcc_debug_hooks): Add early_finish,
25252         early_global_decl, and late_global_decl fields.
25253         Remove global_decl field.
25254         Document gcc_debug_hooks.
25255         * gengtype.c (output_typename): Remove.
25256         * godump.c (go_early_global_decl): New.
25257         (go_late_global_decl): New.
25258         (go_global_decl): Remove.
25259         (dump_go_spec_init): Remove global_decl.  Add
25260         {early,late}_global_decl.
25261         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25262         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25263         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25264         (write_global_declarations): Remove.
25265         (global_decl_processing): New.
25266         * langhooks.h (struct lang_hooks_for_decls): Remove
25267         final_write_globals field.
25268         Add post_compilation_parsing_cleanups field.
25269         * passes.c (rest_of_decl_compilation): Call early_global_decl.
25270         * sdbout.c: Add early and late_global_decl hooks.  Remove
25271         sdbout_global_decl hook.
25272         Add early_finish field for sdb_debug_hooks.
25273         (sdbout_global_decl): Remove.
25274         (sdbout_early_global_decl): New.
25275         (sdbout_late_global_decl): New.
25276         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25277         * toplev.c (check_global_declaration): Rename from
25278         check_global_declaration_1.
25279         Adapt to use symtab infrastructure.
25280         (check_global_declarations): Remove.
25281         (emit_debug_global_declarations): Remove.
25282         (compile_file): Remove call to final_write_globals langhook.
25283         Run the actual compilation process.
25284         Perform any post compilation parser cleanups.
25285         Generate late debug info.
25286         * toplev.h (check_global_declaration): New.
25287         (check_global_declaration_1): Remove.
25288         (check_global_declarations): Remove.
25289         (write_global_declarations): Remove.
25290         (emit_debug_global_declarations): Remove.
25291         (global_decl_processing): New.
25292         * tree-core.h (struct tree_block): Add DIE field.
25293         * tree.h (BLOCK_DIE): New.
25294         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25295         throughout.
25296         (vmsdbgout_early_global_decl): New.
25297         (vmsdbgout_late_global_decl): New.
25298         Add early_finish debug hook field to vmsdbg_debug_hooks.
25299         Remove vmsdbgout_decl to vmsdbgout_function_decl.
25300         Add early and late_global_decl debug hooks.
25301
25302 2015-06-05  Julian Brown  <julian@codesourcery.com>
25303             Sandra Loosemore  <sandra@codesourcery.com>
25304
25305         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25306         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25307         to print-sysroot-suffix.sh script.
25308
25309 2015-06-05  Tom de Vries  <tom@codesourcery.com>
25310
25311         merge from gomp4 branch:
25312         2015-05-28  Tom de Vries  <tom@codesourcery.com>
25313
25314         PR tree-optimization/65443
25315         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25316         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25317         (try_transform_to_exit_first_loop_alt): New function.
25318         (transform_to_exit_first_loop): Use
25319         try_transform_to_exit_first_loop_alt.
25320
25321 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
25322
25323         * builtins.c (expand_builtin_atomic_compare_exchange): Call
25324         emit_cmp_and_jump_insns with the mode of target.
25325
25326 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25327
25328         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25329
25330 2015-06-04  DJ Delorie  <dj@redhat.com>
25331
25332         * config/msp430/msp430.md (movsi_s): New.  Special case for
25333         storing a 20-bit symbol into a 32-bit register.
25334         * config/msp430/msp430.c (msp430_subreg): Add support for it.
25335         * config/msp430/predicates.md (msp430_symbol_operand): New.
25336
25337 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
25338
25339         * c-family/c-common.c (noplt): New attribute.
25340         (handle_noplt_attribute): New handler.
25341         * calls.c (prepare_call_address): Check for noplt
25342         attribute.
25343         * config/i386/i386.c (ix86_expand_call): Check
25344         for noplt attribute.
25345         (ix86_nopic_noplt_attribute_p): New function.
25346         (ix86_output_call_insn): Output indirect call for non-pic
25347         no plt calls.
25348         * doc/extend.texi (noplt): Document new attribute.
25349         * doc/invoke.texi: Document new attribute.
25350
25351 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
25352
25353         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25354         real.h, and fixed-value.h when included in host source files.
25355         * double-int.h: Remove redundant #includes listed above.
25356         * fixed-value.h: Likewise.
25357         * real.h: Likewise.
25358         * wide-int.h: Likewise.
25359         * inchash.h: Likewise.
25360         * rtl.h: Add some include files When included from a generator file.
25361         * target.h: Remove wide-int.h and insn-modes.h from the include list.
25362         * internal-fn.h: Don't include coretypes.h.
25363         * alias.c: Adjust includes for restructured coretypes.h.
25364         * asan.c: Likewise.
25365         * attribs.c: Likewise.
25366         * auto-inc-dec.c: Likewise.
25367         * auto-profile.c: Likewise.
25368         * bb-reorder.c: Likewise.
25369         * bt-load.c: Likewise.
25370         * builtins.c: Likewise.
25371         * caller-save.c: Likewise.
25372         * calls.c: Likewise.
25373         * ccmp.c: Likewise.
25374         * cfg.c: Likewise.
25375         * cfganal.c: Likewise.
25376         * cfgbuild.c: Likewise.
25377         * cfgcleanup.c: Likewise.
25378         * cfgexpand.c: Likewise.
25379         * cfghooks.c: Likewise.
25380         * cfgloop.c: Likewise.
25381         * cfgloop.h: Likewise.
25382         * cfgloopanal.c: Likewise.
25383         * cfgloopmanip.c: Likewise.
25384         * cfgrtl.c: Likewise.
25385         * cgraph.c: Likewise.
25386         * cgraphbuild.c: Likewise.
25387         * cgraphclones.c: Likewise.
25388         * cgraphunit.c: Likewise.
25389         * cilk-common.c: Likewise.
25390         * combine-stack-adj.c: Likewise.
25391         * combine.c: Likewise.
25392         * compare-elim.c: Likewise.
25393         * convert.c: Likewise.
25394         * coverage.c: Likewise.
25395         * cppbuiltin.c: Likewise.
25396         * cprop.c: Likewise.
25397         * cse.c: Likewise.
25398         * cselib.c: Likewise.
25399         * data-streamer-in.c: Likewise.
25400         * data-streamer-out.c: Likewise.
25401         * data-streamer.c: Likewise.
25402         * dbxout.c: Likewise.
25403         * dce.c: Likewise.
25404         * ddg.c: Likewise.
25405         * debug.c: Likewise.
25406         * df-core.c: Likewise.
25407         * df-problems.c: Likewise.
25408         * df-scan.c: Likewise.
25409         * df.h: Likewise.
25410         * dfp.c: Likewise.
25411         * dojump.c: Likewise.
25412         * dominance.c: Likewise.
25413         * domwalk.c: Likewise.
25414         * double-int.c: Likewise.
25415         * dse.c: Likewise.
25416         * dumpfile.c: Likewise.
25417         * dwarf2asm.c: Likewise.
25418         * dwarf2cfi.c: Likewise.
25419         * dwarf2out.c: Likewise.
25420         * dwarf2out.h: Likewise.
25421         * emit-rtl.c: Likewise.
25422         * et-forest.c: Likewise.
25423         * except.c: Likewise.
25424         * explow.c: Likewise.
25425         * expmed.c: Likewise.
25426         * expr.c: Likewise.
25427         * final.c: Likewise.
25428         * fixed-value.c: Likewise.
25429         * fold-const.c: Likewise.
25430         * function.c: Likewise.
25431         * fwprop.c: Likewise.
25432         * gcc-plugin.h: Likewise.
25433         * gcse.c: Likewise.
25434         * generic-match-head.c: Likewise.
25435         * ggc-page.c: Likewise.
25436         * gimple-builder.c: Likewise.
25437         * gimple-expr.c: Likewise.
25438         * gimple-fold.c: Likewise.
25439         * gimple-iterator.c: Likewise.
25440         * gimple-low.c: Likewise.
25441         * gimple-match-head.c: Likewise.
25442         * gimple-pretty-print.c: Likewise.
25443         * gimple-ssa-isolate-paths.c: Likewise.
25444         * gimple-ssa-strength-reduction.c: Likewise.
25445         * gimple-streamer-in.c: Likewise.
25446         * gimple-streamer-out.c: Likewise.
25447         * gimple-streamer.h: Likewise.
25448         * gimple-walk.c: Likewise.
25449         * gimple.c: Likewise.
25450         * gimplify-me.c: Likewise.
25451         * gimplify.c: Likewise.
25452         * godump.c: Likewise.
25453         * graph.c: Likewise.
25454         * graphite-blocking.c: Likewise.
25455         * graphite-dependences.c: Likewise.
25456         * graphite-interchange.c: Likewise.
25457         * graphite-isl-ast-to-gimple.c: Likewise.
25458         * graphite-optimize-isl.c: Likewise.
25459         * graphite-poly.c: Likewise.
25460         * graphite-scop-detection.c: Likewise.
25461         * graphite-sese-to-poly.c: Likewise.
25462         * graphite.c: Likewise.
25463         * haifa-sched.c: Likewise.
25464         * hooks.h: Likewise.
25465         * hw-doloop.c: Likewise.
25466         * ifcvt.c: Likewise.
25467         * incpath.c: Likewise.
25468         * init-regs.c: Likewise.
25469         * internal-fn.c: Likewise.
25470         * ipa-chkp.c: Likewise.
25471         * ipa-comdats.c: Likewise.
25472         * ipa-cp.c: Likewise.
25473         * ipa-devirt.c: Likewise.
25474         * ipa-icf-gimple.c: Likewise.
25475         * ipa-icf.c: Likewise.
25476         * ipa-inline-analysis.c: Likewise.
25477         * ipa-inline-transform.c: Likewise.
25478         * ipa-inline.c: Likewise.
25479         * ipa-polymorphic-call.c: Likewise.
25480         * ipa-profile.c: Likewise.
25481         * ipa-prop.c: Likewise.
25482         * ipa-pure-const.c: Likewise.
25483         * ipa-ref.c: Likewise.
25484         * ipa-reference.c: Likewise.
25485         * ipa-split.c: Likewise.
25486         * ipa-utils.c: Likewise.
25487         * ipa-visibility.c: Likewise.
25488         * ipa.c: Likewise.
25489         * ira-build.c: Likewise.
25490         * ira-color.c: Likewise.
25491         * ira-conflicts.c: Likewise.
25492         * ira-costs.c: Likewise.
25493         * ira-emit.c: Likewise.
25494         * ira-lives.c: Likewise.
25495         * ira.c: Likewise.
25496         * jump.c: Likewise.
25497         * langhooks.c: Likewise.
25498         * lcm.c: Likewise.
25499         * loop-doloop.c: Likewise.
25500         * loop-init.c: Likewise.
25501         * loop-invariant.c: Likewise.
25502         * loop-iv.c: Likewise.
25503         * loop-unroll.c: Likewise.
25504         * lower-subreg.c: Likewise.
25505         * lra-assigns.c: Likewise.
25506         * lra-coalesce.c: Likewise.
25507         * lra-constraints.c: Likewise.
25508         * lra-eliminations.c: Likewise.
25509         * lra-lives.c: Likewise.
25510         * lra-remat.c: Likewise.
25511         * lra-spills.c: Likewise.
25512         * lra.c: Likewise.
25513         * lto-cgraph.c: Likewise.
25514         * lto-compress.c: Likewise.
25515         * lto-opts.c: Likewise.
25516         * lto-section-in.c: Likewise.
25517         * lto-section-out.c: Likewise.
25518         * lto-streamer-in.c: Likewise.
25519         * lto-streamer-out.c: Likewise.
25520         * lto-streamer.c: Likewise.
25521         * mcf.c: Likewise.
25522         * mode-switching.c: Likewise.
25523         * modulo-sched.c: Likewise.
25524         * omega.c: Likewise.
25525         * omp-low.c: Likewise.
25526         * optabs.c: Likewise.
25527         * opts-global.c: Likewise.
25528         * passes.c: Likewise.
25529         * plugin.c: Likewise.
25530         * postreload-gcse.c: Likewise.
25531         * postreload.c: Likewise.
25532         * predict.c: Likewise.
25533         * print-rtl.c: Likewise.
25534         * print-tree.c: Likewise.
25535         * profile.c: Likewise.
25536         * real.c: Likewise.
25537         * realmpfr.c: Likewise.
25538         * realmpfr.h: Likewise.
25539         * recog.c: Likewise.
25540         * ree.c: Likewise.
25541         * reg-stack.c: Likewise.
25542         * regcprop.c: Likewise.
25543         * reginfo.c: Likewise.
25544         * regrename.c: Likewise.
25545         * regs.h: Likewise.
25546         * regstat.c: Likewise.
25547         * reload.c: Likewise.
25548         * reload1.c: Likewise.
25549         * reorg.c: Likewise.
25550         * resource.c: Likewise.
25551         * rtl-chkp.c: Likewise.
25552         * rtlanal.c: Likewise.
25553         * rtlhooks.c: Likewise.
25554         * sanopt.c: Likewise.
25555         * sched-deps.c: Likewise.
25556         * sched-ebb.c: Likewise.
25557         * sched-rgn.c: Likewise.
25558         * sched-vis.c: Likewise.
25559         * sdbout.c: Likewise.
25560         * sel-sched-dump.c: Likewise.
25561         * sel-sched-ir.c: Likewise.
25562         * sel-sched.c: Likewise.
25563         * sese.c: Likewise.
25564         * shrink-wrap.c: Likewise.
25565         * shrink-wrap.h: Likewise.
25566         * simplify-rtx.c: Likewise.
25567         * stack-ptr-mod.c: Likewise.
25568         * statistics.c: Likewise.
25569         * stmt.c: Likewise.
25570         * stor-layout.c: Likewise.
25571         * store-motion.c: Likewise.
25572         * stringpool.c: Likewise.
25573         * symtab.c: Likewise.
25574         * target-globals.c: Likewise.
25575         * targhooks.c: Likewise.
25576         * toplev.c: Likewise.
25577         * tracer.c: Likewise.
25578         * trans-mem.c: Likewise.
25579         * tree-affine.c: Likewise.
25580         * tree-affine.h: Likewise.
25581         * tree-browser.c: Likewise.
25582         * tree-call-cdce.c: Likewise.
25583         * tree-cfg.c: Likewise.
25584         * tree-cfgcleanup.c: Likewise.
25585         * tree-chkp-opt.c: Likewise.
25586         * tree-chkp.c: Likewise.
25587         * tree-chrec.c: Likewise.
25588         * tree-complex.c: Likewise.
25589         * tree-data-ref.c: Likewise.
25590         * tree-dfa.c: Likewise.
25591         * tree-diagnostic.c: Likewise.
25592         * tree-dump.c: Likewise.
25593         * tree-eh.c: Likewise.
25594         * tree-emutls.c: Likewise.
25595         * tree-if-conv.c: Likewise.
25596         * tree-inline.c: Likewise.
25597         * tree-into-ssa.c: Likewise.
25598         * tree-iterator.c: Likewise.
25599         * tree-loop-distribution.c: Likewise.
25600         * tree-nested.c: Likewise.
25601         * tree-nrv.c: Likewise.
25602         * tree-object-size.c: Likewise.
25603         * tree-outof-ssa.c: Likewise.
25604         * tree-parloops.c: Likewise.
25605         * tree-phinodes.c: Likewise.
25606         * tree-predcom.c: Likewise.
25607         * tree-pretty-print.c: Likewise.
25608         * tree-pretty-print.h: Likewise.
25609         * tree-profile.c: Likewise.
25610         * tree-scalar-evolution.c: Likewise.
25611         * tree-sra.c: Likewise.
25612         * tree-ssa-address.c: Likewise.
25613         * tree-ssa-alias.c: Likewise.
25614         * tree-ssa-ccp.c: Likewise.
25615         * tree-ssa-coalesce.c: Likewise.
25616         * tree-ssa-copy.c: Likewise.
25617         * tree-ssa-copyrename.c: Likewise.
25618         * tree-ssa-dce.c: Likewise.
25619         * tree-ssa-dom.c: Likewise.
25620         * tree-ssa-dse.c: Likewise.
25621         * tree-ssa-forwprop.c: Likewise.
25622         * tree-ssa-ifcombine.c: Likewise.
25623         * tree-ssa-live.c: Likewise.
25624         * tree-ssa-loop-ch.c: Likewise.
25625         * tree-ssa-loop-im.c: Likewise.
25626         * tree-ssa-loop-ivcanon.c: Likewise.
25627         * tree-ssa-loop-ivopts.c: Likewise.
25628         * tree-ssa-loop-manip.c: Likewise.
25629         * tree-ssa-loop-niter.c: Likewise.
25630         * tree-ssa-loop-prefetch.c: Likewise.
25631         * tree-ssa-loop-unswitch.c: Likewise.
25632         * tree-ssa-loop.c: Likewise.
25633         * tree-ssa-loop.h: Likewise.
25634         * tree-ssa-math-opts.c: Likewise.
25635         * tree-ssa-operands.c: Likewise.
25636         * tree-ssa-phiopt.c: Likewise.
25637         * tree-ssa-phiprop.c: Likewise.
25638         * tree-ssa-pre.c: Likewise.
25639         * tree-ssa-propagate.c: Likewise.
25640         * tree-ssa-reassoc.c: Likewise.
25641         * tree-ssa-sccvn.c: Likewise.
25642         * tree-ssa-scopedtables.c: Likewise.
25643         * tree-ssa-sink.c: Likewise.
25644         * tree-ssa-strlen.c: Likewise.
25645         * tree-ssa-structalias.c: Likewise.
25646         * tree-ssa-tail-merge.c: Likewise.
25647         * tree-ssa-ter.c: Likewise.
25648         * tree-ssa-threadedge.c: Likewise.
25649         * tree-ssa-threadupdate.c: Likewise.
25650         * tree-ssa-uncprop.c: Likewise.
25651         * tree-ssa-uninit.c: Likewise.
25652         * tree-ssa.c: Likewise.
25653         * tree-ssanames.c: Likewise.
25654         * tree-stdarg.c: Likewise.
25655         * tree-streamer-in.c: Likewise.
25656         * tree-streamer-out.c: Likewise.
25657         * tree-streamer.c: Likewise.
25658         * tree-switch-conversion.c: Likewise.
25659         * tree-tailcall.c: Likewise.
25660         * tree-vect-data-refs.c: Likewise.
25661         * tree-vect-generic.c: Likewise.
25662         * tree-vect-loop-manip.c: Likewise.
25663         * tree-vect-loop.c: Likewise.
25664         * tree-vect-patterns.c: Likewise.
25665         * tree-vect-slp.c: Likewise.
25666         * tree-vect-stmts.c: Likewise.
25667         * tree-vectorizer.c: Likewise.
25668         * tree-vrp.c: Likewise.
25669         * tree.c: Likewise.
25670         * tsan.c: Likewise.
25671         * ubsan.c: Likewise.
25672         * valtrack.c: Likewise.
25673         * value-prof.c: Likewise.
25674         * var-tracking.c: Likewise.
25675         * varasm.c: Likewise.
25676         * varpool.c: Likewise.
25677         * vmsdbgout.c: Likewise.
25678         * vtable-verify.c: Likewise.
25679         * web.c: Likewise.
25680         * wide-int-print.cc: Likewise.
25681         * wide-int-print.h: Likewise.
25682         * wide-int.cc: Likewise.
25683         * xcoffout.c: Likewise.
25684         * config/aarch64/aarch64-builtins.c: Likewise.
25685         * config/aarch64/aarch64.c: Likewise.
25686         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25687         * config/alpha/alpha.c: Likewise.
25688         * config/arc/arc.c: Likewise.
25689         * config/arm/aarch-common.c: Likewise.
25690         * config/arm/arm-builtins.c: Likewise.
25691         * config/arm/arm-c.c: Likewise.
25692         * config/arm/arm.c: Likewise.
25693         * config/avr/avr-c.c: Likewise.
25694         * config/avr/avr-log.c: Likewise.
25695         * config/avr/avr.c: Likewise.
25696         * config/bfin/bfin.c: Likewise.
25697         * config/c6x/c6x.c: Likewise.
25698         * config/cr16/cr16.c: Likewise.
25699         * config/cris/cris.c: Likewise.
25700         * config/darwin-c.c: Likewise.
25701         * config/darwin.c: Likewise.
25702         * config/default-c.c: Likewise.
25703         * config/epiphany/epiphany.c: Likewise.
25704         * config/epiphany/mode-switch-use.c: Likewise.
25705         * config/epiphany/resolve-sw-modes.c: Likewise.
25706         * config/fr30/fr30.c: Likewise.
25707         * config/frv/frv.c: Likewise.
25708         * config/ft32/ft32.c: Likewise.
25709         * config/glibc-c.c: Likewise.
25710         * config/h8300/h8300.c: Likewise.
25711         * config/i386/i386-c.c: Likewise.
25712         * config/i386/i386.c: Likewise.
25713         * config/i386/msformat-c.c: Likewise.
25714         * config/i386/winnt-cxx.c: Likewise.
25715         * config/i386/winnt-stubs.c: Likewise.
25716         * config/i386/winnt.c: Likewise.
25717         * config/ia64/ia64-c.c: Likewise.
25718         * config/ia64/ia64.c: Likewise.
25719         * config/iq2000/iq2000.c: Likewise.
25720         * config/lm32/lm32.c: Likewise.
25721         * config/m32c/m32c-pragma.c: Likewise.
25722         * config/m32c/m32c.c: Likewise.
25723         * config/m32r/m32r.c: Likewise.
25724         * config/m68k/m68k.c: Likewise.
25725         * config/mcore/mcore.c: Likewise.
25726         * config/mep/mep-pragma.c: Likewise.
25727         * config/mep/mep.c: Likewise.
25728         * config/microblaze/microblaze-c.c: Likewise.
25729         * config/microblaze/microblaze.c: Likewise.
25730         * config/mips/mips.c: Likewise.
25731         * config/mmix/mmix.c: Likewise.
25732         * config/mn10300/mn10300.c: Likewise.
25733         * config/moxie/moxie.c: Likewise.
25734         * config/msp430/msp430-c.c: Likewise.
25735         * config/msp430/msp430.c: Likewise.
25736         * config/nds32/nds32-cost.c: Likewise.
25737         * config/nds32/nds32-fp-as-gp.c: Likewise.
25738         * config/nds32/nds32-intrinsic.c: Likewise.
25739         * config/nds32/nds32-isr.c: Likewise.
25740         * config/nds32/nds32-md-auxiliary.c: Likewise.
25741         * config/nds32/nds32-memory-manipulation.c: Likewise.
25742         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25743         * config/nds32/nds32-predicates.c: Likewise.
25744         * config/nds32/nds32.c: Likewise.
25745         * config/nios2/nios2.c: Likewise.
25746         * config/nvptx/nvptx.c: Likewise.
25747         * config/pa/pa.c: Likewise.
25748         * config/pdp11/pdp11.c: Likewise.
25749         * config/rl78/rl78-c.c: Likewise.
25750         * config/rl78/rl78.c: Likewise.
25751         * config/rs6000/rs6000-c.c: Likewise.
25752         * config/rs6000/rs6000.c: Likewise.
25753         * config/rx/rx.c: Likewise.
25754         * config/s390/s390-c.c: Likewise.
25755         * config/s390/s390.c: Likewise.
25756         * config/sh/sh-c.c: Likewise.
25757         * config/sh/sh-mem.cc: Likewise.
25758         * config/sh/sh.c: Likewise.
25759         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25760         * config/sh/sh_treg_combine.cc: Likewise.
25761         * config/sol2-c.c: Likewise.
25762         * config/sol2-cxx.c: Likewise.
25763         * config/sol2-stubs.c: Likewise.
25764         * config/sol2.c: Likewise.
25765         * config/sparc/sparc-c.c: Likewise.
25766         * config/sparc/sparc.c: Likewise.
25767         * config/spu/spu-c.c: Likewise.
25768         * config/spu/spu.c: Likewise.
25769         * config/stormy16/stormy16.c: Likewise.
25770         * config/tilegx/mul-tables.c: Likewise.
25771         * config/tilegx/tilegx-c.c: Likewise.
25772         * config/tilegx/tilegx.c: Likewise.
25773         * config/tilepro/mul-tables.c: Likewise.
25774         * config/tilepro/tilepro-c.c: Likewise.
25775         * config/tilepro/tilepro.c: Likewise.
25776         * config/v850/v850-c.c: Likewise.
25777         * config/v850/v850.c: Likewise.
25778         * config/vax/vax.c: Likewise.
25779         * config/visium/visium.c: Likewise.
25780         * config/vms/vms-c.c: Likewise.
25781         * config/vms/vms.c: Likewise.
25782         * config/vxworks.c: Likewise.
25783         * config/winnt-c.c: Likewise.
25784         * config/xtensa/xtensa.c: Likewise.
25785         * common/config/bfin/bfin-common.c: Likewise.
25786
25787 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
25788
25789         * tree.h (tree_code_for_canonical_type_merging): New function.
25790         * tree.c (gimple_canonical_types_compatible_p): Use
25791         tree_code_for_canonical_type_merging..
25792
25793 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25794
25795         PR c++/66192
25796         PR target/66200
25797         * doc/tm.texi: Regenerate.
25798         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25799         * target.def (TARGET_RELAXED_ORDERING): Likewise.
25800         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25801         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25802         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25803         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25804         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25805         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25806         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25807
25808 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25809
25810         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25811         register fma steering pass.
25812         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25813         AARCH64_TUNE_FMA_STEERING.
25814
25815 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
25816
25817         * tree.c (verify_type_variant): Verify that type and variant is
25818         compatible.
25819         (gimple_canonical_types_compatible_p): Look for main variants.
25820
25821 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25822
25823         * config.gcc (powerpc*-*-*): Add support for a new configure
25824         option --with-advance-toolchain=<xxx> which overrides using the
25825         default header files, libraries and dynamic linker.
25826
25827         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25828         specs to support the configure --with-advance-toolchain=<xxx>
25829         option.
25830         (INCLUDE_EXTRA_SPEC): Likewise.
25831         (LINK_OS_EXTRA_SPEC32): Likewise.
25832         (LINK_OK_EXTRA_SPEC64): Likewise.
25833         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25834         (DYNAMIC_LINKER_PREFIX): Likewise.
25835         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25836         toolchain support.
25837         (GLIBC_DYNAMIC_LINKER32): Likewise.
25838         (GLIBC_DYNAMIC_LINKER64): Likewise.
25839         (LINK_OS_LINUX_SPEC32): Likewise.
25840         (LINK_OS_LINUX_SPEC64): Likewise.
25841
25842         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25843         configuration option.
25844
25845 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
25846
25847         PR target/66275
25848         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25849         to determine current function ABI.
25850         (ix86_function_value_regno_p): Ditto.
25851
25852 2015-06-03  Martin Liska  <mliska@suse.cz>
25853
25854         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25855         * bitmap.h (struct bitmap_usage): Likewise.
25856         * ggc-common.c (struct ggc_usage): Likewise.
25857         * mem-stats.h (struct mem_location): Likewise.
25858         (struct mem_usage): Likewise.
25859         * vec.c (struct vec_usage): Likewise.
25860
25861 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
25862
25863         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25864         -Bsymbolic.
25865
25866 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
25867
25868         * doc/plugins.texi (enum plugin_event): New event.
25869         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25870         and PLUGIN_FINISH_FUNCTION.
25871         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25872         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25873
25874 2015-06-03  Richard Biener  <rguenther@suse.de>
25875
25876         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25877         compute GROUP_GAP for the first element.
25878         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25879         on in-group gaps.
25880
25881 2015-06-03  Nick Clifton  <nickc@redhat.com>
25882
25883         * config/rl78/rl78-real.md: Add peepholes to avoid a register
25884         copy when calling a function.
25885         * config/rl78/rl78.c (need_to_save): Do not push the frame
25886         pointer in an interrupt handler prologue if it is never used.
25887
25888 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25889
25890         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25891
25892 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25893
25894         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25895         reference when cloning alias node.
25896
25897 2015-06-03  Martin Liska  <mliska@suse.cz>
25898
25899         * alloc-pool.h (struct pool_usage): Correct space padding.
25900         * ggc-page.c (ggc_print_statistics): Align columns in a report.
25901         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25902         * tree.c (dump_tree_statistics): Align columns in a report.
25903
25904 2015-06-03  Martin Liska  <mliska@suse.cz>
25905
25906         * alloc-pool.c (allocate_pool_descriptor): Remove.
25907         (struct pool_output_info): Likewise.
25908         (print_alloc_pool_statistics): Likewise.
25909         (dump_alloc_pool_statistics): Likewise.
25910         * alloc-pool.h (struct pool_usage): New struct.
25911         (pool_allocator::initialize): Change usage of memory statistics
25912         to a new interface.
25913         (pool_allocator::release): Likewise.
25914         (pool_allocator::allocate): Likewise.
25915         (pool_allocator::remove): Likewise.
25916         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25917         for a pool allocator.
25918         * mem-stats.h (struct mem_location): Add new ctor.
25919         (struct mem_usage): Add counter for number of
25920         instances.
25921         (mem_alloc_description::register_descriptor): New overload of
25922         * mem-stats.h (mem_location::to_string): New function.
25923         * bitmap.h (struct bitmap_usage): Use this new function.
25924         * ggc-common.c (struct ggc_usage): Likewise.
25925         the function.
25926
25927 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25928
25929         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25930         of GCC_INSN_FLAGS_H block.
25931
25932 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25933
25934         * explow.c (plus_constant): Update check after force_const_mem call
25935         to see if the value returned is not a NULL_RTX.
25936
25937 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25938
25939         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25940         remove instumentation thunks calling reachable functions.
25941         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25942         * lto/lto-partition.c (privatize_symbol_name_1): New.
25943         (privatize_symbol_name): Privatize both decl and orig_decl
25944         names for instrumented functions.
25945         * cgraph.c (cgraph_node::verify_node): Add transparent
25946         alias chain check for instrumented node.
25947
25948 2015-06-03  Marek Polacek  <polacek@redhat.com>
25949
25950         PR c/64223
25951         PR c/29358
25952         * tree.c (attribute_value_equal): Handle attribute format.
25953         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25954
25955 2015-06-03  Richard Biener  <rguenther@suse.de>
25956
25957         PR tree-optimization/63916
25958         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25959         Forward-propagate non-invariant addresses by splicing their
25960         reference ops if the result isn't going to be used by PRE.
25961         (vn_reference_lookup_3): Remove pointless assert.
25962
25963 2015-06-03  Richard Biener  <rguenther@suse.de>
25964
25965         PR tree-optimization/66375
25966         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25967         add to the evolution before following SSA edges.
25968
25969 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
25970
25971         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25972         (dump_use, dump_cand, find_induction_variables): Pass new argument
25973         to dump_iv.
25974         (record_use): Preserve the ssa name information in IV.
25975
25976 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25977
25978         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25979         NO_MODE_TEST.
25980         (add_mode_tests): Don't add mode tests if the predicate only
25981         accepts scalar constant integers.  Otherwise, allow the mode
25982         of "op" to be VOIDmode if the predicate does accept such integers.
25983
25984 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
25985
25986         PR target/66258
25987         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25988         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25989         (aarch64_secondary_reload): Likewise
25990         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25991         to !TARGET_FLOAT.
25992         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25993         Likewise.
25994
25995 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
25996             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25997
25998         PR target/65768
25999         * cprop.c (try_replace_reg): Check cost of constants before propagating.
26000
26001 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26002
26003         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26004         provide access to the IBM extended double floating point mode if
26005         long double is IEEE 128-bit floating point.
26006         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26007         point if long double is the IBM extended double type.
26008
26009         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26010         enable adding IEEE 128-bit floating point support.
26011         (-mfloat128-software): Likewise.
26012         (-mfloat128-sw): Likewise.
26013
26014         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26015         128-bit floating point types to occupy any register if
26016         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
26017         -mfloat128-software is enabled.
26018         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26019         support.
26020         (rs6000_option_override_internal): Add -mfloat128-* support.
26021         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26022
26023         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26024         and float128 type nodes.
26025         (ieee128_float_type_node): Likewise.
26026         (ibm128_float_type_node): Likewise.
26027
26028 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26029
26030         PR target/66136
26031         * config/aarch64/geniterators.sh: Rewrite in awk.
26032
26033 2015-06-02  Martin Liska  <mliska@suse.cz>
26034
26035         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26036         values to avoid -Wmaybe-uninitialized errors.
26037
26038 2015-06-02  Richard Biener  <rguenther@suse.de>
26039
26040         PR debug/65549
26041         * dwarf2out.c (lookup_context_die): New function.
26042         (resolve_addr): Avoid forcing a full DIE for the
26043         target of a DW_TAG_GNU_call_site during late compilation.
26044         Instead create a stub DIE without a type if we have a
26045         context DIE present.
26046
26047 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
26048
26049         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26050
26051 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26052
26053         PR tree-optimization/48052
26054         * cfgloop.h (struct control_iv): New.
26055         (struct loop): New field control_ivs.
26056         * tree-ssa-loop-niter.c : Include "stor-layout.h".
26057         (number_of_iterations_lt): Set no_overflow information.
26058         (number_of_iterations_exit): Init control iv in niter struct.
26059         (record_control_iv): New.
26060         (estimate_numbers_of_iterations_loop): Call record_control_iv.
26061         (loop_exits_before_overflow): New.  Interface factored out of
26062         scev_probably_wraps_p.
26063         (scev_probably_wraps_p): Factor loop niter related code into
26064         loop_exits_before_overflow.
26065         (free_numbers_of_iterations_estimates_loop): Free control ivs.
26066         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26067
26068 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
26069
26070         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26071         the target doesn't belong to the current function.
26072
26073 2015-06-02  Marek Polacek  <polacek@redhat.com>
26074
26075         PR middle-end/66345
26076         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26077         get_maxval_strlen does not produce an INTEGER_CST.
26078
26079 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
26080
26081         * config/arc/constraints.md: Use lower-case names in match_code.
26082         * config/mmix/constraints.md: Likewise.
26083
26084 2015-06-02  Richard Biener  <rguenther@suse.de>
26085
26086         PR tree-optimization/65961
26087         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26088         check and clarify dump message.
26089         (vect_build_slp_tree): If all children are built up from scalars
26090         build up the parent from scalars instead.
26091         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26092
26093 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
26094
26095         PR other/65366
26096         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
26097         instead of print ... .
26098
26099 2015-06-02  Alan Modra  <amodra@gmail.com>
26100
26101         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26102         2014-08-11 change.
26103
26104 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26105
26106         PR tree-optimization/52563
26107         PR tree-optimization/62173
26108         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
26109         (alloc_iv, set_iv): New parameter.
26110         (determine_biv_step): Delete.
26111         (find_bivs): Inline original determine_biv_step.  Pass new
26112         argument to set_iv.
26113         (idx_find_step): Use no_overflow information for conversion.
26114         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26115         resolve_mixers handle folded_casts.
26116         (instantiate_scev_name): Change bool parameter to bool pointer.
26117         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26118         (instantiate_array_ref, instantiate_scev_not): Ditto.
26119         (instantiate_scev_3, instantiate_scev_2): Ditto.
26120         (instantiate_scev_1, instantiate_scev_r): Ditto.
26121         (instantiate_scev_convert, ): Change parameter.  Pass argument
26122         to chrec_convert_aggressive.
26123         (instantiate_scev): Change argument.
26124         (resolve_mixers): New parameter and set it.
26125         (scev_const_prop): New argument.
26126         * tree-scalar-evolution.h (resolve_mixers): New parameter.
26127         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26128         of chrec_conert_1.
26129         (chrec_convert): New parameter.  Move definition below.
26130         (chrec_convert_aggressive): New parameter and set it.  Call
26131         convert_affine_scev.
26132         * tree-chrec.h (chrec_convert): New parameter.
26133         (chrec_convert_aggressive): Ditto.
26134
26135 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26136
26137         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26138         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26139         the LHS of a no-return call if its type has variable size.
26140         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26141         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26142
26143 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
26144
26145         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26146         * config.in: Regenerate.
26147
26148 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26149
26150         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26151         consecutive accesses within outer-loop with force_vectorize
26152         for references with zero step in inner-loop.
26153
26154 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26155
26156         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26157         rather than from gcc/build directory.
26158
26159 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26160
26161         PR target/65697
26162         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26163         for __sync memory models, emit initial loads and final barriers as
26164         appropriate.
26165
26166 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26167
26168         PR target/65697
26169         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26170         (aarch64_split_atomic_op): Check for __sync memory models, emit
26171         appropriate initial loads and final barriers.
26172
26173 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26174
26175         * Makefile.in: Fix gcov dependencies that should
26176         not point to a build folder.
26177
26178 2015-06-01  Richard Biener  <rguenther@suse.de>
26179
26180         Revert
26181         2015-05-29  Richard Biener  <rguenther@suse.de>
26182
26183         PR tree-optimization/66314
26184         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26185         parameter that says which loop the new block belongs to.
26186         (ssa_create_duplicates): Blocks duplicated for the threaded
26187         path belong to the loop of the thread destination.
26188
26189 2015-06-01  Martin Liska  <mliska@suse.cz>
26190
26191         * sched-deps.c: Include pool-alloc.h before
26192         cselib.h header file is included.
26193
26194 2015-06-01  Richard Biener  <rguenther@suse.de>
26195
26196         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26197         functions.
26198
26199 2015-06-01  Martin Liska  <mliska@suse.cz>
26200
26201         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26202         a function local variable.
26203
26204 2015-06-01  Martin Liska  <mliska@suse.cz>
26205
26206         * alloc-pool.c (create_alloc_pool): Remove.
26207         (empty_alloc_pool): Likewise.
26208         (free_alloc_pool): Likewise.
26209         (free_alloc_pool_if_empty): Likewise.
26210         (pool_alloc): Likewise.
26211         (pool_free): Likewise.
26212         * alloc-pool.h: Remove old declarations.
26213
26214 2015-06-01  Martin Liska  <mliska@suse.cz>
26215
26216         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26217         (ira_create_object): Likewise.
26218         (ira_create_allocno): Likewise.
26219         (ira_create_live_range): Likewise.
26220         (copy_live_range): Likewise.
26221         (ira_finish_live_range): Likewise.
26222         (ira_free_allocno_costs): Likewise.
26223         (finish_allocno): Likewise.
26224         (finish_allocnos): Likewise.
26225         (initiate_prefs): Likewise.
26226         (ira_create_pref): Likewise.
26227         (finish_pref): Likewise.
26228         (finish_prefs): Likewise.
26229         (initiate_copies): Likewise.
26230         (ira_create_copy): Likewise.
26231         (finish_copy): Likewise.
26232         (finish_copies): Likewise.
26233         (finish_prefs): Likewise.
26234
26235 2015-06-01  Martin Liska  <mliska@suse.cz>
26236
26237         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26238         (allocate_and_init_ipcp_value): Likewise.
26239         (ipcp_lattice::add_value): Likewise.
26240         (merge_agg_lats_step): Likewise.
26241         (ipcp_driver): Likewise.
26242         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26243         (ipa_free_all_structures_after_iinln): Likewise.
26244         * ipa-prop.h: Likewise.
26245
26246 2015-06-01  Martin Liska  <mliska@suse.cz>
26247
26248         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26249         pool allocator.
26250         (set_hint_predicate): Likewise.
26251         (inline_summary_alloc): Likewise.
26252         (reset_inline_edge_summary): Likewise.
26253         (reset_inline_summary): Likewise.
26254         (set_cond_stmt_execution_predicate): Likewise.
26255         (set_switch_stmt_execution_predicate): Likewise.
26256         (compute_bb_predicates): Likewise.
26257         (estimate_function_body_sizes): Likewise.
26258         (inline_free_summary): Likewise.
26259
26260 2015-06-01  Martin Liska  <mliska@suse.cz>
26261
26262         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26263         (ipa_edge_duplication_hook): Likewise.
26264         (ipa_free_all_structures_after_ipa_cp): Likewise.
26265         (ipa_free_all_structures_after_iinln): Likewise.
26266
26267 2015-06-01  Martin Liska  <mliska@suse.cz>
26268
26269         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26270         (ipa_profile_generate_summary): Likewise.
26271         (ipa_profile_read_summary): Likewise.
26272         (ipa_profile): Likewise.
26273
26274 2015-06-01  Martin Liska  <mliska@suse.cz>
26275
26276         * tree-ssa-structalias.c (new_var_info): Use new type-based
26277         pool allocator.
26278         (new_constraint): Likewise.
26279         (init_alias_vars): Likewise.
26280         (delete_points_to_sets): Likewise.
26281
26282 2015-06-01  Martin Liska  <mliska@suse.cz>
26283
26284         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26285         (free_strinfo): Likewise.
26286         (pass_strlen::execute): Likewise.
26287
26288 2015-06-01  Martin Liska  <mliska@suse.cz>
26289
26290         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26291         pool allocator.
26292         (vn_reference_insert_pieces): Likewise.
26293         (vn_phi_insert): Likewise.
26294         (visit_reference_op_call): Likewise.
26295         (copy_phi): Likewise.
26296         (copy_reference): Likewise.
26297         (process_scc): Likewise.
26298         (allocate_vn_table): Likewise.
26299         (free_vn_table): Likewise.
26300
26301 2015-06-01  Martin Liska  <mliska@suse.cz>
26302
26303         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26304         pool allocator.
26305         (add_repeat_to_ops_vec): Likewise.
26306         (get_ops): Likewise.
26307         (maybe_optimize_range_tests): Likewise.
26308         (init_reassoc): Likewise.
26309         (fini_reassoc): Likewise.
26310
26311 2015-06-01  Martin Liska  <mliska@suse.cz>
26312
26313         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26314         pool allocator.
26315         (bitmap_set_new): Likewise.
26316         (get_or_alloc_expr_for_constant): Likewise.
26317         (get_or_alloc_expr_for): Likewise.
26318         (phi_translate_1): Likewise.
26319         (compute_avail): Likewise.
26320         (init_pre): Likewise.
26321         (fini_pre): Likewise.
26322
26323 2015-06-01  Martin Liska  <mliska@suse.cz>
26324
26325         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26326         (delete_dep_node): Likewise.
26327         (create_deps_list): Likewise.
26328         (free_deps_list): Likewise.
26329         (sched_deps_init): Likewise.
26330         (sched_deps_finish): Likewise.
26331
26332 2015-06-01  Martin Liska  <mliska@suse.cz>
26333
26334         * regcprop.c (free_debug_insn_changes): Use new type-based
26335         pool allocator.
26336         (replace_oldest_value_reg): Likewise.
26337         (pass_cprop_hardreg::execute): Likewise.
26338
26339 2015-06-01  Martin Liska  <mliska@suse.cz>
26340
26341         * ira-build.c (initiate_cost_vectors): Use new type-based
26342         pool allocator.
26343         (ira_allocate_cost_vector): Likewise.
26344         (ira_free_cost_vector): Likewise.
26345         (finish_cost_vectors): Likewise.
26346
26347 2015-06-01  Martin Liska  <mliska@suse.cz>
26348
26349         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26350         pool allocator.
26351         (free_sched_pools): Likewise.
26352         * sel-sched-ir.h (_list_alloc): Likewise.
26353         (_list_remove): Likewise.
26354
26355 2015-06-01  Martin Liska  <mliska@suse.cz>
26356
26357         * stmt.c (add_case_node): Use new type-based pool allocator.
26358         (expand_case): Likewise.
26359         (expand_sjlj_dispatch_table): Likewise.
26360
26361 2015-06-01  Martin Liska  <mliska@suse.cz>
26362
26363         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26364         (free_bb): Likewise.
26365         (pass_cse_reciprocals::execute): Likewise.
26366
26367 2015-06-01  Martin Liska  <mliska@suse.cz>
26368
26369         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26370         (sra_deinitialize) Likewise.
26371         (create_access_1) Likewise.
26372         (build_accesses_from_assign) Likewise.
26373         (create_artificial_child_access) Likewise.
26374
26375 2015-06-01  Martin Liska  <mliska@suse.cz>
26376
26377         * dse.c (get_group_info):Use new type-based pool allocator.
26378         (dse_step0) Likewise.
26379         (free_store_info) Likewise.
26380         (delete_dead_store_insn) Likewise.
26381         (free_read_records) Likewise.
26382         (record_store) Likewise.
26383         (replace_read) Likewise.
26384         (check_mem_read_rtx) Likewise.
26385         (scan_insn) Likewise.
26386         (dse_step1) Likewise.
26387         (dse_step7) Likewise.
26388
26389 2015-06-01  Martin Liska  <mliska@suse.cz>
26390
26391         * df-scan.c (struct df_scan_problem_data):Use new type-based
26392         pool allocator.
26393         (df_scan_free_internal) Likewise.
26394         (df_scan_alloc) Likewise.
26395         (df_grow_reg_info) Likewise.
26396         (df_free_ref) Likewise.
26397         (df_insn_create_insn_record) Likewise.
26398         (df_mw_hardreg_chain_delete) Likewise.
26399         (df_insn_info_delete) Likewise.
26400         (df_free_collection_rec) Likewise.
26401         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26402         (df_sort_and_compress_mws) Likewise.
26403         (df_ref_create_structure) Likewise.
26404         (df_ref_record) Likewise.
26405
26406 2015-06-01  Martin Liska  <mliska@suse.cz>
26407
26408         * df-problems.c (df_chain_create):Use new type-based pool allocator.
26409         (df_chain_unlink_1) Likewise.
26410         (df_chain_unlink) Likewise.
26411         (df_chain_remove_problem) Likewise.
26412         (df_chain_alloc) Likewise.
26413         (df_chain_free) Likewise.
26414         * df.h (struct dataflow) Likewise.
26415
26416 2015-06-01  Martin Liska  <mliska@suse.cz>
26417
26418         * cselib.c (new_elt_list):Use new type-based pool allocator.
26419         (new_elt_loc_list) Likewise.
26420         (unchain_one_elt_list) Likewise.
26421         (unchain_one_elt_loc_list) Likewise.
26422         (unchain_one_value) Likewise.
26423         (new_cselib_val) Likewise.
26424         (cselib_init) Likewise.
26425         (cselib_finish) Likewise.
26426
26427 2015-06-01  Martin Liska  <mliska@suse.cz>
26428
26429         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26430         (sh_reorg) Likewise.
26431
26432 2015-06-01  Martin Liska  <mliska@suse.cz>
26433
26434         * cfg.c (initialize_original_copy_tables):Use new type-based
26435         pool allocator.
26436         (free_original_copy_tables) Likewise.
26437         (copy_original_table_clear) Likewise.
26438         (copy_original_table_set) Likewise.
26439
26440 2015-06-01  Martin Liska  <mliska@suse.cz>
26441
26442         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26443         pool allocator.
26444         (asan_mem_ref_new) Likewise.
26445         (free_mem_ref_resources) Likewise.
26446
26447 2015-06-01  Martin Liska  <mliska@suse.cz>
26448
26449         * var-tracking.c (variable_htab_free):Use new type-based
26450         pool allocator.
26451         (attrs_list_clear) Likewise.
26452         (attrs_list_insert) Likewise.
26453         (attrs_list_copy) Likewise.
26454         (shared_hash_unshare) Likewise.
26455         (shared_hash_destroy) Likewise.
26456         (unshare_variable) Likewise.
26457         (var_reg_delete_and_set) Likewise.
26458         (var_reg_delete) Likewise.
26459         (var_regno_delete) Likewise.
26460         (drop_overlapping_mem_locs) Likewise.
26461         (variable_union) Likewise.
26462         (insert_into_intersection) Likewise.
26463         (canonicalize_values_star) Likewise.
26464         (variable_merge_over_cur) Likewise.
26465         (dataflow_set_merge) Likewise.
26466         (remove_duplicate_values) Likewise.
26467         (variable_post_merge_new_vals) Likewise.
26468         (dataflow_set_preserve_mem_locs) Likewise.
26469         (dataflow_set_remove_mem_locs) Likewise.
26470         (variable_from_dropped) Likewise.
26471         (variable_was_changed) Likewise.
26472         (set_slot_part) Likewise.
26473         (clobber_slot_part) Likewise.
26474         (delete_slot_part) Likewise.
26475         (loc_exp_insert_dep) Likewise.
26476         (notify_dependents_of_changed_value) Likewise.
26477         (emit_notes_for_differences_1) Likewise.
26478         (vt_emit_notes) Likewise.
26479         (vt_initialize) Likewise.
26480         (vt_finalize) Likewise.
26481
26482 2015-06-01  Martin Liska  <mliska@suse.cz>
26483
26484         * ira-color.c (init_update_cost_records):Use new type-based
26485         pool allocator.
26486         (get_update_cost_record) Likewise.
26487         (free_update_cost_record_list) Likewise.
26488         (finish_update_cost_records) Likewise.
26489         (initiate_cost_update) Likewise.
26490
26491 2015-06-01  Martin Liska  <mliska@suse.cz>
26492
26493         * lra.c (init_insn_regs): Use new type-based pool allocator.
26494         (new_insn_reg) Likewise.
26495         (free_insn_reg) Likewise.
26496         (free_insn_regs) Likewise.
26497         (finish_insn_regs) Likewise.
26498         (init_insn_recog_data) Likewise.
26499         (init_reg_info) Likewise.
26500         (finish_reg_info) Likewise.
26501         (lra_free_copies) Likewise.
26502         (lra_create_copy) Likewise.
26503         (invalidate_insn_data_regno_info) Likewise.
26504
26505 2015-06-01  Martin Liska  <mliska@suse.cz>
26506
26507         * lra-lives.c (free_live_range): Use new type-based pool allocator.
26508         (free_live_range_list) Likewise.
26509         (create_live_range) Likewise.
26510         (copy_live_range) Likewise.
26511         (lra_merge_live_ranges) Likewise.
26512         (remove_some_program_points_and_update_live_ranges) Likewise.
26513         (lra_live_ranges_init) Likewise.
26514         (lra_live_ranges_finish) Likewise.
26515
26516 2015-06-01  Martin Liska  <mliska@suse.cz>
26517
26518         * et-forest.c (et_new_occ): Use new type-based pool allocator.
26519         (et_new_tree): Likewise.
26520         (et_free_tree): Likewise.
26521         (et_free_tree_force): Likewise.
26522         (et_free_pools): Likewise.
26523         (et_split): Likewise.
26524
26525 2015-06-01  Martin Liska  <mliska@suse.cz>
26526
26527         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26528         to header file.
26529         * alloc-pool.h (pool_allocator::pool_allocator): New function.
26530         (pool_allocator::release): Likewise.
26531         (inline pool_allocator::release_if_empty): Likewise.
26532         (inline pool_allocator::~pool_allocator): Likewise.
26533         (pool_allocator::allocate): Likewise.
26534         (pool_allocator::remove): Likewise.
26535
26536 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26537
26538         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26539         in comment.
26540
26541 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26542
26543         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26544         to fusible_ops.
26545         * config/arm/arm.c (arm_print_tune_info): Likewise.
26546         (arm_macro_fusion_p): Likewise.
26547         (arm_macro_fusion_pair_p): Likewise.
26548
26549 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26550
26551         * config/aarch64/aarch64-protos.h (tune_params): Rename
26552         fuseable_ops to fusible_ops.
26553         * config/aarch64/aarch64.c (generic_tunings): Rename
26554         fuseable_ops to fusible_ops.
26555         (cortexa53_tunings): Likewise.
26556         (cortexa57_tunings): Likewise.
26557         (thunderx_tunings): Likewise.
26558         (xgene1_tunings): Likewise.
26559         (aarch64_macro_fusion_p): Likewise.
26560         (aarch64_macro_fusion_pair_p): Likewise.
26561
26562 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26563
26564         * config/s390/driver-native.c: New file.
26565         * config/s390/x-native: New file.
26566         * config.host: Add new files for s390.
26567         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26568         and -march=native
26569         * config.gcc: Likewise.
26570         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26571         * config/s390/s390-opts.h (enum processor_type): Ditto.
26572         * config/s390/s390.c (s390_option_override): Catch unhandled
26573         PROCESSOR_NATIVE
26574
26575 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
26576
26577         PR target/65527
26578         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26579         redirection for instrumented calls.
26580         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26581         (append_compiler_options): Append -fcheck-pointer-bounds.
26582         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26583         (chkp_redirect_edge): New.
26584         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26585         (chkp_redirect_edge): New.
26586
26587 2015-06-01  Richard Biener  <rguenther@suse.de>
26588
26589         PR tree-optimization/66280
26590         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26591         def-use walking.
26592
26593 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26594
26595         * config/aarch64/aarch64.md
26596         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26597         logic_shift_imm.
26598
26599 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26600
26601         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26602         Remove obsolete kludge.
26603
26604 2015-06-01  Richard Biener  <rguenther@suse.de>
26605
26606         * tree-ssa-reassoc.c (get_rank): Simplify.
26607
26608 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26609
26610         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26611         * configure: Regenerated.
26612
26613 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
26614
26615         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26616         issue (add space between string literal and macro).
26617         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26618
26619 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
26620
26621         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26622         implict or explicit -fPIE or -fpie.
26623
26624 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
26625
26626         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26627
26628 2015-05-28  DJ Delorie  <dj@redhat.com>
26629
26630         * expmed.c (extract_bit_field_1): Avoid clobbering a
26631         yet-to-be-used base/index register.
26632
26633 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
26634
26635         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26636         (alias_stats): Add num_universal.
26637         (alias_set_subset_of): Special case pointers; be ready for NULL
26638         children.
26639         (alias_sets_conflict_p): Special case pointers; be ready for NULL
26640         children.
26641         (init_alias_set_entry): Break out from ...
26642         (record_alias_subset): ... here; propagate new fields;
26643         allocate children only when really needed.
26644         (get_alias_set): Do less generous pointer globbing.
26645         (dump_alias_stats_in_alias_c): Update statistics.
26646
26647 2015-05-30  Alan Modra  <amodra@gmail.com>
26648
26649         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26650         correct block for use of r12.
26651         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26652
26653 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26654
26655         PR target/66215
26656         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26657         with -mhotpatch=.
26658
26659 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
26660
26661         PR tree-optimization/66142
26662         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26663         virtual phis that feed themselves.
26664
26665 2015-05-29  Richard Biener  <rguenther@suse.de>
26666
26667         PR tree-optimization/66314
26668         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26669         parameter that says which loop the new block belongs to.
26670         (ssa_create_duplicates): Blocks duplicated for the threaded
26671         path belong to the loop of the thread destination.
26672
26673 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26674
26675         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26676         to cleanup-saved-temps.
26677         * doc/sourcebuild.texi (Clean up generated test files): Expand
26678         introduction.
26679         (dg-keep-saved-temps): Document new proc.
26680         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26681         cleanup-saved-temps): Remove.
26682
26683 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
26684
26685         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26686         gcc_AC_CHECK_DECLS.
26687         * configure: Regenerate.
26688
26689 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26690
26691         * config/nios2/linux.h (CPP_SPEC): Define.
26692
26693 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26694
26695         * config/microblaze/linux.h (CPP_SPEC): Define.
26696
26697 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26698
26699         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26700         -pthread is specified.
26701
26702 2015-05-28  Richard Biener  <rguenther@suse.de>
26703
26704         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26705         (vect_fixup_scalar_cycles_with_patterns): Likewise.
26706         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26707         after pattern recog.
26708         (vect_create_epilog_for_reduction): Properly handle reductions
26709         with patterns.
26710         (vectorizable_reduction): Likewise.
26711         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26712         reduction chains.
26713         (vect_get_constant_vectors): Create the correct number of
26714         initial values for reductions.
26715         (vect_schedule_slp_instance): Handle reduction chains that are
26716         type changing properly.
26717         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26718
26719 2015-05-28  Richard Biener  <rguenther@suse.de>
26720
26721         PR tree-optimization/66142
26722         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26723         values better in memcpy destination handling.  Handle non-aliasing
26724         we discover here.
26725
26726 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
26727
26728         PR target/63810
26729         * config/darwin-c.c (version_components): New global enum.
26730         (parse_version, version_as_legacy_macro)
26731         (version_as_modern_macro, macosx_version_as_macro): New functions.
26732         (version_as_macro): Remove.
26733         (darwin_cpp_builtins): Use new function.
26734
26735 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
26736
26737         * builtins.c (expand_builtin_acc_on_device): Mark parameters
26738         with ATTRIBUTE_UNUSED.
26739
26740 2015-05-28  Julian Brown  <julian@codesourcery.com>
26741
26742         PR libgomp/65742
26743
26744         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26745         sequence for !ACCEL_COMPILER.
26746
26747 2015-05-28  Nick Clifton  <nickc@redhat.com>
26748
26749         * config/rx/rx.c (push_regs): New function.  Extracts code from...
26750         (rx_expand_prologue): ... here.  Use push_regs to push even small
26751         spans of registers.
26752         (pop_regs): New function.
26753         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
26754         registers.
26755
26756 2015-05-28  Richard Biener  <rguenther@suse.de>
26757
26758         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26759         member.
26760         (SLP_INSTANCE_BODY_COST_VEC): Remove.
26761         (vect_update_slp_costs_according_to_vf): Likewise.
26762         (vect_slp_analyze_operations): Update prototype.
26763         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26764         vect_update_slp_costs_according_to_vf, adjust.
26765         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26766         (vect_analyze_slp_cost_1): Likewise.
26767         (vect_analyze_slp_cost): Likewise.  Properly deal with
26768         widening reduction ops.  Commit body costs.
26769         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
26770         cost for loops from here.
26771         (vect_slp_analyze_operations): But do it from here when
26772         the vectorization factor is known and stmts are analyzed.
26773         (vect_bb_vectorization_profitable_p): Simplify.
26774         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26775         (vect_update_slp_costs_according_to_vf): Remove.
26776
26777 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
26778             H.J. Lu  <hongjiu.lu@intel.com>
26779
26780         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26781         (BUILD_CFLAGS): Likewise.
26782         (BUILD_CXXFLAGS): Likewise.
26783         (LINKER): Add @NO_PIE_FLAG@.
26784         (BUILD_LDFLAGS): Likewise.
26785         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26786         --enable-default-pie.
26787         * common.opt (fPIE): Initialize to -1.
26788         (fpie): Likewise.
26789         (no-pie): New option.
26790         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26791         * configure.ac: Add --enable-default-pie.
26792         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
26793         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
26794         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
26795         * gcc.c (NO_PIE_SPEC): New.
26796         (PIE_SPEC): Likewise.
26797         (NO_FPIE1_SPEC): Likewise.
26798         (FPIE1_SPEC): Likewise.
26799         (NO_FPIE2_SPEC): Likewise.
26800         (FPIE2_SPEC): Likewise.
26801         (NO_FPIE2_SPEC): Likewise.
26802         (FPIE_SPEC): Likewise.
26803         (NO_FPIE_SPEC): Likewise.
26804         (NO_FPIC1_SPEC): Likewise.
26805         (FPIC1_SPEC): Likewise.
26806         (NO_FPIC2_SPEC): Likewise.
26807         (FPIC2_SPEC): Likewise.
26808         (NO_FPIC2_SPEC): Likewise.
26809         (FPIC_SPEC): Likewise.
26810         (NO_FPIC_SPEC): Likewise.
26811         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26812         (FPIE1_OR_FPIC1_SPEC): Likewise.
26813         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26814         (FPIE2_OR_FPIC2_SPEC): Likewise.
26815         (NO_FPIE_AND_FPIC_SPEC): Likewise.
26816         (FPIE_OR_FPIC_SPEC): Likewise.
26817         (LD_PIE_SPEC): Likewise.
26818         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
26819         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26820         * config/darwin.h (PIE_SPEC): Renamed to ...
26821         (DARWIN_PIE_SPEC): This.
26822         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26823         * config/darwin9.h (PIE_SPEC): Renamed to ...
26824         (DARWIN_PIE_SPEC): This.
26825         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26826         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26827         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26828         FPIE2_OR_FPIC2_SPEC.
26829         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26830         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26831         * config/sol2.h (ASM_PIC_SPEC): Likewise.
26832         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26833         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26834         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26835         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26836         * config/m32r/m32r.h (ASM_SPEC): Likewise.
26837         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26838         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26839         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26840         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26841         * config/sparc/linux.h (ASM_SPEC): Likewise.
26842         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26843         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26844         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26845         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26846         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26847         * config/sparc/sparc.h (ASM_SPEC): Likewise.
26848         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26849         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26850         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26851         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26852         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26853         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26854         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26855         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26856         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26857         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26858         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26859         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26860         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26861         * config/vax/linux.h (ASM_SPEC): Likewise.
26862         * doc/install.texi: Document --enable-default-pie.
26863         * doc/invoke.texi: Document -no-pie.
26864         * config.in: Regenerated.
26865         * configure: Likewise.
26866
26867 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26868
26869         PR rtl-optimization/66168
26870         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26871         can_move_invariant_reg.
26872
26873 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
26874
26875         PR target/66148
26876         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26877         REG_EQUAL note when doing insert.
26878
26879         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26880         instead of "%d" for 'o' operand.
26881
26882 2015-05-27  Nathan Sidwell  <nathan@acm.org>
26883
26884         PR c++/66270
26885         * tree.c (build_pointer_type_for_mode): Canonical type does not
26886         inherit can_alias_all.
26887         (build_reference_type_for_mode): Likewise.
26888
26889 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26890
26891         * expr.h (array_at_struct_end_p): Move to...
26892         (array_ref_element_size): Likewise.
26893         (component_ref_field_offset): Likewise.
26894         * tree.h (array_ref_element_size): ...here.
26895         (array_at_struct_end_p): Likewise.
26896         (component_ref_field_offset): Likewise.
26897         * expr.c (array_ref_element_size): Move to...
26898         (array_ref_low_bound): Likewise.
26899         (array_at_struct_end_p): Likewise.
26900         (array_ref_up_bound): Likewise.
26901         (component_ref_field_offset): Likewise.
26902         * tree.c (array_ref_element_size): ...here.
26903         (array_ref_low_bound): Likewise.
26904         (array_ref_up_bound): Likewise.
26905         (array_at_struct_end_p): Likewise.
26906         (component_ref_field_offset): Likewise.
26907
26908 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26909             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26910
26911         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26912
26913 2015-05-27  Jason Merrill  <jason@redhat.com>
26914
26915         PR bootstrap/66304
26916         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26917         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26918         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26919
26920 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
26921
26922         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26923         is true.
26924
26925         * statistics.c (statistics_fini_pass): Print pass name.
26926
26927 2015-05-27  Richard Biener  <rguenther@suse.de>
26928
26929         PR tree-optimization/66272
26930         Revert parts of
26931         2014-08-15  Richard Biener  <rguenther@suse.de>
26932
26933         PR tree-optimization/62031
26934         * tree-data-ref.c (dr_analyze_indices): Do not set
26935         DR_UNCONSTRAINED_BASE.
26936         (dr_may_alias_p): All indirect accesses have to go the
26937         formerly DR_UNCONSTRAINED_BASE path.
26938         * tree-data-ref.h (struct indices): Remove
26939         unconstrained_base member.
26940         (DR_UNCONSTRAINED_BASE): Remove.
26941
26942 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
26943
26944         * dwarf2out.c: Remove block_map.
26945         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26946         (gen_lexical_block_die): Same.
26947         (dwarf2out_function_decl): Remove block_map use.
26948         (dwarf2out_c_finalize): Same.
26949         * tree-core.h (struct tree_block): Add die field.
26950         * tree.h (BLOCK_DIE): New.
26951
26952 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26953
26954         PR target/65358
26955         * expr.c (memory_load_overlap): New function.
26956         (emit_push_insn): When pushing partial args to the stack would
26957         clobber the register part load the overlapping part into a pseudo
26958         and put it into the hard reg after pushing.  Change return type
26959         to bool.  Add bool argument.
26960         * expr.h (emit_push_insn): Change return type to bool.
26961         Add bool argument.
26962         * calls.c (expand_call): Cancel sibcall optimization when encountering
26963         partial argument on targets with ARGS_GROW_DOWNWARD and
26964         !STACK_GROWS_DOWNWARD.
26965         (emit_library_call_value_1): Update callsite of emit_push_insn.
26966         (store_one_arg): Likewise.
26967
26968 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26969
26970         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26971
26972 2015-05-27  Martin Liska  <mliska@suse.cz>
26973
26974         * Makefile.in: Add additional dependencies related to memory report
26975         enhancement.
26976         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26977         * bitmap.c (struct bitmap_descriptor_d): Remove.
26978         (struct loc): Likewise.
26979         (struct bitmap_desc_hasher): Likewise.
26980         (bitmap_desc_hasher::hash): Likewise.
26981         (bitmap_desc_hasher::equal): Likewise.
26982         (get_bitmap_descriptor): Likewise.
26983         (bitmap_register): User new memory descriptor API.
26984         (register_overhead): Likewise.
26985         (bitmap_find_bit): Register nsearches and search_iter statistics.
26986         (struct bitmap_output_info): Remove.
26987         (print_statistics): Likewise.
26988         (dump_bitmap_statistics): Use new memory descriptor.
26989         * bitmap.h (struct bitmap_usage): New class.
26990         * genmatch.c: Extend header file inclusion.
26991         * genpreds.c: Likewise.
26992         * ggc-common.c (struct ggc_usage): New class.
26993         (struct ggc_loc_desc_hasher): Remove.
26994         (ggc_loc_desc_hasher::hash): Likewise.
26995         (ggc_loc_desc_hasher::equal): Likewise.
26996         (struct ggc_ptr_hash_entry): Likewise.
26997         (struct ptr_hash_hasher): Likewise.
26998         (ptr_hash_hasher::hash): Likewise.
26999         (ptr_hash_hasher::equal): Likewise.
27000         (make_loc_descriptor): Likewise.
27001         (ggc_prune_ptr): Likewise.
27002         (dump_ggc_loc_statistics): Use new memory descriptor.
27003         (ggc_record_overhead): Likewise.
27004         (ggc_free_overhead): Likewise.
27005         (final_cmp_statistic): Remove.
27006         (cmp_statistic): Likewise.
27007         (ggc_add_statistics): Liekwise.
27008         (ggc_prune_overhead_list): Likewise.
27009         * hash-map-traits.h: New file.
27010         * hash-map.h (struct default_hashmap_traits): Move the traits to a
27011         separate header file.
27012         * hash-set.h: Pass memory statistics info to ctor.
27013         * hash-table.c (void dump_hash_table_loc_statistics): New function.
27014         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27015         (hash_table::~hash_table): Register memory release operation.
27016         (hash_table::alloc_entries): Handle memory allocation operation.
27017         (hash_table::expand): Likewise.
27018         * inchash.c (iterative_hash_hashval_t): Move implementation to header
27019         file.
27020         (iterative_hash_host_wide_int): Likewise.
27021         * inchash.h (class hash): Likewise.
27022         * mem-stats-traits.h: New file.
27023         * mem-stats.h: New file.
27024         (mem_location): Add new class.
27025         (mem_usage): Likewise.
27026         (mem_alloc_description): Likewise.
27027         * sese.c: Add new header file inclusision.
27028         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27029         and hash_set.
27030         * tree-sra.c: Add new header file inclusision.
27031         * vec.c (struct vec_descriptor): Remove.
27032         (hash_descriptor): Likewise.
27033         (struct vec_usage): Likewise.
27034         (struct ptr_hash_entry): Likewise.
27035         (hash_ptr): Likewise.
27036         (eq_ptr): Likewise.
27037         (vec_prefix::register_overhead): Use new memory descriptor API.
27038         (vec_prefix::release_overhead): Likewise.
27039         (add_statistics): Remove.
27040         (dump_vec_loc_statistics): Use new memory descriptor API.
27041         * vec.h (struct vec_prefix): Likewise.
27042         (va_heap::reserve): Likewise.
27043         (va_heap::release): Likewise.
27044         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27045
27046 2015-05-27  Richard Biener  <rguenther@suse.de>
27047
27048         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27049         earlier and remove ??? comment.
27050         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27051         and got called from loop analysis bail out.  Always pass the SLP
27052         node to the vectorizable_* functions.
27053         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27054         the premature SLP check here.
27055         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27056         detected SLP stmts.
27057         (vect_detect_hybrid_slp_1): Likewise.
27058
27059 2015-05-26  Jeff Law  <law@redhat.com>
27060
27061         * combine.c (find_split_point): Verify that the shift count is a
27062         constant when choosing (plus (ashift ...)) as a split point.
27063
27064         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27065         No functional changes.
27066
27067 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
27068
27069         * ipa-polymorphic-call.c
27070         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27071         case when call target is already known.
27072
27073 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
27074
27075         PR target/65979
27076         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27077         take into account the case that operands[1] and operands[2]
27078         are the same register.
27079
27080 2015-05-26  Michael Matz  <matz@suse.de>
27081
27082         PR middle-end/66251
27083
27084         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27085         stores.
27086         (vect_create_vectorized_demotion_stmts): Always set
27087         STMT_VINFO_VEC_STMT, also with SLP.
27088         (vectorizable_store): Handle strided group stores.
27089
27090 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27091
27092         PR target/66049
27093         * config/aarch64/aarch64.md
27094         (*adds_shift_imm_<mode>):  New pattern.
27095         (*subs_shift_imm_<mode>):  Likewise.
27096         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
27097         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27098         (*add_uxt<mode>_shift2): Likewise.
27099         (*add_uxtsi_shift2_uxtw): Likewise.
27100         (*sub_uxt<mode>_shift2): Likewise.
27101         (*sub_uxtsi_shift2_uxtw): Likewise.
27102
27103 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
27104
27105         * config/rs6000/constraints.md (Y, U): Use match_test.
27106
27107 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27108
27109         PR target/52144
27110         * config/arm/arm.c (arm_option_check_internal)
27111         (arm_option_params_internal): Check opts->target_flags to set macros.
27112         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27113         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27114         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27115         (builtin_define): Replaced with def_or_undef_macro.
27116         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27117         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27118         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27119         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27120         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27121         (TARGET_ARM_FEATURE_LDREX_P)
27122         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27123         * config/arm/arm-c.c (def_or_undef_macro): New function.
27124         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27125
27126 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27127
27128         * c-common.h (builtin_define_with_int_value)
27129         (builtin_define_type_sizeof): Declare.
27130         * c-cppbuiltin.c (builtin_define_with_int_value)
27131         (builtin_define_type_sizeof): Externalize.
27132         (builtin_define_std): Cleanup declaration.
27133         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27134         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27135         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27136         (builtin_define, builtin_assert): New macros.
27137
27138 2015-05-26  Richard Biener  <rguenther@suse.de>
27139
27140         PR tree-optimization/66142
27141         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27142         MEM_REFs for the same base address.
27143
27144 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27145
27146         PR ipa/66181
27147         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27148
27149 2015-05-26  Jason Merrill  <jason@redhat.com>
27150
27151         * configure.ac: Set CXXFLAGS for ISL test.
27152         * configure: Regenerate.
27153
27154         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
27155         strstr and basename.
27156         * configure: Regenerate.
27157
27158 2015-05-26  Richard Biener  <rguenther@suse.de>
27159
27160         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27161         X % C -> X & (C - 1) for C being a power-of two to ...
27162         * match.pd: ... patterns.
27163
27164 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
27165
27166         * match.pd (swapped_tcc_comparison): New operator list.
27167         (-A CMP -B): New simplification.
27168         * fold-const.c (fold_comparison): Remove corresponding code.
27169
27170 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27171
27172         * caller-save.c (init_caller_save): Base temporary register numbers
27173         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27174         * cfgloopanal.c (init_set_costs): Likewise.
27175         * dojump.c (prefer_and_bit_test): Likewise.
27176         * expr.c (init_expr_target): Likewise.
27177         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27178         * lower-subreg.c (init_lower_subreg): Likewise.
27179         * postreload.c (reload_cse_regs_1): Likewise.
27180
27181 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27182
27183         * gensupport.h (compute_test_codes): Declare.
27184         * gensupport.c (compute_predicate_codes): Rename to...
27185         (compute_test_codes): ...this.  Generalize error message.
27186         (process_define_predicate): Update accordingly.
27187         * genpreds.c (compute_maybe_allows): Delete.
27188         (add_constraint): Use compute_test_codes to determine whether
27189         something can accept a SUBREG, REG or MEM.
27190
27191 2015-05-26  Torvald Riegel  <triegel@redhat.com>
27192
27193         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27194         'memory model' to align with C++11; fix description of memory orders;
27195         fix a few typos.
27196
27197 2015-05-26  Richard Biener  <rguenther@suse.de>
27198
27199         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27200         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
27201         detect whether we apply SLP.  Remove call to
27202         vect_update_slp_costs_according_to_vf.
27203         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27204         vect_update_slp_costs_according_to_vf from here.  Dispatch
27205         to vect_slp_analyze_operations to analyze SLP stmts.
27206         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27207         unused bb_vec_info parameter, adjust assert.
27208         (vect_slp_analyze_operations): Pass in the slp instance tree
27209         instead of bb_vec_info.
27210         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27211         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27212
27213 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27214
27215         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27216         Q_REGS.  Expand comment.
27217         (REG_CLASS_NAMES): Ditto.
27218         (REG_CLASS_CONTENTS): Ditto.
27219
27220 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
27221
27222         PR target/66274
27223         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27224         when LEGACY_INT_REGNO_P is processed.
27225
27226 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27227
27228         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27229
27230 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27231
27232         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27233         register if not marked dead/unused, before return.
27234
27235 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27236
27237         PR lto/66180
27238         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27239         is set; check for assembler name at LTO time.
27240         (type_in_anonymous_namespace): Remove hacks, check that all
27241         anonymous types are called "<anon>"
27242         (odr_type_p): Simplify; add check for "<anon>"
27243         (odr_subtypes_equivalent): Add odr_type_p check.
27244         * tree.c (need_assembler_name_p): Even anonymous namespace needs
27245         assembler name.
27246
27247 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27248
27249         * ipa-utils.h (method_class_type): Remove.
27250         * cgraphunit.c (walk_polymorphic_call_targets): Use
27251         TYPE_METHOD_BASETYPE.
27252         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27253         on main variants only.
27254         (method_class_type): Remove.
27255         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27256         (build_type_inheritance_graph): Likewise.
27257         * ipa-icf.c (sem_function::equals_wpa): Likewise.
27258         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27259         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27260
27261 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27262
27263         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27264         is_typedef_decl, typedef_variant_p): Constify.
27265         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27266         is_typedef_decl, typedef_variant_p): Constify.
27267
27268 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27269
27270         * defaults.h (gen_tablejump): New function.
27271         (HAVE_tablejump): Add default value.
27272         * expr.c: Adjust.
27273         * stmt.c: Likewise.
27274
27275 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27276
27277         * defaults.h (gen_store_multiple): New function.
27278         (HAVE_store_multiple): Add default value.
27279         * expr.c (move_block_from_reg): Adjust.
27280
27281 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27282
27283         * defaults.h (gen_load_multiple): New function.
27284         (HAVE_load_multiple): Add default value.
27285         * expr.c (move_block_to_reg): Adjust.
27286
27287 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27288
27289         * defaults.h (gen_mem_signal_fence): New function.
27290         (HAVE_mem_signal_fence): Add default value.
27291         * optabs.c: Adjust.
27292
27293 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27294
27295         * defaults.h (gen_memory_barrier): New function.
27296         (HAVE_memory_barrier): Add default value.
27297         * optabs.c: Adjust.
27298
27299 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27300
27301         * defaults.h (gen_mem_thread_fence): New function.
27302         (HAVE_mem_thread_fence): Add default definition.
27303         * optabs.c: Adjust.
27304
27305 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27306
27307         * combine.c (find_split_point): Check the value of HAVE_lo_sum
27308         instead of if it is defined.
27309         (combine_simplify_rtx): Likewise.
27310         * lra-constraints.c (process_address_1): Likewise.
27311         * config/darwin.c: Adjust.
27312         * genconfig.c (main): Always define HAVE_lo_sum.
27313
27314 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27315
27316         * genmatch.c (parser::parse_operation): Reject expanding
27317         operator-list inside 'for'.
27318
27319 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27320
27321         * genmatch.c (parser::parse_for): Reject iterator if used as
27322         operator-list.
27323
27324 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27325
27326         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27327         after end of id-list.
27328
27329 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27330
27331         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27332         we do not try to compute canonical type for type that does not need
27333         alias set.
27334         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27335         FUNCITON_TYPE.
27336         * tree.h (type_with_alias_set_p): New.
27337
27338 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27339
27340         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
27341         function attributes.
27342         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27343
27344 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
27345
27346         * Makefile.in (check_gcc_parallelize): Delete.
27347         (lang_checks_parallelized): Update comment.
27348
27349 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
27350
27351         PR rtl-optimization/66237
27352         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27353         location of an "as_a" cast.
27354
27355 2015-05-22  Jeff Law  <law@redhat.com>
27356
27357         * config/pa/pa.md (non-canonical shift-add insns): Remove.
27358         (peepholes with non-canonical RTL sources): Remove.
27359         (peepholes for indexed stores of FP regs in integer modes): Match and
27360         generate canonical RTL.
27361
27362 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27363
27364         PR tree-optimization/63387
27365         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27366         ((x ord x) & (y ord y) -> (x ord y),
27367         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27368         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27369         vectors like scalars.
27370
27371 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27372
27373         * convert.c (convert_to_integer, convert_to_vector): Include the
27374         types in the error message.
27375
27376 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27377
27378         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27379         simplifications.
27380
27381 2015-05-22  Jeff Law  <law@redhat.com>
27382
27383         * config/pa/pa.md (integer_indexed_store splitters): Use
27384         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
27385         insns -- adjusting the constant 2nd operand accordingly.
27386
27387         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27388         (plus (ashift X log2) Y) if it is a split point.
27389
27390         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27391         out of hppa_legitimize_address to handle both forms of a multiply
27392         by 2, 4 or 8.
27393         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27394         Always generate the ASHIFT variant as the result is not directly
27395         used in a MEM.  Update comments and refactor slightly to improve
27396         readability.
27397
27398 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27399
27400         PR target/65491
27401         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27402         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
27403         (aarch64_composite_type_p): Return false if given type and mode are
27404         for a short vector.
27405
27406 2015-05-22  Richard Biener  <rguenther@suse.de>
27407
27408         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27409         member.
27410         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27411         patterns when determining whether SLP is pure.
27412         (vect_is_slp_reduction): Remove check for pattern stmts.
27413         (vect_is_simple_reduction_1): Remove dead code.
27414         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27415         (vect_get_and_check_slp_defs): Pass in the stmt number.
27416         Allow the first def in a reduction to be not a pattern stmt when
27417         the rest of the stmts def are patterns.
27418         (vect_build_slp_tree_1): Allow tcc_expression codes like
27419         SAD_EXPR and DOT_PROD_EXPR.
27420         (vect_build_slp_tree): Adjust.
27421         (vect_analyze_slp): Refactor and move BB vect error message ...
27422         (vect_slp_analyze_bb_1): ... here.
27423
27424 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
27425
27426         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27427         for CSWTCH temporary.
27428
27429 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27430
27431         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27432         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
27433         unknown unspecs.
27434
27435 2015-05-22  Richard Biener  <rguenther@suse.de>
27436
27437         PR tree-optimization/66251
27438         * tree-vect-stmts.c (vectorizable_conversion): Properly
27439         set STMT_VINFO_VEC_STMT even for the SLP case.
27440
27441 2015-05-22  Marek Polacek  <polacek@redhat.com>
27442
27443         * doc/extend.texi: Use @pxref instead of @xref.
27444
27445 2015-05-22  hiraditya  <hiraditya@msn.com>
27446
27447         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27448         redundant if.
27449
27450 2015-05-22  Richard Biener  <rguenther@suse.de>
27451
27452         PR tree-optimization/65701
27453         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27454         Move peeling cost models into one place.  Peel for alignment
27455         for single loads only if an aligned load is cheaper than
27456         an unaligned load.
27457
27458 2015-05-22  Marek Polacek  <polacek@redhat.com>
27459
27460         PR c/47043
27461         * doc/extend.texi (Enumerator Attributes): New section.
27462         Document syntax of enumerator attributes.
27463
27464 2015-05-22  Richard Biener  <rguenther@suse.de>
27465
27466         * tree-vect-loop.c (get_reduction_op): New function.
27467         (vect_model_reduction_cost): Use it, add reduc_index parameter.
27468         Make ready for BB reductions.
27469         (vect_create_epilog_for_reduction): Use get_reduction_op.
27470         (vectorizable_reduction): Init reduc_index to a valid value.
27471         Adjust vect_model_reduction_cost call.
27472         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27473         operand for reduction defaults.  Add SAD_EXPR support.
27474         Assert we have a neutral op for SLP reductions.
27475         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27476         walking pattern stmt ops only recurse to SSA names.
27477
27478 2015-05-22  Richard Biener  <rguenther@suse.de>
27479
27480         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27481         assert with guard, remove check on detected reduction.
27482         (vect_recog_sad_pattern): Likewise.
27483         (vect_recog_widen_sum_pattern): Likewise.
27484
27485 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27486
27487         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27488         __always_inline__ attribute.
27489         (vaesdq_u8): Likewise.
27490         (vaesmcq_u8): Likewise.
27491         (vaesimcq_u8): Likewise.
27492         (vsha1cq_u32): Likewise.
27493         (vsha1mq_u32): Likewise.
27494         (vsha1pq_u32): Likewise.
27495         (vsha1h_u32): Likewise.
27496         (vsha1su0q_u32): Likewise.
27497         (vsha1su1q_u32): Likewise.
27498         (vsha256hq_u32): Likewise.
27499         (vsha256h2q_u32): Likewise.
27500         (vsha256su0q_u32): Likewise.
27501         (vsha256su1q_u32): Likewise.
27502         (vmull_p64): Likewise.
27503         (vmull_high_p64): Likewise.
27504
27505 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27506
27507         * final.c (final_scan_insn): Don't check HAVE_peephole with the
27508         preprocessor.
27509         * output.h: Likewise.
27510         * genconfig.c (main): Alwways define HAVE_peephole.
27511         * genpeep.c: Don't emit checks of HAVE_peephole.
27512
27513 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27514
27515         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27516         check HAVE_conditional_move with the preprocessor.
27517
27518 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27519
27520         * genconfig.c (main): Always define HAVE_conditional_move.
27521         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27522         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27523         is defined.
27524
27525 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27526
27527         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27528         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27529         and FRAME_POINTER_REGNUM with the preprocessor.
27530
27531 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27532
27533         * defaults.h: Add default for STACK_PUSH_CODE.
27534         * expr.c: Don't redefine STACK_PUSH_CODE.
27535         * recog.c: Likewise.
27536
27537 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27538
27539         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27540         sched-deps.c: Use if instead of preprocessor checks with
27541         STACK_GROWS_DOWNWARD.
27542
27543 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27544
27545         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27546         is defined.
27547         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27548         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27549         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27550         * doc/tm.texi: Regenerate.
27551
27552 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
27553
27554         PR target/66232
27555         * config/i386/constraints.md (Bg): New constraint for GOT memory
27556         operand.
27557         * config/i386/i386.md (*call_got_x32): New pattern.
27558         (*call_value_got_x32): Likewise.
27559         * config/i386/predicates.md (GOT_memory_operand): New predicate.
27560
27561 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
27562
27563         PR tree-optimization/66233
27564         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27565         Simplify.
27566
27567 2015-05-21  Jeff Law  <law@redhat.com>
27568
27569         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27570         than MULT for shadd sequences.
27571
27572 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
27573
27574         * alias.c (alias_stats): New static var.
27575         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27576         (dump_alias_stats_in_alias_c): New function.
27577         * alias.h (dump_alias_stats_in_alias_c): Declare.
27578         * tree-ssa-alias.c (dump_alias_stats): Call it.
27579
27580 2015-05-08  Michael Matz  <matz@suse.de>
27581
27582         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27583         to strided_p.
27584         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27585         (STMT_VINFO_STRIDED_P): ... this.
27586         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27587         (vect_verify_datarefs_alignment): Likewise.
27588         (vect_enhance_data_refs_alignment): Likewise.
27589         (vect_analyze_data_ref_access): Likewise.
27590         (vect_analyze_data_refs): Accept strided stores.
27591         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27592         (vect_model_load_cost): Adjust for macro rename.
27593         (vectorizable_mask_load_store): Likewise.
27594         (vectorizable_load): Likewise.
27595         (vectorizable_store): Open code strided stores.
27596
27597 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27598
27599         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27600         Document sqrt_insn.
27601
27602 2015-05-21  Richard Biener  <rguenther@suse.de>
27603
27604         PR c++/66211
27605         * match.pd: Guard pattern optimzing (int)(float)int
27606         conversions to apply only on GIMPLE.
27607
27608 2015-05-21  Jeff Law  <law@redhat.com>
27609
27610         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27611         multiply-accumulate/shift-add insn generation.
27612
27613 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
27614
27615         PR target/54236
27616         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27617         operands[1] are the same.
27618
27619 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
27620
27621         PR middle-end/66221
27622         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27623         build_distinct_type_copy to copy bounds.
27624
27625 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
27626
27627         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27628         Change to unsigned int.
27629
27630 2015-05-20  Jeff Law  <law@redhat.com>
27631
27632         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27633         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27634         (pa_shadd_constant_p): Allow constants for shadd insns rather
27635         than valid scaling constants for memory addresses.
27636         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27637         * config/pa/predicates.md (mem_shadd_operand): New predicate.
27638         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27639         (shift-add insns using ASHIFT): New patterns.
27640
27641 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
27642
27643         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27644         feasible.
27645         (fix_up_fall_thru_edges): Likewise.
27646         (fix_crossing_conditional_branches): Likewise. Promote jump targets
27647         from to rtx_insn to rtx_code_label where feasible.
27648         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27649         gen_move_insn (returned type changed to rtx_insn).
27650         * builtins.c (expand_errno_check): Fix arguments of
27651         do_compare_rtx_and_jump (now expects rtx_code_label).
27652         (expand_builtin_acc_on_device): Likewise.
27653         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27654         invert_jump (now exprects rtx_jump_insn).
27655         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27656         (construct_init_block): Use rtx_code_label.
27657         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27658         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27659         calling redirect_jump.
27660         (patch_jump_insn): Likewise.
27661         (redirect_branch_edge): Likewise.
27662         (force_nonfallthru_and_redirect): Likewise.
27663         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27664         when suitable.
27665         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27666         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27667         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27668         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27669         to store the value retured by gen_label_rtx.
27670         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27671         rtx_jump_insn.
27672         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27673         (split_branches): Fix calls of redirect_jump.
27674         * dojump.c (jumpifnot): Promote argument type from rtx to
27675         rtx_code_label.
27676         (jumpifnot_1): Likewise.
27677         (jumpif): Likewise.
27678         (jumpif_1): Likewise.
27679         (do_jump_1): Likewise.
27680         (do_jump): Likewise. Use rtx_code_label when feasible.
27681         (do_jump_by_parts_greater_rtx): Likewise.
27682         (do_jump_by_parts_zero_rtx): Likewise.
27683         (do_jump_by_parts_equality_rtx): Likewise.
27684         (do_compare_rtx_and_jump): Likewise.
27685         * dojump.h: Update function prototypes.
27686         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27687         returns rtx_insn).
27688         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27689         rtx_jump_insn.
27690         (emit_label_before): Likewise.
27691         (emit_jump_insn_after_noloc): Likewise.
27692         (emit_jump_insn_after_setloc): Likewise.
27693         (emit_jump_insn_after): Likewise
27694         (emit_jump_insn_before_setloc): Likewise.
27695         (emit_jump_insn_before): Likewise.
27696         (emit_label_before): Promote return type to rtx_code_label.
27697         (emit_label): Likewise.
27698         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27699         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27700         gen_move_insn.
27701         (emit_stack_restore): Likewise.
27702         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27703         (do_cmp_and_jump): Likewise.
27704         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27705         from rtx to rtx_code_label.
27706         (gen_move_insn_uncast): New function.
27707         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27708         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27709         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27710         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27711         invert_jump_1 and redirect_jump_1.
27712         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27713         do_compare_rtx_and_jump.
27714         (expand_addsub_overflow): Likewise.
27715         (expand_neg_overflow): Likewise.
27716         (expand_mul_overflow): Likewise.
27717         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27718         return value of gen_move_insn.
27719         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27720         * loop-doloop.c (add_test): Use rtx_code_label.
27721         (doloop_modify): Likewise.
27722         (doloop_optimize): Likewise.
27723         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27724         * lra-constraints.c (emit_spill_move): Remove cast of value returned
27725         by gen_move_insn.
27726         (inherit_reload_reg): Add cast when calling dump_insn_slim.
27727         (split_reg): Likewise.
27728         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27729         gen_move_insn.
27730         * optabs.c (expand_binop_directly): Remove casts of values returned by
27731         maybe_gen_insn.
27732         (expand_unop_direct): Likewise.
27733         (expand_abs): Likewise.
27734         (maybe_emit_unop_insn): Likewise.
27735         (maybe_gen_insn): Promote return type to rtx_insn.
27736         * optabs.h: Update prototype of maybe_gen_insn.
27737         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27738         redundant cast.
27739         * recog.c (struct peep2_insn_data): Promote type of insn field to
27740         rtx_insn.
27741         (peep2_reinit_state): Use NULL instead of NULL_RTX.
27742         (peep2_attempt): Remove casts of insn in peep2_insn_data.
27743         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27744         * recog.h (struct insn_gen_fn): Promote return types of function
27745         pointers and operator ().from rtx to rtx_insn.
27746         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27747         (fill_eager_delay_slots): Likewise.
27748         (relax_delay_slots): Likewise.
27749         (make_return_insns): Likewise.
27750         (dbr_schedule): Likewise.
27751         (optimize_skips): Likewise.
27752         (reorg_redirect_jump): Likewise.
27753         (fill_slots_from_thread): Likewise.
27754         * reorg.h: Update prototypes.
27755         * resource.c (find_dead_or_set_registers): Use dyn_cast to
27756         rtx_jump_insn instead of check.  Use it's jump_target method.
27757         * rtl.h (rtx_jump_insn::jump_label): Define new method.
27758         (rtx_jump_insn::jump_target): Define new method.
27759         (rtx_jump_insn::set_jump_target): Define new method.
27760         * rtlanal.c (tablejump_p): Promote type of one local variable.
27761         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27762         (sched_analyze_insn): Likewise.
27763         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27764         (print_insn): Likewise.
27765         * stmt.c (label_rtx): Promote return type to rtx_insn.
27766         (force_label_rtx): Likewise.
27767         (jump_target_rtx): Define new function.
27768         (expand_label): Use it, get rid of one cast.
27769         (expand_naked_return): Promote rtx to rtx_code_label.
27770         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27771         (expand_case): Use rtx_code_label instread of rtx where feasible.
27772         (expand_sjlj_dispatch_table): Likewise.
27773         (emit_case_nodes): Likewise.
27774         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
27775         * store-motion.c (insert_store): Make use of new return type of
27776         gen_move_insn and remove a cast.
27777         (replace_store_insn): Likewise.
27778
27779 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
27780
27781         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27782         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27783
27784 2015-05-20  Jeff Law  <law@redhat.com>
27785
27786         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27787         dispose of the jump thread path when the jump threading
27788         opportunity is cancelled.
27789
27790 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27791
27792         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27793         when printing the caret character.
27794
27795 2015-05-20  Marek Polacek  <polacek@redhat.com>
27796
27797         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27798
27799 2015-05-20  Marek Polacek  <polacek@redhat.com>
27800
27801         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27802         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27803         * gimple-fold.c (canonicalize_bool): Likewise.
27804         (same_bool_result_p): Likewise.
27805         * tree-if-conv.c (parse_predicate): Likewise.
27806
27807 2015-05-20  Marek Polacek  <polacek@redhat.com>
27808
27809         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27810         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27811
27812 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27813
27814         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27815         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27816         values.
27817
27818 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
27819
27820         * config/mips/mips.h (micromips_globals): Declare.
27821
27822 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
27823
27824         * timevar.def (TV_INITIALIZE_RTL): New.
27825         * toplev.c (initialize_rtl): Use an auto_timevar to account this
27826         function's time to TV_INITIALIZE_RTL.
27827
27828 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
27829
27830         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27831         gimple_build_nop calls.
27832         (chkp_find_bounds_for_elem): Likewise.
27833         (chkp_get_zero_bounds): Likewise.
27834         (chkp_get_none_bounds): Likewise.
27835         (chkp_get_bounds_by_definition): Likewise.
27836         (chkp_generate_extern_var_bounds): Likewise.
27837         (chkp_get_bounds_for_decl_addr): Likewise.
27838         (chkp_get_bounds_for_string_cst): Likewise.
27839
27840 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
27841
27842         PR tree-optimization/65447
27843         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27844         (dump_use, dump_uses): Support to dump sub use.
27845         (record_use): New parameters to support sub use.  Remove call to
27846         dump_use.
27847         (record_sub_use, record_group_use): New functions.
27848         (compute_max_addr_offset, split_all_small_groups): New functions.
27849         (group_address_uses, rewrite_use_address): New functions.
27850         (strip_offset): New declaration.
27851         (find_interesting_uses_address): Call record_group_use.
27852         (add_candidate): New assertion.
27853         (infinite_cost_p): Move definition forward.
27854         (add_costs): Check INFTY cost and return immediately.
27855         (get_computation_cost_at): Clear setup cost and dependent bitmap
27856         for sub uses.
27857         (determine_use_iv_cost_address): Compute cost for sub uses.
27858         (rewrite_use_address_1): Rename from old rewrite_use_address.
27859         (free_loop_data): Free sub uses.
27860         (tree_ssa_iv_optimize_loop): Call group_address_uses.
27861
27862 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27863             Jim Wilson  <jim.wilson@linaro.org>
27864
27865         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27866         new  fields loadv and storev.
27867         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27868         Initialize loadv and storev.
27869         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27870         (cortexa53_extra_costs): Likewise.
27871         (cortexa57_extra_costs): Likewise.
27872         (xgene1_extra_costs): Likewise.
27873         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27874         rtx_costs.
27875
27876 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27877
27878         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27879          storev.
27880         (cortexa8_extra_costs): Likewise.
27881         (cortexa5_extra_costs): Likewise.
27882         (cortexa7_extra_costs): Likewise.
27883         (cortexa12_extra_costs): Likewise.
27884         (cortexa15_extra_costs): Likewise.
27885         (v7m_extra_costs): Likewise.
27886
27887 2015-05-20  Jeff Law  <law@redhat.com>
27888
27889         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27890         instead of open-coded version.  Also delete the jump thread created
27891         within this function.
27892
27893 2015-05-20  Alan Modra  <amodra@gmail.com>
27894
27895         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27896         stack adjusting insn.  Formatting.
27897         (rs6000_emit_prologue): Track stack adjusting insn, and use of
27898         r12.  If possible, emit first -fsplit-stack arg pointer insn
27899         before stack adjust.  Don't use r12 to save cr if split-stack.
27900
27901 2015-05-20  Alan Modra  <amodra@gmail.com>
27902
27903         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27904         Define.
27905         (rs6000_supports_split_stack): New function.
27906         * config/rs6000/rs6000.c (machine_function): Add
27907         split_stack_arg_pointer.
27908         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27909         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27910         rather than virtual_incoming_args_rtx.
27911         (rs6000_va_start): Likewise.
27912         (split_stack_arg_pointer_used_p): New function.
27913         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27914         (morestack_ref): New var.
27915         (gen_add3_const, rs6000_expand_split_stack_prologue,
27916         rs6000_internal_arg_pointer, rs6000_live_on_entry,
27917         rs6000_split_stack_space_check): New functions.
27918         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27919         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27920         (UNSPECV_SPLIT_STACK_RETURN): Define.
27921         (split_stack_prologue, load_split_stack_limit,
27922         load_split_stack_limit_di, load_split_stack_limit_si,
27923         split_stack_return, split_stack_space_check): New expands and insns.
27924         * config/rs6000/rs6000-protos.h
27925         (rs6000_expand_split_stack_prologue): Declare.
27926         (rs6000_split_stack_space_check): Declare.
27927
27928 2015-05-20  Alan Modra  <amodra@gmail.com>
27929
27930         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27931         (direct_return): Test vrsave_size rather than vrsave_mask.
27932         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
27933         (rs6000_emit_epilogue): Likewise.
27934
27935 2015-05-20  Alan Modra  <amodra@gmail.com>
27936
27937         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27938         when not saving registers.
27939         (debug_stack_info): Adjust to omit printing unused offsets,
27940         as before.
27941         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27942         expression.
27943
27944 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27945
27946         PR c++/65835
27947         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27948         value_type to const char *.
27949
27950 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
27951
27952         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27953         to build a biarch toolchain again.
27954
27955 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27956
27957         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27958         or implicit declarations.
27959         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27960         into it.
27961         (get_odr_type): Check type has linkage before adding bases.
27962         (register_odr_type): Check that type has linkage before adding it.
27963         (type_known_to_have_no_deriavations_p): Rename to ..
27964         (type_known_to_have_no_derivations_p): This one.
27965         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27966         (type_known_to_have_no_derivations_p): This one.
27967         * ipa-polymorphic-call.c
27968         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27969         type has linkage.
27970
27971 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27972
27973         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27974         (layout_type): Use RECORD_OR_UNION_TYPE_P.
27975
27976 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27977
27978         * config/s390/s390.c (s390_vector_bool_type_p): New function.
27979         (s390_invalid_binary_op): New function.
27980         (TARGET_INVALID_BINARY_OP): Define macro.
27981
27982 2015-05-19  David Sherwood  <david.sherwood@arm.com>
27983
27984         * loop-invariant.c (create_new_invariant): Don't calculate address cost
27985         if mode is not a scalar integer.
27986         (get_inv_cost): Increase computational cost for unused invariants.
27987
27988 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27989
27990         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
27991         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
27992         * config/s390/s390-builtin-types.def: New file.
27993         * config/s390/s390-builtins.def: New file.
27994         * config/s390/s390-builtins.h: New file.
27995         * config/s390/s390-c.c: New file.
27996         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27997         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27998         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27999         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28000         prototypes.
28001         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28002         Include.
28003         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28004         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28005         variable definitions.
28006         (s390_const_operand_ok): New function.
28007         (s390_expand_builtin): Rewrite.
28008         (s390_init_builtins): New function.
28009         (s390_handle_vectorbool_attribute): New function.
28010         (s390_attribute_table): Add s390_vector_bool attribute.
28011         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28012         (s390_branch_condition_mask): Generate masks for new modes.
28013         (s390_expand_vec_compare_cc): New function.
28014         (s390_mangle_type): Add mangling for vector bool types.
28015         (enum s390_builtin): Remove.
28016         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28017         efpc builtins.
28018         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28019         s390_cpu_cpp_builtins.
28020         (REGISTER_TARGET_PRAGMAS): New macro.
28021         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28022         (insn_cmp mode attribute): Add new CC modes.
28023         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28024         (lcbb): New pattern definition.
28025         * config/s390/s390intrin.h: Include vecintrin.h.
28026         * config/s390/t-s390: New file.
28027         * config/s390/vecintrin.h: New file.
28028         * config/s390/vector.md: Include vx-builtins.md.
28029         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28030         support.
28031
28032 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28033
28034         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28035         CCVFHE.
28036         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28037         (s390_select_ccmode): Likewise.
28038         (s390_canonicalize_comparison): Swap operands if necessary.
28039         (s390_expand_vec_compare_scalar): Expand DFmode compare using
28040         single element vector instructions.
28041         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28042         (s390_branch_condition_mask): Generate CC masks for the new modes.
28043         * config/s390/s390.md (v0, vf, vd): New mode attributes.
28044         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28045         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28046         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28047         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28048         (*extend<DSF:mode><BFP:mode>2): New insn definition.
28049         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28050         (extend<DSF:mode><BFP:mode>2): Turn into expander.
28051         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28052         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28053         (sqrt<mode>2): Add vector instruction.
28054
28055 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28056
28057         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28058         constraints.
28059         * config/s390/predicates.md (const0_operand, constm1_operand)
28060         (constable_operand): Accept vector operands.
28061         * config/s390/s390-modes.def: Add supported vector modes.
28062         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28063         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28064         (s390_bytemask_vector_p, s390_expand_vec_strlen)
28065         (s390_expand_vec_compare, s390_expand_vcond)
28066         (s390_expand_vec_init): Add prototypes.
28067         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28068         (s390_vector_mode_supported_p): New function.
28069         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28070         (s390_contiguous_bitmask_vector_p): New function.
28071         (s390_bytemask_vector_p): New function.
28072         (s390_split_ok_p): Vector regs don't work either.
28073         (regclass_map): Add VEC_REGS.
28074         (s390_legitimate_constant_p): Handle vector constants.
28075         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28076         (legitimate_reload_vector_constant_p): New function.
28077         (s390_preferred_reload_class): Handle CONST_VECTOR.
28078         (s390_reload_symref_address):  Likewise.
28079         (s390_secondary_reload): Vector memory instructions only support
28080         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
28081         (s390_emit_ccraw_jump): New function.
28082         (s390_expand_vec_strlen): New function.
28083         (s390_expand_vec_compare): New function.
28084         (s390_expand_vcond): New function.
28085         (s390_expand_vec_init): New function.
28086         (s390_dwarf_frame_reg_mode): New function.
28087         (print_operand): Handle addresses with 'O' and 'R' constraints.
28088         (NR_C_MODES, constant_modes): Add vector modes.
28089         (s390_output_pool_entry): Handle vector constants.
28090         (s390_hard_regno_mode_ok): Handle vector registers.
28091         (s390_class_max_nregs): Likewise.
28092         (s390_cannot_change_mode_class): New function.
28093         (s390_invalid_arg_for_unprototyped_fn): New function.
28094         (s390_function_arg_vector): New function.
28095         (s390_function_arg_float): Remove size variable.
28096         (s390_pass_by_reference): Handle vector arguments.
28097         (s390_function_arg_advance): Likewise.
28098         (s390_function_arg): Likewise.
28099         (s390_return_in_memory): Vector values are returned in a VR if
28100         possible.
28101         (s390_function_and_libcall_value): Handle vector arguments.
28102         (s390_gimplify_va_arg): Likewise.
28103         (s390_call_saved_register_used): Consider the arguments named.
28104         (s390_conditional_register_usage): Disable v16-v31 for non-vec
28105         targets.
28106         (s390_preferred_simd_mode): New function.
28107         (s390_support_vector_misalignment): New function.
28108         (s390_vector_alignment): New function.
28109         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28110         (TARGET_VECTOR_MODE_SUPPORTED_P)
28111         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28112         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28113         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28114         (TARGET_VECTOR_ALIGNMENT): Define target macro.
28115         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28116         (FIRST_PSEUDO_REGISTER): Increase value.
28117         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28118         (VECTOR_REG_P): Define macros.
28119         (FIXED_REGISTERS, CALL_USED_REGISTERS)
28120         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28121         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28122         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28123         Add vector registers.
28124         (CANNOT_CHANGE_MODE_CLASS): Call C function.
28125         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28126         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28127         memory.
28128         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28129         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28130         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28131         (VR*_REGNUM): New constants.
28132         (ALL): New mode iterator.
28133         (INTALL): Remove mode iterator.
28134         Include vector.md.
28135         (movti): Implement TImode moves for VRs.
28136         Disable TImode splitter for VR targets.
28137         Implement splitting TImode GPR<->VR moves.
28138         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28139         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28140         reload<mode>_la_in, reload<mode>_la_out.
28141         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28142         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28143         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28144         (mov<mode> SF SD): Prefer lder, lde for loading.
28145         Add lrl and strl instructions.
28146         Add vector instructions.
28147         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28148         Call s390_expand_vec_strlen on z13.
28149         (*cc_to_int): Change predicate to nonimmediate_operand.
28150         (addti3): Rename to *addti3.  New expander.
28151         (subti3): Rename to *subti3.  New expander.
28152         * config/s390/vector.md: New file.
28153
28154 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28155
28156         * common/config/s390/s390-common.c (processor_flags_table): Add
28157         z13.
28158         * config.gcc: Add z13.
28159         * config/s390/s390-opts.h (enum processor_type): Add
28160         PROCESSOR_2964_Z13.
28161         * config/s390/s390.c (s390_adjust_priority): Check for
28162         PROCESSOR_2964_Z13.
28163         (s390_reorg): Likewise.
28164         (s390_sched_reorder): Likewise.
28165         (s390_sched_variable_issue): Likewise.
28166         (s390_loop_unroll_adjust): Likewise.
28167         (s390_option_override): Likewise. Default to -mvx when available.
28168         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28169         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28170         (TARGET_VX_ABI): Define macros.
28171         macros.
28172         (TARGET_DEFAULT): Add MASK_OPT_VX.
28173         * config/s390/s390.md ("cpu" attribute): Add z13.
28174         ("cpu_facility" attribute): Add vec.
28175         * config/s390/s390.opt (processor_type): Add z13.
28176         (mvx): New options.
28177         * doc/invoke.texi: Add z13 option for -march.
28178
28179 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28180
28181         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28182         mode check to make sure that only scalar integer values are
28183         accepted.
28184
28185 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28186
28187         * tree.c (verify_type_variant): Fix #undef.
28188         (gimple_canonical_types_compatible_p): Move here from lto.c
28189         (verify_type): Verify TYPE_CANONICAL compatibility.
28190         * tree.h (gimple_canonical_types_compatible_p): Declare.
28191
28192 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28193
28194         PR middle-end/66199
28195         * tree.h (OMP_TEAMS_COMBINED): Define.
28196         * gimplify.c (enum gimplify_omp_var_data): Add
28197         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28198         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28199         (omp_notice_variable): Accept both ORT_TEAMS
28200         and ORT_COMBINED_TEAMS.  Don't recurse if
28201         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28202         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28203         GOVD_FIRSTPRIVATE.
28204         (omp_no_lastprivate): New function.
28205         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28206         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28207         notice_outer and set appropriate bits, otherwise make
28208         sure default(none) combined constructs won't complain.
28209         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28210         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28211         omp_no_lastprivate either remove the clause or turn it
28212         into OMP_CLAUSE_PRIVATE.
28213         (gimplify_omp_for): Fix up handling of implicit
28214         lastprivate or linear iterators.
28215         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28216         ORT_COMBINED_TEAMS.
28217         * omp-low.c (lower_omp_for_lastprivate): For combined
28218         for simd use fd.loop.n2 from the for rather than simd.
28219
28220 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28221
28222         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28223         instead of gen_rtx_raw_REG.
28224         (cris_expand_epilogue): Likewise.
28225         * config/microblaze/microblaze.c (microblaze_classify_address):
28226         Likewise.
28227         * config/sparc/sparc.md: Likewise.
28228
28229 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
28230
28231         * config/alpha/alpha.c (alpha_legitimize_reload_address)
28232         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28233         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28234         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28235         Use CASE_CONST_SCALAR_INT.
28236         (print_operand) <case 'M'>: Use mode_width_operand to check the
28237         value of the constant.
28238         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28239         * config/alpha/predicates.md (input_operand): Use general_operand
28240         instead of match_code as operand check.
28241         (symbolic_operand): Use match_code with subexpression digits.
28242         * config/alpha/constraints.md (Q): Ditto.
28243
28244 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28245
28246         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28247
28248 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28249
28250         * config/s390/s390.c (s390_secondary_reload): Fix check for
28251         load/store relative.
28252
28253 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28254
28255         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
28256         alternative_mask to uint64_t.
28257
28258 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28259
28260         PR tree-optimization/66187
28261         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28262         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
28263         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28264
28265 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
28266
28267         * diagnostic.c (diagnostic_report_current_module): Strengthen
28268         local "new_map" from const line_map * to
28269         const line_map_ordinary *.
28270         * genmatch.c (error_cb): Likewise for local "map".
28271         (output_line_directive): Likewise for local "map".
28272         * input.c (expand_location_1): Likewise for local "map".
28273         Pass NULL rather than &map to
28274         linemap_unwind_to_first_non_reserved_loc, since the value is never
28275         read from there, and the value written back not read from here.
28276         (is_location_from_builtin_token): Strengthen local "map" from
28277         const line_map * to const line_map_ordinary *.
28278         (dump_location_info): Strengthen locals "map" from
28279         line_map *, one to const line_map_ordinary *, the other
28280         to const line_map_macro *.
28281         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28282         const line_map * to const line_map_macro *.
28283         (maybe_unwind_expanded_macro_loc): Add a call to
28284         linemap_check_macro when writing to the "map" field of the
28285         loc_map_pair.
28286         Introduce local const line_map_ordinary * "ord_map", using it in
28287         place of "map" in the part of the function where we know we have
28288         an ordinary map.  Strengthen local "m" from const line_map * to
28289         const line_map_ordinary *.
28290
28291 2015-05-19  Nick Clifton  <nickc@redhat.com>
28292
28293         PR target/66156
28294         * config/msp430/msp430.md (zero_extendhisi2): Add support for
28295         separate source and destination registers.
28296
28297 2015-05-19  Richard Biener  <rguenther@suse.de>
28298
28299         PR tree-optimization/66165
28300         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28301         for no load permutation.
28302
28303         PR tree-optimization/66185
28304         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28305         when building the SLP node from scalars.
28306
28307 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28308             Tristan Gingold  <gingold@adacore.com>
28309
28310         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28311         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28312         (expand_stack_restore): Call record_new_stack_level.
28313         (expand_stack_save): Do not call do_pending_stack_adjust.
28314         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28315         * calls.c (expand_call): Call record_new_stack_level for alloca.
28316         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28317         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28318         (update_sjlj_context): New global function.
28319         * except.h (update_sjlj_context): Declare.
28320         * explow.c (record_new_stack_level): New global function.
28321         (allocate_dynamic_stack_space): Call record_new_stack_level.
28322         * explow.h (record_new_stack_level): Declare.
28323         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28324         * cfgrtl.c (duplicate_insn_chain): Likewise.
28325
28326 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28327
28328         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28329         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28330         STACK_GROWS_DOWNWARD as normal if.
28331         (expand_call): Likewise.
28332
28333 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
28334
28335         PR target/54236
28336         * config/sh/sh.md (*round_int_even): New insn_and_split and
28337         accompanying new unnamed split.
28338
28339 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28340
28341         * bitmap.c (bitmap_set_range): Handle count==1 specially.
28342         (bitmap_clear_range): Likewise.
28343         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28344         bitmap_set_range unconditionally.
28345         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28346         * df-scan.c (df_mark_reg): Likewise.
28347         * haifa-sched.c (setup_ref_regs): Likewise.
28348         * sched-rgn.c (update_live_1): Likewise.
28349
28350 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28351
28352         * regs.h (END_HARD_REGNO): Delete.
28353         (END_REGNO): Move to...
28354         * rtl.h: ...here.
28355         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28356         * caller-save.c (mark_set_regs): Likewise.
28357         * combine.c (move_deaths, distribute_notes): Likewise.
28358         * cse.c (invalidate, invalidate_for_call): Likewise.
28359         * df-scan.c (df_ref_record): Likewise.
28360         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28361         (record_last_reg_set_info): Likewise.
28362         * reg-stack.c (convert_regs_exit): Likewise.
28363         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28364         * resource.c (update_live_status): Likewise.
28365         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28366
28367 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28368
28369         * rtl.h (reg_info): Add an nregs field.
28370         (REG_NREGS): Use it.
28371         (SET_REGNO_RAW): Delete.
28372         (set_regno_raw): New function.
28373         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28374         (END_REGNO): Redefine in terms of REG_NREGS.
28375         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28376         SET_REGNO_RAW.
28377         * emit-rtl.c (set_mode_and_regno): Likewise.
28378         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28379         instead of SET_REGNO_RAW.
28380
28381 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28382
28383         * rtl.h (PUT_MODE_RAW): New macro.
28384         (PUT_REG_NOTE_KIND): Use it.
28385         (set_mode_and_regno): Declare.
28386         (gen_raw_REG): Change regno to "unsigned int".
28387         (gen_rtx_REG): Change "unsigned" to "unsigned int".
28388         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28389         use set_mode_and_regno to change the mode of registers.
28390         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28391         * emit-rtl.c (set_mode_and_regno): New function.
28392         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
28393         * caller-save.c (reg_save_code): Use set_mode_and_regno.
28394         * expr.c (init_expr_target): Likewise.
28395         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28396         * postreload.c (reload_cse_simplify_operands): Likewise.
28397
28398 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28399
28400         * caller-save.c (init_caller_save): Use word_mode and
28401         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28402         * expr.c (init_expr_target): Likewise.
28403         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28404         * postreload.c (reload_cse_regs_1): Likewise.
28405
28406 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28407
28408         * rtl.def (REG): Change format to "r".
28409         * rtl.h (rtunion): Remove rt_reg.
28410         (reg_info): New structure.
28411         (rtx_def): Add reg field to main union.
28412         (X0REGATTR): Delete.
28413         (REG_CHECK): New macro.
28414         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28415         * rtl.c (rtx_format): Document "r".
28416         (rtx_code_size): Handle REG specially.
28417         * gengenrtl.c (special_format): Return true for formats
28418         that include 'r'.
28419         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28420         Deal with REG_ATTRS after the field loop.
28421         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28422         * expmed.c (init_expmed): Call gen_raw_REG instead of
28423         gen_rtx_raw_REG.
28424         * expr.c (init_expr_target): Likewise.
28425         * regcprop.c (maybe_mode_change): Likewise.
28426         * varasm.c (make_decl_rtl): Likewise.
28427         * final.c (leaf_renumber_regs_insn): Return early after
28428         handling REGs.
28429         * genemit.c (gen_exp): Handle 'r' fields.
28430         * genpeep.c (match_rtx): Likewise.
28431         * gensupport.c (subst_pattern_match): Likewise.
28432         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28433         (alter_constraints, subst_dup): Likewise.
28434         * read-rtl.c (read_rtx_code): Likewise.
28435         * print-rtl.c (print_rtx): Likewise.
28436         * genrecog.c (find_operand, find_matching_operand): Likewise.
28437         (validate_pattern, match_pattern_2): Likewise.
28438         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28439         (rtx_test::regno_field): New function.
28440         (operator ==, safe_to_hoist_p, transition_parameter_type)
28441         (parameter_type_string, print_parameter_value)
28442         (print_nonbool_test, print_test): Handle new enum values.
28443         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28444         * lra-constraints.c (operands_match_p): Likewise.
28445
28446 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28447
28448         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28449         Change type of new_regno to unsigned int.
28450         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28451         new_regno to unsigned int.
28452         (df_ref_change_reg_with_loc): Remove old_regno parameter.
28453         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
28454         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28455         (SET_REGNO_RAW): Add space after ",".
28456
28457 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28458
28459         * rtl.h (REG_NREGS): New macro
28460         * alias.c (record_set): Use it.
28461         * cfgcleanup.c (mark_effect): Likewise.
28462         * combine.c (likely_spilled_retval_1): Likewise.
28463         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28464         (move_deaths, distribute_notes): Likewise.
28465         * cselib.c (cselib_record_set): Likewise.
28466         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28467         * df-scan.c (df_mark_reg): Likewise.
28468         * dse.c (look_for_hardregs): Likewise.
28469         * dwarf2out.c (reg_loc_descriptor): Likewise.
28470         (multiple_reg_loc_descriptor): Likewise.
28471         * expr.c (write_complex_part, read_complex_part): Likewise.
28472         (emit_move_complex): Likewise.
28473         * haifa-sched.c (setup_ref_regs): Likewise.
28474         * ira-lives.c (mark_hard_reg_live): Likewise.
28475         * lra.c (lra_set_insn_recog_data): Likewise.
28476         * mode-switching.c (create_pre_exit): Likewise.
28477         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28478         (reload_combine_recognize_pattern): Likewise.
28479         (reload_combine_note_use, move2add_record_mode): Likewise.
28480         (reload_cse_move2add): Likewise.
28481         * reg-stack.c (subst_stack_regs_pat): Likewise.
28482         * regcprop.c (kill_value, copy_value): Likewise.
28483         (copyprop_hardreg_forward_1): Likewise.
28484         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28485         (build_def_use): Likewise.
28486         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28487         (deps_analyze_insn): Likewise.
28488         * sched-rgn.c (check_live_1, update_live_1): Likewise.
28489         * sel-sched.c (count_occurrences_equiv): Likewise.
28490         * valtrack.c (dead_debug_insert_temp): Likewise.
28491
28492 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28493
28494         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28495         * dse.c (note_add_store): Likewise.
28496         * ira-lives.c (mark_hard_reg_dead): Likewise.
28497         * loop-invariant.c (mark_reg_store): Likewise.
28498         (mark_reg_death): Likewise.
28499         * postreload.c (reload_combine): Likewise.
28500         (reload_combine_note_store): Likewise.
28501         (reload_combine_note_use): Likewise.
28502         * recog.c (peep2_reg_dead_p): Likewise.
28503
28504 2015-05-19  Alan Modra  <amodra@gmail.com>
28505
28506         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28507         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28508         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28509         unused predicates.
28510         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28511         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
28512         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28513         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28514
28515 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
28516
28517         * config/mips/mips.md (JOIN_MODE): New mode iterator.
28518         (join2_load_Store<JOIN_MODE:mode>): New pattern.
28519         (join2_loadhi): Likewise.
28520         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28521         load-load and store-stores.
28522         * config/mips/mips.opt (mload-store-pairs): New option.
28523         (TARGET_LOAD_STORE_PAIRS): New macro.
28524         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28525         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28526         * config/mips/mips.c (mips_load_store_bonding_p): New function.
28527
28528 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
28529
28530         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28531         explicit swaps.
28532         * dojump.c (do_compare_rtx_and_jump): Likewise.
28533         * expmed.c (emit_store_flag_1): Likewise.
28534         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28535         * final.c (sprint_ul): Use std::reverse for reversing a string.
28536         * fold-const.c (extract_muldiv_1): Use std::swap.
28537         * genmodes.c (emit_mode_int_n): Likewise.
28538         * ifcvt.c (dead_or_predicable): Likewise.
28539         * ira-build.c (ira_merge_live_ranges): Likewise.
28540         (swap_allocno_copy_ends_if_necessary): Likewise.
28541         * ira.c (ira_setup_alts): Likewise.
28542         * loop-iv.c (iv_analyze_expr): Likewise.
28543         (implies_p): Likewise.
28544         (canon_condition): Likewise.
28545         * lra-constraints.c (swap_operands): Likewise.
28546         * lra-lives.c (lra_merge_live_ranges): Likewise.
28547         * omega.c (swap): Remove.
28548         (bswap): Remove.
28549         (omega_unprotect_1): Use std::swap.
28550         (omega_solve_geq): Likewise.
28551         * optabs.c (expand_binop_directly): Likewise.
28552         (expand_binop): Likewise.
28553         (emit_conditional_move): Likewise.
28554         (emit_conditional_add): Likewise.
28555         * postreload.c (reload_cse_simplify_operands): Likewise.
28556         * reg-stack.c (emit_swap_insn): Likewise.
28557         (swap_to_top): Likewise.
28558         (compare_for_stack_reg): Likewise.
28559         (subst_asm_stack_regs): Likewise.
28560         * reload.c (find_reloads): Likewise.
28561         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28562         * sel-sched.c (invoke_reorder_hooks): Likewise.
28563         (create_block_for_bookkeeping): Likewise.
28564         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28565         (lambda_matrix_right_hermite): Use std::swap.
28566         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28567         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28568         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28569         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28570         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28571         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28572         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28573         * tree-vrp.c (compare_ranges): Likewise.
28574         * var-tracking.c (add_with_sets): Likewise.
28575         (vt_find_locations): Likewise.
28576
28577 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
28578
28579         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28580         pie executables.
28581         (FBSD_ENDFILE_SPEC): Likewise.
28582         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28583         config/freebsd-spec.h.
28584         (ENDFILE_SPEC): Likewise.
28585
28586 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
28587             Richard Henderson  <rth@redhat.com>
28588
28589         PR target/57032
28590         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28591         Check for a memory location that is not a reference (using an AND)
28592         to an unaligned location here.
28593         * config/alpha/predicates.md (normal_memory_operand): Remove.
28594
28595 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
28596
28597         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28598         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28599
28600 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
28601
28602         * config/mips/mips.c (micromips_globals): New variable.
28603         (mips_set_compression_mode): Save and reinitialize target-dependent
28604         state for microMIPS.
28605
28606 2015-05-18  Martin Liska  <mliska@suse.cz>
28607
28608         * dbgcnt.def: Add new counter.
28609         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28610
28611 2015-05-18  Martin Liska  <mliska@suse.cz>
28612
28613         * dbgcnt.def: Sort counters.
28614         * opts.c (common_handle_option): Do not compile if
28615         -fdbg-cnt-list is enabled.
28616
28617 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28618
28619         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28620         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
28621         address operator to va_list operand.
28622         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28623         unconditionally.
28624         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28625         operand.
28626         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28627         * config/s390/s390.c (s390_gimplify_va_arg): Same.
28628         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28629
28630 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28631
28632         * tree-ssa-tail-merge.c: Fix whitespace.
28633
28634 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
28635
28636         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28637         cortex-a17, and cortex-a17.cortex-a7.
28638
28639 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
28640
28641         PR target/54236
28642         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28643
28644 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
28645
28646         PR target/66174
28647         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28648         QImode inner modes for TARGET_AVX512BW.  Force mask operand
28649         to a register for AVX512F modes.
28650
28651 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28652
28653         * toplev.c (emit_debug_global_declarations): Do not output debug info
28654         when doing slim LTO objects.
28655
28656 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28657
28658         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28659         odr_types_equivalent_p): Declare.
28660         (odr_type_p): Use gcc_checking_assert.
28661         (type_in_anonymous_namespace_p) Declare.
28662         (type_with_linkage_p): Declare.
28663         * common.opt (Wlto-type-mismatch): New warning.
28664         * ipa-devirt.c (compound_type_base): New function.
28665         (odr_or_derived_type_p): New function.
28666         (odr_types_equivalent_p): New function.
28667         (add_type_duplicate): Simplify.
28668         (type_with_linkage_p): Add hack to prevent false positives on C types
28669         (type_in_anonymous_namespace_p): Likewise.
28670         * tree.c (need_assembler_name_p): Use type_with_linkage.
28671         * tree.h (type_in_anonymous_namespace_p): Remove.
28672         * doc/invoke.texi (-Wlto-type-mismatch): Document
28673
28674 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28675
28676         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28677         (verify_type): Verify STRING_FLAG.
28678
28679 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28680
28681         PR fortran/44054
28682         * tree-pretty-print.c (percent_K_format): Replace locus pointer
28683         with accessor function.
28684         * tree-diagnostic.c (diagnostic_report_current_function): Use
28685         diagnostic_location function.
28686         (maybe_unwind_expanded_macro_loc): Likewise.
28687         (virt_loc_aware_diagnostic_finalizer): Likewise.
28688         (default_tree_printer): Replace locus pointer with accessor function.
28689         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28690         (diagnostic_set_info_translated): Initialize second location.
28691         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28692         (diagnostic_show_locus): Handle two locations. Call
28693         diagnostic_print_caret_line.
28694         (diagnostic_print_caret_line): New.
28695         (default_diagnostic_starter): Use diagnostic_location function.
28696         (diagnostic_report_diagnostic): Use diagnostic_location function.
28697         (verbatim): Do not set text.locus.
28698         * diagnostic.h (struct diagnostic_info): Remove location field.
28699         (struct diagnostic_context): Make caret_chars an array of two.
28700         (diagnostic_location): New inline.
28701         (diagnostic_expand_location): Handle two locations.
28702         (diagnostic_same_line): New inline.
28703         (diagnostic_print_caret_line): Declare.
28704         (CARET_LINE_MARGIN): New constant.
28705         * pretty-print.c (pp_printf): Do not set text.locus.
28706         (pp_verbatim): Do not set text.locus.
28707         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28708         (struct text_info): Replace locus pointer with locations
28709         array. Add accessor functions.
28710
28711 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
28712             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28713
28714         PR target/65768
28715         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28716         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28717          large constants in register instead of splitting them.
28718
28719 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
28720
28721         PR target/66140
28722         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28723         replacements in memory addresses.
28724         (get_unaligned_address): Ditto.
28725
28726 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
28727
28728         * config/ft32/*: New files for FT32 port.
28729         * doc/install.texi: Add FT32 information.
28730         * doc/invoke.texi: Add FT32 information.
28731         * doc/md.texi: Add FT32 information.
28732         * doc/contrib.texi: Self added.
28733
28734 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
28735
28736         PR tree-optimization/64454
28737         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28738         (-1 - A -> ~A): Remove unnecessary condition.
28739
28740 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
28741
28742         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28743         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28744         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28745
28746 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
28747
28748         * ipa-chkp.h (chkp_wrap_function): New.
28749         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28750         (chkp_wrap_function_name): New.
28751         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28752         to get wrapper name.
28753         * lto-cgraph.c: Include ipa-chkp.h.
28754         (input_cgraph_1): Avoid alias chain for wrappers.
28755
28756 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28757
28758         PR middle-end/66134
28759         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28760         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28761
28762 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28763
28764         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28765         (AARCH64_FL_SLOWMUL): Delete.
28766         (AARCH64_FL_CRC): Redefine to 1<<3.
28767         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28768
28769 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28770
28771         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28772         casting.
28773
28774 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28775
28776         * config/alpha/alpha.md (extendqidi2): Use general_operand
28777         instead of some_operand for operand[1] predicate.
28778         (extendhidi2): Ditto.
28779         (cbranchdi4): Use general_operand instead of some_operand
28780         for operand[1] and operands[2] predicates.
28781         (cstoredi4): Ditto.
28782         * config/alpha/predicates.md (some_operand): Remove unused predicate.
28783         (some_ni_operand): Ditto.
28784
28785 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28786
28787         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28788         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
28789         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28790         low part of the constant using alpha_emit_set_const_1.
28791         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28792
28793 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
28794
28795         * varasm.c (output_constant_pool_1): Pass down alignment from
28796         constant pool entry's descriptor to output_constant_pool_2.
28797         (output_object_block): Add comment prior to call to
28798         output_constant_pool_1.
28799
28800 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
28801
28802         PR rtl-optimization/65862
28803         * target.def (ira_change_pseudo_allocno_class): New hook.
28804         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28805         value of the hook.
28806         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28807         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28808         hook.
28809         * ira-costs.c (find_costs_and_classes): Call the hook and change
28810         classes when it is necessary.
28811         * doc/tm.texi: Update.
28812
28813 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
28814
28815         * config/i386/i386.md (sibcall_memory): Check that register with
28816         callee address is not also used as one of the arguments, instead
28817         of checking that it is not live after the sibcall.
28818         (sibcall_pop_memory): Ditto.
28819         (sibcall_value_memory): Ditto.
28820         (sibcall_value_pop_memory): Ditto.
28821
28822 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
28823
28824         * generic-match-head.c (types_match): Handle non-types.
28825         * gimple-match-head.c (types_match): Likewise.
28826         * match.pd: Remove unnecessary TREE_TYPE for types_match.
28827
28828 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
28829
28830         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28831         (csneg3<mode>_insn): Enable expansion of pattern.
28832
28833 2015-05-14  Nick Clifton  <nickc@redhat.com>
28834
28835         * config/rl78/rl78.c (rl78_select_section): Select the correct
28836         default section based upon the category of the decl.
28837
28838 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28839
28840         PR rtl-optimization/30967
28841         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28842         destination mode for the cost of scc patterns.
28843
28844 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28845
28846         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28847         using SWIM248 mode iterator.
28848         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28849         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
28850         for operand[2] constraint.
28851         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28852
28853 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28854
28855         PR middle-end/66133
28856         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28857         make sure it is never noreturn, even when the task body does not
28858         return.
28859         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28860         right before GIMPLE_OMP_RETURN.
28861         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28862         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
28863         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28864
28865 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28866
28867         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28868         * tree-ssa-math-opts.c: Include params.h
28869         (pow_synth_sqrt_info): New struct.
28870         (representable_as_half_series_p): New function.
28871         (get_fn_chain): Likewise.
28872         (print_nested_fn): Likewise.
28873         (dump_fractional_sqrt_sequence): Likewise.
28874         (dump_integer_part): Likewise.
28875         (expand_pow_as_sqrts): Likewise.
28876         (gimple_expand_builtin_pow): Use above to attempt to expand
28877         pow as series of square roots.  Removed now unused variables.
28878
28879 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28880
28881         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28882         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28883         Remove *p0 and *p1 arguments.  Rewrite function.
28884         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28885         (alpha_split_const_mov): Update calls to alpha_extract_integer and
28886         alpha_emit_set_long_const.
28887         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28888         (alpha_output_mi_thunk_osf): Ditto.
28889         * config/alpha/alpha.md (movti): Do not check operands[1]
28890         for CONST_DOUBLE.
28891
28892 2015-05-13  Richard Biener  <rguenther@suse.de>
28893
28894         PR tree-optimization/66129
28895         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28896         commutative.
28897         (vect_schedule_slp_instance): Fix typo.
28898
28899 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
28900
28901         * common.opt (fdump-internal-locations): New option.
28902         * input.c: Include diagnostic-core.h.
28903         (get_end_location): New function.
28904         (write_digit): New function.
28905         (write_digit_row): New function.
28906         (dump_location_range): New function.
28907         (dump_labelled_location_range): New function.
28908         (dump_location_info): New function.
28909         * input.h (dump_location_info): New prototype.
28910         * toplev.c (compile_file): Handle flag_dump_locations.
28911
28912 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
28913
28914         * gimple-expr.h (is_gimple_constant): Reorder.
28915         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28916
28917 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28918
28919         * combine.c (simplify_set): When generating a CC set, if the
28920         source already is in the correct mode, do not wrap it in a
28921         compare.  Simplify the rest of that code.
28922
28923 2015-05-13  Richard Biener  <rguenther@suse.de>
28924
28925         PR tree-optimization/66123
28926         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28927         a taken edge.
28928
28929 2015-05-13  Richard Biener  <rguenther@suse.de>
28930
28931         PR middle-end/66110
28932         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28933         specially.
28934         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28935
28936 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28937
28938         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28939         * aclocal.m4: Regenerated with automake-1.11.6.
28940
28941 2015-05-13  Tom de Vries  <tom@codesourcery.com>
28942
28943         PR tree-optimization/66010
28944         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28945         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28946         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
28947         and rval based on do_deref.
28948
28949 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28950
28951         PR target/65103
28952         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28953         link time constants into adress expressions and therefore set
28954         their cost to 0.
28955
28956 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28957
28958         PR target/66112
28959         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28960         Use SWI248 iterator instead of SWI.
28961         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
28962         Use eq_attr "alternative" "0" instead of match_test in
28963         length_immediate attribute computation.
28964         (*mulvhi4, *mulvhi4_1): New define_insns.
28965
28966         PR target/66112
28967         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28968         SIGNED to get precision of non-negative value.
28969
28970 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28971
28972         PR target/66048
28973         * function.c (diddle_return_value_1): Process bounds first.
28974         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28975         register.
28976
28977 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28978
28979         PR rtl-optimization/64616
28980         * loop-invariant.c (can_move_invariant_reg): New.
28981         (move_invariant_reg): Call above new function to decide whether
28982         instruction can just be moved, skipping creation of temporary
28983         register.
28984
28985 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28986
28987         PR target/pr66047.c
28988         * i386.c (ix86_function_sseregparm): Only return -1 if local function
28989         with implied regparm is called from -mno-sse function.
28990         (init_cumulative_args): Output error if ix86_function_sseregparm
28991         return -1 and SSE register would be needed.
28992         (function_arg_advance_32): Likewise.
28993         (function_arg_32): Likewise.
28994         * i386.h (ix86_args): Add decl field.
28995
28996 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28997
28998         PR ipa/65873
28999         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29000         inlines across optimization boundary.
29001
29002 2015-05-12  Jason Merrill  <jason@redhat.com>
29003
29004         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29005         string literal and macro name.
29006
29007 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
29008
29009         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29010         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29011         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29012
29013 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29014
29015         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29016         (-Wmisleading-indentation): New option.
29017         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29018
29019 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
29020
29021         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29022         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29023         (alpha_extract_integer): Ditto.
29024         (alpha_legitimate_constant_p): Ditto.
29025         (alpha_split_tmode_pair): Ditto.
29026         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29027         (alpha_expand_mov): Ditto.
29028         (print_operand): Remove handling of 'H' modifier.
29029         <case 'm'>: Remove CONST_DOUBLE handling.
29030         (summarize_insn): Handle CONST_WIDE_INT.
29031         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29032         (anddi3): Ditto.
29033         (movti): Handle CONST_WIDE_INT.
29034         * config/alpha/constraints.md ('H'): Remove constraint definition.
29035         ('G'): Do not match MODE_FLOAT class.
29036         * config/alpha/predicates.md (const0_operand): Also match
29037         const_wide_int.
29038         (non_add_const_operand): Ditto.
29039         (non_zero_const_operand): Ditto.
29040         (some_operand): Ditto.
29041         (input_operand): Ditto.  Handle CONST_WIDE_INT.
29042         (and_operand): Do not match const_double.
29043         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29044
29045 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
29046
29047         PR target/65697
29048         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29049         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29050         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29051         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29052         is_mm_seq_cst, is_mm_sync): New accessor functions.
29053         * builtins.c (expand_builtin_sync_operation,
29054         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29055         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29056         (get_memmodel,  expand_builtin_atomic_compare_exchange,
29057         expand_builtin_atomic_load, expand_builtin_atomic_store,
29058         expand_builtin_atomic_clear): Use new accessor routines.
29059         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29060         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29061         (maybe_emit_sync_lock_test_and_set): Use new accessors and
29062         MEMMODEL_SYNC_ACQUIRE.
29063         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29064         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29065         expand_atomic_store): Use new accessors.
29066         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29067         * tsan.c (instrument_builtin_call): Update check for memory model beyond
29068         final enum to use MEMMODEL_LAST.
29069         * c-family/c-common.c: Use new accessor for memmodel_base.
29070         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29071         accessors.
29072         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29073         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29074         mem_thread_fence, *dmb): Likewise.
29075         * config/alpha/alpha.c (alpha_split_compare_and_swap,
29076         alpha_split_compare_and_swap_12): Likewise.
29077         * config/arm/arm.c (arm_expand_compare_and_swap,
29078         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29079         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29080         atomic_loaddi): Likewise.
29081         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29082         Likewise.
29083         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29084         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29085         use new accessors.
29086         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29087         atomic_store<mode>, atomic_compare_and_swap<mode>,
29088         atomic_exchange<mode>): Use new accessors.
29089         * config/mips/mips.c (mips_process_sync_loop): Likewise.
29090         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29091         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29092         rs6000_post_atomic_barrier): Add new cases.
29093         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29094         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29095         (atomic_load<mode>): Add new cases and use new accessors.
29096         (store_quadpti): Add new cases.
29097         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29098         accessors.
29099         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29100         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29101         model, not 8.
29102
29103 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29104
29105         * ipa-devirt.c (type_with_linkage_p): New function.
29106         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29107         type has linkage.
29108         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29109         (can_be_name_hashed_p): Simplify.
29110         (hash_odr_name): Check that type has linkage before checking if it is
29111         anonymous.
29112         (types_same_for_odr): Likewise.
29113         (odr_name_hasher::equal): Likewise.
29114         (odr_subtypes_equivalent_p): Likewise.
29115         (warn_types_mismatch): Likewise.
29116         (get_odr_type): Likewise.
29117         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29118         * ipa-utils.h (odr_type_p): Move offline.
29119         * tree.c (need_assembler_name_p): Fix handling of types
29120         without linkages.
29121         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29122
29123 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29124
29125         * timevar.c (timevar_enable): Delete in favor of...
29126         (g_timer): New global.
29127         (struct timevar_def): Move to timevar.h inside class timer.
29128         (struct timevar_stack_def): Likewise.
29129         (timevars): Delete global in favor of field "m_timevars" within
29130         class timer in timevar.h
29131         (stack): Likewise, in favor of field "m_stack".
29132         (unused_stack_instances): Likewise, in favor of field
29133         "m_unused_stack_instances".
29134         (start_time): Likewise, in favor of field "m_start_time".
29135         (get_time): Eliminate check for timevar_enable.
29136         (timer::timer): New function, built from part of timevar_init.
29137         (timevar_init): Rewrite idempotency test from using
29138         "timevar_enable" bool to using dynamic allocation of "g_timer".
29139         Move rest of implementation into timer's constructor.
29140         (timevar_push_1): Rename to...
29141         (timer::push): ...this, adding "m_" prefixes to variables that
29142         are now fields of timer.
29143         (timevar_pop_1): Likewise, rename to...
29144         (timer::pop): ...this, and add "m_" prefixes.
29145         (timevar_start): Replace test for "timevar_enable" with one for
29146         "g_timer", and move bulk of implementation to...
29147         (timer::start): ...here, adding "m_" prefixes.
29148         (timevar_stop): Likewise, from here...
29149         (timer::stop): ...to here.
29150         (timevar_cond_start): Likewise, from here...
29151         (timer::cond_start): ...to here.
29152         (timevar_cond_stop): Likewise, from here...
29153         (timer::cond_stop): ...to here.
29154         (validate_phases): Rename to...
29155         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
29156         locals "total" and "tv" const.
29157         (timevar_print): Rename to...
29158         (timer::print): ...this, and add "m_" prefixes.  Make locals
29159         "total" and "tv" const.  Eliminate test for timevar_enable.
29160         * timevar.h (timevar_enable): Eliminate.
29161         (g_timer): New declaration.
29162         (timevar_push_1): Eliminate.
29163         (timevar_pop_1): Eliminate.
29164         (timevar_print): Eliminate.
29165         (class timer): New class.
29166         (timevar_push): Rewrite to use g_timer.
29167         (timevar_pop): Likewise.
29168         * toplev.c (toplev::~toplev): Likewise.
29169
29170 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
29171
29172         * arm-protos.h (arm_sched_autopref): Delete.
29173         (tune_params): Re-organize, use enums for flag values.
29174         (FUSE_OPS): New macro.
29175         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29176         (ARM_PREFETCH_BENEFICIAL): Likewise.
29177         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29178         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29179         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29180         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29181         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29182         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
29183         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29184         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29185         format.
29186         (arm_option_override, thumb2_reorg, arm_print_tune_info)
29187         (aarch_macro_fusion_pair_p): Update uses of current_tune.
29188         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29189
29190 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
29191
29192         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29193         "break".
29194
29195 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
29196             Sandra Loosemore <sandra@codesourcery.com>
29197
29198         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29199         value.
29200         (REG_CLASS_NAMES): Add "IJMP_REGS".
29201         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29202         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29203         use new "c" register constraint.
29204         * config/nios2/constraint.md (c): New register constraint
29205         corresponding to IJMP_REGS.
29206
29207 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29208
29209         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29210         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29211         define_splits): Delete, revamp, transmogrify into ...
29212         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29213         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29214         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29215         New.
29216
29217 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29218
29219         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29220         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29221
29222 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29223
29224         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29225         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29226         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29227         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29228         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29229         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29230         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29231         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29232         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29233         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29234         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29235         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29236         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29237         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29238         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29239         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29240         and 30 corresponding splitters): Delete.
29241
29242 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29243
29244         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29245         zero_extract.
29246
29247 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29248
29249         * combine.c (recog_for_combine_1): New function, factored out
29250         from recog_for_combine.
29251         (change_zero_ext): New function.
29252         (recog_for_combine): If recog fails, try again with the pattern
29253         modified by change_zero_ext; if that still fails, restore the
29254         pattern.
29255
29256 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29257
29258         * combine.c (get_undo_marker): New function.
29259         (undo_to_marker): New function, largely factored out from ...
29260         (undo_all): ... this.  Adjust.
29261
29262 2015-05-12  Richard Biener  <rguenther@suse.de>
29263
29264         PR tree-optimization/66101
29265         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29266         fixup if we turn a loop exit edge to a fallthru edge.
29267
29268 2015-05-12  Richard Biener  <rguenther@suse.de>
29269
29270         PR tree-optimization/37021
29271         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29272         (SLP_TREE_TWO_OPERATORS): New define.
29273         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29274         SLP_TREE_TWO_OPERATORS.
29275         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29276         SLP node.
29277         (vect_build_slp_tree): Adjust.
29278         (vect_analyze_slp_cost_1): Likewise.
29279         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29280         emitting two vector stmts and mixing the results.
29281
29282 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29283
29284         * call.c (print_z_candidates): Remove dead code.
29285
29286 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29287
29288         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29289         and zEC12_simple_fp.
29290         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29291         to 1.
29292
29293 2015-05-12  Tom de Vries  <tom@codesourcery.com>
29294
29295         PR tree-optimization/66010
29296         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29297         ifn_va_arg.
29298         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29299         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
29300         va_lists are passed, and remove corresponding handling.
29301         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
29302         do_deref argument to ifn_va_arg.
29303         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29304         ifn_va_arg.
29305
29306 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29307
29308         PR target/65955
29309         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29310         REG before taking its REGNO.
29311
29312 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29313
29314         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29315         rsp->sign_bit_copies and rsp->nonzero_bits into ...
29316         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
29317         present to get more accurate information about the number of sign bit
29318         copies and non zero bits.
29319
29320 2015-05-12  Richard Biener  <rguenther@suse.de>
29321
29322         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29323         do not allow unrolling.
29324
29325 2015-05-11  Richard Henderson  <rth@redhat.com>
29326
29327         * config/i386/i386-modes.def (CCP): New.
29328         * config/i386/i386.c (put_condition_code): Handle it.
29329         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29330
29331 2015-05-11  Richard Henderson  <rth@redhat.com>
29332
29333         * target.def (md_asm_clobbers): Replace with...
29334         (md_asm_adjust): this.
29335         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29336         (TARGET_MD_ASM_ADJUST): New.
29337         * tm.texi: Rebuild.
29338         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29339         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29340         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29341
29342         * cfgexpand.c (check_operand_nalternatives): Accept vector of
29343         constraints instead of lists of outputs and inputs.
29344         (expand_asm_stmt): Save and restore input_location around the
29345         body of the function.  Move asm data into vectors instead of
29346         building tree lists.  Generate cleanup sequences as needed,
29347         rather than waiting til the end.  Use new md_asm_adjust hook.
29348
29349         * config/vxworks.c: Include vec.h before target.h.
29350         * gimple.c: Likewise.
29351         * incpath.c: Likewise.
29352         * mode-switching.c: Likewise.
29353
29354         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29355         (cris_md_asm_adjust): this.
29356         (TARGET_MD_ASM_CLOBBERS): Remove.
29357         (TARGET_MD_ASM_ADJUST): New.
29358         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29359         (ix86_md_asm_adjust): this.
29360         (TARGET_MD_ASM_CLOBBERS): Remove.
29361         (TARGET_MD_ASM_ADJUST): New.
29362         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29363         (mn10300_md_asm_adjust): this.
29364         (TARGET_MD_ASM_CLOBBERS): Remove.
29365         (TARGET_MD_ASM_ADJUST): New.
29366         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29367         (rs6000_md_asm_adjust): this.
29368         (TARGET_MD_ASM_CLOBBERS): Remove.
29369         (TARGET_MD_ASM_ADJUST): New.
29370         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29371         (visium_md_asm_adjust): this.
29372         (TARGET_MD_ASM_CLOBBERS): Remove.
29373         (TARGET_MD_ASM_ADJUST): New.
29374
29375 2015-05-11  Richard Henderson  <rth@redhat.com>
29376
29377         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29378         if noutputs is zero.
29379         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29380
29381         * cfgexpand.c (expand_asm_operands): Merge into...
29382         (expand_asm_stmt): ... here.
29383
29384         * cfgexpand.c (expand_asm_operands): Don't call
29385         resolve_asm_operand_names.
29386         * stmt.c (resolve_asm_operand_names): Clarify block comment.
29387
29388 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
29389
29390         * dwarf2out.c (gen_member_die): Sanity check that we access
29391         TYPE_MAIN_VARIANT for TYPE_METHODS.
29392         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29393         checking TYPE_METHODS.
29394         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29395         if non-null.
29396         (build_distinct_type_copy): Clear TYPE_METHODS.
29397         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29398         (verify_type): Allow TYPE_METHODS to be error_mark_node.
29399         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29400
29401 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
29402
29403         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29404         (emit_pattern_before_setloc): Likewise.
29405
29406 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29407
29408         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29409         for define_peephole2s.
29410         (get_peephole2_pattern): New function.
29411         (main): Use it.  Call validate_pattern.
29412
29413 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29414
29415         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29416         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29417         (Last callee saved reg is different for AVR_TINY architecture)
29418
29419 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29420
29421         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29422         when looking for memory references.
29423
29424 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29425
29426         PR target/65753
29427         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29428         via function pointers.
29429
29430 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29431
29432         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29433         indirect call by forcing address into a pseudo with -fno-plt.
29434         * common.opt (flag_plt): New option.
29435         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29436         ([-fno-plt]): Document.
29437
29438 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
29439
29440         PR bootstrap/66105
29441         * config/rs6000/option-defaults.h: Add space between string literal
29442         and macro name.
29443
29444 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29445
29446         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29447         accross ARM targets.
29448
29449 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29450
29451         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29452         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29453
29454 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29455
29456         PR rtl-optimization/66076
29457         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29458         Don't grow the heap array if it is already big enough from a
29459         previous iteration.
29460
29461 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29462
29463         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29464         (is_called_in_ARM_mode): Remove.
29465         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29466         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29467         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29468          arm_declare_function_name.
29469
29470 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29471
29472         * config/arm/arm.c (arm_option_override): Reoganized and split into :
29473         (arm_option_params_internal); New function.
29474         (arm_option_check_internal): New function.
29475         (arm_option_override_internal): New function.
29476         (thumb_code, thumb1_code): Remove.
29477         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29478         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29479         (thumb_code, thumb1_code): Remove.
29480         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29481
29482 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29483
29484         * config/alpha/alpha.c (alpha_emit_set_const_1)
29485         (alpha_emit_set_long_const, alpha_extract_integer)
29486         (alpha_legitimate_constant_p, alpha_split_const_mov)
29487         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29488         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29489         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29490         HOST_WIDE_INT_1U.
29491         * config/alpha/predicates.md (mode_mask_operand): Do not match
29492         const_double RTX.
29493         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29494         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29495         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29496         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29497         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29498
29499 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
29500
29501         PR target/65780
29502         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29503         default_binds_local_p_2.
29504         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29505         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29506
29507 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29508
29509         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29510
29511 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29512
29513         Patch by Richard Biener
29514         * coverage.c (coverage_obj_init): Delay building of type variant
29515         until the type is finished.
29516
29517 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29518
29519         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29520         mismatch between C and C++ type; compoare correctly ARG_TYPES
29521         for non-prototypes and output correctly parameter index for METHOD_TYPE.
29522         (odr_types_equivalent_p): Fix wording of warning about attributes;
29523         it is OK to match prototype and non-prototype.
29524
29525 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29526
29527         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29528         TYPE_ARG_TYPES list.
29529         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29530         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29531
29532 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29533
29534         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29535         * tree.h (is_lang_specific): Constify.
29536
29537 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
29538
29539         PR tree-optimization/64454
29540         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29541         Rewrite.
29542
29543 2015-05-08  Jason Merrill  <jason@redhat.com>
29544
29545         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29546         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29547         config/darwin.h, config/darwin9.h, config/elfos.h,
29548         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29549         config/microblaze/microblaze.h, config/mips/mips.h,
29550         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29551         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29552         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29553         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29554         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29555         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29556         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29557         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29558         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29559         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29560         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29561         between string literal and macro name.
29562
29563 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29564
29565         * jump.c: Change argument types to rtx_insn *.
29566         * rtl.h: Adjust.
29567
29568 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29569
29570         * lra-constraints.c: Change argument type to rtx_insn *.
29571
29572 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29573
29574         * df-problems.c: Change argument type to rtx_insn *.
29575
29576 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29577
29578         * combine.c: Change argument type to rtx_insn *.
29579
29580 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29581
29582         * rtl.h: Adjust.
29583         * rtlanal.c: Change argument type to rtx_insn *.
29584
29585 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29586
29587         * sched-deps.c: Change argument types to rtx_insn *.
29588         * sched-int.h: Adjust.
29589
29590 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29591
29592         * dwarf2cfi.c: Change argument type to rtx_insn *.
29593
29594 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29595
29596         * ira.c (decrease_live_ranges_number): Changetype of local
29597         variable to rtx_insn *.
29598         * recog.c: Change argument types to rtx_insn *.
29599         * recog.h: Adjust.
29600
29601 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29602
29603         * reorg.c: Change argument types to rtx_insn *.
29604
29605 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29606
29607         * ira-color.c: Change argument types to rtx_insn *.
29608         * lra-eliminations.c: Likewise.
29609         * ira.h: Adjust.
29610
29611 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29612
29613         * gcse.c: Change argument types to rtx_insn *.
29614
29615 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29616
29617         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29618
29619 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29620
29621         * emit-rtl.c (emit_debug_insn_before): Change argument type to
29622         rtx_insn *.
29623         * rtl.h: Adjust.
29624
29625 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29626
29627         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29628         * rtl.h: Adjust.
29629
29630 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29631
29632         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29633         * rtl.h: Adjust.
29634
29635 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29636
29637         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29638         * rtl.h: Adjust.
29639
29640 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29641
29642         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29643         * rtl.h: Adjust.
29644
29645 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29646
29647         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29648         to rtx_insn *.
29649         * rtl.h: Adjust.
29650
29651 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29652
29653         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29654         to rtx_insn *.
29655         * rtl.h: Likewise.
29656
29657 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29658
29659         * except.c (can_nonlocal_goto): Change type of argument to
29660         rtx_insn *.
29661         * rtl.h: Adjust.
29662
29663 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29664
29665         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29666         * rtl.h: Adjust.
29667
29668 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29669
29670         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29671         * cfgrtl.c (can_delete_label_p): Adjust.
29672         * rtl.h: likewise.
29673
29674 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29675
29676         * reorg.c (stop_search_p): Change argument to rtx_insn *.
29677
29678 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29679
29680         * except.c (make_reg_eh_region_note): Change argument to
29681         rtx_insn *.
29682         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29683         * except.h: Adjust.
29684
29685 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29686
29687         * mode-switching.c (commit_mode_sets): Change type of local
29688         variable from rtx to rtx_insn *.
29689
29690 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
29691
29692         * doc/install.texi (--enable-languages): Add missing jit and lto info.
29693         Add ^ to grep command.
29694         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29695         arg to last gimple_simplify declaration.  Add missing gimple_build
29696         declaration for built-in function case with four tree args.
29697
29698 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29699             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29700
29701         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29702         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29703         (GNU_USER_DYNAMIC_LINKERN32): Update.
29704
29705 2015-05-08  Richard Biener  <rguenther@suse.de>
29706
29707         PR tree-optimization/66036
29708         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29709         Handle strided group loads.
29710         (vect_verify_datarefs_alignment): Likewise.
29711         (vect_enhance_data_refs_alignment): Likewise.
29712         (vect_analyze_group_access): Likewise.
29713         (vect_analyze_data_ref_access): Likewise.
29714         (vect_analyze_data_ref_accesses): Likewise.
29715         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29716         (vectorizable_load): Likewise.
29717
29718 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
29719
29720         * config/rs6000/rs6000.md: Require operand inequality in one
29721         of the peepholes.
29722
29723 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
29724             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
29725
29726         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29727         from (set ...).
29728         * config/rx/rx.md (movdi, movdf): Likewise.
29729         Likewise for define_peephole2s.
29730
29731 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29732
29733         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29734         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29735         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29736         vtst_u64): Rewrite using gcc vector extensions.
29737
29738 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29739
29740         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29741         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29742
29743 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29744
29745         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29746
29747 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29748
29749         * config/glibc-stdint.h (OPTION_MUSL): Define.
29750         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29751         Change the definition based on OPTION_MUSL for 64 bit targets.
29752         * config/linux.h (OPTION_MUSL): Redefine.
29753         * config/alpha/linux.h (OPTION_MUSL): Redefine.
29754         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29755         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29756
29757 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29758             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29759
29760         * config.gcc (LIBC_MUSL): New tm_defines macro.
29761         * config/linux.h (OPTION_MUSL): Define.
29762         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29763         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29764         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29765         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29766         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29767         * config/linux.opt (mmusl): New option.
29768         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29769         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29770         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29771         * configure: Regenerate.
29772
29773 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
29774             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29775
29776         PR target/48904
29777         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29778         * config/i386/knetbsd-gnu64.h: New file.
29779
29780 2015-05-08  Marek Polacek  <polacek@redhat.com>
29781
29782         PR c/64918
29783         * doc/invoke.texi: Document -Woverride-init-side-effects.
29784
29785 2015-05-07  Marek Polacek  <polacek@redhat.com>
29786
29787         PR c/65179
29788         * doc/invoke.texi: Document -Wshift-negative-value.
29789
29790 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
29791
29792         * gcov-tool.c (do_merge): Refactore to remove int ret.
29793         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29794         !type == FUNC to type != FUNC.
29795         * reload.h (struct target_reload): Changee to type of
29796         x_spill_indirect_levels from bool to unsigned char.
29797
29798 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
29799
29800         * rtl.h (always_void_p): New function.
29801         * gengenrtl.c (always_void_p): Likewise.
29802         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29803         with code foo are always VOIDmode.
29804         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29805         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29806         compare-elim.c, config/aarch64/aarch64.c,
29807         config/aarch64/aarch64.md, config/alpha/alpha.c,
29808         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29809         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29810         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29811         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29812         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29813         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29814         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29815         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29816         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29817         config/ia64/vect.md, config/iq2000/iq2000.c,
29818         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29819         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29820         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29821         config/mep/mep.c, config/microblaze/microblaze.c,
29822         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29823         config/mn10300/mn10300.c, config/msp430/msp430.c,
29824         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29825         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29826         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29827         config/rs6000/altivec.md, config/rs6000/rs6000.c,
29828         config/rs6000/rs6000.md, config/rs6000/vector.md,
29829         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29830         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29831         config/sh/sh.md, config/sh/sh_treg_combine.cc,
29832         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29833         config/spu/spu.md, config/stormy16/stormy16.c,
29834         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29835         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29836         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29837         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29838         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29839         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29840         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29841         var-tracking.c: Update calls accordingly.
29842
29843 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29844
29845         PR middle-end/192
29846         PR middle-end/54303
29847         * varasm.c (function_mergeable_rodata_prefix): New function.
29848         (mergeable_string_section): Use it.
29849         (mergeable_constant_section): Use it.
29850
29851 2015-05-07  Jeff Law  <law@redhat.com>
29852
29853         PR target/39726
29854         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29855         simplifier to narrow arithmetic.
29856         * generic-match-head.c: (types_match, single_use): New functions.
29857         * gimple-match-head.c: (types_match, single_use): New functions.
29858
29859 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29860
29861         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29862         rtx type.
29863
29864 2015-05-07  Richard Biener  <rguenther@suse.de>
29865
29866         PR tree-optimization/66002
29867         * passes.def: Schedule another pass_merge_phi after ifcombine, right
29868         before phiopt.
29869
29870 2015-05-07  Marek Polacek  <polacek@redhat.com>
29871             Martin Uecker  <uecker@eecs.berkeley.edu>
29872
29873         * doc/invoke.texi: Document -fsanitize=bounds-strict.
29874         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29875         into SANITIZE_NONDEFAULT.
29876         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29877
29878 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
29879
29880         PR target/66015
29881         * config/alpha/alpha.c (alpha_override_options_after_change): New.
29882         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29883         (alpha_override_options): Move align_loops, align_jumps and
29884         align_functions handling into alpha_override_options_after_change.
29885
29886 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
29887             Chris Jones  <chrisj@nvidia.com>
29888             Joshua Conner  <jconner@nvidia.com>
29889
29890         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29891         linking of crtfastmath.o.
29892         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29893
29894 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29895
29896         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29897         (cstore<mode>4_unsigned_imm): New expander.
29898         (cstore<mode>4): Remove empty constraint strings.  Use the new
29899         expanders.
29900
29901 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
29902
29903         PR target/64208
29904         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29905         alternatives.
29906
29907 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29908
29909         * config/aarch64/geniterators.sh: Use standard BRE in sed.
29910
29911 2015-05-06  Alan Modra  <amodra@gmail.com>
29912
29913         PR target/66033
29914         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29915         (UNSPEC_NOP): Define.
29916         (reload_vsx_from_gpr<mode>): Add missing DONE.
29917         (reload_gpr_from_vsx<mode>): Likewise.
29918         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29919         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29920
29921 2015-05-06  Christian Bruel  <christian.bruel@st.com>
29922
29923         PR target/66015
29924         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29925         align_jumps, align_functions into aarch64_override_options_after_change.
29926
29927 2015-05-06  Richard Biener  <rguenther@suse.de>
29928
29929         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29930         vect_transform_slp_perm_load to check if we support a permutation
29931         for basic-block vectorization.
29932
29933 2015-05-06  Nick Clifton  <nickc@redhat.com>
29934
29935         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29936         used, even if it is not being used as a frame pointer.
29937
29938 2015-05-05  Jason Merrill  <jason@redhat.com>
29939
29940         * dwarf2out.c (gen_member_die): Don't emit anything for an
29941         anonymous class constructor.
29942
29943 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
29944
29945         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29946         that it reflects the block structure.
29947         (afdo_propagate_edge): Likewise.
29948         (afdo_calculate_branch_prob): Likewise.
29949         (afdo_annotate_cfg): Likewise.
29950         * cfgcleanup.c (equal_different_set_p): Likewise.
29951         (try_crossjump_to_edge): Likewise.
29952         * cgraph.c (cgraph_node::verify_node): Likewise.
29953         * cgraphunit.c (expand_all_functions): Likewise.
29954         * config/i386/i386.c (ix86_expand_copysign): Likewise.
29955         (exact_dependency_1): Likewise.
29956         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29957         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29958         * gensupport.c (process_define_subst): Likewise.
29959         * lto-wrapper.c (merge_and_complain): Likewise.
29960         * tree-if-conv.c (if_convertible_bb_p): Likewise.
29961         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29962         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29963         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29964         * tree-vect-loop.c (vectorizable_reduction): Likewise.
29965         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29966         * tree-vect-stmts.c (vectorizable_shift): Likewise.
29967         * tree-vrp.c (vrp_finalize): Likewise.
29968         * tree.c (variably_modified_type_p): Likewise.
29969
29970 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
29971
29972         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29973         on darwin12 and later.
29974         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29975         file to pass -rdynamic on darwin12 and later.
29976         * config/darwin.opt (rdynamic): Add.
29977
29978 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29979
29980         * doc/extend.texi (C Extensions): Update menu for moved Variable
29981         Attributes and Type Attributes sections.
29982
29983 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29984
29985         PR target/65990
29986         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29987         if rep_8byte stringop strategy was specified for 32-bit target.
29988
29989 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
29990
29991         PR target/65915
29992         * config/i386/i386.md (vector convert to float spltiter): Check for
29993         xmm16+, when splitting scalar float conversion.
29994         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29995
29996 2015-05-05  Nick Clifton  <nickc@redhat.com>
29997
29998         * config/msp430/msp430-opts.h (enum msp430_regions): New.
29999         * config/msp430/msp430.c (msp430_override_options): Complain if
30000         -mcode-region or -mdata-region is used on a non MSP430X.
30001         (msp430_section_attr): New function.  Checks lower, upper and
30002         either attributes.
30003         (msp430_attribute_table): Add lower, upper and either.
30004         (gen_prefix): New function.  Generates a prefix for a section
30005         name.
30006         (msp430_select_section): New function - handles the choice of
30007         section for an object.  Takes into account memory region
30008         attributes and options.
30009         (msp430_function_section): Use gen_prefix.
30010         (TARGET_SECTION_TYPE_FLAGS): Define.
30011         (msp430_section_type_flags): New function.
30012         (TARGET_ASM_UNIQUE_SECTION): Define.
30013         (msp430_unique_section): New function.
30014         (msp430_output_aligned_decl_common): New function.
30015         (msp430_do_not_relax_short_jumps): New function.
30016         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30017         Define.
30018         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30019         * config/msp430/msp430-protos.h
30020         (msp430_do_not_relax_short_jumps): New prototype.
30021         (msp430_output_aligned_decl_common): New prototype.
30022         * config/msp430/msp430.md (length): New attribute.
30023         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30024         then use a long code sequence for short jumps.
30025         * config/msp430/msp430.opt (mcode-region): New.
30026         (mdata-region): New.
30027         * doc/invoke.texi: Document new options.
30028         * doc/extend.texi: Document new attributes.
30029
30030 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30031
30032         * config/aarch64-protos.h (struct cpu_branch_cost): New.
30033         (tune_params): Add field branch_costs.
30034         (aarch64_branch_cost): Declare.
30035         * config/aarch64.c (generic_branch_cost): New.
30036         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30037         (cortexa53_tunings): Likewise.
30038         (cortexa57_tunings): Likewise.
30039         (thunderx_tunings): Likewise.
30040         (xgene1_tunings): Likewise.
30041         (aarch64_branch_cost): Define.
30042         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30043
30044 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30045
30046         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30047         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30048         * config/i386/i386.md: Ditto.
30049         * config/i386/winnt.c: Ditto.
30050
30051 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
30052
30053         * doc/extend.texi (__atomic Builtins): Move implementation details
30054         to the end of the description, rewrite opening paragraphs, state
30055         difference with __sync builtins, state C11/C++11 assumptions,
30056         weaken itemized descriptions, add explanation of memory model
30057         behaviour, expand description of compare-exchange, simplify text.
30058
30059 2015-05-05  Renlin Li  <renlin.li@arm.com>
30060
30061         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30062
30063 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
30064
30065         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30066         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30067         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30068         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30069         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30070         * configure: Regenerate.
30071         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30072         * doc/install.texi (aarch64*-*-*): Document new
30073         --enable-fix-cortex-a53-843419 option.
30074         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30075         and -mno-fix-cortex-a53-843419 options.
30076
30077 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
30078
30079         PR target/65871
30080         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30081
30082 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
30083
30084         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30085         fix overactive TYPE_MIN_VALUE check and add FIXME for type
30086         compatibility problems.
30087
30088 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30089
30090         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30091         constraints.
30092         (cbranchsi4_reg): New.
30093         * config/microblaze/microblaze.c
30094         (microblaze_expand_conditional_branch_reg): New.
30095         * config/microblaze/microblaze-protos.h
30096         (microblaze_expand_conditional_branch_reg): New prototype.
30097
30098 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30099
30100         * config/microblaze/microblaze.md (peephole2): New.
30101
30102 2015-05-04  Jeff Law  <law@redhat.com>
30103
30104         Revert:
30105         2015-05-04  Jeff Law  <law@redhat.com>
30106
30107         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30108         simplifier to narrow arithmetic.
30109         * generic-match-head.c: (types_match, single_use): New functions.
30110         * gimple-match-head.c: (types_match, single_use): New functions.
30111
30112 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30113
30114         PR target/65987
30115         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30116         (split_branches): Likewise.
30117
30118 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
30119
30120         * common.opt (fdelete-null-pointer-checks): Init to -1.
30121         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30122         override flag_delete_null_pointer_checks default.
30123         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30124         behavior re address zero.  Better document target-specific behavior.
30125         (-fisolate-errneous-paths-dereference): Mention relationship to
30126         -fdelete-null-pointer-checks.
30127
30128 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30129
30130         PR tree-optimization/65984
30131         * ubsan.c: Include tree-cfg.h.
30132         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30133         stmt_could_throw_p test, rename can_throw variable to ends_bb.
30134
30135 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30136
30137         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30138         to CONST_DOUBLE_P predicate.
30139         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30140         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30141         allow only operands that satisfy standard_sse_constant_p predicate.
30142         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30143         to CONST_DOUBLE_P predicate.
30144
30145 2015-05-04  Jeff Law  <law@redhat.com>
30146
30147         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30148         simplifier to narrow arithmetic.
30149         * generic-match-head.c: (types_match, single_use): New functions.
30150         * gimple-match-head.c: (types_match, single_use): New functions.
30151
30152 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
30153
30154         * config/arm/arm.c: Restore bootstrap.
30155
30156 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30157
30158         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30159         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30160         as CONST_WIDE_INT, not CONST_DOUBLE.
30161         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30162         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30163         (ix86_find_base_term): Do not check for CONST_DOUBLE.
30164         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30165         (ix86_build_signbit_mask): Rewrite using wide ints.
30166         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30167         (ix86_rtx_costs): Handle CONST_WIDE_INT.
30168         (find_constant): Ditto.
30169         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30170         using gen_int_mode.
30171         * config/i386/predicates.md (x86_64_immediate_operand)
30172         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30173         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30174         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30175         (const0_operand): Also match const_wide_int.
30176         (constm1_operand): Ditto.
30177         (const1_operand): Ditto.
30178
30179 2015-05-04  Richard Biener  <rguenther@suse.de>
30180
30181         PR tree-optimization/65965
30182         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30183         store groups at gaps.
30184
30185 2015-05-04  Richard Biener  <rguenther@suse.de>
30186
30187         PR tree-optimization/65935
30188         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30189         then make sure to apply that swapping to the IL.
30190
30191 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30192
30193         * Makefile.in (PATCHLEVEL_c): New variable.
30194         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30195         expand the same way as if DEVPHASE_c was non-empty.
30196
30197 2015-05-04  Kai Tietz  <ktietz@redhat.com>
30198
30199         PR target/65559
30200         * lto-wrapper.c (run_gcc): Open filename
30201         in binary-mode.
30202
30203 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
30204
30205         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
30206         sections up in file, to immediately after the Function Attributes
30207         section.
30208
30209 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
30210
30211         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30212
30213 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30214
30215         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30216         (insert_partition_copy_on_edge): Adjust.
30217         (insert_rtx_to_part_on_edge): Likewise.
30218         (insert_part_to_rtx_on_edge): Likewise.
30219
30220 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30221
30222         * function.c (set_return_jump_label): Change type of argument to
30223         rtx_insn *.
30224         * function.h (set_return_jump_label): Adjust.
30225
30226 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30227
30228         * reload.h (struct reg_equivs_t): Change type of init to
30229         rtx_insn *.
30230         * ira.c (fix_reg_equiv_init): Adjust.
30231         * reload1.c (eliminate_regs_1): Likewise.
30232         (init_eliminable_invariants): Likewise.
30233
30234 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30235
30236         * cselib.c (fp_setter_insn): Take a rtx_insn *.
30237         * cselib.h (fp_setter_insn): Adjust.
30238
30239 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30240
30241         * recog.c (struct validate_replace_src_data): Change type of
30242         insn field to rtx_insn *.
30243         (validate_replace_src_group): Change type of argument to rtx_insn *.
30244         * recog.h (validate_replace_src_group): Adjust.
30245
30246 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30247
30248         * haifa-sched.c: Change the type of some variables to rtx_insn *.
30249         * sched-deps.c: Likewise.
30250         * sched-int.h: Likewise.
30251         * sched-rgn.c: Likewise.
30252         * sel-sched.c: Likewise.
30253
30254 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30255
30256         to rtx_insn *.
30257         * config/i386/i386.c: Change the type of some arguments to
30258         rtx_insn *.
30259         * config/arm/arm.c: Likewise.
30260
30261 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30262
30263         * lra-constraints.c: Change type of some arguments to rtx_insn *.
30264
30265 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30266
30267         * regcprop.c (kill_autoinc_value): Change type of argument to
30268         rtx_insn *.
30269
30270 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30271
30272         * genrecog.c (print_subroutine): Adjust.
30273         * recog.c (get_bool_attr_mask_uncached): Likewise.
30274         * recog.h (struct recog_data_d): Change the type of insn to
30275         rtx_insn *.
30276
30277 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30278
30279         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30280
30281 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30282
30283         * df-problems.c (df_set_note): Change type of argument to
30284         rtx_insn *.
30285
30286 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30287
30288         * builtins.c (expand_builtin_trap): Change type of local
30289         variable to rtx_insn *.
30290         (add_sched_insns_for_speculation): Likewise.
30291         (ix86_emit_save_regs): Likewise.
30292         (get_scratch_register_on_entry): Likewise.
30293         (ix86_emit_restore_reg_using_pop): Likewise.
30294         (ix86_emit_leave): Likewise.
30295         (ix86_emit_restore_regs_using_mov): Likewise.
30296         (ix86_expand_epilogue): Likewise.
30297         Likewise.
30298         (rl78_alloc_physical_registers_umul): Likewise.
30299         * cselib.c (discard_useless_locs): Likewise.
30300         (cselib_invalidate_regno): Likewise.
30301         (cselib_invalidate_mem): Likewise.
30302         * function.c (expand_function_start): Likewise.
30303         (emit_use_return_register_into_block): Likewise.
30304         * gcse.c: Likewise.
30305         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30306         * ifcvt.c (noce_get_alt_condition): Likewise.
30307         * loop-doloop.c (doloop_condition_get): Likewise.
30308         * lra-constraints.c (inherit_in_ebb): Likewise.
30309         * modulo-sched.c (sms_schedule_by_order): Likewise.
30310         * recog.c (next_insn_tests_no_inequality): Likewise.
30311         * reorg.c (emit_delay_sequence): Likewise.
30312         (update_reg_dead_notes): Likewise.
30313         (fix_reg_dead_note): Likewise.
30314         (fill_slots_from_thread): Likewise.
30315         (delete_computation): Likewise.
30316
30317 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
30318
30319         * doc/extend.texi (Variable Attributes): Add menu and proper
30320         @nodes to subsections.  Move Microsoft Windows attributes to
30321         their own subsection.
30322         (Type Attributes): Reorganize introduction to remove duplicate
30323         list of attributes.  Add menu and proper @nodes to subsections.
30324         Alphabetize the main table of common attributes.
30325
30326 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30327
30328         * match.pd: New simplification patterns.
30329         (x + (x & 1))  -> ((x + 1) & ~1)
30330         (x & ~(x & y)) -> ((x & ~y))
30331         (x | ~(x | y)) -> ((x | ~y))
30332
30333 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30334
30335         * target.def (attribute_table): Mention that struct attribute_spec
30336         is defined in tree-core.h rather than tree.h
30337         * doc/tm.texi: Regenerate.
30338
30339 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
30340
30341         * genrecog.c (test): Rename to rtx_test.  Update rest of file
30342         accordingly.
30343
30344 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
30345
30346         PR translation/65959
30347         * params.h (DEFPARAM): Rename msgid to nocmsgid.
30348
30349 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30350
30351         * config/aarch64/aarch64-protos.h (tune_params):
30352         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30353         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30354         Return value depending on target.
30355         (generic_tunings): Initialize new target settings.
30356         (cortexa53_tunings): Likewise.
30357         (cortexa57_tunings): Likewise.
30358         (thunderx_tunings): Likewise.
30359         (xgene1_tunings): Likewise.
30360
30361 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30362
30363         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30364         Make Cortex-A53 shift costs more accurate.
30365
30366 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30367
30368         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30369         UNSIGNED_FLOAT.
30370
30371 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30372
30373         * config/aarch64/aarch64.c (aarch64_rtx_costs):
30374         Calculate cost of op0 and op1 in PLUS and MINUS cases.
30375
30376 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30377
30378         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30379         Add cost of op0 in the compare-with-fpzero case.
30380
30381 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
30382
30383         * builtins.c (fold_builtin_1): Remove spurious second
30384         semicolon.
30385         * cgraph.h (symtab_node::get_availability): Likewise.
30386         * opts.c (common_handle_option): Remove spurious second semicolon.
30387         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30388         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30389
30390 2015-04-30  Caroline Tice  <cmtice@google.com>
30391
30392         PR gcov-profile/65929
30393         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30394         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30395         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30396         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30397         * doc/tm.texi: Regenerate.
30398         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
30399         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30400         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
30401         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30402
30403 2015-04-30  Marek Polacek  <polacek@redhat.com>
30404
30405         * varasm.c (handle_cache_entry): Fix logic.
30406
30407 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30408
30409         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30410         (*extrsi5_insn_uxtw_alt): Likewise.
30411         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30412         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30413         operations.
30414
30415 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30416
30417         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30418         fabd in ABS case.
30419
30420 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30421
30422         * config/aarch64/aarch64.md
30423         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30424         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30425         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30426         appropriately.  Handle alternative EON form.
30427
30428 2015-04-30  Renlin Li  <renlin.li@arm.com>
30429
30430         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30431         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30432
30433 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30434
30435         PR ipa/65873
30436         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30437         -fstrict-aliasing boundaries.
30438
30439 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30440
30441         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30442         and [SU]MNEGL patterns.
30443
30444 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30445
30446         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30447         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30448         combined arithmetic-shift ops.  Properly handle all shift and extend
30449         operations that can occur in combination with PLUS/MINUS.
30450         Rename maybe_fma to compound_p.
30451         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30452         arithmetic and shift operations.
30453
30454 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30455
30456         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30457         rather than arith_shift cost when costing ADD/MINUS of an
30458         extended value.
30459
30460 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30461
30462         PR lto/65948
30463         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30464         to itself.
30465
30466 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
30467
30468         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30469         are for the same position.
30470
30471 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
30472
30473         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
30474         vectorize_loops.
30475         (vectorize_loops): Use it.
30476
30477 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30478
30479         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30480         for aggregate types.
30481         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30482         type to be non_ODR.
30483         * tree.c (need_assembler_name_p): Compute mangled name for
30484         non-fundamental types and integer types.
30485
30486 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
30487
30488         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30489         manual swaps.
30490         * expr.c (expand_expr_real_2): Likewise.
30491
30492 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30493
30494         * tree.c (build_common_builtin_nodes): Do not build
30495         __builtin_alloca_with_align as equivalent of library alloca.
30496
30497 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30498
30499         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30500         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30501         bugus variants.
30502         * tree.c: Include print-tree.h and ipa-utils.h
30503         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30504         (free_lang_data_in_cgraph): Call verify_type.
30505         (verify_type_variant): New function.
30506         (verify_type): New function.
30507         * tree.h (verify_type): Declare.
30508
30509 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
30510
30511         * config/mips/mips-cpus.def: (mips4): Change default processor
30512         from PROCESSOR_R8000 to PROCESSOR_R10000.
30513
30514 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30515
30516         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30517         la/jalr instead of jal.
30518
30519 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
30520
30521         PR target/65871
30522         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30523         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30524         (setcc+movzbl peephole2): Check also clobbered reg.
30525         (setcc+andl peephole2): Ditto.
30526
30527 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30528
30529         PR libgomp/65099
30530         * config/nvptx/mkoffload.c (target_ilp32): New variable.
30531         (main): Set it depending on "-foffload-abi=[...]".
30532         (compile_native, main): Use it to pass "-m32" or "-m64" to the
30533         compiler.
30534
30535 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30536
30537         PR target/65770
30538         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30539         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30540         Flip lane index back at assembly time for bigendian.
30541
30542 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30543
30544         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30545         * gimplify.c (gimplify_omp_workshare): Use it.
30546
30547 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30548
30549         * Makefile.in (build/genrecog.o): Depend on inchash.h.
30550         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30551         build/inchash.o
30552         * genrecog.c: Rewrite most of the code except for the third page.
30553
30554 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30555
30556         * inchash.h, inchash.c: Include bconfig.h for build objects.
30557         * Makefile.in (build/inchash.o): New rule.
30558
30559 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
30560
30561         PR target/65924
30562         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30563         number in type attribute expression.
30564
30565 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30566
30567         * loop-iv.c (canon_condition): Generalize to all types of integer
30568         constant.
30569
30570 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
30571
30572         * gimple-walk.c: Prune duplicate or unneeded includes.
30573         (walk_gimple_asm): Only call parse_input_constraint or
30574         parse_output_constraint if their findings are used.
30575         Honour parse_input_constraint and parse_output_constraint
30576         result.
30577
30578 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30579
30580         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30581
30582 2015-04-29  Tom de Vries  <tom@codesourcery.com>
30583
30584         PR tree-optimization/65893
30585         * passes.def (pass_all_optimizations): Move pass_stdarg to after
30586         pass_dce.
30587
30588 2015-04-29  Richard Biener  <rguenther@suse.de>
30589
30590         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30591         compute GROUP_SIZE for basic-block SLP.
30592         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30593         take into account gaps.
30594         (vect_get_mask_element): Properly reject references to previous
30595         vectors.
30596         (vect_transform_slp_perm_load): Likewise.
30597
30598 2015-04-29  Christian Bruel  <christian.bruel@st.com>
30599
30600         PR target/64835
30601         * config/i386/i386.c (ix86_default_align): New function.
30602         (ix86_override_options_after_change): Call ix86_default_align.
30603         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30604         (ix86_override_options_after_change): New function.
30605
30606 2015-04-28  Jeff Law  <law@redhat.com>
30607
30608         * tree-ssa-dom.c (record_equality); Fix comment typos.
30609
30610 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30611
30612         PR tree-optimization/65887
30613         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30614
30615 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
30616
30617         * doc/extend.texi (Declaring Attributes of Functions): Split into
30618         subsections by target.  Alphabetize the table of common attributes.
30619         Rewrite some of the introductory text to reflect the new structure.
30620         Update some cross-references to point to the new subsections.
30621         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
30622         duplicate copies in the discussion of function, label, and type
30623         attributes.
30624
30625 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
30626
30627         PR bootstrap/65910
30628         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30629
30630 2015-04-28  Jason Merrill  <jason@redhat.com>
30631
30632         PR c++/65734
30633         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30634         (finalize_type_size): Respect TYPE_USER_ALIGN.
30635         (layout_type) [ARRAY_TYPE]: Likewise.
30636
30637 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
30638
30639         * config/arm/arm.md (*arm_movt): Fix type attribute.
30640         (*cmpsi_shiftsi): Likewise.
30641         (*cmpsi_shiftsi_swp): Likewise.
30642         (*movsicc_insn): Likewise.
30643         (*cond_move): Likewise.
30644         (*if_plus_move): Likewise.
30645         (*if_move_plus): Likewise.
30646         (*if_arith_move): Likewise.
30647         (*if_move_arith): Likewise.
30648         (*if_shift_move): Likewise.
30649         (*if_move_shift): Likewise.
30650         (*arm_movtas_ze): Likewise.
30651         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30652         redundancy and type attribute.
30653         (*thumb2_movsi_insn): Fix type attribute.
30654         (*thumb2_addsi_short): Likewise.
30655         (thumb2_addsi3_compare0): Likewise.
30656         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30657         attributes accordingly.
30658
30659 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
30660
30661         PR other/65911
30662         * function.c (pad_to_arg_alignment): Add parentheses.
30663
30664 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
30665
30666         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30667         libgcc/config/frv/elf-lib.h.
30668
30669 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30670
30671         * tree-call-cdce.c: Fix example in header comment.
30672
30673 2015-04-28  Richard Biener  <rguenther@suse.de>
30674
30675         PR tree-optimization/62283
30676         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30677         fails fatally and we are vectorizing a basic-block simply
30678         cause the child to be constructed piecewise.
30679         (vect_analyze_slp_cost_1): Adjust.
30680         (vect_detect_hybrid_slp_stmts): Likewise.
30681         (vect_bb_slp_scalar_cost): Likewise.
30682         (vect_get_constant_vectors): For piecewise constructed
30683         constants place them after the last def.
30684         (vect_get_slp_defs): Adjust.
30685         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30686         externals for basic-block vectorization.
30687
30688 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30689
30690         PR target/63503
30691         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30692         aarch64-*-*.
30693         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30694         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30695         (AARCH64_TUNE_FMA_STEERING): Likewise.
30696         * config/aarch64/aarch64-cores.def: Set
30697         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30698         FMUL/FMADD instructions.
30699         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30700         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
30701         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30702         * config/aarch64/cortex-a57-fma-steering.h: New file.
30703         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30704
30705 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
30706
30707         * gensupport.c (std_preds): Add missing codes to address_operand entry.
30708
30709 2015-04-28  Richard Biener  <rguenther@suse.de>
30710
30711         PR tree-optimization/65851
30712         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30713         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
30714         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
30715         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30716         (ccp_visit_phi_node): Adjust.
30717         (evaluate_stmt): For simplifications to SSA names return its
30718         lattice value if that isn't VARYING.  Return immediately when
30719         simplified to a constant.
30720         (visit_assignment): Adjust.
30721         (ccp_visit_stmt): Likewise.
30722
30723 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30724
30725         PR tree-optimization/65818
30726         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30727         evaluated.
30728
30729 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30730
30731         * calls.c (save_fixed_argument_area): Don't check
30732         ARGS_GROW_DOWNWARD with the preprocessor.
30733         (restore_fixed_argument_area): Likewise.
30734         (mem_overlaps_already_clobbered_arg_p): Likewise.
30735         (check_sibcall_argument_overlap): Likewise.
30736         (expand_call): Likewise.
30737         (emit_library_call_value_1): Likewise.
30738         (store_one_arg): Likewise.
30739         * function.c (assign_parms): Likewise.
30740         (locate_and_pad_parm): Likewise.
30741         (pad_to_arg_alignment): Likewise.
30742         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30743
30744 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30745
30746         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30747         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30748         * calls.c (save_fixed_argument_area): Don't chekc if
30749         ARGS_GROW_DOWNWARD is defined.
30750         (restore_fixed_argument_area): Likewise.
30751         (mem_overlaps_already_clobbered_arg_p): Likewise.
30752         (check_sibcall_argument_overlap): Likewise.
30753         (expand_call): Likewise.
30754         (emit_library_call_value_1): Likewise.
30755         (store_one_arg): Likewise.
30756         * function.c (assign_parms): Likewise.
30757         (locate_and_pad_parm): Likewise.
30758         (pad_to_arg_alignment): Likewise.
30759         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30760
30761 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30762
30763         * defaults.h (gen_epilogue): New function.
30764         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30765         defined.
30766         * cfgrtl.c (cfg_layout_finalize): Likewise.
30767         * df-scan.c: Likewise.
30768         * function.c (thread_prologue_and_epilogue_insns): Likewise.
30769         (reposition_prologue_and_epilogue_notes): Likewise.
30770         * reorg.c (find_end_label): Likewise.
30771         * toplev.c: Likewise.
30772
30773 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30774
30775         * bb-reorder.c (HAVE_return): Don't check if its undefined.
30776         * defaults.h (gen_simple_return): New function.
30777         (gen_simple_return): Likewise.
30778         (HAVE_return): Add default definition to false.
30779         (HAVE_simple_return): Likewise.
30780         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30781         HAVE_return and HAVE_simple_return are defined.
30782         * function.c (gen_return_pattern): Likewise.
30783         (convert_jumps_to_returns): Likewise.
30784         (thread_prologue_and_epilogue_insns): Likewise.
30785         * reorg.c (find_end_label): Likewise.
30786         (dbr_schedule): Likewise.
30787         * shrink-wrap.c: Likewise.
30788         * shrink-wrap.h: Likewise.
30789
30790 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30791
30792         * defaults.h (EPILOGUE_USES): Add default definition of false.
30793         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30794         * resource.c (init_resource_info): Likewise.
30795
30796 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30797
30798         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30799         to false.
30800         * dwarf2out.c (field_byte_offset): REmove check if
30801         PCC_BITFIELD_TYPE_MATTERS is defined.
30802         * stor-layout.c (layout_decl): Likewise.
30803         (update_alignment_for_field): Likewise.
30804         (place_field): Likewise.
30805
30806 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30807
30808         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30809         true.
30810         * regrename.c (check_new_reg_p): Remove check if
30811         HARD_REGNO_RENAME_OK is defined.
30812         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30813
30814 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30815
30816         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30817         * cse.c (fold_rtx): Likewise.
30818         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30819         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30820         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30821         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30822         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30823         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30824         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30825         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30826         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30827         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30828         * Likewise.
30829         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30830         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30831         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30832         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30833         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30834         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30835         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30836         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30837         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30838         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30839         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30840         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30841         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30842         * doc/tm.texi: Regenerate.
30843         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30844         either true or false.
30845
30846 2015-04-27  Jeff Law  <law@redhat.com>
30847
30848         PR tree-optimization/65217
30849         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30850         of them has a single use, make sure it is the LHS of the implied
30851         copy.
30852
30853 2015-04-28  Alan Modra  <amodra@gmail.com>
30854
30855         PR target/65810
30856         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30857         (offsettable_ok_by_alignment): Use minimum of decl and toc
30858         pointer alignment.  Replace dead code with assertion.
30859         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
30860         case if size exceeds toc pointer alignment.
30861         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30862         (rs6000_emit_move): Likewise.
30863         * configure.ac: Add linker toc pointer alignment check.
30864         * configure: Regenerate.
30865         * config.in: Regenerate.
30866
30867 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
30868
30869         * config.gcc: Add h8300-*-linux.
30870         * config/h8300/linux.h: New.
30871         * config/h8300/t-linux: New.
30872         * config/h8300/h8300.c (h8300_option_override): Normal mode
30873         is not supported for h8300-*-linux.
30874         (h8300_file_start): Target priority change.
30875         (get_shift_alg): Likewise.
30876         (h8300_shift_need_scratch_p): Likewise.
30877         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30878         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30879
30880 2015-04-27  Caroline Tice  <cmtice@google.com>
30881
30882         * final.c (final_scan_insn):  Output cold_function_name as function
30883         type.
30884         * varasm.c (cold_function_name):  Make global.
30885         (assemble_start_function):  Re-set cold_function_name.
30886         (assemble_end_function): Output cold partition size.
30887         * varasm.h (cold_function_name):  Declare global.
30888
30889 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
30890
30891         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30892         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30893         constraint.
30894         (*movxi_internal_avx512f): Ditto.
30895         (define_split): Check for xmm16+, when splitting scalar float_extend.
30896         (*extendsfdf2_mixed): Use "v" constraint.
30897         (define_split): Check for xmm16+, when splitting scalar float_truncate.
30898         (*truncdfsf_fast_sse): Use "v" constraint.
30899         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30900         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30901         (define_peephole2): Check for xmm16+, when converting scalar
30902         float_truncate.
30903         (define_peephole2): Check for xmm16+, when converting scalar
30904         float_extend.
30905         (*fop_<mode>_comm_mixed): Use "v" constraint.
30906         (*fop_<mode>_comm_sse): Ditto.
30907         (*fop_<mode>_1_mixed): Ditto.
30908         (*sqrt<mode>2_sse): Ditto.
30909         (*ieee_s<ieee_maxmin><mode>3): Ditto.
30910
30911 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30912
30913         * combine.c (simplify_if_then_else): Use std::swap instead
30914         of manually swapping.
30915         (known_cond): Likewise.
30916         (simplify_comparison): Likewise.
30917
30918 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
30919
30920         PR target/64579
30921         * config/rs6000/htm.md: Remove all define_expands.
30922         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30923         UNSPECV_HTM_TABORTWCI): Remove.
30924         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30925         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30926         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30927         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30928         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30929         tabortwci_internal): Remove define_insns.
30930         (tabort<wd>c, tabort<wd>ci): New define_insns.
30931         (tabort): Use gpc_reg_operand.
30932         (tcheck): Remove operand.
30933         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30934         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30935         expected value.
30936         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30937         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
30938         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30939         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30940         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30941         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30942         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30943         (tcheck): Remove builtin argument.
30944         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30945         not TARGET_64BIT.
30946         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
30947         tabortdc and tabortdci builtins when not in 64-bit mode.
30948         Modify code to handle the loss of the HTM define_expands.
30949         Emit code to copy the CR register to TARGET.
30950         (htm_init_builtins): Modify code to handle the loss of the HTM
30951         define_expands.
30952         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30953         (RS6000_BTC_64BIT): Likewise.
30954         (RS6000_BTC_CR): New macro.
30955         * doc/extend.texi: Update documentation for htm builtins.
30956
30957 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30958
30959         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30960         of manually swapping.
30961         (simplify_associative_operation): Likewise.
30962         (simplify_binary_operation): Likewise.
30963         (simplify_plus_minus): Likewise.
30964         (simplify_relational_operation): Likewise.
30965         (simplify_ternary_operation): Likewise.
30966
30967 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30968
30969         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30970         (xs_hi_nonmemory_operand): Remove error.
30971         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30972         general_operand rather than xs_hi_general_operand.
30973
30974 2015-04-27  Richard Biener  <rguenther@suse.de>
30975
30976         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30977         (record_equivalences_from_stmt): Valueize rhs.
30978         (record_equality): Canonicalize x and y order via
30979         tree_swap_operands_p.  Do not swap operands for same loop depth.
30980
30981 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
30982
30983         PR target/65296
30984         PR target/65895
30985         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30986         Add hint how to use own spec file.
30987
30988 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
30989
30990         PR tree-optimization/65875
30991         * tree-vrp.c (update_value_range): If in is_new case setting
30992         old_vr to VR_VARYING, also set new_vr to it.  Remove
30993         old_vr->type == VR_VARYING test.
30994         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30995         SSA_PROP_INTERESTING if update_value_range returned true,
30996         but new range is VR_VARYING.
30997
30998 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30999
31000         * combine.c (sign_extend_short_imm): New.
31001         (set_nonzero_bits_and_sign_copies): Use above new function for sign
31002         extension of src short immediate.
31003         (reg_nonzero_bits_for_combine): Likewise for tem.
31004
31005 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31006
31007         * stor-layout.c (self_referential_component_ref_p): New predicate.
31008         (copy_self_referential_tree_r): Use it.
31009         (self_referential_size): Punt for simple operations directly involving
31010         self-referential component references.
31011         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31012
31013 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31014
31015         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31016
31017 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
31018
31019         * vec.h (vec): Make splice arguments const.  Update definitions
31020         accordingly.
31021
31022 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
31023
31024         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31025         alternatives.
31026
31027 2015-04-26  Tom de Vries  <tom@codesourcery.com>
31028
31029         PR tree-optimization/65826
31030         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31031
31032 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
31033
31034         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31035         (*madd3<mode>): Ditto.
31036         (*msub4<mode>): Ditto.
31037         (*msub3<mode>): Ditto.
31038         (*nmadd4<mode>): Ditto.
31039         (*nmadd3<mode>): Ditto.
31040         (*nmadd4<mode>_fastmath): Ditto.
31041         (*nmadd3<mode>_fastmath): Ditto.
31042         (*nmsub4<mode>): Ditto.
31043         (*nmsub3<mode>): Ditto.
31044         (*nmsub4<mode>_fastmath): Ditto.
31045         (*nmsub3<mode>_fastmath): Ditto.
31046
31047 2015-04-24  Jason Merrill  <jason@redhat.com>
31048
31049         PR c++/50800
31050         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31051         down when building TYPE_CANONICAL.
31052         (build_pointer_type_for_mode): Likewise.
31053
31054 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
31055
31056         * genrecog.c (validate_pattern): Check matching constraint refers
31057         to a lower numbered operand.
31058
31059 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31060
31061         PR target/65849
31062         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31063         save to independent variables use the Save attribute.  This will
31064         allow these options to be modified with the #pragma/attribute
31065         target support.
31066         (-mallow-movmisalign): Likewise.
31067         (-mallow-df-permute): Likewise.
31068         (-msched-groups): Likewise.
31069         (-malways-hint): Likewise.
31070         (-malign-branch-targets): Likewise.
31071         (-mvectorize-builtins): Likewise.
31072         (-msave-toc-indirect): Likewise.
31073
31074         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31075         can be set via the #pragma/attribute target support.
31076         (rs6000_opt_vars): Likewise.
31077         (rs6000_inner_target_options): If VSX was set, also set
31078         -mno-avoid-indexed-addresses.
31079
31080 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31081
31082         * config/arm/iterators.md (shiftable_ops): Rename to...
31083         (SHIFTABLE_OPS): ... This.  Update use in comments.
31084         (ior_xor): Rename to...
31085         (IOR_XOR): ... This.
31086         (vqh_ops): Rename to...
31087         (VQH_OPS): ... This.
31088         (vqhs_ops): Rename to...
31089         (VQHS_OPS): ... This.
31090         (rshifts): Rename to...
31091         (RSHIFTS): ... This.
31092         (returns): Rename to...
31093         (RETURNS): ... This.
31094         * config/arm/arm.md: Update uses of the above.
31095         * config/arm/neon.md: Likewise.
31096
31097 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31098
31099         * config.host (case ${host}): Add aarch64*-*-linux case.
31100         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31101         fields to all the cores.
31102         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31103         Add MCPU_MTUNE_NATIVE_SPECS.
31104         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31105         field to all extensions.
31106         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31107         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31108         Adjust definition of AARCH64_OPT_EXTENSION.
31109         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31110         (MCPU_MTUNE_NATIVE_SPECS): Define.
31111         * config/aarch64/driver-aarch64.c: New file.
31112         * config/aarch64/x-arch64: New file.
31113         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31114         -mtune and -march.
31115
31116 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31117             Wei Mi  <wmi@google.com>
31118
31119         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31120         * config/i386/i386.c (extract_base_offset_in_addr): New function.
31121         (ix86_operands_ok_for_move_multiple): Ditto.
31122         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31123         (movlpd/movhpd to movupd peephole2): Ditto.
31124
31125 2015-04-24  Marek Polacek  <polacek@redhat.com>
31126
31127         PR c/61534
31128         * input.h (from_macro_expansion_at): Define.
31129
31130         PR c/63357
31131         * doc/invoke.texi: Update description of -Wlogical-op.
31132
31133 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31134
31135         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31136         ternary operator in fprintf and harmonize spacing.
31137
31138 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31139
31140         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31141         Mark operand1 commutative.
31142
31143 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31144
31145         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31146         input operands in memory.
31147         (*vec_concatv2si_sse4_1): Ditto.
31148         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31149         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31150         register_operand.
31151         (vec_extract_hi_v32hi): Ditto.
31152         (vec_extract_hi_v64hi): Ditto.
31153         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31154
31155 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31156             Steven Bosscher <steven@gcc.gnu.org>
31157
31158         PR rtl-optimization/34503
31159         * cprop.c (cprop_reg_p): New.
31160         (hash_scan_set): Use above function to check if register can be
31161         propagated.
31162         (find_avail_set): Return up to two sets, one whose source is a
31163         register and one whose source is a constant.  Sets are returned in an
31164         array passed as parameter rather than as a return value.
31165         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
31166         sets returned by find_avail_set, starting with the one whose source is
31167         a constant. Use cprop_reg_p to check if register can be propagated.
31168         (do_local_cprop): Use cprop_reg_p to check if register can be
31169         propagated.
31170         (implicit_set_cond_p): Likewise.
31171
31172 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31173
31174         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31175         (sem_function::equals): IGNORED_NODES parameter is now unused;
31176         update call of equals_private.
31177         (sem_function::equals_private): Do not call equals_wpa; skip
31178         gimple body matching if there is no body.
31179         (sem_function::init): Add logic to hash tthunk info.
31180         (sem_function::parse): Also parse thunks.
31181         * ipa-icf.h (equals_private): Update declaration.
31182
31183 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31184
31185         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31186         asterisk from name so this can be generated directly.
31187         (*altivec_stvx_<mode>_internal): Likewise.
31188         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31189         that this is never called during or after reload/lra.
31190         (rs6000_frame_related): Remove split_reg
31191         argument and logic that references it.
31192         (emit_frame_save): Remove last parameter from call to
31193         rs6000_frame_related.
31194         (rs6000_emit_prologue): Remove last parameter from eight calls to
31195         rs6000_frame_related.  Force generation of stvx instruction for
31196         Altivec register saves.  Remove split_reg handling, which is no
31197         longer needed.
31198         (rs6000_emit_epilogue):  Force generation of lvx instruction for
31199         Altivec register restores.
31200
31201 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31202
31203         * config/rs6000/rs6000.opt (mcrypto): Change option description to
31204         match category changes in ISA 2.07B.
31205
31206 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31207
31208         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31209         iterators.
31210         (cmp_op, cmp_type): New code attributes.
31211         (NEON_VCMP, NEON_VACMP): New int iterators.
31212         (cmp_op_unsp): New int attribute.
31213         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31214         (neon_vceq<mode>): Delete.
31215         (neon_vc<cmp_op><mode>_insn): New pattern.
31216         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31217         (neon_vcgeu<mode>): Delete.
31218         (neon_vcle<mode>): Likewise.
31219         (neon_vclt<mode>: Likewise.
31220         (neon_vcage<mode>): Likewise.
31221         (neon_vcagt<mode>): Likewise.
31222         (neon_vca<cmp_op><mode>): New define_expand.
31223         (neon_vca<cmp_op><mode>_insn): New pattern.
31224         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31225
31226 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31227
31228         * tree.h (attribute_value_equal): Declare.
31229         * tree.c (attribute_value_equal): Export.
31230
31231 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31232
31233         * ipa-icf.c (sem_item::compare_attributes): New function.
31234         (sem_item::compare_referenced_symbol_properties): Compare variable
31235         attributes.
31236         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31237         (sem_function::param_used_p): New function.
31238         (sem_function::equals_wpa): Fix attribute comparsion; match
31239         parameter type codes; do not compare paremter flags when
31240         they are not used; compare edge flags; compare indirect calls.
31241         (sem_item::update_hash_by_addr_refs): Hash reference type.
31242         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31243         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31244         reference use type.
31245         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31246         * ipa-icf.h (compare_attributes, param_used_p): Declare.
31247
31248 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31249
31250         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31251         cleanup.
31252         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31253         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31254         (sem_item::compare_referenced_symbol_properties): New.
31255         (sem_item::hash_referenced_symbol_properties): New.
31256         (sem_item::compare_cgraph_references): Rename to ...
31257         (sem_item::compare_symbol_references): ... this one; use
31258         compare_referenced_symbol_properties.
31259         (sem_function::equals_wpa): Do not compare
31260         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31261         DECL_IS_OPERATOR_NEW; compare pointer sizes.
31262         (sem_item::update_hash_by_addr_refs): Call
31263         hash_referenced_symbol_properties.
31264         (sem_item::update_hash_by_local_refs): Cleanup.
31265         (sem_function::merge): Do not mix up symbol properties.
31266         (sem_variable::equals_wpa): Use compare_symbol_references.
31267         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31268         (sem_item::hash_referenced_symbol_properties): New.
31269         (sem_item::compare_symbol_references): New.
31270         (sem_item::compare_cgraph_references): Remove.
31271
31272 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
31273
31274         PR target/26702
31275         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31276         Emit size of local.
31277
31278 2015-04-23  Nick Clifton  <nickc@redhat.com>
31279
31280         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31281         ATTRIBUTE_UNUSED to x parameter.
31282         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31283
31284 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31285
31286         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31287         TARGET_CRYPTO to TARGET_P8_VECTOR>
31288         (crypto_vpermxor_<mode>): Likewise.
31289         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31290         (BU_CRYPTO_3A): Likewise.
31291         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31292         (BU_CRYPTO_OVERLOAD_3A): New #define.
31293         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31294         (VPMSUMH): Likewise.
31295         (VPMSUMW): Likewise.
31296         (VPMSUMD): Likewise.
31297         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31298         (VPERMXOR_V4SI): Likewise.
31299         (VPERMXOR_V8HI): Likewise.
31300         (VPERMXOR_V16QI): Likewise.
31301         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31302         BU_CRYPTO_OVERLOAD_2A.
31303         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31304         BU_CRYPTO_OVERLOAD_3A.
31305         * config/rs6000/rs6000.opt (mcrypto): Change description of
31306         option.
31307
31308 2015-04-23  Richard Biener  <rguenther@suse.de>
31309
31310         * passes.def: Remove copy propagation passes run directly after CCP.
31311         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31312         SSA names.
31313         (ccp_visit_phi_node): Rework to handle first executable edge
31314         specially.
31315
31316 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
31317
31318         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31319         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31320         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31321         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31322         (thumb_legimitimize_reload_address): Remove.
31323         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31324         Remove.
31325         (thumb_legimitimize_reload_address): Remove.
31326
31327 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31328
31329         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31330
31331 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31332
31333         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31334         MAX_LDM_STM_OPS.
31335         (store_multiple): Likewise.
31336
31337 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31338
31339         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31340         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31341         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31342         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31343         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31344         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31345         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31346         Specify issue_rate value.
31347         (arm_issue_rate): Look up issue rate from tuning structs. Remove
31348         large switch statement.
31349         (arm_marvell_pj4_tune): New struct.
31350         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31351         struct.
31352
31353 2015-04-23  Richard Biener  <rguenther@suse.de>
31354
31355         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31356         (vect_find_last_store_in_slp_instance): Rename to ...
31357         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31358         (vect_analyze_slp_cost_1): Use vector_load for constant defs
31359         and vec_construct for external defs when estimating prologue cost.
31360         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31361         Compute costs here only when vectorizing loops.
31362         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31363         have been determined.
31364         (vect_schedule_slp_instance): Simplify vectorized code placement
31365         and prepare for in-BB external defs.
31366         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31367         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31368         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31369         guard.
31370         (vect_model_load_cost): Likewise.
31371         (vectorizable_store): Instead add it here.
31372         (vectorizable_load): Likewise.
31373         (vect_is_simple_use): Dump def type textually.
31374
31375 2015-04-23  Richard Biener  <rguenther@suse.de>
31376
31377         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31378         * cfgloop.c (verify_loop_structure): Verify the root loop node.
31379         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31380         instead of get_eh_region_from_lp_number.
31381         * loop-init.c (fix_loop_structure): If we removed a loop, reset
31382         the SCEV cache.
31383
31384 2015-04-23  Anton Blanchard  <anton@samba.org>
31385
31386         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31387         need for -mprofile-kernel to save LR to stack.
31388
31389 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31390
31391         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31392         adjustments.
31393         (insn_is_swappable_p): Return 1 for a convert from double to
31394         single precision when all of its uses are splats of BE element
31395         zero.
31396
31397 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
31398
31399         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31400
31401 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31402
31403         PR target/65456
31404         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
31405         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31406         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31407         option.
31408         (rs6000_builtin_mask_for_load): Return 0 for targets with
31409         efficient unaligned VSX accesses so that the vectorizer will use
31410         direct unaligned loads.
31411         (rs6000_builtin_support_vector_misalignment): Always return true
31412         for targets with efficient unaligned VSX accesses.
31413         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31414         stores on targets with efficient unaligned VSX accesses is almost
31415         always the same as the cost of an aligned load or store, so model
31416         it that way.
31417         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31418         unaligned vectors if we have efficient unaligned VSX accesses.
31419         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31420         undocumented option.
31421
31422 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31423
31424         Revert:
31425         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31426
31427         * config.gcc (LIBC_MUSL): New tm_defines macro.
31428         * config/linux.h (OPTION_MUSL): Define.
31429         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31430         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31431         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31432
31433         * config/linux.opt (mmusl): New option.
31434         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31435         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31436
31437         * configure: Regenerate.
31438
31439 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31440
31441         * config.gcc (LIBC_MUSL): New tm_defines macro.
31442         * config/linux.h (OPTION_MUSL): Define.
31443         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31444         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31445         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31446
31447         * config/linux.opt (mmusl): New option.
31448         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31449         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31450
31451         * configure: Regenerate.
31452
31453 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
31454
31455         * doc/invoke.texi (-fsanitize-sections): Update description.
31456         * asan.c (set_sanitized_sections): Parse incoming arg.
31457         (section_sanitized_p): Support wildcards.
31458
31459 2015-04-22  Tom de Vries  <tom@codesourcery.com>
31460
31461         PR tree-optimization/65823
31462         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31463         equality between ap_copy and ap.
31464
31465 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31466
31467         PR target/47098
31468         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31469
31470 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31471
31472         PR target/47122
31473         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31474
31475 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31476
31477         PR target/55144
31478         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31479         remove already contained t-files.
31480
31481 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31482
31483         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31484         Remove unneeded forward declarations.
31485         (suitable_for_tail_call_opt_p): Commentary typo fix.
31486
31487 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31488
31489         * varasm.c (emit_bss): Remove redundant guard.
31490
31491 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31492
31493         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31494
31495 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31496
31497         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31498
31499 2015-04-22  Hale Wang  <hale.wang@arm.com>
31500             Terry Guo  <terry.guo@arm.com>
31501
31502         PR rtl-optimization/64818
31503         * combine.c (can_combine_p): Don't combine user-specified
31504         register if it is in an asm input.
31505
31506 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
31507
31508         PR ipa/65076
31509         * passes.def (early_optimizations): Add pass_dse.
31510
31511 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31512
31513         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31514         * reorg.c (redundant_insn): Remove ifdef
31515         INSN_REFERENCES_ARE_DELAYED.
31516         * resource.c (mark_referenced_resources): Likewise.
31517
31518 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31519
31520         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31521         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31522         * resource.c (mark_set_resources): Likewise.
31523
31524 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31525
31526         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31527         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31528         (flow_find_head_matching_sequence): Likewise.
31529         (try_head_merge_bb): Likewise.
31530         * combine.c (can_combine_p): Likewise.
31531         (try_combine): Likewise.
31532         (distribute_notes): Likewise.
31533         * df-problems.c (can_move_insns_across): Likewise.
31534         * final.c (final): Likewise.
31535         * gcse.c (insert_insn_end_basic_block): Likewise.
31536         * ira.c (find_moveable_pseudos): Likewise.
31537         * reorg.c (try_merge_delay_insns): Likewise.
31538         (fill_simple_delay_slots): Likewise.
31539         (fill_slots_from_thread): Likewise.
31540         * sched-deps.c (sched_analyze_2): Likewise.
31541
31542 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31543
31544         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31545         PIC_OFFSET_TABLE_REGNUM.
31546
31547 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31548
31549         * alias.c (init_alias_target): Remove ifdef
31550         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31551         * df-scan.c (df_insn_refs_collect): Likewise.
31552         (df_get_regular_block_artificial_uses): Likewise.
31553         (df_get_eh_block_artificial_uses): Likewise.
31554         (df_get_entry_block_def_set): Likewise.
31555         (df_get_exit_block_use_set): Likewise.
31556         * emit-rtl.c (gen_rtx_REG): Likewise.
31557         * ira.c (ira_setup_eliminable_regset): Likewise.
31558         * reginfo.c (init_reg_sets_1): Likewise.
31559         * regrename.c (rename_chains): Likewise.
31560         * reload1.c (reload): Likewise.
31561         (eliminate_regs_in_insn): Likewise.
31562         * resource.c (mark_referenced_resources): Likewise.
31563         (init_resource_info): Likewise.
31564
31565 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31566
31567         * defaults.h (MASK_RETURN_ADDR): New definition.
31568         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31569         MASK_RETURN_ADDR.
31570
31571 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31572
31573         * defaults.h (RETURN_ADDR_OFFSET): New definition.
31574         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31575         RETURN_ADDR_OFFSET.
31576         (expand_builtin_frob_return_addr): Likewise.
31577
31578 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31579
31580         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31581         (try_redirect_by_replacing_jump): Likewise.
31582         (rtl_tidy_fallthru_edge): Likewise.
31583         * combine.c (insn_a_feeds_b): Likewise.
31584         (find_split_point): Likewise.
31585         (simplify_set): Likewise.
31586         * cprop.c (cprop_jump): Likewise.
31587         * cse.c (cse_extended_basic_block): Likewise.
31588         * df-problems.c (can_move_insns_across): Likewise.
31589         * function.c (emit_use_return_register_into_block): Likewise.
31590         * haifa-sched.c (sched_init): Likewise.
31591         * ira.c (find_moveable_pseudos): Likewise.
31592         * loop-invariant.c (find_invariant_insn): Likewise.
31593         * lra-constraints.c (curr_insn_transform): Likewise.
31594         * postreload.c (reload_combine_recognize_const_pattern):
31595         * Likewise.
31596         * reload.c (find_reloads): Likewise.
31597         * reorg.c (delete_scheduled_jump): Likewise.
31598         (steal_delay_list_from_target): Likewise.
31599         (steal_delay_list_from_fallthrough): Likewise.
31600         (redundant_insn): Likewise.
31601         (fill_simple_delay_slots): Likewise.
31602         (fill_slots_from_thread): Likewise.
31603         (delete_computation): Likewise.
31604         * sched-rgn.c (add_branch_dependences): Likewise.
31605
31606 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31607
31608         * genconfig.c (main): Always define HAVE_cc0.
31609         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31610         HAVE_cc0.
31611         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31612         (flow_find_head_matching_sequence): Likewise.
31613         (try_head_merge_bb): Likewise.
31614         * cfgrtl.c (rtl_merge_blocks): Likewise.
31615         (try_redirect_by_replacing_jump): Likewise.
31616         (rtl_tidy_fallthru_edge): Likewise.
31617         * combine.c (do_SUBST_MODE): Likewise.
31618         (insn_a_feeds_b): Likewise.
31619         (combine_instructions): Likewise.
31620         (can_combine_p): Likewise.
31621         (try_combine): Likewise.
31622         (find_split_point): Likewise.
31623         (subst): Likewise.
31624         (simplify_set): Likewise.
31625         (distribute_notes): Likewise.
31626         * cprop.c (cprop_jump): Likewise.
31627         * cse.c (cse_extended_basic_block): Likewise.
31628         * df-problems.c (can_move_insns_across): Likewise.
31629         * final.c (final): Likewise.
31630         (final_scan_insn): Likewise.
31631         * function.c (emit_use_return_register_into_block): Likewise.
31632         * gcse.c (insert_insn_end_basic_block): Likewise.
31633         * haifa-sched.c (sched_init): Likewise.
31634         * ira.c (find_moveable_pseudos): Likewise.
31635         * loop-invariant.c (find_invariant_insn): Likewise.
31636         * lra-constraints.c (curr_insn_transform): Likewise.
31637         * optabs.c (prepare_cmp_insn): Likewise.
31638         * postreload.c (reload_combine_recognize_const_pattern):
31639         * Likewise.
31640         * reload.c (find_reloads): Likewise.
31641         (find_reloads_address_1): Likewise.
31642         * reorg.c (delete_scheduled_jump): Likewise.
31643         (steal_delay_list_from_target): Likewise.
31644         (steal_delay_list_from_fallthrough): Likewise.
31645         (try_merge_delay_insns): Likewise.
31646         (redundant_insn): Likewise.
31647         (fill_simple_delay_slots): Likewise.
31648         (fill_slots_from_thread): Likewise.
31649         (delete_computation): Likewise.
31650         (relax_delay_slots): Likewise.
31651         * sched-deps.c (sched_analyze_2): Likewise.
31652         * sched-rgn.c (add_branch_dependences): Likewise.
31653
31654 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31655
31656         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31657         that is trivially ded on non cc0 targets.
31658         (simplify_set): Likewise.
31659         (mark_used_regs_combine): Likewise.
31660         * cse.c (new_basic_block): Likewise.
31661         (fold_rtx): Likewise.
31662         (cse_insn): Likewise.
31663         (cse_extended_basic_block): Likewise.
31664         (set_live_p): Likewise.
31665         * rtlanal.c (canonicalize_condition): Likewise.
31666         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31667
31668 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31669
31670         * conditions.h: Define macros even if HAVE_cc0 is undefined.
31671         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31672         * final.c: Likewise.
31673         * jump.c: Likewise.
31674         * recog.c: Likewise.
31675         * recog.h: Declare functions even when HAVE_cc0 is undefined.
31676         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31677
31678 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31679
31680         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31681         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31682         * builtins.c (expand_builtin): Remove check if
31683         EH_RETURN_DATA_REGNO is defined.
31684         * df-scan.c (df_bb_refs_collect): Likewise.
31685         (df_get_exit_block_use_set): Likewise.
31686         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31687         * ira-lives.c (process_bb_node_lives): Likewise.
31688         * lra-lives.c (process_bb_lives): Likewise.
31689
31690 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31691
31692         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31693         FIRST_PSEUDO_REG): New.
31694         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31695         (ARG_POINTER_REGNUM): Define to ARGP_REG.
31696         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31697         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31698         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31699         (FIRST_INT_REG): New.
31700         (LAST_INT_REG): New.
31701         (FIRST_*_REG): Define using *_REG.
31702         (LAST_*_REG): Ditto.
31703         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31704         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31705         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31706
31707 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31708
31709         * expmed.c: (synth_mult): Only assume overlapping
31710         shift with previous steps in alg_sub_t_m2 case.
31711
31712 2015-04-21  Richard Biener  <rguenther@suse.de>
31713
31714         PR tree-optimization/65650
31715         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31716         transitions involving copies.
31717         (set_lattice_value): Adjust for copy lattice state.
31718         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31719         if that doesn't dominate the merge point.
31720         (bit_value_unop): Adjust what we treat as varying mask.
31721         (bit_value_binop): Likewise.
31722         (bit_value_assume_aligned): Likewise.
31723         (evaluate_stmt): When we simplified to a SSA name record a copy
31724         instead of dropping to varying.
31725         (visit_assignment): Simplify.
31726
31727         * gimple-match.h (gimple_simplify): Add another callback.
31728         * gimple-fold.c (fold_stmt_1): Adjust caller.
31729         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31730         for the 2nd callback.
31731         * gimple-match-head.c (gimple_simplify): Add a callback that is
31732         used to valueize the stmt operands and use it that way.
31733
31734 2015-04-21  Richard Biener  <rguenther@suse.de>
31735
31736         PR tree-optimization/65788
31737         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31738
31739 2015-04-21  Richard Biener  <rguenther@suse.de>
31740
31741         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31742         vec_construct cost by vec_stmt_cost.
31743
31744 2015-04-21  Richard Biener  <rguenther@suse.de>
31745
31746         * cfghooks.h (create_basic_block): Replace with two overloads
31747         for RTL and GIMPLE.
31748         (split_block): Likewise.
31749         * cfghooks.c (split_block): Rename to ...
31750         (split_block_1): ... this.
31751         (split_block): Add two type-safe overloads for RTL and GIMPLE.
31752         (split_block_after_labels): Call split_block_1.
31753         (create_basic_block): Rename to ...
31754         (create_basic_block_1): ... this.
31755         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31756         (create_empty_bb): Call create_basic_block_1.
31757         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31758         split_block_after_labels.
31759         * omp-low.c (expand_parallel_call): Likewise.
31760         (expand_omp_target): Likewise.
31761         (simd_clone_adjust): Likewise.
31762         * tree-chkp.c (chkp_get_entry_block): Likewise.
31763         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31764         create_basic_block overload.
31765         (cgraph_node::expand_thunk): Likewise.
31766         * tree-cfg.c (make_blocks): Likewise.
31767         (handle_abnormal_edges): Likewise.
31768         * tree-inline.c (copy_bb): Likewise.
31769
31770 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31771
31772         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31773         New pattern.
31774         (*xor_one_cmplsidi3_ze): Likewise.
31775
31776 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31777
31778         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31779         use df_remove_problem rather than manually removing problems, leaving
31780         holes in df->problems_in_order[].
31781
31782 2015-04-21  Tom de Vries  <tom@codesourcery.com>
31783
31784         PR tree-optimization/65802
31785         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31786
31787 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31788
31789         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31790         Increase to 128.
31791         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31792         at '.'.  Assert that there's enough space for everything.
31793
31794 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31795
31796         PR tree-optimization/64950
31797         Revert:
31798         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
31799
31800         PR target/41089
31801         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31802         as volatile.
31803
31804 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
31805
31806         PR rtl-optimization/64916
31807         * cfgcleanup.c (values_equal_p): New function.
31808         (can_replace_by): Use it.
31809
31810 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
31811
31812         PR c++/65801
31813         * doc/invoke.texi ([-Wnarrowing]): Update.
31814
31815 2015-04-20  Jeff Law  <law@redhat.com>
31816
31817         PR tree-optimization/65658
31818         * tree-ssa-threadupdate.c (redirection_block_p): Remove
31819         redundant test for GIMPLE_ASSIGN in last change.
31820
31821 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
31822
31823         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31824         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31825         (legitimize_tls_address): Ditto.
31826         (ix86_expand_move): Ditto.
31827         (ix86_expand_binary_operator): Remove reload_in_progress checks.
31828         (ix86_expand_unary_operator): Ditto.
31829         * config/i386/predicates.md (index_register_operand): Ditto.
31830
31831 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
31832
31833         * reorg.c (try_merge_delay_insns): Improve correctness checking
31834         for targets with multiple delay slots.
31835
31836 2015-04-20  Jeff Law  <law@redhat.com>
31837
31838         PR tree-optimization/65658
31839         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31840         statements too.
31841
31842 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31843
31844         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31845         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31846         Delete.
31847
31848 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
31849
31850         PR debug/65807
31851         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31852
31853 2015-04-20  Richard Biener  <rguenther@suse.de>
31854
31855         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31856         * gimple-fold.c (gimple_build_valueize): New function.
31857         (gimple_build): Always use gimple_build_valueize as valueize hook.
31858
31859 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31860
31861         PR target/64134
31862         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31863         and overwrite variable parts if <= 1/2 the elements are variable.
31864
31865 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31866
31867         PR rtl-optimization/65805
31868         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31869         Don't use difference of offset and previous offset if
31870         update_sp_offset is non-zero.
31871         (eliminate_regs_in_insn): Ditto.
31872         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31873         lra_eliminate_regs_1 call.
31874         * lra-constraints.c (get_equiv_with_elimination): Ditto.
31875
31876 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
31877
31878         * hash-table.h: Remove version of hash_table that stored value_type *.
31879         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31880         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31881         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31882         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31883         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31884         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31885         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31886         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31887         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31888         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31889         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31890         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31891         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31892         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31893         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31894         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31895
31896 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31897             Jakub Jelinek  <jakub@redhat.com>
31898
31899         PR target/65787
31900         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31901         subsequent SH_NONE operand does not overwrite an existing *special
31902         value.
31903         (adjust_extract): Handle case where a vec_extract operation is
31904         wrapped in a PARALLEL.
31905
31906 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31907
31908         PR target/65780
31909         * config/i386/i386.c (ix86_binds_local_p): Define only if
31910         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31911
31912 2015-04-17  Jeff Law  <law@redhat.com>
31913
31914         PR tree-optimization/47679
31915         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31916         * tree-ssa-scopedtables.c: New file.
31917         * tree-ssa-scopedtables.h: New file.
31918         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31919         (const_and_copies): Change name/type.
31920         (record_const_or_copy): Move into tree-ssa-scopedtables.c
31921         (record_const_or_copy_1): Similarly.
31922         (restore_vars_to_original_value): Similarly.
31923         (pass_dominator::execute): Create and destroy const_and_copies table.
31924         (thread_across_edge): Update passing of const_and_copies.
31925         (record_temporary_equivalence): Use method calls rather than
31926         manipulating const_and_copies directly.
31927         (record_equality, cprop_into_successor_phis): Similarly.
31928         (dom_opt_dom_walker::before_dom_children): Similarly.
31929         (dom_opt_dom_walker::after_dom_children): Similarly.
31930         (eliminate_redundant_computations): Similarly.
31931         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31932         (record_temporary_equivalence): Likewise.
31933         (invalidate_equivalences): Likewise.
31934         (record_temporary_equivalences_from_phis): Update due to type
31935         change of const_and_copies.  Use method calls rather than
31936         manipulating the stack directly.
31937         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31938         (thread_through_normal_block, thread_across_edge): Likewise.
31939         (thread_across_edge): Likewise.
31940         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31941         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
31942         of equiv_stack.
31943         (identify_jump_threads): Update due to type change of equiv_stack.
31944         (finalize_jump_threads): Delete the equiv_stack when complete.
31945
31946 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
31947
31948         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31949         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31950         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31951
31952 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
31953
31954         PR target/65535
31955         * config.gcc: Exit with a comment when we do not have a major version
31956         number for the FreeBSD target.
31957
31958 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31959
31960         PR target/65689
31961         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31962         maybe_allows_mem bitfields.
31963         (maybe_allows_none_start, maybe_allows_none_end,
31964         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31965         maybe_allows_mem_end): New variables.
31966         (compute_maybe_allows): New function.
31967         (add_constraint): Use it to initialize maybe_allows_reg and
31968         maybe_allows_mem fields.
31969         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31970         is_address constraints such that those that allow neither mem nor
31971         reg come first, then those that only allow reg but not mem, then
31972         those that only allow mem but not reg, then the rest.
31973         (write_allows_reg_mem_function): New function.
31974         (write_tm_preds_h): Call it.
31975         * stmt.c (parse_output_constraint, parse_input_constraint): Use
31976         the generated insn_extra_constraint_allows_reg_mem function
31977         instead of always setting *allows_reg = true; *allows_mem = true;
31978         for unknown extra constraints.
31979
31980 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31981
31982         PR target/65780
31983         * output.h (default_binds_local_p_3): New.
31984         * varasm.c (default_binds_local_p_3): Make it public.  Take an
31985         argument to indicate if common symbol may be local.  If common
31986         symbol may be local, treat non-external variable as defined
31987         locally.
31988         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31989         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31990         * config/i386/i386.c (ix86_binds_local_p): New.
31991         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31992         ix86_binds_local_p.
31993
31994 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31995
31996         PR debug/65771
31997         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31998         trying mem_loc_descriptor on XEXP (rtl, 0).
31999
32000 2015-04-17  Martin Liska  <mliska@suse.cz>
32001
32002         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32003         Release symbol_compare_collection.
32004         * ipa-reference.c: Add TODO that a vector should be released.
32005
32006 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32007
32008         PR target/65296
32009         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32010         to new AVR-LibC file layout (bug #44574).
32011         (*avrlibc_devicelib): Same.
32012         * config/avr/avr-mcus.def: Adjust comments.
32013         * config/avr/avr.opt (nodevicelib): Adjust help.
32014
32015 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
32016
32017         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32018
32019 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
32020
32021         PR c++/64527
32022         * gimplify.c (gimplify_init_constructor): Always emit a
32023         side-effecting constructor.
32024
32025 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32026
32027         PR tree-optimization/64950
32028         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32029         in cfun->curr_properties.
32030         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32031         if we generate an IFN_VA_ARG.
32032         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32033         function if PROP_gimple_lva is not set in src function.
32034
32035 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32036             Michael Matz  <matz@suse.de>
32037
32038         PR tree-optimization/64950
32039         * gimple-iterator.c (update_modified_stmts): Remove static.
32040         * gimple-iterator.h (update_modified_stmts): Declare.
32041         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32042         (gimplify_va_arg_internal): New function.
32043         (gimplify_va_arg_expr): Use IFN_VA_ARG.
32044         * gimplify.h (gimplify_va_arg_internal): Declare.
32045         * internal-fn.c (expand_VA_ARG): New unreachable function.
32046         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32047         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32048         (expand_ifn_va_arg): New function.
32049         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32050         (pass_stdarg::execute): Call expand_ifn_va_arg.
32051         (pass_data_lower_vaarg): New pass_data.
32052         (pass_lower_vaarg): New gimple_opt_pass.
32053         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32054         (make_pass_lower_vaarg): New function.
32055         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32056         properties_required field.
32057         * passes.def (all_passes): Add pass_lower_vaarg.
32058         * tree-pass.h (PROP_gimple_lva): Add define.
32059         (make_pass_lower_vaarg): Declare.
32060
32061 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32062
32063         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32064         * calls.c (call_expr_flags): Same.
32065
32066 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32067
32068         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32069         (pass_stdarg::execute): ... here.
32070
32071 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32072             Michael Matz  <matz@suse.de>
32073
32074         * tree-cfg.c (make_blocks_1): Factor out of ...
32075         (make_blocks): ... here.
32076         (make_edges_bb): Factor out of ...
32077         (make_edges): ... here.
32078         (gimple_find_sub_bbs): New function.
32079         * tree-cfg.h (gimple_find_sub_bbs): Declare.
32080
32081 2015-04-17  Tom de Vries  <tom@codesourcery.com>
32082
32083         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32084
32085 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
32086
32087         * asan.c (set_sanitized_sections): New function.
32088         (section_sanitized_p): Ditto.
32089         (asan_protect_global): Optionally sanitize user-defined
32090         sections.
32091         * asan.h (set_sanitized_sections): Declare new function.
32092         * common.opt (fsanitize-sections): New option.
32093         * doc/invoke.texi (-fsanitize-sections): Document new option.
32094         * opts-global.c (handle_common_deferred_options): Handle new
32095         option.
32096
32097 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32098
32099         PR debug/65771
32100         * dwarf2out.c (loc_list_from_tree): Return NULL
32101         for DEBUG_EXPR_DECL.
32102
32103 2015-04-17  Christian Bruel  <christian.bruel@st.com>
32104
32105         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32106         same attributes.
32107
32108 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32109
32110         * ira-color.c (setup_left_conflict_sizes_p): Do not process
32111         node itself when computing left conflict subnode size.
32112
32113 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32114
32115         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32116         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32117         *fop_<mode>_1_sse using enabled attribute.  Use
32118         register_mixssei387nonimm_operand operand 1 predicate. Change
32119         alternative 3 constraints from "x" to "v".
32120
32121 2015-04-16  Richard Biener  <rguenther@suse.de>
32122
32123         PR tree-optimization/65774
32124         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32125         bit-value tracking on.
32126
32127 2015-04-16  Richard Biener  <rguenther@suse.de>
32128
32129         PR tree-optimization/64277
32130         * tree-vrp.c (check_array_ref): Fix anti-range handling,
32131         simplify upper bound handling.
32132         (search_for_addr_array): Simplify.
32133         (check_array_bounds): Handle ADDR_EXPRs here.
32134         (check_all_array_refs): Simplify.
32135
32136 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32137
32138         * config/i386/i386.c (print_reg): Rewrite function.
32139
32140 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32141
32142         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32143         Invert the condition.
32144
32145 2015-04-16  Renlin Li  <renlin.li@arm.com>
32146
32147         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32148         simplifications for UNSIGNED_FLOAT.
32149
32150 2015-04-16  Nick Clifton  <nickc@redhat.com>
32151
32152         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32153         MUL_UNINIT.
32154         (enum rl78_cpu_type): New.
32155         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32156         (umulhi3_shift_virt): Remove m constraint from operand 1.
32157         (umulqihi3_virt): Likewise.
32158         * config/rl78/rl78.c (rl78_option_override): Add code to process
32159         -mcpu and -mmul options.
32160         (rl78_alloc_physical_registers): Add code to handle divhi and
32161         divsi valloc attributes.
32162         (set_origin): Likewise.
32163         * config/rl78/rl78.h (RL78_MUL_G14): Define.
32164         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32165         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32166         __RL78_Gxx__.
32167         (ASM_SPEC): Pass -mcpu on to assembler.
32168         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32169         (mulqi3_rl78): Likewise.
32170         (mulhi3_g13): Likewise.
32171         (mulhi3): Generate the G13 or G14 versions of the insn directly.
32172         (mulsi3): Likewise.
32173         (mulhi3_g14): Add clobbers of AX and BC.
32174         (mulsi3_g14): Likewise.
32175         (mulsi3_g13): Likewise.
32176         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32177         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32178         * config/rl78/rl78.opt (mmul): Initialise value to
32179         RL78_MUL_UNINIT.
32180         (mcpu): New option.
32181         (m13, m14, mrl78): New option aliases.
32182         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32183         (MULTILIB_DIRNAMES): Add g13 and g14.
32184         * doc/invoke.texi: Document -mcpu and -mmul options.
32185
32186 2015-04-16  Richard Biener  <rguenther@suse.de>
32187
32188         * tree-ssa-ccp.c (likely_value): See if we have operands that
32189         are marked as never simulate again and return CONSTANT in this
32190         case.
32191         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32192         not have any operands that will be simulated again as
32193         not being simulated again.
32194
32195 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
32196
32197         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32198         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32199         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32200         attribute.
32201         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32202         enabled attribute.
32203         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32204         *float<SWI48:mode><MODEF:mode>2_sse.
32205         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32206         enabled attribute.
32207         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32208         enabled attribute.
32209
32210 2015-04-15  Tom de Vries  <tom@codesourcery.com>
32211
32212         PR other/65487
32213         * function.c (push_dummy_function): New function.
32214         (init_dummy_function_start): Use push_dummy_function.
32215         (pop_dummy_function): New function.  Factored out of ...
32216         (expand_dummy_function_end): ... here.
32217         * function.h (push_dummy_function, pop_dummy_function): Declare.
32218         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32219         pop_dummy_function.
32220         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32221
32222 2015-04-15  Jeff Law  <law@redhat.com>
32223
32224         PR tree-optimization/47679
32225         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32226         need for forward declaration in upcoming changes.
32227         (record_conditions, record_edge_info): Likewise.
32228
32229         PR rtl-optimization/42522
32230         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32231         SIGN_EXTRACT as a whole object rather than simplifying
32232         its operand.
32233
32234 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
32235
32236         PR ipa/65765
32237         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32238         and GIMPLE_PREDICT use break instead of return true. For
32239         GIMPLE_EH_DISPATCH, compare dispatch region.
32240
32241 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
32242
32243         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
32244         details about the implementation.  Make clear preference for
32245         __atomic builtins.  Reduce possibility of future change.
32246
32247 2015-04-15  Nick Clifton  <nickc@redhat.com>
32248
32249         * config/rx/rx.opt (mallow-string-insns): New option.
32250         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32251         builtin if string instructions are denied.
32252         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32253         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32254         appropriate.
32255         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32256         * config/rx/rx.md (movstr): Enable pattern only if string
32257         instructions are allowed.
32258         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32259         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32260         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32261         (MULTILIB_DIRNAMES): Add no-strings.
32262         * doc/invoke.texi: Document -mno-allow-string-insns.
32263
32264 2015-04-15  Alan Modra  <amodra@gmail.com>
32265
32266         PR target/65408
32267         PR target/58744
32268         PR middle-end/36043
32269         * calls.c (load_register_parameters): Don't load past end of
32270         mem unless suitably aligned.
32271
32272 2015-04-15  Nick Clifton  <nickc@redhat.com>
32273
32274         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32275         decrement instruction as being frame related.
32276         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32277         based addresses.
32278         If zero extending a function address enclose the operation in
32279         %code(...).
32280         (rl78_preferred_reload_class): New function.
32281         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32282         * config/rl78/rl78.md: Remove useless constraints in expanders.
32283         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32284         (mulhi3_rl78): Likewise.
32285         (mulhi3_g13): Likewise.
32286         (mulsi3_rl78): Likewise.
32287         (es_addr): Move to before the multiply patterns.
32288
32289 2015-04-15  Alan Modra  <amodra@gmail.com>
32290
32291         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32292         and sequence_stack.  Add seq.
32293         (seq_stack): Delete.
32294         * function.c (prepare_function_start): Don't access x_last_insn.
32295         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32296         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32297         * emit_rtl.c (start_sequence, push_topmost_sequence,
32298         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32299         sequence accessors.
32300         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32301         remove_insn): Likewise.  Simplify.
32302         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32303         and pop_topmost_sequence.
32304         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
32305         debug insns.
32306         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32307
32308 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
32309
32310         PR target/65729
32311         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32312         the assertiion.
32313
32314 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32315
32316         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32317         (LEGACY_INT_REGNO_P): Ditto.
32318         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32319         (ANY_MASK_REG_P): Remove.
32320         (BND_REG_P): Rename from ANY_BND_REG_P.
32321         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32322         legacy integer registers.  Do not handle MMX_REG_P in a special way.
32323         Merge 64byte and 32byte SSE handling.
32324
32325 2015-04-14  Nick Clifton  <nickc@redhat.com>
32326
32327         * expr.c (expand_assignment): Force an address offset computation
32328         into a register before changing its mode.
32329         (expand_expr_real_1): Likewise.
32330
32331 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
32332
32333         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32334         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32335         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32336         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32337         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32338         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32339         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32340         and __aarch64_vget_lane_any.
32341
32342 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
32343
32344         PR rtl-optimization/65761
32345         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32346         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32347
32348 2015-04-14  Richard Biener  <rguenther@suse.de>
32349
32350         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32351         (graphite_can_represent_scev): Use POINTER_TYPE_P.
32352
32353 2015-04-14  Richard Biener  <rguenther@suse.de>
32354
32355         PR tree-optimization/65758
32356         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32357         against -1.
32358         (ccp_lattice_meet): Likewise.
32359         (bit_value_unop): Likewise.
32360         (bit_value_binop): Likewise.
32361         (bit_value_assume_aligned): Likewise.
32362
32363 2015-04-14  Christian Bruel  <christian.bruel@st.com>
32364
32365         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32366         function.
32367
32368 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
32369
32370         PR tree-optimization/63387
32371         * match.pd ((x unord x) | (y unord y) -> (x unord y),
32372         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32373
32374 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32375
32376         * config/i386/predicates.md (any_QIreg_operand): Rename from
32377         q_regs_operand.  Do not process subregs.
32378         (QIreg_operand): Use QI_REGNO_P predicate.
32379         (ext_QIreg_operand): Ditto.
32380         (ext_register_operand): Ditto.
32381         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32382         (AND splitters): Ditto.
32383         (AND with -65536 splitter): Add SWI48 mode for operand 0.
32384         (AND with -256 splitter): Use any_QIreg_operand predicate and
32385         SWI248 mode for operand 0.
32386         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32387         mode for operand 0.
32388         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32389
32390 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
32391
32392         * doc/plugins.texi: Rewrite first introductory paragraph.
32393
32394 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32395
32396         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32397         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32398
32399 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32400
32401         * ipa-profie.c (ipa_profile): Check number of parameters
32402         and possible polymorphic call targets before
32403         devirtualizing.
32404
32405 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
32406
32407         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32408         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32409
32410 2015-04-13  Richard Biener  <rguenther@suse.de>
32411
32412         PR tree-optimization/65204
32413         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32414         takens for bit-CCP.
32415
32416 2015-04-13  Richard Biener  <rguenther@suse.de>
32417
32418         PR target/65660
32419         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32420         and cond_not_taken_branch_cost to 4 and 2.
32421         (bdver2_cost): Likewise.
32422         (bdver3_cost): Likewise.
32423         (bdver4_cost): Likewise.
32424
32425 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32426
32427         * hash-table.h (hash_table constructor): Add mem stats.
32428         (alloc_entries): Likewise.
32429
32430 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32431
32432         * ipa-cp.c (ipcp_driver): Relase prev_edge.
32433         * passes.c (execute_one_pass): Only add transform if pass has one.
32434
32435 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
32436
32437         * config/i386/i386.c (ix86_option_override_internal): Don't set
32438         -fprefetch-loop-arrays if optimizing for size.
32439
32440 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32441             Gerald Pfeifer  <gerald@pfeifer.com>
32442
32443         * doc/contrib.texi (Contributors): Add Martin Jambor and
32444         Michael Matz.
32445
32446 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
32447
32448         * BASE-VER: Set to 6.0.0.
32449
32450         PR tree-optimization/65747
32451         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32452         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32453
32454 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32455
32456         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32457         sentence.  Improve grammar.
32458
32459 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32460
32461         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32462
32463 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32464
32465         PR ipa/65743
32466         * ipa-inline-transform.c (speculation_removed): Remove static var.
32467         (check_speculations): New function.
32468         (clone_inlined_nodes): Do not check spculations.
32469         (inline_call): Call check_speculations.
32470         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32471         consider non-invariants.
32472
32473 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32474             Martin Liska  <mliska@suse.cz>
32475
32476         PR ipa/65722
32477         * ipa-icf.c (sem_item::compare_cgraph_references): function and
32478         variable can not match.
32479         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32480         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32481
32482 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
32483
32484         PR tree-optimization/65735
32485         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32486         Remove visited_phis argument, add visited_bbs, avoid recursing into the
32487         same bb rather than just into the same phi node.
32488         (thread_through_normal_block): Adjust caller.
32489
32490 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32491
32492         * doc/contrib.texi (Contributors): Add Ira Rosen.
32493
32494 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
32495
32496         * gcov.c (find_source): Fix miswording in error message.
32497         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32498         (ix86_expand_sse_comi_round): Fix typo in error message.
32499
32500 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32501
32502         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32503
32504 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
32505
32506         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32507
32508 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32509
32510         PR target/65710
32511         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32512         Print bad_spills_num and insn_pseudos_num.
32513
32514 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32515
32516         PR target/65694
32517         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32518         when creating +1 values for SImode.
32519
32520 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32521
32522         PR target/65729
32523         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32524         assert.
32525
32526 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
32527             Iain Sandoe  <iain@codesourcery.com>
32528
32529         PR target/65351
32530         * configure: Regenerate.
32531
32532 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32533
32534         PR target/65671
32535         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32536
32537 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
32538
32539         * doc/contrib.texi (Contributors): Add John Marino.
32540
32541 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32542
32543         PR tree-optimization/65709
32544         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32545         TREE_TYPE (TREE_TYPE (t)).
32546
32547 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
32548
32549         PR target/65710
32550         * lra-int.h (lra_bad_spill_regno_start): New.
32551         * lra.c (lra_bad_spill_regno_start): New.
32552         (lra): Set up lra_bad_spill_regno_start.  Set up
32553         lra_constraint_new_regno_start unconditionally.
32554         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32555         spill preferences.
32556
32557 2015-04-09  Marek Polacek  <polacek@redhat.com>
32558             Jakub Jelinek  <jakub@redhat.com>
32559
32560         PR middle-end/65554
32561         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32562         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32563         of STRIP_NOPS.
32564
32565 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
32566
32567         PR rtl-optimization/65693
32568         * combine.c (is_parallel_of_n_reg_sets): Move outside of
32569         #ifndef HAVE_cc0.
32570
32571 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
32572
32573         PR target/65296
32574         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32575         device specs file if "device-specs%s" didn't resolve to a path.
32576
32577 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32578
32579         PR target/65676
32580         * config/i386/i386.c (fixup_modeless_constant): New.
32581         (ix86_expand_args_builtin): Fixup modeless constant operand.
32582         (ix86_expand_round_builtin): Ditto.
32583         (ix86_expand_special_args_builtin): Ditto.
32584         (ix86_expand_builtin): Ditto.
32585
32586 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32587
32588         PR target/65693
32589         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32590         any pow2 integer in between 2 and 0x80000000U inclusive.
32591
32592 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
32593
32594         PR rtl-optimization/65693
32595         * combine.c (is_parallel_of_n_reg_sets): Change first argument
32596         from an rtx_insn * to an rtx.
32597         (try_combine): Adjust both callers.  Use it once more.
32598
32599 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32600
32601         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32602         (chkp_make_static_const_bounds): Search existing
32603         symbol by assembler name.  Use make_decl_one_only.
32604         (chkp_get_zero_bounds_var): Remove node search which
32605         is now performed in chkp_make_static_const_bounds.
32606         (chkp_get_none_bounds_var): Likewise.
32607
32608 2015-04-08  Michael Witten  <mfwitten@gmail.com>
32609
32610         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32611         to an example.
32612
32613 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32614
32615         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32616
32617 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32618
32619         * doc/extend.texi (__sync Builtins): Fix grammar.
32620
32621 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32622
32623         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32624
32625 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32626
32627         * varasm.c (emit_local): Move definition of align.
32628
32629 2015-04-08  Julian Brown  <julian@codesourcery.com>
32630
32631         * config/nvptx/mkoffload.c (process): Support variable mapping.
32632
32633 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
32634
32635         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32636         alpha_links **.
32637         (alpha_write_one_linkage): Correct typo.
32638
32639 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32640
32641         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32642
32643 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32644
32645         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32646
32647 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32648
32649         * tree-chkp.h (chkp_insert_retbnd_call): New.
32650         * tree-chkp.c (chkp_insert_retbnd_call): New.
32651         * ipa-split.c (insert_bndret_call_after): Remove.
32652         (split_function): Use chkp_insert_retbnd_call.
32653         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32654         bounds for instrumented functions.
32655
32656 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
32657
32658         PR ipa/65540
32659         * calls.c (initialize_argument_information): When producing tail
32660         call also turn SSA_NAMES passed by references to original PARM_DECLs
32661
32662 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
32663
32664         PR target/65648
32665         * lra-remat.c (do_remat): Process input and non-input insn
32666         registers separately.
32667
32668 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32669
32670         PR debug/65678
32671         * valtrack.c (debug_lowpart_subreg): New function.
32672         (dead_debug_insert_temp): Use it.
32673
32674         PR middle-end/65680
32675         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32676         into signed HOST_WIDE_INT the same as negative bit_offset.
32677
32678 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
32679
32680         * ipa-comdats.c (ipa_comdats): Visit all thunks
32681         to set proper comdat group.
32682
32683 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32684
32685         PR target/65489
32686         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32687         on constants for NEON VSTRUCT modes.
32688
32689 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32690             Iain Sandoe  <iain@codesourcery.com>
32691
32692         PR target/65351
32693         * configure: Regenerate.
32694
32695 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32696
32697         PR target/65614
32698         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32699         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32700         that LFD is used to load double constants instead of LFS.  Add
32701         defaults for all costs structures.  Add comments for missing
32702         initialization fields.
32703         (size32_cost): Likewise.
32704         (size64_cost): Likewise.
32705         (rs64a_cost): Likewise.
32706         (mpccore_cost): Likewise.
32707         (ppc403_cost): Likewise.
32708         (ppc405_cost): Likewise.
32709         (ppc440_cost): Likewise.
32710         (ppc476_cost): Likewise.
32711         (ppc601_cost): Likewise.
32712         (ppc603_cost): Likewise.
32713         (ppc604_cost): Likewise.
32714         (ppc604e_cost): Likewise.
32715         (ppc620_cost): Likewise.
32716         (ppc630_cost): Likewise.
32717         (ppccell_cost): Likewise.
32718         (ppc750_cost): Likewise.
32719         (ppc7450_cost): Likewise.
32720         (ppc8540_cost): Likewise.
32721         (ppce300c2c3_cost): Likewise.
32722         (ppce500mc_cost): Likewise.
32723         (ppce500mc64_cost): Likewise.
32724         (ppce5500_cost): Likewise.
32725         (ppce6500_cost): Likewise.
32726         (titan_cost): Likewise.
32727         (power4_cost): Likewise.
32728         (power6_cost): Likewise.
32729         (power7_cost): Likewise.
32730         (power8_cost): Likewise.
32731         (ppca2_cost): Likewise.
32732         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32733
32734         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32735         instead of XXLOR to copy SFmode to clear out dirty bits created
32736         when SFmode denormals are generated.
32737         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32738         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32739
32740 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32741
32742         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32743         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32744         * config/aarch64/aarch64-tune.md: Regenerate.
32745
32746 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32747
32748         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32749         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32750         * config/arm/arm-cores.def (exynos-m1): New core.
32751         * config/arm/arm-tune.md: Regenerate.
32752         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32753         * config/arm/bpabi.h: Likewise.
32754
32755 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32756
32757         * ipa-cp (set_single_call_flag): Remove too
32758         restrictive assert.
32759
32760 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
32761
32762         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32763         GOMP_offload_unregister from the destructor.
32764
32765 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32766
32767         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32768         flags for instrumentation thunk.
32769         (chkp_produce_thunks): Likewise.
32770
32771 2015-04-05  Martin Liska  <mliska@suse.cz>
32772
32773         PR ipa/65665
32774         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32775         has computed data structure.
32776         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32777
32778 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
32779
32780         * invoke.texi (inline-unit-growth): Increase growth to 20%
32781         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32782
32783 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
32784
32785         PR target/65647
32786         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
32787         value checking.
32788         (lra_rematerialization_iter): New.
32789         * lra.c (lra): Initialize lra_rematerialization_iter.
32790         Stop updating lra_constraint_new_regno_start after switching of
32791         inheritance and rematerialization.
32792         * lra-remat.c (lra_rematerialization_iter): New.
32793         (lra_remat): Add printing pass iteration.  Do rematerialization
32794         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32795
32796 2015-04-04  Richard Biener  <rguenther@suse.de>
32797
32798         PR tree-optimization/64909
32799         PR tree-optimization/65660
32800         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32801         to take a cost vector for scalar iteration cost.
32802         (vect_get_single_scalar_iteration_cost): Likewise.
32803         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32804         Compute the scalar iteration cost into a cost vector.
32805         (vect_get_known_peeling_cost): Use the scalar cost vector to
32806         account for the cost of the peeled iterations.
32807         (vect_estimate_min_profitable_iters): Likewise.
32808         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32809         Likewise.
32810
32811 2015-04-04  Alan Modra  <amodra@gmail.com>
32812
32813         PR target/65576
32814         PR target/65240
32815         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32816         0.0 constant unless TARGET_VSX.
32817         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32818         alternative.
32819
32820 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32821
32822         PR ipa/65654
32823         * ipa-inline-transform.c (inline_call): Skip sanity check to work
32824         around the ICE
32825
32826 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32827
32828         PR ipa/65655
32829         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32830         speculative indirect edges to avoid ordering issue.
32831
32832 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32833
32834         PR ipa/65076
32835         * ipa-inline.c (edge_badness): Add combined size to the denominator.
32836
32837 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
32838
32839         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32840         TYPE_ARTIFICIAL on the .omp_data* types.
32841
32842 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32843
32844         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32845         instrumentation thunks.
32846
32847 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32848
32849         * config/i386/i386.c (ix86_expand_call): Avoid nested
32850         PARALLEL in returned call value.
32851
32852 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32853
32854         * lto-cgraph.c (input_cgraph_1): Always link instrumented
32855         assembler name with original one.
32856
32857 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32858
32859         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32860
32861 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32862
32863         Revert parts of r216820.
32864         * config/i386/i386.md (movqi_internal): Correct type calculation
32865         for alternatives 3 and 5.
32866
32867 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
32868
32869         PR preprocessor/61977
32870         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32871         predefine __vector/__bool/__pixel macros nor context sensitive
32872         macros for CLK_ASM.
32873         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32874
32875 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
32876
32877         * config/pa/pa.c (pa_output_move_double): Directly handle register
32878         indexed memory operand.  Simplify handling of scaled register indexed
32879         memory operands.
32880
32881 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32882
32883         PR driver/65444
32884         * config/i386/linux-common.h (MPX_SPEC): New.
32885         (CHKP_SPEC): Add MPX_SPEC.
32886         * doc/invoke.texi (-fcheck-pointer-boudns): Document
32887         possible issues with '-z bndplt' support in linker.
32888
32889 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32890
32891         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32892         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32893         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32894         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32895         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32896
32897 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
32898
32899         * config/i386/sync.md (UNSPEC_MOVA): Remove.
32900         (atomic_load<mode>): Change operand 0 predicate to
32901         nonimmediate_operand and fix up the destination when needed.
32902         Use UNSPEC_LDA.
32903         (atomic_loaddi_fpu): Use UNSPEC_LDA.
32904         (atomic_store<mode>): Change operand 1 predicate to
32905         nonimmendate_operand and move the source to register when needed.
32906         Use UNSPEC_STA.
32907         (atomic_store<mode>_1): Use UNSPEC_STA.
32908         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32909         Fix moves from memory operand.  Use UNSPEC_STA.
32910
32911 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32912
32913         * expmed.c (strict_volatile_bitfield_p): Check that the access will
32914         not cross a MODESIZE boundary.
32915         (store_bit_field, extract_bit_field): Added assertions in the
32916         strict volatile bitfields code path.
32917
32918 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32919
32920         PR target/65624
32921         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32922         Increase args array size by one to avoid buffer overflow.
32923
32924 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32925
32926         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32927         split_part.
32928         * ipa-inline.c (edge_badness): Add wrapper penalty.
32929         (sum_callers): Move up.
32930         (inline_small_functions): Set single_caller.
32931         * ipa-inline.h (inline_summary): Add single_caller.
32932         * ipa-split.c (split_function): Set split_part.
32933         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32934         * cgraph.h (cgraph_node): Add split_part.
32935
32936 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
32937
32938         PR target/58945
32939         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32940         Do not split operands 0 and operands 2 to halfmode.
32941         (atomic_compare_and_swap<mode>): Update for
32942         atomic_compare_and_swap<dwi>_doubleword changes.
32943
32944 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32945
32946         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32947         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32948         no caching is done.
32949
32950 2015-03-31  Martin Liska  <mliska@suse.cz>
32951
32952         PR ipa/65557
32953         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32954         has already filled up function summary.
32955         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32956
32957 2015-03-31  Richard Biener  <rguenther@suse.de>
32958
32959         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32960         of types.
32961
32962 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32963
32964         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32965         nested functions.
32966         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32967         (s390_asm_output_function_label): Adapt to new signature of
32968         s390_function_num_hotpatch_hw
32969         Optimise the code generating assembler output.
32970         Add comments to assembler file.
32971
32972 2015-03-31  Richard Biener  <rguenther@suse.de>
32973
32974         PR middle-end/65626
32975         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32976         of the noreturn call so it is last and cleanup_control_flow_bb
32977         can do the CFG part.
32978
32979 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
32980
32981         PR target/65531
32982         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32983         same_comdat_group for external symbols.
32984         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32985         infinite same_comdat_group traversal loop.
32986
32987 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
32988
32989         PR plugins/61176
32990         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32991         automatically to $headers.
32992
32993 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
32994
32995         PR ipa/65610
32996         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32997         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32998         function.
32999         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33000         Use it.
33001         * ipa-prop.c (param_type_may_change_p): Likewise.
33002         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33003         (remove_unused_scope_block_p): Add in_ctor_dtor_block
33004         argument.  Before inlining, preserve
33005         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33006         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
33007         recursive calls.
33008         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33009
33010 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33011
33012         PR ipa/65076
33013         * ipa-inline.c (edge_badness): Base denominator on callee's
33014         grwoth squared.
33015
33016 2015-03-27  Martin Jambor  <mjambor@suse.cz>
33017
33018         PR ipa/65478
33019         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33020         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33021         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33022         node_calling_single_call.
33023         * ipa-cp.c (count_callers): New function.
33024         (set_single_call_flag): Likewise.
33025         (initialize_node_lattices): Count callers and set single_flag_call if
33026         necessary.
33027         (incorporate_penalties): New function.
33028         (good_cloning_opportunity_p): Use it, dump new flags.
33029         (propagate_constants_topo): Set node_within_scc flag if appropriate.
33030         * doc/invoke.texi (ipa-cp-recursion-penalty,
33031         ipa-cp-single-call-pentalty): Document.
33032
33033 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33034
33035         PR ipa/65588
33036         * symtab.c (symtab_node::get_partitioning_class): Register vars
33037         are duplicated.
33038         * varpool.c (symbol_table::output_variables) Do not assemble unefined
33039         decls for non-symbols.
33040
33041 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
33042
33043         PR target/65248
33044         * output.h (default_binds_local_p_2): New.
33045         * varasm.c (default_binds_local_p_2): Renamed to ...
33046         (default_binds_local_p_3): This.  Don't return true on protected
33047         data symbol if protected data may be external.
33048         (default_binds_local_p): Use default_binds_local_p_3.
33049         (default_binds_local_p_1): Likewise.
33050         (default_binds_local_p_2): New.
33051         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33052         default_binds_local_p_2 if TARGET_MACHO is undefined.
33053
33054 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
33055
33056         PR target/65593
33057         * config/i386/i386.c (legitimize_pic_address): If base
33058         is SYMBOL_REF or LABEL_REF using %rip addressing, force
33059         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33060
33061 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33062
33063         PR target/65531
33064         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33065         comdat groups.
33066
33067 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
33068
33069         PR ipa/65600
33070         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33071         of optimized out indirect call.
33072         (redirect_to_unreachable): Always build symbol table node for
33073         BUILT_IN_UNREACHABLE
33074
33075 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
33076
33077         PR target/65407
33078         * ira-costs.c (record_reg_classes): Process all constraint string
33079         containing 0-9.
33080
33081 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
33082
33083         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33084         memory_operand.
33085
33086         PR target/65052
33087         * config/c6x/constraints.md (S3): New constraint.
33088         * config/c6x/c6x.md (real_jump): Use it.
33089
33090 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33091
33092         PR middle-end/65595
33093         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33094         do redirection if the call is not optimized out.
33095
33096 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
33097
33098         PR target/65495
33099         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33100         (fchkp-check-incomplete-type): Add LTO.
33101         (fchkp-zero-input-bounds-for-main): Likewise.
33102         (fchkp-first-field-has-own-bounds): Likewise.
33103         (fchkp-narrow-bounds): Likewise.
33104         (fchkp-narrow-to-innermost-array): Likewise.
33105         (fchkp-use-static-bounds): Likewise.
33106         (fchkp-use-static-const-bounds): Likewise.
33107         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33108
33109 2015-03-27  Marek Polacek  <polacek@redhat.com>
33110
33111         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33112
33113 2015-03-27  Marek Polacek  <polacek@redhat.com>
33114
33115         PR sanitizer/65583
33116         * ubsan.c (ubsan_create_edge): New function.
33117         (instrument_bool_enum_load): Call it.
33118         (instrument_nonnull_arg): Likewise.
33119         (instrument_nonnull_return): Likewise.
33120         (instrument_object_size): Likewise.
33121
33122 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33123
33124         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33125         auto_vec.
33126
33127 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33128
33129         PR lto/65536
33130         * lto-streamer.h (class lto_location_cache): New.
33131         (struct data_in): Add location_cache.
33132         (lto_input_location): Update prototype.
33133         (stream_input_location_now): New.
33134         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33135         pointer to location.
33136         (stream_input_location): Update.
33137         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33138         (warn_odr): Apply location cache before warning.
33139         (lto_input_location): Update prototype.
33140         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33141         Use stream_input_location_now.
33142         * lto-streamer-in.c (lto_location_cache::current_cache): New static
33143         variable.
33144         (lto_location_cache::cmp_loc): New function.
33145         (lto_location_cache::apply_location_cache): New function.
33146         (lto_location_cache::accept_location_cache): New function.
33147         (lto_location_cache::revert_location_cache): New function.
33148         (lto_location_cache::input_location): New function.
33149         (lto_input_location): Do location caching.
33150         (stream_input_location_now): New function.
33151         (input_eh_region, input_struct_function_base): Use
33152         stream_input_location_now.
33153         (lto_data_in_create): use new.
33154         (lto_data_in_delete): Use delete.
33155         * tree-streamer-in.c (unpack_ts_block_value_fields,
33156         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33157         lto_input_ts_exp_tree_pointers): Update for cached location api.
33158
33159 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33160
33161         PR ipa/65076
33162         * passes.def: Add pass_nothrow.
33163         * ipa-pure-const.c: (pass_data_nothrow): New.
33164         (pass_nothrow): New.
33165         (pass_nothrow::execute): New.
33166         (make_pass_nothrow): New.
33167         * tree-pass.h (make_pass_nothrow): Declare.
33168
33169 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33170
33171         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33172         edge to change by speculation resolution or redirection.
33173         (edge_set_predicate): Likewise.
33174         (inline_summary_t::duplicate): Likewise.
33175         (remap_edge_summaries): Likewise.
33176
33177 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33178
33179         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33180         New macros.
33181         (can_inline_edge_p): Relax option matching for always inline functions.
33182
33183 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
33184
33185         PR target/65561
33186         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33187         Check operand 4 and operand 0 for equality.
33188         (avx512f_vextract<shuffletype>32x4_1_maskm):
33189         Check operand 6 and operand 0 for equality.
33190         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33191         for equality.
33192         (vec_extract_hi_<mode>_maskm): Ditto.
33193
33194 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33195
33196         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33197         dead calls back to live.
33198         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33199         cross check to ...
33200         (cgraph_node::verify_node): ... here; verify only callee edges,
33201         not caller.
33202         * cif-code.def (CILK_SPAWN): New code.
33203
33204 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33205
33206         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33207         (edge_set_predicate): Use it to mark unreachable edges.
33208         (inline_summary_t::duplicate): Remove unnecesary code.
33209         (remap_edge_summaries): Likewise.
33210         (dump_inline_summary): Report contains_cilk_spawn.
33211         (compute_inline_parameters): Compute contains_cilk_spawn.
33212         (inline_read_section, inline_write_summary): Stream
33213         contains_cilk_spawn.
33214         * ipa-inline.c (can_inline_edge_p): Do not touch
33215         DECL_STRUCT_FUNCTION that may not be available;
33216         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33217         remove check for callee_fun->can_throw_non_call_exceptions and
33218         replace it by optimization attribute check; check for flag_exceptions.
33219         * ipa-inline-transform.c (inline_call): Maintain
33220         DECL_FUNCTION_PERSONALITY
33221         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33222
33223 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33224
33225         PR tree-optimization/65551
33226         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33227         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33228
33229 2015-03-26  Richard Biener  <rguenther@suse.de>
33230
33231         PR middle-end/65555
33232         * tree-cfg.c (verify_gimple_call): Do not require a call to
33233         have no LHS if it wasn't recognized as control altering yet.
33234
33235 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33236
33237         PR tree-optimization/64715
33238         * passes.def: Add another instance of pass_object_sizes before ccp1.
33239         * tree-object-size.c (pass_object_sizes::execute): In
33240         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33241         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33242         __bos result and the computed constant.  Remove redundant
33243         checks, obsoleted by gimple_call_builtin_p test.
33244
33245         * var-tracking.c (variable_tracking_main_1): Don't track
33246         variables for targetm.no_register_allocation targets.
33247
33248 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
33249
33250         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33251         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33252
33253 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33254
33255         PR target/65569
33256         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33257         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
33258         0.0 is correctly setup.
33259         (extenddftf2_internal): Likewise.
33260
33261 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
33262
33263         PR tree-optimization/65177
33264         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33265         (bb_in_bbs): New.
33266         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
33267         edges not adjacent on the path to the original code.
33268
33269 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
33270
33271         PR bootstrap/65537
33272         * doc/install.texi (Building a native compiler): Document new
33273         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
33274         configuration assumes that the host supports the linker plugin.
33275
33276 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33277
33278         PR target/65508
33279         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33280         chain for generated call.
33281
33282 2015-03-25  Richard Biener  <rguenther@suse.de>
33283
33284         * passes.c (pass_manager::execute_early_local_passes): Guard
33285         execution of pass_chkp_instrumentation_passes with
33286         flag_check_pointer_bounds.
33287         (pass_chkp_instrumentation_passes::gate): Likewise.
33288
33289 2015-03-25  Martin Liska  <mliska@suse.cz>
33290
33291         PR tree-optimization/65538
33292         * symbol-summary.h (function_summary::~function_summary):
33293         Relese memory for allocated summaries.
33294         (function_summary::release): New function.
33295
33296 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
33297
33298         PR lto/65515
33299         * lto-streamer-out.c (DFS::worklist): New struct.
33300         (DFS::worklist_vec): New data member.
33301         (DFS::next_dfs_num): Remove.
33302         (DFS::DFS): Rewritten using worklist instead of recursion,
33303         using most of code from DFS::DFS_write_tree.
33304         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33305         pass it to DFS_write_tree calls.
33306         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33307         quick initial checks push it into worklist_vec and return.
33308
33309 2015-03-25  Richard Biener  <rguenther@suse.de>
33310
33311         PR middle-end/65519
33312         * genmatch.c (expr::gen_transform): Re-write to avoid
33313         using gimple_build.
33314
33315 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33316
33317         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33318
33319 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33320
33321         * config/arm/arm.opt (print_tune_info): New option.
33322         * config/arm/arm.c (arm_print_tune_info): New function.
33323         (arm_file_start): Call arm_print_tune_info.
33324         * config/arm/arm-protos.h (struct tune_params): Add comment.
33325         * doc/invoke.texi (@item -mprint-tune-info): New item.
33326         (-mtune): mention it in ARM Option Summary.
33327
33328 2015-03-25  DJ Delorie  <dj@redhat.com>
33329
33330         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33331         correct clause.
33332
33333 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
33334             Martin Liska  <mliska@suse.cz>
33335
33336         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33337         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33338         (sem_item::add_type): New function.
33339         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33340         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33341         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33342         (sem_function::equals_wpa): Fix typo.
33343         * ipa-icf.h (sem_item::add_type): New function.
33344         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33345         order.
33346
33347 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
33348
33349         PR tree-optimization/65533
33350         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33351         with swapped operands, call vect_free_slp_tree on
33352         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33353         vector.
33354
33355 2015-03-24  Richard Biener  <rguenther@suse.de>
33356
33357         PR middle-end/65517
33358         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33359         for fixup if necessary.
33360
33361 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
33362
33363         * doc/extend.texi (Function Attributes): Add @cindex entries
33364         for all attributes and regularize their format.  Delete text
33365         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
33366         information about "eightbit_data", "tiny_data", and "model"
33367         variable attributes to the Variable Attributes section.  Fix
33368         some obvious typos and copy-editing issues.
33369         (Variable Attributes, Type Attributes): Likewise add/fix
33370         @cindex entries for all attributes.
33371
33372 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33373
33374         PR target/65523
33375         * tree-chkp.c (chkp_build_returned_bound): Ignore
33376         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33377
33378 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
33379
33380         PR target/65505
33381         * config/sh/predicates.md (simple_mem_operand,
33382         displacement_mem_operand): Add test for reg.
33383         (short_displacement_mem_operand): Test for displacement_mem_operand
33384         before invoking sh_disp_addr_displacement.
33385         * config/sh/constraints.md (Sdd, Sra): Simplify.
33386         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33387         Remove redundant displacement_mem_operand tests.
33388
33389 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
33390
33391         PR target/65296
33392         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33393         the same -mmcu=MCU more than once.
33394
33395 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33396
33397         PR bootstrap/65522
33398         * ipa-devirt.c: Remove duplicate demangle.h include.
33399
33400         PR target/65504
33401         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33402         on the pseudo.
33403         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33404         REG_POINTER on *destptr after adjusting it for prologue size.
33405
33406         PR ipa/65521
33407         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33408         ultimate_alias_target ()->order ints instead of
33409         ultimate_alias_target () pointers.
33410
33411 2015-03-23  Richard Biener  <rguenther@suse.de>
33412
33413         PR tree-optimization/65518
33414         * tree-vect-stmts.c (vectorizable_load): Reject single-element
33415         interleaving cases we generate absymal code for.
33416
33417 2015-03-23  Richard Biener  <rguenther@suse.de>
33418
33419         PR tree-optimization/65494
33420         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33421         matches here.
33422         (vect_analyze_slp_instance): But do that here, always and once.
33423
33424 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33425
33426         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33427         adding T or multiplying by T+1 and subracting T.
33428
33429 2015-03-22  Jeff Law  <law@redhat.com>
33430
33431         PR rtl-optimization/64317
33432         * Makefile.in (OBJS): Add gcse-common.c
33433         * gcse.c: Include gcse-common.h
33434         (struct modify_pair_s): Move structure definition to gcse-common.h
33435         (compute_transp): Move function to gcse-common.c.
33436         (canon_list_insert): Similarly.
33437         (record_last_mem_set_info): Break out some code and put it into
33438         gcse-common.c.  Call into the new common code.
33439         (compute_local_properties): Pass additional arguments to compute_transp.
33440         * postreload-gcse.c: Include gcse-common.h and df.h
33441         (modify_mem_list_set, blocks_with_calls): New variables.
33442         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33443         (get_bb_avail_insn): Pass in the expression index too.
33444         (alloc_mem): Allocate memory for the new bitmaps and lists.
33445         (free_mem): Free memory for the new bitmaps and lists.
33446         (insert_expr_in_table): Record a bitmap index for each entry we
33447         add to the table.
33448         (record_last_mem_set_info): Call into common code in gcse-common.c.
33449         (get_bb_avail_insn): If no available insn was found in the requested
33450         BB.  If BB has a single predecessor, see if the expression is
33451         transparent in BB and available in that single predecessor.
33452         (compute_expr_transp): New wrapper for compute_transp.
33453         (eliminate_partially_redundant_load): Pass expression's bitmap_index
33454         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
33455         (gcse_after_reload_main): If there are elements in the hash table,
33456         then compute transparency for all the elements in the hash table.
33457         * gcse-common.h: New file.
33458         * gcse-common.c: New file.
33459
33460 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
33461
33462         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33463         as an adjective.
33464         (System Headers): Likewise.
33465         (Ifdef): Likewise.
33466         (Traditional macros): Likewise.
33467         (Invocation): Likewise.
33468         (Option Index): Likewise.
33469         * doc/cppopts.texi (-M): Likewise.
33470         (-finput-charset): Likewise.
33471         (--help): Likewise.
33472         * doc.invoke.texi (AVR Options): Likewise.
33473         (V850 Options): Likewise.
33474
33475 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
33476
33477         PR ipa/65475
33478         * ipa-devirt.c: Include demangle.h
33479         (odr_type_d): Add field rtti_broken.
33480         (odr_subtypes_equivalent_p): Do not require name to match.
33481         (compare_virtual_tables): Fix typo; if type already has ODR violation,
33482         bypass the tests; be ready for function referneces in vtables that are
33483         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33484         (warn_odr): Give up for nameless types.
33485         (warn_types_mismatch): Report mismatch in mangled names;
33486         report mismatch in anonymous namespaces; look into component types to
33487         give useful error; report when mismatch is dragged in from other ODR
33488         type.
33489         (odr_types_equivalent_p): Match types for being polymorphic; avoid
33490         duplicated diagnostics.
33491         (add_type_duplicate): Reorder checks so more informative ones come
33492         first; fix typo; do not output "the extra base is defined here" when
33493         we did not warn.
33494         (BINFO_N_BASE_BINFOS): Relax sanity check.
33495
33496 2015-03-22  Martin Liska  <mliska@suse.cz>
33497             Jakub Jelinek  <jakub@redhat.com>
33498
33499         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33500         masks that can potentially include a builtin.
33501         (ix86_add_new_builtins): Introduce fast filter for isa values
33502         that cannot trigger builtin inclusion.
33503
33504 2015-03-22  Martin Liska  <mliska@suse.cz>
33505
33506         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33507         (sem_item::update_hash_by_local_refs): Likewise.
33508         (sem_variable::get_hash): Empty line is fixed.
33509         (sem_item_optimizer::execute): Include adding of hash references.
33510         (sem_item_optimizer::update_hash_by_addr_refs): New function.
33511         (sem_item_optimizer::build_hash_based_classes): Use local hash.
33512         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33513         (sem_item::update_hash_by_local_refs): Likewise.
33514
33515 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33516
33517         PR ipa/65502
33518         * ipa-comdats.c (enqueue_references): Walk through thunks.
33519         (ipa_comdats): Likewise.
33520         (set_comdat_group_1): New function.
33521
33522 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33523
33524         PR ipa/65475
33525         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33526         non-polymorphic
33527
33528 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
33529             Gerald Pfeifer  <gerald@pfeifer.com>
33530
33531         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33532
33533 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
33534             Sandra Loosemore  <sandra@codesourcery.com>
33535
33536         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33537         function parameter declaration.
33538         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33539         Update arguments to nios2_adjust_call_address().
33540         (sibcall_internal): Rename from *sibcall.
33541         (sibcall_value_internal): Rename from *sibcall_value.
33542         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33543         (nios2_large_got_address): Add target temp reg parameter.
33544         (nios2_got_address): Adjust call to nios2_large_got_address, add
33545         force_reg around it.
33546         (nios2_load_pic_address): Add target temp reg parameter, replace call
33547         to nios2_got_address with corresponding code.
33548         (nios2_legitimize_constant_address): Update call to
33549         nios2_load_pic_address.
33550         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33551         to use temp reg for PIC loading purposes.
33552         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33553         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33554         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33555
33556 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33557
33558         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33559         usage of "the @option{...}".
33560         (-Wopenmp-simd): Likewise.
33561         (-fsanitize-recover): Likewise.
33562         (-fsanitize-undefined-trap-on-error): Likewise.
33563         (-flto): Likewise.
33564         (tracer-dynamic-coverage-feedback): Likewise.
33565         (reorder-block-duplicate-feedback): Likewise.
33566         (loop-unroll-jam-size): Likewise.
33567         (-B): Likewise.
33568         (-I-): Likewise.
33569         (-mabs=legacy): Likewise.
33570         (-mupper-regs-df): Likewise.
33571         (-mupper-regs-sf): Likewise.
33572         (-mpointers-to-nested-functions): Likewise.
33573
33574 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33575
33576         * doc/extend.texi (Cilk Plus Builtins): Add markup.
33577
33578 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33579
33580         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33581         additional index entries and cross-references.
33582         (-fchkp-check-incomplete-type): Likewise.
33583         (-fchkp-first-field-has-own-bounds): Likewise.
33584         (-fchkp-narrow-to-innermost-array): Likewise.
33585         (-fchkp-use-fast-string-functions): Likewise.
33586         (-fchkp-use-nochk-string-functions): Likewise.
33587         (-fchkp-use-static-const-bounds): Likewise.
33588         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33589         (-fchkp-instrument-marked-only): Likewise.
33590         (-fchkp-use-wrappers): Likewise.
33591         (-static-libmpx): Likewise.
33592         (-static-libmpxwrappers): Likewise.
33593         * doc/extend.texi (bnd_legacy): Likewise.
33594         (bnd_instrument): Likewise.
33595         (bnd_variable_size): Likewise.
33596         (Pointer Bounds Checker builtins): Likewise.
33597
33598 2015-03-21  Tom de Vries  <tom@codesourcery.com>
33599
33600         PR tree-optimization/65458
33601         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33602         * cgraph.h (cgraph_node): Add parallelized_function field.
33603         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33604         (input_overwrite_node): Read parallelized_function field.
33605         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33606         parallelized_function on cgraph_node for child_fn.
33607         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33608         Remove include of gt-tree-parloops.h.
33609         (parallelized_functions): Remove static variable.
33610         (parallelized_function_p): Rewrite using parallelized_function field of
33611         cgraph_node.
33612         (create_loop_fn): Remove adding to parallelized_functions.
33613         * Makefile.in (GTFILES): Remove tree-parloops.c
33614
33615 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
33616
33617         PR rtl-optimization/64366
33618         * lra.c (lra_update_insn_regno_info): Consider regs in
33619         CALL_INSN_FUNCTION_USAGE memory.
33620
33621 2015-03-20  Richard Biener  <rguenther@suse.de>
33622
33623         PR middle-end/64715
33624         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33625         for type comparison and gcc_checking_assert.
33626         (chrec_fold_plus_poly_poly): Likewise.
33627         (chrec_fold_multiply_poly_poly): Likewise.
33628         (chrec_convert_1): Likewise.
33629         * gimplify.c (gimplify_expr): Remove premature folding of
33630         &X + CST to &MEM[&X, CST].
33631
33632 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33633
33634         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33635         already is final.
33636         (ipa_inline): Recompute inline_failed codes.
33637         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33638         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33639         CIF_FINAL_ERROR.
33640
33641 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
33642
33643         PR rtl-optimization/60851
33644         * recog.c (constrain_operands): Accept a pseudo register before reload
33645         for LRA enabled targets.
33646
33647 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33648
33649         PR target/65240
33650         * config/rs6000/predicates.md (easy_fp_constant): Remove special
33651         -ffast-math handling that kept non-0 constants live in the RTL
33652         until reload.  Remove logic testing the number of instructions it
33653         took to create a constant in a GPR that was never used, due to a
33654         test for soft-float earlier.
33655         (memory_fp_constant): Delete, no longer used.
33656
33657         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33658         alternatives for loading non-0 constants into GPRs for hard
33659         floating point that is no longer needed due to changes in
33660         easy_fp_constant.  Add support for loading 0.0 into GPRs.
33661         (mov<mode>_hardfloat32): Likewise.
33662         (mov<mode>_hardfloat64): Likewise.
33663         (mov<mode>_64bit_dm): Likewise.
33664         (movtd_64bit_nodm): Likewise.
33665         (pre-reload move FP constant define_split): Delete define_split,
33666         since it is no longer used.
33667         (extenddftf2_internal): Remove GHF constraints that are not valid
33668         for extenddftf2.
33669
33670 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
33671
33672         PR rtl-optimization/63491
33673         * lra-constraints.c (check_and_process_move): Use src instead of
33674         sreg.  Remove some dead code.
33675
33676 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
33677
33678         PR ipa/65380
33679         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33680         (sem_variable::merge): Likewise.
33681
33682 2015-03-19  Martin Liska  <mliska@suse.cz>
33683
33684         PR ipa/65465
33685         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33686         all fields of cgraph_thunk_info.
33687
33688 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33689
33690         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33691         clone instrumented thunks.
33692
33693 2015-03-19  Richard Biener  <rguenther@suse.de>
33694
33695         Revert
33696         2015-03-10  Richard Biener  <rguenther@suse.de>
33697
33698         PR middle-end/63155
33699         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33700         * tree-ssa-coalesce.c: Include timevar.h.
33701         (attempt_coalesce): Handle graph being NULL.
33702         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33703         Split out abnormal coalescing to ...
33704         (perform_abnormal_coalescing): ... this function.
33705         (coalesce_ssa_name): Perform abnormal coalescing without computing
33706         live/conflict.
33707         (verify_ssa_coalescing_worker): New function.
33708         (verify_ssa_coalescing): Likewise.
33709
33710 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33711             Jakub Jelinek  <jakub@redhat.com>
33712
33713         PR sanitizer/65400
33714         * tsan.c (instrument_gimple): Clear tail call flag on
33715         calls.
33716
33717 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
33718
33719         PR sanitizer/65400
33720         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33721         call in the return bb.
33722         (find_split_points): Add RETURN_BB argument, don't call
33723         find_return_bb.
33724         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
33725         if true append TSAN_FUNC_EXIT internal call after the call to
33726         the split off function.
33727         (execute_split_functions): Call find_return_bb here.
33728         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33729         Adjust find_split_points and split_function calls.
33730
33731 2015-03-18  DJ Delorie  <dj@redhat.com>
33732
33733         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33734         (iorqi3_virt): Likewise.
33735
33736 2015-03-18  Tom de Vries  <tom@codesourcery.com>
33737
33738         * tree-parloops.c (parallelize_loops): Make static.
33739         * tree-parloops.h (parallelize_loops): Remove extern declaration.
33740
33741 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
33742
33743         PR middle-end/64491
33744         Revert:
33745         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
33746
33747         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33748         condition would be removed due to undefined behaviour.
33749
33750 2015-03-18  Martin Liska  <mliska@suse.cz>
33751
33752         PR ipa/65432
33753         * cgraph.c (cgraph_node::get_create): Remove unnecessary
33754         xstrdup_for_dump wrapper.
33755         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33756         sem_item::name.
33757         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33758         with xstrdup_for_dump.
33759         (sem_variable::equals): Likewise.
33760         (sem_item_optimizer::read_section): Use symtab_node::name instead of
33761         sem_item::name.
33762         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33763         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33764         symtab_node::asm_name with xstrdup_for_dump.
33765         (congruence_class::dump): Use symtab_node::name instead of
33766         sem_item::name.
33767         * ipa-icf.h (symtab_node::name): Remove.
33768         (symtab_node::asm_name): Likewise.
33769
33770 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33771
33772         PR tree-optimization/65450
33773         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33774         function.
33775         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33776         it instead of duplicate_ssa_name_ptr_info.
33777
33778         PR target/65222
33779         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33780
33781 2015-03-18  Richard Biener  <rguenther@suse.de>
33782
33783         * tree-data-ref.h (struct access_matrix): Remove.
33784         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33785         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33786         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33787         (am_vector_index_for_loop): Likewise.
33788         (struct data_reference): Remove access_matrix member.
33789         (DR_ACCESS_MATRIX): Remove.
33790         (lambda_vector_new): Add comment.
33791         (lambda_matrix_new): Use XOBNEWVEC.
33792
33793 2015-03-18  Richard Biener  <rguenther@suse.de>
33794
33795         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33796         (pass_ch::execute): Cleanup the CFG only if we did sth.
33797         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33798
33799 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33800
33801         * expmed.c (synth_mult): Use std::swap instead of manually
33802         swapping algorithms.
33803
33804 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33805
33806         PR target/65078
33807         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33808
33809 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
33810
33811         PR target/65296
33812         * config/avr/avr.opt (-nodevicelib): New option.
33813         * doc/invoke.texi (AVR Options): Document it.
33814         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33815         libgcc.a, libc.a, libm.a.
33816         * config/avr/specs.h: Same.
33817         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33818         which don't (directly) depend on the device.  Print more help.
33819         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33820         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33821         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33822         case of an error.
33823         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33824         for specs file name.
33825         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33826         * config/avr/avr-mcus.def: Adjust initializers and comments.
33827
33828 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
33829
33830         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33831         DECL_ONE_ONLY to check if decl is one only.
33832         * ipa-split.c (consider_split): Limit splitt of one only functions.
33833
33834 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33835
33836         PR tree-optimization/65427
33837         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33838         functions.
33839         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33840
33841 2015-03-16  Marek Polacek  <polacek@redhat.com>
33842
33843         * cgraph.h (add_new_static_var): Remove declaration.
33844         * varpool.c (add_new_static_var): Remove function.
33845
33846 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33847
33848         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33849         instead of vec<tree> * with vec_alloc and release for args.
33850         Adjust all users.
33851
33852         PR middle-end/65431
33853         * omp-low.c (delete_omp_context): Only splay_tree_delete
33854         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33855         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
33856
33857 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33858
33859         PR sanitizer/64820
33860         * cfgexpand.c (align_base): New function.
33861         (alloc_stack_frame_space): Call it.
33862         (expand_stack_vars): Align prev_frame to be sure
33863         data->asan_vec elements aligned properly.
33864
33865 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
33866
33867         PR middle-end/65409
33868         * expr.c (store_field): Do not do a direct block copy if the source is
33869         a PARALLEL with BLKmode.
33870
33871 2015-03-16  Tom de Vries  <tom@codesourcery.com>
33872
33873         PR middle-end/65414
33874         Revert:
33875         2015-03-12  Tom de Vries  <tom@codesourcery.com>
33876
33877         PR rtl-optimization/64895
33878         * lra-lives.c (check_pseudos_live_through_calls): Use
33879         actual_call_used_reg_set instead of call_used_reg_set, if available.
33880
33881 2015-03-16  Alan Modra  <amodra@gmail.com>
33882
33883         PR target/63150
33884         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33885         Modify Z->r bswapdi splitter to use dest in place of scratch.
33886         In r->Z and Z->r bswapdi splitter rename word_high, word_low
33887         to word1, word2 and rearrange logic to suit.
33888         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33889         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
33890         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33891         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
33892         early clobber.
33893
33894 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
33895
33896         PR tree-optimization/65369
33897         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33898         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33899         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33900
33901         PR tree-optimization/65418
33902         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33903         are casts in the first PLUS_EXPR operand, ensure tbias and
33904         *totallowp are in the inner type.
33905
33906         PR rtl-optimization/65401
33907         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33908         argument.  If true, adjust_address_nv of x with big-endian
33909         correction for the mode widening to GET_MODE (y).
33910         (make_field_assignment): Don't do MEM mode widening here.
33911         Use MEM_P instead of GET_CODE == MEM.
33912
33913 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
33914
33915         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33916         the external decls.
33917
33918 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33919
33920         PR target/64600
33921         * config/arm/arm.c (arm_gen_constant, AND case): Use
33922         ARM_SIGN_EXTEND when constructing AND mask.
33923
33924 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33925
33926         * graph.c (print_graph_cfg): Make function names visible and append
33927         parenthesis to it.  Also make groups of basic blocks belonging to the
33928         same function visible.
33929
33930 2015-03-12  Richard Biener  <rguenther@suse.de>
33931
33932         PR middle-end/44563
33933         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33934         to avoid quadratic behavior with inline expansion splitting blocks.
33935         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33936         with the successor if the predecessor will be merged with it.
33937         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33938         entry block with its successor.
33939
33940 2015-03-13  Richard Biener  <rguenther@suse.de>
33941
33942         PR middle-end/44563
33943         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33944         (cleanup_tree_cfg_1): Do not call it.
33945         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33946         (fixup_noreturn_call): Mark the stmt as control altering.
33947         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33948         here.
33949         (pass_data_fixup_cfg): Produce a dump file.
33950         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33951         (need_noreturn_fixup): New global.
33952         (pass_dominator::execute): Fixup queued noreturn calls.
33953         (optimize_stmt): Queue calls that became noreturn for fixup.
33954         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33955         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33956         (el_to_fixup): New global.
33957         (eliminate_dom_walker::before_dom_childre): Queue calls that
33958         became noreturn for fixup.
33959         (eliminate): Fixup queued noreturn calls.
33960         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33961         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33962         (substitute_and_fold_dom_walker::before_dom_children): Queue
33963         alls that became noreturn for fixup.
33964         (substitute_and_fold): Fixup queued noreturn calls.
33965
33966 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
33967
33968         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33969         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33970         are building; for methods check ODR type of class they belong to if
33971         they may lead to a polymorphic call.
33972         (sem_function::compare_polymorphic_p): Be bit smarter about testing
33973         when function may lead to a polymorphic call.
33974         (sem_function::compare_type_list): Remove.
33975         (sem_variable::equals): Update use of compatible_types_p.
33976         (sem_variable::parse_tree_refs): Remove.
33977         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33978         cdtor.
33979         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33980         matching here.
33981         (func_checker::compatible_polymorphic_types_p): Break out from ...
33982         (unc_checker::compatible_types_p): ... here.
33983         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33984         Declare.
33985         (unc_checker::compatible_types_p): Update.
33986         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33987         Remove.
33988
33989 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33990
33991         PR rtl-optimization/65235
33992         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33993         When first element of vec_concat is const_int, calculate its size
33994         using second element.
33995
33996 2015-03-12  Richard Biener  <rguenther@suse.de>
33997
33998         PR middle-end/65270
33999         * fold-const.c (operand_equal_p): Fix ordering of resetting
34000         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34001
34002 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34003
34004         * config/s390/s390.c (s390_reorg): Move code to output nops after label
34005         to s390_reorg ().
34006         (s390_asm_output_function_label): Likewise.
34007         * config/s390/s390.c (s390_asm_output_function_label):
34008         Fix function label alignment with -mhtopatch.
34009         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34010         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34011         ("nop_2_byte"): New define_insn.
34012         ("nop_4_byte"): Likewise.
34013         ("nop_6_byte"): Likewise.
34014         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34015         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34016
34017 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34018
34019         PR target/65103
34020         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34021         register.
34022
34023 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
34024
34025         PR target/65044
34026         * toplev.c (process_options): Restrict Pointer Bounds Checker
34027         usage with Address Sanitizer.
34028
34029 2015-03-12  Richard Biener  <rguenther@suse.de>
34030
34031         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34032         to split on.
34033         * omp-low.c (expand_omp_taskreg): Split block before removing
34034         the stmt.
34035         (expand_omp_target): Likewise.
34036         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34037         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34038         stmt to split_block.
34039
34040 2015-03-12  Tom de Vries  <tom@codesourcery.com>
34041
34042         PR rtl-optimization/64895
34043         * lra-lives.c (check_pseudos_live_through_calls): Use
34044         actual_call_used_reg_set instead of call_used_reg_set, if available.
34045
34046 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34047
34048         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34049         (cgraph_node::remove): Likewise.
34050         (cgraph_node::get_untransformed_body): Likewise.
34051         * varpool.c (varpool_node::remove): Likewise.
34052         (varpool_node::get_constructor): Add sanity check.
34053
34054 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
34055
34056         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34057         old GCC versions.
34058         (-fabi-compat-version): Likewise.
34059         (-ffriend-injection): Likewise.
34060         (-Wdeclaration-after-statement): Likewise.
34061         (-fomit-frame-pointer): Likewise.
34062         (-ftree-coalesce-inlined-vars): Likewise.
34063         (-fvisibility=): Likewise.
34064         * doc/extend.texi (Typeof): Likewise.
34065         (Zero Length): Likewise.
34066         (Escaped Newlines): Likewise.
34067         (Compound Literals): Likewise.
34068         (Function Attributes): Likewise.
34069         (Label Attributes): Likewise.
34070         (Type Attributes): Likewise.
34071         (Function Names): Likewise.
34072         (Other Builtins): Likewise.
34073         (Function Specific Option Pragmas): Likewise.
34074         (C++ Interface): Likewise.
34075
34076 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
34077
34078         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34079
34080 2015-03-11  Marek Polacek  <polacek@redhat.com>
34081
34082         PR tree-optimization/65388
34083         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34084
34085 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34086
34087         PR target/65296
34088         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34089         * configure: Regenerate.
34090         * config.in: Regenerate.
34091         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34092         [-mn-flash]: Document it.
34093         [__AVR_ARCH__]: Document avrtiny.
34094
34095         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34096         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34097         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34098
34099 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34100
34101         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34102
34103 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34104
34105         PR target/65242
34106         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34107         allow reloads of PLUS in floating point/VSX registers.
34108
34109 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
34110
34111         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34112         crypto_sha256_fast.
34113         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34114
34115 2015-03-11  Richard Biener  <rguenther@suse.de>
34116
34117         PR tree-optimization/65310
34118         * tree-sra.c (build_ref_for_offset): Also preserve larger
34119         alignment.
34120
34121 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
34122
34123         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34124
34125 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34126
34127         PR target/65368
34128         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34129         new define_expand.
34130         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34131
34132 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34133
34134         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34135         (sem_function::equals_wpa): ... here.
34136
34137 2015-03-10  Marek Polacek  <polacek@redhat.com>
34138             Jakub Jelinek  <jakub@redhat.com>
34139
34140         PR sanitizer/65367
34141         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34142         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
34143         separately.
34144
34145 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34146
34147         PR target/65286
34148         * config/rs6000/t-linux: For powerpc64* target set
34149         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34150
34151 2015-03-10  Richard Biener  <rguenther@suse.de>
34152
34153         PR middle-end/44563
34154         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34155         for redirect_all_calls.
34156
34157 2015-03-10  Marek Polacek  <polacek@redhat.com>
34158
34159         * gdbinit.in (pcfun): Define and document.
34160
34161 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
34162
34163         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34164         of libgomp-plugin.h.
34165         (find_target_compiler): Support a case when the path to gcc is
34166         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34167         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34168         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34169         libgomp-plugin.h.
34170         (main): Use GCC_INSTALL_NAME as target_driver_name.
34171         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34172         define.
34173         (mkoffload.o): Remove obsolete include path and defines.
34174         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34175
34176 2015-03-10  Richard Biener  <rguenther@suse.de>
34177
34178         PR middle-end/63155
34179         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34180         * tree-ssa-coalesce.c: Include timevar.h.
34181         (attempt_coalesce): Handle graph being NULL.
34182         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34183         Split out abnormal coalescing to ...
34184         (perform_abnormal_coalescing): ... this function.
34185         (coalesce_ssa_name): Perform abnormal coalescing without computing
34186         live/conflict.
34187         (verify_ssa_coalescing_worker): New function.
34188         (verify_ssa_coalescing): Likewise.
34189
34190 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34191
34192         PR target/65296
34193         * config.gcc (extra_options) [avr]: Remove.
34194         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34195         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34196         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34197
34198         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34199         (-mmcu=): Add Var and MissingArgError properties.
34200         (-march=): Remove.
34201         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34202         * config/avr/t-multilib: Regenerate.
34203         * config/avr/specs.h: New file.
34204         * config/avr/driver-avr.c: New file.
34205         * config/avr/genopt.sh: Remove file.
34206         * config/avr/avr-tables.opt: Remove file.
34207         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34208         * config/avr/avr-c.c: Same.
34209         * avr-arch.h: Same.
34210         (avr_current_device): Remove proto.
34211         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34212         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34213         (EXTRA_SPEC_FUNCTIONS): Define.
34214         (avr_devicespecs_file): New specs function proto.
34215         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34216         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34217         (avr_current_device): Remove definition and usage.
34218         (avr_set_core_architecture): New static function.
34219         (avr_option_override): Use it.
34220         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34221         (mcu_name): New static array.
34222         (comparator, avr_archs_str, avr_mcus_str): New static functions.
34223         (avr_inform_devices, avr_inform_core_architectures): New functions.
34224         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34225         (avrlibc.h) [WITH_AVRLIBC]: Include.
34226         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34227         (print_mcu): Rewrite from scratch.
34228         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34229         Forward to avr-specific specs defined in device-specs file.
34230         * config/avr/t-avr (driver-avr.o): New rule.
34231         (avr-devices.o): Depend on avr-arch.h.
34232         (avr-mcus): No more depend on avr-tables.opt.
34233         (avr-tables.opt): Remove rule.
34234         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34235
34236 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34237
34238         * c-family/c.opt (fchkp-use-wrappers): New.
34239         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34240         (chkp_wrap_function): New.
34241         (chkp_build_instrumented_fndecl): Support wrapped
34242         functions.
34243         * doc/invoke.texi (-fcheck-pointer-bounds): New.
34244         (-fchkp-check-incomplete-type): New.
34245         (-fchkp-first-field-has-own-bounds): New.
34246         (-fchkp-narrow-bounds): New.
34247         (-fchkp-narrow-to-innermost-array): New.
34248         (-fchkp-optimize): New.
34249         (-fchkp-use-fast-string-functions): New.
34250         (-fchkp-use-nochk-string-functions): New.
34251         (-fchkp-use-static-bounds): New.
34252         (-fchkp-use-static-const-bounds): New.
34253         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34254         (-fchkp-check-read): New.
34255         (-fchkp-check-write): New.
34256         (-fchkp-store-bounds): New.
34257         (-fchkp-instrument-calls): New.
34258         (-fchkp-instrument-marked-only): New.
34259         (-fchkp-use-wrappers): New.
34260         (-static-libmpx): New.
34261         (-static-libmpxwrappers): New.
34262
34263 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34264
34265         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34266         (CHKP_SPEC): Add wrappers library.
34267         * c-family/c.opt (static-libmpxwrappers): New.
34268
34269 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34270
34271         * config/i386/linux-common.h (LIBMPX_LIBS): New.
34272         (LIBMPX_SPEC): New.
34273         (CHKP_SPEC): New.
34274         * gcc.c (CHKP_SPEC): New.
34275         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34276         * c-family/c.opt (static-libmpx): New.
34277
34278 2015-03-10  Richard Biener  <rguenther@suse.de>
34279
34280         PR middle-end/44563
34281         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34282         for compare_type.
34283         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34284         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34285         (cgraph_add_edge_to_call_site_hash): Likewise.
34286         (cgraph_node::get_edge): Likewise.
34287         (cgraph_edge::set_call_stmt): Likewise.
34288         (cgraph_edge::remove_caller): Likewise.
34289
34290 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
34291
34292         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34293         (callee_saved_gpr_regs_size): ... this.
34294         (callee_saved_regs_first_regno): Rename to ...
34295         (callee_saved_first_gpr_regno): ... this.
34296         (callee_saved_regs_last_regno) Rename to ...
34297         (callee_saved_last_gpr_regno): ... this.
34298         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34299         variables.
34300         (nds32_initial_elimination_offset): Likewise.
34301         (nds32_expand_prologue): Likewise.
34302         (nds32_expand_epilogue): Likewise.
34303         (nds32_expand_prologue_v3push): Likewise.
34304         (nds32_expand_epilogue_v3pop): Likewise.
34305         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34306         Adjust renamed variables.
34307         (nds32_output_stack_pop): Likewise.
34308
34309 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34310
34311         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34312         code in comment.
34313
34314 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34315
34316         PR rtl-optimization/65321
34317         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34318         than shift mode.
34319         * var-tracking.c (use_narrower_mode): Likewise.
34320
34321 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34322
34323         PR tree-optimization/65355
34324         * varasm.c (notice_global_symbol): Do not produce RTL.
34325         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34326         anchor.
34327         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34328         check for section anchors.
34329
34330 2015-03-10  Alan Modra  <amodra@gmail.com>
34331
34332         PR target/65286
34333         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34334         to be single-arch by default.  Set cpu_is_64bit for powerpc64
34335         given --with-cpu=native.
34336         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34337         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34338         and powerpc64le.
34339         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34340         rs6000_isa_flags rather than TARGET_64BIT.
34341
34342 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
34343             Kaz Kojima  <kkojima@gcc.gnu.org>
34344
34345         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34346
34347 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
34348
34349         PR lto/65361
34350         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34351         on a TREE_BINFO, instead use BINFO_TYPE.
34352
34353 2015-03-09  Richard Biener  <rguenther@suse.de>
34354
34355         PR middle-end/65270
34356         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34357         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34358         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
34359         of that.  When comparing dereferences compare alignment.
34360         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34361
34362 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34363
34364         * ipa-inline-analysis.c (check_callers): Check
34365         node->can_remove_if_no_direct_calls_and_refs_p.
34366         (growth_likely_positive): Reorganize to call
34367         can_remove_if_no_direct_calls_p later.
34368         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34369         will_be_removed_from_program_if_no_direct_calls_p): Add
34370         will_inline parameter.
34371         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34372         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34373         Handle inliner case correctly.
34374
34375 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34376
34377         PR tree-optimization/63743
34378         * cfgexpand.c (reorder_operands): Also reorder if only second operand
34379         had its definition forwarded by TER.
34380
34381 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34382
34383         PR lto/65316
34384         * ipa-utils.h (types_odr_comparable): Add strict argument.
34385         * ipa-devirt.c: Fix whitespace;
34386         (odr_hasher): Remove.
34387         (odr_name_hasher, odr_vtable_hasher): New hashers.
34388         (can_be_name_hashed_p): New predicate.
34389         (hash_type_name): remove.
34390         (hash_odr_name): New.
34391         (odr_name_hasher::hash): new.
34392         (can_be_vtable_hashed_p): New.
34393         (hash_odr_vtable): New.
34394         (odr_vtable_hasher::hash): New.
34395         (types_same_for_odr): Add strict parameter.
34396         (types_odr_comparable): Likewise.
34397         (odr_name_hasher::equal): New.
34398         (odr_vtable_hasher::equal): New.
34399         (odr_name_hasher::remove): New.
34400         (odr_hash_type): Change to hash_table<odr_name_hasher>.
34401         (odr_vtable_hash_type): New.
34402         (odr_vtable_hash): New.
34403         (odr_subtypes_equivalent_p): Do strict comparsion.
34404         (add_type_duplicate): Merge type names; cleanup; avoid type
34405         duplicates.
34406         (register_odr_type): Initialize vtable hash.
34407         (build_type_inheritance_graph): Likewise
34408         (get_odr_type): Reorg to use two hashes.
34409         (dump_possible_polymorphic_call_targets): Move sanity check after debug
34410         output.
34411         (ipa_devirt): Dump type_inheritance_graph.
34412         (types_same_for_odr): Add strict mode.
34413
34414 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34415
34416         PR ipa/65334
34417         * cgraph.h (symtab_node): Add definition_alignment,
34418         can_increase_alignment_p and increase_alignment.
34419         * symtab.c (symtab_node::can_increase_alignment_p,
34420         increase_alignment_1, symtab_node::increase_alignment,
34421         symtab_node::definition_alignment): New.
34422         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34423         can_increase_alignment_p.
34424         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34425         * tree-vect-stmts.c (ensure_base_align): Likewise.
34426         * varasm.c (function_section_1): Use definition_alignment.
34427         (assemble_start_function): Likewise.
34428         (emit_local): likewise.
34429         (build_constant_desc): Likewsie.
34430         (output_constant_def_contents): Likewise.
34431         (place_block_symbol): Likewise.
34432         (output_object_block): Likewise.
34433
34434 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34435
34436         PR ipa/65316
34437         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34438         when outputting debug.
34439
34440 2015-03-07  Marek Polacek  <polacek@redhat.com>
34441             Martin Uecker  <uecker@eecs.berkeley.edu>
34442
34443         PR sanitizer/65280
34444         * doc/invoke.texi: Update description of -fsanitize=bounds.
34445
34446 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
34447
34448         * tree-ssa-phiopt.c (neg_replacement): Remove.
34449         (tree_ssa_phiopt_worker): Remove negate optimization.
34450
34451 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34452
34453         PR ipa/65302
34454         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34455
34456 2015-03-06  Richard Biener  <rguenther@suse.de>
34457
34458         PR middle-end/64928
34459         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34460         and liveout_obstack members.
34461         (calculate_live_on_exit): Remove.
34462         (calculate_live_ranges): Change declaration.
34463         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34464         (new_tree_live_info): Adjust.
34465         (calculate_live_ranges): Delete livein when not wanted.
34466         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34467         Deal with partly deleted live info.
34468         (loe_visit_block): Remove temporary bitmap by using
34469         bitmap_ior_and_compl_into.
34470         (live_worklist): Adjust accordingly.
34471         (calculate_live_on_exit): Make static.
34472         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34473         we do not need livein.
34474
34475 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
34476
34477         * real.c (real_from_string): Fix typo in assertion.
34478
34479 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
34480
34481         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34482         the patch.
34483
34484 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34485
34486         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34487
34488 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
34489
34490         PR target/64342
34491         * lra-assigns.c (find_hard_regno_for): Rename to
34492         find_hard_regno_for_1.  Add a new parameter.
34493         (find_hard_regno_for): New function using find_hard_regno_for_1.
34494
34495 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34496
34497         PR rtl-optimization/65067
34498         * expmed.c (store_bit_field, extract_bit_field): Reworked the
34499         strict volatile bitfield handling.
34500
34501 2015-03-05  Martin Liska  <mliska@suse.cz>
34502
34503         PR ipa/65318
34504         * ipa-icf.c (sem_variable::equals): Compare variables types.
34505
34506 2015-03-05  Richard Henderson  <rth@redhat.com>
34507
34508         PR target/65121
34509         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34510         correctly check weak symbol binding.
34511
34512 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
34513
34514         PR middle-end/65315
34515         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34516         needed alignment.
34517
34518 2015-03-05  Martin Liska  <mliska@suse.cz>
34519
34520         * ipa-inline.c (inline_small_functions): Set default value to
34521         prevent warning during bootstrap.
34522         * tree.h: Add pragma guard that ignores false positives during
34523         bootstrap.
34524
34525 2015-03-05  Richard Biener  <rguenther@suse.de>
34526
34527         PR tree-optimization/65310
34528         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34529         Properly preserve alignment of the base of the access.
34530
34531 2015-03-05  Richard Biener  <rguenther@suse.de>
34532
34533         PR ipa/65270
34534         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34535         Compare dependence info.
34536
34537 2015-03-05  Richard Biener  <rguenther@suse.de>
34538
34539         PR middle-end/65233
34540         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34541         tree-into-ssa.h.
34542         (walk_ssa_copies): Revert last chage.  Instead do not walk
34543         SSA names registered for SSA update.
34544
34545 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34546
34547         PR ipa/65270
34548         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34549         vtable references for their containing type.
34550         (sem_function::equals_wpa): Compare TYPE_RESTRICT
34551         and type attributes.
34552
34553 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
34554
34555         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34556         before negating it.
34557         * stor-layout.c (finalize_record_size): Revert latest change.
34558
34559 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
34560
34561         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34562
34563 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34564
34565         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34566         for correct comdat handling.
34567         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34568         Likewise.
34569         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34570         (used_from_object_file_p_worker): Remove.
34571         (cgraph_node::only_called_directly_or_alised): Add
34572         used_from_object_file_p.
34573         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34574         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34575         can_remove_if_no_direct_calls_and_refs_p.
34576
34577 2015-03-04  Nick Clifton  <nickc@redhat.com>
34578
34579         * config/rl78/rl78.h (enum reg_class): Remove real registers from
34580         General register class.
34581         * config/rl78/rl78-real.md: Replace general register constraints
34582         with real+virtual register constraints.
34583
34584 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34585
34586         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34587         from checking for -mhtm option.
34588
34589 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34590
34591         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34592         (struct ipa_sra_check_caller_data): Add has_thunk field.
34593         (ipa_sra_check_caller): Check for thunk.
34594         (ipa_sra_preliminary_function_checks): Give up on function with
34595         thunks.
34596         (ipa_early_sra): Use call_for_symbol_and_aliases.
34597
34598 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
34599
34600         PR target/65249
34601         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34602         called for __stack_chk_guard symbol.
34603
34604 2015-03-03  DJ Delorie  <dj@redhat.com>
34605
34606         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34607         inc/dec.
34608         (*addhi3_real): Likewise.
34609         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34610         pattern to match incrementing memory.
34611         * config/rl78/predicates.md (rl78_1_2_operand): New.
34612         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34613         it's the same and only mem.
34614         (rl78_alloc_physical_registers_op2): If there's effectively only
34615         one MEM, transcode it into HL.
34616         (rl78_far_p): Reject addresses that aren't legitimate.
34617
34618 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34619
34620         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34621         negating it.
34622
34623         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34624
34625 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34626
34627         Implement call0 ABI for xtensa
34628         * config/xtensa/constraints.md ("a" constraint): Include stack
34629         pointer in case of call0 ABI.
34630         ("q" constraint): Make empty in case of call0 ABI.
34631         ("D" constraint): Include stack pointer in case of call0 ABI.
34632         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34633         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34634         prototypes.
34635         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34636         variable.
34637         (xtensa_regno_to_class): Make it a local variable in the
34638         function xtensa_regno_to_class.
34639         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34640         macro, function prototype and implementation.
34641         (reg_nonleaf_alloc_order): Make it a local variable in the
34642         function order_regs_for_local_alloc.
34643         (xtensa_conditional_register_usage): New function.
34644         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34645         (xtensa_valid_move): Allow direct moves to stack pointer
34646         register in call0 ABI.
34647         (xtensa_setup_frame_addresses): Only spill register windows in
34648         windowed ABI.
34649         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34650         call0 ABI respectively.
34651         (xtensa_function_arg_1): Only mark a7 register for copying in
34652         windowed ABI.
34653         (xtensa_call_save_reg): New function.
34654         (compute_frame_size): Add space for callee saved register
34655         storage to the frame size in call0 ABI.
34656         (xtensa_expand_prologue): Generate code to set up stack frame
34657         and save callee-saved registers in call0 ABI.
34658         (xtensa_expand_epilogue): New function.
34659         (xtensa_set_return_address): New function.
34660         (xtensa_return_addr): Calculate return address in call0 ABI.
34661         (xtensa_builtin_saveregs): Only mark a7 register for copying and
34662         emit copying code in windowed ABI.
34663         (order_regs_for_local_alloc): Add preferred register allocation
34664         order for non-leaf function in call0 ABI.
34665         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34666         (xtensa_asm_trampoline_template): Add trampoline generation for
34667         call0 ABI.
34668         (xtensa_trampoline_init): Add trampoline initialization for
34669         call0 ABI.
34670         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34671         functions.
34672         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34673         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34674         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34675         ABI call-used registers.
34676         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34677         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34678         call0 ABI.
34679         (REG_CLASS_CONTENTS): Include all registers into the preferred
34680         reload registers set, adjust the set in the
34681         xtensa_conditional_register_usage.
34682         (xtensa_regno_to_class): Drop variable declaration.
34683         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34684         function.
34685         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34686         respectively.
34687         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34688         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34689         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34690         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34691         location in call0 ABI.
34692         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34693         stack adjustment size when handling exception.
34694         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34695         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34696         definitions.
34697         ("return" pattern): Generate ret.n/ret in call0 ABI.
34698         ("epilogue" pattern): Expand epilogue.
34699         ("nonlocal_goto" pattern): Use default in call0 ABI.
34700         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34701         emit eh_set_a0_* depending on ABI.
34702         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34703         ("eh_set_a0_call0", "blockage"): New patterns.
34704
34705 2015-03-03  Martin Liska  <mliska@suse.cz>
34706
34707         PR ipa/65287
34708         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34709
34710 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
34711
34712         PR 65138/target
34713         * config/rs6000/rs6000-tables.opt: Regenerate table.
34714
34715 2015-03-03  Renlin Li  <renlin.li@arm.com>
34716
34717         * doc/md.texi (@item ^): Change ? into ^.
34718
34719 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
34720
34721         * doc/tm.texi: Regenerated.
34722
34723 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34724
34725         * builtins.c (expand_builtin_return_addr): Add
34726         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34727         surrounding #ifdef.
34728         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34729         definition to 1.
34730         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34731         Likewise.
34732         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34733         undefined.
34734         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34735         paragraph.
34736
34737 2015-03-03  Martin Jambor  <mjambor@suse.cz>
34738             Eric Botcazou  <ebotcazou@adacore.com>
34739
34740         * tree-sra.c (ipa_sra_check_caller_data): New type.
34741         (has_caller_p): Removed.
34742         (ipa_sra_check_caller): New function.
34743         (ipa_sra_preliminary_function_checks): Use it.
34744
34745 2015-03-03  Martin Liska  <mliska@suse.cz>
34746
34747         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34748         instead of if branch.
34749
34750 2015-03-03  Martin Liska  <mliska@suse.cz>
34751
34752         PR ipa/65282
34753         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34754
34755 2015-03-23  Jeff Law  <law@redhat.com>
34756
34757         PR tree-optimization/65241
34758         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34759         hash table if INSERT is true.
34760
34761 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34762
34763         PR target/65296
34764         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34765
34766 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34767
34768         PR target/64331
34769         * config/avr/avr.c (context.h, tree-pass.h): Include them.
34770         (avr_pass_data_recompute_notes): New static variable.
34771         (avr_pass_recompute_notes): New class.
34772         (avr_register_passes): New static function.
34773         (avr_option_override): Call it.
34774
34775 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34776
34777         Fix various problems with specs file generation.
34778
34779         PR target/65296
34780         * config.gcc (extra_gcc_objs) [avr]: Remove.
34781         * config/avr/driver-avr.c: Remove file.
34782         * config/avr/t-avr (driver-avr.o): Remove rule.
34783         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34784         INCLUDES to build.  Depend on TM_H.
34785         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
34786         build warnings.  Fix non-matching types and non-existing %-codes.
34787         (tm.h): Include.
34788         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34789         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34790         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34791         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34792         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34793         (LIBGCC_SPEC): Remove definitions.
34794
34795 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34796
34797         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34798         to create a register in testing mode.
34799
34800 2015-03-03  Martin Liska  <mliska@suse.cz>
34801             Jan Hubicka  <hubicka@ucw.cz>
34802
34803         PR ipa/65263
34804         * cgraph.c (cgraph_node::has_thunk_p): New function.
34805         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34806         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34807         (sem_function::merge): Assert is changed.
34808
34809 2015-03-03  Martin Liska  <mliska@suse.cz>
34810             Martin Jambor  <mjambor@suse.cz>
34811
34812         PR ipa/65087
34813         * ipa-icf.c (sem_item_optimizer::execute): Change function
34814         return value to boolean.
34815         (sem_item_optimizer::merge_classes): Likewise.
34816         (ipa_icf_driver): Return TODO_remove_functions in case there's
34817         a merge operation processed.
34818         * ipa-icf.h: Change function return value to boolean.
34819
34820 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34821
34822         PR 65138/target
34823         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34824         processor type for 64-bit little endian PowerPC.
34825
34826         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34827         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
34828         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
34829         printing built-in mask so it does not pass NULL pointers.
34830
34831         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34832         -mcpu=powerpc64le.
34833
34834 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
34835
34836         PR target/58158
34837         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34838         !ISA_HAS_FP_CONDMOVE.
34839
34840 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
34841
34842         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34843         reload_completed.
34844
34845 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
34846
34847         * doc/invoke.texi (Options for Code Generation Conventions):
34848         Fix URL of DSO paper.
34849
34850 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34851
34852         PR ipa/65130
34853         * ipa-inline.c (check_callers): Looks for recursion.
34854         (inline_to_all_callers): Give up on uninlinable or recursive edges.
34855         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34856         summary of inline clones.
34857         (do_estimate_growth_1): Fix recursion check.
34858
34859 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34860
34861         PR ipa/64988
34862         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34863         comdat groups.
34864
34865 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34866             Aldy Hernandez  <aldyh@redhat.com>
34867
34868         PR lto/65276
34869         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34870         when checking TYPE_BINFO.
34871
34872 2015-03-02  Richard Biener  <rguenther@suse.de>
34873
34874         PR ipa/65270
34875         * ipa-icf-gimple.c: Include builtins.h.
34876         (func_checker::compare_memory_operand): Compare base alignment.
34877
34878 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34879
34880         PR target/65184
34881         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34882         passed by reference.
34883
34884 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34885
34886         PR target/65183
34887         * tree-chkp.c (chkp_check_lower): Don't check against
34888         zero bounds for already instrumented functions.
34889         (chkp_check_upper): Likewise.
34890         (chkp_fini): Clean pass local data to avoid wrong reusage.
34891
34892 2015-02-28  Martin Liska  <mliska@suse.cz>
34893             Jan Hubicka  <hubicka@ucw.cz>
34894
34895         * ipa-icf.c (sem_variable::equals): Improve debug output;
34896         get variable constructor.
34897         (sem_variable::parse): Do not filter out too early; give up on
34898         volatile and register vars.
34899         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34900         variables.
34901         * ipa-icf.h (sem_variable::init): Do not set ctor.
34902         (sem_variable::ctor): Remove.
34903
34904 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
34905
34906         PR middle-end/65233
34907         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34908
34909 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34910
34911         * ipa-icf.c: Include stor-layout.h
34912         (sem_function::compare_cgraph_references): Rename to ...
34913         (sem_item::compare_cgraph_references): ... this one.
34914         (sem_variable::equals_wpa): New function
34915         (sem_variable::equals): Do not check stuff already verified by
34916         equals_wpa.
34917         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34918         * ipa-icf.h (sem_item): Add compare_cgraph_references.
34919         (sem_function): Remove compare_cgraph_references.
34920         (sem_variable): Turns equals_wpa into non-inline.
34921
34922 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34923
34924         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34925         (sem_item::add_expr): New function.
34926         (sem_function::hash_stmt): Handle operands of most statements.
34927         (sem_variable::get_hash): Hash the actual constructor.
34928         * ipa-icf.h (sem_item): Add add_expr.
34929         (sem_function): Update prototype of hash_stmt
34930
34931 2015-02-28  Martin Liska  <mliska@suse.cz>
34932             Jan Hubicka  <hubicka@ucw.cz>
34933
34934         PR ipa/65245
34935         * ipa-icf-gimple.c (func_checker::compare_function_decl):
34936         Remove.
34937         (func_checker::compare_variable_decl): Skip symtab vars.
34938         (func_checker::compare_cst_or_decl): Update.
34939         * ipa-icf.c (sem_function::parse): Do not consider aliases.
34940         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34941         use correct symtab predicates.
34942         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34943         (sem_variable::parse):  Update comment.
34944         (sem_item_optimizer::build_graph): Consider ultimate aliases
34945         for references.
34946
34947 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34948
34949         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34950         of OBJ_TYPE_REF.
34951
34952 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34953
34954         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34955         (sem_variable::merge) Likewise.
34956
34957 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34958
34959         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34960         target; also match flag_ipa_devirt.
34961
34962 2015-03-01  Martin Liska  <mliska@suse.cz>
34963             Jan Hubicka  <hubicka@ucw.cz>
34964
34965         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34966         Validate variable alignment.
34967         * ipa-icf.c (sem_function::equals_private): Be more precise
34968         about non-common function attributes.
34969         (sem_variable::equals): Likewise.
34970
34971 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34972
34973         PR ipa/65237
34974         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34975         across COMDAT group boundary.
34976
34977 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34978
34979         PR ipa/65232
34980         * ipa-icf.c (clear_decl_rtl): New function.
34981         (sem_function::merge): Clear RTL before forming alias.
34982         (sem_variable::merge): Clear RTL before forming alias.
34983
34984 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34985
34986         PR ipa/65236
34987         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34988
34989 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
34990
34991         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34992         to neon_to_gp<q>.
34993
34994 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34995
34996         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34997         a typo in the description.
34998
34999 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35000
35001         PR target/64317
35002         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35003         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35004         * lra-constraints.c: Include "params.h".
35005         (EBB_PROBABILITY_CUTOFF): Use
35006         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35007         (lra_inheritance): Use '<' instead of '<=' for
35008         EBB_PROBABILITY_CUTOFF.
35009         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35010         Document change.
35011
35012 2015-02-27  Martin Liska  <mliska@suse.cz>
35013
35014         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35015         vector length condition.
35016
35017 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
35018
35019         * doc/extend.texi (x86 transactional memory intrinsics):
35020         Reorganize discussion of _xbegin.  Clarify that the return
35021         value is a bit mask.  Expand example and move to end of section.
35022
35023 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35024             Aldy Hernandez  <aldyh@redhat.com>
35025
35026         PR rtl-optimization/65220
35027         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35028
35029 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
35030
35031         PR target/65032
35032         * lra-remat.c (update_scratch_ops): New.
35033         (do_remat): Call it.
35034         * lra.c (lra_register_new_scratch_op): New. Take code from ...
35035         (remove_scratches): ... here.
35036         * lra-int.h (lra_register_new_scratch_op): New prototype.
35037
35038 2015-02-27  Marek Polacek  <polacek@redhat.com>
35039
35040         PR c/65040
35041         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35042         -Wformat-signedness anymore.
35043
35044 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35045
35046         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35047         function.
35048         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35049
35050 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35051
35052         * config/s390/s390.c (enum s390_builtin):
35053         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35054         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35055         (s390_init_builtins): Generate new builtin functions.
35056         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35057         (s390_sfpc, s390_efpc): New pattern definitions.
35058
35059 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35060
35061         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35062         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35063         (s390_builtin_decls): New array.
35064         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35065         (s390_builtin_decl): New function.
35066         (TARGET_BUILTIN_DECL): Define macro.
35067
35068 2015-02-27  Richard Biener  <rguenther@suse.de>
35069
35070         PR middle-end/63175
35071         * builtins.c (get_object_alignment_2): Make sure to re-apply
35072         the ANDed mask after recursing to its operand gets us a new
35073         misalignment bit position.
35074
35075 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
35076             Martin Liska  <mliska@suse.cz>
35077
35078         PR bootstrap/65150
35079         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35080         Use address_matters_p.
35081         (redirect_all_callers, set_addressable): New functions.
35082         (sem_function::merge): Reorganize and fix merging issues.
35083         (sem_variable::merge): Likewise.
35084         (sem_variable::compare_sections): Remove.
35085         * common.opt (fmerge-all-constants, fmerge-constants): Remove
35086         Optimization flag.
35087         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35088         redirect them.
35089         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35090         decl is used.
35091         (address_matters_1): New function.
35092         (symtab_node::address_matters_p): New function.
35093         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35094         check for merged flag.
35095         * cgraph.h (address_matters_p): Declare.
35096         (symtab_node::address_taken_from_non_vtable_p): Remove.
35097         (symtab_node::address_can_be_compared_p): New method.
35098         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35099         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35100         Remove.
35101         (comdat_can_be_unshared_p_1) Use address_matters_p.
35102         (update_vtable_references): Fix formating.
35103         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35104         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35105         * cgraphclones.c: Preserve merged and icf_merged flags.
35106
35107 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
35108
35109         * doc/extend.texi (Function Attributes): Fix spelling and typos.
35110         (Label Attributes): Likewise.
35111         (Cilk Plus Builtins): Likewise.
35112         (ARC SIMD Built-in Functions): Likewise.
35113         (ARM C Language Extensions (ACLE)): Likewise.
35114         (PowerPC Built-in Functions): Likewise.
35115         (PowerPC Hardware Transactional Memory Built-in Functions):
35116         Likewise.
35117
35118 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35119
35120         PR tree-optimization/65216
35121         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35122         new stmt and new SSA_NAME for lhs whenever the arguments have
35123         changed and weren't just swapped.  Fix comment typo.
35124
35125         PR tree-optimization/65215
35126         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35127         for PDP endian targets.
35128         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35129         Fix up formatting issues.
35130         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
35131         size is smaller than the original, adjust MEM_REF offset by the
35132         difference of sizes.  Use is_gimple_mem_ref_addr instead of
35133         is_gimple_min_invariant test to avoid adding address temporaries.
35134
35135 2015-02-26  Martin Liska  <mliska@suse.cz>
35136             Jan Hubicka  <hubicka@ucw.cz>
35137
35138         PR ipa/64693
35139         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35140         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35141         (sem_item_optimizer::process_cong_reduction): Include division by
35142         sensitive references.
35143         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35144         * ipa-ref.c (ipa_ref::address_matters_p): New function.
35145         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35146
35147 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
35148
35149         PR target/65192
35150         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35151         Remove.
35152         * config/avr/avr.c: Same.
35153         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35154         Refuse any constant address not in 0..0xbf.
35155         * config/avr/avr.md (*mov<mode>, *movsf): Remove
35156         tiny_valid_direct_memory_access_range from insn conditions.
35157         (mov<mode>): Don't special-case expansion of avrtiny addresses.
35158
35159 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
35160
35161         PR target/61142
35162         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35163         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35164         * config/sh/predicates.md (const_logical_operand): New predicate.
35165         * config/sh/sh.md: Add new peephole2 patterns.
35166
35167 2015-02-26  Marek Polacek  <polacek@redhat.com>
35168
35169         PR ipa/65008
35170         * ipa-inline.c (early_inliner): Recompute inline parameters.
35171
35172 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35173
35174         PR target/65171
35175         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35176         instructions with TImode operands are included in the analysis.
35177
35178 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35179
35180         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35181         of an EDGE_FSM_THREAD.
35182
35183 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35184
35185         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35186
35187 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
35188
35189         PR debug/46102
35190         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35191
35192 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35193
35194         PR tree-optimization/65048
35195         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35196         (thread_through_all_blocks): Call valid_jump_thread_path.
35197         Remove invalid FSM jump-thread paths.
35198
35199 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35200
35201         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35202         (ipa_write_optimization_summaries): Likewise.
35203         * tree-streamer.h: Include data-streamer.h.
35204         (streamer_mode_table): Declare extern variable.
35205         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35206         * lto-streamer-out.c (lto_output_init_mode_table,
35207         lto_write_mode_table): New functions.
35208         (produce_asm_for_decls): Call lto_write_mode_table when streaming
35209         offloading LTO.
35210         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35211         (lto_create_simple_input_block): Add mode_table argument to the
35212         lto_input_block constructors.
35213         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35214         Likewise.
35215         * data-streamer-in.c (string_for_index): Likewise.
35216         * ipa-inline-analysis.c (inline_read_section): Likewise.
35217         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35218         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35219         * lto-streamer-in.c (lto_read_body_or_constructor,
35220         lto_input_toplevel_asms): Likewise.
35221         (lto_input_mode_table): New function.
35222         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35223         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35224         Use bp_pack_machine_mode.
35225         * real.h (struct real_format): Add name field.
35226         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35227         (class lto_input_block): Add mode_table member.
35228         (lto_input_block::lto_input_block): Add mode_table_ argument,
35229         initialize mode_table.
35230         (struct lto_file_decl_data): Add mode_table field.
35231         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35232         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35233         unpack_ts_decl_common_value_fields,
35234         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35235         * tree-streamer.c (streamer_mode_table): New variable.
35236         * real.c (ieee_single_format, mips_single_format,
35237         motorola_single_format, spu_single_format, ieee_double_format,
35238         mips_double_format, motorola_double_format,
35239         ieee_extended_motorola_format, ieee_extended_intel_96_format,
35240         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35241         ibm_extended_format, mips_extended_format, ieee_quad_format,
35242         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35243         decimal_single_format, decimal_double_format, decimal_quad_format,
35244         ieee_half_format, arm_half_format, real_internal_format): Add name
35245         field.
35246         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35247
35248 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
35249
35250         PR target/65161
35251         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35252         reordering for selective scheduling.
35253
35254 2015-02-26  Terry Guo  <terry.guo@arm.com>
35255
35256         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35257         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35258         (arm_arch_no_volatile_ce): Declare new global variable.
35259         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35260         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35261         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35262         (TARGET_NO_VOLATILE_CE): New macro.
35263         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35264         volatile memory access in IT block
35265
35266 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35267
35268         PR tree-optimization/61917
35269         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35270         that reduc_def_stmt is null.
35271
35272 2015-02-25  Martin Liska  <mliska@suse.cz>
35273
35274         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35275         hard register variables.
35276
35277 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35278
35279         PR target/64212
35280         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35281         (symtab::noninterposable_alias): Likewise.
35282
35283 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35284
35285         PR target/65167
35286         * config/i386/i386.c (ix86_function_arg_regno_p): Support
35287         bounds registers.
35288         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35289
35290 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
35291
35292         PR target/64997
35293         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35294         as split condition; force split via '#' in output pattern.
35295
35296 2015-02-25  Richard Biener  <rguenther@suse.de>
35297             Kai Tietz  <ktietz@redhat.com>
35298
35299         PR tree-optimization/61917
35300         * tree-vect-loop.c (vectorizable_reduction): Allow
35301         vect_internal_def without reduction to exit graceful.
35302
35303 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35304
35305         PR target/65196
35306         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35307         only with NONDEBUG_INSN_P.
35308
35309 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35310
35311         Use variadic macros with avr-log.c.
35312
35313         * config/avr/avr-protos.h (avr_vdump): New prototype.
35314         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35315         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35316         * config/avr/avr-log.c: Adjust comments.
35317         (avr_vdump): New function.
35318         (avr_vadump): Pass caller as 2nd argument instead of format string.
35319         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35320         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35321
35322 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
35323
35324         PR lto/64374
35325         * target.def (target_option_stream_in): New target hook.
35326         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35327         targetm.target_option.post_stream_in if non-NULL.
35328         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35329         * doc/tm.texi: Updated.
35330         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35331         function.
35332         (TARGET_OPTION_POST_STREAM_IN): Redefine.
35333
35334 2015-02-24  Jeff Law  <law@redhat.com>
35335
35336         PR target/65117
35337         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35338         of operand 0 and operand 2.
35339         (zero_cost_loop_end, loop_end): Similarly.
35340
35341 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
35342
35343         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35344         CXX_MEM_STAT_INFO.
35345
35346 2015-02-24  DJ Delorie  <dj@redhat.com>
35347
35348         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35349         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35350         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35351         instead of hardcoding SImode.
35352
35353 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
35354
35355         * omp-low.c (create_omp_child_function): Tag entrypoint
35356         functions with a special attribute.
35357
35358 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35359
35360         PR target/65058
35361         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35362
35363 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
35364
35365         PR rtl-optimization/65123
35366         * lra-remat.c (operand_to_remat): Check hard regs in insn
35367         definition too.
35368
35369 2015-02-24  Nick Clifton  <nickc@redhat.com>
35370
35371         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35372         to the assembler.
35373
35374 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
35375
35376         PR libgomp/64625
35377         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35378         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35379         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35380         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35381         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35382         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35383         (BUILT_IN_GOACC_PARALLEL): Specify as
35384         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35385         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35386         * builtin-types.def
35387         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35388         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35389         Remove function types.
35390         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35391         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35392         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35393         New function types.
35394
35395 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
35396
35397         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35398
35399 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
35400
35401         PR tree-optimization/65170
35402         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35403         if val[1] < 0, clear also val[2] and return 3.
35404
35405 2015-02-24  Alan Modra  <amodra@gmail.com>
35406
35407         PR target/65172
35408         * config/rs6000/rs6000.c (get_memref_parts): Only return true
35409         when *base is a reg.  Handle nested plus addresses.  Simplify
35410         pre_modify test.
35411
35412 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
35413
35414         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35415         use natural alignment when optimizing for size.
35416
35417 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
35418
35419         PR target/65153
35420         * config/sh/sh.md (movsicc_true+3): Remove peephole.
35421         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35422         * config/sh/sh.c (replace_n_hard_rtx): Remove.
35423
35424 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
35425
35426         PR fortran/63427
35427         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35428         too big for a wide_int.  Implement missing wrapping operation.
35429
35430 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
35431
35432         PR target/65163
35433         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35434         instead of const_int 4294901760.
35435
35436 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
35437
35438         * config/avr/t-avr: Fix typo in comment.
35439
35440 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
35441
35442         * doc/rtl.texi (fma): Clarify documentation.
35443
35444 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
35445
35446         PR debug/58123
35447         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35448         over input_location.
35449
35450 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35451
35452         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35453         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35454         restrict alignments to absolute_biggest_alignment.
35455         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35456         Define.
35457         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35458         * doc/tm.texi: Regenerate.
35459         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35460
35461 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
35462
35463         PR target/64172
35464         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35465
35466 2015-02-20  Richard Biener  <rguenther@suse.de>
35467
35468         PR tree-optimization/65136
35469         * tree-ssa-propagate.c: Include cfgloop.h.
35470         (replace_phi_args_in): Avoid replacing loop latch edge PHI
35471         arguments with constants.
35472
35473 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
35474             Martin Liska  <mliska@suse.cz>
35475
35476         PR target/63892
35477         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35478         don't try to create_thunk if stdarg_p.  If
35479         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35480         redirect_callers if possible.
35481         (sem_item_optimizer::execute): Call unregister_hooks here...
35482         (ipa_icf_driver): ... instead of here.
35483
35484 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35485
35486         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35487         Mark operand 0 as earlyclobber in 2nd alternative.
35488         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35489         Write negated shift amount into QI lowpart operand 0 and use it
35490         in the shift step.
35491         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35492
35493 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35494
35495         * cgraph.h (clone_function_name_1): Declare.
35496         * cgraphclones.c (clone_function_name_1): New function.
35497         (clone_function_name): Use it.
35498         * lto-partition.c: Include "stringpool.h".
35499         (must_not_rename, maybe_rewrite_identifier)
35500         (validize_symbol_for_target): New static functions.
35501         (privatize_symbol_name): Use must_not_rename.
35502         (promote_symbol): Call validize_symbol_for_target.
35503         (lto_promote_cross_file_statics): Likewise.
35504         (lto_promote_statics_nonwpa): Likewise.
35505
35506 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
35507
35508         PR target/64452
35509         * config/avr/avr.md (pushhi_insn): New insn.
35510         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35511
35512 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35513             Jakub Jelinek  <jakub@redhat.com>
35514
35515         * tree-streamer.c (preload_common_nodes): Don't preload
35516         TI_VA_LIST* for offloading.
35517         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35518         in_lto_p.
35519
35520 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
35521
35522         * config/pa/pa.c (pa_emit_move_sequence): Always force
35523         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
35524         note on insn.
35525
35526         * config/pa/pa.c (pa_reloc_rw_mask): New function.
35527         (TARGET_ASM_RELOC_RW_MASK): Define.
35528         (pa_cannot_force_const_mem): Revert previous change.
35529
35530 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
35531             Jan Hubicka  <hubicka@ucw.cz>
35532
35533         PR ipa/65028
35534         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35535         across jump functions.
35536
35537 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
35538
35539         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35540
35541 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
35542
35543         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35544
35545 2015-02-19  Richard Henderson  <rth@redhat.com>
35546
35547         PR middle-end/65074
35548         * varasm.c (default_binds_local_p_2): Don't test node->definition;
35549         test DECL_EXTERNAL independent of symtab_node.
35550
35551 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
35552
35553         PR lto/65012
35554         * varpool.c (varpool_node::get_constructor): Return early
35555         if this->lto_file_data is NULL.
35556
35557 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35558
35559         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35560         (rank_for_schedule_debug): Update.
35561         (ready_sort): Make static.  Move sorting logic to ...
35562         (ready_sort_debug, ready_sort_real): New static functions.
35563         (schedule_block): Sort both debug insns and real insns in preparation
35564         for ready list trimming.  Improve debug output.
35565         * sched-int.h (ready_sort): Remove global declaration.
35566
35567 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
35568
35569         * ipa-icf.c (sem_function::equals_private): Adjust.
35570         (sem_function::bb_dict_test): Take a vec<int> * instead of
35571         auto_vec<int>.
35572         * ipa-icf.h (bb_dict_test): Likewise.
35573
35574 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35575
35576         PR gcov-profile/64634
35577         * tree-eh.c (frob_into_branch_around): Fix up typos
35578         in function comment.
35579         (lower_catch): Put eh_seq resulting from EH lowering of
35580         the cleanup sequence after the cleanup rather than before it.
35581
35582 2015-02-18  Tom de Vries  <tom@codesourcery.com>
35583
35584         * common.opt (fstdarg-opt): New option.
35585         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35586         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35587         (@item -fstdarg-opt): New item.
35588
35589 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
35590
35591         PR target/65064
35592         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35593         for common symbols.
35594
35595 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35596
35597         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35598         insn-modes.h.
35599         (ALL_HOST_OBJS): Add mkoffload.o.
35600         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35601
35602 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
35603
35604         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35605         (compare_virtual_tables): Be smarter about skipping typeinfos;
35606         do sane output on virtual table table mismatch.
35607         (warn_odr): Be ready for forward declarations of enums;
35608         output sane info on base mismatch and virtual table mismatch.
35609         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35610         when only one type is polymorphic.
35611         (get_odr_type): Fix hashtable corruption.
35612         (dump_odr_type): Dump mangled names.
35613
35614 2015-02-18  Richard Biener  <rguenther@suse.de>
35615
35616         PR tree-optimization/65063
35617         * tree-predcom.c (determine_unroll_factor): Return 1 if we
35618         have replaced looparound PHIs.
35619
35620 2015-02-18  Martin Liska  <mliska@suse.cz>
35621
35622         * lto-streamer.c (lto_streamer_init): Encapsulate
35623         streamer_check_handled_ts_structures with checking macro.
35624
35625 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35626
35627         PR ipa/65087
35628         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35629         section if !implicit_section.
35630         (cgraph_node::create_version_clone_with_body): Likewise.
35631         * trans-mem.c (ipa_tm_create_version): Likewise.
35632
35633 2015-02-18  Richard Biener  <rguenther@suse.de>
35634
35635         PR tree-optimization/62217
35636         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35637         into BIVs.
35638
35639 2015-02-18  Marek Polacek  <polacek@redhat.com>
35640
35641         PR sanitizer/65081
35642         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35643         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35644         is in range [-16K, -1].  Don't issue run-time error if
35645         (ptr > ptr + offset).
35646
35647 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
35648
35649         * doc/install.texi (nvptx-*-none): New section.
35650         * doc/invoke.texi (Nvidia PTX Options): Likewise.
35651         * config/nvptx/nvptx.opt: Update.
35652
35653         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35654         (access_check): New functions, copied from
35655         config/i386/intelmic-mkoffload.c.
35656         (main): For non-installed testing, look in all COMPILER_PATHs for
35657         GCC_INSTALL_NAME.
35658
35659         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35660
35661 2015-02-18  Andrew Pinski  <apinski@cavium.com>
35662             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35663
35664         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35665         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35666
35667 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35668
35669         * ipa-visibility.c (function_and_variable_visibility): Only
35670         check locality if node is not already local.
35671         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35672         call_for_symbol_and_aliases instead of
35673         call_for_symbol_thunks_and_aliases.
35674         (ipa_inline): Likewise.
35675         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35676         first walk aliases.
35677         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35678         call_for_symbol_and_aliases.
35679         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35680         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35681         (ipa_propagate_frequency): Update.
35682         (ipa_profile): Add opt_for_fn gueards.
35683
35684 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35685
35686         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35687         * doc/invoke.texi (SH options): Document it.
35688         * config/sh/sh.c (sh_insn_length_adjustment): Check
35689         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35690
35691 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
35692
35693         * common.opt (fipa-cp-alignment): New.
35694         * ipa-cp.c (ipcp_store_alignment_results): Check
35695         flag_ipa_cp_alignment.
35696         * opts.c (default_options_table): Enable -fipa-cp-alignment for
35697         -O2.
35698         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35699         * doc/invoke.texi: Document -fipa-cp-alignment.
35700
35701 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35702
35703         PR target/64793
35704         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35705         to nil.  Adjust comments.
35706
35707 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35708
35709         * ipa-visibility.c (function_and_variable_visibility): Only
35710         check locality if node is not already local.
35711         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35712         call_for_symbol_and_aliases instead of
35713         call_for_symbol_thunks_and_aliases.
35714         (ipa_inline): Likewise.
35715         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35716         first walk aliases.
35717         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35718         call_for_symbol_and_aliases.
35719         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35720         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35721         (ipa_propagate_frequency): Update.
35722         (ipa_profile): Add opt_for_fn guards.
35723
35724 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
35725
35726         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35727         skipping of "strange" tokens.
35728
35729 2015-02-17  Jeff Law  <law@redhat.com>
35730
35731         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
35732         obsolete comment.
35733
35734 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
35735
35736         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35737         as forcing a HARD_DEP between instructions, thereby
35738         disallowing rewriting to break dependencies.
35739
35740 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35741
35742         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35743         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35744         variables in boundary that have no inlitalizer encoded and are
35745         not aliases.
35746         * varasm.c (default_binds_local_p_2): External definitions do not
35747         count as definitions here.
35748
35749 2015-02-16  Jeff Law  <law@redhat.com>
35750
35751         PR tree-optimization/64823
35752         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35753         statements.
35754         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35755         threading through blocks with PHIs, but no statements.
35756         (thread_through_normal_block): Distinguish between blocks where
35757         we did not process all the statements and blocks with no statements.
35758
35759 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
35760             James Greenhalgh  <james.greenhalgh@arm.com>
35761
35762         PR ipa/64963
35763         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35764         section if not linkonce.  Fix up formatting.
35765         (cgraph_node::create_version_clone_with_body): Copy section.
35766         * trans-mem.c (ipa_tm_create_version): Likewise.
35767
35768 2015-02-16  Richard Biener  <rguenther@suse.de>
35769
35770         PR tree-optimization/65077
35771         * tree-ssa-structalias.c (get_constraint_for_1): Handle
35772         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35773         (find_func_aliases): Allow float values to carry pointers again.
35774
35775 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
35776
35777         * doc/install.texi (Specific): Reorder targets list to put
35778         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
35779         from the top menu.
35780
35781 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
35782             David Edelsohn  <dje.gcc@gmail.com>
35783
35784         PR target/65058
35785         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35786         mapping class to external variable or function reference.
35787         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35788         mapping class.
35789
35790 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
35791
35792         PR target/53348
35793         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35794         ASM_WEAKEN_DECL if defined.
35795
35796 2015-02-16  Richard Biener  <rguenther@suse.de>
35797
35798         PR lto/65015
35799         * varasm.c (default_file_start): For LTO produced units
35800         emit <artificial> as file directive.
35801
35802 2015-02-16  Richard Biener  <rguenther@suse.de>
35803
35804         PR tree-optimization/63593
35805         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35806         stmts and releasing SSA names until...
35807         (execute_pred_commoning): ... after processing all chains.
35808
35809 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35810
35811         PR ipa/65059
35812         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35813         external functions.
35814
35815 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
35816
35817         * doc/bugreport.texi: Adjust section titles throughout the file
35818         to use "Title Case".
35819         * doc/extend.texi: Likewise.
35820         * doc/gcov.texi: Likewise.
35821         * doc/implement-c.texi: Likewise.
35822         * doc/implement-cxx.texi: Likewise.
35823         * doc/invoke.texi: Likewise.
35824         * doc/objc.texi: Likewise.
35825         * doc/standards.texi: Likewise.
35826         * doc/trouble.texi: Likewise.
35827
35828 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
35829
35830         * cgraph.h (symtab_node::has_aliases_p): Simplify.
35831         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35832         * tree.c (lookup_binfo_at_offset): Make static.
35833         (get_binfo_at_offset): Do not shadow offset; add explanatory
35834         comment.
35835
35836 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
35837
35838         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35839         for all floading point loads and stores except those using a register
35840         index address.
35841         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35842         to a register.
35843
35844 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35845
35846         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35847         (do_estimate_growth_1): Record if any uninlinable edge was seen.
35848         (estimate_growth): Handle uninlinable edges correctly.
35849         (check_callers): New.
35850         (growth_likely_positive): Handle aliases correctly.
35851
35852 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35853
35854         * ipa-chkp.c: Use iterate_direct_aliases.
35855         * symtab.c (resolution_used_from_other_file_p): Move inline.
35856         (symtab_node::create_reference): Fix formating.
35857         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35858         (symtab_node::iterate_reference): Move inline.
35859         (symtab_node::iterate_referring): Move inline.
35860         (symtab_node::iterate_direct_aliases): Move inline.
35861         (symtab_node::used_from_object_file_p_worker): Inline into ...
35862         (symtab_node::used_from_object_file_p): ... this one; move inline.
35863         (symtab_node::call_for_symbol_and_aliases): Move inline;
35864         use iterate_direct_aliases.
35865         (symtab_node::call_for_symbol_and_aliases_1): New method.
35866         (cgraph_node::call_for_symbol_and_aliases): Move inline;
35867         use iterate_direct_aliases.
35868         (cgraph_node::call_for_symbol_and_aliases_1): New method.
35869         (varpool_node::call_for_node_and_aliases): Rename to ...
35870         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35871         use iterate_direct_aliases.
35872         (varpool_node::call_for_symbol_and_aliases_1): New method.
35873         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35874         (ipa_discover_readonly_nonaddressable_var): Update.
35875         * ipa-devirt.c: Fix formating.
35876         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35877         Move inline.
35878         (cgraph_node::call_for_symbol_and_aliases): Move inline.
35879         (cgraph_node::call_for_symbol_and_aliases_1): New function..
35880         * cgraph.h (used_from_object_file_p_worker): Remove.
35881         (resolution_used_from_other_file_p): Move inline.
35882         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35883         (symtab_node::iterate_reference): Move inline.
35884         (symtab_node::iterate_referring): Move inline.
35885         (symtab_node::iterate_direct_aliases): Move inline.
35886         (symtab_node::used_from_object_file_p_worker): Inline into ...
35887         (symtab_node::used_from_object_file_p): Move inline.
35888         * tree-emutls.c (ipa_lower_emutls): Update.
35889         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35890         (varpool_node::call_for_node_and_aliases): Remove.
35891
35892 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
35893
35894         PR tree-optimization/62209
35895         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35896         op == range->exp, insert seq and gimplified code after labels
35897         instead of after the phi.
35898
35899 2015-02-13  Jeff Law  <law@redhat.com>
35900
35901         PR bootstrap/65060
35902         Revert my change for tree-optimization/64823.
35903
35904 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35905
35906         PR tree-optimization/65053
35907         * tree-ssa-phiopt.c (value_replacement): When moving assign before
35908         cond, either reset VR on lhs or set it to phi result VR.
35909
35910 2015-02-13  Jeff Law  <law@redhat.com>
35911
35912         PR tree-optimization/64823
35913         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35914         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35915         threading through blocks with PHIs, but no statements.
35916         (thread_through_normal_block): Distinguish between blocks where
35917         we did not process all the statements and blocks with no statements.
35918
35919         PR rtl-optimization/47477
35920         * match.pd (convert (plus/minus (convert @0) (convert @1): New
35921         simplifier to narrow arithmetic.
35922
35923 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
35924
35925         PR ipa/65028
35926         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35927         polymorphic call info when type is not known to be preserved.
35928
35929 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
35930
35931         PR ipa/65028
35932         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35933         (inline_call): Use it.
35934
35935 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
35936
35937         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35938         GOMP_DEVICE_NVIDIA_PTX.
35939
35940 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35941
35942         PR ipa/65034
35943         * stmt.c (emit_case_nodes): Use void_type_node instead of
35944         NULL_TREE as LABEL_DECL type.
35945
35946 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
35947
35948         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35949         constraints.
35950         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35951         symbolic references to data to be forced to constant memory on the
35952         SOM target.
35953
35954 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
35955
35956         PR tree-optimization/65002
35957         * tree-cfg.c (pass_data_fixup_cfg): Don't update
35958         SSA on start.
35959         * tree-sra.c (some_callers_have_no_vuse_p): New.
35960         (ipa_early_sra): Reject functions whose callers
35961         assume function is read only.
35962
35963 2015-02-13  Richard Biener  <rguenther@suse.de>
35964
35965         PR lto/65015
35966         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35967         for LTO produced CUs.
35968
35969 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
35970
35971         PR tree-optimization/64705
35972         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35973         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35974         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35975         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35976         expand_simple_operations.
35977
35978 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
35979             Richard Henderson  <rth@redhat.com>
35980
35981         PR rtl/32219
35982         * cgraphunit.c (cgraph_node::finalize_function): Set definition
35983         before notice_global_symbol.
35984         (varpool_node::finalize_decl): Likewise.
35985         * varasm.c (default_binds_local_p_2): Rename from
35986         default_binds_local_p_1, add weak_dominate argument.  Use direct
35987         returns instead of assigning to local variable.  Unify varpool and
35988         cgraph paths via symtab_node.  Reject undef weak variables before
35989         testing visibility.  Reorder tests for simplicity.
35990         (default_binds_local_p): Use default_binds_local_p_2.
35991         (default_binds_local_p_1): Likewise.
35992         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35993         via symtab_node.
35994         (default_elf_asm_output_external): Emit visibility when specified.
35995
35996 2015-02-13  Alan Modra  <amodra@gmail.com>
35997
35998         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35999         code setting up r11 for out-of-line fp restore.
36000
36001 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
36002
36003         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36004         (muser-mode): Likewise.
36005
36006 2015-02-13  Alan Modra  <amodra@gmail.com>
36007
36008         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36009         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36010
36011 2015-02-12  David Howells  <dhowells@redhat.com>
36012
36013         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36014         warning.
36015         * tree-ssa-uninit.c (dump_predicates): Likewise.
36016         * opts.c (print_filtered_help): Likewise.
36017
36018 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36019
36020         * dwarf2out.c (output_die): Use "%s", name instead of name to
36021         avoid -Wformat-security warning.
36022
36023         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36024         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36025         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36026         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36027
36028 2015-02-12  Jason Merrill  <jason@redhat.com>
36029
36030         * common.opt (-flifetime-dse): New.
36031
36032 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
36033
36034         PR sanitizer/65019
36035         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36036
36037         PR tree-optimization/65014
36038         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36039         use original second operand of arg0 or arg1 instead of
36040         that adjusted by STRIP_NOPS.
36041
36042 2015-02-11  Jeff Law  <law@redhat.com>
36043
36044         PR target/63347
36045         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36046         that needs to be queued, just queue it for a single cycle.
36047
36048 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
36049
36050         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36051         bodies of thunks; comment on why.
36052         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36053         symbols are extern.
36054
36055 2015-02-11  Richard Henderson  <rth@redhat.com>
36056
36057         PR sanitize/65000
36058         * tree-eh.c (mark_reachable_handlers): Mark source and destination
36059         regions of __builtin_eh_copy_values.
36060
36061 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36062
36063         PR middle-end/65003
36064         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36065         ultimate alias is MEM with SYMBOL_REF satisfying
36066         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
36067         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36068
36069 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
36070
36071         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36072         "diagnostic-core.h".
36073         (main): Initialize progname, and call diagnostic_initialize.
36074
36075         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36076         instead of __OPENMP_TARGET__.
36077
36078         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36079         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36080         hard-coding PTX_ID.
36081
36082 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
36083
36084         * doc/sourcebuild.texi (pie_enabled): Document.
36085
36086 2015-02-11  Martin Liska  <mliska@suse.cz>
36087
36088         PR ipa/64813
36089         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36090         a return value for call to a function that is noreturn.
36091
36092 2015-02-11  Richard Biener  <rguenther@suse.de>
36093
36094         PR lto/65015
36095         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36096         and -fresolution.
36097
36098 2015-02-11  Andrew Pinski  <apinski@cavium.com>
36099
36100         PR target/64893
36101         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36102         Change the first argument type to size_type_node and add another
36103         size_type_node.
36104         (aarch64_simd_expand_builtin): Handle the new argument to
36105         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36106         print an out when the first two arguments are not
36107         nonzero integer constants.
36108         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36109         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36110
36111 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36112
36113         PR target/61925
36114         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36115         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36116         (ix86_set_current_function): Rewritten.
36117         (ix86_add_new_builtins): Temporarily clear current_target_pragma
36118         when creating builtin fndecls.
36119
36120 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36121
36122         PR ipa/65005
36123         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36124         function.
36125         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36126         have no comdat group.
36127         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36128         (lto_output_varpool_node): Always output alias info.
36129         (output_refs): Output refs of boundary aliases, too.
36130         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36131         (output_symtab): Output call eges in thunks in boundary.
36132         (get_alias_symbol): Remove.
36133         (input_node, input_varpool_node): Do not special case weakrefs.
36134         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36135         alias and thunks targets in the boundary; do not take removed symbols
36136         from their comdat groups.
36137         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36138         (cgraph_node::global_info): Remove.
36139         (cgraph_node::rtl_info): Look through aliases and thunks.
36140         * cgrpah.h (global_info): Remove.
36141         (non_local_p): Remove.
36142
36143 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36144             Sandra Loosemore  <sandra@codesourcery.com>
36145
36146         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36147         to inline asm.  List dialects in proper order.
36148
36149 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36150             Sandra Loosemore  <sandra@codesourcery.com>
36151
36152         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36153
36154 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36155
36156         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36157         modified) reference to Solaris.
36158
36159 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
36160
36161         * doc/extend.texi (Extended Asm): Fix typos.
36162
36163 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
36164
36165         PR sanitizer/65004
36166         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36167
36168 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
36169
36170         PR target/64661
36171         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36172         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36173         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36174         * config/sh/constraints.md (Ara, Add): New constraints.
36175         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36176         predicates.
36177         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36178         atomic_mem_operand_0.  Don't use force_reg on the memory address.
36179         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36180         Sra constraint.  Convert to insn_and_split.  Add workaround for
36181         PR 64974.
36182         (atomic_compare_and_swap<mode>_hard): Copy to
36183         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
36184         Use atomic_mem_operand_0 predicate.
36185         (atomic_compare_and_swap<mode>_soft_gusa,
36186         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36187         AraAdd constraints.
36188         (atomic_compare_and_swap<mode>_soft_tcb,
36189         atomic_compare_and_swap<mode>_soft_imask,
36190         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36191         atomic_mem_operand_0 predicate and SraSdd constraints.
36192         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36193         constraint.
36194         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36195         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
36196         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36197         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
36198         force_reg on the memory address.
36199         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36200         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36201         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36202         atomic_mem_operand_1 predicate and Sra constraint.
36203         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36204         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36205         Use atomic_mem_operand_1 predicate.
36206         (atomic_<fetchop_name><mode>_hard): Copy to
36207         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36208         Use atomic_mem_operand_1 predicate.
36209         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36210         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36211         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
36212         insn_and_split.  Use atomic_mem_operand_1 predicate.
36213         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36214         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
36215         Use atomic_mem_operand_1 predicate.
36216         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36217         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36218         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36219         in generated insn with original mem operand before emitting the insn.
36220         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36221         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36222         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36223         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36224         Use atomic_mem_operand_1 predicate and AraAdd constraints.
36225         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36226         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36227         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36228         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36229         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36230         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36231         atomic_not_fetch<mode>_soft_tcb,
36232         atomic_<fetchop_name>_fetch<mode>_soft_imask,
36233         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36234         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36235         Use atomic_mem_operand_1 predicate and SraSdd constraints.
36236
36237 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
36238
36239         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36240         and 3 earlyclobber operands.
36241
36242 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36243
36244         * common.opt (fstack-reuse): Mark as optimization.
36245
36246 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36247
36248         PR ipa/64982
36249         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36250
36251 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
36252
36253         PR tree-optimization/64326
36254         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36255
36256 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
36257
36258         PR gcov-profile/61889
36259         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36260
36261 2015-02-10  Richard Biener  <rguenther@suse.de>
36262
36263         PR tree-optimization/64995
36264         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36265         value we use is final.
36266         (visit_reference_op_store): Always valueize op.
36267         (visit_use): Properly valueize vuses.
36268
36269 2015-02-10  Richard Biener  <rguenther@suse.de>
36270
36271         PR tree-optimization/64909
36272         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36273         pass a scalar-stmt count estimate to the cost model.
36274         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36275
36276 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
36277
36278         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36279         enabled by default together with var-tracking.
36280
36281 2015-02-10  Nick Clifton  <nickc@redhat.com>
36282
36283         * config/rl78/rl78.c: Remove DIV attribute code accidentally
36284         included in previous rl78 commit.
36285
36286 2015-02-10  Richard Biener  <rguenther@suse.de>
36287
36288         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36289         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36290         return the bitpack.
36291
36292 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36293
36294         PR gcov-profile/61889
36295         * config.in: regenerate.
36296         * configure.in: Likewise.
36297         * configure.ac: Check for ftw.h.
36298         * gcov-tool.c: Check for ftw.h before using nftw.
36299
36300 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36301
36302         PR lto/64076
36303         * ipa-visibility.c (update_visibility_by_resolution_info): Only
36304         assert when not in lto mode.
36305
36306 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
36307
36308         * ira-color.c (setup_left_conflict_sizes_p): Simplify
36309         initialization/assignment of conflict_size.
36310
36311 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
36312
36313         PR ipa/64978
36314         * ipa-cp.c (gather_caller_stats): Skip thunks.
36315         (propagate_constants_topo): Skip aliases.
36316
36317 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
36318
36319         PR target/64761
36320         * config/sh/sh.c (sh_option_override): Don't change
36321         -freorder-blocks-and-partition to -freorder-blocks even when
36322         unwinding is enabled.
36323         (sh_can_follow_jump): Return false if the followee jump is
36324         a crossing jump when -freorder-blocks-and-partition is specified.
36325         * config/sh/sh.md (*jump_compact_crossing): New insn.
36326
36327 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
36328             Kaz Kojima  <kkojima@gcc.gnu.org>
36329
36330         PR target/64761
36331         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36332         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36333         (sh_can_redirect_branch): Rename to ...
36334         (sh_can_follow_jump): ... this.  Constify argument types.
36335         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36336         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36337         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36338         * doc/tm.texi: Regenerate.
36339
36340 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36341
36342         PR sanitizer/64981
36343         * builtins.c (expand_builtin): Call targetm.expand_builtin
36344         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36345
36346 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36347
36348         PR ipa/61548
36349         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36350
36351 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36352
36353         PR ipa/63566
36354         * ipa-icf.c (set_local): New function.
36355         (sem_function::merge): Use it.
36356
36357 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36358
36359         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36360         (add_type_duplicate): Fix comparison of BINFOs.
36361
36362 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36363
36364         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36365         on getting VOID pointer.
36366
36367 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36368
36369         PR target/64979
36370         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36371         va_list escapes.
36372
36373 2015-02-09  Richard Biener  <rguenther@suse.de>
36374
36375         * genmatch.c (replace_id): Copy expr_type.
36376
36377 2015-02-09  Richard Biener  <rguenther@suse.de>
36378
36379         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36380         (streamer_write_tree_bitfields): Declare.
36381         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36382         properly unpack padding.
36383         (unpack_value_fields): Inline ...
36384         (streamer_read_tree_bitfields): ... here.
36385         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36386         and properly add padding bits.
36387         (streamer_pack_tree_bitfields): Fold into ...
36388         (streamer_write_tree_bitfields): ... this new function,
36389         exposing the bitpack object.
36390         * lto-streamer-out.c (lto_write_tree_1): Call
36391         streamer_write_tree_bitfields.
36392
36393 2015-02-09  Richard Biener  <rguenther@suse.de>
36394
36395         PR tree-optimization/54000
36396         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36397         (struct ivopts_data): Add loop_loc member.
36398         (tree_ssa_iv_optimize_loop): Dump loop location.
36399         (create_new_ivs): Likewise, also dump number of IVs generated.
36400
36401 2015-02-09  Martin Liska  <mliska@suse.cz>
36402
36403         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36404         just if not yet registered.
36405         (ipa_icf_generate_summary): Register callgraph hooks.
36406
36407 2015-02-08  Andrew Pinski  <apinski@cavium.com>
36408
36409         * config/aarch64/aarch64.c (gty_dummy): Delete.
36410
36411 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36412
36413         PR ipa/63566
36414         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36415         (cgraph_node::local_p): Remove thunk related FIXME.
36416
36417 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36418
36419         PR ipa/63566
36420         * i386.c (ix86_function_regparm): Look through aliases to see if callee
36421         is local and optimized.
36422         (ix86_function_sseregparm): Likewise; also use target's SSE math
36423         settings; error out instead of silently generating wrong code
36424         on mismatches.
36425         (init_cumulative_args): Look through aliases.
36426
36427 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36428
36429         PR ipa/63566
36430         * ipa-split.c (execute_split_functions): Split if function has aliases.
36431
36432 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36433
36434         PR ipa/63566
36435         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36436         aliases before trying to expand it.
36437         (cgraph_node::expand_thunk): Fix formating.
36438
36439 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
36440
36441         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36442         (Using Assembly Language with C): Expand introduction.
36443         (Basic Asm): Copy-edit.  Add more information about uses of
36444         basic asm.
36445         (Extended Asm): Copy-edit.  Document new escape syntax and
36446         %l[label] syntax.
36447         (Global Reg Vars): Copy-edit.
36448         (Local Reg Vars): Likewise.
36449
36450 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
36451
36452         PR debug/2714
36453         PR bootstrap/64256
36454         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36455         (DBX_CONTIN_CHAR): Define.
36456
36457 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
36458             Brian Rzycki  <b.rzycki@samsung.com>
36459
36460         PR tree-optimization/64878
36461         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36462         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36463         Stop recursion at loop phi nodes after having visited a loop phi node.
36464
36465 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36466
36467         * toplev.c (process_options): Change flag_ipa_ra before creating
36468         optimization_{default,current}_node.
36469
36470         PR ipa/64896
36471         * cgraphunit.c (cgraph_node::expand_thunk): If
36472         restype is not is_gimple_reg_type nor the thunk_fndecl
36473         returns aggregate_value_p, set restmp to a temporary variable
36474         instead of resdecl.
36475
36476 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
36477
36478         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36479
36480 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36481
36482         PR target/64205
36483         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36484         add a general secondary reload handler for SDmode, unless we have
36485         both read/write support for SDmode.
36486
36487 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36488
36489         PR middle-end/64937
36490         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36491         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36492         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36493         1 before, push it to abstract_vec.
36494         (dwarf2out_abstract_function): Adjust caller.  Don't call
36495         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36496         DECL_ABSTRACT_P flags for all abstract_vec elts.
36497
36498 2015-02-06  Renlin Li  <renlin.li@arm.com>
36499
36500         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36501         complex gimple.
36502         * tree-ssa.c (execute_update_addresses_taken): Likewise.
36503
36504 2015-02-06  Jeff Law  <law@redhat.com>
36505
36506         PR target/64889
36507         * config/h8300/h8300.c (push): New argument "in_prologue".
36508         Pass "in_prologue" along to "F".
36509         (h8300_push_pop): Corresponding changes.
36510         (h8300_expand_prologue): Likewise.
36511         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
36512
36513 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36514
36515         PR rtl-optimization/64957
36516         PR debug/64817
36517         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36518         IOR rather than for AND.
36519
36520 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
36521
36522         PR target/62631
36523         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36524         of shift-add and (add + shift) operations.  Rename local variable.
36525
36526 2015-02-05  Jeff Law  <law@redhat.com>
36527
36528         PR target/17306
36529         * config/h8300/constraints.md (U): Correctly dectect
36530         "eightbit_data" memory addresses.
36531         * config/h8300/h8300.c (eightbit_constant_address_p): Also
36532         handle (const (plus (symbol_ref (x)))) where x is declared
36533         as an 8-bit data memory address.
36534         * config/h8300/h8300.md (call, call_value): Correctly detect
36535         "funcvec" functions.
36536
36537         PR target/43264
36538         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36539         24 to 28 bits for the H8/300.
36540
36541 2015-02-06  Alan Modra  <amodra@gmail.com>
36542
36543         PR target/64876
36544         * config/rs6000/rs6000.c (chain_already_loaded): New function.
36545         (rs6000_call_aix): Use it.
36546
36547 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
36548
36549         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36550         check.
36551
36552 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
36553
36554         * config/h8300/constraints.md ("U" constraint): Use strict
36555         variant of REG_OK_FOR_BASE_P after reload has started.
36556
36557 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
36558
36559         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36560         define to zero if !TARGET_NEON.
36561         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36562
36563 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36564             Trevor Saunders  <tsaunders@mozilla.com>
36565
36566         PR ipa/61548
36567         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36568
36569 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36570
36571         PR ipa/61548
36572         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36573         when removing varpool nodes.
36574
36575 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36576
36577         PR ipa/61548
36578         * varpool.c (varpool_node::remove): Fix order of variables.
36579
36580 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36581
36582         PR ipa/64686
36583         * ipa-inline.c (inline_small_functions): Fix ordering issue between
36584         speculation resolution and key updates.
36585
36586 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36587
36588         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36589         about not letting any speculative edges unupdated.
36590
36591 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36592
36593         PR gcov/64123
36594         * gcov-io.c (gcov_var): Export.
36595
36596 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36597
36598         PR middle-end/64922
36599         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36600         edges that become speculative.
36601
36602 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36603
36604         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36605         or DW_LANG_Fortran08.
36606         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36607         DW_LANG_Fortran08.
36608         (gen_compile_unit_die): Handle "GNU Fortran2003" and
36609         "GNU Fortran2008" language strings.
36610         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36611         * langhooks.h (lang_GNU_Fortran): New prototype.
36612         * langhooks.c (lang_GNU_Fortran): New function.
36613         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36614         lang_GNU_Fortran.
36615
36616 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36617
36618         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36619         (RTX_OK_FOR_OLO10_P): Likewise.
36620
36621 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36622
36623         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36624
36625 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36626
36627         PR middle-end/64922
36628         * gimple.c: Include gimple-ssa.h.
36629         (maybe_remove_unused_call_args): New function.
36630         * gimple.h (maybe_remove_unused_call_args): Declare.
36631         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36632         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36633         * gimple-fold.c (gimple_fold_call): Likewise.
36634
36635 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
36636
36637         PR rtl-optimization/64905
36638         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36639         pointer alignment if it isn't needed.
36640
36641 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36642
36643         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36644         cortex-a72.cortex-a53.
36645         * config/aarch64/aarch64-tune.md: Regenerate.
36646         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36647
36648 2015-02-04  Nick Clifton  <nickc@redhat.com>
36649
36650         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36651         inside a MEM.
36652
36653 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36654
36655         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36656         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36657         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36658         of DEF_BUILTIN.
36659         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36660         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36661         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36662         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36663         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36664         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36665         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36666         * tree-core.h (enum built_in_function): In between
36667         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36668         for builtins that use DEF_BUILTIN_CHKP macro.
36669
36670 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
36671
36672         PR debug/64817
36673         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36674         operands for tcc_comparison exprs.  Fix typos.
36675
36676         PR debug/64817
36677         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36678         of two XORs that have an intervening AND or IOR.
36679
36680         PR debug/64817
36681         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36682         simplification of XOR of AND to not allocate new rtx before
36683         committing to a simplification.
36684
36685 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36686
36687         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36688         manual swaps in all peepholes.
36689
36690 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36691
36692         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36693         of manual swapping implementation.
36694         (aarch64_expand_vec_perm_const_1): Likewise.
36695
36696 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
36697
36698         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36699         (generic_addrcost_table): Remove NAMED_PARAM.
36700         (cortexa57_addrcost_table): Likewise.
36701         (xgene1_addrcost_table): Likewise.
36702         (generic_regmove_table): Likewise.
36703         (cortexa53_regmove_table): Likewise.
36704         (xgene1_regmove_table): Likewise.
36705         (generic_vector_table): Likewise.
36706         (cortexa57_vector_table): Likewise.
36707         (xgene1_vector_table): Likewise.
36708         (generic_tunings): Likewise.
36709         (cortexa53_tunings): Likewise.
36710         (cortexa57_tunings): Likewise.
36711         (xgene1_tunings): Likewise.
36712
36713 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36714
36715         * config/arm/arm-cores.def: Add cortex-a72 and
36716         cortex-a72.cortex-a53.
36717         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36718         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36719         * config/arm/arm-tune.md: Regenerate.
36720         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36721         "cortex-a72.cortex-a53".
36722         * doc/invoke.texi (ARM Options/-mtune): Likewise.
36723
36724 2015-02-04  Nick Clifton  <nickc@redhat.com>
36725
36726         PR target/64408
36727         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36728         of accepted codes.
36729         (nonimmediate_di_operand): Likewise.
36730
36731         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36732         prefixes of known F5 using MSP430 MCUs.
36733
36734 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36735
36736         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36737         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36738         instead of __builtin_sqrt.
36739
36740 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
36741
36742         * varasm.c (do_assemble_alias): Follow transparent alias
36743         chain for target.
36744         (default_assemble_visibility): Follow transparent alias
36745         chain for decl name.
36746
36747 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36748
36749         PR middle-end/62103
36750         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36751         to compute size of referenced value in the constant case.
36752
36753 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36754
36755         PR rtl-optimization/64756
36756         * cse.c (invalidate_dest): New function.
36757         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
36758         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36759         invalidate and do not record it.
36760
36761 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
36762
36763         PR target/64660
36764         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36765         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36766         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36767         atomic_nand<mode>_soft_tcb): New insns.
36768         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36769         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36770         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36771         Split into atomic_not_fetchsi_hard if operands[0] is unused.
36772         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36773         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36774         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
36775         atomic_not<mode>_hard if operands[0] is unused.
36776         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36777         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36778         if operands[0] is unused.
36779         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
36780         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36781         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36782         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36783         unused.
36784         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
36785         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36786         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36787         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36788         if operands[0] is unused.
36789         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
36790         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36791         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
36792         atomic_nand_fetchsi_hard if operands[0] is unused.
36793         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
36794         atomic_nand<mode>_hard if operands[0] is unused.
36795         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
36796         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36797         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
36798         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36799         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
36800         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36801         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36802         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36803         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
36804         atomic_not<mode>_hard if operands[0] is unused.
36805         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36806         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36807         unused.
36808         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36809         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36810         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
36811         atomic_nand<mode>_hard if operands[0] is unused.
36812         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36813         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36814
36815 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
36816
36817         PR jit/64810
36818         * Makefile.in (GCC_OBJS): Add gcc-main.o.
36819         * gcc-main.c: New file, containing "main" taken from gcc.c.
36820         * gcc.c (do_self_spec): Free decoded_options.
36821         (class driver): Move declaration to gcc.h.
36822         (main): Move declaration and implementation to new file
36823         gcc-main.c.
36824         (driver_get_configure_time_options): New function.
36825         * gcc.h (class driver): Move this declaration here, from
36826         gcc.c.
36827         (driver_get_configure_time_options): New declaration.
36828
36829 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
36830
36831         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36832         cross-module inlining.
36833         * cgraph.h (cgraph_node): Add flag merged.
36834         * ipa-icf.c (sem_function::merge): Maintain it.
36835
36836 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
36837
36838         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36839         instead of OBJECT_P.
36840
36841 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
36842
36843         PR target/62631
36844         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36845         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36846         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36847         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36848
36849 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36850
36851         PR other/63504
36852         * combine.c (reg_n_sets_max): New variable.
36853         (can_change_dest_mode, reg_nonzero_bits_for_combine,
36854         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36855         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36856         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36857         (rest_of_handle_combine): Initialize reg_n_sets_max.
36858
36859 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
36860
36861         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36862         if some always_inline was inlined, apply changes before inlining
36863         heuristically.
36864
36865 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
36866
36867         PR jit/64810
36868         * config/arm/arm.c (arm_option_override): Set
36869         arm_selected_arch/cpu/tune to NULL on entry.
36870
36871 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
36872             Andrew Pinski  <pinskia@gcc.gnu.org>
36873             Jakub Jelinek  <jakub@gcc.gnu.org>
36874
36875         PR target/64231
36876         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36877         integer typing for small model. Use IN_RANGE.
36878
36879 2015-02-02  Richard Biener  <rguenther@suse.de>
36880
36881         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36882         * tree-vrp.c (vrp_valueize_1): Likewise.
36883
36884 2015-02-02  Alan Modra  <amodra@gmail.com>
36885
36886         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36887         than mem for toc_restore.
36888         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36889         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36890         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36891
36892 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
36893
36894         PR target/64047
36895         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36896         explicit default options.
36897
36898 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
36899
36900         PR ipa/64872
36901         * ipa-utils.c (ipa_merge_profiles): Add release argument.
36902         * ipa-icf.c (sem_function::merge): Do not release body when merging.
36903         * ipa-utils.h (ipa_merge_profiles): Update prototype.
36904
36905 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
36906
36907         PR debug/64817
36908         * cfgexpand.c (deep_ter_debug_map): New variable.
36909         (avoid_deep_ter_for_debug): New function.
36910         (expand_debug_expr): If TERed SSA_NAME is in
36911         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36912         instead of trying to expand SSA_NAME's def stmt.
36913         (expand_debug_locations): When expanding debug bind
36914         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36915         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36916         value.
36917         (pass_expand::execute): Call avoid_deep_ter_for_debug on
36918         all debug bind stmts.  Delete deep_ter_debug_map after
36919         expand_debug_location if non-NULL and clear it.
36920
36921 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
36922
36923         PR target/64851
36924         * config/sh/sync.md (atomic_fetch_notsi_hard,
36925         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36926         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36927         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36928         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36929         atomic_not_fetch<mode>_soft_imask): New insns.
36930
36931 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36932
36933         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36934         (rank_for_schedule_debug): Split from ...
36935         (rank_for_schedule): ... this.
36936         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36937         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36938
36939 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36940
36941         * doc/md.texi (Machine Constraints): Alphabetize table by target.
36942         * doc/extend.texi (x86 Variable Attributes): Move section to
36943         correct alphabetization after renaming.
36944         (x86 Type Attributes): Likewise.
36945         (Target Builtins): Re-alphabetize menu.
36946         (x86 Built-in Functions): Move section to correct alphabetization
36947         after renaming.
36948         (x86 transactional memory intrinsics): Likewise.
36949         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36950         and x86 Windows Options in table and menu.
36951         (x86 Options): Move section to correct alphabetization after
36952         renaming.
36953         (x86 Windows Options): Likewise.
36954
36955 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36956
36957         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36958         preferred names of the architecture and its 32- and 64-bit
36959         variants.
36960         * doc/invoke.texi: Likewise.
36961         * doc/md.texi: Likewise.
36962
36963 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36964
36965         PR target/64882
36966         * config/i386/predicates.md (address_no_seg_operand): Reject
36967         non-CONST_INT_P operands in invalid mode.
36968
36969 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36970
36971         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36972         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
36973         * config/i386/predicates.md (address_no_seg_operand): Call
36974         address_operand with VOIDmode.
36975         (vsib_address_operand): Ditto.
36976         (address_mpx_no_base_operand): Ditto.
36977         (address_mpx_no_index_operand): Ditto.
36978
36979 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36980
36981         PR target/64688
36982         * lra-constraints.c (original_subreg_reg_mode): New.
36983         (simplify_operand_subreg): Try to simplify subreg of const.  Use
36984         original_subreg_reg_mode for it.
36985         (swap_operands): Update original_subreg_reg_mode.
36986         (curr_insn_transform): Set up original_subreg_reg_mode.
36987
36988 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36989
36990         PR target/64617
36991         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36992         function.
36993         (process_alt_operands): Use it.
36994         (curr_insn_transform): Check the optional reload pseudo class is
36995         ok for the mode.
36996
36997 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
36998
36999         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37000         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37001         prototype.
37002         * toplev.h (init_asm_output): Update comment on use of
37003         UNKNOWN_LOCATION with fatal_error.
37004         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37005         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37006         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37007         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37008         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37009         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37010         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37011         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37012         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37013         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37014         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37015         fatal_error changed to pass input_location as first argument.
37016
37017 2015-01-30  Martin Liska  <mliska@suse.cz>
37018
37019         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37020         in #pragma GCC diagnostic guards.
37021
37022 2015-01-30  Richard Biener  <rguenther@suse.de>
37023
37024         PR tree-optimization/64829
37025         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37026         not add a widening conversion pattern but hand off extra
37027         widenings to callers.
37028         (vect_recog_widen_mult_pattern): Handle extra widening produced
37029         by vect_handle_widen_op_by_const.
37030         (vect_recog_widen_shift_pattern): Likewise.
37031         (vect_pattern_recog_1): Remove excess vertical space in dumping.
37032         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37033         (vect_init_vector_1): Likewise.
37034         (vect_get_vec_def_for_operand): Likewise.
37035         (vect_finish_stmt_generation): Likewise.
37036         (vectorizable_load): Likewise.
37037         (vect_analyze_stmt): Likewise.
37038         (vect_is_simple_use): Likewise.
37039
37040 2015-01-29  Jeff Law  <law@redhat.com>
37041
37042         * combine.c (try_combine): Fix typo in comment.
37043
37044 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
37045
37046         PR target/64580
37047         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37048         (rs6000_stack_info): Add assert.
37049         (rs6000_output_savres_externs): New function, split off from...
37050         (rs6000_output_function_prologue): ... here.  Do not call it for
37051         thunks.
37052
37053 2015-01-29  Jeff Law  <law@redhat.com>
37054
37055         PR target/15184
37056         * combine.c (try_combine): If I0 is a memory load and I3 a store
37057         to a related address, increase the "goodness" of doing a 4-insn
37058         combination with I0-I3.
37059         (make_field_assignment): Handle SUBREGs in the ior+and case.
37060
37061 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
37062
37063         PR tree-optimization/64746
37064         * tree-if-conv.c (mask_exists): New function.
37065         (predicate_mem_writes): Save created mask with given size for further
37066         use.
37067         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37068         (ifcvt_repair_bool_pattern): Collect all statements that are root
37069         of bool pattern and use iterative algorithm to remove multiple uses
37070         of predicates, display number of required iterations.
37071
37072 2015-01-29  Richard Biener  <rguenther@suse.de>
37073
37074         PR tree-optimization/64853
37075         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37076         stmt will get simulated again.
37077         * tree-ssa-ccp.c (valueize_op_1): Likewise.
37078
37079 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37080
37081         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37082         return_in_pc.  Remove redundant assignments.
37083         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37084         (arm_expand_epilogue): Don't compare boolean with true in if condition.
37085
37086 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
37087
37088         * config/i386/i386.c (ix86_mode_after): Make static.
37089
37090 2015-01-29  Richard Biener  <rguenther@suse.de>
37091
37092         PR tree-optimization/64844
37093         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37094         dump cost model analysis.
37095         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37096         Do not register adjusted load/store costs here.
37097
37098 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37099             Uros Bizjak  <ubizjak@gmail.com>
37100
37101         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37102         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37103         using x86_use_pseudo_pic_reg.
37104         * config/i386/i386.c (ix86_conditional_register_usage): Remove
37105         support for fixed PIC register.
37106         (ix86_use_pseudo_pic_reg): Not static any more.
37107
37108 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37109
37110         PR middle-end/64805
37111         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37112         to avoid error in cgraph node verification.
37113
37114 2015-01-29  Marek Polacek  <polacek@redhat.com>
37115
37116         * doc/standards.texi: Reflect that the default for C is gnu11.
37117
37118 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
37119
37120         PR target/64761
37121         * reorg.c (switch_text_sections_between_p): New function.
37122         (relax_delay_slots): Call it when testing if the jump insn
37123         is removable.  Use targetm.can_follow_jump when testing if
37124         the conditional branch can follow an unconditional jump.
37125
37126 2015-01-27  Caroline Tice  <cmtice@google.com>
37127
37128         Committing VTV Cywin/Ming patch for Patrick Wollgast
37129         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37130         if -fvtable-verify=preinit/std is used.
37131         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37132         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37133         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37134         if -fvtable-verify=preinit/std is used.
37135         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37136         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37137         if -fvtable-verify=preinit/std is used.
37138         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37139         * config/i386/mingw32.h (LIB_SPEC): Likewise.
37140         * varasm.c (assemble_variable): Add code to properly set the comdat
37141         section and name for the .vtable_map_vars section in case the
37142         target is PE or COFF.
37143
37144 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37145
37146         PR ipa/64801
37147         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37148         make sane BB profile.
37149         (cgraph_node::expand_thunk): Make sane BB profile.
37150         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37151         * cgraph.h (init_lowered_empty_function): Update prototype.
37152         * config/i386/i386.c (make_resolver_func): Update call.
37153         * predict.c (gate): Disable branch prediction pass if
37154         profile is already there.
37155
37156 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37157
37158         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37159         * opth-gen.awk: Likewise.
37160         * common.opt: Mark flag_fp_contract_mode as Optimization.
37161
37162 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37163
37164         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37165         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37166
37167 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
37168
37169         PR target/64659
37170         * config/sh/predicates.md (atomic_arith_operand,
37171         atomic_logical_operand): Remove.
37172         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37173         (atomic_arith_operand_0): New predicate.
37174         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37175         Use atomic_arith_operand_0 for input values.
37176         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37177         atomic_compare_and_swap<mode>_soft_gusa,
37178         atomic_compare_and_swap<mode>_soft_tcb,
37179         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37180         arith_reg_operand instead of register_operand.
37181         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
37182         atomic_arith_operand_0 for newval input.
37183         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37184         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37185         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37186         arith_reg_operand instead of register_operand.
37187         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37188         fetchop_predicate_1, fetchop_constraint_1_llcs,
37189         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37190         fetchop_constraint_1_imask): New code iterator attributes.
37191         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37192         register_operand.  Use fetchop_predicate_1.
37193         (atomic_fetch_<fetchop_name>si_hard,
37194         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37195         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37196         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37197         and arith_reg_operand instead of register_operand.  Use
37198         fetchop_predicate_1, fetchop_constraint_1_gusa.
37199         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37200         and arith_reg_operand instead of register_operand.  Use
37201         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
37202         to allow R0 usage.
37203         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37204         and arith_reg_operand instead of register_operand.  Use
37205         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
37206         to allow R0 usage.
37207         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37208         register_operand.  Use atomic_logical_operand_1.
37209         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37210         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37211         arith_reg_operand instead of register_operand.
37212         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37213         Use arith_reg_dest and arith_reg_operand instead of register_operand.
37214         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
37215         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37216         register_operand.  Use fetchop_predicate_1.
37217         (atomic_<fetchop_name>_fetchsi_hard,
37218         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37219         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37220         fetchop_constraint_1_llcs.
37221         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37222         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37223         fetchop_constraint_1_gusa.
37224         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37225         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37226         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
37227         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37228         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37229         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
37230         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37231         register_operand.  Use atomic_logical_operand_1.
37232         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37233         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37234         arith_reg_operand instead of register_operand.
37235         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37236         arith_reg_operand instead of register_operand.  Use logical_operand
37237         and K08.  Adjust asm sequence to allow R0 usage.
37238         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37239         arith_reg_operand instead of register_operand.  Use logical_operand
37240         and K08.
37241
37242 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37243
37244         PR other/63504
37245         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37246         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37247         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37248         only get_full_len HOST_WIDE_INTs from get_val () array rather than
37249         all bits in *val_wide.
37250
37251 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
37252
37253         * varpool.c (tls_model_names): Fix names.
37254         (varpool_node::dump): Dump tls- prefix for tls models.
37255
37256 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
37257             Bernd Schmidt  <bernds@codesourcery.com>
37258             Nathan Sidwell  <nathan@codesourcery.com>
37259
37260         * config/nvptx/mkoffload.c: New file.
37261         * config/nvptx/t-nvptx: Add build rules for it.
37262         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37263         (extra_programs): Add mkoffload.
37264         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37265         function.
37266         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37267
37268 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
37269
37270         PR middle-end/64809
37271         * cfgexpand.c (reorder_operands): Skip debug gimples.
37272
37273 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
37274
37275         PR tree-optimization/64277
37276         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37277         range info when possible to refine estimation.
37278
37279 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37280
37281         PR tree-optimization/64718
37282         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37283         be a 16bit unsigned integer when n->range is 16.
37284         (bswap_replace): Convert src to that type if necessary for all bswap
37285         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
37286         set in pass_optimize_bswap::execute ().
37287
37288 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
37289
37290         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37291         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37292         integer and floating point variants.
37293         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37294
37295 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
37296
37297         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37298         for all vector modes.
37299
37300 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37301
37302         PR bootstrap/64612
37303         * doc/sourcebuild.texi (comdat_group): Document.
37304
37305 2015-01-28  Terry Guo  <terry.guo@arm.com>
37306
37307         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37308
37309 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
37310
37311         * toplev.c (print_version): Add param "show_global_state", and
37312         only print GGC and plugin information if it is true.
37313         (init_asm_output): Pass in "true" for the new param when calling
37314         print_version.
37315         (process_options): Likewise.
37316         (toplev::main): Likewise.
37317         * toplev.h (print_version): Add new param to decl.
37318
37319 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37320
37321         PR ipa/60871
37322         PR ipa/64139
37323         * tree.c (lookup_binfo_at_offset): New function.
37324         (get_binfo_at_offset): Use it.
37325
37326 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37327
37328         PR ipa/64282
37329         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37330         on vtable being vtable.
37331
37332 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37333
37334         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37335         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37336         -mhotpatch= option.
37337         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37338         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
37339         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37340         Renamed.
37341         (s390_hotpatch_trampoline_halfwords_max): Renamed.
37342         (s390_hotpatch_hw_max): New name.
37343         (s390_hotpatch_trampoline_halfwords): Renamed.
37344         (s390_hotpatch_hw_before_label): New name.
37345         (get_hotpatch_attribute): Removed.
37346         (s390_hotpatch_hw_after_label): New name.
37347         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37348         attribute.
37349         (s390_attribute_table): Ditto.
37350         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37351         (s390_function_num_hotpatch_hw): New name.
37352         Remove special handling of inline functions and hotpatching.
37353         Return number of nops before and after the function label.
37354         (s390_can_inline_p): Removed.
37355         (s390_asm_output_function_label): Emit a configurable number of nops
37356         after the function label.
37357         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37358         (TARGET_CAN_INLINE_P) Removed.
37359         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37360
37361 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37362             Jiong Wang  <jiong.wang@arm.com>
37363
37364         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37365         of scratch reg.
37366         (cb<optab><mode>1): Likewise.
37367         * config/aarch64/iterators.md (bcond): New define_code_attr.
37368
37369 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37370
37371         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37372         memory accesses.
37373
37374 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37375
37376         * config/s390/s390.c (s390_register_move_cost): Increase costs for
37377         FPR->GPR moves.
37378
37379 2015-01-27  Richard Biener  <rguenther@suse.de>
37380
37381         * tree-vrp.c (update_value_range): Intersect the range with
37382         old recorded SSA name range information.
37383
37384 2015-01-27  Nick Clifton  <nickc@redhat.com>
37385
37386         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37387         BC, DE and HL registers directly, not via AX.
37388         When decrementing the stack pointer by a large amount, transfer SP
37389         into AX and perform the subtraction there.
37390         (rl78_expand_epilogue): Perform the inverse of the above
37391         enhancements.
37392
37393 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37394
37395         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37396
37397 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37398             Yury Gribov  <y.gribov@samsung.com>
37399
37400         PR ubsan/64741
37401         * ubsan.c (ubsan_source_location): Refactor code.
37402         (ubsan_type_descriptor): Update type size. Refactor code.
37403
37404 2015-01-27  Richard Biener  <rguenther@suse.de>
37405
37406         PR tree-optimization/56273
37407         PR tree-optimization/59124
37408         PR tree-optimization/64277
37409         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37410         from the first VRP pass.
37411
37412 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37413
37414         PR ipa/64776
37415         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37416         handle the first argument in the same loop as all the other arguments.
37417
37418         PR rtl-optimization/61058
37419         * jump.c (cleanup_barriers): Update basic block boundaries
37420         if BLOCK_FOR_INSN is non-NULL on PREV.
37421
37422 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
37423
37424         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37425         bounds narrowing, already instrumented calls and calls to
37426         not instrumentable functions.
37427
37428 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37429
37430         PR tree-optimization/64807
37431         * wide-int.cc (wi::divmod_internal): Clear
37432         b_dividend[dividend_blocks_needed].
37433
37434 2015-01-26  DJ Delorie  <dj@redhat.com>
37435
37436         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37437         volatile memory references.
37438
37439 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
37440
37441         PR target/49263
37442         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37443         remove_insn.
37444         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37445         shifts if it already fits into K08.
37446
37447 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37448
37449         PR ipa/64730
37450         * ipa-inline.c (inline_small_functions): Print "unknown" even
37451         if edge->call_stmt is non-NULL, but has builtins or unknown
37452         location.
37453
37454         PR middle-end/64421
37455         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37456         with asterisk, skip the first character.
37457
37458 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37459
37460         PR target/64806
37461         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37462         order change.
37463
37464 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
37465
37466         PR target/64795
37467         * config/i386/i386.md (*movdi_internal): Also check operand 0
37468         to determine TYPE_LEA operand.
37469         (*movsi_internal): Ditto.
37470
37471 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37472
37473         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37474         OPTION_MASK_QUAD_MEMORY_ATOMIC.
37475
37476 2015-01-26  Renlin Li  <renlin.li@arm.com>
37477
37478         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37479         the comment.
37480         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37481         for higher part.
37482
37483 2015-01-26  Richard Biener  <rguenther@suse.de>
37484
37485         PR middle-end/64764
37486         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37487         combining two BIT_AND_EXPR predicates.
37488
37489 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37490
37491         PR bootstrap/64754
37492         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37493
37494 2015-01-26  Terry Guo  <terry.guo@arm.com>
37495
37496         * config/arm/arm.c (arm_file_start): Update the assignment of
37497         Tag_ABI_HardFP_use.
37498
37499 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
37500
37501         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37502         pipeline model.
37503         config/arm/arm.md: Include the new Cortex-A57 model.
37504         (generic_sched): Don't use generic_sched when tuning for
37505         Cortex-A57.
37506
37507 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
37508             Uros Bizjak  <ubizjak@gmail.com>
37509
37510         * config/i386/i386.c (get_builtin_code_for_version): Add
37511         support for BMI and BMI2 multiversion functions.
37512
37513 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37514
37515         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37516         (extract_bit_field): Likewise.
37517         (extract_low_bits): Likewise.
37518         (expand_mult): Likewise.
37519         (expand_mult_highpart_adjust): Likewise.
37520
37521 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
37522
37523         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37524         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37525         * config/i386/i386.c (processor_model): Add
37526         M_INTEL_COREI7_BROADWELL.
37527         (arch_names_table): Add "broadwell".
37528
37529 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
37530
37531         PR target/49263
37532         PR target/53987
37533         PR target/64345
37534         PR target/59533
37535         PR target/52933
37536         PR target/54236
37537         PR target/51244
37538         * config/sh/sh-protos.h
37539         (sh_extending_set_of_reg::can_use_as_unextended_reg,
37540         sh_extending_set_of_reg::use_as_unextended_reg,
37541         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37542         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37543         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37544         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37545         (sh_treg_insns): New class.
37546         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37547         (scope_counter): New class.
37548         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37549         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37550         sh_extending_set_of_reg::can_use_as_unextended_reg,
37551         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37552         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37553         sh_split_treg_set_expr): New functions.
37554         (addsubcosts): Handle treg_set_expr.
37555         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37556         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37557         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37558         (sh_insn_operands_modified_between_p): Make non-static.
37559         * config/sh/predicates.md (zero_extend_movu_operand): Allow
37560         simple_mem_operand in addition to displacement_mem_operand.
37561         (zero_extend_operand): Don't allow zero_extend_movu_operand.
37562         (treg_set_expr, treg_set_expr_not_const01,
37563         arith_reg_or_treg_set_expr): New predicates.
37564         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37565         arith_or_int_operand instead of logical_operand.  Convert to
37566         insn_and_split.  Try to optimize constant operand in splitter.
37567         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
37568         (*tstqi_t_zero): Delete.
37569         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37570         (tstsi_t_and_not): Delete.
37571         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37572         Convert to insn_and_split.
37573         (unnamed split, tstsi_t_zero_extract_xor,
37574         tstsi_t_zero_extract_subreg_xor_little,
37575         tstsi_t_zero_extract_subreg_xor_big): Delete.
37576         (*tstsi_t_shift_mask): New insn_and_split.
37577         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37578         to recombine with surrounding insns when splitting.
37579         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37580         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37581         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37582         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37583         (*cbranch_div0s: Delete.
37584         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37585         Try to recombine with surrounding insns when splitting.  Add operand
37586         order variants.
37587         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37588         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37589         *addc_r_r_msb, *addc_2r_msb): Delete.
37590         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
37591         order variant.
37592         (*addc_negreg_t): New insn_and_split.
37593         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37594         Try to recombine with surrounding insns when splitting.
37595         Add operand order variants.
37596         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37597         insn_and_split patterns.
37598         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
37599         surrounding insns when splitting.
37600         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37601         (*rotcl): Likewise.  Add zero_extract variant.
37602         (*ashrsi2_31): New insn_and_split.
37603         (*negc): Convert to insn_and_split.  Use treg_set_expr.
37604         (*zero_extend<mode>si2_disp_mem): Update comment.
37605         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37606         condition.
37607         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
37608         with surrounding insns when splitting.
37609         (any_treg_expr_to_reg): New insn_and_split.
37610         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37611         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37612         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37613         *zero_extract_2): New single bit zero extract patterns.
37614         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37615         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37616         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37617         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37618         set destination.
37619         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37620         register_operand for set source.
37621
37622 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
37623
37624         * i386.opt (prefetch_sse): New targetsave.
37625         * i386.c (ix86_function_specific_save): Save prefetch_sse.
37626         (ix86_function_specific_restore): Restore prefetch_sse and initialize
37627         ix86_cost/ix86_tune_cost.
37628
37629 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37630
37631         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37632         Support the JIT by using 0 as the language type.
37633
37634 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
37635
37636         PR target/64317
37637         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
37638         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37639         (mark_regno_live, process_bb_lives): Pass new parameter value to
37640         make_hard_regno_born.
37641
37642 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37643
37644         PR rtl-optimization/63637
37645         PR rtl-optimization/60663
37646         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37647         if elt->cost is MAX_COST for ASM_OPERANDS.
37648         (find_sets_in_insn): Fix up comment typo.
37649         (cse_insn): Don't set src_volatile for all non-volatile
37650         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37651         or with "memory" clobber.  Set elt->cost to MAX_COST
37652         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
37653         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37654
37655 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37656
37657         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37658         alternative 1.
37659
37660 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37661
37662         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37663         libgcc/config/i386/elf-lib.h.
37664
37665 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37666
37667         PR driver/64737
37668         * gcc.c (print_configuration): Don't print a blank line at the end
37669         here...
37670         (run_attempt): ... but here unstead.
37671
37672         PR middle-end/64734
37673         * omp-low.c (scan_sharing_clauses): Don't ignore
37674         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37675         on target data/update constructs.
37676
37677 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37678
37679         PR target/50928
37680         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37681         (DEBUG_RELOAD): Removed define.
37682         (m32c_limit_reload_class): Enable traces with if DEBUG0.
37683         (m32c_function_arg): Added a type cast.
37684         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37685         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37686         * config/m32c/bitops.md (andqi3_16): Likewise.
37687         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37688         (push_a01_l): Likewise.
37689
37690 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37691
37692         PR jit/64721
37693         * main.c (main): Construct toplev instances with init_signals=true.
37694         * toplev.c (general_init): Add param "init_signals", and use it to
37695         conditionalize the calls to signal and host_hooks.extra_signals.
37696         (toplev::toplev): Add param "init_signals".
37697         (toplev::main): When invoking general_init, pass m_init_signals
37698         to control whether signal-handlers are installed.
37699         * toplev.h (toplev::toplev): Add param "init_signals".
37700         (toplev::m_init_signals): New field.
37701
37702 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37703
37704         PR jit/64722
37705         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37706         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37707         latter may be affected by the former (e.g. on i686).
37708
37709 2015-01-23  Martin Liska  <mliska@suse.cz>
37710
37711         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37712         false positive during profiledbootstrap.
37713
37714 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37715
37716         PR libgomp/64672
37717         * lto-opts.c (lto_write_options): Output non-explicit conservative
37718         -fno-openacc.
37719         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37720         (append_compiler_options): Pass -fopenacc through.
37721
37722 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37723
37724         PR libgomp/64707
37725         * lto-opts.c (lto_write_options): Output non-explicit conservative
37726         -fno-openmp.
37727         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37728         (append_compiler_options): Pass -fopenmp through.
37729
37730 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37731
37732         PR debug/64511
37733         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37734         GTY markup.
37735
37736         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37737         * diagnostic.def (DK_ICE_NOBT): New kind.
37738         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37739         like DK_ICE, but never print backtrace.
37740         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37741         (internal_error_no_backtrace): New function.
37742         * gcc.c (execute): Use internal_error_no_backtrace instead of
37743         internal_error.
37744
37745 2015-01-22  Jeff Law  <law@redhat.com>
37746
37747         PR target/52076
37748         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37749         improve code density for small immediate to memory case.
37750         (insv): Better handle bitfield assignments when the field is
37751         being set to all ones.
37752         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37753         operand predicate.
37754
37755 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37756             Jakub Jelinek  <jakub@redhat.com>
37757
37758         PR middle-end/64729
37759         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37760         for !TARGET_LIBC_PROVIDES_SSP version and
37761         -fstack-protector-{all,strong,explicit} otherwise.
37762         * config/freebsd.h (LINK_SSP_SPEC): Handle
37763         -fstack-protector-{strong,explicit}.
37764
37765 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
37766             H.J. Lu  <hongjiu.lu@intel.com>
37767
37768         PR ipa/64694
37769         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37770         heap.
37771
37772 2015-01-22  Wei Mi  <wmi@google.com>
37773
37774         PR rtl-optimization/64557
37775         * dse.c (record_store): Call get_addr for mem_addr.
37776         (check_mem_read_rtx): Likewise.
37777
37778 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
37779
37780         * fold-const.c (const_binop): Add early return for non-tcc_binary.
37781
37782 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
37783
37784         * toplev.c (init_local_tick): Process the failure when read
37785         fails for random_seed.
37786
37787         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37788         'pretty_name' to avoid memory overflow.
37789
37790 2015-01-22  Richard Biener  <rguenther@suse.de>
37791
37792         PR middle-end/64728
37793         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37794         abnormal coalescing on undefined SSA names.
37795
37796 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
37797
37798         PR target/64688
37799         PR target/64477
37800         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37801         for alternative 3.
37802         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37803
37804 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
37805
37806         PR middle-end/63325
37807         * fold-const.c (fold_checksum_tree): Don't include value of
37808         expr->decl_with_vis.symtab_node in the checksum.
37809
37810 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37811
37812         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37813
37814 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
37815
37816         PR driver/64690
37817         * gcc.c (insert_comments): New function.
37818         (try_generate_repro): Call it.
37819         (append_text): Removed.
37820
37821 2015-01-22  Richard Biener  <rguenther@suse.de>
37822
37823         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37824         with IL incompatible options.  Properly honor user optimize
37825         attributes.
37826
37827 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
37828
37829         PR rtl-optimization/64682
37830         * combine.c (distribute_notes): When moving a death note for
37831         a register that is set in the new I2, make sure to put it
37832         before that new I2.
37833
37834 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
37835
37836         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37837         not TARGET_DEFAULT.
37838
37839 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
37840
37841         PR debug/64511
37842         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37843         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37844         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37845
37846         PR sanitizer/64706
37847         * doc/invoke.texi (-fsanitize=vptr): Document.
37848
37849         PR rtl-optimization/62078
37850         * dse.c: Include cfgcleanup.h.
37851         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37852         anything call purge_all_dead_edges and cleanup_cfg at the end
37853         of the pass.
37854
37855 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
37856
37857         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37858         edges.
37859
37860 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37861
37862         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37863         decl attribute.
37864
37865 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37866             Tejas Belagod <Tejas.Belagod@arm.com>
37867
37868         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37869         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37870         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37871         Removed.
37872
37873 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37874             Tejas Belagod <Tejas.Belagod@arm.com>
37875
37876         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37877         (aarch64_reverse_mask): New decls.
37878         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37879         (insn_count): New mode_attr.
37880         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37881         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37882         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37883         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37884         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37885         (aarch64_simd_st4): New patterns.
37886         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37887         (aarch64_reverse_mask): New functions.
37888
37889 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37890
37891         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37892         Declare.
37893         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37894         addressing modes for BE.
37895         (aarch64_print_operand): Add 'R' specifier.
37896         (aarch64_simd_disambiguate_copy): Delete.
37897         (aarch64_simd_emit_reg_reg_move): New function.
37898         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37899         in define_splits for structural moves.
37900         (mov<mode>): Use less restrictive predicates.
37901         (*aarch64_mov<mode>): Simplify and only allow for LE.
37902         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37903
37904 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37905
37906         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37907
37908 2015-01-21  Richard Henderson  <rth@redhat.com>
37909
37910         PR target/64669
37911         * ccmp.c (used_in_cond_stmt_p): Remove.
37912         (expand_ccmp_expr): Don't use it.
37913
37914 2015-01-21  Nick Clifton  <nickc@redhat.com>
37915
37916         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37917         PARALLELs.
37918
37919 2015-01-21  Richard Biener  <rguenther@suse.de>
37920
37921         PR middle-end/64313
37922         * tree-core.h (builtin_info, builtin_info_type): Turn from
37923         an object with two arrays into an array of an object with
37924         decl and two flags, implicit_p and declared_p.
37925         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37926         set_builtin_decl, set_builtin_decl_implicit_p,
37927         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37928         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37929         * builtins.c (builtin_info): Adjust.
37930         * gimplify.c (gimplify_addr_expr): References to builtins
37931         that have been declared by the user makes them eligible for
37932         use by the compiler.  Call set_builtin_decl_implicit_p on them.
37933
37934 2015-01-20  Jeff Law  <law@redhat.com>
37935
37936         PR target/59946
37937         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37938         allow pc-relative addresses in operand predicates or constraints.
37939
37940 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
37941
37942         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37943         neon on aarch32 processors for stringops.
37944
37945 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37946
37947         PR ipa/63576
37948         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37949
37950 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37951
37952         PR lto/45375
37953         * ipa-inline.c: Include lto-streamer.h
37954         (report_inline_failed_reason): Output source file differences and
37955         flags on optimization/target node mismatch.
37956         (can_inline_edge_p): Consider caller to be the outer inline function;
37957         be less restrictive about matching opimize and optimize_size attributes.
37958         (inline_account_function_p): Break out from ...
37959         (inline_small_functions): ... here.
37960         * ipa-inline-transform.c (clone_inlined_nodes): Use
37961         inline_account_function_p.
37962         (inline_call): Use optimize attribution; use inline_account_function_p.
37963         (inline_transform): Use opt_for_fn.
37964         * ipa-inline.h (inline_account_function_p): Declare.
37965
37966 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
37967
37968         PR debug/64663
37969         * dwarf2out.c (decl_piece_node): Don't put bitsize into
37970         mode if bitsize <= 0.
37971         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37972         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37973         sizes and positions.
37974
37975 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
37976
37977         * config/nios2/nios2.c (nios2_asm_file_end): Implement
37978         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37979         needed.
37980         (TARGET_ASM_FILE_END): Define.
37981
37982 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37983
37984         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37985         (struct tune_params): Use the enum.
37986         * arm.c (arm_*_tune): Update.
37987         (arm_option_override): Update.
37988
37989 2015-01-20  Richard Biener  <rguenther@suse.de>
37990
37991         PR ipa/64684
37992         * ipa-reference.c (add_static_var): Inline ...
37993         (analyze_function): ... here after splitting out from ...
37994         (is_proper_for_analysis): ... this.
37995
37996 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
37997
37998         PR target/64149
37999         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38000         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38001         replace the conditional with it's true branch.
38002         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38003         (arm_lra_p): Remove.
38004
38005 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
38006
38007         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38008
38009 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38010
38011         * config/tilegx/mul-tables.c: Move symtab.h include after
38012         coretypes.h include.
38013         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38014         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38015         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38016         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38017         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38018
38019 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
38020
38021         PR bootstrap/64676
38022         Revert:
38023         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38024
38025         PR rtl-optimization/64081
38026         * loop-iv.c (def_pred_latch_p): New function.
38027         (latch_dominating_def): Allow specific cases with non-single
38028         definitions.
38029         (iv_get_reaching_def): Likewise.
38030         (check_complex_exit_p): New function.
38031         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38032         with exits not executing on any iteration.
38033
38034 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38035
38036         PR lto/45375
38037         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38038         to set branch cost.
38039
38040 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38041
38042         PR lto/45375
38043         * i386.c (gate): Check flag_expensive_optimizations and
38044         optimize_size.
38045         (ix86_option_override_internal): Drop optimize_size condition
38046         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38047         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38048         MASK_PREFER_AVX128.
38049         (ix86_avx256_split_vector_move_misalign,
38050         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38051         * sse.md (all uses of TARGET_PREFER_AVX128): Add
38052         optimize_insn_for_speed_p check.
38053
38054 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
38055
38056         * config/mips/mips.h (FP_ASM_SPEC): New define.
38057         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38058         instead.
38059
38060 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
38061
38062         PR target/53988
38063         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38064         nullptr for insn when reaching the first insn.
38065         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38066         (sh_insn_operands_modified_between_p): Add nullptr check.
38067         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
38068         sign extending mem load if the insn contains any UNSPEC or
38069         UNSPEC_VOLATILE.
38070
38071 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38072
38073         * params.def (inline-unit-growth): Drop to 15%.
38074         * invoke.texi (inline-unit-growth): Document change.
38075
38076 2015-01-19  Martin Liska  <mliska@suse.cz>
38077
38078         PR ipa/64668
38079         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38080         function for second argument of OBJ_TYPE_REF.
38081
38082 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38083
38084         PR ipa/64218
38085         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38086         whether function is an alias.
38087
38088 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38089
38090         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38091         cases.
38092
38093 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
38094
38095         PR rtl-optimization/64671
38096         * lra-remat.c (operand_to_remat): Don't consider jump and call
38097         insns.
38098
38099 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
38100
38101         PR target/59828
38102         * config/rs6000/default64.h: Include rs6000-cpus.def.
38103         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38104         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38105         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38106         and POWER8.
38107         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38108         POWER8.
38109         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38110         pseudo-op to specify assembler dialect.
38111
38112 2015-01-19  Martin Liska  <mliska@suse.cz>
38113
38114         PR ipa/64664
38115         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38116         Handle safe potentially removed nodes during filtering.
38117
38118 2015-01-19  Martin Liska  <mliska@suse.cz>
38119
38120         * doc/extend.texi (no_icf): Add new attribute description.
38121         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38122         where the pass attempts to merge a function with no_icf attribute.
38123
38124 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38125
38126         PR target/64532
38127         * doc/md.texi (ARM Options): Document register constraints.
38128
38129 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
38130             Andrew Pinski  <apinski@cavium.com>
38131
38132         PR target/64304
38133         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38134         (ashl<mode>3): Don't expand if operands[2] is not constant.
38135
38136 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38137
38138         PR target/64448
38139         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38140         Match xor-and-xor RTL pattern.
38141
38142 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38143
38144         PR rtl-optimization/64081
38145         * loop-iv.c (def_pred_latch_p): New function.
38146         (latch_dominating_def): Allow specific cases with non-single
38147         definitions.
38148         (iv_get_reaching_def): Likewise.
38149         (check_complex_exit_p): New function.
38150         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38151         with exits not executing on any iteration.
38152
38153 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
38154
38155         * common.opt (fgraphite): Fix a typo.
38156
38157 2015-01-19  Felix Yang  <felix.yang@huawei.com>
38158
38159         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38160         pattern.
38161         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38162         uminp, smax_nanp, smin_nanp): New builtins.
38163         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38164         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38165         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38166         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38167         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38168         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38169         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38170         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38171         vpminnms_f32): Rewrite using builtin functions.
38172
38173 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
38174
38175         PR libgomp/64625
38176         * omp-low.c (offload_symbol_decl): Remove variable.
38177         (get_offload_symbol_decl): Remove function.
38178         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38179         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38180         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38181         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38182         BUILT_IN_GOACC_UPDATE don't pass it at all.
38183
38184 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38185
38186         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38187         callers.
38188
38189 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38190
38191         * ipa-chkp.c (chkp_produce_thunks): Add early param
38192         to split thunks production into two passes.  Keep
38193         'always_inline' function bodies after the first pass.
38194         (pass_data_ipa_chkp_early_produce_thunks): New.
38195         (pass_ipa_chkp_early_produce_thunks): New.
38196         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38197         chkp_produce_thunks signature.
38198         (make_pass_ipa_chkp_early_produce_thunks): New.
38199         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38200         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38201         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38202
38203 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38204
38205         * cgraph.c (cgraph_node::dump): Dump profile flags.
38206
38207 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
38208
38209         PR target/64652
38210         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38211         reg appear first in the parallel.
38212
38213 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38214
38215         * ipa-reference.c (set_reference_optimization_summary,
38216         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38217         disabled.
38218         (ignore_module_statics): New static var.
38219         (propagate_bits): If ipa-reference is disabled, do not look into local
38220         properties.
38221         (analyze_function): Disable analysis when ipa_reference is disabled.
38222         (generate_summary): Do not dump when reference is disabled;
38223         collect vars accessed from functions with ipa-reference disabled.
38224         (get_read_write_all_from_node): When ipa-reference is disabled, use the
38225         node flags.
38226         (gate): Enable for LTO.
38227         (ignore_edge_p): New function.
38228         (propagate): Skip functions w/o ipa-reference analysis.
38229         * optc-save-gen.awk: Handle optimize_debug correctly.
38230         * opth-gen.awk: Likewise.
38231         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38232         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38233         fira-share-save-slots, fira-share-spill-slots,
38234         fmodulo-sched-allow-regmoves, fpartial-inlining,
38235         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38236         ftracer, ftree-parallelize-loops, fassociative-math,
38237         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38238         Optimization
38239         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38240         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38241         Optimization.
38242         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38243         Fix for IPA.
38244
38245 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38246
38247         PR ipa/64378
38248         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38249         flag correctly.
38250         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38251
38252 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
38253
38254         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38255         Remove duplicate option listings.
38256
38257 2015-01-18  Felix Yang  <felix.yang@huawei.com>
38258
38259         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38260         (autofdo_source_profile::get_callsite_total_count,
38261         function_instance::get_function_instance_by_decl,
38262         string_table::get_index, string_table::get_index_by_decl,
38263         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38264         Fix comment typos. Reformatting and minor code rearrangement.
38265
38266 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38267
38268         * config/rs6000/rs6000.md (probe_stack): Delete.
38269         (probe_stack_address): New.
38270
38271 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38272
38273         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38274         to test for 32-bit ABIs, not !TARGET_POWERPC64.
38275
38276 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38277
38278         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38279         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
38280         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
38281         snafu.
38282         (rs6000_libcall_value): Use the new function.
38283
38284 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
38285
38286         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38287
38288 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
38289
38290         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38291         implement a more precise life analysis for it during backward scan.
38292
38293 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
38294
38295         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38296
38297 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
38298
38299         PR rtl-optimization/52773
38300         * calls.c (emit_library_call_value): When pushing arguments use
38301         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38302         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
38303         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38304
38305 2015-01-17  Jeff Law  <law@redhat.com>
38306
38307         PR rtl-optimization/32790
38308         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38309         not ZERO_EXTEND in SET_DESTs.
38310
38311 2015-01-17  Alan Modra  <amodra@gmail.com>
38312
38313         * cprop.c (do_local_cprop): Revert last change.
38314
38315 2015-01-16  DJ Delorie  <dj@redhat.com>
38316             Nick Clifton  <nickc@redhat.com>
38317
38318         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38319         (addhi3_real): Likewise.  Fix [HL+0] syntax.
38320         (subqi3_real): Likewise.
38321         (subhi3_real): Likewise.
38322         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
38323         (cbranchhi4_real): Likewise.
38324         (cbranchhi4_real_inverted): Likewise.
38325         (cbranchsi4_real_lt): Likewise.
38326         (cbranchsi4_real_ge): Likewise.
38327         (cbranchsi4_real_ge): Likewise.
38328         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38329         (sub<mode>3_virt): Likewise.
38330         (cbranchqi4_virt): Likewise.
38331         (cbranchhi4_virt): Likewise.
38332         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38333         always use '[reg+imm]' even when imm is zero.
38334         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38335         (rl78_general_operand): New.
38336         (rl78_nonimmediate_operand): New.
38337         (rl78_nonfar_operand): Use them.
38338         (rl78_nonfar_nonimm_operand): Likewise.
38339         (rl78_stack_based_mem): Fix.
38340         * config/rl78/constraints.md (Ibqi): New.
38341         (IBqi): New.
38342         (Wsa): New.
38343         (Wsf): New.
38344         (Cs1): Fix.
38345         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38346         (iorqi3): Likewise.
38347         (xorqi3): Likewise.
38348         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38349
38350         * config/rl78/constrains (Qs8): New constraint.
38351         * config/rl78/rl78.c (rl78_flags_already_set): New function.
38352         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38353         * config/rl78/rl78-real.md (update_Z): New attribute.
38354         Update patterns to set it.
38355         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38356         shorter compare and branch sequence can be used.
38357         (cbranchhi4_real): Likewise.
38358         (cbranchhi4_real_inverted): Likewise.
38359
38360         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38361         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38362         address space.
38363         * config/rl78/rl78.c (rl78_get_name_encoding): New.
38364         (rl78_option_override): Allow -mes0 only if C.
38365         (characterize_address): Support subregs of symbol_refs.
38366         (rl78_addr_space_address_mode): Move.  Add __near.
38367         (rl78_far_p): Likewise.
38368         (rl78_addr_space_pointer_mode): Likewise.
38369         (rl78_as_legitimate_address): Likewise.
38370         (rl78_addr_space_subset_p): Likewise.
38371         (rl78_addr_space_convert): Likewise.
38372         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38373         symbols with -mes0.
38374         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
38375         addressing.
38376         (rl78_alloc_physical_registers_op1): Change logic to prefer
38377         symbol[BC] addressing.
38378         (frodata_section): New.
38379         (rl78_asm_init_sections): Initialize it.
38380         (rl78_select_section): Put __far readonly symbols in .frodata.
38381         (rl78_make_type_far): New.
38382         (rl78_insert_attributes): Force all readonly symbols to be
38383         __far when -mes0.
38384         (rl78_asm_out_integer): New.
38385         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38386         * config/rl78/rl78.opt (-mes0): New.
38387
38388         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38389         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38390         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38391         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38392         (rl78_saddr_p): New.
38393         (rl78_output_aligned_common): New.
38394         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38395         (rl78_handle_saddr_attribute): New.
38396         (rl78_handle_naked_attribute): New.
38397         (rl78_attribute_table): Add saddr.
38398         (rl78_print_operand_1): Don't print '!' on saddr operands.
38399         (rl78_print_operand_1): Strip encodings.
38400         (rl78_sfr_p): New.
38401         (rl78_strip_name_encoding): New.
38402         (rl78_attrlist_to_encoding): New.
38403         (rl78_encode_section_info): New.
38404         (rl78_asm_init_sections): New.
38405         (rl78_select_section): New.
38406         (rl78_output_labelref): New.
38407         (rl78_output_aligned_common): New.
38408         (rl78_asm_out_integer): New.
38409         (rl78_asm_ctor_dtor): New.
38410         (rl78_asm_constructor): New.
38411         (rl78_asm_destructor): New.
38412
38413         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38414         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38415         (transcode_memory_rtx): Update.
38416         (rl78_expand_epilogue): Use A_REG instead of 0.
38417
38418 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38419
38420         * config/arm/arm-protos.h (struct tune_params): New field
38421         sched_autopref_queue_depth.
38422         * config/arm/arm.c (sched-int.h): Include header.
38423         (arm_first_cycle_multipass_dfa_lookahead_guard,)
38424         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38425         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38426         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38427         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38428         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38429         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38430         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38431         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
38432         * config/arm/t-arm (arm.o): Update.
38433         * haifa-sched.c (update_insn_after_change): Update.
38434         (rank_for_schedule): Use auto-prefetcher model, if requested.
38435         (autopref_multipass_init): New static function.
38436         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38437         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38438         variable for debug dumps.
38439         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38440         (autopref_multipass_dfa_lookahead_guard): New global function that
38441         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38442         (init_h_i_d): Update.
38443         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38444         * sched-int.h (enum autopref_multipass_data_status): New const enum.
38445         (autopref_multipass_data_): Structure for auto-prefetcher data.
38446         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38447         (struct _haifa_insn_data:autopref_multipass_data): New field.
38448         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38449         (autopref_multipass_dfa_lookahead_guard): Declare.
38450
38451 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38452
38453         * rtlanal.c (get_base_term): Handle SCRATCH.
38454
38455 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38456
38457         * config/aarch64/aarch64.c
38458         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38459         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38460         * config/arm/arm.c
38461         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38462         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38463
38464 2015-01-17  Alan Modra  <amodra@gmail.com>
38465
38466         * cprop.c (do_local_cprop): Disallow replacement of fixed
38467         hard registers.
38468
38469 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38470
38471         PR target/62066
38472         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38473         early return 0.
38474
38475 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38476
38477         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38478         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38479
38480 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38481
38482         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38483         * config/arm/thumb1.md: ... Here.
38484
38485 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38486
38487         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38488         TImode for TARGET_32BIT.
38489
38490 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38491
38492         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38493         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38494         as ...
38495         (rs6000_abi_word_mode): New function.
38496
38497 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38498
38499         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38500         instead of UNITS_PER_WORD to describe the size of stack slots.
38501
38502 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38503
38504         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38505         as rs6000_promote_function_mode.  Move comment to there.
38506         (rs6000_promote_function_mode): New function.
38507
38508 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38509
38510         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38511         -mpowerpc64 is active.
38512
38513 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38514
38515         PR middle-end/64353
38516         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38517         virtuals on start.
38518
38519 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38520
38521         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38522         introduced in revision 219724.
38523
38524 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38525             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38526
38527         PR target/64263
38528         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38529         destination is not a GP reg.
38530         (*movdi_aarch64): Likewise.
38531
38532 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
38533
38534         PR target/64623
38535         * config/rs6000/default64.h: Revert ISA change.
38536
38537 2015-01-16  Richard Biener  <rguenther@suse.de>
38538
38539         PR middle-end/64614
38540         * tree-ssa-uninit.c: Include tree-cfg.h.
38541         (MAX_SWITCH_CASES): New define.
38542         (convert_control_dep_chain_into_preds): Handle switch statements.
38543         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38544         (normalize_one_pred_1): Do not split bit-manipulations.
38545         Record (x & CST).
38546
38547 2015-01-16  Richard Biener  <rguenther@suse.de>
38548
38549         PR tree-optimization/64568
38550         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38551         complex load rewriting for TARGET_MEM_REFs.
38552
38553 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
38554
38555         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38556
38557 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
38558
38559         PR target/64149
38560         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38561         variable.
38562         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38563         (aarch64_lra_p): Remove.
38564
38565 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38566
38567         PR target/64363
38568         * ipa-chkp.h (chkp_instrumentable_p): New.
38569         * ipa-chkp.c: Include tree-inline.h.
38570         (chkp_instrumentable_p): New.
38571         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38572         Fix processing of not instrumentable functions.
38573         (chkp_versioning): Use chkp_instrumentable_p. Warn about
38574         not instrumentable functions.
38575         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38576         chkp_instrumentable_p.
38577         * tree-inline.h (copy_forbidden): New.
38578         * tree-inline.c (copy_forbidden): Not static anymore.
38579
38580 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38581
38582         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38583         ptr1, ptr2 unused.
38584
38585 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38586
38587         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38588         type OP_OUT to OP_INOUT.
38589
38590 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38591
38592         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38593         (high x) y) to y if x and y have the same base.
38594
38595 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38596
38597         * config/arm/cortex-a57.md: New.
38598         * config/aarch64/aarch64.md: Include it.
38599         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38600         * config/aarch64/aarch64-tune.md: Regenerate.
38601
38602 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
38603
38604         PR target/64015
38605         * ccmp.c (expand_ccmp_next): New function.
38606         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38607         and compare insn sequence.
38608         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38609         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38610         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38611         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38612         (*ccmp_ior): Changed to ccmp_ior<mode>.
38613         (cmp<mode>): New pattern.
38614         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38615         parameters.
38616         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38617
38618 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
38619
38620         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38621         _mm256_bsrli_epi128): New.
38622         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38623
38624 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38625
38626         * expmed.c (store_bit_field_using_insv): Improve warning message.
38627         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38628
38629 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38630
38631         PR rtl-optimization/64011
38632         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38633         there is partial overflow.
38634
38635 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38636
38637         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38638         prototype.
38639         (nds32_expand_epilogue_v3pop): Likewise.
38640         * config/nds32/nds32.md (sibcall): Define this for sibling call
38641         optimization.
38642         (sibcall_register): Likewise.
38643         (sibcall_immediate): Likewise.
38644         (sibcall_value): Likewise.
38645         (sibcall_value_register): Likewise.
38646         (sibcall_value_immediate): Likewise.
38647         (sibcall_epilogue): Likewise.
38648         (epilogue): Pass false to indicate this is not a sibcall epilogue.
38649         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38650         (nds32_expand_epilogue_v3pop): Likewise.
38651
38652 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38653
38654         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38655         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38656         (return_internal): New.
38657         (return): Define this named pattern.
38658         (simple_return): Define this named pattern.
38659         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38660         pattern instead of unspec_volatile_func_return.
38661         (nds32_expand_epilogue_v3pop): Likewise.
38662         (nds32_can_use_return_insn): New function.
38663
38664 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38665
38666         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38667         * config/nds32/nds32.md (pop25return): New.
38668         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38669         pop25return pattern.
38670
38671 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38672
38673         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38674         -mforbid-fp-as-gp, and -mex9 options.
38675
38676 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38677
38678         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38679         remove -mgp-direct option.
38680
38681 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38682
38683         * doc/invoke.texi (--param early-inlining-insns): Update default value.
38684         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38685
38686 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38687
38688         * ipa-inline.c (inline_small_functions): Work around hints
38689         cache issue.
38690
38691 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
38692
38693         PR target/59710
38694         * doc/invoke.texi (Option Summary): Document new Nios II
38695         -mgpopt= syntax.
38696         (Nios II Options): Likewise.
38697         * config/nios2/nios2.opt: Add -mgpopt= option support.
38698         Modify existing -mgpopt and -mno-gpopt options to be aliases.
38699         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38700         * config/nios2/nios2.c (nios2_option_override): Adjust
38701         -mgpopt defaulting.
38702         (nios2_in_small_data_p): Return true for explicit small data
38703         sections even with -G0.
38704         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38705         option choices.
38706
38707 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38708
38709         PR ipa/64612
38710         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38711         of comdat locals.
38712         (inline_call): Fix removal of aliases.
38713
38714 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38715
38716         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38717         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38718         * opts.c (common_handle_option): Add -fsanitize=vptr.
38719         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38720         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38721         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38722         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38723         (ubsan_expand_vptr_ifn): New prototype.
38724         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38725         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38726         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38727         expand_LOOP_VECTORIZED): Make argument nameless, remove
38728         ATTRIBUTE_UNUSED.
38729         (expand_UBSAN_VPTR): New function.
38730         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38731         in fn spec.
38732         (UBSAN_VPTR): New internal function.
38733         * sanopt.c (tree_map_traits): Renamed to ...
38734         (sanopt_tree_map_traits): ... this.
38735         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38736         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38737         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
38738         (maybe_optimize_ubsan_vptr_ifn): New function.
38739         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38740         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
38741         -fsanitize=vptr.
38742         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38743         internal calls like pure functions for aliasing, even when they
38744         have other side-effects that prevent making them ECF_PURE.
38745         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38746         (ubsan_expand_vptr_ifn): New function.
38747
38748 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38749
38750         PR rtl-optimization/64110
38751         * stmt.c (parse_output_constraint): Process '^' and '$'.
38752         (parse_input_constraint): Ditto.
38753         * lra-constraints.c (process_alt_operands): Process the new
38754         constraints.
38755         * ira-costs.c (record_reg_classes): Process the new constraint
38756         '^'.
38757         * genoutput.c (indep_constraints): Add '^' and '$'.
38758         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38759         * doc/md.texi: Add description of the new constraints.
38760
38761 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
38762             Bernd Schmidt  <bernds@codesourcery.com>
38763             Cesar Philippidis  <cesar@codesourcery.com>
38764             James Norris  <jnorris@codesourcery.com>
38765             Tom de Vries  <tom@codesourcery.com>
38766             Ilmir Usmanov  <i.usmanov@samsung.com>
38767             Dmitry Bocharnikov  <dmitry.b@samsung.com>
38768             Evgeny Gavrin  <e.gavrin@samsung.com>
38769             Jakub Jelinek  <jakub@redhat.com>
38770
38771         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38772         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38773         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38774         New function types.
38775         * builtins.c: Include "gomp-constants.h".
38776         (expand_builtin_acc_on_device): New function.
38777         (expand_builtin, is_inexpensive_builtin): Handle
38778         BUILT_IN_ACC_ON_DEVICE.
38779         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38780         New macros.
38781         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38782         flag_openmp.
38783         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38784         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38785         i386/intelmic-offload.h.
38786         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38787         to libgomp and its dependencies.
38788         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38789         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38790         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38791         * config/ia64/hpux.h (LIB_SPEC): Likewise.
38792         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38793         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38794         * doc/generic.texi: Update for OpenACC changes.
38795         * doc/gimple.texi: Likewise.
38796         * doc/invoke.texi: Likewise.
38797         * doc/sourcebuild.texi: Likewise.
38798         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38799         GF_OMP_FOR_KIND_OACC_LOOP.
38800         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38801         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38802         GF_OMP_TARGET_KIND_OACC_UPDATE,
38803         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38804         Dump more data.
38805         * gimple.c: Update comments for OpenACC changes.
38806         * gimple.def: Likewise.
38807         * gimple.h: Likewise.
38808         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38809         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38810         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38811         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38812         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38813         appropriate place.
38814         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38815         * gimplify.c: Include "gomp-constants.h".
38816         Update comments for OpenACC changes.
38817         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38818         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38819         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38820         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38821         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38822         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38823         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38824         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38825         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38826         OMP_CLAUSE_SEQ.
38827         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38828         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38829         OMP_CLAUSE_SET_MAP_KIND.
38830         (gimplify_oacc_cache): New function.
38831         (gimplify_omp_for): Handle OACC_LOOP.
38832         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38833         OACC_DATA.
38834         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38835         OACC_EXIT_DATA, OACC_UPDATE.
38836         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38837         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38838         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38839         (gimplify_body): Consider flag_openacc next to flag_openmp.
38840         * lto-streamer-out.c: Include "gomp-constants.h".
38841         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38842         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38843         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38844         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38845         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38846         (BUILT_IN_ACC_ON_DEVICE): New builtins.
38847         * omp-low.c: Include "gomp-constants.h".
38848         Update comments for OpenACC changes.
38849         (struct omp_context): Add reduction_map, gwv_below, gwv_this
38850         members.
38851         (extract_omp_for_data, use_pointer_for_field, install_var_field)
38852         (new_omp_context, delete_omp_context, scan_sharing_clauses)
38853         (create_omp_child_function, scan_omp_for, scan_omp_target)
38854         (check_omp_nesting_restrictions, lower_reduction_clauses)
38855         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38856         Update for OpenACC changes.
38857         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38858         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38859         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38860         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38861         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38862         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
38863         OMP_CLAUSE_MAP_*.
38864         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38865         Handle GF_OMP_FOR_KIND_OACC_LOOP.
38866         (expand_omp_target, lower_omp_target): Handle
38867         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38868         GF_OMP_TARGET_KIND_OACC_UPDATE,
38869         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38870         GF_OMP_TARGET_KIND_OACC_DATA.
38871         (pass_expand_omp::execute, execute_lower_omp)
38872         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38873         flag_openmp.
38874         (offload_symbol_decl): New variable.
38875         (oacc_get_reduction_array_id, oacc_max_threads)
38876         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38877         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38878         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38879         (oacc_gimple_assign, oacc_initialize_reduction_data)
38880         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38881         functions.
38882         (is_targetreg_ctx): Remove function.
38883         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38884         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38885         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38886         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38887         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38888         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38889         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38890         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38891         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38892         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38893         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38894         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38895         * tree-core.h: Update comments for OpenACC changes.
38896         (enum omp_clause_map_kind): Remove.
38897         (struct tree_omp_clause): Change type of map_kind member from enum
38898         omp_clause_map_kind to unsigned char.
38899         * tree-inline.c: Update comments for OpenACC changes.
38900         * tree-nested.c: Likewise.  Include "gomp-constants.h".
38901         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38902         (convert_tramp_reference_stmt, convert_gimple_call): Update for
38903         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38904         OMP_CLAUSE_SET_MAP_KIND.
38905         * tree-pretty-print.c: Include "gomp-constants.h".
38906         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38907         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38908         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38909         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38910         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38911         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
38912         instead of OMP_CLAUSE_MAP_*.
38913         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38914         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38915         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38916         * tree-streamer-in.c: Include "gomp-constants.h".
38917         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38918         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
38919         * tree-streamer-out.c: Include "gomp-constants.h".
38920         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38921         OMP_CLAUSE_MAP_*.
38922         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38923         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38924         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38925         * tree.c (omp_clause_num_ops): Update accordingly.
38926         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38927         Likewise.
38928         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38929         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38930         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38931         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38932         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38933         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38934         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38935         (OMP_CLAUSE_SET_MAP_KIND): New macro.
38936         * varpool.c (varpool_node::get_create): Consider flag_openacc next
38937         to flag_openmp.
38938         * config/i386/intelmic-offload.h: New file.
38939         * config/nvptx/offload.h: Likewise.
38940
38941 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38942
38943         * explow.h: Remove duplicate contents.
38944         * dojump.h: Likewise.
38945
38946 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
38947
38948         * arm.c (arm_xgene_tune): Add default initializer for instruction
38949         fusion.
38950
38951 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38952
38953         PR ipa/64068
38954         PR ipa/64559
38955         * ipa.c (symbol_table::remove_unreachable_nodes):
38956         Do not put abstract origins into boundary.
38957
38958 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
38959
38960         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38961         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38962
38963 2015-01-15  Steve Ellcey  <sellcey@mips.com>
38964
38965         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38966         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38967         builtins.def, and chkp-builtins.def.
38968
38969 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
38970
38971         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38972         ISA 2.7 (POWER8).
38973
38974 2015-01-15  Richard Biener  <rguenther@suse.de>
38975
38976         PR tree-optimization/61743
38977         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38978         information on PHIs for some simple cases.
38979
38980 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38981
38982         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38983         Include xgene1.md.
38984         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38985         * config/arm/arm-cores.def (xgene1): New entry.
38986         * config/arm/arm-tables.opt: Regenerate.
38987         * config/arm/arm-tune.md: Regenerate.
38988         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38989
38990 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38991
38992         * tree-if-conv.c: Include hash-map.h.
38993         (aggressive_if_conv): New variable.
38994         (fold_build_cond_expr): Add simplification of non-zero condition.
38995         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38996         destination block is not always executed.
38997         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38998         than two predecessors if AGGRESSIVE_IF_CONV is true.
38999         (if_convertible_stmt_p): Fix commentary.
39000         (all_preds_critical_p): New function.
39001         (has_pred_critical_p): New function.
39002         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39003         BB can have more than two predecessors and all incoming edges can be
39004         critical.
39005         (predicate_bbs): Skip predication for loop exit block, use build2_loc
39006         to compute predicate for true edge.
39007         (find_phi_replacement_condition): Delete this function.
39008         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39009         Allow interchange PHI arguments if EXTENDED is false.
39010         Change check that block containing reduction statement candidate
39011         is predecessor of phi-block since phi may have more than two arguments.
39012         (phi_args_hash_traits): New helper structure.
39013         (struct phi_args_hash_traits): New type.
39014         (phi_args_hash_traits::hash): New function.
39015         (phi_args_hash_traits::equal_keys): New function.
39016         (gen_phi_arg_condition): New function.
39017         (predicate_scalar_phi): Add handling of phi nodes with more than two
39018         arguments, delete COND and TRUE_BB arguments, insert body of
39019         find_phi_replacement_condition to predicate ordinary phi nodes.
39020         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39021         delete call of find_phi_replacement_condition and invoke
39022         predicate_scalar_phi with two arguments.
39023         (insert_gimplified_predicates): Add assert that non-predicated block
39024         don't have statements to insert.
39025         (ifcvt_split_critical_edges): New function.
39026         (ifcvt_split_def_stmt): Likewise.
39027         (ifcvt_walk_pattern_tree): Likewise.
39028         (stmt_is_root_of_bool_pattern): Likewise.
39029         (ifcvt_repair_bool_pattern): Likewise.
39030         (ifcvt_local_dce): Likewise.
39031         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39032         is copy of inner or outer loop force_vectorize field, invoke
39033         ifcvt_split_critical_edges, ifcvt_local_dce and
39034         ifcvt_repair_bool_pattern for aggressive if-conversion.
39035
39036 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
39037
39038         * config/aarch64/aarch64.md: Include xgene1.md.
39039         * config/aarch64/xgene1.md: New file.
39040
39041 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
39042
39043         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39044         xgene1 (APM XGene-1) core definition.
39045         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39046         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39047         * doc/invoke.texi: Document -mcpu=xgene1.
39048
39049 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39050
39051         * dojump.h: New header file.
39052         * explow.h: Likewise.
39053         * expr.h: Remove includes.
39054         Move expmed.c prototypes to expmed.h.
39055         Move dojump.c prototypes to dojump.h.
39056         Move alias.c prototypes to alias.h.
39057         Move explow.c prototypes to explow.h.
39058         Move calls.c prototypes to calls.h.
39059         Move emit-rtl.c prototypes to emit-rtl.h.
39060         Move varasm.c prototypes to varasm.h.
39061         Move stmt.c prototypes to stmt.h.
39062         (saved_pending_stack_adjust): Move to dojump.h.
39063         (adjust_address): Move to explow.h.
39064         (adjust_address_nv): Move to emit-rtl.h.
39065         (adjust_bitfield_address): Likewise.
39066         (adjust_bitfield_address_size): Likewise.
39067         (adjust_bitfield_address_nv): Likewise.
39068         (adjust_automodify_address_nv): Likewise.
39069         * explow.c (expr_size): Move to expr.c.
39070         (int_expr_size): Likewise.
39071         (tree_expr_size): Likewise.
39072         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39073         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39074         * genemit.c (main): Generate includes statistics.h, real.h,
39075         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39076         stmt.h.
39077         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39078         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39079         explow.h, emit-rtl.h, stmt.h.
39080         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39081         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39082         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39083         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39084         emit-rtl.h, varasm.h, stmt.h.
39085         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39086         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39087         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39088         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39089         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39090         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39091         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39092         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39093         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39094         tm.h tree.h varasm.h vec.h wide-int.h.
39095         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39096         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39097         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39098         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39099         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39100         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39101         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39102         * loop-iv.c: Likewise.
39103         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39104         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39105         statistics.h stmt.h tree.h varasm.h wide-int.h.
39106         * lra-constraints.c: Likewise.
39107         * lra-eliminations.c: Likewise.
39108         * lra-lives.c: Likewise.
39109         * lra-remat.c: Likewise.
39110         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39111         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39112         statistics.h stmt.h tree.h varasm.h wide-int.h.
39113         * hw-doloop.c: Likewise.
39114         * ira-color.c: Likewise.
39115         * ira-emit.c: Likewise.
39116         * loop-doloop.c: Likewise.
39117         * loop-invariant.c: Likewise.
39118         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39119         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39120         statistics.h stmt.h tree.h varasm.h wide-int.h.
39121         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39122         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39123         statistics.h stmt.h tree.h varasm.h wide-int.h.
39124         * combine-stack-adj.c: Likewise.
39125         * cse.c: Likewise.
39126         * ddg.c: Likewise.
39127         * ifcvt.c: Likewise.
39128         * ira-costs.c: Likewise.
39129         * jump.c: Likewise.
39130         * lra-coalesce.c: Likewise.
39131         * lra-spills.c: Likewise.
39132         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39133         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39134         stmt.h varasm.h wide-int.h.
39135         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39136         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39137         varasm.h.
39138         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39139         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39140         statistics.h stmt.h varasm.h wide-int.h.
39141         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39142         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39143         varasm.h wide-int.h.
39144         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39145         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39146         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39147         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39148         statistics.h stmt.h.
39149         * config/tilepro/tilepro.c: Likewise.
39150         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39151         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39152         * config/pdp11/pdp11.c: Likewise.
39153         * config/xtensa/xtensa.c: Likewise.
39154         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39155         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39156         varasm.h.
39157         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39158         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39159         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39160         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39161         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39162         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39163         * rtl-chkp.c: Likewise.
39164         * tree-chkp-opt.c: Likewise.
39165         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39166         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39167         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39168         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39169         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39170         statistics.h stmt.h.
39171         * tree-vect-data-refs.c: Likewise.
39172         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39173         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39174         rtl.h statistics.h stmt.h varasm.h.
39175         * internal-fn.c: Likewise.
39176         * ipa-icf-gimple.c: Likewise.
39177         * lto-section-out.c: Likewise.
39178         * tree-data-ref.c: Likewise.
39179         * tree-nested.c: Likewise.
39180         * tree-outof-ssa.c: Likewise.
39181         * tree-predcom.c: Likewise.
39182         * tree-pretty-print.c: Likewise.
39183         * tree-scalar-evolution.c: Likewise.
39184         * tree-ssa-strlen.c: Likewise.
39185         * tree-vect-loop.c: Likewise.
39186         * tree-vect-patterns.c: Likewise.
39187         * tree-vect-slp.c: Likewise.
39188         * tree-vect-stmts.c: Likewise.
39189         * tsan.c: Likewise.
39190         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39191         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39192         stmt.h.
39193         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39194         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39195         statistics.h stmt.h varasm.h.
39196         * loop-unroll.c: Likewise.
39197         * ubsan.c: Likewise.
39198         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39199         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39200         stmt.h varasm.h.
39201         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39202         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39203         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39204         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39205         statistics.h stmt.h.
39206         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39207         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39208         statistics.h stmt.h varasm.h.
39209         * gimple-match-head.c: Likewise.
39210         * lto-cgraph.c: Likewise.
39211         * lto-section-in.c: Likewise.
39212         * lto-streamer-in.c: Likewise.
39213         * lto-streamer-out.c: Likewise.
39214         * tree-affine.c: Likewise.
39215         * tree-cfg.c: Likewise.
39216         * tree-cfgcleanup.c: Likewise.
39217         * tree-if-conv.c: Likewise.
39218         * tree-into-ssa.c: Likewise.
39219         * tree-ssa-alias.c: Likewise.
39220         * tree-ssa-copyrename.c: Likewise.
39221         * tree-ssa-dse.c: Likewise.
39222         * tree-ssa-forwprop.c: Likewise.
39223         * tree-ssa-live.c: Likewise.
39224         * tree-ssa-math-opts.c: Likewise.
39225         * tree-ssa-pre.c: Likewise.
39226         * tree-ssa-sccvn.c: Likewise.
39227         * tree-tailcall.c: Likewise.
39228         * tree-vect-generic.c: Likewise.
39229         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39230         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39231         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39232         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39233         * varasm.c: Likewise.
39234         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39235         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39236         varasm.h.
39237         * init-regs.c: Likewise.
39238         * ira.c: Likewise.
39239         * omp-low.c: Likewise.
39240         * stack-ptr-mod.c: Likewise.
39241         * tree-ssa-reassoc.c: Likewise.
39242         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39243         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39244         varasm.h.
39245         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39246         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39247         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39248         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39249         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39250         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39251         * tree-ssa-phiopt.c: Likewise.
39252         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39253         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39254         * config/fr30/fr30.c: Likewise.
39255         * config/frv/frv.c: Likewise.
39256         * expr.c: Likewise.
39257         * final.c: Likewise.
39258         * optabs.c: Likewise.
39259         * passes.c: Likewise.
39260         * simplify-rtx.c: Likewise.
39261         * stmt.c: Likewise.
39262         * toplev.c: Likewise.
39263         * var-tracking.c: Likewise.
39264         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39265         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39266         * lower-subreg.c: Likewise.
39267         * postreload-gcse.c: Likewise.
39268         * ree.c: Likewise.
39269         * reginfo.c: Likewise.
39270         * store-motion.c: Likewise.
39271         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39272         fixed-value.h hashtab.h real.h stmt.h varasm.h.
39273         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39274         fixed-value.h hashtab.h statistics.h stmt.h.
39275         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39276         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39277         * except.c: Likewise.
39278         * explow.c: Likewise.
39279         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39280         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39281         varasm.h.
39282         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39283         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39284         * tree-ssa-structalias.c: Likewise.
39285         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39286         fixed-value.h insn-config.h real.h statistics.h.
39287         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39288         fixed-value.h insn-config.h real.h statistics.h stmt.h.
39289         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39290         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39291         * cfgbuild.c: Likewise.
39292         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39293         fixed-value.h real.h rtl.h statistics.h stmt.h.
39294         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39295         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39296         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39297         fixed-value.h real.h statistics.h stmt.h.
39298         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39299         fixed-value.h real.h statistics.h stmt.h varasm.h.
39300         * cprop.c: Likewise.
39301         * modulo-sched.c: Likewise.
39302         * postreload.c: Likewise.
39303         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39304         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39305         statistics.h stmt.h varasm.h.
39306         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39307         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39308         rtl.h statistics.h stmt.h varasm.h.
39309         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39310         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39311         varasm.h.
39312         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39313         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39314         varasm.h.
39315         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39316         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39317         varasm.h.
39318         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39319         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39320         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39321         function.h real.h statistics.h stmt.h varasm.h.
39322         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39323         insn-config.h real.h statistics.h stmt.h.
39324         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39325         statistics.h stmt.h.
39326         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39327         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39328         statistics.h stmt.h varasm.h.
39329         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39330         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39331         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39332         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39333         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39334         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39335         statistics.h stmt.h varasm.h.
39336         * ipa-polymorphic-call.c: Likewise.
39337         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39338         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39339         statistics.h stmt.h.
39340         * config/c6x/c6x.c: Likewise.
39341         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39342         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39343         statistics.h stmt.h varasm.h.
39344         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39345         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39346         stmt.h varasm.h.
39347         * ipa-split.c: Likewise.
39348         * tree-eh.c: Likewise.
39349         * tree-ssa-dce.c: Likewise.
39350         * tree-ssa-loop-niter.c: Likewise.
39351         * tree-vrp.c: Likewise.
39352         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39353         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39354         stmt.h.
39355         * config/nds32/nds32-fp-as-gp.c: Likewise.
39356         * config/nds32/nds32-intrinsic.c: Likewise.
39357         * config/nds32/nds32-isr.c: Likewise.
39358         * config/nds32/nds32-md-auxiliary.c: Likewise.
39359         * config/nds32/nds32-memory-manipulation.c: Likewise.
39360         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39361         * config/nds32/nds32-predicates.c: Likewise.
39362         * config/nds32/nds32.c: Likewise.
39363         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39364         fixed-value.h hashtab.h real.h statistics.h.
39365         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39366         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39367         * config/arm/arm.c: Likewise.
39368         * config/avr/avr.c: Likewise.
39369         * config/bfin/bfin.c: Likewise.
39370         * config/h8300/h8300.c: Likewise.
39371         * config/i386/i386.c: Likewise.
39372         * config/ia64/ia64.c: Likewise.
39373         * config/iq2000/iq2000.c: Likewise.
39374         * config/m32c/m32c.c: Likewise.
39375         * config/m32r/m32r.c: Likewise.
39376         * config/m68k/m68k.c: Likewise.
39377         * config/mcore/mcore.c: Likewise.
39378         * config/mep/mep.c: Likewise.
39379         * config/mips/mips.c: Likewise.
39380         * config/mn10300/mn10300.c: Likewise.
39381         * config/moxie/moxie.c: Likewise.
39382         * config/pa/pa.c: Likewise.
39383         * config/rl78/rl78.c: Likewise.
39384         * config/rx/rx.c: Likewise.
39385         * config/s390/s390.c: Likewise.
39386         * config/sh/sh.c: Likewise.
39387         * config/sparc/sparc.c: Likewise.
39388         * config/spu/spu.c: Likewise.
39389         * config/stormy16/stormy16.c: Likewise.
39390         * config/v850/v850.c: Likewise.
39391         * config/vax/vax.c: Likewise.
39392         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39393         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39394         * config/msp430/msp430.c: Likewise.
39395         * predict.c: Likewise.
39396         * value-prof.c: Likewise.
39397         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39398         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39399         * config/microblaze/microblaze.c: Likewise.
39400         * config/nios2/nios2.c: Likewise.
39401         * config/rs6000/rs6000.c: Likewise.
39402         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39403         insn-config.h real.h rtl.h statistics.h stmt.h.
39404         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39405         insn-config.h real.h statistics.h stmt.h.
39406         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39407         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39408         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39409         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39410         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39411         fixed-value.h real.h statistics.h stmt.h.
39412         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39413         fixed-value.h statistics.h stmt.h.
39414         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39415         stmt.h.
39416
39417 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39418
39419         * gengtype.c (create_user_defined_type): Workaround
39420         -Wmaybe-uninitialized false positives.
39421         * cse.c (fold_rtx): Likewise.
39422         * loop-invariant.c (gain_for_invariant): Likewise.
39423
39424 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
39425
39426         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39427         set the memory attributes in all cases but clear MEM_EXPR if need be.
39428
39429 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39430
39431         PR tree-optimization/64434
39432         * cfgexpand.c (reorder_operands): New function.
39433         (expand_gimple_basic_block): Insert call of reorder_operands if
39434         optimized is true.
39435
39436 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
39437
39438         * config/mips/micromips.md (*swp): Remove explicit parallel.
39439         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39440         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39441         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39442         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39443         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39444         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39445         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39446         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39447         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39448         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39449         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39450         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39451         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39452         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39453         (mips_wrdsp): Likewise.
39454         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39455         parallel.
39456         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39457         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39458         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39459         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39460         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39461         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39462         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39463         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39464         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39465
39466 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39467
39468         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39469         (mips_print_operand): Support 'y' to print exact log2 in decimal
39470         of a const_int.
39471         * config/mips/mips.h (ISA_HAS_LSA): New define.
39472         (ISA_HAS_DLSA): Likewise.
39473         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39474         * config/mips/predicates.md (const_immlsa_operand): New predicate.
39475
39476 2015-01-15  Martin Liska  <mliska@suse.cz>
39477
39478         PR target/64377
39479         * optc-save-gen.awk: Add support for array types.
39480
39481 2015-01-15  Richard Biener  <rguenther@suse.de>
39482
39483         PR middle-end/64365
39484         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39485         for MEM_REF access functions with the same base can never partially
39486         overlap.
39487
39488 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
39489
39490         * common.opt: New option -fstack-protector-explicit.
39491         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39492         (stack_protect_decl_phase): Handle stack_protect attribute for
39493         explicit stack protection requests.
39494         (expand_used_vars): Similarly.
39495         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39496         * doc/extend.texi: Add documentation for "stack_protect" attribute.
39497         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39498
39499 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
39500
39501         PR target/53988
39502         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39503         reg-reg copies.
39504         (sh_extending_set_of_reg): New struct.
39505         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39506         sh_remove_reg_dead_or_unused_notes): New Declarations.
39507         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39508         sh_find_extending_set_of_reg, sh_split_tst_subregs,
39509         sh_extending_set_of_reg::use_as_extended_reg): New functions.
39510         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39511         convert to insn_and_split and use new function sh_split_tst_subregs.
39512
39513 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
39514
39515         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39516         option.
39517         (Optimization Options): Move -fuse-ld documentation to...
39518         (Link Options): ...here.
39519
39520 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39521
39522         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39523         offsets.
39524         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39525         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39526         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39527         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39528         instead of ZR for the memory operand of LL/SC.
39529         (compare_and_swap_12, sync_add<mode>): Likewise.
39530         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39531         (sync_new_<optab>_12, sync_nand_12): Likewise.
39532         (sync_old_nand_12, sync_new_nand_12): Likewise.
39533         (sync_sub<mode>, sync_old_add<mode>): Likewise.
39534         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39535         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39536         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39537         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39538         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39539         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39540         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39541         * doc/md.texi (ZC): Update description.
39542
39543 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39544
39545         * builtins.c (expand_builtin_atomic_exchange): Remove error when
39546         memory model is CONSUME.
39547         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39548         expand_builtin_atomic_store): Change invalid memory model errors to
39549         warnings.
39550         (expand_builtin_atomic_clear): Change invalid model errors to warnings
39551         and issue warning for CONSUME.
39552
39553 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
39554
39555         * lto-cgraph: Update function comments for
39556         lto_symtab_encoder_encode_*.
39557
39558 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39559
39560         * Makefile.in (site.exp): Do not set ENABLE_LTO.
39561
39562 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39563
39564         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39565         * lto-cgraph.c (select_what_to_stream): Remove argument, use
39566         lto_stream_offload_p instead.
39567         * lto-streamer.h (select_what_to_stream): Remove argument.
39568         * passes.c (ipa_write_summaries): Likewise.
39569         * tree-pass.h (ipa_write_summaries): Likewise.
39570
39571 2015-01-14  Richard Biener  <rguenther@suse.de>
39572
39573         PR tree-optimization/59354
39574         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39575         groups larger than the slp group size as having gaps.
39576
39577 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39578
39579         PR middle-end/59448
39580         * builtins.c (get_memmodel): Promote consume to acquire always.
39581
39582 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39583
39584         PR target/64386
39585         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39586         V32HImode.
39587
39588 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39589
39590         PR target/64393
39591         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39592         Enable AVX512BW.
39593         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39594         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39595         AVX512VBMI, as it implies AVX512BW.
39596
39597 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39598
39599         PR target/64387
39600         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39601         (vec_unpacks_hi_v16sf): Ditto.
39602
39603 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39604
39605         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39606         is not available.
39607
39608 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39609
39610         * doc/invoke.texi (mapcs): Mention deprecation.
39611         (mapcs-frame): Likewise.
39612
39613 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39614
39615         PR target/64453
39616         * config/arm/arm.c (callee_saved_reg_p): Define.
39617         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39618         register is callee saved instead of !call_used_regs[reg].
39619         (thumb1_compute_save_reg_mask): Likewise.
39620
39621 2015-01-14  Hale Wang  <hale.wang@arm.com>
39622
39623         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39624         Cortex-M7.
39625
39626 2015-01-14  Richard Biener  <rguenther@suse.de>
39627
39628         PR lto/64415
39629         * tree-inline.c (insert_debug_decl_map): Check destination
39630         function MAY_HAVE_DEBUG_STMTS.
39631         (insert_init_debug_bind): Likewise.
39632         (insert_init_stmt): Remove redundant check.
39633         (remap_gimple_stmt): Drop debug stmts if the destination
39634         function has var-tracking assignments disabled.
39635
39636 2015-01-14  Martin Liska  <mliska@suse.cz>
39637
39638         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39639         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39640
39641 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39642
39643         PR target/64460
39644         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39645         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39646
39647 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39648
39649         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39650         level from an ARCH; do not inject the default.
39651         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39652         MIPS_ISA_LEVEL_SPEC.
39653         (MIPS_ISA_NAN2008_SPEC): Update comment.
39654         (BASE_DRIVER_SELF_SPECS): Likewise.
39655         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39656         MIPS_DEFAULT_ISA_LEVEL_SPEC.
39657         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39658         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39659         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39660
39661 2015-01-14  Richard Biener  <rguenther@suse.de>
39662
39663         PR tree-optimization/64493
39664         PR tree-optimization/64495
39665         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39666         assign the proper vectorized PHI to the inner loop exit PHIs.
39667
39668 2015-01-14  Joey Ye  <joey.ye@arm.com>
39669
39670         * config/arm/arm.c (arm_compute_save_reg_mask):
39671         Do not save lr in case of tail call.
39672         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39673
39674 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
39675
39676         * tree-vrp.c (check_array_ref): Emit more warnings
39677         for warn_array_bounds >= 2.
39678         * common.opt: New option -Warray-bounds=.
39679         * doc/invoke.texi: Document -Warray-bounds=.
39680
39681 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
39682
39683         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39684         (mforbid-fp-as-gp): Remove.
39685         (mex9): Remove.
39686         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39687         (nds32_symbol_load_store_p): Remove.
39688         (nds32_fp_as_gp_check_available): Clean up implementation.
39689         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39690         cases.
39691         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39692         fp-as-gp and ex9 cases.
39693
39694 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39695
39696         * tree-profile.c (init_ic_make_global_vars): Drop workaround
39697         for bintuils bug 14342.
39698         (init_ic_make_global_vars): Likewise.
39699         (gimple_init_edge_profiler): Likewise.
39700         (gimple_gen_ic_func_profiler): Likewise.
39701
39702 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39703
39704         * ipa-inline.c (inline_small_functions): Swap the operands in
39705         enum.
39706
39707 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39708
39709         PR ipa/64481
39710         * ipa-inline-analysis.c (node_growth_cache): Remove.
39711         (initialize_growth_caches): Do not initialize it.
39712         (free_growth_caches): Do not free it.
39713         (do_estimate_growth): Rename to ...
39714         (estimate_growth): ... this one; drop growth cache code.
39715         (growth_likely_positive): Always go the heuristics way.
39716         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39717         (reset_edge_caches): Do not reset node growth.
39718         (heap_edge_removal_hook): Do not maintain cache.
39719         (inline_small_functions): Likewise; strenghten sanity check.
39720         (ipa_inline): Do not maintain caches.
39721         * ipa-inline.h (node_growth_cache): Remove.
39722         (do_estimate_growth): Remove to ...
39723         (estimate_growth): this one; remove inline version.
39724         (reset_node_growth_cache): Remove.
39725
39726 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39727
39728         PR ipa/64565
39729         * ipa-inline.c (inline_small_functions): Update callee keys after
39730         resolving speculation
39731         (inline_small_functions): Always check monotonicity of the queue.
39732
39733 2015-01-13  Marek Polacek  <polacek@redhat.com>
39734
39735         PR middle-end/64391
39736         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39737
39738 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39739
39740         PR rtl-optimization/64286
39741         * ree.c (combine_reaching_defs): Move part of comment earlier,
39742         remove !SCALAR_INT_MODE_P check.
39743         (add_removable_extension): Don't add vector mode
39744         extensions if all uses of the source register aren't the same
39745         vector extensions.
39746
39747 2015-01-13  Renlin Li  <renlin.li@arm.com>
39748
39749         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39750         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39751
39752 2015-01-13  Martin Liska  <mliska@suse.cz>
39753
39754         * ipa-icf.c (sem_function::equals_private): Call new functions
39755         cl_target_option_print_diff and cl_optimization_print_diff.
39756         * optc-save-gen.awk (cl_target_option_print_diff): New function.
39757         (cl_optimization_print_diff): Likewise.
39758         * opth-gen.awk: Likewise.
39759
39760 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
39761
39762         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39763         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39764         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39765         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39766         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39767         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39768
39769 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39770
39771         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39772         instead of src mode.
39773
39774 2015-01-13  Richard Biener  <rguenther@suse.de>
39775
39776         PR lto/64373
39777         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39778         DECL_CONTEXT.
39779
39780 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39781
39782         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39783         volatile mems.
39784         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39785
39786 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39787
39788         PR middle-end/63974
39789         * cfgexpand.c (expand_computed_goto): Don't call
39790         convert_memory_address here.
39791
39792 2015-01-13  Richard Biener  <rguenther@suse.de>
39793
39794         PR tree-optimization/64406
39795         * tree-loop-distibution.c (pass_loop_distribution::execute):
39796         Reset the SCEV hashtable if we distributed anything.
39797
39798 2015-01-13  Richard Biener  <rguenther@suse.de>
39799
39800         PR tree-optimization/64404
39801         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39802         SLP types for CSEd loads.
39803
39804 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39805
39806         PR tree-optimization/64436
39807         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39808         merge of two symbolic numbers for a bitwise OR to ...
39809         (perform_symbolic_merge): This. Also fix computation of the range and
39810         end of the symbolic number corresponding to the result of a bitwise OR.
39811
39812 2015-01-13  Richard Biener  <rguenther@suse.de>
39813
39814         PR tree-optimization/64568
39815         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39816         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39817
39818 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39819
39820         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39821         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39822
39823 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39824
39825         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39826         target-specific symbol_ref flag.
39827         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39828         resides in rodata section.
39829         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39830         (nds32_encode_section_info): New function.
39831
39832 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39833
39834         * config/nds32/nds32.md (call): Use pseudo instruction bal which
39835         clobbers TA_REGNUM if large code model is specified.
39836         (call_register): Likewise.
39837         (call_immediate): Likewise.
39838         (call_value): Likewise.
39839         (call_value_register): Likewise.
39840         (call_value_immediate): Likewise.
39841
39842 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39843
39844         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39845         (TARGET_CMODEL_MEDIUM): New macro.
39846         (TARGET_CMODEL_LARGE): New macro.
39847         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39848         code model setting in assembly code.
39849
39850 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39851
39852         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39853         Remove MASK_GP_DIRECT flag.
39854         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39855         one of the multilib default options.
39856         * config/nds32/nds32.opt (mgp-direct): Remove.
39857         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39858         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
39859
39860 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39861
39862         * config/nds32/nds32.opt (mcmodel): Add new option.
39863         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39864         to describe code model.
39865
39866 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
39867
39868         PR target/64479
39869         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39870
39871 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
39872
39873         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39874         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39875         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39876         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39877         __builtin_sh_set_fpscr.
39878
39879 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39880
39881         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39882         after a funtion name just to indicate it is a function.
39883         ([-fsanitize-undefined-trap-on-error]): Likewise.
39884         ([-fdbg-cnt=]): Likewise.
39885         ([-mmemcpy]): Likewise.
39886         ([-mflush-func]): Likewise.
39887         ([-msynci]): Likewise.
39888
39889 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39890
39891         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39892         example.
39893
39894 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
39895
39896         PR tree-optimization/64563
39897         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39898         instead of != VR_VARYING.
39899
39900         PR target/64513
39901         * config/i386/i386.c (ix86_expand_prologue): Add
39902         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39903
39904         PR tree-optimization/64454
39905         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39906         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39907         for signed or [0, op1 - 1] for unsigned modulo.
39908         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39909         even if op1 does not satisfy integer_pow2p.
39910
39911         PR other/64370
39912         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39913
39914 2015-01-12  Jeff Law  <law@redhat.com>
39915
39916         PR target/64461
39917         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39918         (trunchiqi2, truncsihi2): Similarly.
39919
39920         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39921         rather than calling F.
39922
39923 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39924
39925         * tsan.c (instrument_expr): Use force_gimple_operand.
39926         Use may_be_nonaddressable_p instead of is_gimple_addressable.
39927
39928 2015-01-12  Richard Biener  <rguenther@suse.de>
39929
39930         PR tree-optimization/64530
39931         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39932         back dr1.
39933
39934 2015-01-12  Richard Biener  <rguenther@suse.de>
39935
39936         PR middle-end/64357
39937         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39938         latches properly.
39939
39940 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39941
39942         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39943         Cortex-A17 tuning parameters.
39944         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39945
39946 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39947
39948         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39949         * config/arm/arm.c (arm_macro_fusion_p): New function.
39950         (arm_macro_fusion_pair_p): Likewise.
39951         (TARGET_SCHED_MACRO_FUSION_P): Define.
39952         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39953         (ARM_FUSE_NOTHING): Likewise.
39954         (ARM_FUSE_MOVW_MOVT): Likewise.
39955         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39956         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39957         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39958         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39959         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39960         arm_cortex_a5_tune): Specify fuseable_ops value.
39961
39962 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
39963
39964         PR bootstrap/64561
39965         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39966         test for PIE with copy reloc.
39967         * configure: Regenerated.
39968
39969 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39970
39971         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39972         in gen_rtx_REG.
39973         (arm_tls_descseq_addr): Likewise.
39974         (arm_gen_movmemqi): Likewise.
39975         (arm_expand_epilogue_apcs_frame): Likewise.
39976         (arm_expand_epilogue): Likewise.
39977         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
39978         in gen_rtx_REG.
39979
39980 2015-01-12  Martin Liska  <mliska@suse.cz>
39981
39982         PR ipa/64550
39983         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39984         volatility for correct operands.
39985
39986 2015-01-12  Martin Liska  <mliska@suse.cz>
39987
39988         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39989         indication that a function is not leaf.
39990         (sem_function::compare_polymorphic_p): Likewise.
39991
39992 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39993
39994         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39995         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39996         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39997         fold-const.h, tree-check.h.
39998
39999 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40000
40001         PR ipa/63967
40002         PR ipa/64425
40003         * ipa-inline.c (compute_uninlined_call_time,
40004         compute_inlined_call_time): Use counts for extra precision when
40005         needed possible.
40006         (big_speedup_p): Fix formating.
40007         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40008         (relative_time_benefit): Remove.
40009         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40010         merge guessed and read profile paths.
40011         (inline_small_functions): Count only !optimize_size functions into
40012         initial size; be more lax about sanity check when profile is used;
40013         be sure to update inlined function profile when profile is read.
40014
40015 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
40016
40017         PR ipa/63470
40018         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40019         cost when edge becomes direct.
40020         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40021         is resolved or when introducing new speculation.
40022
40023 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
40024
40025         PR ipa/64551
40026         PR ipa/64552
40027         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40028         '||' to fix typo issue.
40029
40030         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40031         accept and return NULL.
40032
40033 2015-01-12  Martin Liska  <mliska@suse.cz>
40034
40035         * cgraph.c (cgraph_edge::remove_callee): Move function to header
40036         file for being inlined.
40037         (cgraph_set_edge_callee): Delete.
40038         (cgraph_edge::redirect_callee): Move function to header file
40039         for being inlined.
40040         (cgraph_edge::make_direct): Use new function.
40041         (cgraph_edge::dump_edge_flags): New function created from
40042         static dump_edge_flags function.
40043         (cgraph_node::dump): Use new function.
40044         (cgraph_edge::verify_count_and_frequency): New function created
40045         from verify_edge_count_and_frequency.
40046         (cgraph_edge::verify_corresponds_to_fndecl): New function created
40047         from verify_edge_corresponds_to_fndecl.
40048         (verify_edge_corresponds_to_fndecl): Delete.
40049         (cgraph_node::verify_node): Use new function.
40050         * cgraph.h (cgraph_edge::set_callee): New function.
40051         (cgraph_edge::dump_edge_flags): Likewise.
40052         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40053
40054 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
40055
40056         * ipa-utils.c (estimate_function_body_sizes): Do not
40057         free node params when called late with early=true.
40058
40059 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
40060
40061         * doc/md.texi (Instruction Patterns): Rewrite text for
40062         clarity.
40063         (Example): Likewise.
40064
40065 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
40066
40067         * doc/invoke.texi (Option Summary): Break long lines.
40068         [(-fdiagnostics-color)]: Put long literal in @smallexample
40069         instead of inline.
40070         [(-fsanitize-recover)]: Likewise.
40071         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40072         [(-ffast-math)]: Likewise.
40073         [(--param max-inline-insns-recursive)]: Likewise.
40074         [(--param max-inline-recursive-depth)]: Likewise.
40075         [(-mno-text-section-literals)]: Likewise.
40076
40077 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
40078
40079         * doc/install.texi: Update for libgomp being renamed from "GNU
40080         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40081         Runtime Library".
40082         * doc/sourcebuild.texi: Likewise.
40083
40084 2015-01-10  Anthony Green  <green@moxielogic.com>
40085
40086         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40087         mul.x availability for moxiebox configuration.
40088
40089 2015-01-09  Anthony Green  <green@moxielogic.com>
40090
40091         * config/moxie/moxie.md: Tabify assembly output.
40092
40093 2015-01-09  Anthony Green  <green@moxielogic.com>
40094
40095         * config/moxie/moxie.md (CC_REG): Correct register definition.
40096
40097 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
40098
40099         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40100         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
40101         of log files.
40102
40103 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40104
40105         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40106
40107 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
40108             Jakub Jelinek  <jakub@redhat.com>
40109
40110         PR middle-end/64412
40111         * lto-streamer.h (lto_stream_offload_p): New declaration.
40112         * lto-streamer.c (lto_stream_offload_p): New variable.
40113         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40114         at the same time as section_name_prefix.
40115         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40116         if lto_stream_offload_p.
40117         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40118         stream TREE_TARGET_OPTION if lto_stream_offload_p.
40119         (write_ts_function_decl_tree_pointers): Don't
40120         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40121         * tree-streamer-in.c (unpack_value_fields): Don't stream
40122         TREE_TARGET_OPTION in if ACCEL_COMPILER.
40123         (lto_input_ts_function_decl_tree_pointers): Don't stream
40124         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40125         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40126         instead of section_name_prefix string comparisons.
40127
40128 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
40129
40130         PR rtl-optimization/64536
40131         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40132         tablejumps.
40133
40134 2015-01-09  Michael Collison  <michael.collison@linaro.org>
40135
40136         PR tree-optimization/64322
40137         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40138         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40139
40140 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40141
40142         PR rtl-optimization/64539
40143         * regcprop.c (kill_clobbered_values): Factor out of ...
40144         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
40145         instead of note_stores with kill_clobbered_value.
40146
40147 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40148
40149          * ginclude/unwind-arm-common.h: Revert previous commit.
40150
40151 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40152
40153         * config.gcc (arm*-*-freebsd*): New configuration.
40154         * config/arm/freebsd.h: New file.
40155         * config.host: Add extra components for arm*-*-freebsd*.
40156         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40157         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40158
40159 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40160
40161         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40162         for -mcpu=e6500.
40163         * config/rs6000/t-rtems: Add e6500 multilibs.
40164
40165 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40166
40167         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40168         MPC8540.
40169
40170 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40171
40172         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40173         MULTILIB_EXCEPTIONS.
40174
40175 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40176
40177         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40178         MULTILIB_EXCEPTIONS.
40179
40180 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40181
40182         * config/arm/t-rtems-eabi: Rename to...
40183         * config/arm/t-rtems: ...this.
40184         * config/arm/rtems-eabi.h: Rename to...
40185         * config/arm/rtems.h: ...this.
40186         * config.gcc (arm*-*-rtems*): Reflect changes above.
40187
40188 2015-01-09  Richard Biener  <rguenther@suse.de>
40189
40190         PR tree-optimization/64410
40191         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40192         on the LHS.
40193         (execute_update_addresses_taken): Deal with that.
40194         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40195         loads/stores for complex variables.
40196
40197 2015-01-09  Martin Liska  <mliska@suse.cz>
40198
40199         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40200         name comparison.
40201         (func_checker::compare_memory_operand): New function.
40202         (func_checker::compare_operand): Split case to newly
40203         added functions.
40204         (func_checker::compare_cst_or_decl): New function.
40205         (func_checker::compare_gimple_call): Identify
40206         memory operands.
40207         (func_checker::compare_gimple_assign): Likewise.
40208         * ipa-icf-gimple.h: New function.
40209
40210 2015-01-09  Martin Liska  <mliska@suse.cz>
40211
40212         PR ipa/64503
40213         * sreal.c (sreal::dump): Change unsigned format to signed for
40214         m_exp value.
40215         (sreal::to_double): Replace exp2 with scalbln.
40216
40217 2015-01-09  Martin Liska  <mliska@suse.cz>
40218
40219         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40220         * ipa-icf.c (sem_function::equals_private): Add support for target and
40221         (sem_item_optimizer::merge_classes): Remove redundant function
40222         optimization flags comparison.
40223         * tree.h (target_opts_for_fn): New function.
40224
40225 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40226
40227         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40228
40229 2015-01-09  Kito Cheng  <kito@0xlab.org>
40230
40231         PR rtl-optimization/64348
40232         * lra-constraints.c (split_reg): Fix caller-save store/restore
40233         instruction generation.
40234
40235 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
40236
40237         PR gcov-profile/61790
40238         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40239         long long.  Fallback to int64_t if host doesn't have long long and
40240         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
40241
40242 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40243
40244         PR tree-optimization/63989
40245         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40246         from 1000 to 10000.
40247         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40248         (get_stridx): If we don't have a record for certain SSA_NAME,
40249         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40250         constant offset, call get_stridx_plus_constant.
40251         (get_stridx_plus_constant): New function.
40252         (zero_length_string): Don't use get_stridx here.
40253
40254         PR target/55023
40255         PR middle-end/64388
40256         * dse.c (struct insn_info): Mention frame_read set also
40257         before reload for tail calls on some targets.
40258         (scan_insn): Revert 2014-12-22 change.  Set frame_read
40259         also before reload for tail calls if
40260         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
40261         instead of add_non_frame_wild_read for non-const/memset
40262         tail calls after reload.
40263
40264 2015-01-08  Jason Merrill  <jason@redhat.com>
40265
40266         * ubsan.c (do_ubsan_in_current_function): New.
40267         (pass_ubsan::gate): Use it.
40268         * ubsan.h: Declare it.
40269         * convert.c (convert_to_integer): Use it.
40270
40271 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40272
40273         PR target/64338
40274         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40275         compare_code when it is unconditionally overwritten afterwards.
40276         Use ix86_reverse_condition instead of reverse_condition.  Don't
40277         change code if *reverse_condition* returned UNKNOWN and don't
40278         swap ct/cf and negate diff in that case.
40279
40280 2015-01-08  Mike Stump  <mikestump@comcast.net>
40281
40282         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40283         (pass_tsan_O0::gate): Likewise.
40284         * extend.texi (Function Attributes): Add no_sanitize_thread
40285         documentation.
40286
40287 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
40288
40289         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40290         for registering builtins.
40291         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40292         add -fopenmp to the argv_obstack used when invoking
40293         compile_for_target.
40294
40295         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40296         add "-m32" or "-m64" to argv_obstack.
40297         (generate_host_descr_file): Likewise, when invoking host_compiler.
40298         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40299         ld.
40300
40301 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40302
40303         * config/sh/sh-mem.cc: Use constant as second operand when emitting
40304         tstsi_t insns.
40305
40306 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40307
40308         PR target/55212
40309         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40310         constant load if constant operand fits into I08.
40311
40312 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40313
40314         PR sanitizer/64336
40315         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40316         and TREE_THIS_VOLATILE for MEM_REFs.
40317         (build5_stat): Fix up initialization of TREE_READONLY and
40318         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40319
40320 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
40321
40322         PR target/64533
40323         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40324         of r for the second alternative of the destination operand.
40325
40326 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
40327
40328         PR target/36557
40329         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40330
40331 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40332
40333         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40334         keywords.
40335         ([-fivar-visibility], [-fvisibility]): Likewise.
40336
40337 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40338
40339         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40340         the file where @code, @command, etc is more appropriate.
40341
40342 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
40343
40344         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40345         of -mrecip= documentation.
40346
40347 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
40348
40349         PR target/64505
40350         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40351         correct reload handler if -m32 -mpowerpc64 is used.
40352
40353 2015-01-06  Tom de Vries  <tom@codesourcery.com>
40354
40355         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40356
40357 2015-01-08  Christian Bruel  <christian.bruel@st.com>
40358
40359         PR target/64507
40360         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40361
40362 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40363
40364         PR tree-optimization/63259
40365         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40366         if optab exists for 16bit byteswap.
40367
40368 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
40369
40370         * opts.c (common_handle_option): Add support for
40371         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40372         * doc/invoke.texi: Document -fno-sanitize=all,
40373         -f{,no-}sanitize-recover=all.  Document that
40374         -fsanitize=float-cast-overflow is not enabled
40375         by -fsanitize=undefined.  Fix up documentation
40376         of -f{,no-}sanitize-recover.
40377
40378 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
40379
40380         * config.gcc: Add Visium support.
40381         * configure.ac: Likewise.
40382         * configure: Regenerate.
40383         * doc/extend.texi (interrupt attribute): Add Visium.
40384         * doc/invoke.texi: Document Visium options.
40385         * doc/install.texi: Document Visium target.
40386         * doc/md.texi: Document Visium constraints.
40387         * common/config/visium: New directory.
40388         * config/visium: Likewise.
40389
40390 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40391
40392         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40393         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40394
40395 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40396
40397         * combine.c (combine_validate_cost): Do not count the cost of a
40398         split I2 twice.  Do not display it twice in the dump, either.
40399
40400 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40401
40402         Revert parts of r219199.
40403         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40404         <inttypes.h>.
40405         ([-Wtraditional]): Restore markup on <limits.h>.
40406
40407 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
40408
40409         PR c++/31397
40410         * doc/invoke.texi: Document -Wsuggest-override.
40411
40412 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
40413
40414         PR rtl-optimization/64287
40415         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40416         (process_options): Disable flag_ipa_ra if profiling.
40417
40418 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
40419
40420         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40421
40422 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
40423
40424         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40425         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40426         put under #if TARGET_LOOPS guard.
40427
40428 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
40429
40430         * config/i386/i386.c (output_387_binary_op): Use std::swap.
40431
40432 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
40433
40434         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40435         * rtl.h (refers_to_regno_p): Add overload.
40436         * cse.c: Use it.
40437         * bt-load.c: Likewise.
40438         * combine.c: Likewise.
40439         * df-scan.c: Likewise.
40440         * sched-deps.c: Likewise.
40441         * config/s390/s390.c: Likewise.
40442         * config/m32r/m32r.c: Likewise.
40443         * config/rs6000/spe.md: Likewise.
40444         * config/rs6000/rs6000.c: Likewise.
40445         * config/pa/pa.c: Likewise.
40446         * config/stormy16/stormy16.c: Likewise.
40447         * config/cris/cris.c: Likewise.
40448         * config/arc/arc.md: Likewise.
40449         * config/arc/arc.c: Likewise.
40450         * config/sh/sh.md: Likewise.
40451         * config/sh/sh.c: Likewise.
40452         * config/frv/frv.c: Likewise.
40453
40454 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40455
40456         PR sanitizer/64265
40457         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40458         call as cleanup of the whole body.
40459         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40460         * tsan.c (replace_func_exit): New function.
40461         (instrument_func_exit): Moved earlier.
40462         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40463         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40464         been found.
40465         (tsan_pass): Don't call instrument_func_exit.
40466         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40467         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40468         inlining.
40469
40470         PR sanitizer/64344
40471         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40472         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40473         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
40474         if the result is integer_zerop, return NULL_TREE.
40475         * convert.c (convert_to_integer): Pass expr as ARG.
40476
40477         PR tree-optimization/64465
40478         * tree-inline.c (redirect_all_calls): During inlining
40479         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40480         changed the stmt to a non-throwing call.
40481
40482 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40483
40484         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40485         etc markup throughout the file.
40486
40487 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40488
40489         Enable experimental TSAN support for Ada.
40490         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40491
40492 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40493
40494         PR tree-optimization/64494
40495         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40496         clear SSA_NAME_ANTI_RANGE_P flag.
40497
40498 2015-01-05  Marek Polacek  <polacek@redhat.com>
40499
40500         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40501
40502 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40503
40504         Update copyright years.
40505
40506         * gcc.c (process_command): Update copyright notice dates.
40507         * gcov-dump.c: Ditto.
40508         * gcov.c: Ditto.
40509         * doc/cpp.texi: Bump @copying's copyright year.
40510         * doc/cppinternals.texi: Ditto.
40511         * doc/gcc.texi: Ditto.
40512         * doc/gccint.texi: Ditto.
40513         * doc/gcov.texi: Ditto.
40514         * doc/install.texi: Ditto.
40515         * doc/invoke.texi: Ditto.
40516
40517         * auto-profile.c, auto-profile.h: Fix up Copyright line.
40518
40519 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
40520
40521         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40522         verb tense, etc.
40523         ([-fvtable-verify], [-fvtv-debug]): Likewise.
40524         ([-Wabi]): Likewise.
40525         ([-fmessage-length]): Likewise.
40526         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40527         ([-Wno-discarded-qualifiers]): Likewise.
40528         ([-Wnodiscarded-array-qualifiers]): Likewise.
40529         ([-Wno-virtual-move-assign]): Likewise.
40530         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40531         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40532         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40533         ([-fsanitize-undefined-trap-on-error]): Likewise.
40534         ([-floop-interchange]): Likewise.
40535         ([-ftree-coalesce-inlined-vars]): Likewise.
40536         ([-fvect-cost-model]): Likewise.
40537         ([-flto]): Likewise.
40538         ([--param]): Likewise.
40539         (Spec Files): Likewise.
40540         ([-mstrict-align]): Likewise.
40541         ([-mfix-cortex-a53-835769]): Likewise.
40542         ([-march], [-mtune]): Likewise.
40543         ([-mpic-register]): Likewise.
40544         ([-munaligned-access]): Likewise.
40545         ([-msp8]): Likewise.
40546         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40547         (AVR Built-in Macros): Likewise.
40548         ([-mpreferred-stack-boundary]): Likewise.
40549         ([-mtune-crtl]): Likewise.
40550         ([-mashf]): Likewise.
40551         ([-mmcu=]): Likewise.
40552         ([-minrt]): Likewise.
40553         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40554         ([-mupper-regs]): Likewise.
40555         ([-matomic-model]): Likewise.
40556         ([-mdiv]): Likewise.
40557         ([-mzdcbranch]): Likewise.
40558         ([-mdisable-callt]): Likewise.
40559         ([-msoft-float]): Likewise.
40560         ([-m8byte-align]): Likewise.
40561         ([-fstack-reuse]): Likewise.
40562
40563 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40564
40565         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40566         Fix markup, light copy-editing.
40567         ([-fauto-profile]): Rewrite to fix formatting and content
40568         problems.
40569
40570 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40571
40572         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40573         Copy-edit description.
40574         ([-fisolate-erroneous-paths-attribute]): Likewise.
40575         * common.opt (fisolate-erroneous-paths-dereference):
40576         Copy-edit description.
40577         (fisolate-erroneous-paths-attribute): Likewise.
40578
40579 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40580
40581         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40582         tidy grammar.
40583
40584 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40585
40586         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40587         ([-fvtv-debug]): Likewise.
40588         ([-Wc++-compat]): Likewise.
40589         ([-Wc++11-compat]): Likewise.
40590         ([-Wc++14-compat]): Likewise.
40591         ([-Wno-sized-deallocation]): Likewise.
40592         ([-femit-class-debug-always]): Likewise.
40593         ([-femit-struct-debug-detailed]): Likewise.
40594         ([-fno-keep-inline-dllexport]): Likewise.
40595         ([-fira-algorithm]): Likewise.
40596         ([-fira-region]): Likewise.
40597         ([-flra-remat]): Likewise.
40598         ([-fipa-ra]): Likewise.
40599         ([-fhoist-adjacent-loads]): Likewise.
40600         ([-fisolate-erroneous-paths-dereference]): Likewise.
40601         ([-fisolate-erroneous-paths-attribute]): Likewise.
40602         ([-ftree-switch-conversion]): Likewise.
40603         ([-ftree-tail-merge]): Likewise.
40604         ([-ftree-loop-if-convert]): Likewise.
40605         ([-ftree-loop-if-convert-stores]): Likewise.
40606         ([-ftree-loop-distribution]): Likewise.
40607         ([-ftree-loop-distribute-patterns]): Likewise.
40608         ([-flto-compression-level]): Likewise.
40609         ([-flto-report]): Likewise.
40610         ([-flto-report-wpa]): Likewise.
40611         ([-fuse-linker-plugin]): Likewise.
40612         ([-mfix-cortex-a53-835769]): Likewise.
40613         ([-mno-fix-cortex-a53-835769]): Likewise.
40614         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40615         explicit listing; add a note to the discussion indicating they
40616         exist.  Reorder table to group similar options.  Add missing
40617         @opindex entries.  Add @need commands throughout the table to
40618         allow it to be split across multiple pages.
40619         ([-m8bit-idiv]): Fix @opindex.
40620         ([-mavx256-split-unaligned-load]): Likewise.
40621         ([-mavx256-split-unaligned-store]): Likewise.
40622         ([-mstack-protector-guard]): Likewise.
40623         ([-mcpu=]): Likewise.
40624         ([-mcpu]): Likewise.
40625         ([-mpointer-size=]): Likewise.
40626
40627 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
40628
40629         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40630         instead of `m' constraint.  Likewise for unnamed movb comparison
40631         patterns using reg_before_reload_operand predicate.
40632         * config/pa/predicates.md (reg_before_reload_operand): Tighten
40633         predicate to reject register index and LO_SUM DLT memory forms
40634         after reload.
40635
40636 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40637
40638         * doc/invoke.texi (Option Summary): Fix spelling of
40639         -fdevirtualize-at-ltrans.
40640         ([-fdevirtualize]): Fix markup.
40641         ([-fdevirtualize-speculatively]): Fix typo.
40642         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
40643         implementor-speaky.
40644         * common.opt (fdevirtualize-at-ltrans): Likewise.
40645         * ipa-devirt.c: Fix typos in comments throughout the file.
40646         (ipa_devirt): Fix typos in format strings for dump output.
40647
40648 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40649
40650         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40651         discussion of defaults, light copy-editing.
40652
40653 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40654
40655         * tsan.c (instrument_expr): corrected previous checkin.
40656
40657 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40658
40659         Instrument bit field and unaligned accesses for TSAN.
40660         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40661         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40662         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40663         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40664         unaligned memory regions.
40665
40666 2015-01-01  Anthony Green  <green@moxielogic.com>
40667
40668         * config/moxie/predicates.md (moxie_general_movsrc_operand):
40669         Restrict move source register offsets to 16 bits.
40670 \f
40671 Copyright (C) 2015 Free Software Foundation, Inc.
40672
40673 Copying and distribution of this file, with or without modification,
40674 are permitted in any medium without royalty provided the copyright
40675 notice and this notice are preserved.